net.bytebuddy
byte-buddy
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/DynatraceManager.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/DynatraceManager.java
index 471551162285c..cf1c749b5116b 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/DynatraceManager.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/DynatraceManager.java
@@ -40,7 +40,9 @@
import java.util.Objects;
import java.util.stream.Collectors;
-/** Entry point to DynatraceManager. */
+/**
+ * Entry point to DynatraceManager.
+ */
public final class DynatraceManager {
private Monitors monitors;
@@ -64,7 +66,7 @@ private DynatraceManager(HttpPipeline httpPipeline, AzureProfile profile, Durati
/**
* Creates an instance of Dynatrace service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the Dynatrace service API instance.
@@ -77,7 +79,7 @@ public static DynatraceManager authenticate(TokenCredential credential, AzurePro
/**
* Creates an instance of Dynatrace service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the Dynatrace service API instance.
@@ -90,14 +92,16 @@ public static DynatraceManager authenticate(HttpPipeline httpPipeline, AzureProf
/**
* Gets a Configurable instance that can be used to create DynatraceManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new DynatraceManager.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);
@@ -169,8 +173,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.
@@ -212,7 +216,7 @@ public DynatraceManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.dynatrace")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.4");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -260,7 +264,7 @@ public DynatraceManager authenticate(TokenCredential credential, AzureProfile pr
/**
* Gets the resource collection API of Monitors. It manages MonitorResource.
- *
+ *
* @return Resource collection API of Monitors.
*/
public Monitors monitors() {
@@ -272,7 +276,7 @@ public Monitors monitors() {
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -284,7 +288,7 @@ public Operations operations() {
/**
* Gets the resource collection API of TagRules. It manages TagRule.
- *
+ *
* @return Resource collection API of TagRules.
*/
public TagRules tagRules() {
@@ -296,7 +300,7 @@ public TagRules tagRules() {
/**
* Gets the resource collection API of SingleSignOns. It manages DynatraceSingleSignOnResource.
- *
+ *
* @return Resource collection API of SingleSignOns.
*/
public SingleSignOns singleSignOns() {
@@ -309,7 +313,7 @@ public SingleSignOns singleSignOns() {
/**
* Gets wrapped service client DynatraceObservability providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
- *
+ *
* @return Wrapped service client DynatraceObservability.
*/
public DynatraceObservability serviceClient() {
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/DynatraceObservability.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/DynatraceObservability.java
index 4e03dd3edbd7d..33d2bbea44e78 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/DynatraceObservability.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/DynatraceObservability.java
@@ -7,67 +7,69 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for DynatraceObservability class. */
+/**
+ * The interface for DynatraceObservability class.
+ */
public interface DynatraceObservability {
/**
* 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();
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/MonitorsClient.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/MonitorsClient.java
index 4d7fb6f2776b0..c60b6d15340f2 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/MonitorsClient.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/MonitorsClient.java
@@ -25,33 +25,35 @@
import com.azure.resourcemanager.dynatrace.models.MonitorResourceUpdate;
import com.azure.resourcemanager.dynatrace.models.SsoDetailsRequest;
-/** 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 Dynatrace 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.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listMonitoredResources(String resourceGroupName, String monitorName);
/**
* List the resources currently being monitored by the Dynatrace 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
@@ -59,7 +61,7 @@ PagedIterable listMonitoredResources(String resourceGrou
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -74,7 +76,7 @@ Response getVMHostPayloadWithResponse(String resourceGr
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -87,7 +89,7 @@ Response getVMHostPayloadWithResponse(String resourceGr
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -102,7 +104,7 @@ Response getByResourceGroupWithResponse(String resourceGro
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -115,7 +117,7 @@ Response getByResourceGroupWithResponse(String resourceGro
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -130,7 +132,7 @@ SyncPoller, MonitorResourceInner> beginCreateOr
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -146,7 +148,7 @@ SyncPoller, MonitorResourceInner> beginCreateOr
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -160,7 +162,7 @@ SyncPoller, MonitorResourceInner> beginCreateOr
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -176,7 +178,7 @@ MonitorResourceInner createOrUpdate(String resourceGroupName, String monitorName
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -192,7 +194,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -206,7 +208,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -219,7 +221,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -233,7 +235,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -245,7 +247,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -258,7 +260,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation as paginated response with {@link PagedIterable}.
@@ -268,7 +270,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @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.
@@ -280,7 +282,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List MonitorResource resources by 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.
@@ -292,7 +294,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List MonitorResource resources by 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.
@@ -305,13 +307,13 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
- * status code 404.
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace SaaS resource details of a tenant under a specific subscription along with {@link Response}.
*/
@@ -321,12 +323,12 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
- * status code 404.
+ * status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace SaaS resource details of a tenant under a specific subscription.
*/
@@ -336,7 +338,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -349,7 +351,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -363,7 +365,7 @@ Response updateWithResponse(String resourceGroupName, Stri
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @param context The context to associate with this operation.
@@ -378,7 +380,7 @@ Response getMetricStatusWithResponse(String resource
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -391,36 +393,36 @@ Response getMetricStatusWithResponse(String resource
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with {@link
- * PagedIterable}.
+ * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAppServices(String resourceGroupName, String monitorName);
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with {@link
- * PagedIterable}.
+ * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listAppServices(String resourceGroupName, String monitorName, Context context);
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the get sso details request.
@@ -428,7 +430,7 @@ Response getMetricStatusWithResponse(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
- * status code 401.
+ * status code 401.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the SSO configuration details from the partner along with {@link Response}.
*/
@@ -438,13 +440,13 @@ Response getSsoDetailsWithResponse(String resourceGroup
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
- * status code 401.
+ * status code 401.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the SSO configuration details from the partner.
*/
@@ -453,15 +455,15 @@ Response getSsoDetailsWithResponse(String resourceGroup
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedIterable}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listLinkableEnvironments(String resourceGroupName,
@@ -469,7 +471,7 @@ PagedIterable listLinkableEnvironments(String
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
@@ -477,8 +479,8 @@ PagedIterable listLinkableEnvironments(String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedIterable}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listLinkableEnvironments(String resourceGroupName,
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/OperationsClient.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/OperationsClient.java
index f6fa59626caa2..29d965b006ecb 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/OperationsClient.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.dynatrace.fluent.models.OperationInner;
-/** 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 the operations for Dynatrace.Observability.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* List the operations for Dynatrace.Observability.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/SingleSignOnsClient.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/SingleSignOnsClient.java
index 81038f6a14e74..23cb7af98da7a 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/SingleSignOnsClient.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/SingleSignOnsClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.dynatrace.fluent.models.DynatraceSingleSignOnResourceInner;
-/** 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 {
/**
* Create a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -34,7 +36,7 @@ SyncPoller, DynatraceSingleSignOn
/**
* Create a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -52,7 +54,7 @@ SyncPoller, DynatraceSingleSignOn
/**
* Create a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -68,7 +70,7 @@ DynatraceSingleSignOnResourceInner createOrUpdate(String resourceGroupName, Stri
/**
* Create a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -85,7 +87,7 @@ DynatraceSingleSignOnResourceInner createOrUpdate(String resourceGroupName, Stri
/**
* Get a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -101,7 +103,7 @@ Response getWithResponse(String resourceGrou
/**
* Get a DynatraceSingleSignOnResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Single Sign On Configuration Name.
@@ -115,29 +117,29 @@ Response getWithResponse(String resourceGrou
/**
* List all DynatraceSingleSignOnResource by monitorName.
- *
+ *
* @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a DynatraceSingleSignOnResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a DynatraceSingleSignOnResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String monitorName);
/**
* List all DynatraceSingleSignOnResource by monitorName.
- *
+ *
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a DynatraceSingleSignOnResource list operation as paginated response with {@link
- * PagedIterable}.
+ * @return the response of a DynatraceSingleSignOnResource list operation as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String monitorName,
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/TagRulesClient.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/TagRulesClient.java
index dd1b6a8514e28..11048575a0ca3 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/TagRulesClient.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/TagRulesClient.java
@@ -13,11 +13,13 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.dynatrace.fluent.models.TagRuleInner;
-/** 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 {
/**
* Get a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -33,7 +35,7 @@ Response getWithResponse(String resourceGroupName, String monitorN
/**
* Get a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -47,7 +49,7 @@ Response getWithResponse(String resourceGroupName, String monitorN
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -63,7 +65,7 @@ SyncPoller, TagRuleInner> beginCreateOrUpdate(String re
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -80,7 +82,7 @@ SyncPoller, TagRuleInner> beginCreateOrUpdate(String re
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -96,7 +98,7 @@ TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String
/**
* Create a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -113,7 +115,7 @@ TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -127,7 +129,7 @@ TagRuleInner createOrUpdate(String resourceGroupName, String monitorName, String
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -143,7 +145,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -156,7 +158,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Delete a TagRule.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Monitor resource name.
@@ -170,7 +172,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* List all TagRule by monitorName.
- *
+ *
* @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.
@@ -183,7 +185,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* List all TagRule by monitorName.
- *
+ *
* @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/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/AppServiceInfoInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/AppServiceInfoInner.java
index b98b37db7c1a6..33bf00f291f67 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/AppServiceInfoInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/AppServiceInfoInner.java
@@ -5,77 +5,76 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.AutoUpdateSetting;
import com.azure.resourcemanager.dynatrace.models.AvailabilityState;
import com.azure.resourcemanager.dynatrace.models.LogModule;
import com.azure.resourcemanager.dynatrace.models.MonitoringType;
import com.azure.resourcemanager.dynatrace.models.UpdateStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Details of App Services having Dynatrace OneAgent installed. */
+/**
+ * Details of App Services having Dynatrace OneAgent installed.
+ */
@Fluent
-public final class AppServiceInfoInner {
+public final class AppServiceInfoInner implements JsonSerializable {
/*
* App service resource ID
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Version of the Dynatrace agent installed on the App Service.
*/
- @JsonProperty(value = "version")
private String version;
/*
* The monitoring mode of OneAgent
*/
- @JsonProperty(value = "monitoringType")
private MonitoringType monitoringType;
/*
* Update settings of OneAgent.
*/
- @JsonProperty(value = "autoUpdateSetting")
private AutoUpdateSetting autoUpdateSetting;
/*
* The current update status of OneAgent.
*/
- @JsonProperty(value = "updateStatus")
private UpdateStatus updateStatus;
/*
* The availability state of OneAgent.
*/
- @JsonProperty(value = "availabilityState")
private AvailabilityState availabilityState;
/*
* Tells whether log modules are enabled or not
*/
- @JsonProperty(value = "logModule")
private LogModule logModule;
/*
* The name of the host group
*/
- @JsonProperty(value = "hostGroup")
private String hostGroup;
/*
* The name of the host
*/
- @JsonProperty(value = "hostName")
private String hostname;
- /** Creates an instance of AppServiceInfoInner class. */
+ /**
+ * Creates an instance of AppServiceInfoInner class.
+ */
public AppServiceInfoInner() {
}
/**
* Get the resourceId property: App service resource ID.
- *
+ *
* @return the resourceId value.
*/
public String resourceId() {
@@ -84,7 +83,7 @@ public String resourceId() {
/**
* Set the resourceId property: App service resource ID.
- *
+ *
* @param resourceId the resourceId value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -95,7 +94,7 @@ public AppServiceInfoInner withResourceId(String resourceId) {
/**
* Get the version property: Version of the Dynatrace agent installed on the App Service.
- *
+ *
* @return the version value.
*/
public String version() {
@@ -104,7 +103,7 @@ public String version() {
/**
* Set the version property: Version of the Dynatrace agent installed on the App Service.
- *
+ *
* @param version the version value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -115,7 +114,7 @@ public AppServiceInfoInner withVersion(String version) {
/**
* Get the monitoringType property: The monitoring mode of OneAgent.
- *
+ *
* @return the monitoringType value.
*/
public MonitoringType monitoringType() {
@@ -124,7 +123,7 @@ public MonitoringType monitoringType() {
/**
* Set the monitoringType property: The monitoring mode of OneAgent.
- *
+ *
* @param monitoringType the monitoringType value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -135,7 +134,7 @@ public AppServiceInfoInner withMonitoringType(MonitoringType monitoringType) {
/**
* Get the autoUpdateSetting property: Update settings of OneAgent.
- *
+ *
* @return the autoUpdateSetting value.
*/
public AutoUpdateSetting autoUpdateSetting() {
@@ -144,7 +143,7 @@ public AutoUpdateSetting autoUpdateSetting() {
/**
* Set the autoUpdateSetting property: Update settings of OneAgent.
- *
+ *
* @param autoUpdateSetting the autoUpdateSetting value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -155,7 +154,7 @@ public AppServiceInfoInner withAutoUpdateSetting(AutoUpdateSetting autoUpdateSet
/**
* Get the updateStatus property: The current update status of OneAgent.
- *
+ *
* @return the updateStatus value.
*/
public UpdateStatus updateStatus() {
@@ -164,7 +163,7 @@ public UpdateStatus updateStatus() {
/**
* Set the updateStatus property: The current update status of OneAgent.
- *
+ *
* @param updateStatus the updateStatus value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -175,7 +174,7 @@ public AppServiceInfoInner withUpdateStatus(UpdateStatus updateStatus) {
/**
* Get the availabilityState property: The availability state of OneAgent.
- *
+ *
* @return the availabilityState value.
*/
public AvailabilityState availabilityState() {
@@ -184,7 +183,7 @@ public AvailabilityState availabilityState() {
/**
* Set the availabilityState property: The availability state of OneAgent.
- *
+ *
* @param availabilityState the availabilityState value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -195,7 +194,7 @@ public AppServiceInfoInner withAvailabilityState(AvailabilityState availabilityS
/**
* Get the logModule property: Tells whether log modules are enabled or not.
- *
+ *
* @return the logModule value.
*/
public LogModule logModule() {
@@ -204,7 +203,7 @@ public LogModule logModule() {
/**
* Set the logModule property: Tells whether log modules are enabled or not.
- *
+ *
* @param logModule the logModule value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -215,7 +214,7 @@ public AppServiceInfoInner withLogModule(LogModule logModule) {
/**
* Get the hostGroup property: The name of the host group.
- *
+ *
* @return the hostGroup value.
*/
public String hostGroup() {
@@ -224,7 +223,7 @@ public String hostGroup() {
/**
* Set the hostGroup property: The name of the host group.
- *
+ *
* @param hostGroup the hostGroup value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -235,7 +234,7 @@ public AppServiceInfoInner withHostGroup(String hostGroup) {
/**
* Get the hostname property: The name of the host.
- *
+ *
* @return the hostname value.
*/
public String hostname() {
@@ -244,7 +243,7 @@ public String hostname() {
/**
* Set the hostname property: The name of the host.
- *
+ *
* @param hostname the hostname value to set.
* @return the AppServiceInfoInner object itself.
*/
@@ -255,9 +254,74 @@ public AppServiceInfoInner withHostname(String hostname) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeStringField("version", this.version);
+ jsonWriter.writeStringField("monitoringType",
+ this.monitoringType == null ? null : this.monitoringType.toString());
+ jsonWriter.writeStringField("autoUpdateSetting",
+ this.autoUpdateSetting == null ? null : this.autoUpdateSetting.toString());
+ jsonWriter.writeStringField("updateStatus", this.updateStatus == null ? null : this.updateStatus.toString());
+ jsonWriter.writeStringField("availabilityState",
+ this.availabilityState == null ? null : this.availabilityState.toString());
+ jsonWriter.writeStringField("logModule", this.logModule == null ? null : this.logModule.toString());
+ jsonWriter.writeStringField("hostGroup", this.hostGroup);
+ jsonWriter.writeStringField("hostName", this.hostname);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AppServiceInfoInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AppServiceInfoInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the AppServiceInfoInner.
+ */
+ public static AppServiceInfoInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AppServiceInfoInner deserializedAppServiceInfoInner = new AppServiceInfoInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedAppServiceInfoInner.resourceId = reader.getString();
+ } else if ("version".equals(fieldName)) {
+ deserializedAppServiceInfoInner.version = reader.getString();
+ } else if ("monitoringType".equals(fieldName)) {
+ deserializedAppServiceInfoInner.monitoringType = MonitoringType.fromString(reader.getString());
+ } else if ("autoUpdateSetting".equals(fieldName)) {
+ deserializedAppServiceInfoInner.autoUpdateSetting
+ = AutoUpdateSetting.fromString(reader.getString());
+ } else if ("updateStatus".equals(fieldName)) {
+ deserializedAppServiceInfoInner.updateStatus = UpdateStatus.fromString(reader.getString());
+ } else if ("availabilityState".equals(fieldName)) {
+ deserializedAppServiceInfoInner.availabilityState
+ = AvailabilityState.fromString(reader.getString());
+ } else if ("logModule".equals(fieldName)) {
+ deserializedAppServiceInfoInner.logModule = LogModule.fromString(reader.getString());
+ } else if ("hostGroup".equals(fieldName)) {
+ deserializedAppServiceInfoInner.hostGroup = reader.getString();
+ } else if ("hostName".equals(fieldName)) {
+ deserializedAppServiceInfoInner.hostname = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAppServiceInfoInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnProperties.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnProperties.java
index 0df68d016c334..f5c531f9fcb89 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnProperties.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnProperties.java
@@ -5,51 +5,54 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
import com.azure.resourcemanager.dynatrace.models.SingleSignOnStates;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
-/** The details of a Dynatrace single sign-on. */
+/**
+ * The details of a Dynatrace single sign-on.
+ */
@Fluent
-public final class DynatraceSingleSignOnProperties {
+public final class DynatraceSingleSignOnProperties implements JsonSerializable {
/*
* State of Single Sign On
*/
- @JsonProperty(value = "singleSignOnState")
private SingleSignOnStates singleSignOnState;
/*
* Version of the Dynatrace agent installed on the VM.
*/
- @JsonProperty(value = "enterpriseAppId")
private String enterpriseAppId;
/*
* The login URL specific to this Dynatrace Environment
*/
- @JsonProperty(value = "singleSignOnUrl")
private String singleSignOnUrl;
/*
* array of Aad(azure active directory) domains
*/
- @JsonProperty(value = "aadDomains")
private List aadDomains;
/*
* Provisioning state of the resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of DynatraceSingleSignOnProperties class. */
+ /**
+ * Creates an instance of DynatraceSingleSignOnProperties class.
+ */
public DynatraceSingleSignOnProperties() {
}
/**
* Get the singleSignOnState property: State of Single Sign On.
- *
+ *
* @return the singleSignOnState value.
*/
public SingleSignOnStates singleSignOnState() {
@@ -58,7 +61,7 @@ public SingleSignOnStates singleSignOnState() {
/**
* Set the singleSignOnState property: State of Single Sign On.
- *
+ *
* @param singleSignOnState the singleSignOnState value to set.
* @return the DynatraceSingleSignOnProperties object itself.
*/
@@ -69,7 +72,7 @@ public DynatraceSingleSignOnProperties withSingleSignOnState(SingleSignOnStates
/**
* Get the enterpriseAppId property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @return the enterpriseAppId value.
*/
public String enterpriseAppId() {
@@ -78,7 +81,7 @@ public String enterpriseAppId() {
/**
* Set the enterpriseAppId property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @param enterpriseAppId the enterpriseAppId value to set.
* @return the DynatraceSingleSignOnProperties object itself.
*/
@@ -89,7 +92,7 @@ public DynatraceSingleSignOnProperties withEnterpriseAppId(String enterpriseAppI
/**
* Get the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @return the singleSignOnUrl value.
*/
public String singleSignOnUrl() {
@@ -98,7 +101,7 @@ public String singleSignOnUrl() {
/**
* Set the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @param singleSignOnUrl the singleSignOnUrl value to set.
* @return the DynatraceSingleSignOnProperties object itself.
*/
@@ -109,7 +112,7 @@ public DynatraceSingleSignOnProperties withSingleSignOnUrl(String singleSignOnUr
/**
* Get the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @return the aadDomains value.
*/
public List aadDomains() {
@@ -118,7 +121,7 @@ public List aadDomains() {
/**
* Set the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @param aadDomains the aadDomains value to set.
* @return the DynatraceSingleSignOnProperties object itself.
*/
@@ -129,7 +132,7 @@ public DynatraceSingleSignOnProperties withAadDomains(List aadDomains) {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -138,9 +141,61 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("singleSignOnState",
+ this.singleSignOnState == null ? null : this.singleSignOnState.toString());
+ jsonWriter.writeStringField("enterpriseAppId", this.enterpriseAppId);
+ jsonWriter.writeStringField("singleSignOnUrl", this.singleSignOnUrl);
+ jsonWriter.writeArrayField("aadDomains", this.aadDomains, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DynatraceSingleSignOnProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DynatraceSingleSignOnProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the DynatraceSingleSignOnProperties.
+ */
+ public static DynatraceSingleSignOnProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DynatraceSingleSignOnProperties deserializedDynatraceSingleSignOnProperties
+ = new DynatraceSingleSignOnProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("singleSignOnState".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnProperties.singleSignOnState
+ = SingleSignOnStates.fromString(reader.getString());
+ } else if ("enterpriseAppId".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnProperties.enterpriseAppId = reader.getString();
+ } else if ("singleSignOnUrl".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnProperties.singleSignOnUrl = reader.getString();
+ } else if ("aadDomains".equals(fieldName)) {
+ List aadDomains = reader.readArray(reader1 -> reader1.getString());
+ deserializedDynatraceSingleSignOnProperties.aadDomains = aadDomains;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDynatraceSingleSignOnProperties;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnResourceInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnResourceInner.java
index e3a3126105cca..18fac1b715574 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnResourceInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/DynatraceSingleSignOnResourceInner.java
@@ -8,33 +8,53 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
import com.azure.resourcemanager.dynatrace.models.SingleSignOnStates;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
-/** Single sign-on configurations for a given monitor resource. */
+/**
+ * Single sign-on configurations for a given monitor resource.
+ */
@Fluent
public final class DynatraceSingleSignOnResourceInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
- @JsonProperty(value = "properties", required = true)
private DynatraceSingleSignOnProperties innerProperties = new DynatraceSingleSignOnProperties();
/*
* System metadata for this resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of DynatraceSingleSignOnResourceInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of DynatraceSingleSignOnResourceInner class.
+ */
public DynatraceSingleSignOnResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private DynatraceSingleSignOnProperties innerProperties() {
@@ -43,16 +63,46 @@ private DynatraceSingleSignOnProperties innerProperties() {
/**
* Get the systemData property: System metadata for this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
/**
* Get the singleSignOnState property: State of Single Sign On.
- *
+ *
* @return the singleSignOnState value.
*/
public SingleSignOnStates singleSignOnState() {
@@ -61,7 +111,7 @@ public SingleSignOnStates singleSignOnState() {
/**
* Set the singleSignOnState property: State of Single Sign On.
- *
+ *
* @param singleSignOnState the singleSignOnState value to set.
* @return the DynatraceSingleSignOnResourceInner object itself.
*/
@@ -75,7 +125,7 @@ public DynatraceSingleSignOnResourceInner withSingleSignOnState(SingleSignOnStat
/**
* Get the enterpriseAppId property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @return the enterpriseAppId value.
*/
public String enterpriseAppId() {
@@ -84,7 +134,7 @@ public String enterpriseAppId() {
/**
* Set the enterpriseAppId property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @param enterpriseAppId the enterpriseAppId value to set.
* @return the DynatraceSingleSignOnResourceInner object itself.
*/
@@ -98,7 +148,7 @@ public DynatraceSingleSignOnResourceInner withEnterpriseAppId(String enterpriseA
/**
* Get the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @return the singleSignOnUrl value.
*/
public String singleSignOnUrl() {
@@ -107,7 +157,7 @@ public String singleSignOnUrl() {
/**
* Set the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @param singleSignOnUrl the singleSignOnUrl value to set.
* @return the DynatraceSingleSignOnResourceInner object itself.
*/
@@ -121,7 +171,7 @@ public DynatraceSingleSignOnResourceInner withSingleSignOnUrl(String singleSignO
/**
* Get the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @return the aadDomains value.
*/
public List aadDomains() {
@@ -130,7 +180,7 @@ public List aadDomains() {
/**
* Set the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @param aadDomains the aadDomains value to set.
* @return the DynatraceSingleSignOnResourceInner object itself.
*/
@@ -144,7 +194,7 @@ public DynatraceSingleSignOnResourceInner withAadDomains(List aadDomains
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -153,17 +203,65 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- "Missing required property innerProperties in model DynatraceSingleSignOnResourceInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property innerProperties in model DynatraceSingleSignOnResourceInner"));
} else {
innerProperties().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(DynatraceSingleSignOnResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DynatraceSingleSignOnResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DynatraceSingleSignOnResourceInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DynatraceSingleSignOnResourceInner.
+ */
+ public static DynatraceSingleSignOnResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DynatraceSingleSignOnResourceInner deserializedDynatraceSingleSignOnResourceInner
+ = new DynatraceSingleSignOnResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnResourceInner.innerProperties
+ = DynatraceSingleSignOnProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDynatraceSingleSignOnResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDynatraceSingleSignOnResourceInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/LinkableEnvironmentResponseInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/LinkableEnvironmentResponseInner.java
index bb6c2d21d3e5b..c61386b855dc2 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/LinkableEnvironmentResponseInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/LinkableEnvironmentResponseInner.java
@@ -5,37 +5,42 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.PlanData;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Response for getting all the linkable environments. */
+/**
+ * Response for getting all the linkable environments.
+ */
@Fluent
-public final class LinkableEnvironmentResponseInner {
+public final class LinkableEnvironmentResponseInner implements JsonSerializable {
/*
* environment id for which user is an admin
*/
- @JsonProperty(value = "environmentId")
private String environmentId;
/*
* Name of the environment
*/
- @JsonProperty(value = "environmentName")
private String environmentName;
/*
* Billing plan information.
*/
- @JsonProperty(value = "planData")
private PlanData planData;
- /** Creates an instance of LinkableEnvironmentResponseInner class. */
+ /**
+ * Creates an instance of LinkableEnvironmentResponseInner class.
+ */
public LinkableEnvironmentResponseInner() {
}
/**
* Get the environmentId property: environment id for which user is an admin.
- *
+ *
* @return the environmentId value.
*/
public String environmentId() {
@@ -44,7 +49,7 @@ public String environmentId() {
/**
* Set the environmentId property: environment id for which user is an admin.
- *
+ *
* @param environmentId the environmentId value to set.
* @return the LinkableEnvironmentResponseInner object itself.
*/
@@ -55,7 +60,7 @@ public LinkableEnvironmentResponseInner withEnvironmentId(String environmentId)
/**
* Get the environmentName property: Name of the environment.
- *
+ *
* @return the environmentName value.
*/
public String environmentName() {
@@ -64,7 +69,7 @@ public String environmentName() {
/**
* Set the environmentName property: Name of the environment.
- *
+ *
* @param environmentName the environmentName value to set.
* @return the LinkableEnvironmentResponseInner object itself.
*/
@@ -75,7 +80,7 @@ public LinkableEnvironmentResponseInner withEnvironmentName(String environmentNa
/**
* Get the planData property: Billing plan information.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -84,7 +89,7 @@ public PlanData planData() {
/**
* Set the planData property: Billing plan information.
- *
+ *
* @param planData the planData value to set.
* @return the LinkableEnvironmentResponseInner object itself.
*/
@@ -95,7 +100,7 @@ public LinkableEnvironmentResponseInner withPlanData(PlanData planData) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -103,4 +108,47 @@ public void validate() {
planData().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("environmentId", this.environmentId);
+ jsonWriter.writeStringField("environmentName", this.environmentName);
+ jsonWriter.writeJsonField("planData", this.planData);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LinkableEnvironmentResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LinkableEnvironmentResponseInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the LinkableEnvironmentResponseInner.
+ */
+ public static LinkableEnvironmentResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LinkableEnvironmentResponseInner deserializedLinkableEnvironmentResponseInner
+ = new LinkableEnvironmentResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("environmentId".equals(fieldName)) {
+ deserializedLinkableEnvironmentResponseInner.environmentId = reader.getString();
+ } else if ("environmentName".equals(fieldName)) {
+ deserializedLinkableEnvironmentResponseInner.environmentName = reader.getString();
+ } else if ("planData".equals(fieldName)) {
+ deserializedLinkableEnvironmentResponseInner.planData = PlanData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLinkableEnvironmentResponseInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MarketplaceSaaSResourceDetailsResponseInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MarketplaceSaaSResourceDetailsResponseInner.java
index 05d8e00b552fc..1f371c300ac10 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MarketplaceSaaSResourceDetailsResponseInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MarketplaceSaaSResourceDetailsResponseInner.java
@@ -5,37 +5,43 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.MarketplaceSubscriptionStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Marketplace SaaS resource details linked to the given tenant Id. */
+/**
+ * Marketplace SaaS resource details linked to the given tenant Id.
+ */
@Fluent
-public final class MarketplaceSaaSResourceDetailsResponseInner {
+public final class MarketplaceSaaSResourceDetailsResponseInner
+ implements JsonSerializable {
/*
* Id of the Marketplace SaaS Resource
*/
- @JsonProperty(value = "marketplaceSaaSResourceId")
private String marketplaceSaaSResourceId;
/*
* Id of the plan
*/
- @JsonProperty(value = "planId")
private String planId;
/*
* Marketplace subscription status
*/
- @JsonProperty(value = "marketplaceSubscriptionStatus")
private MarketplaceSubscriptionStatus marketplaceSubscriptionStatus;
- /** Creates an instance of MarketplaceSaaSResourceDetailsResponseInner class. */
+ /**
+ * Creates an instance of MarketplaceSaaSResourceDetailsResponseInner class.
+ */
public MarketplaceSaaSResourceDetailsResponseInner() {
}
/**
* Get the marketplaceSaaSResourceId property: Id of the Marketplace SaaS Resource.
- *
+ *
* @return the marketplaceSaaSResourceId value.
*/
public String marketplaceSaaSResourceId() {
@@ -44,7 +50,7 @@ public String marketplaceSaaSResourceId() {
/**
* Set the marketplaceSaaSResourceId property: Id of the Marketplace SaaS Resource.
- *
+ *
* @param marketplaceSaaSResourceId the marketplaceSaaSResourceId value to set.
* @return the MarketplaceSaaSResourceDetailsResponseInner object itself.
*/
@@ -55,7 +61,7 @@ public MarketplaceSaaSResourceDetailsResponseInner withMarketplaceSaaSResourceId
/**
* Get the planId property: Id of the plan.
- *
+ *
* @return the planId value.
*/
public String planId() {
@@ -64,7 +70,7 @@ public String planId() {
/**
* Set the planId property: Id of the plan.
- *
+ *
* @param planId the planId value to set.
* @return the MarketplaceSaaSResourceDetailsResponseInner object itself.
*/
@@ -75,7 +81,7 @@ public MarketplaceSaaSResourceDetailsResponseInner withPlanId(String planId) {
/**
* Get the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @return the marketplaceSubscriptionStatus value.
*/
public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
@@ -84,7 +90,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Set the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @param marketplaceSubscriptionStatus the marketplaceSubscriptionStatus value to set.
* @return the MarketplaceSaaSResourceDetailsResponseInner object itself.
*/
@@ -96,9 +102,55 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("marketplaceSaaSResourceId", this.marketplaceSaaSResourceId);
+ jsonWriter.writeStringField("planId", this.planId);
+ jsonWriter.writeStringField("marketplaceSubscriptionStatus",
+ this.marketplaceSubscriptionStatus == null ? null : this.marketplaceSubscriptionStatus.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MarketplaceSaaSResourceDetailsResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MarketplaceSaaSResourceDetailsResponseInner if the JsonReader was pointing to an instance
+ * of it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MarketplaceSaaSResourceDetailsResponseInner.
+ */
+ public static MarketplaceSaaSResourceDetailsResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MarketplaceSaaSResourceDetailsResponseInner deserializedMarketplaceSaaSResourceDetailsResponseInner
+ = new MarketplaceSaaSResourceDetailsResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("marketplaceSaaSResourceId".equals(fieldName)) {
+ deserializedMarketplaceSaaSResourceDetailsResponseInner.marketplaceSaaSResourceId
+ = reader.getString();
+ } else if ("planId".equals(fieldName)) {
+ deserializedMarketplaceSaaSResourceDetailsResponseInner.planId = reader.getString();
+ } else if ("marketplaceSubscriptionStatus".equals(fieldName)) {
+ deserializedMarketplaceSaaSResourceDetailsResponseInner.marketplaceSubscriptionStatus
+ = MarketplaceSubscriptionStatus.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMarketplaceSaaSResourceDetailsResponseInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MetricsStatusResponseInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MetricsStatusResponseInner.java
index adbaf8b77b89f..885f2d232e68a 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MetricsStatusResponseInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MetricsStatusResponseInner.java
@@ -5,25 +5,32 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
import java.util.List;
-/** Response of get metrics status operation. */
+/**
+ * Response of get metrics status operation.
+ */
@Fluent
-public final class MetricsStatusResponseInner {
+public final class MetricsStatusResponseInner implements JsonSerializable {
/*
* Azure resource IDs
*/
- @JsonProperty(value = "azureResourceIds")
private List azureResourceIds;
- /** Creates an instance of MetricsStatusResponseInner class. */
+ /**
+ * Creates an instance of MetricsStatusResponseInner class.
+ */
public MetricsStatusResponseInner() {
}
/**
* Get the azureResourceIds property: Azure resource IDs.
- *
+ *
* @return the azureResourceIds value.
*/
public List azureResourceIds() {
@@ -32,7 +39,7 @@ public List azureResourceIds() {
/**
* Set the azureResourceIds property: Azure resource IDs.
- *
+ *
* @param azureResourceIds the azureResourceIds value to set.
* @return the MetricsStatusResponseInner object itself.
*/
@@ -43,9 +50,47 @@ public MetricsStatusResponseInner withAzureResourceIds(List azureResourc
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("azureResourceIds", this.azureResourceIds,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MetricsStatusResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MetricsStatusResponseInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MetricsStatusResponseInner.
+ */
+ public static MetricsStatusResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MetricsStatusResponseInner deserializedMetricsStatusResponseInner = new MetricsStatusResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("azureResourceIds".equals(fieldName)) {
+ List azureResourceIds = reader.readArray(reader1 -> reader1.getString());
+ deserializedMetricsStatusResponseInner.azureResourceIds = azureResourceIds;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMetricsStatusResponseInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorProperties.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorProperties.java
index c3e8a9d84667d..bb30a2643652b 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorProperties.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorProperties.java
@@ -5,6 +5,10 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.DynatraceEnvironmentProperties;
import com.azure.resourcemanager.dynatrace.models.LiftrResourceCategories;
import com.azure.resourcemanager.dynatrace.models.MarketplaceSubscriptionStatus;
@@ -12,66 +16,62 @@
import com.azure.resourcemanager.dynatrace.models.PlanData;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
import com.azure.resourcemanager.dynatrace.models.UserInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Properties specific to the monitor resource. */
+/**
+ * Properties specific to the monitor resource.
+ */
@Fluent
-public final class MonitorProperties {
+public final class MonitorProperties implements JsonSerializable {
/*
* Status of the monitor.
*/
- @JsonProperty(value = "monitoringStatus")
private MonitoringStatus monitoringStatus;
/*
* Marketplace subscription status.
*/
- @JsonProperty(value = "marketplaceSubscriptionStatus")
private MarketplaceSubscriptionStatus marketplaceSubscriptionStatus;
/*
* Properties of the Dynatrace environment.
*/
- @JsonProperty(value = "dynatraceEnvironmentProperties")
private DynatraceEnvironmentProperties dynatraceEnvironmentProperties;
/*
* User info.
*/
- @JsonProperty(value = "userInfo")
private UserInfo userInfo;
/*
* Billing plan information.
*/
- @JsonProperty(value = "planData")
private PlanData planData;
/*
* Liftr Resource category.
*/
- @JsonProperty(value = "liftrResourceCategory", access = JsonProperty.Access.WRITE_ONLY)
private LiftrResourceCategories liftrResourceCategory;
/*
* The priority of the resource.
*/
- @JsonProperty(value = "liftrResourcePreference", access = JsonProperty.Access.WRITE_ONLY)
private Integer liftrResourcePreference;
/*
* Provisioning state of the resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of MonitorProperties class. */
+ /**
+ * Creates an instance of MonitorProperties class.
+ */
public MonitorProperties() {
}
/**
* Get the monitoringStatus property: Status of the monitor.
- *
+ *
* @return the monitoringStatus value.
*/
public MonitoringStatus monitoringStatus() {
@@ -80,7 +80,7 @@ public MonitoringStatus monitoringStatus() {
/**
* Set the monitoringStatus property: Status of the monitor.
- *
+ *
* @param monitoringStatus the monitoringStatus value to set.
* @return the MonitorProperties object itself.
*/
@@ -91,7 +91,7 @@ public MonitorProperties withMonitoringStatus(MonitoringStatus monitoringStatus)
/**
* Get the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @return the marketplaceSubscriptionStatus value.
*/
public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
@@ -100,7 +100,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Set the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @param marketplaceSubscriptionStatus the marketplaceSubscriptionStatus value to set.
* @return the MonitorProperties object itself.
*/
@@ -112,7 +112,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Get the dynatraceEnvironmentProperties property: Properties of the Dynatrace environment.
- *
+ *
* @return the dynatraceEnvironmentProperties value.
*/
public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
@@ -121,7 +121,7 @@ public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
/**
* Set the dynatraceEnvironmentProperties property: Properties of the Dynatrace environment.
- *
+ *
* @param dynatraceEnvironmentProperties the dynatraceEnvironmentProperties value to set.
* @return the MonitorProperties object itself.
*/
@@ -133,7 +133,7 @@ public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
/**
* Get the userInfo property: User info.
- *
+ *
* @return the userInfo value.
*/
public UserInfo userInfo() {
@@ -142,7 +142,7 @@ public UserInfo userInfo() {
/**
* Set the userInfo property: User info.
- *
+ *
* @param userInfo the userInfo value to set.
* @return the MonitorProperties object itself.
*/
@@ -153,7 +153,7 @@ public MonitorProperties withUserInfo(UserInfo userInfo) {
/**
* Get the planData property: Billing plan information.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -162,7 +162,7 @@ public PlanData planData() {
/**
* Set the planData property: Billing plan information.
- *
+ *
* @param planData the planData value to set.
* @return the MonitorProperties object itself.
*/
@@ -173,7 +173,7 @@ public MonitorProperties withPlanData(PlanData planData) {
/**
* Get the liftrResourceCategory property: Liftr Resource category.
- *
+ *
* @return the liftrResourceCategory value.
*/
public LiftrResourceCategories liftrResourceCategory() {
@@ -182,7 +182,7 @@ public LiftrResourceCategories liftrResourceCategory() {
/**
* Get the liftrResourcePreference property: The priority of the resource.
- *
+ *
* @return the liftrResourcePreference value.
*/
public Integer liftrResourcePreference() {
@@ -191,7 +191,7 @@ public Integer liftrResourcePreference() {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -200,7 +200,7 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -214,4 +214,63 @@ public void validate() {
planData().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("monitoringStatus",
+ this.monitoringStatus == null ? null : this.monitoringStatus.toString());
+ jsonWriter.writeStringField("marketplaceSubscriptionStatus",
+ this.marketplaceSubscriptionStatus == null ? null : this.marketplaceSubscriptionStatus.toString());
+ jsonWriter.writeJsonField("dynatraceEnvironmentProperties", this.dynatraceEnvironmentProperties);
+ jsonWriter.writeJsonField("userInfo", this.userInfo);
+ jsonWriter.writeJsonField("planData", this.planData);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MonitorProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MonitorProperties if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MonitorProperties.
+ */
+ public static MonitorProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MonitorProperties deserializedMonitorProperties = new MonitorProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("monitoringStatus".equals(fieldName)) {
+ deserializedMonitorProperties.monitoringStatus = MonitoringStatus.fromString(reader.getString());
+ } else if ("marketplaceSubscriptionStatus".equals(fieldName)) {
+ deserializedMonitorProperties.marketplaceSubscriptionStatus
+ = MarketplaceSubscriptionStatus.fromString(reader.getString());
+ } else if ("dynatraceEnvironmentProperties".equals(fieldName)) {
+ deserializedMonitorProperties.dynatraceEnvironmentProperties
+ = DynatraceEnvironmentProperties.fromJson(reader);
+ } else if ("userInfo".equals(fieldName)) {
+ deserializedMonitorProperties.userInfo = UserInfo.fromJson(reader);
+ } else if ("planData".equals(fieldName)) {
+ deserializedMonitorProperties.planData = PlanData.fromJson(reader);
+ } else if ("liftrResourceCategory".equals(fieldName)) {
+ deserializedMonitorProperties.liftrResourceCategory
+ = LiftrResourceCategories.fromString(reader.getString());
+ } else if ("liftrResourcePreference".equals(fieldName)) {
+ deserializedMonitorProperties.liftrResourcePreference = reader.getNullable(JsonReader::getInt);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedMonitorProperties.provisioningState = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMonitorProperties;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorResourceInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorResourceInner.java
index 654ba6041fd02..753750f20870c 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorResourceInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitorResourceInner.java
@@ -8,6 +8,9 @@
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.DynatraceEnvironmentProperties;
import com.azure.resourcemanager.dynatrace.models.IdentityProperties;
import com.azure.resourcemanager.dynatrace.models.LiftrResourceCategories;
@@ -16,37 +19,53 @@
import com.azure.resourcemanager.dynatrace.models.PlanData;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
import com.azure.resourcemanager.dynatrace.models.UserInfo;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.Map;
-/** Dynatrace Monitor Resource. */
+/**
+ * Dynatrace Monitor Resource.
+ */
@Fluent
public final class MonitorResourceInner extends Resource {
/*
* The resource-specific properties for this resource.
*/
- @JsonProperty(value = "properties", required = true)
private MonitorProperties innerProperties = new MonitorProperties();
/*
* System metadata for this resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/*
* The managed service identities assigned to this resource.
*/
- @JsonProperty(value = "identity")
private IdentityProperties identity;
- /** Creates an instance of MonitorResourceInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of MonitorResourceInner class.
+ */
public MonitorResourceInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private MonitorProperties innerProperties() {
@@ -55,7 +74,7 @@ private MonitorProperties innerProperties() {
/**
* Get the systemData property: System metadata for this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -64,7 +83,7 @@ public SystemData systemData() {
/**
* Get the identity property: The managed service identities assigned to this resource.
- *
+ *
* @return the identity value.
*/
public IdentityProperties identity() {
@@ -73,7 +92,7 @@ public IdentityProperties identity() {
/**
* Set the identity property: The managed service identities assigned to this resource.
- *
+ *
* @param identity the identity value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -82,14 +101,48 @@ public MonitorResourceInner withIdentity(IdentityProperties identity) {
return this;
}
- /** {@inheritDoc} */
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
@Override
public MonitorResourceInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public MonitorResourceInner withTags(Map tags) {
super.withTags(tags);
@@ -98,7 +151,7 @@ public MonitorResourceInner withTags(Map tags) {
/**
* Get the monitoringStatus property: Status of the monitor.
- *
+ *
* @return the monitoringStatus value.
*/
public MonitoringStatus monitoringStatus() {
@@ -107,7 +160,7 @@ public MonitoringStatus monitoringStatus() {
/**
* Set the monitoringStatus property: Status of the monitor.
- *
+ *
* @param monitoringStatus the monitoringStatus value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -121,7 +174,7 @@ public MonitorResourceInner withMonitoringStatus(MonitoringStatus monitoringStat
/**
* Get the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @return the marketplaceSubscriptionStatus value.
*/
public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
@@ -130,7 +183,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Set the marketplaceSubscriptionStatus property: Marketplace subscription status.
- *
+ *
* @param marketplaceSubscriptionStatus the marketplaceSubscriptionStatus value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -145,7 +198,7 @@ public MarketplaceSubscriptionStatus marketplaceSubscriptionStatus() {
/**
* Get the dynatraceEnvironmentProperties property: Properties of the Dynatrace environment.
- *
+ *
* @return the dynatraceEnvironmentProperties value.
*/
public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
@@ -154,7 +207,7 @@ public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
/**
* Set the dynatraceEnvironmentProperties property: Properties of the Dynatrace environment.
- *
+ *
* @param dynatraceEnvironmentProperties the dynatraceEnvironmentProperties value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -169,7 +222,7 @@ public DynatraceEnvironmentProperties dynatraceEnvironmentProperties() {
/**
* Get the userInfo property: User info.
- *
+ *
* @return the userInfo value.
*/
public UserInfo userInfo() {
@@ -178,7 +231,7 @@ public UserInfo userInfo() {
/**
* Set the userInfo property: User info.
- *
+ *
* @param userInfo the userInfo value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -192,7 +245,7 @@ public MonitorResourceInner withUserInfo(UserInfo userInfo) {
/**
* Get the planData property: Billing plan information.
- *
+ *
* @return the planData value.
*/
public PlanData planData() {
@@ -201,7 +254,7 @@ public PlanData planData() {
/**
* Set the planData property: Billing plan information.
- *
+ *
* @param planData the planData value to set.
* @return the MonitorResourceInner object itself.
*/
@@ -215,7 +268,7 @@ public MonitorResourceInner withPlanData(PlanData planData) {
/**
* Get the liftrResourceCategory property: Liftr Resource category.
- *
+ *
* @return the liftrResourceCategory value.
*/
public LiftrResourceCategories liftrResourceCategory() {
@@ -224,7 +277,7 @@ public LiftrResourceCategories liftrResourceCategory() {
/**
* Get the liftrResourcePreference property: The priority of the resource.
- *
+ *
* @return the liftrResourcePreference value.
*/
public Integer liftrResourcePreference() {
@@ -233,7 +286,7 @@ public Integer liftrResourcePreference() {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -242,13 +295,14 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- "Missing required property innerProperties in model MonitorResourceInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property innerProperties in model MonitorResourceInner"));
} else {
innerProperties().validate();
}
@@ -258,4 +312,59 @@ public void validate() {
}
private static final ClientLogger LOGGER = new ClientLogger(MonitorResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("identity", this.identity);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MonitorResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MonitorResourceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the MonitorResourceInner.
+ */
+ public static MonitorResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MonitorResourceInner deserializedMonitorResourceInner = new MonitorResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMonitorResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedMonitorResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedMonitorResourceInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedMonitorResourceInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedMonitorResourceInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedMonitorResourceInner.innerProperties = MonitorProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedMonitorResourceInner.systemData = SystemData.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedMonitorResourceInner.identity = IdentityProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMonitorResourceInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoredResourceInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoredResourceInner.java
index 15d5d973c3c24..0bf19a182be60 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoredResourceInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoredResourceInner.java
@@ -5,50 +5,53 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.SendingLogsStatus;
import com.azure.resourcemanager.dynatrace.models.SendingMetricsStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Details of resource being monitored by Dynatrace monitor resource. */
+/**
+ * Details of resource being monitored by Dynatrace monitor resource.
+ */
@Fluent
-public final class MonitoredResourceInner {
+public final class MonitoredResourceInner implements JsonSerializable {
/*
* The ARM id of the resource.
*/
- @JsonProperty(value = "id")
private String id;
/*
* Flag indicating if resource is sending metrics to Dynatrace.
*/
- @JsonProperty(value = "sendingMetrics")
private SendingMetricsStatus sendingMetrics;
/*
* Reason for why the resource is sending metrics (or why it is not sending).
*/
- @JsonProperty(value = "reasonForMetricsStatus")
private String reasonForMetricsStatus;
/*
* Flag indicating if resource is sending logs to Dynatrace.
*/
- @JsonProperty(value = "sendingLogs")
private SendingLogsStatus sendingLogs;
/*
* Reason for why the resource is sending logs (or why it is not sending).
*/
- @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() {
@@ -57,7 +60,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.
*/
@@ -68,7 +71,7 @@ public MonitoredResourceInner withId(String id) {
/**
* Get the sendingMetrics property: Flag indicating if resource is sending metrics to Dynatrace.
- *
+ *
* @return the sendingMetrics value.
*/
public SendingMetricsStatus sendingMetrics() {
@@ -77,7 +80,7 @@ public SendingMetricsStatus sendingMetrics() {
/**
* Set the sendingMetrics property: Flag indicating if resource is sending metrics to Dynatrace.
- *
+ *
* @param sendingMetrics the sendingMetrics value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -89,7 +92,7 @@ public MonitoredResourceInner withSendingMetrics(SendingMetricsStatus sendingMet
/**
* 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() {
@@ -99,7 +102,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.
*/
@@ -110,7 +113,7 @@ public MonitoredResourceInner withReasonForMetricsStatus(String reasonForMetrics
/**
* Get the sendingLogs property: Flag indicating if resource is sending logs to Dynatrace.
- *
+ *
* @return the sendingLogs value.
*/
public SendingLogsStatus sendingLogs() {
@@ -119,7 +122,7 @@ public SendingLogsStatus sendingLogs() {
/**
* Set the sendingLogs property: Flag indicating if resource is sending logs to Dynatrace.
- *
+ *
* @param sendingLogs the sendingLogs value to set.
* @return the MonitoredResourceInner object itself.
*/
@@ -130,7 +133,7 @@ public MonitoredResourceInner withSendingLogs(SendingLogsStatus sendingLogs) {
/**
* 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() {
@@ -139,7 +142,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.
*/
@@ -150,9 +153,59 @@ public MonitoredResourceInner withReasonForLogsStatus(String reasonForLogsStatus
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("sendingMetrics",
+ this.sendingMetrics == null ? null : this.sendingMetrics.toString());
+ jsonWriter.writeStringField("reasonForMetricsStatus", this.reasonForMetricsStatus);
+ jsonWriter.writeStringField("sendingLogs", this.sendingLogs == null ? null : this.sendingLogs.toString());
+ jsonWriter.writeStringField("reasonForLogsStatus", this.reasonForLogsStatus);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MonitoredResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MonitoredResourceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MonitoredResourceInner.
+ */
+ public static MonitoredResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MonitoredResourceInner deserializedMonitoredResourceInner = new MonitoredResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedMonitoredResourceInner.id = reader.getString();
+ } else if ("sendingMetrics".equals(fieldName)) {
+ deserializedMonitoredResourceInner.sendingMetrics
+ = SendingMetricsStatus.fromString(reader.getString());
+ } else if ("reasonForMetricsStatus".equals(fieldName)) {
+ deserializedMonitoredResourceInner.reasonForMetricsStatus = reader.getString();
+ } else if ("sendingLogs".equals(fieldName)) {
+ deserializedMonitoredResourceInner.sendingLogs = SendingLogsStatus.fromString(reader.getString());
+ } else if ("reasonForLogsStatus".equals(fieldName)) {
+ deserializedMonitoredResourceInner.reasonForLogsStatus = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMonitoredResourceInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoringTagRulesProperties.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoringTagRulesProperties.java
index ee1cf5f6aa682..5dc4a64343a70 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoringTagRulesProperties.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/MonitoringTagRulesProperties.java
@@ -5,39 +5,44 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.LogRules;
import com.azure.resourcemanager.dynatrace.models.MetricRules;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Properties for the Tag rules resource of a Monitor account. */
+/**
+ * Properties for the Tag rules resource of a Monitor account.
+ */
@Fluent
-public final class MonitoringTagRulesProperties {
+public final class MonitoringTagRulesProperties implements JsonSerializable {
/*
* Set of rules for sending logs for the Monitor resource.
*/
- @JsonProperty(value = "logRules")
private LogRules logRules;
/*
* Set of rules for sending metrics for the Monitor resource.
*/
- @JsonProperty(value = "metricRules")
private MetricRules metricRules;
/*
* Provisioning state of the resource.
*/
- @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
- /** Creates an instance of MonitoringTagRulesProperties class. */
+ /**
+ * Creates an instance of MonitoringTagRulesProperties class.
+ */
public MonitoringTagRulesProperties() {
}
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -46,7 +51,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the MonitoringTagRulesProperties object itself.
*/
@@ -57,7 +62,7 @@ public MonitoringTagRulesProperties withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRules metricRules() {
@@ -66,7 +71,7 @@ public MetricRules metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the MonitoringTagRulesProperties object itself.
*/
@@ -77,7 +82,7 @@ public MonitoringTagRulesProperties withMetricRules(MetricRules metricRules) {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -86,7 +91,7 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -97,4 +102,46 @@ public void validate() {
metricRules().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("logRules", this.logRules);
+ jsonWriter.writeJsonField("metricRules", this.metricRules);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of MonitoringTagRulesProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of MonitoringTagRulesProperties if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the MonitoringTagRulesProperties.
+ */
+ public static MonitoringTagRulesProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ MonitoringTagRulesProperties deserializedMonitoringTagRulesProperties = new MonitoringTagRulesProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("logRules".equals(fieldName)) {
+ deserializedMonitoringTagRulesProperties.logRules = LogRules.fromJson(reader);
+ } else if ("metricRules".equals(fieldName)) {
+ deserializedMonitoringTagRulesProperties.metricRules = MetricRules.fromJson(reader);
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedMonitoringTagRulesProperties.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedMonitoringTagRulesProperties;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/OperationInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/OperationInner.java
index 990ee3022d44f..e9b2172a84188 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/OperationInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/OperationInner.java
@@ -5,59 +5,60 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.ActionType;
import com.azure.resourcemanager.dynatrace.models.OperationDisplay;
import com.azure.resourcemanager.dynatrace.models.Origin;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
/**
* REST API Operation
- *
- * Details of a REST API operation, returned from the Resource Provider Operations API.
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Fluent
-public final class OperationInner {
+public final class OperationInner implements JsonSerializable {
/*
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
*/
- @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
* ARM/control-plane operations.
*/
- @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isDataAction;
/*
* Localized display information for this particular operation.
*/
- @JsonProperty(value = "display")
private OperationDisplay display;
/*
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
* value is "user,system"
*/
- @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private Origin origin;
/*
* Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
- @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
private ActionType actionType;
- /** Creates an instance of OperationInner class. */
+ /**
+ * Creates an instance of OperationInner class.
+ */
public OperationInner() {
}
/**
* Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
* "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
- *
+ *
* @return the name value.
*/
public String name() {
@@ -67,7 +68,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
* operations and "false" for ARM/control-plane operations.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -76,7 +77,7 @@ public Boolean isDataAction() {
/**
* Get the display property: Localized display information for this particular operation.
- *
+ *
* @return the display value.
*/
public OperationDisplay display() {
@@ -85,7 +86,7 @@ public OperationDisplay display() {
/**
* Set the display property: Localized display information for this particular operation.
- *
+ *
* @param display the display value to set.
* @return the OperationInner object itself.
*/
@@ -97,7 +98,7 @@ public OperationInner withDisplay(OperationDisplay display) {
/**
* Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
* audit logs UX. Default value is "user,system".
- *
+ *
* @return the origin value.
*/
public Origin origin() {
@@ -107,7 +108,7 @@ public Origin origin() {
/**
* Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
* only APIs.
- *
+ *
* @return the actionType value.
*/
public ActionType actionType() {
@@ -116,7 +117,7 @@ public ActionType actionType() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
@@ -124,4 +125,48 @@ public void validate() {
display().validate();
}
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/SsoDetailsResponseInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/SsoDetailsResponseInner.java
index 596d83bebb588..e71d14ddace47 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/SsoDetailsResponseInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/SsoDetailsResponseInner.java
@@ -5,50 +5,53 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.SsoStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
import java.util.List;
-/** SSO details from the Dynatrace partner. */
+/**
+ * SSO details from the Dynatrace partner.
+ */
@Fluent
-public final class SsoDetailsResponseInner {
+public final class SsoDetailsResponseInner implements JsonSerializable {
/*
* Whether the SSO is enabled for this resource or not.
*/
- @JsonProperty(value = "isSsoEnabled")
private SsoStatus isSsoEnabled;
/*
* URL for Azure AD metadata
*/
- @JsonProperty(value = "metadataUrl")
private String metadataUrl;
/*
* The login URL specific to this Dynatrace Environment
*/
- @JsonProperty(value = "singleSignOnUrl")
private String singleSignOnUrl;
/*
* array of Aad(azure active directory) domains
*/
- @JsonProperty(value = "aadDomains")
private List aadDomains;
/*
* Array of admin user emails.
*/
- @JsonProperty(value = "adminUsers")
private List adminUsers;
- /** Creates an instance of SsoDetailsResponseInner class. */
+ /**
+ * Creates an instance of SsoDetailsResponseInner class.
+ */
public SsoDetailsResponseInner() {
}
/**
* Get the isSsoEnabled property: Whether the SSO is enabled for this resource or not.
- *
+ *
* @return the isSsoEnabled value.
*/
public SsoStatus isSsoEnabled() {
@@ -57,7 +60,7 @@ public SsoStatus isSsoEnabled() {
/**
* Set the isSsoEnabled property: Whether the SSO is enabled for this resource or not.
- *
+ *
* @param isSsoEnabled the isSsoEnabled value to set.
* @return the SsoDetailsResponseInner object itself.
*/
@@ -68,7 +71,7 @@ public SsoDetailsResponseInner withIsSsoEnabled(SsoStatus isSsoEnabled) {
/**
* Get the metadataUrl property: URL for Azure AD metadata.
- *
+ *
* @return the metadataUrl value.
*/
public String metadataUrl() {
@@ -77,7 +80,7 @@ public String metadataUrl() {
/**
* Set the metadataUrl property: URL for Azure AD metadata.
- *
+ *
* @param metadataUrl the metadataUrl value to set.
* @return the SsoDetailsResponseInner object itself.
*/
@@ -88,7 +91,7 @@ public SsoDetailsResponseInner withMetadataUrl(String metadataUrl) {
/**
* Get the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @return the singleSignOnUrl value.
*/
public String singleSignOnUrl() {
@@ -97,7 +100,7 @@ public String singleSignOnUrl() {
/**
* Set the singleSignOnUrl property: The login URL specific to this Dynatrace Environment.
- *
+ *
* @param singleSignOnUrl the singleSignOnUrl value to set.
* @return the SsoDetailsResponseInner object itself.
*/
@@ -108,7 +111,7 @@ public SsoDetailsResponseInner withSingleSignOnUrl(String singleSignOnUrl) {
/**
* Get the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @return the aadDomains value.
*/
public List aadDomains() {
@@ -117,7 +120,7 @@ public List aadDomains() {
/**
* Set the aadDomains property: array of Aad(azure active directory) domains.
- *
+ *
* @param aadDomains the aadDomains value to set.
* @return the SsoDetailsResponseInner object itself.
*/
@@ -128,7 +131,7 @@ public SsoDetailsResponseInner withAadDomains(List aadDomains) {
/**
* Get the adminUsers property: Array of admin user emails.
- *
+ *
* @return the adminUsers value.
*/
public List adminUsers() {
@@ -137,7 +140,7 @@ public List adminUsers() {
/**
* Set the adminUsers property: Array of admin user emails.
- *
+ *
* @param adminUsers the adminUsers value to set.
* @return the SsoDetailsResponseInner object itself.
*/
@@ -148,9 +151,59 @@ public SsoDetailsResponseInner withAdminUsers(List adminUsers) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("isSsoEnabled", this.isSsoEnabled == null ? null : this.isSsoEnabled.toString());
+ jsonWriter.writeStringField("metadataUrl", this.metadataUrl);
+ jsonWriter.writeStringField("singleSignOnUrl", this.singleSignOnUrl);
+ jsonWriter.writeArrayField("aadDomains", this.aadDomains, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("adminUsers", this.adminUsers, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of SsoDetailsResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of SsoDetailsResponseInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the SsoDetailsResponseInner.
+ */
+ public static SsoDetailsResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ SsoDetailsResponseInner deserializedSsoDetailsResponseInner = new SsoDetailsResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("isSsoEnabled".equals(fieldName)) {
+ deserializedSsoDetailsResponseInner.isSsoEnabled = SsoStatus.fromString(reader.getString());
+ } else if ("metadataUrl".equals(fieldName)) {
+ deserializedSsoDetailsResponseInner.metadataUrl = reader.getString();
+ } else if ("singleSignOnUrl".equals(fieldName)) {
+ deserializedSsoDetailsResponseInner.singleSignOnUrl = reader.getString();
+ } else if ("aadDomains".equals(fieldName)) {
+ List aadDomains = reader.readArray(reader1 -> reader1.getString());
+ deserializedSsoDetailsResponseInner.aadDomains = aadDomains;
+ } else if ("adminUsers".equals(fieldName)) {
+ List adminUsers = reader.readArray(reader1 -> reader1.getString());
+ deserializedSsoDetailsResponseInner.adminUsers = adminUsers;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedSsoDetailsResponseInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/TagRuleInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/TagRuleInner.java
index 59373c86fb8f3..4f7fee4c47c69 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/TagRuleInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/TagRuleInner.java
@@ -8,33 +8,53 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.LogRules;
import com.azure.resourcemanager.dynatrace.models.MetricRules;
import com.azure.resourcemanager.dynatrace.models.ProvisioningState;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Tag rules for a monitor resource. */
+/**
+ * Tag rules for a monitor resource.
+ */
@Fluent
public final class TagRuleInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
*/
- @JsonProperty(value = "properties", required = true)
private MonitoringTagRulesProperties innerProperties = new MonitoringTagRulesProperties();
/*
* System metadata for this resource.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of TagRuleInner class. */
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of TagRuleInner class.
+ */
public TagRuleInner() {
}
/**
* Get the innerProperties property: The resource-specific properties for this resource.
- *
+ *
* @return the innerProperties value.
*/
private MonitoringTagRulesProperties innerProperties() {
@@ -43,16 +63,46 @@ private MonitoringTagRulesProperties innerProperties() {
/**
* Get the systemData property: System metadata for this resource.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
/**
* Get the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @return the logRules value.
*/
public LogRules logRules() {
@@ -61,7 +111,7 @@ public LogRules logRules() {
/**
* Set the logRules property: Set of rules for sending logs for the Monitor resource.
- *
+ *
* @param logRules the logRules value to set.
* @return the TagRuleInner object itself.
*/
@@ -75,7 +125,7 @@ public TagRuleInner withLogRules(LogRules logRules) {
/**
* Get the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @return the metricRules value.
*/
public MetricRules metricRules() {
@@ -84,7 +134,7 @@ public MetricRules metricRules() {
/**
* Set the metricRules property: Set of rules for sending metrics for the Monitor resource.
- *
+ *
* @param metricRules the metricRules value to set.
* @return the TagRuleInner object itself.
*/
@@ -98,7 +148,7 @@ public TagRuleInner withMetricRules(MetricRules metricRules) {
/**
* Get the provisioningState property: Provisioning state of the resource.
- *
+ *
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
@@ -107,17 +157,62 @@ public ProvisioningState provisioningState() {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() == null) {
- throw LOGGER.logExceptionAsError(
- new IllegalArgumentException("Missing required property innerProperties in model TagRuleInner"));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property innerProperties in model TagRuleInner"));
} else {
innerProperties().validate();
}
}
private static final ClientLogger LOGGER = new ClientLogger(TagRuleInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of TagRuleInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of TagRuleInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the TagRuleInner.
+ */
+ public static TagRuleInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ TagRuleInner deserializedTagRuleInner = new TagRuleInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedTagRuleInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedTagRuleInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedTagRuleInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedTagRuleInner.innerProperties = MonitoringTagRulesProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedTagRuleInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedTagRuleInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMExtensionPayloadInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMExtensionPayloadInner.java
index 33f961351fd4d..9adb55aeb6711 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMExtensionPayloadInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMExtensionPayloadInner.java
@@ -5,30 +5,36 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
-/** 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 {
+public final class VMExtensionPayloadInner implements JsonSerializable {
/*
* Ingestion key of the environment
*/
- @JsonProperty(value = "ingestionKey")
private String ingestionKey;
/*
* Id of the environment created
*/
- @JsonProperty(value = "environmentId")
private String environmentId;
- /** Creates an instance of VMExtensionPayloadInner class. */
+ /**
+ * Creates an instance of VMExtensionPayloadInner class.
+ */
public VMExtensionPayloadInner() {
}
/**
* Get the ingestionKey property: Ingestion key of the environment.
- *
+ *
* @return the ingestionKey value.
*/
public String ingestionKey() {
@@ -37,7 +43,7 @@ public String ingestionKey() {
/**
* Set the ingestionKey property: Ingestion key of the environment.
- *
+ *
* @param ingestionKey the ingestionKey value to set.
* @return the VMExtensionPayloadInner object itself.
*/
@@ -48,7 +54,7 @@ public VMExtensionPayloadInner withIngestionKey(String ingestionKey) {
/**
* Get the environmentId property: Id of the environment created.
- *
+ *
* @return the environmentId value.
*/
public String environmentId() {
@@ -57,7 +63,7 @@ public String environmentId() {
/**
* Set the environmentId property: Id of the environment created.
- *
+ *
* @param environmentId the environmentId value to set.
* @return the VMExtensionPayloadInner object itself.
*/
@@ -68,9 +74,48 @@ public VMExtensionPayloadInner withEnvironmentId(String environmentId) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("ingestionKey", this.ingestionKey);
+ jsonWriter.writeStringField("environmentId", this.environmentId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VMExtensionPayloadInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VMExtensionPayloadInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the VMExtensionPayloadInner.
+ */
+ public static VMExtensionPayloadInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VMExtensionPayloadInner deserializedVMExtensionPayloadInner = new VMExtensionPayloadInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ingestionKey".equals(fieldName)) {
+ deserializedVMExtensionPayloadInner.ingestionKey = reader.getString();
+ } else if ("environmentId".equals(fieldName)) {
+ deserializedVMExtensionPayloadInner.environmentId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVMExtensionPayloadInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMInfoInner.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMInfoInner.java
index 6f54fb2c58e13..28a3bf4f62667 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMInfoInner.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/VMInfoInner.java
@@ -5,77 +5,76 @@
package com.azure.resourcemanager.dynatrace.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
import com.azure.resourcemanager.dynatrace.models.AutoUpdateSetting;
import com.azure.resourcemanager.dynatrace.models.AvailabilityState;
import com.azure.resourcemanager.dynatrace.models.LogModule;
import com.azure.resourcemanager.dynatrace.models.MonitoringType;
import com.azure.resourcemanager.dynatrace.models.UpdateStatus;
-import com.fasterxml.jackson.annotation.JsonProperty;
+import java.io.IOException;
-/** Details of VM Resource having Dynatrace OneAgent installed. */
+/**
+ * Details of VM Resource having Dynatrace OneAgent installed.
+ */
@Fluent
-public final class VMInfoInner {
+public final class VMInfoInner implements JsonSerializable {
/*
* Azure VM resource ID
*/
- @JsonProperty(value = "resourceId")
private String resourceId;
/*
* Version of the Dynatrace agent installed on the VM.
*/
- @JsonProperty(value = "version")
private String version;
/*
* The monitoring mode of OneAgent
*/
- @JsonProperty(value = "monitoringType")
private MonitoringType monitoringType;
/*
* Update settings of OneAgent.
*/
- @JsonProperty(value = "autoUpdateSetting")
private AutoUpdateSetting autoUpdateSetting;
/*
* The current update status of OneAgent.
*/
- @JsonProperty(value = "updateStatus")
private UpdateStatus updateStatus;
/*
* The availability state of OneAgent.
*/
- @JsonProperty(value = "availabilityState")
private AvailabilityState availabilityState;
/*
* Tells whether log modules are enabled or not
*/
- @JsonProperty(value = "logModule")
private LogModule logModule;
/*
* The name of the host group
*/
- @JsonProperty(value = "hostGroup")
private String hostGroup;
/*
* The name of the host
*/
- @JsonProperty(value = "hostName")
private String hostname;
- /** Creates an instance of VMInfoInner class. */
+ /**
+ * Creates an instance of VMInfoInner class.
+ */
public VMInfoInner() {
}
/**
* Get the resourceId property: Azure VM resource ID.
- *
+ *
* @return the resourceId value.
*/
public String resourceId() {
@@ -84,7 +83,7 @@ public String resourceId() {
/**
* Set the resourceId property: Azure VM resource ID.
- *
+ *
* @param resourceId the resourceId value to set.
* @return the VMInfoInner object itself.
*/
@@ -95,7 +94,7 @@ public VMInfoInner withResourceId(String resourceId) {
/**
* Get the version property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @return the version value.
*/
public String version() {
@@ -104,7 +103,7 @@ public String version() {
/**
* Set the version property: Version of the Dynatrace agent installed on the VM.
- *
+ *
* @param version the version value to set.
* @return the VMInfoInner object itself.
*/
@@ -115,7 +114,7 @@ public VMInfoInner withVersion(String version) {
/**
* Get the monitoringType property: The monitoring mode of OneAgent.
- *
+ *
* @return the monitoringType value.
*/
public MonitoringType monitoringType() {
@@ -124,7 +123,7 @@ public MonitoringType monitoringType() {
/**
* Set the monitoringType property: The monitoring mode of OneAgent.
- *
+ *
* @param monitoringType the monitoringType value to set.
* @return the VMInfoInner object itself.
*/
@@ -135,7 +134,7 @@ public VMInfoInner withMonitoringType(MonitoringType monitoringType) {
/**
* Get the autoUpdateSetting property: Update settings of OneAgent.
- *
+ *
* @return the autoUpdateSetting value.
*/
public AutoUpdateSetting autoUpdateSetting() {
@@ -144,7 +143,7 @@ public AutoUpdateSetting autoUpdateSetting() {
/**
* Set the autoUpdateSetting property: Update settings of OneAgent.
- *
+ *
* @param autoUpdateSetting the autoUpdateSetting value to set.
* @return the VMInfoInner object itself.
*/
@@ -155,7 +154,7 @@ public VMInfoInner withAutoUpdateSetting(AutoUpdateSetting autoUpdateSetting) {
/**
* Get the updateStatus property: The current update status of OneAgent.
- *
+ *
* @return the updateStatus value.
*/
public UpdateStatus updateStatus() {
@@ -164,7 +163,7 @@ public UpdateStatus updateStatus() {
/**
* Set the updateStatus property: The current update status of OneAgent.
- *
+ *
* @param updateStatus the updateStatus value to set.
* @return the VMInfoInner object itself.
*/
@@ -175,7 +174,7 @@ public VMInfoInner withUpdateStatus(UpdateStatus updateStatus) {
/**
* Get the availabilityState property: The availability state of OneAgent.
- *
+ *
* @return the availabilityState value.
*/
public AvailabilityState availabilityState() {
@@ -184,7 +183,7 @@ public AvailabilityState availabilityState() {
/**
* Set the availabilityState property: The availability state of OneAgent.
- *
+ *
* @param availabilityState the availabilityState value to set.
* @return the VMInfoInner object itself.
*/
@@ -195,7 +194,7 @@ public VMInfoInner withAvailabilityState(AvailabilityState availabilityState) {
/**
* Get the logModule property: Tells whether log modules are enabled or not.
- *
+ *
* @return the logModule value.
*/
public LogModule logModule() {
@@ -204,7 +203,7 @@ public LogModule logModule() {
/**
* Set the logModule property: Tells whether log modules are enabled or not.
- *
+ *
* @param logModule the logModule value to set.
* @return the VMInfoInner object itself.
*/
@@ -215,7 +214,7 @@ public VMInfoInner withLogModule(LogModule logModule) {
/**
* Get the hostGroup property: The name of the host group.
- *
+ *
* @return the hostGroup value.
*/
public String hostGroup() {
@@ -224,7 +223,7 @@ public String hostGroup() {
/**
* Set the hostGroup property: The name of the host group.
- *
+ *
* @param hostGroup the hostGroup value to set.
* @return the VMInfoInner object itself.
*/
@@ -235,7 +234,7 @@ public VMInfoInner withHostGroup(String hostGroup) {
/**
* Get the hostname property: The name of the host.
- *
+ *
* @return the hostname value.
*/
public String hostname() {
@@ -244,7 +243,7 @@ public String hostname() {
/**
* Set the hostname property: The name of the host.
- *
+ *
* @param hostname the hostname value to set.
* @return the VMInfoInner object itself.
*/
@@ -255,9 +254,72 @@ public VMInfoInner withHostname(String hostname) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeStringField("version", this.version);
+ jsonWriter.writeStringField("monitoringType",
+ this.monitoringType == null ? null : this.monitoringType.toString());
+ jsonWriter.writeStringField("autoUpdateSetting",
+ this.autoUpdateSetting == null ? null : this.autoUpdateSetting.toString());
+ jsonWriter.writeStringField("updateStatus", this.updateStatus == null ? null : this.updateStatus.toString());
+ jsonWriter.writeStringField("availabilityState",
+ this.availabilityState == null ? null : this.availabilityState.toString());
+ jsonWriter.writeStringField("logModule", this.logModule == null ? null : this.logModule.toString());
+ jsonWriter.writeStringField("hostGroup", this.hostGroup);
+ jsonWriter.writeStringField("hostName", this.hostname);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VMInfoInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VMInfoInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IOException If an error occurs while reading the VMInfoInner.
+ */
+ public static VMInfoInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VMInfoInner deserializedVMInfoInner = new VMInfoInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedVMInfoInner.resourceId = reader.getString();
+ } else if ("version".equals(fieldName)) {
+ deserializedVMInfoInner.version = reader.getString();
+ } else if ("monitoringType".equals(fieldName)) {
+ deserializedVMInfoInner.monitoringType = MonitoringType.fromString(reader.getString());
+ } else if ("autoUpdateSetting".equals(fieldName)) {
+ deserializedVMInfoInner.autoUpdateSetting = AutoUpdateSetting.fromString(reader.getString());
+ } else if ("updateStatus".equals(fieldName)) {
+ deserializedVMInfoInner.updateStatus = UpdateStatus.fromString(reader.getString());
+ } else if ("availabilityState".equals(fieldName)) {
+ deserializedVMInfoInner.availabilityState = AvailabilityState.fromString(reader.getString());
+ } else if ("logModule".equals(fieldName)) {
+ deserializedVMInfoInner.logModule = LogModule.fromString(reader.getString());
+ } else if ("hostGroup".equals(fieldName)) {
+ deserializedVMInfoInner.hostGroup = reader.getString();
+ } else if ("hostName".equals(fieldName)) {
+ deserializedVMInfoInner.hostname = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVMInfoInner;
+ });
+ }
}
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/package-info.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/package-info.java
index 9d36a27e190f7..798137b01a42c 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/models/package-info.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/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 DynatraceObservability. null. */
+/**
+ * Package containing the inner data models for DynatraceObservability.
+ * null.
+ */
package com.azure.resourcemanager.dynatrace.fluent.models;
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/package-info.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/package-info.java
index 205eb4e7b5333..a7fb99f963886 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/fluent/package-info.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/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 DynatraceObservability. null. */
+/**
+ * Package containing the service clients for DynatraceObservability.
+ * null.
+ */
package com.azure.resourcemanager.dynatrace.fluent;
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityBuilder.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityBuilder.java
index 06170e0dc195d..d21876f9c5f9d 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityBuilder.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityBuilder.java
@@ -14,7 +14,9 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the DynatraceObservabilityImpl type. */
+/**
+ * A builder for creating a new instance of the DynatraceObservabilityImpl type.
+ */
@ServiceClientBuilder(serviceClients = { DynatraceObservabilityImpl.class })
public final class DynatraceObservabilityBuilder {
/*
@@ -24,7 +26,7 @@ public final class DynatraceObservabilityBuilder {
/**
* Sets The ID of the target subscription.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -40,7 +42,7 @@ public DynatraceObservabilityBuilder subscriptionId(String subscriptionId) {
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -56,7 +58,7 @@ public DynatraceObservabilityBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -72,7 +74,7 @@ public DynatraceObservabilityBuilder environment(AzureEnvironment environment) {
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -88,7 +90,7 @@ public DynatraceObservabilityBuilder pipeline(HttpPipeline pipeline) {
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -104,7 +106,7 @@ public DynatraceObservabilityBuilder defaultPollInterval(Duration defaultPollInt
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the DynatraceObservabilityBuilder.
*/
@@ -115,7 +117,7 @@ public DynatraceObservabilityBuilder serializerAdapter(SerializerAdapter seriali
/**
* Builds an instance of DynatraceObservabilityImpl with the provided parameters.
- *
+ *
* @return an instance of DynatraceObservabilityImpl.
*/
public DynatraceObservabilityImpl buildClient() {
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityImpl.java
index 0a8c2f57880ea..44ab05081d9fd 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityImpl.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceObservabilityImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.dynatrace.implementation;
import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
@@ -36,123 +37,145 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the DynatraceObservabilityImpl type. */
+/**
+ * Initializes a new instance of the DynatraceObservabilityImpl type.
+ */
@ServiceClient(builder = DynatraceObservabilityBuilder.class)
public final class DynatraceObservabilityImpl implements DynatraceObservability {
- /** 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() {
@@ -161,7 +184,7 @@ public SingleSignOnsClient getSingleSignOns() {
/**
* Initializes an instance of DynatraceObservability 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.
@@ -185,7 +208,7 @@ public SingleSignOnsClient getSingleSignOns() {
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -194,7 +217,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.
*/
@@ -204,7 +227,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.
@@ -222,7 +245,7 @@ public PollerFlux, U> getLroResult(Mono type of poll result.
* @param type of final result.
@@ -285,7 +308,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceSingleSignOnResourceImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceSingleSignOnResourceImpl.java
index 20e8e6706a3ec..ccafb00fc6804 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceSingleSignOnResourceImpl.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/DynatraceSingleSignOnResourceImpl.java
@@ -127,9 +127,10 @@ public DynatraceSingleSignOnResource apply(Context context) {
com.azure.resourcemanager.dynatrace.DynatraceManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.monitorName = Utils.getValueFromIdByName(innerObject.id(), "monitors");
- this.configurationName = Utils.getValueFromIdByName(innerObject.id(), "singleSignOnConfigurations");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "monitors");
+ this.configurationName
+ = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "singleSignOnConfigurations");
}
public DynatraceSingleSignOnResource refresh() {
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorResourceImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorResourceImpl.java
index f47b8190b7f28..29037f0c59900 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorResourceImpl.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorResourceImpl.java
@@ -178,8 +178,8 @@ public MonitorResource apply(Context context) {
com.azure.resourcemanager.dynatrace.DynatraceManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.monitorName = Utils.getValueFromIdByName(innerObject.id(), "monitors");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.monitorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "monitors");
}
public MonitorResource refresh() {
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsClientImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsClientImpl.java
index 5bfb9afc112a1..e4864f0db145d 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsClientImpl.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsClientImpl.java
@@ -56,17 +56,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 DynatraceObservabilityImpl client;
/**
* Initializes an instance of MonitorsClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
MonitorsClientImpl(DynatraceObservabilityImpl client) {
@@ -264,14 +270,14 @@ Mono> listLinkableEnvironmentsNext(
/**
* List the resources currently being monitored by the Dynatrace 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.
* @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 list of all the resources being monitored by Dynatrace monitor resource along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMonitoredResourcesSinglePageAsync(String resourceGroupName,
@@ -303,7 +309,7 @@ private Mono> listMonitoredResourcesSingle
/**
* List the resources currently being monitored by the Dynatrace 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.
@@ -311,7 +317,7 @@ private Mono> listMonitoredResourcesSingle
* @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 list of all the resources being monitored by Dynatrace monitor resource along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMonitoredResourcesSinglePageAsync(String resourceGroupName,
@@ -342,14 +348,14 @@ private Mono> listMonitoredResourcesSingle
/**
* List the resources currently being monitored by the Dynatrace 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.
* @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 list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedFlux}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listMonitoredResourcesAsync(String resourceGroupName,
@@ -360,15 +366,15 @@ private PagedFlux listMonitoredResourcesAsync(String res
/**
* List the resources currently being monitored by the Dynatrace 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.
* @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 list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedFlux}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listMonitoredResourcesAsync(String resourceGroupName, String monitorName,
@@ -379,14 +385,14 @@ private PagedFlux listMonitoredResourcesAsync(String res
/**
* List the resources currently being monitored by the Dynatrace 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.
* @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 list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listMonitoredResources(String resourceGroupName, String monitorName) {
@@ -395,15 +401,15 @@ public PagedIterable listMonitoredResources(String resou
/**
* List the resources currently being monitored by the Dynatrace 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.
* @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 list of all the resources being monitored by Dynatrace monitor resource as paginated response with {@link
- * PagedIterable}.
+ * @return list of all the resources being monitored by Dynatrace monitor resource as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
@@ -413,14 +419,14 @@ public PagedIterable listMonitoredResources(String resou
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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> getVMHostPayloadWithResponseAsync(String resourceGroupName,
@@ -449,7 +455,7 @@ private Mono> getVMHostPayloadWithResponseAsyn
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -457,7 +463,7 @@ private Mono> getVMHostPayloadWithResponseAsyn
* @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> getVMHostPayloadWithResponseAsync(String resourceGroupName,
@@ -485,7 +491,7 @@ private Mono> getVMHostPayloadWithResponseAsyn
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -501,7 +507,7 @@ private Mono getVMHostPayloadAsync(String resourceGroup
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -518,7 +524,7 @@ public Response getVMHostPayloadWithResponse(String res
/**
* Returns the payload that needs to be passed in the request body for installing Dynatrace 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.
@@ -533,7 +539,7 @@ public VMExtensionPayloadInner getVMHostPayload(String resourceGroupName, String
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -568,7 +574,7 @@ private Mono> getByResourceGroupWithResponseAsync
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -603,7 +609,7 @@ private Mono> getByResourceGroupWithResponseAsync
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -619,7 +625,7 @@ private Mono getByResourceGroupAsync(String resourceGroupN
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -636,7 +642,7 @@ public Response getByResourceGroupWithResponse(String reso
/**
* Get a MonitorResource.
- *
+ *
* @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.
@@ -651,7 +657,7 @@ public MonitorResourceInner getByResourceGroup(String resourceGroupName, String
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -692,7 +698,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -733,7 +739,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -753,7 +759,7 @@ private Mono>> createOrUpdateWithResponseAsync(String
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -775,7 +781,7 @@ private PollerFlux, MonitorResourceInner> begin
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -792,7 +798,7 @@ private PollerFlux, MonitorResourceInner> begin
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -810,7 +816,7 @@ public SyncPoller, MonitorResourceInner> beginC
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -828,7 +834,7 @@ private Mono createOrUpdateAsync(String resourceGroupName,
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -847,7 +853,7 @@ private Mono createOrUpdateAsync(String resourceGroupName,
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -864,7 +870,7 @@ public MonitorResourceInner createOrUpdate(String resourceGroupName, String moni
/**
* Create a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource Resource create parameters.
@@ -882,7 +888,7 @@ public MonitorResourceInner createOrUpdate(String resourceGroupName, String moni
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -923,7 +929,7 @@ private Mono> updateWithResponseAsync(String reso
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -964,7 +970,7 @@ private Mono> updateWithResponseAsync(String reso
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -982,7 +988,7 @@ private Mono updateAsync(String resourceGroupName, String
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -1000,7 +1006,7 @@ public Response updateWithResponse(String resourceGroupNam
/**
* Update a MonitorResource.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param resource The resource properties to be updated.
@@ -1016,7 +1022,7 @@ public MonitorResourceInner update(String resourceGroupName, String monitorName,
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1050,7 +1056,7 @@ private Mono>> deleteWithResponseAsync(String resource
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1085,7 +1091,7 @@ private Mono>> deleteWithResponseAsync(String resource
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1102,7 +1108,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1122,7 +1128,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1137,7 +1143,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1154,7 +1160,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1169,7 +1175,7 @@ private Mono deleteAsync(String resourceGroupName, String monitorName) {
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1186,7 +1192,7 @@ private Mono deleteAsync(String resourceGroupName, String monitorName, Con
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1200,7 +1206,7 @@ public void delete(String resourceGroupName, String monitorName) {
/**
* Delete a MonitorResource.
- *
+ *
* @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.
@@ -1215,11 +1221,11 @@ public void delete(String resourceGroupName, String monitorName, Context context
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1242,13 +1248,13 @@ private Mono> listSinglePageAsync() {
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @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 the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1271,7 +1277,7 @@ private Mono> listSinglePageAsync(Context co
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation as paginated response with {@link PagedFlux}.
@@ -1284,7 +1290,7 @@ private PagedFlux listAsync() {
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @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.
@@ -1299,7 +1305,7 @@ private PagedFlux listAsync(Context context) {
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation as paginated response with {@link PagedIterable}.
@@ -1311,7 +1317,7 @@ public PagedIterable list() {
/**
* List all MonitorResource by subscriptionId.
- *
+ *
* @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.
@@ -1325,13 +1331,13 @@ public PagedIterable list(Context context) {
/**
* List MonitorResource resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
@@ -1358,14 +1364,14 @@ private Mono> listByResourceGroupSinglePageA
/**
* List MonitorResource resources by 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.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
@@ -1393,7 +1399,7 @@ private Mono> listByResourceGroupSinglePageA
/**
* List MonitorResource resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1408,7 +1414,7 @@ private PagedFlux listByResourceGroupAsync(String resource
/**
* List MonitorResource resources by 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.
@@ -1424,7 +1430,7 @@ private PagedFlux listByResourceGroupAsync(String resource
/**
* List MonitorResource resources by resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1438,7 +1444,7 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* List MonitorResource resources by 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.
@@ -1453,14 +1459,14 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws ManagementException thrown if the request is rejected by server on status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace SaaS resource details of a tenant under a specific subscription along with {@link Response}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
@@ -1487,7 +1493,7 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1495,7 +1501,7 @@ public PagedIterable listByResourceGroup(String resourceGr
* @throws ManagementException thrown if the request is rejected by server on status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace SaaS resource details of a tenant under a specific subscription along with {@link Response}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
@@ -1522,14 +1528,14 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws ManagementException thrown if the request is rejected by server on status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace SaaS resource details of a tenant under a specific subscription on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono
@@ -1540,7 +1546,7 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1557,7 +1563,7 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* Get Marketplace SaaS resource details of a tenant under a specific subscription.
- *
+ *
* @param request Tenant Id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -1573,14 +1579,14 @@ public PagedIterable listByResourceGroup(String resourceGr
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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 Operation along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return response of a list VM Host Operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listHostsSinglePageAsync(String resourceGroupName, String monitorName) {
@@ -1610,15 +1616,15 @@ private Mono> listHostsSinglePageAsync(String resourc
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
* @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 Operation along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return response of a list VM Host Operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listHostsSinglePageAsync(String resourceGroupName, String monitorName,
@@ -1649,7 +1655,7 @@ private Mono> listHostsSinglePageAsync(String resourc
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -1665,7 +1671,7 @@ private PagedFlux listHostsAsync(String resourceGroupName, String m
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -1682,7 +1688,7 @@ private PagedFlux listHostsAsync(String resourceGroupName, String m
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -1697,7 +1703,7 @@ public PagedIterable listHosts(String resourceGroupName, String mon
/**
* List the VM/VMSS resources currently being monitored by the Dynatrace 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.
@@ -1713,7 +1719,7 @@ public PagedIterable listHosts(String resourceGroupName, String mon
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1748,7 +1754,7 @@ private Mono> getMetricStatusWithResponseAs
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @param context The context to associate with this operation.
@@ -1783,7 +1789,7 @@ private Mono> getMetricStatusWithResponseAs
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1799,7 +1805,7 @@ private Mono getMetricStatusAsync(String resourceGro
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @param context The context to associate with this operation.
@@ -1816,7 +1822,7 @@ public Response getMetricStatusWithResponse(String r
/**
* Get metric status.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Name of the Monitor resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -1831,14 +1837,14 @@ public MetricsStatusResponseInner getMetricStatus(String resourceGroupName, Stri
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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 list of App Services with Dynatrace PaaS OneAgent enabled along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listAppServicesSinglePageAsync(String resourceGroupName,
@@ -1869,7 +1875,7 @@ private Mono> listAppServicesSinglePageAsync(
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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.
@@ -1877,7 +1883,7 @@ private Mono> listAppServicesSinglePageAsync(
* @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 list of App Services with Dynatrace PaaS OneAgent enabled along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listAppServicesSinglePageAsync(String resourceGroupName,
@@ -1908,7 +1914,7 @@ private Mono> listAppServicesSinglePageAsync(
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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.
@@ -1924,7 +1930,7 @@ private PagedFlux listAppServicesAsync(String resourceGroup
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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.
@@ -1942,14 +1948,14 @@ private PagedFlux listAppServicesAsync(String resourceGroup
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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 list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with {@link
- * PagedIterable}.
+ * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listAppServices(String resourceGroupName, String monitorName) {
@@ -1958,15 +1964,15 @@ public PagedIterable listAppServices(String resourceGroupNa
/**
* Gets list of App Services with Dynatrace PaaS OneAgent enabled.
- *
+ *
* @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.
* @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 list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with {@link
- * PagedIterable}.
+ * @return list of App Services with Dynatrace PaaS OneAgent enabled as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listAppServices(String resourceGroupName, String monitorName,
@@ -1976,7 +1982,7 @@ public PagedIterable listAppServices(String resourceGroupNa
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the get sso details request.
@@ -1985,7 +1991,7 @@ public PagedIterable listAppServices(String resourceGroupNa
* @throws ManagementException thrown if the request is rejected by server on status code 401.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the SSO configuration details from the partner along with {@link Response} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getSsoDetailsWithResponseAsync(String resourceGroupName,
@@ -2017,7 +2023,7 @@ private Mono> getSsoDetailsWithResponseAsync(S
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the get sso details request.
@@ -2027,7 +2033,7 @@ private Mono> getSsoDetailsWithResponseAsync(S
* @throws ManagementException thrown if the request is rejected by server on status code 401.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the SSO configuration details from the partner along with {@link Response} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getSsoDetailsWithResponseAsync(String resourceGroupName,
@@ -2058,7 +2064,7 @@ private Mono> getSsoDetailsWithResponseAsync(S
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @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.
@@ -2076,7 +2082,7 @@ private Mono getSsoDetailsAsync(String resourceGroupNam
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the get sso details request.
@@ -2095,7 +2101,7 @@ public Response getSsoDetailsWithResponse(String resour
/**
* Gets the SSO configuration details from the partner.
- *
+ *
* @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.
@@ -2112,7 +2118,7 @@ public SsoDetailsResponseInner getSsoDetails(String resourceGroupName, String mo
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
@@ -2120,7 +2126,7 @@ public SsoDetailsResponseInner getSsoDetails(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 all the Dynatrace environments that a user can link a azure resource to along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listLinkableEnvironmentsSinglePageAsync(
@@ -2157,7 +2163,7 @@ private Mono> listLinkableEnviro
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
@@ -2166,7 +2172,7 @@ private Mono> listLinkableEnviro
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return all the Dynatrace environments that a user can link a azure resource to along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listLinkableEnvironmentsSinglePageAsync(
@@ -2202,15 +2208,15 @@ private Mono> listLinkableEnviro
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedFlux}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listLinkableEnvironmentsAsync(String resourceGroupName,
@@ -2221,7 +2227,7 @@ private PagedFlux listLinkableEnvironmentsAsyn
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
@@ -2229,8 +2235,8 @@ private PagedFlux listLinkableEnvironmentsAsyn
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedFlux}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listLinkableEnvironmentsAsync(String resourceGroupName,
@@ -2242,15 +2248,15 @@ private PagedFlux listLinkableEnvironmentsAsyn
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedIterable}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listLinkableEnvironments(String resourceGroupName,
@@ -2260,7 +2266,7 @@ public PagedIterable listLinkableEnvironments(
/**
* Gets all the Dynatrace environments that a user can link a azure resource to.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param request The details of the linkable environment request.
@@ -2268,8 +2274,8 @@ public PagedIterable listLinkableEnvironments(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with {@link
- * PagedIterable}.
+ * @return all the Dynatrace environments that a user can link a azure resource to as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listLinkableEnvironments(String resourceGroupName,
@@ -2279,14 +2285,13 @@ public PagedIterable listLinkableEnvironments(
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 list of all the resources being monitored by Dynatrace monitor resource along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMonitoredResourcesNextSinglePageAsync(String nextLink) {
@@ -2308,15 +2313,14 @@ private Mono> listMonitoredResourcesNextSi
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 list of all the resources being monitored by Dynatrace monitor resource along with {@link PagedResponse}
- * on successful completion of {@link Mono}.
+ * on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listMonitoredResourcesNextSinglePageAsync(String nextLink,
@@ -2337,14 +2341,13 @@ private Mono> listMonitoredResourcesNextSi
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionIdNextSinglePageAsync(String nextLink) {
@@ -2366,15 +2369,14 @@ private Mono> listBySubscriptionIdNextSingle
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listBySubscriptionIdNextSinglePageAsync(String nextLink,
@@ -2395,14 +2397,13 @@ private Mono> listBySubscriptionIdNextSingle
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
@@ -2424,15 +2425,14 @@ private Mono> listByResourceGroupNextSingleP
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 the response of a MonitorResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupNextSinglePageAsync(String nextLink,
@@ -2453,14 +2453,13 @@ private Mono> listByResourceGroupNextSingleP
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 Operation along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return response of a list VM Host Operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listHostsNextSinglePageAsync(String nextLink) {
@@ -2481,15 +2480,14 @@ private Mono> listHostsNextSinglePageAsync(String nex
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 Operation along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
+ * @return response of a list VM Host Operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listHostsNextSinglePageAsync(String nextLink, Context context) {
@@ -2509,14 +2507,13 @@ private Mono> listHostsNextSinglePageAsync(String nex
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 App Services Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listAppServicesNextSinglePageAsync(String nextLink) {
@@ -2537,15 +2534,14 @@ private Mono> listAppServicesNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 App Services Operation along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listAppServicesNextSinglePageAsync(String nextLink,
@@ -2566,14 +2562,13 @@ private Mono> listAppServicesNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 for getting all the linkable environments along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
@@ -2596,15 +2591,14 @@ private Mono> listAppServicesNextSinglePageAs
/**
* Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items
- * The nextLink parameter.
+ *
+ * @param nextLink The URL to get the next list of items.
* @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 for getting all the linkable environments along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsImpl.java
index 6d49f34b954ac..d7e3be632d2d1 100644
--- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsImpl.java
+++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/MonitorsImpl.java
@@ -49,14 +49,14 @@ public MonitorsImpl(MonitorsClient innerClient,
public PagedIterable listMonitoredResources(String resourceGroupName, String monitorName) {
PagedIterable inner
= this.serviceClient().listMonitoredResources(resourceGroupName, monitorName);
- return Utils.mapPage(inner, inner1 -> new MonitoredResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MonitoredResourceImpl(inner1, this.manager()));
}
public PagedIterable listMonitoredResources(String resourceGroupName, String monitorName,
Context context) {
PagedIterable inner
= this.serviceClient().listMonitoredResources(resourceGroupName, monitorName, context);
- return Utils.mapPage(inner, inner1 -> new MonitoredResourceImpl(inner1, this.manager()));
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new MonitoredResourceImpl(inner1, this.manager()));
}
public Response getVMHostPayloadWithResponse(String resourceGroupName, String monitorName,
@@ -111,23 +111,23 @@ public void delete(String resourceGroupName, String monitorName, Context context
public PagedIterable list() {
PagedIterable