Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-chaos] [Hub Generated] Review request for Microsoft.Chaos to add version preview/2022-07-01-preview #820

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/chaos/azure-mgmt-chaos/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "e50265479cae5da79144cce18a80751214a4ceca",
"commit": "e4245130ace7275bd7a81595d2c6f51e626ea92d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/chaos/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/chaos/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/chaos/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ class ChaosManagementClient:
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-09-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
Expand Down
4 changes: 2 additions & 2 deletions sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ChaosManagementClientConfiguration(Configuration): # pylint: disable=too-
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: GUID that represents an Azure subscription ID.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-09-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(ChaosManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-09-15-preview") # type: str
api_version = kwargs.pop('api_version', "2022-07-01-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
2 changes: 1 addition & 1 deletion sdk/chaos/azure-mgmt-chaos/azure/mgmt/chaos/_version.py
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 = "1.0.0b4"
VERSION = "1.0.0b5"
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ class ChaosManagementClient:
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-09-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ChaosManagementClientConfiguration(Configuration): # pylint: disable=too-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: GUID that represents an Azure subscription ID.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-09-15-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -41,7 +41,7 @@ def __init__(
**kwargs: Any
) -> None:
super(ChaosManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2021-09-15-preview") # type: str
api_version = kwargs.pop('api_version', "2022-07-01-preview") # type: str

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 @@ -79,7 +79,7 @@ def list(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.CapabilityListResult]

error_map = {
Expand Down Expand Up @@ -193,7 +193,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.Capability]


Expand Down Expand Up @@ -273,7 +273,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[None]


Expand Down Expand Up @@ -352,7 +352,7 @@ async def create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str]
cls = kwargs.pop('cls', None) # type: ClsType[_models.Capability]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def list(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.CapabilityTypeListResult]

error_map = {
Expand Down Expand Up @@ -170,7 +170,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-09-15-preview")) # type: str
api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-07-01-preview")) # type: str
cls = kwargs.pop('cls', None) # type: ClsType[_models.CapabilityType]


Expand Down
Loading