Skip to content

Commit 52ad51c

Browse files
author
SDKAuto
committed
CodeGen from PR 34371 in Azure/azure-rest-api-specs
Merge 5a991e1ddde01c1ad3021a5d06676272f2ac00f5 into 37e1a52a30c527b6ad2d7ef09a9c82ad4491e8a2
1 parent 24808f3 commit 52ad51c

File tree

54 files changed

+349
-2441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+349
-2441
lines changed

sdk/dynatrace/azure-resourcemanager-dynatrace/CHANGELOG.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-30)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
5+
- Azure Resource Manager Dynatrace client library for Java. This package contains Microsoft Azure SDK for Dynatrace Management SDK. Package tag package-2023-04-27. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
126

137
## 1.0.0 (2024-12-26)
148

sdk/dynatrace/azure-resourcemanager-dynatrace/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
DynatraceManager manager = DynatraceManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

sdk/dynatrace/azure-resourcemanager-dynatrace/SAMPLE.md

Lines changed: 335 additions & 335 deletions
Large diffs are not rendered by default.

sdk/dynatrace/azure-resourcemanager-dynatrace/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<spotless.skip>false</spotless.skip>
48+
<revapi.skip>true</revapi.skip>
4949
</properties>
5050
<dependencies>
5151
<dependency>

sdk/dynatrace/azure-resourcemanager-dynatrace/src/main/java/com/azure/resourcemanager/dynatrace/DynatraceManager.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.azure.core.http.policy.UserAgentPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
2627
import com.azure.resourcemanager.dynatrace.fluent.DynatraceObservability;
2728
import com.azure.resourcemanager.dynatrace.implementation.DynatraceObservabilityBuilder;
@@ -37,6 +38,7 @@
3738
import java.time.temporal.ChronoUnit;
3839
import java.util.ArrayList;
3940
import java.util.List;
41+
import java.util.Map;
4042
import java.util.Objects;
4143
import java.util.stream.Collectors;
4244

@@ -104,6 +106,9 @@ public static Configurable configure() {
104106
*/
105107
public static final class Configurable {
106108
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
109+
private static final String SDK_VERSION = "version";
110+
private static final Map<String, String> PROPERTIES
111+
= CoreUtils.getProperties("azure-resourcemanager-dynatrace.properties");
107112

108113
private HttpClient httpClient;
109114
private HttpLogOptions httpLogOptions;
@@ -211,12 +216,14 @@ public DynatraceManager authenticate(TokenCredential credential, AzureProfile pr
211216
Objects.requireNonNull(credential, "'credential' cannot be null.");
212217
Objects.requireNonNull(profile, "'profile' cannot be null.");
213218

219+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
220+
214221
StringBuilder userAgentBuilder = new StringBuilder();
215222
userAgentBuilder.append("azsdk-java")
216223
.append("-")
217224
.append("com.azure.resourcemanager.dynatrace")
218225
.append("/")
219-
.append("1.0.0");
226+
.append(clientVersion);
220227
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
221228
userAgentBuilder.append(" (")
222229
.append(Configuration.getGlobalConfiguration().get("java.version"))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=${project.version}

sdk/dynatrace/azure-resourcemanager-dynatrace/src/test/java/com/azure/resourcemanager/dynatrace/generated/AccountInfoTests.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

sdk/dynatrace/azure-resourcemanager-dynatrace/src/test/java/com/azure/resourcemanager/dynatrace/generated/AppServiceInfoInnerTests.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

sdk/dynatrace/azure-resourcemanager-dynatrace/src/test/java/com/azure/resourcemanager/dynatrace/generated/AppServiceListResponseTests.java

Lines changed: 0 additions & 61 deletions
This file was deleted.

sdk/dynatrace/azure-resourcemanager-dynatrace/src/test/java/com/azure/resourcemanager/dynatrace/generated/DynatraceSingleSignOnPropertiesTests.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)