Skip to content

Commit

Permalink
CodeGen from PR 13330 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0b9be833d185a4c6b326a22b9334a1a5eac0a34b into abfe5f82e8ac29a05070957bc828874a625079f1
  • Loading branch information
SDKAuto committed Mar 10, 2021
1 parent 41bb40b commit 49abee1
Show file tree
Hide file tree
Showing 33 changed files with 615 additions and 215 deletions.
3 changes: 2 additions & 1 deletion sdk/datadog/azure-resourcemanager-datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-03-10)

- Azure Resource Manager MicrosoftDatadog client library for Java. This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.1 (2021-03-08)

Expand Down
4 changes: 2 additions & 2 deletions sdk/datadog/azure-resourcemanager-datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager MicrosoftDatadog client library for Java.

This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2020-02-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datadog</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/datadog/azure-resourcemanager-datadog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for MicrosoftDatadog Management</name>
<description>This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2020-02-preview.</description>
<description>This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-03.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/** The interface for MicrosoftDatadogClient class. */
public interface MicrosoftDatadogClient {
/**
* Gets The Microsoft Azure subscription ID.
* Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public interface OperationsClient {
/**
* List all operations provided by Microsoft.Datadog for the 2020-02-01-preview api version.
* List all operations provided by Microsoft.Datadog for the 2021-03-01 api version.
*
* @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.
Expand All @@ -23,7 +23,7 @@ public interface OperationsClient {
PagedIterable<OperationResultInner> list();

/**
* List all operations provided by Microsoft.Datadog for the 2020-02-01-preview api version.
* List all operations provided by Microsoft.Datadog for the 2021-03-01 api version.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface SingleSignOnConfigurationsClient {
/**
* List the single sign-on configurations for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @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.
Expand All @@ -31,7 +31,7 @@ public interface SingleSignOnConfigurationsClient {
/**
* List the single sign-on configurations for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @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.
Expand All @@ -45,7 +45,7 @@ public interface SingleSignOnConfigurationsClient {
/**
* Configures single-sign-on for this resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @param body The body parameter.
Expand All @@ -61,7 +61,7 @@ SyncPoller<PollResult<DatadogSingleSignOnResourceInner>, DatadogSingleSignOnReso
/**
* Configures single-sign-on for this resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @param body The body parameter.
Expand All @@ -82,7 +82,7 @@ SyncPoller<PollResult<DatadogSingleSignOnResourceInner>, DatadogSingleSignOnReso
/**
* Configures single-sign-on for this resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @param body The body parameter.
Expand All @@ -98,7 +98,7 @@ DatadogSingleSignOnResourceInner createOrUpdate(
/**
* Configures single-sign-on for this resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -113,7 +113,7 @@ DatadogSingleSignOnResourceInner createOrUpdate(
/**
* Configures single-sign-on for this resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @param body The body parameter.
Expand All @@ -134,7 +134,7 @@ DatadogSingleSignOnResourceInner createOrUpdate(
/**
* Gets the datadog single sign-on resource for the given Monitor.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -148,7 +148,7 @@ DatadogSingleSignOnResourceInner createOrUpdate(
/**
* Gets the datadog single sign-on resource for the given Monitor.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param configurationName Configuration name.
* @param context The context to associate with this operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public interface TagRulesClient {
/**
* List the tag rules for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @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.
Expand All @@ -29,7 +29,7 @@ public interface TagRulesClient {
/**
* List the tag rules for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @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.
Expand All @@ -43,7 +43,7 @@ public interface TagRulesClient {
/**
* Create or update a tag rule set for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Rule set name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -57,7 +57,7 @@ public interface TagRulesClient {
/**
* Create or update a tag rule set for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Rule set name.
* @param body Capture logs and metrics of Azure resources based on ARM tags.
Expand All @@ -78,7 +78,7 @@ Response<MonitoringTagRulesInner> createOrUpdateWithResponse(
/**
* Get a tag rule set for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Rule set name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -92,7 +92,7 @@ Response<MonitoringTagRulesInner> createOrUpdateWithResponse(
/**
* Get a tag rule set for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Datadog resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ruleSetName Rule set name.
* @param context The context to associate with this operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datadog.models.DatadogAgreementProperties;
import com.azure.resourcemanager.datadog.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -22,6 +23,12 @@ public final class DatadogAgreementResourceInner extends ProxyResource {
@JsonProperty(value = "properties")
private DatadogAgreementProperties properties;

/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/**
* Get the properties property: Represents the properties of the resource.
*
Expand All @@ -42,6 +49,15 @@ public DatadogAgreementResourceInner withProperties(DatadogAgreementProperties p
return this;
}

/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Validates the instance.
*
Expand All @@ -51,5 +67,8 @@ public void validate() {
if (properties() != null) {
properties().validate();
}
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.azure.resourcemanager.datadog.models.IdentityProperties;
import com.azure.resourcemanager.datadog.models.MonitorProperties;
import com.azure.resourcemanager.datadog.models.ResourceSku;
import com.azure.resourcemanager.datadog.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
Expand Down Expand Up @@ -37,6 +38,12 @@ public final class DatadogMonitorResourceInner extends Resource {
@JsonProperty(value = "identity")
private IdentityProperties identity;

/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/**
* Get the sku property: The sku property.
*
Expand Down Expand Up @@ -97,6 +104,15 @@ public DatadogMonitorResourceInner withIdentity(IdentityProperties identity) {
return this;
}

/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/** {@inheritDoc} */
@Override
public DatadogMonitorResourceInner withLocation(String location) {
Expand Down Expand Up @@ -126,5 +142,8 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datadog.models.DatadogSingleSignOnProperties;
import com.azure.resourcemanager.datadog.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -22,6 +23,12 @@ public final class DatadogSingleSignOnResourceInner extends ProxyResource {
@JsonProperty(value = "properties")
private DatadogSingleSignOnProperties properties;

/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/**
* Get the properties property: The properties property.
*
Expand All @@ -42,6 +49,15 @@ public DatadogSingleSignOnResourceInner withProperties(DatadogSingleSignOnProper
return this;
}

/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Validates the instance.
*
Expand All @@ -51,5 +67,8 @@ public void validate() {
if (properties() != null) {
properties().validate();
}
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datadog.models.MonitoringTagRulesProperties;
import com.azure.resourcemanager.datadog.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -22,6 +23,12 @@ public final class MonitoringTagRulesInner extends ProxyResource {
@JsonProperty(value = "properties")
private MonitoringTagRulesProperties properties;

/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/**
* Get the properties property: Definition of the properties for a TagRules resource.
*
Expand All @@ -42,6 +49,15 @@ public MonitoringTagRulesInner withProperties(MonitoringTagRulesProperties prope
return this;
}

/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Validates the instance.
*
Expand All @@ -51,5 +67,8 @@ public void validate() {
if (properties() != null) {
properties().validate();
}
if (systemData() != null) {
systemData().validate();
}
}
}
Loading

0 comments on commit 49abee1

Please sign in to comment.