Skip to content

Commit

Permalink
CodeGen from PR 21588 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4d24564a74d2d9746fb5539400667d1d1d328736 into 5dedb96183ff83552172039606e67eccf0b7ee20
  • Loading branch information
SDKAuto committed Dec 5, 2022
1 parent 5304858 commit a2879e2
Show file tree
Hide file tree
Showing 46 changed files with 624 additions and 653 deletions.
6 changes: 3 additions & 3 deletions sdk/resourcehealth/azure-mgmt-resourcehealth/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "5ad969c742647212adb951f9e96858a5b2a761f9",
"commit": "d50d5d6cc0486e13065c34d5d9a51a4c6d1bac99",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.1",
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/resourcehealth/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.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/resourcehealth/resource-manager/readme.md --generate-sample=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.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/resourcehealth/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
**kwargs # type: Any
**kwargs: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
Expand All @@ -53,9 +52,8 @@ def __init__(

def _configure(
self,
**kwargs # type: Any
**kwargs: Any
):
# type: (...) -> None
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
api_version=None, # type: Optional[str]
api_version: Optional[str]=None,
base_url: str = "https://management.azure.com",
profile=KnownProfiles.default, # type: KnownProfiles
**kwargs # type: Any
profile: KnownProfiles=KnownProfiles.default,
**kwargs: Any
):
self._config = MicrosoftResourceHealthConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
Expand Down
Loading

0 comments on commit a2879e2

Please sign in to comment.