Skip to content

Commit 55caf99

Browse files
mongocluster release 1.1.0b1
Configurations: 'specification/mongocluster/DocumentDB.MongoCluster.Management/tspconfig.yaml', API Version: 2025-07-01-preview, SDK Release Type: beta, and CommitSHA: 'e6d42354fa0c04d56c2e5e5c061453e76ba788cb' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' (#42186) Co-authored-by: Oliver Towers <[email protected]>
1 parent 412d06a commit 55caf99

File tree

53 files changed

+667
-75
lines changed

Some content is hidden

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

53 files changed

+667
-75
lines changed

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Release History
22

3+
## 1.1.0b1 (2025-07-23)
4+
5+
### Features Added
6+
7+
- Client `MongoClusterMgmtClient` added operation group `users`
8+
- Model `MongoCluster` added property `identity`
9+
- Model `MongoClusterProperties` added property `data_api`
10+
- Model `MongoClusterProperties` added property `auth_config`
11+
- Model `MongoClusterProperties` added property `encryption`
12+
- Model `MongoClusterUpdate` added property `identity`
13+
- Model `MongoClusterUpdateProperties` added property `data_api`
14+
- Model `MongoClusterUpdateProperties` added property `auth_config`
15+
- Model `StorageProperties` added property `type`
16+
- Model `StorageProperties` added property `iops`
17+
- Model `StorageProperties` added property `throughput`
18+
- Added model `AuthConfigProperties`
19+
- Added enum `AuthenticationMode`
20+
- Added model `CustomerManagedKeyEncryptionProperties`
21+
- Added enum `DataApiMode`
22+
- Added model `DataApiProperties`
23+
- Added model `DatabaseRole`
24+
- Added model `EncryptionProperties`
25+
- Added model `EntraIdentityProvider`
26+
- Added model `EntraIdentityProviderProperties`
27+
- Added enum `EntraPrincipalType`
28+
- Added model `IdentityProvider`
29+
- Added enum `IdentityProviderType`
30+
- Added model `KeyEncryptionKeyIdentity`
31+
- Added enum `KeyEncryptionKeyIdentityType`
32+
- Added model `ManagedServiceIdentity`
33+
- Added enum `ManagedServiceIdentityType`
34+
- Added enum `StorageType`
35+
- Added model `User`
36+
- Added model `UserAssignedIdentity`
37+
- Added model `UserProperties`
38+
- Added enum `UserRole`
39+
- Added model `UsersOperations`
40+
341
## 1.0.0 (2024-09-26)
442

543
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"apiVersion": "2025-04-01-preview",
3-
"commit": "ffcf309b79580e1af87d7bbcb70061441d23bd6c",
2+
"apiVersion": "2025-07-01-preview",
3+
"commit": "e6d42354fa0c04d56c2e5e5c061453e76ba788cb",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/mongocluster/DocumentDB.MongoCluster.Management",
6-
"emitterVersion": "0.45.0"
6+
"emitterVersion": "0.47.0"
77
}

