Skip to content

Commit 532fa3a

Browse files
author
SDKAuto
committed
CodeGen from PR 34580 in Azure/azure-rest-api-specs
Merge 374e9348b27a77e94fb2b04aac7abd0c73df1a78 into 4e8d16d3793228046ac6171eadda4b8d26ad2b4f
1 parent 845f2c7 commit 532fa3a

File tree

97 files changed

+4028
-1040
lines changed

Some content is hidden

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

97 files changed

+4028
-1040
lines changed

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

+67-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,77 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2025-05-10)
4+
5+
- Azure Resource Manager Mongo Cluster client library for Java. This package contains Microsoft Azure SDK for Mongo Cluster Management SDK. The Microsoft Azure management API provides create, read, update, and delete functionality for Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules. 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

7-
### Breaking Changes
9+
* `implementation.models.UserListResult` was added
10+
11+
* `models.DatabaseRole` was added
12+
13+
* `models.IdentityProvider` was added
14+
15+
* `models.User` was added
16+
17+
* `models.EntraIdentityProviderProperties` was added
18+
19+
* `models.User$UpdateStages` was added
20+
21+
* `models.StorageType` was added
22+
23+
* `models.UserProperties` was added
24+
25+
* `models.EntraPrincipalType` was added
26+
27+
* `models.EntraIdentityProvider` was added
28+
29+
* `models.DataApiMode` was added
30+
31+
* `models.User$DefinitionStages` was added
32+
33+
* `models.UserRole` was added
34+
35+
* `models.User$Definition` was added
836

9-
### Bugs Fixed
37+
* `models.AuthenticationMode` was added
38+
39+
* `models.Users` was added
40+
41+
* `models.IdentityProviderType` was added
42+
43+
* `models.AuthConfigProperties` was added
44+
45+
* `models.DataApiProperties` was added
46+
47+
* `models.User$Update` was added
48+
49+
#### `models.MongoClusterProperties` was modified
50+
51+
* `authConfig()` was added
52+
* `dataApi()` was added
53+
* `withDataApi(models.DataApiProperties)` was added
54+
* `withAuthConfig(models.AuthConfigProperties)` was added
55+
56+
#### `models.StorageProperties` was modified
57+
58+
* `withIops(java.lang.Long)` was added
59+
* `withType(models.StorageType)` was added
60+
* `type()` was added
61+
* `withThroughput(java.lang.Long)` was added
62+
* `iops()` was added
63+
* `throughput()` was added
64+
65+
#### `MongoClusterManager` was modified
66+
67+
* `users()` was added
68+
69+
#### `models.MongoClusterUpdateProperties` was modified
1070

11-
### Other Changes
71+
* `dataApi()` was added
72+
* `withDataApi(models.DataApiProperties)` was added
73+
* `withAuthConfig(models.AuthConfigProperties)` was added
74+
* `authConfig()` was added
1275

1376
## 1.0.0 (2024-09-25)
1477

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

+11-14
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
MongoClusterManager manager = MongoClusterManager
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

@@ -75,16 +75,15 @@ mongoCluster = mongoClusterManager.mongoClusters()
7575
.define(clusterName)
7676
.withRegion(REGION)
7777
.withExistingResourceGroup(resourceGroupName)
78-
.withProperties(
79-
new MongoClusterProperties()
80-
.withAdministrator(new AdministratorProperties().withUserName(loginUser).withPassword(loginPwd))
81-
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
82-
.withStorage(new StorageProperties().withSizeGb(128L))
83-
.withCompute(new ComputeProperties().withTier("M30"))
84-
.withHighAvailability(new HighAvailabilityProperties().withTargetMode(HighAvailabilityMode.DISABLED))
85-
.withSharding(new ShardingProperties().withShardCount(1))
86-
.withServerVersion("7.0")
87-
)
78+
.withProperties(new MongoClusterProperties()
79+
.withAdministrator(new AdministratorProperties().withUserName(loginUser).withPassword(loginPwd))
80+
.withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
81+
.withStorage(new StorageProperties().withSizeGb(128L))
82+
.withCompute(new ComputeProperties().withTier("M30"))
83+
.withHighAvailability(
84+
new HighAvailabilityProperties().withTargetMode(HighAvailabilityMode.DISABLED))
85+
.withSharding(new ShardingProperties().withShardCount(1))
86+
.withServerVersion("7.0"))
8887
.create();
8988
```
9089
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mongocluster/azure-resourcemanager-mongocluster/SAMPLE.md)
@@ -117,5 +116,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
117116
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
118117
[coc]: https://opensource.microsoft.com/codeofconduct/
119118
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
120-
121-

0 commit comments

Comments
 (0)