Skip to content

Commit 373dd37

Browse files
author
SDKAuto
committed
CodeGen from PR 30445 in Azure/azure-rest-api-specs
Merge 3b1f79bf104134a257add1e8845f131cbde99957 into b0fc2a2389b4563d46b6a54b959b8e93d658d7de
1 parent ba7691f commit 373dd37

37 files changed

+3295
-345
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2776cb32cd6ca9ea953a13ae26c954b989e83367",
2+
"commit": "9e7fe544f10bb74b0f14da2c7f1e33414e9726e1",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/extendedlocation/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2021-08-15 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/extendedlocation/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/extendedlocation/resource-manager/readme.md"
1111
}

sdk/extendedlocation/azure-mgmt-extendedlocation/azure/mgmt/extendedlocation/__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) AutoRest 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 ._custom_locations import CustomLocations
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._custom_locations import CustomLocations # 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
"CustomLocations",
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/extendedlocation/azure-mgmt-extendedlocation/azure/mgmt/extendedlocation/_configuration.py

Lines changed: 4 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 CustomLocationsConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class CustomLocationsConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for CustomLocations.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class CustomLocationsConfiguration: # pylint: disable=too-many-instance-attribu
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2021-08-15". Note that overriding this
32-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2024-09-15-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2021-08-15")
36+
api_version: str = kwargs.pop("api_version", "2024-09-15-preview")
3837

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

sdk/extendedlocation/azure-mgmt-extendedlocation/azure/mgmt/extendedlocation/_custom_locations.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,28 @@
1818
from . import models as _models
1919
from ._configuration import CustomLocationsConfiguration
2020
from ._serialization import Deserializer, Serializer
21-
from .operations import CustomLocationsOperations
21+
from .operations import CustomLocationsOperations, ResourceSyncRulesOperations
2222

2323
if TYPE_CHECKING:
24-
# pylint: disable=unused-import,ungrouped-imports
2524
from azure.core.credentials import TokenCredential
2625

2726

28-
class CustomLocations: # pylint: disable=client-accepts-api-version-keyword
27+
class CustomLocations:
2928
"""The customLocations Rest API spec.
3029
3130
:ivar custom_locations: CustomLocationsOperations operations
3231
:vartype custom_locations: azure.mgmt.extendedlocation.operations.CustomLocationsOperations
32+
:ivar resource_sync_rules: ResourceSyncRulesOperations operations
33+
:vartype resource_sync_rules:
34+
azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations
3335
:param credential: Credential needed for the client to connect to Azure. Required.
3436
:type credential: ~azure.core.credentials.TokenCredential
3537
:param subscription_id: The ID of the target subscription. Required.
3638
:type subscription_id: str
3739
:param base_url: Service URL. Default value is "https://management.azure.com".
3840
:type base_url: str
39-
:keyword api_version: Api Version. Default value is "2021-08-15". Note that overriding this
40-
default value may result in unsupported behavior.
41+
:keyword api_version: Api Version. Default value is "2024-09-15-preview". Note that overriding
42+
this default value may result in unsupported behavior.
4143
:paramtype api_version: str
4244
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4345
Retry-After header is present.
@@ -78,6 +80,9 @@ def __init__(
7880
self.custom_locations = CustomLocationsOperations(
7981
self._client, self._config, self._serialize, self._deserialize
8082
)
83+
self.resource_sync_rules = ResourceSyncRulesOperations(
84+
self._client, self._config, self._serialize, self._deserialize
85+
)
8186

8287
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
8388
"""Runs the network request through the client's chained policies.

0 commit comments

Comments
 (0)