Skip to content

Commit

Permalink
CodeGen from PR 24495 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e04eb45a0d9026fe876b1e070768d82cb3223571 into 24c9b5a8982cb081662b27ef8ab93da3389b0160
  • Loading branch information
SDKAuto committed Sep 25, 2023
1 parent 83b5094 commit 3f4f42c
Show file tree
Hide file tree
Showing 120 changed files with 4,336 additions and 2,546 deletions.
4 changes: 3 additions & 1 deletion sdk/datadog/azure-resourcemanager-datadog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2023-09-25)

- Azure Resource Manager MicrosoftDatadog client library for Java. This package contains Microsoft Azure SDK for MicrosoftDatadog Management SDK. Package tag package-2023-01. 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
6 changes: 4 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-2021-03. 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-2023-01. 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.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fdatadog%2Fazure-resourcemanager-datadog%2FREADME.png)
206 changes: 184 additions & 22 deletions sdk/datadog/azure-resourcemanager-datadog/SAMPLE.md

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions sdk/datadog/azure-resourcemanager-datadog/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,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-2021-03.</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-2023-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -38,7 +43,9 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datadog.fluent.MicrosoftDatadogClient;
import com.azure.resourcemanager.datadog.implementation.CreationSupportedsImpl;
import com.azure.resourcemanager.datadog.implementation.MarketplaceAgreementsImpl;
import com.azure.resourcemanager.datadog.implementation.MicrosoftDatadogClientBuilder;
import com.azure.resourcemanager.datadog.implementation.MonitoredSubscriptionsImpl;
import com.azure.resourcemanager.datadog.implementation.MonitorsImpl;
import com.azure.resourcemanager.datadog.implementation.OperationsImpl;
import com.azure.resourcemanager.datadog.implementation.SingleSignOnConfigurationsImpl;
import com.azure.resourcemanager.datadog.implementation.TagRulesImpl;
import com.azure.resourcemanager.datadog.models.CreationSupporteds;
import com.azure.resourcemanager.datadog.models.MarketplaceAgreements;
import com.azure.resourcemanager.datadog.models.MonitoredSubscriptions;
import com.azure.resourcemanager.datadog.models.Monitors;
import com.azure.resourcemanager.datadog.models.Operations;
import com.azure.resourcemanager.datadog.models.SingleSignOnConfigurations;
Expand All @@ -46,6 +50,8 @@
public final class MicrosoftDatadogManager {
private MarketplaceAgreements marketplaceAgreements;

private CreationSupporteds creationSupporteds;

private Monitors monitors;

private Operations operations;
Expand All @@ -54,6 +60,8 @@ public final class MicrosoftDatadogManager {

private SingleSignOnConfigurations singleSignOnConfigurations;

private MonitoredSubscriptions monitoredSubscriptions;

private final MicrosoftDatadogClient clientObject;

private MicrosoftDatadogManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -219,7 +227,7 @@ public MicrosoftDatadogManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.datadog")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -288,6 +296,18 @@ public MarketplaceAgreements marketplaceAgreements() {
return marketplaceAgreements;
}

/**
* Gets the resource collection API of CreationSupporteds.
*
* @return Resource collection API of CreationSupporteds.
*/
public CreationSupporteds creationSupporteds() {
if (this.creationSupporteds == null) {
this.creationSupporteds = new CreationSupportedsImpl(clientObject.getCreationSupporteds(), this);
}
return creationSupporteds;
}

/**
* Gets the resource collection API of Monitors. It manages DatadogMonitorResource.
*
Expand Down Expand Up @@ -338,8 +358,23 @@ public SingleSignOnConfigurations singleSignOnConfigurations() {
}

/**
* @return Wrapped service client MicrosoftDatadogClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
* Gets the resource collection API of MonitoredSubscriptions. It manages MonitoredSubscriptionProperties.
*
* @return Resource collection API of MonitoredSubscriptions.
*/
public MonitoredSubscriptions monitoredSubscriptions() {
if (this.monitoredSubscriptions == null) {
this.monitoredSubscriptions =
new MonitoredSubscriptionsImpl(clientObject.getMonitoredSubscriptions(), this);
}
return monitoredSubscriptions;
}

/**
* Gets wrapped service client MicrosoftDatadogClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client MicrosoftDatadogClient.
*/
public MicrosoftDatadogClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datadog.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.datadog.fluent.models.CreateResourceSupportedResponseInner;

/** An instance of this class provides access to all the operations defined in CreationSupportedsClient. */
public interface CreationSupportedsClient {
/**
* Informs if the current subscription is being already monitored for selected Datadog organization.
*
* @param datadogOrganizationId Datadog Organization 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CreateResourceSupportedResponseInner> list(String datadogOrganizationId);

/**
* Informs if the current subscription is being already monitored for selected Datadog organization.
*
* @param datadogOrganizationId Datadog Organization 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<CreateResourceSupportedResponseInner> list(String datadogOrganizationId, Context context);

/**
* Informs if the current subscription is being already monitored for selected Datadog organization.
*
* @param datadogOrganizationId Datadog Organization 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return datadog resource can be created or not along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CreateResourceSupportedResponseInner> getWithResponse(String datadogOrganizationId, Context context);

/**
* Informs if the current subscription is being already monitored for selected Datadog organization.
*
* @param datadogOrganizationId Datadog Organization 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 RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return datadog resource can be created or not.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CreateResourceSupportedResponseInner get(String datadogOrganizationId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public interface MicrosoftDatadogClient {
*/
MarketplaceAgreementsClient getMarketplaceAgreements();

/**
* Gets the CreationSupportedsClient object to access its operations.
*
* @return the CreationSupportedsClient object.
*/
CreationSupportedsClient getCreationSupporteds();

/**
* Gets the MonitorsClient object to access its operations.
*
Expand Down Expand Up @@ -78,4 +85,11 @@ public interface MicrosoftDatadogClient {
* @return the SingleSignOnConfigurationsClient object.
*/
SingleSignOnConfigurationsClient getSingleSignOnConfigurations();

/**
* Gets the MonitoredSubscriptionsClient object to access its operations.
*
* @return the MonitoredSubscriptionsClient object.
*/
MonitoredSubscriptionsClient getMonitoredSubscriptions();
}
Loading

0 comments on commit 3f4f42c

Please sign in to comment.