Skip to content

Commit 11abef9

Browse files
author
SDKAuto
committed
CodeGen from PR 33698 in Azure/azure-rest-api-specs
Merge 0426bf3308b9582c418b145b910798e0a53050cc into abb839b726184aa10f8d1eaac8e9fe590833619c
1 parent cbacda2 commit 11abef9

File tree

5 files changed

+300
-272
lines changed

5 files changed

+300
-272
lines changed

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

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

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2025-04-08)
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+
* `models.DataApiMode` was added
10+
11+
* `models.DataApiProperties` was added
812

9-
### Bugs Fixed
13+
#### `models.MongoClusterProperties` was modified
14+
15+
* `dataApi()` was added
16+
* `withDataApi(models.DataApiProperties)` was added
17+
18+
#### `models.MongoClusterUpdateProperties` was modified
1019

11-
### Other Changes
20+
* `withDataApi(models.DataApiProperties)` was added
21+
* `dataApi()` was added
1222

1323
## 1.0.0 (2024-09-25)
1424

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

Lines changed: 11 additions & 14 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
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)