Skip to content

Commit 6fa0f5d

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge 447c4193246efcde66d0d0feaa59da2c756c794f into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 6c30600 commit 6fa0f5d

File tree

59 files changed

+1100
-961
lines changed

Some content is hidden

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

59 files changed

+1100
-961
lines changed

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

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

3+
## 1.1.0b1 (2025-05-13)
4+
5+
### Features Added
6+
7+
- Model `MongoClusterProperties` added property `data_api`
8+
- Model `MongoClusterUpdateProperties` added property `data_api`
9+
- Added enum `DataApiMode`
10+
- Added model `DataApiProperties`
11+
- Method `MongoClusterProperties.__init__` has a new overload `def __init__(self: None, create_mode: Optional[Union[str, _models.CreateMode]], restore_parameters: Optional[_models.MongoClusterRestoreParameters], replica_parameters: Optional[_models.MongoClusterReplicaParameters], administrator: Optional[_models.AdministratorProperties], server_version: Optional[str], public_network_access: Optional[Union[str, _models.PublicNetworkAccess]], high_availability: Optional[_models.HighAvailabilityProperties], storage: Optional[_models.StorageProperties], sharding: Optional[_models.ShardingProperties], compute: Optional[_models.ComputeProperties], backup: Optional[_models.BackupProperties], data_api: Optional[_models.DataApiProperties], preview_features: Optional[List[Union[str, _models.PreviewFeature]]])`
12+
- Method `MongoClusterUpdateProperties.__init__` has a new overload `def __init__(self: None, administrator: Optional[_models.AdministratorProperties], server_version: Optional[str], public_network_access: Optional[Union[str, _models.PublicNetworkAccess]], high_availability: Optional[_models.HighAvailabilityProperties], storage: Optional[_models.StorageProperties], sharding: Optional[_models.ShardingProperties], compute: Optional[_models.ComputeProperties], backup: Optional[_models.BackupProperties], data_api: Optional[_models.DataApiProperties], preview_features: Optional[List[Union[str, _models.PreviewFeature]]])`
13+
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
14+
- Method `DataApiProperties.__init__` has a new overload `def __init__(self: None, mode: Optional[Union[str, _models.DataApiMode]])`
15+
- Method `DataApiProperties.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
16+
317
## 1.0.0 (2024-09-26)
418

519
### Features Added

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

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)