Skip to content

Commit 0471dc4

Browse files
azure-sdkChenxiJiang333Copilot
authored
[AutoRelease] t2-mongodbatlas-2025-06-19-69837(can only be merged by SDK owner) (#41657)
* code and test * Update sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/_version.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6a7c9a3 commit 0471dc4

23 files changed

+44
-46
lines changed

sdk/mongodbatlas/azure-mgmt-mongodbatlas/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
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"commit": "d317a8b4c6db37ed4970eda5196f0dd8f7e6cb39",
2+
"apiVersion": "2025-06-01",
3+
"commit": "b56458e7a80d3f92fa834039e6d20a1a1e1fec1b",
34
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
45
"typespec_src": "specification/liftrmongodb/MongoDB.Atlas.Management",
5-
"@azure-tools/typespec-python": "0.44.2"
6+
"emitterVersion": "0.45.1"
67
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ class MongoDBAtlasMgmtClient:
3838
:type subscription_id: str
3939
:param base_url: Service host. Default value is None.
4040
:type base_url: str
41-
:keyword api_version: The API version to use for this operation. Default value is
42-
"2024-11-18-preview". Note that overriding this default value may result in unsupported
43-
behavior.
41+
:keyword api_version: The API version to use for this operation. Default value is "2025-06-01".
42+
Note that overriding this default value may result in unsupported behavior.
4443
:paramtype api_version: str
4544
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4645
Retry-After header is present.

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class MongoDBAtlasMgmtClientConfiguration: # pylint: disable=too-many-instance-
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2024-11-18-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2025-06-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2024-11-18-preview")
44+
api_version: str = kwargs.pop("api_version", "2025-06-01")
4645

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

sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/aio/_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ class MongoDBAtlasMgmtClient:
3838
:type subscription_id: str
3939
:param base_url: Service host. Default value is None.
4040
:type base_url: str
41-
:keyword api_version: The API version to use for this operation. Default value is
42-
"2024-11-18-preview". Note that overriding this default value may result in unsupported
43-
behavior.
41+
:keyword api_version: The API version to use for this operation. Default value is "2025-06-01".
42+
Note that overriding this default value may result in unsupported behavior.
4443
:paramtype api_version: str
4544
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4645
Retry-After header is present.

sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/aio/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class MongoDBAtlasMgmtClientConfiguration: # pylint: disable=too-many-instance-
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2024-11-18-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2025-06-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2024-11-18-preview")
44+
api_version: str = kwargs.pop("api_version", "2025-06-01")
4645

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

sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/aio/operations/_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from collections.abc import MutableMapping
1010
from io import IOBase
1111
import json
12-
from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
12+
from typing import Any, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
1313
import urllib.parse
1414

1515
from azure.core import AsyncPipelineClient
@@ -70,7 +70,7 @@ def __init__(self, *args, **kwargs) -> None:
7070
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
7171

7272
@distributed_trace
73-
def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]:
73+
def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]:
7474
"""List the operations for the provider.
7575
7676
:return: An iterator like instance of Operation
@@ -827,7 +827,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
827827
@distributed_trace
828828
def list_by_resource_group(
829829
self, resource_group_name: str, **kwargs: Any
830-
) -> AsyncIterable["_models.OrganizationResource"]:
830+
) -> AsyncItemPaged["_models.OrganizationResource"]:
831831
"""List OrganizationResource resources by resource group.
832832
833833
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -916,7 +916,7 @@ async def get_next(next_link=None):
916916
return AsyncItemPaged(get_next, extract_data)
917917

918918
@distributed_trace
919-
def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.OrganizationResource"]:
919+
def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.OrganizationResource"]:
920920
"""List OrganizationResource resources by subscription ID.
921921
922922
:return: An iterator like instance of OrganizationResource

sdk/mongodbatlas/azure-mgmt-mongodbatlas/azure/mgmt/mongodbatlas/operations/_operations.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from collections.abc import MutableMapping
1010
from io import IOBase
1111
import json
12-
from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload
12+
from typing import Any, Callable, Dict, IO, Iterator, List, Optional, TypeVar, Union, cast, overload
1313
import urllib.parse
1414

1515
from azure.core import PipelineClient
@@ -49,7 +49,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest:
4949
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
5050
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
5151

52-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
52+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
5353
accept = _headers.pop("Accept", "application/json")
5454

5555
# Construct URL
@@ -70,7 +70,7 @@ def build_organizations_get_request(
7070
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
7171
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
7272

73-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
73+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
7474
accept = _headers.pop("Accept", "application/json")
7575

7676
# Construct URL
@@ -99,7 +99,7 @@ def build_organizations_create_or_update_request( # pylint: disable=name-too-lo
9999
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
100100

101101
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
102-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
102+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
103103
accept = _headers.pop("Accept", "application/json")
104104

105105
# Construct URL
@@ -130,7 +130,7 @@ def build_organizations_update_request(
130130
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
131131

132132
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
133-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
133+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
134134
accept = _headers.pop("Accept", "application/json")
135135

136136
# Construct URL
@@ -160,7 +160,7 @@ def build_organizations_delete_request(
160160
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
161161
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
162162

163-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
163+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
164164
accept = _headers.pop("Accept", "application/json")
165165

166166
# Construct URL
@@ -188,7 +188,7 @@ def build_organizations_list_by_resource_group_request( # pylint: disable=name-
188188
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
189189
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
190190

191-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
191+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
192192
accept = _headers.pop("Accept", "application/json")
193193

194194
# Construct URL
@@ -215,7 +215,7 @@ def build_organizations_list_by_subscription_request( # pylint: disable=name-to
215215
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
216216
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
217217

218-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-11-18-preview"))
218+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01"))
219219
accept = _headers.pop("Accept", "application/json")
220220

221221
# Construct URL
@@ -253,7 +253,7 @@ def __init__(self, *args, **kwargs) -> None:
253253
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
254254

255255
@distributed_trace
256-
def list(self, **kwargs: Any) -> Iterable["_models.Operation"]:
256+
def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]:
257257
"""List the operations for the provider.
258258
259259
:return: An iterator like instance of Operation
@@ -996,7 +996,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
996996
@distributed_trace
997997
def list_by_resource_group(
998998
self, resource_group_name: str, **kwargs: Any
999-
) -> Iterable["_models.OrganizationResource"]:
999+
) -> ItemPaged["_models.OrganizationResource"]:
10001000
"""List OrganizationResource resources by resource group.
10011001
10021002
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -1084,7 +1084,7 @@ def get_next(next_link=None):
10841084
return ItemPaged(get_next, extract_data)
10851085

10861086
@distributed_trace
1087-
def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.OrganizationResource"]:
1087+
def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.OrganizationResource"]:
10881088
"""List OrganizationResource resources by subscription ID.
10891089
10901090
:return: An iterator like instance of OrganizationResource

sdk/mongodbatlas/azure-mgmt-mongodbatlas/generated_samples/operations_list_maximum_set_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def main():
3535
print(item)
3636

3737

38-
# x-ms-original-file: 2024-11-18-preview/Operations_List_MaximumSet_Gen.json
38+
# x-ms-original-file: 2025-06-01/Operations_List_MaximumSet_Gen.json
3939
if __name__ == "__main__":
4040
main()

0 commit comments

Comments
 (0)