Skip to content

Commit c0329df

Browse files
author
SDKAuto
committed
CodeGen from PR 17271 in Azure/azure-rest-api-specs
Merge e449c7f8b3b173377dd08accac0c625f5c54ef06 into 37b6a98
1 parent 4652858 commit c0329df

File tree

71 files changed

+1955
-29238
lines changed

Some content is hidden

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

71 files changed

+1955
-29238
lines changed

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/python@5.12.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
7+
"commit": "f468d74d59ee23ed644ffa5bfd7ba985477be58c",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
1111
}

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

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

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

1111
from azure.core.configuration import Configuration
1212
from azure.core.pipeline import policies
@@ -16,8 +16,6 @@
1616

1717
if TYPE_CHECKING:
1818
# pylint: disable=unused-import,ungrouped-imports
19-
from typing import Any
20-
2119
from azure.core.credentials import TokenCredential
2220

2321

@@ -35,11 +33,10 @@ class RecoveryServicesBackupClientConfiguration(Configuration):
3533

3634
def __init__(
3735
self,
38-
credential, # type: "TokenCredential"
39-
subscription_id, # type: str
40-
**kwargs # type: Any
41-
):
42-
# type: (...) -> None
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
) -> None:
4340
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
4441
if credential is None:
4542
raise ValueError("Parameter 'credential' must not be None.")

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

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING
1111

12+
from azure.core.rest import HttpRequest, HttpResponse
1213
from azure.mgmt.core import ARMPipelineClient
1314
from msrest import Deserializer, Serializer
1415

@@ -18,10 +19,7 @@
1819

1920
if TYPE_CHECKING:
2021
# pylint: disable=unused-import,ungrouped-imports
21-
from typing import Any, Optional
22-
2322
from azure.core.credentials import TokenCredential
24-
from azure.core.rest import HttpRequest, HttpResponse
2523

2624
class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
2725
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
@@ -185,12 +183,11 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
185183

186184
def __init__(
187185
self,
188-
credential, # type: "TokenCredential"
189-
subscription_id, # type: str
190-
base_url="https://management.azure.com", # type: str
191-
**kwargs # type: Any
192-
):
193-
# type: (...) -> None
186+
credential: "TokenCredential",
187+
subscription_id: str,
188+
base_url: str = "https://management.azure.com",
189+
**kwargs: Any
190+
) -> None:
194191
self._config = RecoveryServicesBackupClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
195192
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
196193

@@ -251,9 +248,8 @@ def __init__(
251248
def _send_request(
252249
self,
253250
request, # type: HttpRequest
254-
**kwargs # type: Any
255-
):
256-
# type: (...) -> HttpResponse
251+
**kwargs: Any
252+
) -> HttpResponse:
257253
"""Runs the network request through the client's chained policies.
258254
259255
>>> from azure.core.rest import HttpRequest

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 = "4.0.0"
9+
VERSION = "1.0.0b1"

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/__init__.py

Lines changed: 289 additions & 578 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)