sdk/mongocluster/azure-mgmt-mongocluster/apiview-properties.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"azure.mgmt.mongocluster.models.CheckNameAvailabilityResponse": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse",
99
"azure.mgmt.mongocluster.models.ComputeProperties": "Microsoft.DocumentDB.ComputeProperties",
1010
"azure.mgmt.mongocluster.models.ConnectionString": "Microsoft.DocumentDB.ConnectionString",
11+
"azure.mgmt.mongocluster.models.CustomerManagedKeyEncryptionProperties": "Microsoft.DocumentDB.CustomerManagedKeyEncryptionProperties",
1112
"azure.mgmt.mongocluster.models.DataApiProperties": "Microsoft.DocumentDB.DataApiProperties",
1213
"azure.mgmt.mongocluster.models.DatabaseRole": "Microsoft.DocumentDB.DatabaseRole",
14+
"azure.mgmt.mongocluster.models.EncryptionProperties": "Microsoft.DocumentDB.EncryptionProperties",
1315
"azure.mgmt.mongocluster.models.IdentityProvider": "Microsoft.DocumentDB.IdentityProvider",
1416
"azure.mgmt.mongocluster.models.EntraIdentityProvider": "Microsoft.DocumentDB.EntraIdentityProvider",
1517
"azure.mgmt.mongocluster.models.EntraIdentityProviderProperties": "Microsoft.DocumentDB.EntraIdentityProviderProperties",
@@ -21,7 +23,9 @@
2123
"azure.mgmt.mongocluster.models.FirewallRule": "Microsoft.DocumentDB.FirewallRule",
2224
"azure.mgmt.mongocluster.models.FirewallRuleProperties": "Microsoft.DocumentDB.FirewallRuleProperties",
2325
"azure.mgmt.mongocluster.models.HighAvailabilityProperties": "Microsoft.DocumentDB.HighAvailabilityProperties",
26+
"azure.mgmt.mongocluster.models.KeyEncryptionKeyIdentity": "Microsoft.DocumentDB.KeyEncryptionKeyIdentity",
2427
"azure.mgmt.mongocluster.models.ListConnectionStringsResult": "Microsoft.DocumentDB.ListConnectionStringsResult",
28+
"azure.mgmt.mongocluster.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
2529
"azure.mgmt.mongocluster.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
2630
"azure.mgmt.mongocluster.models.MongoCluster": "Microsoft.DocumentDB.MongoCluster",
2731
"azure.mgmt.mongocluster.models.MongoClusterProperties": "Microsoft.DocumentDB.MongoClusterProperties",
@@ -45,6 +49,7 @@
4549
"azure.mgmt.mongocluster.models.StorageProperties": "Microsoft.DocumentDB.StorageProperties",
4650
"azure.mgmt.mongocluster.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
4751
"azure.mgmt.mongocluster.models.User": "Microsoft.DocumentDB.User",
52+
"azure.mgmt.mongocluster.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
4853
"azure.mgmt.mongocluster.models.UserProperties": "Microsoft.DocumentDB.UserProperties",
4954
"azure.mgmt.mongocluster.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
5055
"azure.mgmt.mongocluster.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
@@ -62,6 +67,8 @@
6267
"azure.mgmt.mongocluster.models.ReplicationRole": "Microsoft.DocumentDB.ReplicationRole",
6368
"azure.mgmt.mongocluster.models.ReplicationState": "Microsoft.DocumentDB.ReplicationState",
6469
"azure.mgmt.mongocluster.models.AuthenticationMode": "Microsoft.DocumentDB.AuthenticationMode",
70+
"azure.mgmt.mongocluster.models.KeyEncryptionKeyIdentityType": "Microsoft.DocumentDB.KeyEncryptionKeyIdentityType",
71+
"azure.mgmt.mongocluster.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
6572
"azure.mgmt.mongocluster.models.CheckNameAvailabilityReason": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason",
6673
"azure.mgmt.mongocluster.models.PromoteOption": "Microsoft.DocumentDB.PromoteOption",
6774
"azure.mgmt.mongocluster.models.PromoteMode": "Microsoft.DocumentDB.PromoteMode",

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class MongoClusterMgmtClient: # pylint: disable=too-many-instance-attributes
5959
:param base_url: Service host. Default value is None.
6060
:type base_url: str
6161
:keyword api_version: The API version to use for this operation. Default value is
62-
"2025-04-01-preview". Note that overriding this default value may result in unsupported
62+
"2025-07-01-preview". Note that overriding this default value may result in unsupported
6363
behavior.
6464
:paramtype api_version: str
6565
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
3232
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-04-01-preview". Note that overriding this default value may result in unsupported
33+
"2025-07-01-preview". Note that overriding this default value may result in unsupported
3434
behavior.
3535
:paramtype api_version: str
3636
"""
@@ -42,7 +42,7 @@ def __init__(
4242
base_url: str = "https://management.azure.com",
4343
**kwargs: Any
4444
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
45+
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/_validation.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
def api_version_validation(**kwargs):
1111
params_added_on = kwargs.pop("params_added_on", {})
1212
method_added_on = kwargs.pop("method_added_on", "")
13+
api_versions_list = kwargs.pop("api_versions_list", [])
14+
15+
def _index_with_default(value: str, default: int = -1) -> int:
16+
"""Get the index of value in lst, or return default if not found.
17+
18+
:param value: The value to search for in the api_versions_list.
19+
:type value: str
20+
:param default: The default value to return if the value is not found.
21+
:type default: int
22+
:return: The index of the value in the list, or the default value if not found.
23+
:rtype: int
24+
"""
25+
try:
26+
return api_versions_list.index(value)
27+
except ValueError:
28+
return default
1329

1430
def decorator(func):
1531
@functools.wraps(func)
@@ -21,7 +37,7 @@ def wrapper(*args, **kwargs):
2137
except AttributeError:
2238
return func(*args, **kwargs)
2339

24-
if method_added_on > client_api_version:
40+
if _index_with_default(method_added_on) > _index_with_default(client_api_version):
2541
raise ValueError(
2642
f"'{func.__name__}' is not available in API version "
2743
f"{client_api_version}. Pass service API version {method_added_on} or newer to your client."
@@ -31,7 +47,7 @@ def wrapper(*args, **kwargs):
3147
parameter: api_version
3248
for api_version, parameters in params_added_on.items()
3349
for parameter in parameters
34-
if parameter in kwargs and api_version > client_api_version
50+
if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version)
3551
}
3652
if unsupported:
3753
raise ValueError(

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/aio/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class MongoClusterMgmtClient: # pylint: disable=too-many-instance-attributes
5959
:param base_url: Service host. Default value is None.
6060
:type base_url: str
6161
:keyword api_version: The API version to use for this operation. Default value is
62-
"2025-04-01-preview". Note that overriding this default value may result in unsupported
62+
"2025-07-01-preview". Note that overriding this default value may result in unsupported
6363
behavior.
6464
:paramtype api_version: str
6565
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
3232
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-04-01-preview". Note that overriding this default value may result in unsupported
33+
"2025-07-01-preview". Note that overriding this default value may result in unsupported
3434
behavior.
3535
:paramtype api_version: str
3636
"""
@@ -42,7 +42,7 @@ def __init__(
4242
base_url: str = "https://management.azure.com",
4343
**kwargs: Any
4444
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-04-01-preview")
45+
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/aio/operations/_operations.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,13 @@ async def check_name_availability(
12311231
"accept",
12321232
]
12331233
},
1234+
api_versions_list=[
1235+
"2024-06-01-preview",
1236+
"2024-07-01",
1237+
"2024-10-01-preview",
1238+
"2025-04-01-preview",
1239+
"2025-07-01-preview",
1240+
],
12341241
)
12351242
async def _promote_initial(
12361243
self,
@@ -1396,6 +1403,13 @@ async def begin_promote(
13961403
"accept",
13971404
]
13981405
},
1406+
api_versions_list=[
1407+
"2024-06-01-preview",
1408+
"2024-07-01",
1409+
"2024-10-01-preview",
1410+
"2025-04-01-preview",
1411+
"2025-07-01-preview",
1412+
],
13991413
)
14001414
async def begin_promote(
14011415
self,
@@ -2718,6 +2732,13 @@ def __init__(self, *args, **kwargs) -> None:
27182732
"accept",
27192733
]
27202734
},
2735+
api_versions_list=[
2736+
"2024-06-01-preview",
2737+
"2024-07-01",
2738+
"2024-10-01-preview",
2739+
"2025-04-01-preview",
2740+
"2025-07-01-preview",
2741+
],
27212742
)
27222743
def list_by_parent(
27232744
self, resource_group_name: str, mongo_cluster_name: str, **kwargs: Any
@@ -2842,6 +2863,7 @@ def __init__(self, *args, **kwargs) -> None:
28422863
"accept",
28432864
]
28442865
},
2866+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
28452867
)
28462868
async def get(
28472869
self, resource_group_name: str, mongo_cluster_name: str, user_name: str, **kwargs: Any
@@ -2926,6 +2948,7 @@ async def get(
29262948
"accept",
29272949
]
29282950
},
2951+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
29292952
)
29302953
async def _create_or_update_initial(
29312954
self,
@@ -3106,6 +3129,7 @@ async def begin_create_or_update(
31063129
"accept",
31073130
]
31083131
},
3132+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
31093133
)
31103134
async def begin_create_or_update(
31113135
self,
@@ -3197,6 +3221,7 @@ def get_long_running_output(pipeline_response):
31973221
"accept",
31983222
]
31993223
},
3224+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
32003225
)
32013226
async def _delete_initial(
32023227
self, resource_group_name: str, mongo_cluster_name: str, user_name: str, **kwargs: Any
@@ -3269,6 +3294,7 @@ async def _delete_initial(
32693294
"accept",
32703295
]
32713296
},
3297+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
32723298
)
32733299
async def begin_delete(
32743300
self, resource_group_name: str, mongo_cluster_name: str, user_name: str, **kwargs: Any
@@ -3343,6 +3369,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
33433369
"accept",
33443370
]
33453371
},
3372+
api_versions_list=["2025-04-01-preview", "2025-07-01-preview"],
33463373
)
33473374
def list_by_mongo_cluster(
33483375
self, resource_group_name: str, mongo_cluster_name: str, **kwargs: Any

sdk/mongocluster/azure-mgmt-mongocluster/azure/mgmt/mongocluster/models/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
CheckNameAvailabilityResponse,
2222
ComputeProperties,
2323
ConnectionString,
24+
CustomerManagedKeyEncryptionProperties,
2425
DataApiProperties,
2526
DatabaseRole,
27+
EncryptionProperties,
2628
EntraIdentityProvider,
2729
EntraIdentityProviderProperties,
2830
ErrorAdditionalInfo,
@@ -32,7 +34,9 @@
3234
FirewallRuleProperties,
3335
HighAvailabilityProperties,
3436
IdentityProvider,
37+
KeyEncryptionKeyIdentity,
3538
ListConnectionStringsResult,
39+
ManagedServiceIdentity,
3640
MongoCluster,
3741
MongoClusterProperties,
3842
MongoClusterReplicaParameters,
@@ -58,6 +62,7 @@
5862
SystemData,
5963
TrackedResource,
6064
User,
65+
UserAssignedIdentity,
6166
UserProperties,
6267
)
6368

