Skip to content

Commit 8bbb37d

Browse files
author
SDKAuto
committed
CodeGen from PR 32741 in Azure/azure-rest-api-specs
Merge e64756157328c1d3837acd37bf82342874372d9b into c2afa6e1f7ced1b3c1fdd3518a9d49b44871d7a7
1 parent ada2aa3 commit 8bbb37d

File tree

49 files changed

+915
-598
lines changed

Some content is hidden

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

49 files changed

+915
-598
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "f93850874010501f216ceadf19459402efd16d9e",
2+
"commit": "fbb413f68a8ca8acf5f03ac50fbf54a63cf1d716",
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.38.4"
66
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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.MongoClusterMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
60+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.get": "Microsoft.DocumentDB.MongoClusters.get",
61+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.begin_create_or_update": "Microsoft.DocumentDB.MongoClusters.createOrUpdate",
62+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.begin_update": "Microsoft.DocumentDB.MongoClusters.update",
63+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.begin_delete": "Microsoft.DocumentDB.MongoClusters.delete",
64+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.list_by_resource_group": "Microsoft.DocumentDB.MongoClusters.listByResourceGroup",
65+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.list": "Microsoft.DocumentDB.MongoClusters.list",
66+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.list_connection_strings": "Microsoft.DocumentDB.MongoClusters.listConnectionStrings",
67+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.check_name_availability": "Microsoft.DocumentDB.MongoClusters.checkNameAvailability",
68+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.mongo_clusters.begin_promote": "Microsoft.DocumentDB.MongoClusters.promote",
69+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.firewall_rules.get": "Microsoft.DocumentDB.FirewallRules.get",
70+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.firewall_rules.begin_create_or_update": "Microsoft.DocumentDB.FirewallRules.createOrUpdate",
71+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.firewall_rules.begin_delete": "Microsoft.DocumentDB.FirewallRules.delete",
72+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.firewall_rules.list_by_mongo_cluster": "Microsoft.DocumentDB.FirewallRules.listByMongoCluster",
73+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.private_endpoint_connections.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateEndpointConnections.listByMongoCluster",
74+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.private_endpoint_connections.get": "Microsoft.DocumentDB.PrivateEndpointConnections.get",
75+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.private_endpoint_connections.begin_create": "Microsoft.DocumentDB.PrivateEndpointConnections.create",
76+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.private_endpoint_connections.begin_delete": "Microsoft.DocumentDB.PrivateEndpointConnections.delete",
77+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.private_links.list_by_mongo_cluster": "Microsoft.DocumentDB.PrivateLinks.listByMongoCluster",
78+
"azure.mgmt.mongocluster.MongoClusterMgmtClient.replicas.list_by_parent": "Microsoft.DocumentDB.Replicas.listByParent"
79+
}
80+
}

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()

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
)
2828

2929
if TYPE_CHECKING:
30-
# pylint: disable=unused-import,ungrouped-imports
3130
from azure.core.credentials import TokenCredential
3231

3332

34-
class MongoClusterMgmtClient: # pylint: disable=client-accepts-api-version-keyword
33+
class MongoClusterMgmtClient:
3534
"""The Microsoft Azure management API provides create, read, update, and delete functionality for
3635
Azure Cosmos DB for MongoDB vCore resources including clusters and firewall rules.
3736
@@ -54,8 +53,9 @@ class MongoClusterMgmtClient: # pylint: disable=client-accepts-api-version-keyw
5453
:type subscription_id: str
5554
:param base_url: Service host. Default value is "https://management.azure.com".
5655
:type base_url: str
57-
:keyword api_version: The API version to use for this operation. Default value is "2024-07-01".
58-
Note that overriding this default value may result in unsupported behavior.
56+
:keyword api_version: The API version to use for this operation. Default value is
57+
"2024-10-01-preview". Note that overriding this default value may result in unsupported
58+
behavior.
5959
:paramtype api_version: str
6060
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6161
Retry-After header is present.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for MongoClusterMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -30,8 +29,9 @@ class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-
3029
:type subscription_id: str
3130
:param base_url: Service host. Default value is "https://management.azure.com".
3231
:type base_url: str
33-
:keyword api_version: The API version to use for this operation. Default value is "2024-07-01".
34-
Note that overriding this default value may result in unsupported behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is
33+
"2024-10-01-preview". Note that overriding this default value may result in unsupported
34+
behavior.
3535
:paramtype api_version: str
3636
"""
3737

@@ -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", "2024-07-01")
45+
api_version: str = kwargs.pop("api_version", "2024-10-01-preview")
4646

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

0 commit comments

Comments
 (0)