Skip to content

Commit ba4a3da

Browse files
azure-sdkv-hongli1weidongxu-microsoft
authored
[AutoPR azure-resourcemanager-mongodbatlas]-generated-from-SDK Generation - Java-4991063 (Azure#45767)
* Configurations: 'specification/liftrmongodb/MongoDB.Atlas.Management/tspconfig.yaml', API Version: 2025-06-01, SDK Release Type: stable, and CommitSHA: 'b56458e7a80d3f92fa834039e6d20a1a1e1fec1b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' * fix Verify ChangeLogEntries exception * regen --------- Co-authored-by: Hong Li(MSFT) <[email protected]> Co-authored-by: Weidong Xu <[email protected]>
1 parent 14e3eed commit ba4a3da

File tree

39 files changed

+495
-687
lines changed

39 files changed

+495
-687
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ com.azure.resourcemanager:azure-resourcemanager-secretsstoreextension;1.0.0-beta
484484
com.azure.resourcemanager:azure-resourcemanager-programmableconnectivity;1.0.0-beta.1;1.0.0-beta.1
485485
com.azure.resourcemanager:azure-resourcemanager-dell-storage;1.0.0-beta.1;1.0.0-beta.1
486486
com.azure.resourcemanager:azure-resourcemanager-sitemanager;1.0.0-beta.1;1.0.0-beta.2
487-
com.azure.resourcemanager:azure-resourcemanager-mongodbatlas;1.0.0-beta.1;1.0.0-beta.2
487+
com.azure.resourcemanager:azure-resourcemanager-mongodbatlas;1.0.0-beta.1;1.0.0
488488
com.azure.resourcemanager:azure-resourcemanager-purestorageblock;1.0.0-beta.1;1.0.0
489489
com.azure.resourcemanager:azure-resourcemanager-planetarycomputer;1.0.0-beta.1;1.0.0-beta.2
490490
com.azure.resourcemanager:azure-resourcemanager-kubernetesconfiguration-fluxconfigurations;1.0.0-beta.1;1.0.0-beta.2

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0 (2025-07-02)
44

5+
- Azure Resource Manager Mongo DB Atlas client library for Java. This package contains Microsoft Azure SDK for Mongo DB Atlas Management SDK. Package api-version 2025-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56
### Features Added
67

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
8+
- The first stable release for the azure-resourcemanager-mongodbatlas Java SDK.
129

1310
## 1.0.0-beta.1 (2025-05-09)
1411

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

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

33
Azure Resource Manager Mongo DB Atlas client library for Java.
44

5-
This package contains Microsoft Azure SDK for Mongo DB Atlas Management SDK. Package api-version 2024-11-18-preview. 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 DB Atlas Management SDK. Package api-version 2025-06-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

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-mongodbatlas</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/SAMPLE.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
public final class OrganizationsGetByResourceGroupSamples {
2323
/*
24-
* x-ms-original-file: 2024-11-18-preview/Organizations_Get_MaximumSet_Gen.json
24+
* x-ms-original-file: 2025-06-01/Organizations_Get_MaximumSet_Gen.json
2525
*/
2626
/**
2727
* Sample code: Organizations_Get_MaximumSet.
@@ -42,7 +42,7 @@ public final class OrganizationsGetByResourceGroupSamples {
4242
*/
4343
public final class OrganizationsListByResourceGroupSamples {
4444
/*
45-
* x-ms-original-file: 2024-11-18-preview/Organizations_ListByResourceGroup_MaximumSet_Gen.json
45+
* x-ms-original-file: 2025-06-01/Organizations_ListByResourceGroup_MaximumSet_Gen.json
4646
*/
4747
/**
4848
* Sample code: Organizations_ListByResourceGroup_MaximumSet.
@@ -55,7 +55,7 @@ public final class OrganizationsListByResourceGroupSamples {
5555
}
5656

5757
/*
58-
* x-ms-original-file: 2024-11-18-preview/Organizations_ListByResourceGroup_MinimumSet_Gen.json
58+
* x-ms-original-file: 2025-06-01/Organizations_ListByResourceGroup_MinimumSet_Gen.json
5959
*/
6060
/**
6161
* Sample code: Organizations_ListByResourceGroup_MaximumSet - generated by [MinimumSet] rule.
@@ -77,7 +77,7 @@ public final class OrganizationsListByResourceGroupSamples {
7777
*/
7878
public final class OrganizationsListSamples {
7979
/*
80-
* x-ms-original-file: 2024-11-18-preview/Organizations_ListBySubscription_MaximumSet_Gen.json
80+
* x-ms-original-file: 2025-06-01/Organizations_ListBySubscription_MaximumSet_Gen.json
8181
*/
8282
/**
8383
* Sample code: Organizations_ListBySubscription_MaximumSet.
@@ -90,7 +90,7 @@ public final class OrganizationsListSamples {
9090
}
9191

9292
/*
93-
* x-ms-original-file: 2024-11-18-preview/Organizations_ListBySubscription_MinimumSet_Gen.json
93+
* x-ms-original-file: 2025-06-01/Organizations_ListBySubscription_MinimumSet_Gen.json
9494
*/
9595
/**
9696
* Sample code: Organizations_ListBySubscription_MaximumSet - generated by [MinimumSet] rule.
@@ -112,7 +112,7 @@ public final class OrganizationsListSamples {
112112
*/
113113
public final class OrganizationsDeleteSamples {
114114
/*
115-
* x-ms-original-file: 2024-11-18-preview/Organizations_Delete_MaximumSet_Gen.json
115+
* x-ms-original-file: 2025-06-01/Organizations_Delete_MaximumSet_Gen.json
116116
*/
117117
/**
118118
* Sample code: Organizations_Delete_MaximumSet.
@@ -131,8 +131,8 @@ public final class OrganizationsDeleteSamples {
131131
```java
132132
import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
133133
import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentityType;
134-
import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
135134
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
135+
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResourceUpdateProperties;
136136
import com.azure.resourcemanager.mongodbatlas.models.PartnerProperties;
137137
import com.azure.resourcemanager.mongodbatlas.models.UserDetails;
138138
import java.util.HashMap;
@@ -143,7 +143,7 @@ import java.util.Map;
143143
*/
144144
public final class OrganizationsUpdateSamples {
145145
/*
146-
* x-ms-original-file: 2024-11-18-preview/Organizations_Update_MaximumSet_Gen.json
146+
* x-ms-original-file: 2025-06-01/Organizations_Update_MaximumSet_Gen.json
147147
*/
148148
/**
149149
* Sample code: Organizations_Update_MaximumSet.
@@ -157,7 +157,9 @@ public final class OrganizationsUpdateSamples {
157157
.getValue();
158158
resource.update()
159159
.withTags(mapOf())
160-
.withProperties(new OrganizationProperties()
160+
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
161+
.withUserAssignedIdentities(mapOf()))
162+
.withProperties(new OrganizationResourceUpdateProperties()
161163
.withUser(new UserDetails().withFirstName("btyhwmlbzzihjfimviefebg")
162164
.withLastName("xx")
163165
.withEmailAddress("[email protected]")
@@ -167,8 +169,6 @@ public final class OrganizationsUpdateSamples {
167169
.withPartnerProperties(new PartnerProperties().withOrganizationId("vugtqrobendjkinziswxlqueouo")
168170
.withRedirectUrl("cbxwtehraetlluocdihfgchvjzockn")
169171
.withOrganizationName("U.1-:7")))
170-
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
171-
.withUserAssignedIdentities(mapOf()))
172172
.apply();
173173
}
174174

@@ -194,7 +194,7 @@ public final class OrganizationsUpdateSamples {
194194
*/
195195
public final class OperationsListSamples {
196196
/*
197-
* x-ms-original-file: 2024-11-18-preview/Operations_List_MinimumSet_Gen.json
197+
* x-ms-original-file: 2025-06-01/Operations_List_MinimumSet_Gen.json
198198
*/
199199
/**
200200
* Sample code: Operations_List_MinimumSet.
@@ -206,7 +206,7 @@ public final class OperationsListSamples {
206206
}
207207

208208
/*
209-
* x-ms-original-file: 2024-11-18-preview/Operations_List_MaximumSet_Gen.json
209+
* x-ms-original-file: 2025-06-01/Operations_List_MaximumSet_Gen.json
210210
*/
211211
/**
212212
* Sample code: Operations_List_MaximumSet.
@@ -237,7 +237,7 @@ import java.util.Map;
237237
*/
238238
public final class OrganizationsCreateOrUpdateSamples {
239239
/*
240-
* x-ms-original-file: 2024-11-18-preview/Organizations_CreateOrUpdate_MaximumSet_Gen.json
240+
* x-ms-original-file: 2025-06-01/Organizations_CreateOrUpdate_MaximumSet_Gen.json
241241
*/
242242
/**
243243
* Sample code: Organizations_CreateOrUpdate_MaximumSet.

sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
<groupId>com.azure.resourcemanager</groupId>
1616
<artifactId>azure-resourcemanager-mongodbatlas</artifactId>
17-
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-mongodbatlas;current} -->
17+
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-mongodbatlas;current} -->
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for Mongo DB Atlas Management</name>
21-
<description>This package contains Microsoft Azure SDK for Mongo DB Atlas Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2024-11-18-preview.</description>
21+
<description>This package contains Microsoft Azure SDK for Mongo DB Atlas Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-06-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,7 +45,6 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<revapi.skip>true</revapi.skip>
4948
</properties>
5049
<dependencies>
5150
<dependency>

sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/fluent/OrganizationsClient.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.azure.core.util.Context;
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.mongodbatlas.fluent.models.OrganizationResourceInner;
15+
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResourceUpdate;
1516

1617
/**
1718
* An instance of this class provides access to all the operations defined in OrganizationsClient.
@@ -120,7 +121,7 @@ OrganizationResourceInner createOrUpdate(String resourceGroupName, String organi
120121
*/
121122
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
122123
SyncPoller<PollResult<OrganizationResourceInner>, OrganizationResourceInner> beginUpdate(String resourceGroupName,
123-
String organizationName, OrganizationResourceInner properties);
124+
String organizationName, OrganizationResourceUpdate properties);
124125

125126
/**
126127
* Update a OrganizationResource.
@@ -136,7 +137,7 @@ SyncPoller<PollResult<OrganizationResourceInner>, OrganizationResourceInner> beg
136137
*/
137138
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
138139
SyncPoller<PollResult<OrganizationResourceInner>, OrganizationResourceInner> beginUpdate(String resourceGroupName,
139-
String organizationName, OrganizationResourceInner properties, Context context);
140+
String organizationName, OrganizationResourceUpdate properties, Context context);
140141

141142
/**
142143
* Update a OrganizationResource.
@@ -151,7 +152,7 @@ SyncPoller<PollResult<OrganizationResourceInner>, OrganizationResourceInner> beg
151152
*/
152153
@ServiceMethod(returns = ReturnType.SINGLE)
153154
OrganizationResourceInner update(String resourceGroupName, String organizationName,
154-
OrganizationResourceInner properties);
155+
OrganizationResourceUpdate properties);
155156

156157
/**
157158
* Update a OrganizationResource.
@@ -167,7 +168,7 @@ OrganizationResourceInner update(String resourceGroupName, String organizationNa
167168
*/
168169
@ServiceMethod(returns = ReturnType.SINGLE)
169170
OrganizationResourceInner update(String resourceGroupName, String organizationName,
170-
OrganizationResourceInner properties, Context context);
171+
OrganizationResourceUpdate properties, Context context);
171172

172173
/**
173174
* Delete a OrganizationResource.

sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/MongoDBAtlasManagementClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public OrganizationsClient getOrganizations() {
172172
this.defaultPollInterval = defaultPollInterval;
173173
this.endpoint = endpoint;
174174
this.subscriptionId = subscriptionId;
175-
this.apiVersion = "2024-11-18-preview";
175+
this.apiVersion = "2025-06-01";
176176
this.operations = new OperationsClientImpl(this);
177177
this.organizations = new OrganizationsClientImpl(this);
178178
}

sdk/mongodbatlas/azure-resourcemanager-mongodbatlas/src/main/java/com/azure/resourcemanager/mongodbatlas/implementation/OrganizationResourceImpl.java

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import com.azure.resourcemanager.mongodbatlas.models.ManagedServiceIdentity;
1212
import com.azure.resourcemanager.mongodbatlas.models.OrganizationProperties;
1313
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResource;
14+
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResourceUpdate;
15+
import com.azure.resourcemanager.mongodbatlas.models.OrganizationResourceUpdateProperties;
1416
import java.util.Collections;
1517
import java.util.Map;
1618

@@ -81,6 +83,8 @@ private com.azure.resourcemanager.mongodbatlas.MongoDBAtlasManager manager() {
8183

8284
private String organizationName;
8385

86+
private OrganizationResourceUpdate updateProperties;
87+
8488
public OrganizationResourceImpl withExistingResourceGroup(String resourceGroupName) {
8589
this.resourceGroupName = resourceGroupName;
8690
return this;
@@ -107,20 +111,21 @@ public OrganizationResource create(Context context) {
107111
}
108112

109113
public OrganizationResourceImpl update() {
114+
this.updateProperties = new OrganizationResourceUpdate();
110115
return this;
111116
}
112117

113118
public OrganizationResource apply() {
114119
this.innerObject = serviceManager.serviceClient()
115120
.getOrganizations()
116-
.update(resourceGroupName, organizationName, this.innerModel(), Context.NONE);
121+
.update(resourceGroupName, organizationName, updateProperties, Context.NONE);
117122
return this;
118123
}
119124

120125
public OrganizationResource apply(Context context) {
121126
this.innerObject = serviceManager.serviceClient()
122127
.getOrganizations()
123-
.update(resourceGroupName, organizationName, this.innerModel(), context);
128+
.update(resourceGroupName, organizationName, updateProperties, context);
124129
return this;
125130
}
126131

@@ -159,8 +164,13 @@ public OrganizationResourceImpl withRegion(String location) {
159164
}
160165

161166
public OrganizationResourceImpl withTags(Map<String, String> tags) {
162-
this.innerModel().withTags(tags);
163-
return this;
167+
if (isInCreateMode()) {
168+
this.innerModel().withTags(tags);
169+
return this;
170+
} else {
171+
this.updateProperties.withTags(tags);
172+
return this;
173+
}
164174
}
165175

166176
public OrganizationResourceImpl withProperties(OrganizationProperties properties) {
@@ -169,7 +179,21 @@ public OrganizationResourceImpl withProperties(OrganizationProperties properties
169179
}
170180

171181
public OrganizationResourceImpl withIdentity(ManagedServiceIdentity identity) {
172-
this.innerModel().withIdentity(identity);
182+
if (isInCreateMode()) {
183+
this.innerModel().withIdentity(identity);
184+
return this;
185+
} else {
186+
this.updateProperties.withIdentity(identity);
187+
return this;
188+
}
189+
}
190+
191+
public OrganizationResourceImpl withProperties(OrganizationResourceUpdateProperties properties) {
192+
this.updateProperties.withProperties(properties);
173193
return this;
174194
}
195+
196+
private boolean isInCreateMode() {
197+
return this.innerModel() == null || this.innerModel().id() == null;
198+
}
175199
}

0 commit comments

Comments
 (0)