Skip to content

Commit e59887c

Browse files
[AutoRelease] t2-mongocluster-2025-06-03-67385(can only be merged by SDK owner) (#41400)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 797a3d1 commit e59887c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

sdk/mongocluster/azure-mgmt-mongocluster/_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"apiVersion": "2025-04-01-preview",
3-
"commit": "0d19ae227ff21c8cc249a10ef207b951d311daa0",
3+
"commit": "ffcf309b79580e1af87d7bbcb70061441d23bd6c",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/mongocluster/DocumentDB.MongoCluster.Management",
66
"emitterVersion": "0.45.0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AuthenticationMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
2626
"""Native mongo authentication mode using username and password with auth mechanism
2727
'SCRAM-SHA-256'."""
2828
MICROSOFT_ENTRA_ID = "MicrosoftEntraID"
29-
"""Microsot Entra ID authentication mode using Entra users assigned to the cluster and auth
29+
"""Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth
3030
mechanism 'MONGODB-OIDC'."""
3131

3232

@@ -77,9 +77,9 @@ class DataApiMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
7777
class EntraPrincipalType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
7878
"""Microsoft Entra ID principal types available for a Mongo user."""
7979

80-
USER = "User"
80+
USER = "user"
8181
"""Entra user type."""
82-
SERVIE_PRINCIPAL = "ServicePrincipal"
82+
SERVICE_PRINCIPAL = "servicePrincipal"
8383
"""Entra service principal type."""
8484

8585

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
319319

320320

321321
class EntraIdentityProvider(IdentityProvider, discriminator="MicrosoftEntraID"):
322-
"""Defines a Microsot Entra ID Mongo user.
322+
"""Defines a Microsoft Entra ID Mongo user.
323323
324324
:ivar type: The type of identity provider that the user belongs to. Required. Microsoft Entra
325325
ID provider.
@@ -356,15 +356,15 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
356356
class EntraIdentityProviderProperties(_Model):
357357
"""Microsoft Entra ID provider properties.
358358
359-
:ivar principal_type: The principal type of the user. Required. Known values are: "User" and
360-
"ServicePrincipal".
359+
:ivar principal_type: The principal type of the user. Required. Known values are: "user" and
360+
"servicePrincipal".
361361
:vartype principal_type: str or ~azure.mgmt.mongocluster.models.EntraPrincipalType
362362
"""
363363

364364
principal_type: Union[str, "_models.EntraPrincipalType"] = rest_field(
365365
name="principalType", visibility=["read", "create", "update", "delete", "query"]
366366
)
367-
"""The principal type of the user. Required. Known values are: \"User\" and \"ServicePrincipal\"."""
367+
"""The principal type of the user. Required. Known values are: \"user\" and \"servicePrincipal\"."""
368368

369369
@overload
370370
def __init__(

sdk/mongocluster/azure-mgmt-mongocluster/generated_samples/mongo_clusters_user_create_or_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def main():
3636
user_name="uuuuuuuu-uuuu-uuuu-uuuu-uuuuuuuuuuuu",
3737
resource={
3838
"properties": {
39-
"identityProvider": {"properties": {"principalType": "User"}, "type": "MicrosoftEntraID"},
39+
"identityProvider": {"properties": {"principalType": "user"}, "type": "MicrosoftEntraID"},
4040
"roles": [{"db": "admin", "role": "dbOwner"}],
4141
}
4242
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/mongocluster/DocumentDB.MongoCluster.Management
2-
commit: 0d19ae227ff21c8cc249a10ef207b951d311daa0
2+
commit: ffcf309b79580e1af87d7bbcb70061441d23bd6c
33
repo: Azure/azure-rest-api-specs
44
additionalDirectories:

0 commit comments

Comments
 (0)