Skip to content

Commit 18a7b49

Browse files
author
SDKAuto
committed
CodeGen from PR 33569 in Azure/azure-rest-api-specs
Merge 05e177aaff49e4b58c6e430bbc541460318d0362 into 4b03f0beabaf5a2d42fedb8cbb37bce41cc09344
1 parent ab3c287 commit 18a7b49

32 files changed

+19
-1301
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2025-03-28)
4+
5+
- Azure Resource Manager StorageActions client library for Java. This package contains Microsoft Azure SDK for StorageActions Management SDK. The Azure Storage Actions Management API. Package tag package-2023-01-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/storageactions/azure-resourcemanager-storageactions/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
StorageActionsManager manager = StorageActionsManager
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/storageactions/azure-resourcemanager-storageactions/src/main/java/com/azure/resourcemanager/storageactions/StorageActionsManager.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.storageactions.fluent.StorageActionsMgmtClient;
2728
import com.azure.resourcemanager.storageactions.implementation.OperationsImpl;
@@ -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

@@ -105,6 +107,9 @@ public static Configurable configure() {
105107
*/
106108
public static final class Configurable {
107109
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
110+
private static final String SDK_VERSION = "version";
111+
private static final Map<String, String> PROPERTIES
112+
= CoreUtils.getProperties("azure-resourcemanager-storageactions.properties");
108113

109114
private HttpClient httpClient;
110115
private HttpLogOptions httpLogOptions;
@@ -212,12 +217,14 @@ public StorageActionsManager authenticate(TokenCredential credential, AzureProfi
212217
Objects.requireNonNull(credential, "'credential' cannot be null.");
213218
Objects.requireNonNull(profile, "'profile' cannot be null.");
214219

220+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
221+
215222
StringBuilder userAgentBuilder = new StringBuilder();
216223
userAgentBuilder.append("azsdk-java")
217224
.append("-")
218225
.append("com.azure.resourcemanager.storageactions")
219226
.append("/")
220-
.append("1.0.0-beta.2");
227+
.append(clientVersion);
221228
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
222229
userAgentBuilder.append(" (")
223230
.append(Configuration.getGlobalConfiguration().get("java.version"))

sdk/storageactions/azure-resourcemanager-storageactions/src/main/java/com/azure/resourcemanager/storageactions/models/ProvisioningState.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public enum ProvisioningState {
1818
*/
1919
VALIDATE_SUBSCRIPTION_QUOTA_END("ValidateSubscriptionQuotaEnd"),
2020

21+
/**
22+
* Enum value Accepted.
23+
*/
24+
ACCEPTED("Accepted"),
25+
2126
/**
2227
* Enum value Creating.
2328
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=${project.version}

sdk/storageactions/azure-resourcemanager-storageactions/src/test/java/com/azure/resourcemanager/storageactions/generated/ElseConditionTests.java

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

sdk/storageactions/azure-resourcemanager-storageactions/src/test/java/com/azure/resourcemanager/storageactions/generated/IfConditionTests.java

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

sdk/storageactions/azure-resourcemanager-storageactions/src/test/java/com/azure/resourcemanager/storageactions/generated/ManagedServiceIdentityTests.java

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

sdk/storageactions/azure-resourcemanager-storageactions/src/test/java/com/azure/resourcemanager/storageactions/generated/OperationDisplayTests.java

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

sdk/storageactions/azure-resourcemanager-storageactions/src/test/java/com/azure/resourcemanager/storageactions/generated/OperationInnerTests.java

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

0 commit comments

Comments
 (0)