Skip to content

Commit

Permalink
CodeGen from PR 17271 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e449c7f8b3b173377dd08accac0c625f5c54ef06 into 37b6a98
  • Loading branch information
SDKAuto committed Jan 18, 2022
1 parent 4652858 commit c0329df
Show file tree
Hide file tree
Showing 71 changed files with 1,955 additions and 29,238 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
"commit": "f468d74d59ee23ed644ffa5bfd7ba985477be58c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"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/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
Expand All @@ -16,8 +16,6 @@

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential


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

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs)
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

Expand All @@ -18,10 +19,7 @@

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.rest import HttpRequest, HttpResponse

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

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
base_url="https://management.azure.com", # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = RecoveryServicesBackupClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

Expand Down Expand Up @@ -251,9 +248,8 @@ def __init__(
def _send_request(
self,
request, # type: HttpRequest
**kwargs # type: Any
):
# type: (...) -> HttpResponse
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
>>> from azure.core.rest import HttpRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "4.0.0"
VERSION = "1.0.0b1"

Large diffs are not rendered by default.

Loading

0 comments on commit c0329df

Please sign in to comment.