@@ -71,6 +76,8 @@
7176
EntraPrincipalType,
7277
HighAvailabilityMode,
7378
IdentityProviderType,
79+
KeyEncryptionKeyIdentityType,
80+
ManagedServiceIdentityType,
7481
MongoClusterStatus,
7582
Origin,
7683
PreviewFeature,
@@ -97,8 +104,10 @@
97104
"CheckNameAvailabilityResponse",
98105
"ComputeProperties",
99106
"ConnectionString",
107+
"CustomerManagedKeyEncryptionProperties",
100108
"DataApiProperties",
101109
"DatabaseRole",
110+
"EncryptionProperties",
102111
"EntraIdentityProvider",
103112
"EntraIdentityProviderProperties",
104113
"ErrorAdditionalInfo",
@@ -108,7 +117,9 @@
108117
"FirewallRuleProperties",
109118
"HighAvailabilityProperties",
110119
"IdentityProvider",
120+
"KeyEncryptionKeyIdentity",
111121
"ListConnectionStringsResult",
122+
"ManagedServiceIdentity",
112123
"MongoCluster",
113124
"MongoClusterProperties",
114125
"MongoClusterReplicaParameters",
@@ -134,6 +145,7 @@
134145
"SystemData",
135146
"TrackedResource",
136147
"User",
148+
"UserAssignedIdentity",
137149
"UserProperties",
138150
"ActionType",
139151
"AuthenticationMode",
@@ -144,6 +156,8 @@
144156
"EntraPrincipalType",
145157
"HighAvailabilityMode",
146158
"IdentityProviderType",
159+
"KeyEncryptionKeyIdentityType",
160+
"ManagedServiceIdentityType",
147161
"MongoClusterStatus",
148162
"Origin",
149163
"PreviewFeature",

0 commit comments

Comments
 (0)