Skip to content

Commit 06bd2c4

Browse files
[AutoRelease] t2-mongocluster-2025-05-29-41275(can only be merged by SDK owner) (#41340)
* code and test * update changelog * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 546c90b commit 06bd2c4

File tree

69 files changed

+3391
-986
lines changed

Some content is hidden

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

69 files changed

+3391
-986
lines changed

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

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

3+
## 1.1.0b1 (2025-06-03)
4+
5+
### Features Added
6+
7+
- Client `MongoClusterMgmtClient` added operation group `users`
8+
- Model `MongoClusterProperties` added property `data_api`
9+
- Model `MongoClusterProperties` added property `auth_config`
10+
- Model `MongoClusterUpdateProperties` added property `data_api`
11+
- Model `MongoClusterUpdateProperties` added property `auth_config`
12+
- Model `StorageProperties` added property `type`
13+
- Model `StorageProperties` added property `iops`
14+
- Model `StorageProperties` added property `throughput`
15+
- Added model `AuthConfigProperties`
16+
- Added enum `AuthenticationMode`
17+
- Added enum `DataApiMode`
18+
- Added model `DataApiProperties`
19+
- Added model `DatabaseRole`
20+
- Added model `EntraIdentityProvider`
21+
- Added model `EntraIdentityProviderProperties`
22+
- Added enum `EntraPrincipalType`
23+
- Added model `IdentityProvider`
24+
- Added enum `IdentityProviderType`
25+
- Added enum `StorageType`
26+
- Added model `User`
27+
- Added model `UserProperties`
28+
- Added enum `UserRole`
29+
- Added operation group `UsersOperations`
30+
331
## 1.0.0 (2024-09-26)
432

533
### Features Added

sdk/mongocluster/azure-mgmt-mongocluster/MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include _meta.json
21
recursive-include tests *.py *.json
32
recursive-include samples *.py *.md
43
include *.md

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Mongocluster Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"commit": "f93850874010501f216ceadf19459402efd16d9e",
2+
"apiVersion": "2025-04-01-preview",
3+
"commit": "0d19ae227ff21c8cc249a10ef207b951d311daa0",
34
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
45
"typespec_src": "specification/mongocluster/DocumentDB.MongoCluster.Management",
5-
"@azure-tools/typespec-python": "0.33.0"
6+
"emitterVersion": "0.45.0"
67
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.DocumentDB",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.mongocluster.models.AdministratorProperties": "Microsoft.DocumentDB.AdministratorProperties",
5+
"azure.mgmt.mongocluster.models.AuthConfigProperties": "Microsoft.DocumentDB.AuthConfigProperties",
6+
"azure.mgmt.mongocluster.models.BackupProperties": "Microsoft.DocumentDB.BackupProperties",
7+
"azure.mgmt.mongocluster.models.CheckNameAvailabilityRequest": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest",
8+
"azure.mgmt.mongocluster.models.CheckNameAvailabilityResponse": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse",
9+
"azure.mgmt.mongocluster.models.ComputeProperties": "Microsoft.DocumentDB.ComputeProperties",
10+
"azure.mgmt.mongocluster.models.ConnectionString": "Microsoft.DocumentDB.ConnectionString",
11+
"azure.mgmt.mongocluster.models.DataApiProperties": "Microsoft.DocumentDB.DataApiProperties",
12+
"azure.mgmt.mongocluster.models.DatabaseRole": "Microsoft.DocumentDB.DatabaseRole",
13+
"azure.mgmt.mongocluster.models.IdentityProvider": "Microsoft.DocumentDB.IdentityProvider",
14+
"azure.mgmt.mongocluster.models.EntraIdentityProvider": "Microsoft.DocumentDB.EntraIdentityProvider",
15+
"azure.mgmt.mongocluster.models.EntraIdentityProviderProperties": "Microsoft.DocumentDB.EntraIdentityProviderProperties",
16+
"azure.mgmt.mongocluster.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
17+
"azure.mgmt.mongocluster.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
18+
"azure.mgmt.mongocluster.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
19+
"azure.mgmt.mongocluster.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
20+
"azure.mgmt.mongocluster.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
21+
"azure.mgmt.mongocluster.models.FirewallRule": "Microsoft.DocumentDB.FirewallRule",
22+
"azure.mgmt.mongocluster.models.FirewallRuleProperties": "Microsoft.DocumentDB.FirewallRuleProperties",
23+
"azure.mgmt.mongocluster.models.HighAvailabilityProperties": "Microsoft.DocumentDB.HighAvailabilityProperties",
24+
"azure.mgmt.mongocluster.models.ListConnectionStringsResult": "Microsoft.DocumentDB.ListConnectionStringsResult",
25+
"azure.mgmt.mongocluster.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
26+
"azure.mgmt.mongocluster.models.MongoCluster": "Microsoft.DocumentDB.MongoCluster",
27+
"azure.mgmt.mongocluster.models.MongoClusterProperties": "Microsoft.DocumentDB.MongoClusterProperties",
28+
"azure.mgmt.mongocluster.models.MongoClusterReplicaParameters": "Microsoft.DocumentDB.MongoClusterReplicaParameters",
29+
"azure.mgmt.mongocluster.models.MongoClusterRestoreParameters": "Microsoft.DocumentDB.MongoClusterRestoreParameters",
30+
"azure.mgmt.mongocluster.models.MongoClusterUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
31+
"azure.mgmt.mongocluster.models.MongoClusterUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
32+
"azure.mgmt.mongocluster.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
33+
"azure.mgmt.mongocluster.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
34+
"azure.mgmt.mongocluster.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
35+
"azure.mgmt.mongocluster.models.PrivateEndpointConnection": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnection",
36+
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
37+
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionResource": "Microsoft.DocumentDB.PrivateEndpointConnectionResource",
38+
"azure.mgmt.mongocluster.models.PrivateLinkResource": "Microsoft.DocumentDB.PrivateLinkResource",
39+
"azure.mgmt.mongocluster.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
40+
"azure.mgmt.mongocluster.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
41+
"azure.mgmt.mongocluster.models.PromoteReplicaRequest": "Microsoft.DocumentDB.PromoteReplicaRequest",
42+
"azure.mgmt.mongocluster.models.Replica": "Microsoft.DocumentDB.Replica",
43+
"azure.mgmt.mongocluster.models.ReplicationProperties": "Microsoft.DocumentDB.ReplicationProperties",
44+
"azure.mgmt.mongocluster.models.ShardingProperties": "Microsoft.DocumentDB.ShardingProperties",
45+
"azure.mgmt.mongocluster.models.StorageProperties": "Microsoft.DocumentDB.StorageProperties",
46+
"azure.mgmt.mongocluster.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
47+
"azure.mgmt.mongocluster.models.User": "Microsoft.DocumentDB.User",
48+
"azure.mgmt.mongocluster.models.UserProperties": "Microsoft.DocumentDB.UserProperties",
49+
"azure.mgmt.mongocluster.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
50+
"azure.mgmt.mongocluster.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
51+
"azure.mgmt.mongocluster.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
52+
"azure.mgmt.mongocluster.models.CreateMode": "Microsoft.DocumentDB.CreateMode",
53+
"azure.mgmt.mongocluster.models.ProvisioningState": "Microsoft.DocumentDB.ProvisioningState",
54+
"azure.mgmt.mongocluster.models.MongoClusterStatus": "Microsoft.DocumentDB.MongoClusterStatus",
55+
"azure.mgmt.mongocluster.models.PublicNetworkAccess": "Microsoft.DocumentDB.PublicNetworkAccess",
56+
"azure.mgmt.mongocluster.models.HighAvailabilityMode": "Microsoft.DocumentDB.HighAvailabilityMode",
57+
"azure.mgmt.mongocluster.models.StorageType": "Microsoft.DocumentDB.StorageType",
58+
"azure.mgmt.mongocluster.models.DataApiMode": "Microsoft.DocumentDB.DataApiMode",
59+
"azure.mgmt.mongocluster.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
60+
"azure.mgmt.mongocluster.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
61+
"azure.mgmt.mongocluster.models.PreviewFeature": "Microsoft.DocumentDB.PreviewFeature",
62+
"azure.mgmt.mongocluster.models.ReplicationRole": "Microsoft.DocumentDB.ReplicationRole",
63+
"azure.mgmt.mongocluster.models.ReplicationState": "Microsoft.DocumentDB.ReplicationState",
64+
"azure.mgmt.mongocluster.models.AuthenticationMode": "Microsoft.DocumentDB.AuthenticationMode",
65+
"azure.mgmt.mongocluster.models.CheckNameAvailabilityReason": "Azure.ResourceManager.CommonTypes.CheckNameAvailabilityReason",
66+
"azure.mgmt.mongocluster.models.PromoteOption": "Microsoft.DocumentDB.PromoteOption",
67+
"azure.mgmt.mongocluster.models.PromoteMode": "Microsoft.DocumentDB.PromoteMode",
68+
"azure.mgmt.mongocluster.models.IdentityProviderType": "Microsoft.DocumentDB.IdentityProviderType",
69+
"azure.mgmt.mongocluster.models.EntraPrincipalType": "Microsoft.DocumentDB.EntraPrincipalType",
70+
"azure.mgmt.mongocluster.models.UserRole": "Microsoft.DocumentDB.UserRole",
71+
"azure.mgmt.mongocluster.operations.Operations.list": "Azure.ResourceManager.Operations.list",
72+
"azure.mgmt.mongocluster.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
73+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.get": "Microsoft.DocumentDB.MongoClusters.get",
74+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.get": "Microsoft.DocumentDB.MongoClusters.get",
75+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_create_or_update": "Microsoft.DocumentDB.MongoClusters.createOrUpdate",
76+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_create_or_update": "Microsoft.DocumentDB.MongoClusters.createOrUpdate",
77+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_update": "Microsoft.DocumentDB.MongoClusters.update",
78+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_update": "Microsoft.DocumentDB.MongoClusters.update",
79+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_delete": "Microsoft.DocumentDB.MongoClusters.delete",
80+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_delete": "Microsoft.DocumentDB.MongoClusters.delete",
81+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list_by_resource_group": "Microsoft.DocumentDB.MongoClusters.listByResourceGroup",
82+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list_by_resource_group": "Microsoft.DocumentDB.MongoClusters.listByResourceGroup",
83+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list": "Microsoft.DocumentDB.MongoClusters.list",
84+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list": "Microsoft.DocumentDB.MongoClusters.list",
85+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.list_connection_strings": "Microsoft.DocumentDB.MongoClusters.listConnectionStrings",
86+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.list_connection_strings": "Microsoft.DocumentDB.MongoClusters.listConnectionStrings",
87+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.check_name_availability": "Microsoft.DocumentDB.MongoClusters.checkNameAvailability",
88+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.check_name_availability": "Microsoft.DocumentDB.MongoClusters.checkNameAvailability",
89+
"azure.mgmt.mongocluster.operations.MongoClustersOperations.begin_promote": "Microsoft.DocumentDB.MongoClusters.promote",
90+
"azure.mgmt.mongocluster.aio.operations.MongoClustersOperations.begin_promote": "Microsoft.DocumentDB.MongoClusters.promote",
91+
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.get": "Microsoft.DocumentDB.FirewallRules.get",
92+
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.get": "Microsoft.DocumentDB.FirewallRules.get",
93+
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.begin_create_or_update": "Microsoft.DocumentDB.FirewallRules.createOrUpdate",
94+
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.begin_create_or_update": "Microsoft.DocumentDB.FirewallRules.createOrUpdate",
95+
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.begin_delete": "Microsoft.DocumentDB.FirewallRules.delete",
96+
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.begin_delete": "Microsoft.DocumentDB.FirewallRules.delete",
97+
"azure.mgmt.mongocluster.operations.FirewallRulesOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.FirewallRules.listByMongoCluster",
98+
"azure.mgmt.mongocluster.aio.operations.FirewallRulesOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.FirewallRules.listByMongoCluster",
99+
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateEndpointConnections.listByMongoCluster",
100+
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateEndpointConnections.listByMongoCluster",
101+
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.DocumentDB.PrivateEndpointConnections.get",
102+
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.DocumentDB.PrivateEndpointConnections.get",
103+
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.DocumentDB.PrivateEndpointConnections.create",
104+
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.DocumentDB.PrivateEndpointConnections.create",
105+
"azure.mgmt.mongocluster.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.DocumentDB.PrivateEndpointConnections.delete",
106+
"azure.mgmt.mongocluster.aio.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.DocumentDB.PrivateEndpointConnections.delete",
107+
"azure.mgmt.mongocluster.operations.PrivateLinksOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateLinks.listByMongoCluster",
108+
"azure.mgmt.mongocluster.aio.operations.PrivateLinksOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateLinks.listByMongoCluster",
109+
"azure.mgmt.mongocluster.operations.ReplicasOperations.list_by_parent": "Microsoft.DocumentDB.Replicas.listByParent",
110+
"azure.mgmt.mongocluster.aio.operations.ReplicasOperations.list_by_parent": "Microsoft.DocumentDB.Replicas.listByParent",
111+
"azure.mgmt.mongocluster.operations.UsersOperations.get": "Microsoft.DocumentDB.Users.get",
112+
"azure.mgmt.mongocluster.aio.operations.UsersOperations.get": "Microsoft.DocumentDB.Users.get",
113+
"azure.mgmt.mongocluster.operations.UsersOperations.begin_create_or_update": "Microsoft.DocumentDB.Users.createOrUpdate",
114+
"azure.mgmt.mongocluster.aio.operations.UsersOperations.begin_create_or_update": "Microsoft.DocumentDB.Users.createOrUpdate",
115+
"azure.mgmt.mongocluster.operations.UsersOperations.begin_delete": "Microsoft.DocumentDB.Users.delete",
116+
"azure.mgmt.mongocluster.aio.operations.UsersOperations.begin_delete": "Microsoft.DocumentDB.Users.delete",
117+
"azure.mgmt.mongocluster.operations.UsersOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.Users.listByMongoCluster",
118+
"azure.mgmt.mongocluster.aio.operations.UsersOperations.list_by_mongo_cluster": "Microsoft.DocumentDB.Users.listByMongoCluster"
119+
}
120+
}

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._client import MongoClusterMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import MongoClusterMgmtClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"MongoClusterMgmtClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

0 commit comments

Comments
 (0)