diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md b/sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md index 20bf841f04aa..2b72b7ab1411 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2022-08-22) + +- Azure Resource Manager Dynatrace client library for Java. This package contains Microsoft Azure SDK for Dynatrace Management SDK. Package tag package-2021-09-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/README.md b/sdk/dynatrace/azure-resourcemanager-dynatrace/README.md index e39a9b8b469d..c09994f0b644 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/README.md +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-dynatrace - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) 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 bd4f774d749c..f34c7578eab6 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 @@ -25,8 +25,7 @@ public final class MonitoredResourceInner { private SendingMetricsStatus sendingMetrics; /* - * Reason for why the resource is sending metrics (or why it is not - * sending). + * Reason for why the resource is sending metrics (or why it is not sending). */ @JsonProperty(value = "reasonForMetricsStatus") private String reasonForMetricsStatus; 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 92ea3bd4b681..0a7095481a46 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 @@ -10,20 +10,23 @@ import com.azure.resourcemanager.dynatrace.models.Origin; import com.fasterxml.jackson.annotation.JsonProperty; -/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */ +/** + * REST API Operation + * + *

Details of a REST API operation, returned from the Resource Provider Operations API. + */ @Fluent public final class OperationInner { /* - * The name of the operation, as per Resource-Based Access Control (RBAC). - * Examples: "Microsoft.Compute/virtualMachines/write", - * "Microsoft.Compute/virtualMachines/capture/action" + * 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. + * 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; @@ -35,15 +38,14 @@ public final class OperationInner { 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" + * 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. + * 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; 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 b48208a80db0..dffc3370095f 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 @@ -119,24 +119,26 @@ public DynatraceObservabilityBuilder serializerAdapter(SerializerAdapter seriali * @return an instance of DynatraceObservabilityImpl. */ public DynatraceObservabilityImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); DynatraceObservabilityImpl client = new DynatraceObservabilityImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } 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 18adf8a299f1..d8f9333183d1 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 @@ -2660,7 +2660,8 @@ public PagedIterable listLinkableEnvironments( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2697,7 +2698,8 @@ private Mono> listMonitoredResourcesNextSi /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2735,7 +2737,8 @@ private Mono> listMonitoredResourcesNextSi /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2772,7 +2775,8 @@ private Mono> listBySubscriptionIdNextSingle /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2810,7 +2814,8 @@ private Mono> listBySubscriptionIdNextSingle /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2847,7 +2852,8 @@ private Mono> listByResourceGroupNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2885,7 +2891,8 @@ private Mono> listByResourceGroupNextSingleP /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2921,7 +2928,8 @@ private Mono> listHostsNextSinglePageAsync(String nex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2958,7 +2966,8 @@ private Mono> listHostsNextSinglePageAsync(String nex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2994,7 +3003,8 @@ private Mono> listAppServicesNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3032,7 +3042,8 @@ private Mono> listAppServicesNextSinglePageAs /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -3070,7 +3081,8 @@ private Mono> listLinkableEnviro /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/OperationsClientImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/OperationsClientImpl.java index 7c0a8d33c920..da4a73f64b56 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/OperationsClientImpl.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/OperationsClientImpl.java @@ -202,7 +202,8 @@ public PagedIterable list(Context context) { /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -238,7 +239,8 @@ private Mono> listNextSinglePageAsync(String nextL /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/SingleSignOnsClientImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/SingleSignOnsClientImpl.java index 0066b097d1f0..b9aa039a2826 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/SingleSignOnsClientImpl.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/SingleSignOnsClientImpl.java @@ -802,7 +802,8 @@ public PagedIterable list( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -838,7 +839,8 @@ private Mono> listNextSinglePa /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/TagRulesClientImpl.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/TagRulesClientImpl.java index b7a357f6d706..fea8fd91b6f1 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/TagRulesClientImpl.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/implementation/TagRulesClientImpl.java @@ -1199,7 +1199,8 @@ public PagedIterable list(String resourceGroupName, String monitor /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1235,7 +1236,8 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ActionType.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ActionType.java index de4dce56c041..d8b1eec414d4 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ActionType.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ActionType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ActionType. */ +/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** Static value Internal for ActionType. */ public static final ActionType INTERNAL = fromString("Internal"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AppServiceListResponse.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AppServiceListResponse.java index 01eb59286e4c..ace8b79ffc42 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AppServiceListResponse.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AppServiceListResponse.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.AppServiceInfoInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class AppServiceListResponse { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,19 +70,8 @@ public AppServiceListResponse withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model AppServiceListResponse")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property nextLink in model AppServiceListResponse")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(AppServiceListResponse.class); } diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AutoUpdateSetting.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AutoUpdateSetting.java index 6a949dca950a..8eb368610602 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AutoUpdateSetting.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AutoUpdateSetting.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AutoUpdateSetting. */ +/** Update settings of OneAgent. */ public final class AutoUpdateSetting extends ExpandableStringEnum { /** Static value ENABLED for AutoUpdateSetting. */ public static final AutoUpdateSetting ENABLED = fromString("ENABLED"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AvailabilityState.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AvailabilityState.java index 628ca326ea59..4bfc3ef13cb9 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AvailabilityState.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/AvailabilityState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for AvailabilityState. */ +/** The availability state of OneAgent. */ public final class AvailabilityState extends ExpandableStringEnum { /** Static value CRASHED for AvailabilityState. */ public static final AvailabilityState CRASHED = fromString("CRASHED"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/DynatraceSingleSignOnResourceListResult.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/DynatraceSingleSignOnResourceListResult.java index 053b6bfda029..0a4513f52d7c 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/DynatraceSingleSignOnResourceListResult.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/DynatraceSingleSignOnResourceListResult.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.DynatraceSingleSignOnResourceInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class DynatraceSingleSignOnResourceListResult { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,21 +70,8 @@ public DynatraceSingleSignOnResourceListResult withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model DynatraceSingleSignOnResourceListResult")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property nextLink in model DynatraceSingleSignOnResourceListResult")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(DynatraceSingleSignOnResourceListResult.class); } diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/FilteringTag.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/FilteringTag.java index 8cfa7024fc98..8ad1e60d9fef 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/FilteringTag.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/FilteringTag.java @@ -26,8 +26,7 @@ public final class FilteringTag { private String value; /* - * Valid actions for a filtering tag. Exclusion takes priority over - * inclusion. + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. */ @JsonProperty(value = "action") private TagAction action; diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LiftrResourceCategories.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LiftrResourceCategories.java index 2df1abb755fd..74137caec0f0 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LiftrResourceCategories.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LiftrResourceCategories.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for LiftrResourceCategories. */ +/** Liftr resource category. */ public final class LiftrResourceCategories extends ExpandableStringEnum { /** Static value Unknown for LiftrResourceCategories. */ public static final LiftrResourceCategories UNKNOWN = fromString("Unknown"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogModule.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogModule.java index 1c8d6637ac22..87542dfd02bf 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogModule.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogModule.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for LogModule. */ +/** Tells whether log modules are enabled or not. */ public final class LogModule extends ExpandableStringEnum { /** Static value ENABLED for LogModule. */ public static final LogModule ENABLED = fromString("ENABLED"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogRules.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogRules.java index 6b2fcb40c768..037d5cdecef8 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogRules.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/LogRules.java @@ -18,26 +18,22 @@ public final class LogRules { private SendAadLogsStatus sendAadLogs; /* - * Flag specifying if subscription logs should be sent for the Monitor - * resource. + * Flag specifying if subscription logs should be sent for the Monitor resource. */ @JsonProperty(value = "sendSubscriptionLogs") private SendSubscriptionLogsStatus sendSubscriptionLogs; /* - * Flag specifying if activity logs from Azure resources should be sent for - * the Monitor resource. + * Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. */ @JsonProperty(value = "sendActivityLogs") private SendActivityLogsStatus sendActivityLogs; /* - * List of filtering tags to be used for capturing logs. This only takes - * effect if SendActivityLogs flag is enabled. If empty, all resources will - * be captured. - * If only Exclude action is specified, the rules will apply to the list of - * all available resources. If Include actions are specified, the rules - * will only include resources with the associated tags. + * List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is + * enabled. If empty, all resources will be captured. + * If only Exclude action is specified, the rules will apply to the list of all available resources. If Include + * actions are specified, the rules will only include resources with the associated tags. */ @JsonProperty(value = "filteringTags") private List filteringTags; diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ManagedIdentityType.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ManagedIdentityType.java index d27f4798441f..05e73a8bfa5b 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ManagedIdentityType.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ManagedIdentityType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ManagedIdentityType. */ +/** The kind of managed identity assigned to this resource. */ public final class ManagedIdentityType extends ExpandableStringEnum { /** Static value SystemAssigned for ManagedIdentityType. */ public static final ManagedIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MarketplaceSubscriptionStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MarketplaceSubscriptionStatus.java index 2ea378975ee7..f904d2b13bf4 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MarketplaceSubscriptionStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MarketplaceSubscriptionStatus.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for MarketplaceSubscriptionStatus. */ +/** + * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource + * will go in Suspended state. + */ public final class MarketplaceSubscriptionStatus extends ExpandableStringEnum { /** Static value Active for MarketplaceSubscriptionStatus. */ public static final MarketplaceSubscriptionStatus ACTIVE = fromString("Active"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MetricRules.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MetricRules.java index 85b8fae32a22..37052a7f2687 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MetricRules.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MetricRules.java @@ -12,11 +12,9 @@ @Fluent public final class MetricRules { /* - * List of filtering tags to be used for capturing metrics. If empty, all - * resources will be captured. If only Exclude action is specified, the - * rules will apply to the list of all available resources. If Include - * actions are specified, the rules will only include resources with the - * associated tags. + * List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only + * Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are + * specified, the rules will only include resources with the associated tags. */ @JsonProperty(value = "filteringTags") private List filteringTags; diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitorResourceListResult.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitorResourceListResult.java index 851bbb2be1ea..8c922a7d9a2c 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitorResourceListResult.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitorResourceListResult.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.MonitorResourceInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class MonitorResourceListResult { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,20 +70,8 @@ public MonitorResourceListResult withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model MonitorResourceListResult")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property nextLink in model MonitorResourceListResult")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(MonitorResourceListResult.class); } diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoredResourceListResponse.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoredResourceListResponse.java index 2f536d67d80b..8851d6e49b2f 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoredResourceListResponse.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoredResourceListResponse.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.MonitoredResourceInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class MonitoredResourceListResponse { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,21 +70,8 @@ public MonitoredResourceListResponse withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property value in model MonitoredResourceListResponse")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException( - "Missing required property nextLink in model MonitoredResourceListResponse")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(MonitoredResourceListResponse.class); } diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringStatus.java index f2fdc1e48a3d..a3e40048bebb 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for MonitoringStatus. */ +/** Flag specifying if the resource monitoring is enabled or disabled. */ public final class MonitoringStatus extends ExpandableStringEnum { /** Static value Enabled for MonitoringStatus. */ public static final MonitoringStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringType.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringType.java index d16031b325c0..63f1c33df95f 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringType.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/MonitoringType.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for MonitoringType. */ +/** The monitoring mode of OneAgent. */ public final class MonitoringType extends ExpandableStringEnum { /** Static value CLOUD_INFRASTRUCTURE for MonitoringType. */ public static final MonitoringType CLOUD_INFRASTRUCTURE = fromString("CLOUD_INFRASTRUCTURE"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/OperationDisplay.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/OperationDisplay.java index 7a7dd69d1b3f..faa542db48f6 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/OperationDisplay.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/OperationDisplay.java @@ -11,30 +11,28 @@ @Immutable public final class OperationDisplay { /* - * The localized friendly form of the resource provider name, e.g. - * "Microsoft Monitoring Insights" or "Microsoft Compute". + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + * Compute". */ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* - * The localized friendly name of the resource type related to this - * operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + * Schedule Collections". */ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /* - * The concise, localized friendly name for the operation; suitable for - * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual - * Machine". + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + * Machine", "Restart Virtual Machine". */ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* - * The short, localized friendly description of the operation; suitable for - * tool tips and detailed views. + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/Origin.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/Origin.java index 063d875fb11f..1c7537232879 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/Origin.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/Origin.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Origin. */ +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value + * is "user,system". + */ public final class Origin extends ExpandableStringEnum { /** Static value user for Origin. */ public static final Origin USER = fromString("user"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ProvisioningState.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ProvisioningState.java index bb5fe61ce66d..cc95e4993bd4 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ProvisioningState.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/ProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ProvisioningState. */ +/** Provisioning state of the monitoring resource. */ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Accepted for ProvisioningState. */ public static final ProvisioningState ACCEPTED = fromString("Accepted"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendAadLogsStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendAadLogsStatus.java index a76d3def770d..feb39e40a9d3 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendAadLogsStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendAadLogsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SendAadLogsStatus. */ +/** Indicates whether AAD logs are being sent. */ public final class SendAadLogsStatus extends ExpandableStringEnum { /** Static value Enabled for SendAadLogsStatus. */ public static final SendAadLogsStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendActivityLogsStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendActivityLogsStatus.java index 11bc07127eea..b33fcf7399f6 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendActivityLogsStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendActivityLogsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SendActivityLogsStatus. */ +/** Indicates whether activity logs are being sent. */ public final class SendActivityLogsStatus extends ExpandableStringEnum { /** Static value Enabled for SendActivityLogsStatus. */ public static final SendActivityLogsStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendSubscriptionLogsStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendSubscriptionLogsStatus.java index e8a90a492e98..be65c66c0b85 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendSubscriptionLogsStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendSubscriptionLogsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SendSubscriptionLogsStatus. */ +/** Indicates whether subscription logs are being sent. */ public final class SendSubscriptionLogsStatus extends ExpandableStringEnum { /** Static value Enabled for SendSubscriptionLogsStatus. */ public static final SendSubscriptionLogsStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingLogsStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingLogsStatus.java index 548e9049d6af..52c494806628 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingLogsStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingLogsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SendingLogsStatus. */ +/** Indicates whether logs are being sent. */ public final class SendingLogsStatus extends ExpandableStringEnum { /** Static value Enabled for SendingLogsStatus. */ public static final SendingLogsStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingMetricsStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingMetricsStatus.java index cc9f1f7f4922..169c06476e5a 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingMetricsStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SendingMetricsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SendingMetricsStatus. */ +/** Indicates whether metrics are being sent. */ public final class SendingMetricsStatus extends ExpandableStringEnum { /** Static value Enabled for SendingMetricsStatus. */ public static final SendingMetricsStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SingleSignOnStates.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SingleSignOnStates.java index c04c6c183cbd..149e00c1b51d 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SingleSignOnStates.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SingleSignOnStates.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SingleSignOnStates. */ +/** Various states of the SSO resource. */ public final class SingleSignOnStates extends ExpandableStringEnum { /** Static value Initial for SingleSignOnStates. */ public static final SingleSignOnStates INITIAL = fromString("Initial"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SsoStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SsoStatus.java index 8ee2ca93cecc..610622dbbc3e 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SsoStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/SsoStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SsoStatus. */ +/** Indicates whether SSO is enabled or not. */ public final class SsoStatus extends ExpandableStringEnum { /** Static value Enabled for SsoStatus. */ public static final SsoStatus ENABLED = fromString("Enabled"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagAction.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagAction.java index 884eba3f5ba9..bf7cc5353f67 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagAction.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagAction.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for TagAction. */ +/** Valid actions for a filtering tag. Exclusion takes priority over inclusion. */ public final class TagAction extends ExpandableStringEnum { /** Static value Include for TagAction. */ public static final TagAction INCLUDE = fromString("Include"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagRuleListResult.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagRuleListResult.java index a3c4fe8e13f9..fba767c1d68c 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagRuleListResult.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/TagRuleListResult.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.TagRuleInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class TagRuleListResult { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,19 +70,8 @@ public TagRuleListResult withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model TagRuleListResult")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property nextLink in model TagRuleListResult")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(TagRuleListResult.class); } diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/UpdateStatus.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/UpdateStatus.java index e97629f754ee..b757acb42bee 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/UpdateStatus.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/UpdateStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for UpdateStatus. */ +/** The current update status of OneAgent. */ public final class UpdateStatus extends ExpandableStringEnum { /** Static value INCOMPATIBLE for UpdateStatus. */ public static final UpdateStatus INCOMPATIBLE = fromString("INCOMPATIBLE"); diff --git a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/VMHostsListResponse.java b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/VMHostsListResponse.java index 4cc7c5b763ae..79f14e3fb4ce 100644 --- a/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/VMHostsListResponse.java +++ b/sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/models/VMHostsListResponse.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.dynatrace.models; import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.dynatrace.fluent.models.VMInfoInner; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -16,13 +15,13 @@ public final class VMHostsListResponse { /* * The items on this page */ - @JsonProperty(value = "value", required = true) + @JsonProperty(value = "value") private List value; /* * The link to the next page of items */ - @JsonProperty(value = "nextLink", required = true) + @JsonProperty(value = "nextLink") private String nextLink; /** @@ -71,19 +70,8 @@ public VMHostsListResponse withNextLink(String nextLink) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (value() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property value in model VMHostsListResponse")); - } else { + if (value() != null) { value().forEach(e -> e.validate()); } - if (nextLink() == null) { - throw LOGGER - .logExceptionAsError( - new IllegalArgumentException("Missing required property nextLink in model VMHostsListResponse")); - } } - - private static final ClientLogger LOGGER = new ClientLogger(VMHostsListResponse.class); }