Skip to content

Commit b8fecd9

Browse files
authored
code and test (Azure#30500)
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent e4cd39b commit b8fecd9

File tree

354 files changed

+19291
-9197
lines changed

Some content is hidden

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

354 files changed

+19291
-9197
lines changed

sdk/resources/azure-mgmt-resource/CHANGELOG.md

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

3+
## 23.1.0b1 (2023-05-19)
4+
5+
### Features Added
6+
7+
- Added operation group DeploymentStacksOperations
8+
- Model Location has a new parameter availability_zone_mappings
9+
- Model LocationMetadata has a new parameter geography
10+
- Model Operation has a new parameter action_type
11+
- Model Operation has a new parameter is_data_action
12+
- Model Operation has a new parameter origin
13+
- Model OperationAutoGenerated has a new parameter action_type
14+
- Model OperationAutoGenerated has a new parameter is_data_action
15+
- Model OperationAutoGenerated has a new parameter origin
16+
- Model OperationDisplayAutoGenerated has a new parameter description
17+
318
## 23.0.1 (2023-05-17)
419

520
### Other Changes
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "9d8a951af5d78e24d9d83592107f8d3c2cc417f5",
2+
"commit": "c183bb012de8e9e1d0d2e67a0994748df4747d2c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].3",
6+
"@autorest/[email protected].12",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/resources/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/resources/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/resources/resource-manager/readme.md"
1111
}

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "23.0.1"
8+
VERSION = "23.1.0b1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_serialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
631631
if xml_desc.get("attr", False):
632632
if xml_ns:
633633
ET.register_namespace(xml_prefix, xml_ns)
634-
xml_name = "{}{}".format(xml_ns, xml_name)
634+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
635635
serialized.set(xml_name, new_attr) # type: ignore
636636
continue
637637
if xml_desc.get("text", False):
@@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
12731273
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12741274
xml_ns = internal_type_xml_map.get("ns", None)
12751275
if xml_ns:
1276-
xml_name = "{}{}".format(xml_ns, xml_name)
1276+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12771277
return xml_name
12781278

12791279

@@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
12971297
# Integrate namespace if necessary
12981298
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
12991299
if xml_ns:
1300-
xml_name = "{}{}".format(xml_ns, xml_name)
1300+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
13011301

13021302
# If it's an attribute, that's simple
13031303
if xml_desc.get("attr", False):

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "23.0.1"
8+
VERSION = "23.1.0b1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/_configuration.py

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

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -43,7 +37,7 @@ class ChangesClientConfiguration(Configuration): # pylint: disable=too-many-ins
4337

4438
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4539
super(ChangesClientConfiguration, self).__init__(**kwargs)
46-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", "2022-05-01")
40+
api_version: str = kwargs.pop("api_version", "2022-05-01")
4741

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

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/_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 = "23.0.1"
9+
VERSION = "23.1.0b1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/aio/_configuration.py

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

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from .._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials_async import AsyncTokenCredential
@@ -43,7 +37,7 @@ class ChangesClientConfiguration(Configuration): # pylint: disable=too-many-ins
4337

4438
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4539
super(ChangesClientConfiguration, self).__init__(**kwargs)
46-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", "2022-05-01")
40+
api_version: str = kwargs.pop("api_version", "2022-05-01")
4741

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

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/aio/operations/_operations.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
import sys
109
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
1110
import urllib.parse
1211

@@ -31,10 +30,6 @@
3130
from ..._vendor import _convert_request
3231
from ...operations._operations import build_changes_get_request, build_changes_list_request
3332

34-
if sys.version_info >= (3, 8):
35-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
36-
else:
37-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
3833
T = TypeVar("T")
3934
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
4035

@@ -93,7 +88,7 @@ def list(
9388
_headers = kwargs.pop("headers", {}) or {}
9489
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
9590

96-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
91+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
9792
cls: ClsType[_models.ChangeResourceListResult] = kwargs.pop("cls", None)
9893

9994
error_map = {
@@ -208,7 +203,7 @@ async def get(
208203
_headers = kwargs.pop("headers", {}) or {}
209204
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
210205

211-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
206+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
212207
cls: ClsType[_models.ChangeResourceResult] = kwargs.pop("cls", None)
213208

214209
request = build_changes_get_request(

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/operations/_operations.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
import sys
109
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
1110
import urllib.parse
1211

@@ -30,10 +29,6 @@
3029
from ..._serialization import Serializer
3130
from .._vendor import _convert_request, _format_url_section
3231

33-
if sys.version_info >= (3, 8):
34-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
35-
else:
36-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
3732
T = TypeVar("T")
3833
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
3934

@@ -55,7 +50,7 @@ def build_changes_list_request(
5550
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
5651
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
5752

58-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
53+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
5954
accept = _headers.pop("Accept", "application/json")
6055

6156
# Construct URL
@@ -98,7 +93,7 @@ def build_changes_get_request(
9893
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
9994
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
10095

101-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
96+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
10297
accept = _headers.pop("Accept", "application/json")
10398

10499
# Construct URL
@@ -180,7 +175,7 @@ def list(
180175
_headers = kwargs.pop("headers", {}) or {}
181176
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
182177

183-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
178+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
184179
cls: ClsType[_models.ChangeResourceListResult] = kwargs.pop("cls", None)
185180

186181
error_map = {
@@ -295,7 +290,7 @@ def get(
295290
_headers = kwargs.pop("headers", {}) or {}
296291
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
297292

298-
api_version: Literal["2022-05-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
293+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01"))
299294
cls: ClsType[_models.ChangeResourceResult] = kwargs.pop("cls", None)
300295

301296
request = build_changes_get_request(

0 commit comments

Comments
 (0)