Skip to content

Commit b5d47f6

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

File tree

191 files changed

+5590
-2786
lines changed

Some content is hidden

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

191 files changed

+5590
-2786
lines changed

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

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

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-05-10)
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-2025-04-01-preview. 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.MongoClusterListResult` was removed
10+
11+
#### `implementation.models.PrivateEndpointConnectionResourceListResult` 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.DatabaseRole` was added
38+
39+
* `models.IdentityProvider` was added
40+
41+
* `models.User` was added
42+
43+
* `models.PrivateLinkResourceListResult` was added
44+
45+
* `models.EntraIdentityProviderProperties` was added
46+
47+
* `models.OperationListResult` was added
48+
49+
* `models.User$UpdateStages` was added
50+
51+
* `models.StorageType` was added
52+
53+
* `models.UserProperties` was added
54+
55+
* `models.EntraPrincipalType` was added
56+
57+
* `models.EntraIdentityProvider` was added
58+
59+
* `models.DataApiMode` was added
60+
61+
* `models.User$DefinitionStages` was added
62+
63+
* `models.UserRole` was added
64+
65+
* `models.User$Definition` was added
66+
67+
* `models.FirewallRuleListResult` was added
68+
69+
* `models.AuthenticationMode` was added
70+
71+
* `models.Users` was added
72+
73+
* `models.IdentityProviderType` was added
74+
75+
* `models.AuthConfigProperties` was added
76+
77+
* `models.DataApiProperties` was added
78+
79+
* `models.PrivateEndpointConnectionResourceListResult` was added
80+
81+
* `models.UserListResult` was added
82+
83+
* `models.User$Update` was added
84+
85+
#### `models.MongoClusterRestoreParameters` was modified
86+
87+
* `withPointInTimeUtc(java.time.OffsetDateTime)` was added
88+
* `pointInTimeUtc()` was added
89+
90+
#### `models.MongoClusterProperties` was modified
91+
92+
* `withDataApi(models.DataApiProperties)` was added
93+
* `authConfig()` was added
94+
* `dataApi()` was added
95+
* `withAuthConfig(models.AuthConfigProperties)` was added
96+
97+
#### `models.AdministratorProperties` was modified
98+
99+
* `username()` was added
100+
* `withUsername(java.lang.String)` was added
101+
102+
#### `models.StorageProperties` was modified
103+
104+
* `throughput()` was added
105+
* `type()` was added
106+
* `iops()` was added
107+
* `withIops(java.lang.Long)` was added
108+
* `withThroughput(java.lang.Long)` was added
109+
* `withType(models.StorageType)` was added
110+
111+
#### `models.PrivateEndpointConnection` was modified
112+
113+
* `withProperties(models.PrivateEndpointConnectionProperties)` was added
114+
115+
#### `MongoClusterManager` was modified
116+
117+
* `users()` was added
118+
119+
#### `models.PrivateLinkResourceProperties` was modified
120+
121+
* `withRequiredZoneNames(java.util.List)` was added
122+
123+
#### `models.MongoClusterUpdateProperties` was modified
10124

11-
### Other Changes
125+
* `authConfig()` was added
126+
* `withAuthConfig(models.AuthConfigProperties)` was added
127+
* `dataApi()` was added
128+
* `withDataApi(models.DataApiProperties)` was added
12129

13130
## 1.0.0 (2024-09-25)
14131

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

+12-15
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-2025-04-01-preview. 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)