Skip to content

Commit ec88224

Browse files
author
SDKAuto
committed
CodeGen from PR 33888 in Azure/azure-rest-api-specs
Merge 5959b29d90c516bd52f1d1094aad4a769709449b into 6ea706e86e0f35817367e394146d337154536350
1 parent 41e7411 commit ec88224

File tree

167 files changed

+1616
-2691
lines changed

Some content is hidden

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

167 files changed

+1616
-2691
lines changed

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

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

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

5-
### Features Added
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. Package tag package-2024-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `implementation.models.PrivateEndpointConnectionResourceListResult` was removed
10+
11+
#### `implementation.models.MongoClusterListResult` was removed
12+
13+
#### `implementation.models.FirewallRuleListResult` was removed
14+
15+
#### `implementation.models.ReplicaListResult` was removed
16+
17+
#### `implementation.models.PrivateLinkResourceListResult` was removed
18+
19+
#### `implementation.models.OperationListResult` was removed
20+
21+
#### `models.MongoClusterRestoreParameters` was modified
22+
23+
* `withPointInTimeUTC(java.time.OffsetDateTime)` was removed
24+
* `pointInTimeUTC()` was removed
25+
26+
#### `models.AdministratorProperties` was modified
27+
28+
* `withUserName(java.lang.String)` was removed
29+
* `userName()` was removed
30+
31+
### Features Added
32+
33+
* `models.MongoClusterListResult` was added
34+
35+
* `models.ReplicaListResult` was added
36+
37+
* `models.FirewallRuleListResult` was added
38+
39+
* `models.PrivateLinkResourceListResult` was added
40+
41+
* `models.OperationListResult` was added
42+
43+
* `models.PrivateEndpointConnectionResourceListResult` was added
44+
45+
#### `models.MongoClusterRestoreParameters` was modified
46+
47+
* `pointInTimeUtc()` was added
48+
* `withPointInTimeUtc(java.time.OffsetDateTime)` was added
49+
50+
#### `models.PrivateEndpointConnection` was modified
51+
52+
* `withProperties(models.PrivateEndpointConnectionProperties)` was added
53+
54+
#### `models.AdministratorProperties` was modified
55+
56+
* `withUsername(java.lang.String)` was added
57+
* `username()` was added
58+
59+
#### `models.PrivateLinkResourceProperties` was modified
1060

11-
### Other Changes
61+
* `withRequiredZoneNames(java.util.List)` was added
1262

1363
## 1.0.0 (2024-09-25)
1464

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

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Mongo Cluster client library for Java.
44

5-
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).
5+
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. Package tag package-2024-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -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)