Skip to content

Commit 4d39ad0

Browse files
authored
Configurations: 'specification/mongocluster/resource-manager/Microsoft.DocumentDB/MongoCluster/tspconfig.yaml', API Version: 2025-08-01-preview, SDK Release Type: beta, and CommitSHA: '0b778f1cf2309de4b59bef1c532fc341c9af9925' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5395876 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#43172)
1 parent 9cfc1aa commit 4d39ad0

File tree

66 files changed

+583
-403
lines changed

Some content is hidden

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

66 files changed

+583
-403
lines changed

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

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

3+
## 1.1.0b2 (2025-09-29)
4+
5+
### Features Added
6+
7+
- Model `MongoClusterMgmtClient` added parameter `cloud_setting` in method `__init__`
8+
- Model `MongoClusterUpdateProperties` added property `encryption`
9+
10+
### Breaking Changes
11+
12+
- Model `StorageProperties` deleted or renamed its instance variable `iops`
13+
- Model `StorageProperties` deleted or renamed its instance variable `throughput`
14+
315
## 1.1.0b1 (2025-07-23)
416

517
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
recursive-include tests *.py *.json
2-
recursive-include samples *.py *.md
31
include *.md
4-
include azure/__init__.py
5-
include azure/mgmt/__init__.py
62
include LICENSE
73
include azure/mgmt/mongocluster/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"apiVersion": "2025-07-01-preview",
3-
"commit": "e6d42354fa0c04d56c2e5e5c061453e76ba788cb",
2+
"apiVersion": "2025-08-01-preview",
3+
"commit": "0b778f1cf2309de4b59bef1c532fc341c9af9925",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
5-
"typespec_src": "specification/mongocluster/DocumentDB.MongoCluster.Management",
6-
"emitterVersion": "0.47.0"
5+
"typespec_src": "specification/mongocluster/resource-manager/Microsoft.DocumentDB/MongoCluster",
6+
"emitterVersion": "0.51.2"
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
)
3131

3232
if TYPE_CHECKING:
33+
from azure.core import AzureClouds
3334
from azure.core.credentials import TokenCredential
3435

3536

@@ -58,19 +59,28 @@ class MongoClusterMgmtClient: # pylint: disable=too-many-instance-attributes
5859
:type subscription_id: str
5960
:param base_url: Service host. Default value is None.
6061
:type base_url: str
62+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
63+
None.
64+
:paramtype cloud_setting: ~azure.core.AzureClouds
6165
:keyword api_version: The API version to use for this operation. Default value is
62-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
66+
"2025-08-01-preview". Note that overriding this default value may result in unsupported
6367
behavior.
6468
:paramtype api_version: str
6569
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6670
Retry-After header is present.
6771
"""
6872

6973
def __init__(
70-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
74+
self,
75+
credential: "TokenCredential",
76+
subscription_id: str,
77+
base_url: Optional[str] = None,
78+
*,
79+
cloud_setting: Optional["AzureClouds"] = None,
80+
**kwargs: Any
7181
) -> None:
7282
_endpoint = "{endpoint}"
73-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
83+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
7484
_endpoints = get_arm_endpoints(_cloud)
7585
if not base_url:
7686
base_url = _endpoints["resource_manager"]
@@ -79,6 +89,7 @@ def __init__(
7989
credential=credential,
8090
subscription_id=subscription_id,
8191
base_url=cast(str, base_url),
92+
cloud_setting=cloud_setting,
8293
credential_scopes=credential_scopes,
8394
**kwargs
8495
)

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -29,8 +30,11 @@ class MongoClusterMgmtClientConfiguration: # pylint: disable=too-many-instance-
2930
:type subscription_id: str
3031
:param base_url: Service host. Default value is "https://management.azure.com".
3132
:type base_url: str
33+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
34+
None.
35+
:type cloud_setting: ~azure.core.AzureClouds
3236
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
37+
"2025-08-01-preview". Note that overriding this default value may result in unsupported
3438
behavior.
3539
:paramtype api_version: str
3640
"""
@@ -40,9 +44,10 @@ def __init__(
4044
credential: "TokenCredential",
4145
subscription_id: str,
4246
base_url: str = "https://management.azure.com",
47+
cloud_setting: Optional["AzureClouds"] = None,
4348
**kwargs: Any
4449
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
50+
api_version: str = kwargs.pop("api_version", "2025-08-01-preview")
4651

4752
if credential is None:
4853
raise ValueError("Parameter 'credential' must not be None.")
@@ -52,6 +57,7 @@ def __init__(
5257
self.credential = credential
5358
self.subscription_id = subscription_id
5459
self.base_url = base_url
60+
self.cloud_setting = cloud_setting
5561
self.api_version = api_version
5662
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5763
kwargs.setdefault("sdk_moniker", "mgmt-mongocluster/{}".format(VERSION))

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1313

1414

1515
def patch_sdk():

0 commit comments

Comments
 (0)