Skip to content

Commit 6ec764a

Browse files
author
SDKAuto
committed
CodeGen from PR 33959 in Azure/azure-rest-api-specs
Merge 990aa84c1069789e9d56fb612116911dc2b74aa0 into cb5ef7fc4cb443bd5f6b21d02cbce41051beb6ae
1 parent 41e7411 commit 6ec764a

29 files changed

+17
-743
lines changed

sdk/loadtesting/azure-resourcemanager-loadtesting/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.2.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-15)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
5+
- Azure Resource Manager LoadTest client library for Java. This package contains Microsoft Azure SDK for LoadTest Management SDK. LoadTest client provides access to LoadTest Resource and it's status operations. Package tag package-2022-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
126

137
## 1.1.0 (2024-12-12)
148

sdk/loadtesting/azure-resourcemanager-loadtesting/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
LoadTestManager manager = LoadTestManager
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/loadtesting/azure-resourcemanager-loadtesting/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
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>
4948
<revapi.skip>true</revapi.skip>
49+
<spotless.skip>false</spotless.skip>
5050
</properties>
5151
<dependencies>
5252
<dependency>

sdk/loadtesting/azure-resourcemanager-loadtesting/src/main/java/com/azure/resourcemanager/loadtesting/LoadTestManager.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.loadtesting.fluent.LoadTestClient;
2728
import com.azure.resourcemanager.loadtesting.implementation.LoadTestClientBuilder;
@@ -35,6 +36,7 @@
3536
import java.time.temporal.ChronoUnit;
3637
import java.util.ArrayList;
3738
import java.util.List;
39+
import java.util.Map;
3840
import java.util.Objects;
3941
import java.util.stream.Collectors;
4042

@@ -101,6 +103,9 @@ public static Configurable configure() {
101103
*/
102104
public static final class Configurable {
103105
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
106+
private static final String SDK_VERSION = "version";
107+
private static final Map<String, String> PROPERTIES
108+
= CoreUtils.getProperties("azure-resourcemanager-loadtesting.properties");
104109

105110
private HttpClient httpClient;
106111
private HttpLogOptions httpLogOptions;
@@ -208,12 +213,14 @@ public LoadTestManager authenticate(TokenCredential credential, AzureProfile pro
208213
Objects.requireNonNull(credential, "'credential' cannot be null.");
209214
Objects.requireNonNull(profile, "'profile' cannot be null.");
210215

216+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
217+
211218
StringBuilder userAgentBuilder = new StringBuilder();
212219
userAgentBuilder.append("azsdk-java")
213220
.append("-")
214221
.append("com.azure.resourcemanager.loadtesting")
215222
.append("/")
216-
.append("1.1.0");
223+
.append(clientVersion);
217224
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
218225
userAgentBuilder.append(" (")
219226
.append(Configuration.getGlobalConfiguration().get("java.version"))

sdk/loadtesting/azure-resourcemanager-loadtesting/src/main/java/com/azure/resourcemanager/loadtesting/models/EncryptionPropertiesIdentity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public final class EncryptionPropertiesIdentity implements JsonSerializable<Encr
2424

2525
/*
2626
* User assigned identity to use for accessing key encryption key Url. Ex:
27-
* /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource
27+
* /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/<resource
2828
* group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.
2929
*/
3030
private String resourceId;
@@ -57,7 +57,7 @@ public EncryptionPropertiesIdentity withType(Type type) {
5757

5858
/**
5959
* Get the resourceId property: User assigned identity to use for accessing key encryption key Url. Ex:
60-
* /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/&lt;resource
60+
* /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/&lt;resource
6161
* group&gt;/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.
6262
*
6363
* @return the resourceId value.
@@ -68,7 +68,7 @@ public String resourceId() {
6868

6969
/**
7070
* Set the resourceId property: User assigned identity to use for accessing key encryption key Url. Ex:
71-
* /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/&lt;resource
71+
* /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/&lt;resource
7272
* group&gt;/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId.
7373
*
7474
* @param resourceId the resourceId value to set.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=${project.version}

sdk/loadtesting/azure-resourcemanager-loadtesting/src/test/java/com/azure/resourcemanager/loadtesting/generated/CheckQuotaAvailabilityResponseInnerTests.java

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

sdk/loadtesting/azure-resourcemanager-loadtesting/src/test/java/com/azure/resourcemanager/loadtesting/generated/CheckQuotaAvailabilityResponsePropertiesTests.java

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

sdk/loadtesting/azure-resourcemanager-loadtesting/src/test/java/com/azure/resourcemanager/loadtesting/generated/EncryptionPropertiesIdentityTests.java

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

sdk/loadtesting/azure-resourcemanager-loadtesting/src/test/java/com/azure/resourcemanager/loadtesting/generated/EndpointDependencyTests.java

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

0 commit comments

Comments
 (0)