Skip to content

Commit 708f13c

Browse files
authored
code and test (Azure#30222)
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent ee85ddd commit 708f13c

File tree

139 files changed

+367
-1360
lines changed

Some content is hidden

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

139 files changed

+367
-1360
lines changed

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md

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

3+
## 6.0.0 (2023-05-04)
4+
5+
### Features Added
6+
7+
- Model PrivateEndpointConnection has a new parameter group_ids
8+
- Model PrivateLinkServiceConnectionState has a new parameter actions_required
9+
10+
### Breaking Changes
11+
12+
- Model PrivateLinkServiceConnectionState no longer has parameter action_required
13+
314
## 5.2.0 (2023-03-20)
415

516
### Features Added

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ client = RecoveryServicesBackupClient(credential=DefaultAzureCredential(), subsc
4545

4646
## Examples
4747

48-
49-
Code samples for this package can be found at [Recovery Services Backup Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com and [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
48+
Code samples for this package can be found at:
49+
- [Search Recovery Services Backup Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
5051

5152

5253
## Troubleshooting
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "644e559292ea3314c1636285f138b8696536b006",
2+
"commit": "817e7cea0b7e3194868825cbef6d4e62a7895951",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.3",
6+
"@autorest/python@6.4.8",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/recoveryservicesbackup/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/python@6.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/recoveryservicesbackup/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/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
1111
}

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_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 = "5.2.0"
9+
VERSION = "6.0.0"

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_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
@@ -42,7 +36,7 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab
4236

4337
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2023-02-01"] = kwargs.pop("api_version", "2023-02-01")
39+
api_version: str = kwargs.pop("api_version", "2023-02-01")
4640

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

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_serialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
629629
if xml_desc.get("attr", False):
630630
if xml_ns:
631631
ET.register_namespace(xml_prefix, xml_ns)
632-
xml_name = "{}{}".format(xml_ns, xml_name)
632+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
633633
serialized.set(xml_name, new_attr) # type: ignore
634634
continue
635635
if xml_desc.get("text", False):
@@ -1271,7 +1271,7 @@ def _extract_name_from_internal_type(internal_type):
12711271
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12721272
xml_ns = internal_type_xml_map.get("ns", None)
12731273
if xml_ns:
1274-
xml_name = "{}{}".format(xml_ns, xml_name)
1274+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12751275
return xml_name
12761276

12771277

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

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

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_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 = "5.2.0"
9+
VERSION = "6.0.0"

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/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
@@ -42,7 +36,7 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab
4236

4337
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2023-02-01"] = kwargs.pop("api_version", "2023-02-01")
39+
api_version: str = kwargs.pop("api_version", "2023-02-01")
4640

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

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_engines_operations.py

Lines changed: 2 additions & 11 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

@@ -32,10 +31,6 @@
3231
from ...operations._backup_engines_operations import build_get_request, build_list_request
3332
from .._vendor import RecoveryServicesBackupClientMixinABC
3433

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

@@ -90,9 +85,7 @@ def list(
9085
_headers = kwargs.pop("headers", {}) or {}
9186
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
9287

93-
api_version: Literal["2023-02-01"] = kwargs.pop(
94-
"api_version", _params.pop("api-version", self._config.api_version)
95-
)
88+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
9689
cls: ClsType[_models.BackupEngineBaseResourceList] = kwargs.pop("cls", None)
9790

9891
error_map = {
@@ -205,9 +198,7 @@ async def get(
205198
_headers = kwargs.pop("headers", {}) or {}
206199
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
207200

208-
api_version: Literal["2023-02-01"] = kwargs.pop(
209-
"api_version", _params.pop("api-version", self._config.api_version)
210-
)
201+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
211202
cls: ClsType[_models.BackupEngineBaseResource] = kwargs.pop("cls", None)
212203

213204
request = build_get_request(

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_jobs_operations.py

Lines changed: 1 addition & 8 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 ...operations._backup_jobs_operations import build_list_request
3231
from .._vendor import RecoveryServicesBackupClientMixinABC
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

@@ -87,9 +82,7 @@ def list(
8782
_headers = kwargs.pop("headers", {}) or {}
8883
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
8984

90-
api_version: Literal["2023-02-01"] = kwargs.pop(
91-
"api_version", _params.pop("api-version", self._config.api_version)
92-
)
85+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
9386
cls: ClsType[_models.JobResourceList] = kwargs.pop("cls", None)
9487

9588
error_map = {

0 commit comments

Comments
 (0)