diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/LogzManager.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/LogzManager.java
index af576f9330fc..5b674a3c5bf8 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/LogzManager.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/LogzManager.java
@@ -46,7 +46,9 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to LogzManager. */
+/**
+ * Entry point to LogzManager.
+ */
public final class LogzManager {
private Monitors monitors;
@@ -67,18 +69,14 @@ public final class LogzManager {
private LogzManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new MicrosoftLogzBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new MicrosoftLogzBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of logz service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the logz service API instance.
@@ -91,7 +89,7 @@ public static LogzManager authenticate(TokenCredential credential, AzureProfile
/**
* Creates an instance of logz service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the logz service API instance.
@@ -104,14 +102,16 @@ public static LogzManager authenticate(HttpPipeline httpPipeline, AzureProfile p
/**
* Gets a Configurable instance that can be used to create LogzManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new LogzManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -183,8 +183,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -201,8 +201,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -222,21 +222,12 @@ public LogzManager authenticate(TokenCredential credential, AzureProfile profile
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.logz")
- .append("/")
- .append("1.0.0-beta.2");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.logz").append("/")
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -255,38 +246,25 @@ public LogzManager authenticate(TokenCredential credential, AzureProfile profile
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ 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
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ 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 =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new LogzManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Monitors. It manages LogzMonitorResource.
- *
+ *
* @return Resource collection API of Monitors.
*/
public Monitors monitors() {
@@ -298,7 +276,7 @@ public Monitors monitors() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -310,7 +288,7 @@ public Operations operations() {
/**
* Gets the resource collection API of TagRules. It manages MonitoringTagRules.
- *
+ *
* @return Resource collection API of TagRules.
*/
public TagRules tagRules() {
@@ -322,7 +300,7 @@ public TagRules tagRules() {
/**
* Gets the resource collection API of SingleSignOns. It manages LogzSingleSignOnResource.
- *
+ *
* @return Resource collection API of SingleSignOns.
*/
public SingleSignOns singleSignOns() {
@@ -334,7 +312,7 @@ public SingleSignOns singleSignOns() {
/**
* Gets the resource collection API of SubAccounts.
- *
+ *
* @return Resource collection API of SubAccounts.
*/
public SubAccounts subAccounts() {
@@ -346,7 +324,7 @@ public SubAccounts subAccounts() {
/**
* Gets the resource collection API of SubAccountTagRules.
- *
+ *
* @return Resource collection API of SubAccountTagRules.
*/
public SubAccountTagRules subAccountTagRules() {
@@ -358,7 +336,7 @@ public SubAccountTagRules subAccountTagRules() {
/**
* Gets the resource collection API of MonitorOperations.
- *
+ *
* @return Resource collection API of MonitorOperations.
*/
public MonitorOperations monitorOperations() {
@@ -369,8 +347,10 @@ public MonitorOperations monitorOperations() {
}
/**
- * @return Wrapped service client MicrosoftLogz providing direct access to the underlying auto-generated API
- * implementation, based on Azure REST API.
+ * Gets wrapped service client MicrosoftLogz providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client MicrosoftLogz.
*/
public MicrosoftLogz serviceClient() {
return this.clientObject;
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MicrosoftLogz.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MicrosoftLogz.java
index 393dac27e465..06ed7807d72f 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MicrosoftLogz.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MicrosoftLogz.java
@@ -7,88 +7,90 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for MicrosoftLogz class. */
+/**
+ * The interface for MicrosoftLogz class.
+ */
public interface MicrosoftLogz {
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();
/**
* Gets the MonitorsClient object to access its operations.
- *
+ *
* @return the MonitorsClient object.
*/
MonitorsClient getMonitors();
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
OperationsClient getOperations();
/**
* Gets the TagRulesClient object to access its operations.
- *
+ *
* @return the TagRulesClient object.
*/
TagRulesClient getTagRules();
/**
* Gets the SingleSignOnsClient object to access its operations.
- *
+ *
* @return the SingleSignOnsClient object.
*/
SingleSignOnsClient getSingleSignOns();
/**
* Gets the SubAccountsClient object to access its operations.
- *
+ *
* @return the SubAccountsClient object.
*/
SubAccountsClient getSubAccounts();
/**
* Gets the SubAccountTagRulesClient object to access its operations.
- *
+ *
* @return the SubAccountTagRulesClient object.
*/
SubAccountTagRulesClient getSubAccountTagRules();
/**
* Gets the MonitorOperationsClient object to access its operations.
- *
+ *
* @return the MonitorOperationsClient object.
*/
MonitorOperationsClient getMonitorOperations();
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorOperationsClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorOperationsClient.java
index 6589d1f3d16e..f6e7e637fbf9 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorOperationsClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorOperationsClient.java
@@ -13,11 +13,13 @@
import com.azure.resourcemanager.logz.fluent.models.VMResourcesInner;
import com.azure.resourcemanager.logz.models.VMHostUpdateRequest;
-/** An instance of this class provides access to all the operations defined in MonitorOperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorOperationsClient.
+ */
public interface MonitorOperationsClient {
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -27,12 +29,12 @@ public interface MonitorOperationsClient {
* @return response of payload to be passed while installing VM agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response vMHostPayloadWithResponse(
- String resourceGroupName, String monitorName, Context context);
+ Response vMHostPayloadWithResponse(String resourceGroupName, String monitorName,
+ Context context);
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -45,7 +47,7 @@ Response vMHostPayloadWithResponse(
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -58,7 +60,7 @@ Response vMHostPayloadWithResponse(
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -69,12 +71,12 @@ Response vMHostPayloadWithResponse(
* @return response of a list VM Host Update Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVmHostUpdate(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body, Context context);
+ PagedIterable listVmHostUpdate(String resourceGroupName, String monitorName,
+ VMHostUpdateRequest body, Context context);
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -87,7 +89,7 @@ PagedIterable listVmHostUpdate(
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorsClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorsClient.java
index 90e132b429f9..6f00e485f1c5 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorsClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/MonitorsClient.java
@@ -17,11 +17,13 @@
import com.azure.resourcemanager.logz.models.LogzMonitorResourceUpdateParameters;
import com.azure.resourcemanager.logz.models.UserRoleRequest;
-/** An instance of this class provides access to all the operations defined in MonitorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorsClient.
+ */
public interface MonitorsClient {
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -34,7 +36,7 @@ public interface MonitorsClient {
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -44,12 +46,12 @@ public interface MonitorsClient {
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listMonitoredResources(
- String resourceGroupName, String monitorName, Context context);
+ PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
+ Context context);
/**
* List all monitors under the specified subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response of a list operation as paginated response with {@link PagedIterable}.
@@ -59,7 +61,7 @@ PagedIterable listMonitoredResources(
/**
* List all monitors under the specified subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -71,7 +73,7 @@ PagedIterable listMonitoredResources(
/**
* List all monitors under the specified resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -83,7 +85,7 @@ PagedIterable listMonitoredResources(
/**
* List all monitors under the specified resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -96,7 +98,7 @@ PagedIterable listMonitoredResources(
/**
* Get the properties of a specific monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -106,12 +108,12 @@ PagedIterable listMonitoredResources(
* @return the properties of a specific monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String monitorName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String monitorName,
+ Context context);
/**
* Get the properties of a specific monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -124,7 +126,7 @@ Response getByResourceGroupWithResponse(
/**
* Create a monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -133,12 +135,12 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LogzMonitorResourceInner> beginCreate(
- String resourceGroupName, String monitorName);
+ SyncPoller, LogzMonitorResourceInner> beginCreate(String resourceGroupName,
+ String monitorName);
/**
* Create a monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body The body parameter.
@@ -149,12 +151,12 @@ SyncPoller, LogzMonitorResourceInner> begin
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LogzMonitorResourceInner> beginCreate(
- String resourceGroupName, String monitorName, LogzMonitorResourceInner body, Context context);
+ SyncPoller, LogzMonitorResourceInner> beginCreate(String resourceGroupName,
+ String monitorName, LogzMonitorResourceInner body, Context context);
/**
* Create a monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -167,7 +169,7 @@ SyncPoller, LogzMonitorResourceInner> begin
/**
* Create a monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body The body parameter.
@@ -178,12 +180,12 @@ SyncPoller, LogzMonitorResourceInner> begin
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogzMonitorResourceInner create(
- String resourceGroupName, String monitorName, LogzMonitorResourceInner body, Context context);
+ LogzMonitorResourceInner create(String resourceGroupName, String monitorName, LogzMonitorResourceInner body,
+ Context context);
/**
* Update a monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body The parameters for a PATCH request to a monitor resource.
@@ -194,12 +196,12 @@ LogzMonitorResourceInner create(
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String monitorName, LogzMonitorResourceUpdateParameters body, Context context);
+ Response updateWithResponse(String resourceGroupName, String monitorName,
+ LogzMonitorResourceUpdateParameters body, Context context);
/**
* Update a monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -212,7 +214,7 @@ Response updateWithResponse(
/**
* Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -225,7 +227,7 @@ Response updateWithResponse(
/**
* Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -239,7 +241,7 @@ Response updateWithResponse(
/**
* Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -251,7 +253,7 @@ Response updateWithResponse(
/**
* Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -264,7 +266,7 @@ Response updateWithResponse(
/**
* List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -277,7 +279,7 @@ Response updateWithResponse(
/**
* List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request for checking user's role for Logz.io account.
@@ -288,6 +290,6 @@ Response updateWithResponse(
* @return response for list of user's role for Logz.io account as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listUserRoles(
- String resourceGroupName, String monitorName, UserRoleRequest body, Context context);
+ PagedIterable listUserRoles(String resourceGroupName, String monitorName,
+ UserRoleRequest body, Context context);
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/OperationsClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/OperationsClient.java
index d0cbc38d56bf..c27392105fad 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/OperationsClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.logz.fluent.models.OperationResultInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* List all operations provided by Microsoft.Logz.
- *
+ *
* @throws com.azure.core.management.exception.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.Logz operations as paginated response with {@link
- * PagedIterable}.
+ * @return result of GET request to list the Microsoft.Logz operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List all operations provided by Microsoft.Logz.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of GET request to list the Microsoft.Logz operations as paginated response with {@link
- * PagedIterable}.
+ * @return result of GET request to list the Microsoft.Logz operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SingleSignOnsClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SingleSignOnsClient.java
index 474920886e4a..331052a9ce5e 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SingleSignOnsClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SingleSignOnsClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.logz.fluent.models.LogzSingleSignOnResourceInner;
-/** An instance of this class provides access to all the operations defined in SingleSignOnsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in SingleSignOnsClient.
+ */
public interface SingleSignOnsClient {
/**
* List the single sign-on configurations for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -30,7 +32,7 @@ public interface SingleSignOnsClient {
/**
* List the single sign-on configurations for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -44,7 +46,7 @@ public interface SingleSignOnsClient {
/**
* Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
@@ -54,12 +56,12 @@ public interface SingleSignOnsClient {
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LogzSingleSignOnResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String monitorName, String configurationName);
+ SyncPoller, LogzSingleSignOnResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String monitorName, String configurationName);
/**
* Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
@@ -72,15 +74,12 @@ SyncPoller, LogzSingleSignOnResourceIn
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LogzSingleSignOnResourceInner> beginCreateOrUpdate(
- String resourceGroupName,
- String monitorName,
- String configurationName,
- LogzSingleSignOnResourceInner body,
+ String resourceGroupName, String monitorName, String configurationName, LogzSingleSignOnResourceInner body,
Context context);
/**
* Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
@@ -90,12 +89,12 @@ SyncPoller, LogzSingleSignOnResourceIn
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogzSingleSignOnResourceInner createOrUpdate(
- String resourceGroupName, String monitorName, String configurationName);
+ LogzSingleSignOnResourceInner createOrUpdate(String resourceGroupName, String monitorName,
+ String configurationName);
/**
* Configures single-sign-on for this resource. This operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
@@ -107,16 +106,12 @@ LogzSingleSignOnResourceInner createOrUpdate(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogzSingleSignOnResourceInner createOrUpdate(
- String resourceGroupName,
- String monitorName,
- String configurationName,
- LogzSingleSignOnResourceInner body,
- Context context);
+ LogzSingleSignOnResourceInner createOrUpdate(String resourceGroupName, String monitorName, String configurationName,
+ LogzSingleSignOnResourceInner body, Context context);
/**
* Gets the Logz single sign-on resource for the given Monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
@@ -127,12 +122,12 @@ LogzSingleSignOnResourceInner createOrUpdate(
* @return the Logz single sign-on resource for the given Monitor along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String monitorName, String configurationName, Context context);
+ Response getWithResponse(String resourceGroupName, String monitorName,
+ String configurationName, Context context);
/**
* Gets the Logz single sign-on resource for the given Monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName The configurationName parameter.
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountTagRulesClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountTagRulesClient.java
index 266a8ec61c2a..32eabeefff9c 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountTagRulesClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountTagRulesClient.java
@@ -12,11 +12,13 @@
import com.azure.resourcemanager.logz.fluent.models.MonitoringTagRulesInner;
import com.azure.resourcemanager.logz.models.SubAccountTagRulesDeleteResponse;
-/** An instance of this class provides access to all the operations defined in SubAccountTagRulesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in SubAccountTagRulesClient.
+ */
public interface SubAccountTagRulesClient {
/**
* List the tag rules for a given sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -30,7 +32,7 @@ public interface SubAccountTagRulesClient {
/**
* List the tag rules for a given sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -41,12 +43,12 @@ public interface SubAccountTagRulesClient {
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ PagedIterable list(String resourceGroupName, String monitorName, String subAccountName,
+ Context context);
/**
* Create or update a tag rule set for a given sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -59,17 +61,12 @@ PagedIterable list(
* @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String monitorName,
- String subAccountName,
- String ruleSetName,
- MonitoringTagRulesInner body,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, String ruleSetName, MonitoringTagRulesInner body, Context context);
/**
* Create or update a tag rule set for a given sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -80,12 +77,12 @@ Response createOrUpdateWithResponse(
* @return capture logs and metrics of Azure resources based on ARM tags.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MonitoringTagRulesInner createOrUpdate(
- String resourceGroupName, String monitorName, String subAccountName, String ruleSetName);
+ MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String monitorName, String subAccountName,
+ String ruleSetName);
/**
* Get a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -97,12 +94,12 @@ MonitoringTagRulesInner createOrUpdate(
* @return a tag rule set for a given monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, Context context);
+ Response getWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, String ruleSetName, Context context);
/**
* Get a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -113,12 +110,12 @@ Response getWithResponse(
* @return a tag rule set for a given monitor resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MonitoringTagRulesInner get(
- String resourceGroupName, String monitorName, String subAccountName, String ruleSetName);
+ MonitoringTagRulesInner get(String resourceGroupName, String monitorName, String subAccountName,
+ String ruleSetName);
/**
* Delete a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -130,12 +127,12 @@ MonitoringTagRulesInner get(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SubAccountTagRulesDeleteResponse deleteWithResponse(
- String resourceGroupName, String monitorName, String subAccountName, String ruleSetName, Context context);
+ SubAccountTagRulesDeleteResponse deleteWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, String ruleSetName, Context context);
/**
* Delete a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountsClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountsClient.java
index 472f99c89734..96190415d013 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountsClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/SubAccountsClient.java
@@ -18,11 +18,13 @@
import com.azure.resourcemanager.logz.models.LogzMonitorResourceUpdateParameters;
import com.azure.resourcemanager.logz.models.VMHostUpdateRequest;
-/** An instance of this class provides access to all the operations defined in SubAccountsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in SubAccountsClient.
+ */
public interface SubAccountsClient {
/**
* List the sub account under a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -35,7 +37,7 @@ public interface SubAccountsClient {
/**
* List the sub account under a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -49,7 +51,7 @@ public interface SubAccountsClient {
/**
* Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -59,12 +61,12 @@ public interface SubAccountsClient {
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LogzMonitorResourceInner> beginCreate(
- String resourceGroupName, String monitorName, String subAccountName);
+ SyncPoller, LogzMonitorResourceInner> beginCreate(String resourceGroupName,
+ String monitorName, String subAccountName);
/**
* Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -76,16 +78,12 @@ SyncPoller, LogzMonitorResourceInner> begin
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LogzMonitorResourceInner> beginCreate(
- String resourceGroupName,
- String monitorName,
- String subAccountName,
- LogzMonitorResourceInner body,
- Context context);
+ SyncPoller, LogzMonitorResourceInner> beginCreate(String resourceGroupName,
+ String monitorName, String subAccountName, LogzMonitorResourceInner body, Context context);
/**
* Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -99,7 +97,7 @@ SyncPoller, LogzMonitorResourceInner> begin
/**
* Create sub account under a given monitor resource. This create operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -111,16 +109,12 @@ SyncPoller, LogzMonitorResourceInner> begin
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LogzMonitorResourceInner create(
- String resourceGroupName,
- String monitorName,
- String subAccountName,
- LogzMonitorResourceInner body,
- Context context);
+ LogzMonitorResourceInner create(String resourceGroupName, String monitorName, String subAccountName,
+ LogzMonitorResourceInner body, Context context);
/**
* Get a sub account under a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -131,12 +125,12 @@ LogzMonitorResourceInner create(
* @return a sub account under a given monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ Response getWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, Context context);
/**
* Get a sub account under a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -150,7 +144,7 @@ Response getWithResponse(
/**
* Delete a sub account resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -164,7 +158,7 @@ Response getWithResponse(
/**
* Delete a sub account resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -175,12 +169,12 @@ Response getWithResponse(
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String monitorName, String subAccountName,
+ Context context);
/**
* Delete a sub account resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -193,7 +187,7 @@ SyncPoller, Void> beginDelete(
/**
* Delete a sub account resource. This delete operation can take upto 10 minutes to complete.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -207,7 +201,7 @@ SyncPoller, Void> beginDelete(
/**
* Update a monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -219,16 +213,12 @@ SyncPoller, Void> beginDelete(
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String monitorName,
- String subAccountName,
- LogzMonitorResourceUpdateParameters body,
- Context context);
+ Response updateWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, LogzMonitorResourceUpdateParameters body, Context context);
/**
* Update a monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -242,7 +232,7 @@ Response updateWithResponse(
/**
* List the resources currently being monitored by the Logz sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -252,12 +242,12 @@ Response updateWithResponse(
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listMonitoredResources(
- String resourceGroupName, String monitorName, String subAccountName);
+ PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
+ String subAccountName);
/**
* List the resources currently being monitored by the Logz sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -268,12 +258,12 @@ PagedIterable listMonitoredResources(
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listMonitoredResources(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
+ String subAccountName, Context context);
/**
* Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -284,12 +274,12 @@ PagedIterable listMonitoredResources(
* @return response of payload to be passed while installing VM agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response vMHostPayloadWithResponse(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ Response vMHostPayloadWithResponse(String resourceGroupName, String monitorName,
+ String subAccountName, Context context);
/**
* Returns the payload that needs to be passed as a request for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -303,7 +293,7 @@ Response vMHostPayloadWithResponse(
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -313,12 +303,12 @@ Response vMHostPayloadWithResponse(
* @return response of a list VM Host Update Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVmHostUpdate(
- String resourceGroupName, String monitorName, String subAccountName);
+ PagedIterable listVmHostUpdate(String resourceGroupName, String monitorName,
+ String subAccountName);
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -330,12 +320,12 @@ PagedIterable listVmHostUpdate(
* @return response of a list VM Host Update Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVmHostUpdate(
- String resourceGroupName, String monitorName, String subAccountName, VMHostUpdateRequest body, Context context);
+ PagedIterable listVmHostUpdate(String resourceGroupName, String monitorName,
+ String subAccountName, VMHostUpdateRequest body, Context context);
/**
* List the compute resources currently being monitored by the Logz sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -349,7 +339,7 @@ PagedIterable listVmHostUpdate(
/**
* List the compute resources currently being monitored by the Logz sub account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param subAccountName Sub Account resource name.
@@ -360,6 +350,6 @@ PagedIterable listVmHostUpdate(
* @return response of a list VM Host Update Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listVMHosts(
- String resourceGroupName, String monitorName, String subAccountName, Context context);
+ PagedIterable listVMHosts(String resourceGroupName, String monitorName, String subAccountName,
+ Context context);
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/TagRulesClient.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/TagRulesClient.java
index 7d85f505f943..ae831bccc9b1 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/TagRulesClient.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/TagRulesClient.java
@@ -12,11 +12,13 @@
import com.azure.resourcemanager.logz.fluent.models.MonitoringTagRulesInner;
import com.azure.resourcemanager.logz.models.TagRulesDeleteResponse;
-/** An instance of this class provides access to all the operations defined in TagRulesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in TagRulesClient.
+ */
public interface TagRulesClient {
/**
* List the tag rules for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -29,7 +31,7 @@ public interface TagRulesClient {
/**
* List the tag rules for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -43,7 +45,7 @@ public interface TagRulesClient {
/**
* Create or update a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
@@ -55,16 +57,12 @@ public interface TagRulesClient {
* @return capture logs and metrics of Azure resources based on ARM tags along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String monitorName,
- String ruleSetName,
- MonitoringTagRulesInner body,
- Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String monitorName,
+ String ruleSetName, MonitoringTagRulesInner body, Context context);
/**
* Create or update a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
@@ -78,7 +76,7 @@ Response createOrUpdateWithResponse(
/**
* Get a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
@@ -89,12 +87,12 @@ Response createOrUpdateWithResponse(
* @return a tag rule set for a given monitor resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String monitorName, String ruleSetName, Context context);
+ Response getWithResponse(String resourceGroupName, String monitorName, String ruleSetName,
+ Context context);
/**
* Get a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
@@ -108,7 +106,7 @@ Response getWithResponse(
/**
* Delete a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
@@ -119,12 +117,12 @@ Response getWithResponse(
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- TagRulesDeleteResponse deleteWithResponse(
- String resourceGroupName, String monitorName, String ruleSetName, Context context);
+ TagRulesDeleteResponse deleteWithResponse(String resourceGroupName, String monitorName, String ruleSetName,
+ Context context);
/**
* Delete a tag rule set for a given monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName The ruleSetName parameter.
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzMonitorResourceInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzMonitorResourceInner.java
index 82130da884af..07ec8fc51ae4 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzMonitorResourceInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzMonitorResourceInner.java
@@ -12,7 +12,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** The LogzMonitorResource model. */
+/**
+ * The LogzMonitorResource model.
+ */
@Fluent
public final class LogzMonitorResourceInner extends Resource {
/*
@@ -33,13 +35,15 @@ public final class LogzMonitorResourceInner extends Resource {
@JsonProperty(value = "identity")
private IdentityProperties identity;
- /** Creates an instance of LogzMonitorResourceInner class. */
+ /**
+ * Creates an instance of LogzMonitorResourceInner class.
+ */
public LogzMonitorResourceInner() {
}
/**
* Get the systemData property: The system metadata relating to this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -48,7 +52,7 @@ public SystemData systemData() {
/**
* Get the properties property: Properties specific to the monitor resource.
- *
+ *
* @return the properties value.
*/
public MonitorProperties properties() {
@@ -57,7 +61,7 @@ public MonitorProperties properties() {
/**
* Set the properties property: Properties specific to the monitor resource.
- *
+ *
* @param properties the properties value to set.
* @return the LogzMonitorResourceInner object itself.
*/
@@ -68,7 +72,7 @@ public LogzMonitorResourceInner withProperties(MonitorProperties properties) {
/**
* Get the identity property: The identity property.
- *
+ *
* @return the identity value.
*/
public IdentityProperties identity() {
@@ -77,7 +81,7 @@ public IdentityProperties identity() {
/**
* Set the identity property: The identity property.
- *
+ *
* @param identity the identity value to set.
* @return the LogzMonitorResourceInner object itself.
*/
@@ -86,14 +90,18 @@ public LogzMonitorResourceInner withIdentity(IdentityProperties identity) {
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public LogzMonitorResourceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public LogzMonitorResourceInner withTags(Map tags) {
super.withTags(tags);
@@ -102,7 +110,7 @@ public LogzMonitorResourceInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzSingleSignOnResourceInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzSingleSignOnResourceInner.java
index 4a826de2b6c7..3bbdd0df5573 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzSingleSignOnResourceInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/LogzSingleSignOnResourceInner.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.logz.models.LogzSingleSignOnProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The LogzSingleSignOnResource model. */
+/**
+ * The LogzSingleSignOnResource model.
+ */
@Fluent
public final class LogzSingleSignOnResourceInner extends ProxyResource {
/*
@@ -25,13 +27,15 @@ public final class LogzSingleSignOnResourceInner extends ProxyResource {
@JsonProperty(value = "properties")
private LogzSingleSignOnProperties properties;
- /** Creates an instance of LogzSingleSignOnResourceInner class. */
+ /**
+ * Creates an instance of LogzSingleSignOnResourceInner class.
+ */
public LogzSingleSignOnResourceInner() {
}
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -40,7 +44,7 @@ public SystemData systemData() {
/**
* Get the properties property: The properties property.
- *
+ *
* @return the properties value.
*/
public LogzSingleSignOnProperties properties() {
@@ -49,7 +53,7 @@ public LogzSingleSignOnProperties properties() {
/**
* Set the properties property: The properties property.
- *
+ *
* @param properties the properties value to set.
* @return the LogzSingleSignOnResourceInner object itself.
*/
@@ -60,7 +64,7 @@ public LogzSingleSignOnResourceInner withProperties(LogzSingleSignOnProperties p
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoredResourceInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoredResourceInner.java
index 4b56219c5914..029cae327e00 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoredResourceInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoredResourceInner.java
@@ -8,7 +8,9 @@
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The properties of a resource currently being monitored by the Logz monitor resource. */
+/**
+ * The properties of a resource currently being monitored by the Logz monitor resource.
+ */
@Fluent
public final class MonitoredResourceInner {
/*
@@ -47,13 +49,15 @@ public final class MonitoredResourceInner {
@JsonProperty(value = "reasonForLogsStatus")
private String reasonForLogsStatus;
- /** Creates an instance of MonitoredResourceInner class. */
+ /**
+ * Creates an instance of MonitoredResourceInner class.
+ */
public MonitoredResourceInner() {
}
/**
* Get the id property: The ARM id of the resource.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -62,7 +66,7 @@ public String id() {
/**
* Set the id property: The ARM id of the resource.
- *
+ *
* @param id the id value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -73,7 +77,7 @@ public MonitoredResourceInner withId(String id) {
/**
* Get the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.
- *
+ *
* @return the sendingMetrics value.
*/
public Boolean sendingMetrics() {
@@ -82,7 +86,7 @@ public Boolean sendingMetrics() {
/**
* Set the sendingMetrics property: Flag indicating if resource is sending metrics to Logz.
- *
+ *
* @param sendingMetrics the sendingMetrics value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -94,7 +98,7 @@ public MonitoredResourceInner withSendingMetrics(Boolean sendingMetrics) {
/**
* Get the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
* sending).
- *
+ *
* @return the reasonForMetricsStatus value.
*/
public String reasonForMetricsStatus() {
@@ -104,7 +108,7 @@ public String reasonForMetricsStatus() {
/**
* Set the reasonForMetricsStatus property: Reason for why the resource is sending metrics (or why it is not
* sending).
- *
+ *
* @param reasonForMetricsStatus the reasonForMetricsStatus value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -115,7 +119,7 @@ public MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetrics
/**
* Get the sendingLogs property: Flag indicating if resource is sending logs to Logz.
- *
+ *
* @return the sendingLogs value.
*/
public Boolean sendingLogs() {
@@ -124,7 +128,7 @@ public Boolean sendingLogs() {
/**
* Set the sendingLogs property: Flag indicating if resource is sending logs to Logz.
- *
+ *
* @param sendingLogs the sendingLogs value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -135,7 +139,7 @@ public MonitoredResourceInner withSendingLogs(Boolean sendingLogs) {
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -144,7 +148,7 @@ public SystemData systemData() {
/**
* Get the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
- *
+ *
* @return the reasonForLogsStatus value.
*/
public String reasonForLogsStatus() {
@@ -153,7 +157,7 @@ public String reasonForLogsStatus() {
/**
* Set the reasonForLogsStatus property: Reason for why the resource is sending logs (or why it is not sending).
- *
+ *
* @param reasonForLogsStatus the reasonForLogsStatus value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -164,7 +168,7 @@ public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoringTagRulesInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoringTagRulesInner.java
index 2f4bfc15b339..1d3bb7f30a8b 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoringTagRulesInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/MonitoringTagRulesInner.java
@@ -10,7 +10,9 @@
import com.azure.resourcemanager.logz.models.MonitoringTagRulesProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Capture logs and metrics of Azure resources based on ARM tags. */
+/**
+ * Capture logs and metrics of Azure resources based on ARM tags.
+ */
@Fluent
public final class MonitoringTagRulesInner extends ProxyResource {
/*
@@ -25,13 +27,15 @@ public final class MonitoringTagRulesInner extends ProxyResource {
@JsonProperty(value = "properties")
private MonitoringTagRulesProperties properties;
- /** Creates an instance of MonitoringTagRulesInner class. */
+ /**
+ * Creates an instance of MonitoringTagRulesInner class.
+ */
public MonitoringTagRulesInner() {
}
/**
* Get the systemData property: The system metadata relating to this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -40,7 +44,7 @@ public SystemData systemData() {
/**
* Get the properties property: Definition of the properties for a TagRules resource.
- *
+ *
* @return the properties value.
*/
public MonitoringTagRulesProperties properties() {
@@ -49,7 +53,7 @@ public MonitoringTagRulesProperties properties() {
/**
* Set the properties property: Definition of the properties for a TagRules resource.
- *
+ *
* @param properties the properties value to set.
* @return the MonitoringTagRulesInner object itself.
*/
@@ -60,7 +64,7 @@ public MonitoringTagRulesInner withProperties(MonitoringTagRulesProperties prope
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/OperationResultInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/OperationResultInner.java
index b5f600bf4c9c..5578f742cab6 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/OperationResultInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/OperationResultInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.logz.models.OperationDisplay;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** A Microsoft.Logz REST API operation. */
+/**
+ * A Microsoft.Logz REST API operation.
+ */
@Fluent
public final class OperationResultInner {
/*
@@ -35,13 +37,15 @@ public final class OperationResultInner {
@JsonProperty(value = "origin")
private String origin;
- /** Creates an instance of OperationResultInner class. */
+ /**
+ * Creates an instance of OperationResultInner class.
+ */
public OperationResultInner() {
}
/**
* Get the name property: Operation name, i.e., {provider}/{resource}/{operation}.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -50,7 +54,7 @@ public String name() {
/**
* Set the name property: Operation name, i.e., {provider}/{resource}/{operation}.
- *
+ *
* @param name the name value to set.
* @return the OperationResultInner object itself.
*/
@@ -61,7 +65,7 @@ public OperationResultInner withName(String name) {
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -70,7 +74,7 @@ public Boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is a data action.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the OperationResultInner object itself.
*/
@@ -81,7 +85,7 @@ public OperationResultInner withIsDataAction(Boolean isDataAction) {
/**
* Get the display property: The object that represents the operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -90,7 +94,7 @@ public OperationDisplay display() {
/**
* Set the display property: The object that represents the operation.
- *
+ *
* @param display the display value to set.
* @return the OperationResultInner object itself.
*/
@@ -101,7 +105,7 @@ public OperationResultInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: Origin of the operation.
- *
+ *
* @return the origin value.
*/
public String origin() {
@@ -110,7 +114,7 @@ public String origin() {
/**
* Set the origin property: Origin of the operation.
- *
+ *
* @param origin the origin value to set.
* @return the OperationResultInner object itself.
*/
@@ -121,7 +125,7 @@ public OperationResultInner withOrigin(String origin) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/UserRoleResponseInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/UserRoleResponseInner.java
index b8873cb4ebdd..832e2987bdae 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/UserRoleResponseInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/UserRoleResponseInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.logz.models.UserRole;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Response for checking user's role for Logz.io account. */
+/**
+ * Response for checking user's role for Logz.io account.
+ */
@Fluent
public final class UserRoleResponseInner {
/*
@@ -17,13 +19,15 @@ public final class UserRoleResponseInner {
@JsonProperty(value = "role")
private UserRole role;
- /** Creates an instance of UserRoleResponseInner class. */
+ /**
+ * Creates an instance of UserRoleResponseInner class.
+ */
public UserRoleResponseInner() {
}
/**
* Get the role property: User roles on configured in Logz.io account.
- *
+ *
* @return the role value.
*/
public UserRole role() {
@@ -32,7 +36,7 @@ public UserRole role() {
/**
* Set the role property: User roles on configured in Logz.io account.
- *
+ *
* @param role the role value to set.
* @return the UserRoleResponseInner object itself.
*/
@@ -43,7 +47,7 @@ public UserRoleResponseInner withRole(UserRole role) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMExtensionPayloadInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMExtensionPayloadInner.java
index 675f6c905bf6..b23faddec08c 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMExtensionPayloadInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMExtensionPayloadInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Response of payload to be passed while installing VM agent. */
+/**
+ * Response of payload to be passed while installing VM agent.
+ */
@Fluent
public final class VMExtensionPayloadInner {
/*
@@ -22,13 +24,15 @@ public final class VMExtensionPayloadInner {
@JsonProperty(value = "region")
private String region;
- /** Creates an instance of VMExtensionPayloadInner class. */
+ /**
+ * Creates an instance of VMExtensionPayloadInner class.
+ */
public VMExtensionPayloadInner() {
}
/**
* Get the apiKey property: API Key corresponding to the resource.
- *
+ *
* @return the apiKey value.
*/
public String apiKey() {
@@ -37,7 +41,7 @@ public String apiKey() {
/**
* Set the apiKey property: API Key corresponding to the resource.
- *
+ *
* @param apiKey the apiKey value to set.
* @return the VMExtensionPayloadInner object itself.
*/
@@ -48,7 +52,7 @@ public VMExtensionPayloadInner withApiKey(String apiKey) {
/**
* Get the region property: Logz.io region where the resource has been created.
- *
+ *
* @return the region value.
*/
public String region() {
@@ -57,7 +61,7 @@ public String region() {
/**
* Set the region property: Logz.io region where the resource has been created.
- *
+ *
* @param region the region value to set.
* @return the VMExtensionPayloadInner object itself.
*/
@@ -68,7 +72,7 @@ public VMExtensionPayloadInner withRegion(String region) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMResourcesInner.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMResourcesInner.java
index f14e23c0cff0..4e198281f76d 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMResourcesInner.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/VMResourcesInner.java
@@ -7,7 +7,9 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** VM Resource Ids. */
+/**
+ * VM Resource Ids.
+ */
@Fluent
public final class VMResourcesInner {
/*
@@ -22,13 +24,15 @@ public final class VMResourcesInner {
@JsonProperty(value = "agentVersion")
private String agentVersion;
- /** Creates an instance of VMResourcesInner class. */
+ /**
+ * Creates an instance of VMResourcesInner class.
+ */
public VMResourcesInner() {
}
/**
* Get the id property: Request of a list vm host update operation.
- *
+ *
* @return the id value.
*/
public String id() {
@@ -37,7 +41,7 @@ public String id() {
/**
* Set the id property: Request of a list vm host update operation.
- *
+ *
* @param id the id value to set.
* @return the VMResourcesInner object itself.
*/
@@ -48,7 +52,7 @@ public VMResourcesInner withId(String id) {
/**
* Get the agentVersion property: Version of the Logz agent installed on the VM.
- *
+ *
* @return the agentVersion value.
*/
public String agentVersion() {
@@ -57,7 +61,7 @@ public String agentVersion() {
/**
* Set the agentVersion property: Version of the Logz agent installed on the VM.
- *
+ *
* @param agentVersion the agentVersion value to set.
* @return the VMResourcesInner object itself.
*/
@@ -68,7 +72,7 @@ public VMResourcesInner withAgentVersion(String agentVersion) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/package-info.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/package-info.java
index b224bb213068..d3e1ac5930d2 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/package-info.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/models/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for MicrosoftLogz. null. */
+/**
+ * Package containing the inner data models for MicrosoftLogz.
+ * null.
+ */
package com.azure.resourcemanager.logz.fluent.models;
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/package-info.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/package-info.java
index 00f933cdfd71..06ec5aa8ae87 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/package-info.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/fluent/package-info.java
@@ -2,5 +2,8 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for MicrosoftLogz. null. */
+/**
+ * Package containing the service clients for MicrosoftLogz.
+ * null.
+ */
package com.azure.resourcemanager.logz.fluent;
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzMonitorResourceImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzMonitorResourceImpl.java
index 82681b6661e9..3ad679224d4f 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzMonitorResourceImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzMonitorResourceImpl.java
@@ -95,20 +95,14 @@ public LogzMonitorResourceImpl withExistingResourceGroup(String resourceGroupNam
}
public LogzMonitorResource create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .create(resourceGroupName, monitorName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getMonitors().create(resourceGroupName, monitorName,
+ this.innerModel(), Context.NONE);
return this;
}
public LogzMonitorResource create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .create(resourceGroupName, monitorName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getMonitors().create(resourceGroupName, monitorName,
+ this.innerModel(), context);
return this;
}
@@ -124,27 +118,19 @@ public LogzMonitorResourceImpl update() {
}
public LogzMonitorResource apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .updateWithResponse(resourceGroupName, monitorName, updateBody, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, Context.NONE).getValue();
return this;
}
public LogzMonitorResource apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .updateWithResponse(resourceGroupName, monitorName, updateBody, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getMonitors()
+ .updateWithResponse(resourceGroupName, monitorName, updateBody, context).getValue();
return this;
}
- LogzMonitorResourceImpl(
- LogzMonitorResourceInner innerObject, com.azure.resourcemanager.logz.LogzManager serviceManager) {
+ LogzMonitorResourceImpl(LogzMonitorResourceInner innerObject,
+ com.azure.resourcemanager.logz.LogzManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
@@ -152,22 +138,14 @@ public LogzMonitorResource apply(Context context) {
}
public LogzMonitorResource refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .getByResourceGroupWithResponse(resourceGroupName, monitorName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, Context.NONE).getValue();
return this;
}
public LogzMonitorResource refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getMonitors()
- .getByResourceGroupWithResponse(resourceGroupName, monitorName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getMonitors()
+ .getByResourceGroupWithResponse(resourceGroupName, monitorName, context).getValue();
return this;
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzSingleSignOnResourceImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzSingleSignOnResourceImpl.java
index 5652cd107512..2e87762166a4 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzSingleSignOnResourceImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/LogzSingleSignOnResourceImpl.java
@@ -61,20 +61,14 @@ public LogzSingleSignOnResourceImpl withExistingMonitor(String resourceGroupName
}
public LogzSingleSignOnResource create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns().createOrUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), Context.NONE);
return this;
}
public LogzSingleSignOnResource create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns().createOrUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), context);
return this;
}
@@ -89,25 +83,19 @@ public LogzSingleSignOnResourceImpl update() {
}
public LogzSingleSignOnResource apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns().createOrUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), Context.NONE);
return this;
}
public LogzSingleSignOnResource apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .createOrUpdate(resourceGroupName, monitorName, configurationName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns().createOrUpdate(resourceGroupName,
+ monitorName, configurationName, this.innerModel(), context);
return this;
}
- LogzSingleSignOnResourceImpl(
- LogzSingleSignOnResourceInner innerObject, com.azure.resourcemanager.logz.LogzManager serviceManager) {
+ LogzSingleSignOnResourceImpl(LogzSingleSignOnResourceInner innerObject,
+ com.azure.resourcemanager.logz.LogzManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
@@ -116,22 +104,14 @@ public LogzSingleSignOnResource apply(Context context) {
}
public LogzSingleSignOnResource refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .getWithResponse(resourceGroupName, monitorName, configurationName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, Context.NONE).getValue();
return this;
}
public LogzSingleSignOnResource refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getSingleSignOns()
- .getWithResponse(resourceGroupName, monitorName, configurationName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getSingleSignOns()
+ .getWithResponse(resourceGroupName, monitorName, configurationName, context).getValue();
return this;
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzBuilder.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzBuilder.java
index 7e1ed7f7f44a..04b0bb0be8d6 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzBuilder.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzBuilder.java
@@ -14,8 +14,10 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the MicrosoftLogzImpl type. */
-@ServiceClientBuilder(serviceClients = {MicrosoftLogzImpl.class})
+/**
+ * A builder for creating a new instance of the MicrosoftLogzImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { MicrosoftLogzImpl.class })
public final class MicrosoftLogzBuilder {
/*
* The ID of the target subscription.
@@ -24,7 +26,7 @@ public final class MicrosoftLogzBuilder {
/**
* Sets The ID of the target subscription.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the MicrosoftLogzBuilder.
*/
@@ -40,7 +42,7 @@ public MicrosoftLogzBuilder subscriptionId(String subscriptionId) {
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the MicrosoftLogzBuilder.
*/
@@ -56,7 +58,7 @@ public MicrosoftLogzBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the MicrosoftLogzBuilder.
*/
@@ -72,7 +74,7 @@ public MicrosoftLogzBuilder environment(AzureEnvironment environment) {
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the MicrosoftLogzBuilder.
*/
@@ -88,7 +90,7 @@ public MicrosoftLogzBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the MicrosoftLogzBuilder.
*/
@@ -104,7 +106,7 @@ public MicrosoftLogzBuilder defaultPollInterval(Duration defaultPollInterval) {
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the MicrosoftLogzBuilder.
*/
@@ -115,30 +117,20 @@ public MicrosoftLogzBuilder serializerAdapter(SerializerAdapter serializerAdapte
/**
* Builds an instance of MicrosoftLogzImpl with the provided parameters.
- *
+ *
* @return an instance of MicrosoftLogzImpl.
*/
public MicrosoftLogzImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
- HttpPipeline localPipeline =
- (pipeline != null)
- ? pipeline
- : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- Duration localDefaultPollInterval =
- (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
- SerializerAdapter localSerializerAdapter =
- (serializerAdapter != null)
- ? serializerAdapter
- : SerializerFactory.createDefaultManagementSerializerAdapter();
- MicrosoftLogzImpl client =
- new MicrosoftLogzImpl(
- localPipeline,
- localSerializerAdapter,
- localDefaultPollInterval,
- localEnvironment,
- subscriptionId,
- localEndpoint);
+ HttpPipeline localPipeline = (pipeline != null) ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ MicrosoftLogzImpl client = new MicrosoftLogzImpl(localPipeline, localSerializerAdapter,
+ localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzImpl.java
index 8691eaa5aacc..6f9192b7ad2f 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MicrosoftLogzImpl.java
@@ -39,159 +39,187 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the MicrosoftLogzImpl type. */
+/**
+ * Initializes a new instance of the MicrosoftLogzImpl type.
+ */
@ServiceClient(builder = MicrosoftLogzBuilder.class)
public final class MicrosoftLogzImpl implements MicrosoftLogz {
- /** The ID of the target subscription. */
+ /**
+ * The ID of the target subscription.
+ */
private final String subscriptionId;
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
- /** server parameter. */
+ /**
+ * server parameter.
+ */
private final String endpoint;
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
+ /**
+ * Api Version.
+ */
private final String apiVersion;
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * The HTTP pipeline to send requests through.
+ */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
- *
+ *
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
- /** The serializer to serialize an object into a string. */
+ /**
+ * The serializer to serialize an object into a string.
+ */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
- *
+ *
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
- /** The default poll interval for long-running operation. */
+ /**
+ * The default poll interval for long-running operation.
+ */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
- *
+ *
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The MonitorsClient object to access its operations. */
+ /**
+ * The MonitorsClient object to access its operations.
+ */
private final MonitorsClient monitors;
/**
* Gets the MonitorsClient object to access its operations.
- *
+ *
* @return the MonitorsClient object.
*/
public MonitorsClient getMonitors() {
return this.monitors;
}
- /** The OperationsClient object to access its operations. */
+ /**
+ * The OperationsClient object to access its operations.
+ */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
- *
+ *
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
- /** The TagRulesClient object to access its operations. */
+ /**
+ * The TagRulesClient object to access its operations.
+ */
private final TagRulesClient tagRules;
/**
* Gets the TagRulesClient object to access its operations.
- *
+ *
* @return the TagRulesClient object.
*/
public TagRulesClient getTagRules() {
return this.tagRules;
}
- /** The SingleSignOnsClient object to access its operations. */
+ /**
+ * The SingleSignOnsClient object to access its operations.
+ */
private final SingleSignOnsClient singleSignOns;
/**
* Gets the SingleSignOnsClient object to access its operations.
- *
+ *
* @return the SingleSignOnsClient object.
*/
public SingleSignOnsClient getSingleSignOns() {
return this.singleSignOns;
}
- /** The SubAccountsClient object to access its operations. */
+ /**
+ * The SubAccountsClient object to access its operations.
+ */
private final SubAccountsClient subAccounts;
/**
* Gets the SubAccountsClient object to access its operations.
- *
+ *
* @return the SubAccountsClient object.
*/
public SubAccountsClient getSubAccounts() {
return this.subAccounts;
}
- /** The SubAccountTagRulesClient object to access its operations. */
+ /**
+ * The SubAccountTagRulesClient object to access its operations.
+ */
private final SubAccountTagRulesClient subAccountTagRules;
/**
* Gets the SubAccountTagRulesClient object to access its operations.
- *
+ *
* @return the SubAccountTagRulesClient object.
*/
public SubAccountTagRulesClient getSubAccountTagRules() {
return this.subAccountTagRules;
}
- /** The MonitorOperationsClient object to access its operations. */
+ /**
+ * The MonitorOperationsClient object to access its operations.
+ */
private final MonitorOperationsClient monitorOperations;
/**
* Gets the MonitorOperationsClient object to access its operations.
- *
+ *
* @return the MonitorOperationsClient object.
*/
public MonitorOperationsClient getMonitorOperations() {
@@ -200,7 +228,7 @@ public MonitorOperationsClient getMonitorOperations() {
/**
* Initializes an instance of MicrosoftLogz client.
- *
+ *
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
@@ -208,13 +236,8 @@ public MonitorOperationsClient getMonitorOperations() {
* @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
- MicrosoftLogzImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- Duration defaultPollInterval,
- AzureEnvironment environment,
- String subscriptionId,
- String endpoint) {
+ MicrosoftLogzImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, Duration defaultPollInterval,
+ AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
@@ -232,7 +255,7 @@ public MonitorOperationsClient getMonitorOperations() {
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -241,7 +264,7 @@ public Context getContext() {
/**
* Merges default client context with provided context.
- *
+ *
* @param context the context to be merged with default client context.
* @return the merged context.
*/
@@ -251,7 +274,7 @@ public Context mergeContext(Context context) {
/**
* Gets long running operation result.
- *
+ *
* @param activationResponse the response of activation operation.
* @param httpPipeline the http pipeline.
* @param pollResultType type of poll result.
@@ -261,26 +284,15 @@ public Context mergeContext(Context context) {
* @param type of final result.
* @return poller flux for poll result and final result.
*/
- public PollerFlux, U> getLroResult(
- Mono>> activationResponse,
- HttpPipeline httpPipeline,
- Type pollResultType,
- Type finalResultType,
- Context context) {
- return PollerFactory
- .create(
- serializerAdapter,
- httpPipeline,
- pollResultType,
- finalResultType,
- defaultPollInterval,
- activationResponse,
- context);
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
}
/**
* Gets the final result, or an error, based on last async poll response.
- *
+ *
* @param response the last async poll response.
* @param type of poll result.
* @param type of final result.
@@ -293,19 +305,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
HttpResponse errorResponse = null;
PollResult.Error lroError = response.getValue().getError();
if (lroError != null) {
- errorResponse =
- new HttpResponseImpl(
- lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
errorMessage = response.getValue().getError().getMessage();
String errorBody = response.getValue().getError().getResponseBody();
if (errorBody != null) {
// try to deserialize error body to ManagementError
try {
- managementError =
- this
- .getSerializerAdapter()
- .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ managementError = this.getSerializerAdapter().deserialize(errorBody, ManagementError.class,
+ SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsClientImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsClientImpl.java
index be12da1fc432..373fa959ee8c 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsClientImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsClientImpl.java
@@ -34,22 +34,28 @@
import com.azure.resourcemanager.logz.models.VMResourcesListResponse;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in MonitorOperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorOperationsClient.
+ */
public final class MonitorOperationsClientImpl implements MonitorOperationsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final MonitorOperationsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final MicrosoftLogzImpl client;
/**
* Initializes an instance of MonitorOperationsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
MonitorOperationsClientImpl(MicrosoftLogzImpl client) {
- this.service =
- RestProxy.create(MonitorOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.service
+ = RestProxy.create(MonitorOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
@@ -60,98 +66,72 @@ public final class MonitorOperationsClientImpl implements MonitorOperationsClien
@Host("{$host}")
@ServiceInterface(name = "MicrosoftLogzMonitor")
public interface MonitorOperationsService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}/vmHostPayload")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostPayload")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> vMHostPayload(
- @HostParam("$host") String endpoint,
+ Mono> vMHostPayload(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}/vmHostUpdate")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostUpdate")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVmHostUpdate(
- @HostParam("$host") String endpoint,
+ Mono> listVmHostUpdate(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") VMHostUpdateRequest body,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}/listVMHosts")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") VMHostUpdateRequest body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listVMHosts")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listVMHosts(
- @HostParam("$host") String endpoint,
+ Mono> listVMHosts(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listVmHostUpdateNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listVMHostsNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @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 payload to be passed while installing VM agent along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> vMHostPayloadWithResponseAsync(
- String resourceGroupName, String monitorName) {
+ private Mono> vMHostPayloadWithResponseAsync(String resourceGroupName,
+ String monitorName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -162,23 +142,14 @@ private Mono> vMHostPayloadWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .vMHostPayload(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context))
+ .withContext(context -> service.vMHostPayload(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, this.client.getApiVersion(), accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -186,22 +157,18 @@ private Mono> vMHostPayloadWithResponseAsync(
* @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 payload to be passed while installing VM agent along with {@link Response} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> vMHostPayloadWithResponseAsync(
- String resourceGroupName, String monitorName, Context context) {
+ private Mono> vMHostPayloadWithResponseAsync(String resourceGroupName,
+ String monitorName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -212,20 +179,13 @@ private Mono> vMHostPayloadWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .vMHostPayload(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context);
+ return service.vMHostPayload(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, this.client.getApiVersion(), accept, context);
}
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -241,7 +201,7 @@ private Mono vMHostPayloadAsync(String resourceGroupNam
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -251,14 +211,14 @@ private Mono vMHostPayloadAsync(String resourceGroupNam
* @return response of payload to be passed while installing VM agent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response vMHostPayloadWithResponse(
- String resourceGroupName, String monitorName, Context context) {
+ public Response vMHostPayloadWithResponse(String resourceGroupName, String monitorName,
+ Context context) {
return vMHostPayloadWithResponseAsync(resourceGroupName, monitorName, context).block();
}
/**
* Returns the payload that needs to be passed in the request body for installing Logz.io agent on a VM.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -273,7 +233,7 @@ public VMExtensionPayloadInner vMHostPayload(String resourceGroupName, String mo
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -281,22 +241,18 @@ public VMExtensionPayloadInner vMHostPayload(String resourceGroupName, String mo
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVmHostUpdateSinglePageAsync(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body) {
+ private Mono> listVmHostUpdateSinglePageAsync(String resourceGroupName,
+ String monitorName, VMHostUpdateRequest body) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -310,33 +266,16 @@ private Mono> listVmHostUpdateSinglePageAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .listVmHostUpdate(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- body,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.listVmHostUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, this.client.getApiVersion(), body, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -345,22 +284,18 @@ private Mono> listVmHostUpdateSinglePageAsync(
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVmHostUpdateSinglePageAsync(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body, Context context) {
+ private Mono> listVmHostUpdateSinglePageAsync(String resourceGroupName,
+ String monitorName, VMHostUpdateRequest body, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -375,29 +310,15 @@ private Mono> listVmHostUpdateSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listVmHostUpdate(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- body,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listVmHostUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, this.client.getApiVersion(), body, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -407,16 +328,15 @@ private Mono> listVmHostUpdateSinglePageAsync(
* @return response of a list VM Host Update Operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listVmHostUpdateAsync(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body) {
- return new PagedFlux<>(
- () -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body),
+ private PagedFlux listVmHostUpdateAsync(String resourceGroupName, String monitorName,
+ VMHostUpdateRequest body) {
+ return new PagedFlux<>(() -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body),
nextLink -> listVmHostUpdateNextSinglePageAsync(nextLink));
}
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -427,14 +347,13 @@ private PagedFlux listVmHostUpdateAsync(
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listVmHostUpdateAsync(String resourceGroupName, String monitorName) {
final VMHostUpdateRequest body = null;
- return new PagedFlux<>(
- () -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body),
+ return new PagedFlux<>(() -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body),
nextLink -> listVmHostUpdateNextSinglePageAsync(nextLink));
}
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -445,16 +364,15 @@ private PagedFlux listVmHostUpdateAsync(String resourceGroupNa
* @return response of a list VM Host Update Operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listVmHostUpdateAsync(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body, Context context) {
- return new PagedFlux<>(
- () -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body, context),
+ private PagedFlux listVmHostUpdateAsync(String resourceGroupName, String monitorName,
+ VMHostUpdateRequest body, Context context) {
+ return new PagedFlux<>(() -> listVmHostUpdateSinglePageAsync(resourceGroupName, monitorName, body, context),
nextLink -> listVmHostUpdateNextSinglePageAsync(nextLink, context));
}
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -470,7 +388,7 @@ public PagedIterable listVmHostUpdate(String resourceGroupName
/**
* Sending request to update the collection when Logz.io agent has been installed on a VM for a given monitor.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param body Request body to update the collection for agent installed in the given monitor.
@@ -481,36 +399,32 @@ public PagedIterable listVmHostUpdate(String resourceGroupName
* @return response of a list VM Host Update Operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listVmHostUpdate(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body, Context context) {
+ public PagedIterable listVmHostUpdate(String resourceGroupName, String monitorName,
+ VMHostUpdateRequest body, Context context) {
return new PagedIterable<>(listVmHostUpdateAsync(resourceGroupName, monitorName, body, context));
}
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVMHostsSinglePageAsync(
- String resourceGroupName, String monitorName) {
+ private Mono> listVMHostsSinglePageAsync(String resourceGroupName,
+ String monitorName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -521,32 +435,16 @@ private Mono> listVMHostsSinglePageAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .listVMHosts(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.listVMHosts(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -554,22 +452,18 @@ private Mono> listVMHostsSinglePageAsync(
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVMHostsSinglePageAsync(
- String resourceGroupName, String monitorName, Context context) {
+ private Mono> listVMHostsSinglePageAsync(String resourceGroupName,
+ String monitorName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -581,28 +475,15 @@ private Mono> listVMHostsSinglePageAsync(
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listVMHosts(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listVMHosts(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, monitorName,
+ this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -612,14 +493,13 @@ private Mono> listVMHostsSinglePageAsync(
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listVMHostsAsync(String resourceGroupName, String monitorName) {
- return new PagedFlux<>(
- () -> listVMHostsSinglePageAsync(resourceGroupName, monitorName),
+ return new PagedFlux<>(() -> listVMHostsSinglePageAsync(resourceGroupName, monitorName),
nextLink -> listVMHostsNextSinglePageAsync(nextLink));
}
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -629,16 +509,15 @@ private PagedFlux listVMHostsAsync(String resourceGroupName, S
* @return response of a list VM Host Update Operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listVMHostsAsync(
- String resourceGroupName, String monitorName, Context context) {
- return new PagedFlux<>(
- () -> listVMHostsSinglePageAsync(resourceGroupName, monitorName, context),
+ private PagedFlux listVMHostsAsync(String resourceGroupName, String monitorName,
+ Context context) {
+ return new PagedFlux<>(() -> listVMHostsSinglePageAsync(resourceGroupName, monitorName, context),
nextLink -> listVMHostsNextSinglePageAsync(nextLink, context));
}
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -653,7 +532,7 @@ public PagedIterable listVMHosts(String resourceGroupName, Str
/**
* List the compute resources currently being monitored by the Logz main account resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -669,14 +548,15 @@ public PagedIterable listVMHosts(String resourceGroupName, Str
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listVmHostUpdateNextSinglePageAsync(String nextLink) {
@@ -684,75 +564,58 @@ private Mono> listVmHostUpdateNextSinglePageAsyn
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listVmHostUpdateNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listVmHostUpdateNextSinglePageAsync(
- String nextLink, Context context) {
+ private Mono> listVmHostUpdateNextSinglePageAsync(String nextLink,
+ Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listVmHostUpdateNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listVmHostUpdateNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listVMHostsNextSinglePageAsync(String nextLink) {
@@ -760,37 +623,29 @@ private Mono> listVMHostsNextSinglePageAsync(Str
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listVMHostsNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(),
+ res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Get the next page of items.
- *
+ *
* @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * The nextLink parameter.
* @param context The context to associate with this operation.
* @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 VM Host Update Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listVMHostsNextSinglePageAsync(String nextLink, Context context) {
@@ -798,23 +653,13 @@ private Mono> listVMHostsNextSinglePageAsync(Str
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
}
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listVMHostsNext(nextLink, this.client.getEndpoint(), accept, context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ return service.listVMHostsNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsImpl.java
index 27e1daad47ad..02800d25fd6a 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorOperationsImpl.java
@@ -24,21 +24,18 @@ public final class MonitorOperationsImpl implements MonitorOperations {
private final com.azure.resourcemanager.logz.LogzManager serviceManager;
- public MonitorOperationsImpl(
- MonitorOperationsClient innerClient, com.azure.resourcemanager.logz.LogzManager serviceManager) {
+ public MonitorOperationsImpl(MonitorOperationsClient innerClient,
+ com.azure.resourcemanager.logz.LogzManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
- public Response vMHostPayloadWithResponse(
- String resourceGroupName, String monitorName, Context context) {
- Response inner =
- this.serviceClient().vMHostPayloadWithResponse(resourceGroupName, monitorName, context);
+ public Response vMHostPayloadWithResponse(String resourceGroupName, String monitorName,
+ Context context) {
+ Response inner
+ = this.serviceClient().vMHostPayloadWithResponse(resourceGroupName, monitorName, context);
if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new VMExtensionPayloadImpl(inner.getValue(), this.manager()));
} else {
return null;
@@ -59,10 +56,10 @@ public PagedIterable listVmHostUpdate(String resourceGroupName, Str
return Utils.mapPage(inner, inner1 -> new VMResourcesImpl(inner1, this.manager()));
}
- public PagedIterable listVmHostUpdate(
- String resourceGroupName, String monitorName, VMHostUpdateRequest body, Context context) {
- PagedIterable inner =
- this.serviceClient().listVmHostUpdate(resourceGroupName, monitorName, body, context);
+ public PagedIterable listVmHostUpdate(String resourceGroupName, String monitorName,
+ VMHostUpdateRequest body, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listVmHostUpdate(resourceGroupName, monitorName, body, context);
return Utils.mapPage(inner, inner1 -> new VMResourcesImpl(inner1, this.manager()));
}
@@ -72,8 +69,8 @@ public PagedIterable listVMHosts(String resourceGroupName, String m
}
public PagedIterable listVMHosts(String resourceGroupName, String monitorName, Context context) {
- PagedIterable inner =
- this.serviceClient().listVMHosts(resourceGroupName, monitorName, context);
+ PagedIterable inner
+ = this.serviceClient().listVMHosts(resourceGroupName, monitorName, context);
return Utils.mapPage(inner, inner1 -> new VMResourcesImpl(inner1, this.manager()));
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoredResourceImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoredResourceImpl.java
index 7d93209c8e0b..04cc9cf746fa 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoredResourceImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoredResourceImpl.java
@@ -13,8 +13,8 @@ public final class MonitoredResourceImpl implements MonitoredResource {
private final com.azure.resourcemanager.logz.LogzManager serviceManager;
- MonitoredResourceImpl(
- MonitoredResourceInner innerObject, com.azure.resourcemanager.logz.LogzManager serviceManager) {
+ MonitoredResourceImpl(MonitoredResourceInner innerObject,
+ com.azure.resourcemanager.logz.LogzManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoringTagRulesImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoringTagRulesImpl.java
index c7820bc49c52..8d20df2ea6a0 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoringTagRulesImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitoringTagRulesImpl.java
@@ -61,23 +61,16 @@ public MonitoringTagRulesImpl withExistingMonitor(String resourceGroupName, Stri
}
public MonitoringTagRules create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .createOrUpdateWithResponse(
- resourceGroupName, monitorName, ruleSetName, this.innerModel(), Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), Context.NONE)
+ .getValue();
return this;
}
public MonitoringTagRules create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), context)
+ .getValue();
return this;
}
@@ -92,28 +85,21 @@ public MonitoringTagRulesImpl update() {
}
public MonitoringTagRules apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .createOrUpdateWithResponse(
- resourceGroupName, monitorName, ruleSetName, this.innerModel(), Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), Context.NONE)
+ .getValue();
return this;
}
public MonitoringTagRules apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .createOrUpdateWithResponse(resourceGroupName, monitorName, ruleSetName, this.innerModel(), context)
+ .getValue();
return this;
}
- MonitoringTagRulesImpl(
- MonitoringTagRulesInner innerObject, com.azure.resourcemanager.logz.LogzManager serviceManager) {
+ MonitoringTagRulesImpl(MonitoringTagRulesInner innerObject,
+ com.azure.resourcemanager.logz.LogzManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
@@ -122,22 +108,14 @@ public MonitoringTagRules apply(Context context) {
}
public MonitoringTagRules refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .getWithResponse(resourceGroupName, monitorName, ruleSetName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .getWithResponse(resourceGroupName, monitorName, ruleSetName, Context.NONE).getValue();
return this;
}
public MonitoringTagRules refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getTagRules()
- .getWithResponse(resourceGroupName, monitorName, ruleSetName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient().getTagRules()
+ .getWithResponse(resourceGroupName, monitorName, ruleSetName, context).getValue();
return this;
}
diff --git a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorsClientImpl.java b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorsClientImpl.java
index cf2a999fdfee..a08931448782 100644
--- a/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorsClientImpl.java
+++ b/sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/MonitorsClientImpl.java
@@ -46,17 +46,23 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** An instance of this class provides access to all the operations defined in MonitorsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in MonitorsClient.
+ */
public final class MonitorsClientImpl implements MonitorsClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final MonitorsService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final MicrosoftLogzImpl client;
/**
* Initializes an instance of MonitorsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
MonitorsClientImpl(MicrosoftLogzImpl client) {
@@ -65,172 +71,123 @@ public final class MonitorsClientImpl implements MonitorsClient {
}
/**
- * The interface defining all the services for MicrosoftLogzMonitors to be used by the proxy service to perform REST
- * calls.
+ * The interface defining all the services for MicrosoftLogzMonitors to be used by the proxy service to perform
+ * REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "MicrosoftLogzMonitor")
public interface MonitorsService {
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}/listMonitoredResources")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listMonitoredResources")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listMonitoredResources(
- @HostParam("$host") String endpoint,
+ Mono> listMonitoredResources(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Logz/monitors")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
+ Mono> list(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}")
- @ExpectedResponses({200, 201})
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
+ Mono>> create(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") LogzMonitorResourceInner body,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") LogzMonitorResourceInner body,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> update(
- @HostParam("$host") String endpoint,
+ Mono> update(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
@QueryParam("api-version") String apiVersion,
@BodyParam("application/json") LogzMonitorResourceUpdateParameters body,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}")
- @ExpectedResponses({200, 202, 204})
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors"
- + "/{monitorName}/listUserRoles")
- @ExpectedResponses({200})
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listUserRoles")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listUserRoles(
- @HostParam("$host") String endpoint,
+ Mono> listUserRoles(@HostParam("$host") String endpoint,
@PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("monitorName") String monitorName,
- @QueryParam("api-version") String apiVersion,
- @BodyParam("application/json") UserRoleRequest body,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("monitorName") String monitorName,
+ @QueryParam("api-version") String apiVersion, @BodyParam("application/json") UserRoleRequest body,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listMonitoredResourcesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listUserRolesNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -239,19 +196,15 @@ Mono> listUserRolesNext(
* @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMonitoredResourcesSinglePageAsync(
- String resourceGroupName, String monitorName) {
+ private Mono> listMonitoredResourcesSinglePageAsync(String resourceGroupName,
+ String monitorName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -263,31 +216,16 @@ private Mono> listMonitoredResourcesSingle
final String accept = "application/json";
return FluxUtil
.withContext(
- context ->
- service
- .listMonitoredResources(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ context -> service.listMonitoredResources(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, monitorName, this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -297,19 +235,15 @@ private Mono> listMonitoredResourcesSingle
* @return response of a list operation along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listMonitoredResourcesSinglePageAsync(
- String resourceGroupName, String monitorName, Context context) {
+ private Mono> listMonitoredResourcesSinglePageAsync(String resourceGroupName,
+ String monitorName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -321,28 +255,15 @@ private Mono> listMonitoredResourcesSingle
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .listMonitoredResources(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- monitorName,
- this.client.getApiVersion(),
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .listMonitoredResources(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ monitorName, this.client.getApiVersion(), accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -351,16 +272,15 @@ private Mono> listMonitoredResourcesSingle
* @return response of a list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listMonitoredResourcesAsync(
- String resourceGroupName, String monitorName) {
- return new PagedFlux<>(
- () -> listMonitoredResourcesSinglePageAsync(resourceGroupName, monitorName),
+ private PagedFlux listMonitoredResourcesAsync(String resourceGroupName,
+ String monitorName) {
+ return new PagedFlux<>(() -> listMonitoredResourcesSinglePageAsync(resourceGroupName, monitorName),
nextLink -> listMonitoredResourcesNextSinglePageAsync(nextLink));
}
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -370,16 +290,15 @@ private PagedFlux listMonitoredResourcesAsync(
* @return response of a list operation as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listMonitoredResourcesAsync(
- String resourceGroupName, String monitorName, Context context) {
- return new PagedFlux<>(
- () -> listMonitoredResourcesSinglePageAsync(resourceGroupName, monitorName, context),
+ private PagedFlux listMonitoredResourcesAsync(String resourceGroupName, String monitorName,
+ Context context) {
+ return new PagedFlux<>(() -> listMonitoredResourcesSinglePageAsync(resourceGroupName, monitorName, context),
nextLink -> listMonitoredResourcesNextSinglePageAsync(nextLink, context));
}
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -394,7 +313,7 @@ public PagedIterable listMonitoredResources(String resou
/**
* List the resources currently being monitored by the Logz monitor resource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
@@ -404,14 +323,14 @@ public PagedIterable listMonitoredResources(String resou
* @return response of a list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listMonitoredResources(
- String resourceGroupName, String monitorName, Context context) {
+ public PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
+ Context context) {
return new PagedIterable<>(listMonitoredResourcesAsync(resourceGroupName, monitorName, context));
}
/**
* List all monitors under the specified subscription.
- *
+ *
* @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 along with {@link PagedResponse} on successful completion of {@link Mono}.
@@ -419,43 +338,25 @@ public PagedIterable listMonitoredResources(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null))
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ this.client.getApiVersion(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* List all monitors under the specified subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -465,53 +366,38 @@ private Mono> listSinglePageAsync() {
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
final String accept = "application/json";
context = this.client.mergeContext(context);
return service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- this.client.getApiVersion(),
- accept,
+ .list(this.client.getEndpoint(), this.client.getSubscriptionId(), this.client.getApiVersion(), accept,
context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(),
- res.getStatusCode(),
- res.getHeaders(),
- res.getValue().value(),
- res.getValue().nextLink(),
- null));
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
* List all monitors under the specified subscription.
- *
+ *
* @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 as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
- return new PagedFlux<>(
- () -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
}
/**
* List all monitors under the specified subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -520,13 +406,13 @@ private PagedFlux