Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion sdk/dynatrace/azure-resourcemanager-dynatrace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-dynatrace</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
* <p>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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2660,7 +2660,8 @@ public PagedIterable<LinkableEnvironmentResponseInner> listLinkableEnvironments(
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2697,7 +2698,8 @@ private Mono<PagedResponse<MonitoredResourceInner>> listMonitoredResourcesNextSi
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2735,7 +2737,8 @@ private Mono<PagedResponse<MonitoredResourceInner>> listMonitoredResourcesNextSi
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2772,7 +2775,8 @@ private Mono<PagedResponse<MonitorResourceInner>> listBySubscriptionIdNextSingle
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2810,7 +2814,8 @@ private Mono<PagedResponse<MonitorResourceInner>> listBySubscriptionIdNextSingle
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2847,7 +2852,8 @@ private Mono<PagedResponse<MonitorResourceInner>> listByResourceGroupNextSingleP
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2885,7 +2891,8 @@ private Mono<PagedResponse<MonitorResourceInner>> listByResourceGroupNextSingleP
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -2921,7 +2928,8 @@ private Mono<PagedResponse<VMInfoInner>> 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
* <p>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.
Expand Down Expand Up @@ -2958,7 +2966,8 @@ private Mono<PagedResponse<VMInfoInner>> 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
* <p>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.
Expand Down Expand Up @@ -2994,7 +3003,8 @@ private Mono<PagedResponse<AppServiceInfoInner>> listAppServicesNextSinglePageAs
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -3032,7 +3042,8 @@ private Mono<PagedResponse<AppServiceInfoInner>> listAppServicesNextSinglePageAs
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -3070,7 +3081,8 @@ private Mono<PagedResponse<LinkableEnvironmentResponseInner>> listLinkableEnviro
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ public PagedIterable<OperationInner> 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
* <p>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.
Expand Down Expand Up @@ -238,7 +239,8 @@ private Mono<PagedResponse<OperationInner>> 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
* <p>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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,8 @@ public PagedIterable<DynatraceSingleSignOnResourceInner> list(
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down Expand Up @@ -838,7 +839,8 @@ private Mono<PagedResponse<DynatraceSingleSignOnResourceInner>> listNextSinglePa
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,8 @@ public PagedIterable<TagRuleInner> 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
* <p>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.
Expand Down Expand Up @@ -1235,7 +1236,8 @@ private Mono<PagedResponse<TagRuleInner>> 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
* <p>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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActionType> {
/** Static value Internal for ActionType. */
public static final ActionType INTERNAL = fromString("Internal");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,13 +15,13 @@ public final class AppServiceListResponse {
/*
* The items on this page
*/
@JsonProperty(value = "value", required = true)
@JsonProperty(value = "value")
private List<AppServiceInfoInner> value;

/*
* The link to the next page of items
*/
@JsonProperty(value = "nextLink", required = true)
@JsonProperty(value = "nextLink")
private String nextLink;

/**
Expand Down Expand Up @@ -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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<AutoUpdateSetting> {
/** Static value ENABLED for AutoUpdateSetting. */
public static final AutoUpdateSetting ENABLED = fromString("ENABLED");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<AvailabilityState> {
/** Static value CRASHED for AvailabilityState. */
public static final AvailabilityState CRASHED = fromString("CRASHED");
Expand Down
Loading