Skip to content

Commit

Permalink
CodeGen from PR 19337 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 020a3a2355c9b2236759529952197398139279b0 into db8926a01019b8473e5fb2bfd82e3d2abc3d52d0
  • Loading branch information
SDKAuto committed Jun 6, 2022
1 parent 328a6f1 commit 245e183
Show file tree
Hide file tree
Showing 33 changed files with 199 additions and 172 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.13.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "805e16a53f0a725471e0caa6007b48986c7722d9",
"commit": "0f0762954a6d2e73c95c7615d387508fcd09499c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/servicefabricmanagedclusters/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/servicefabricmanagedclusters/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ServiceFabricManagedClustersManagementClientConfiguration(Configuration):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The customer subscription identifier.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-02-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-06-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(ServiceFabricManagedClustersManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-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 @@ -67,7 +67,7 @@ class ServiceFabricManagedClustersManagementClient: # pylint: disable=too-man
: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 "2022-02-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-06-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
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 = "2.0.0b1"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ServiceFabricManagedClustersManagementClientConfiguration(Configuration):
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The customer subscription identifier.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-02-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-06-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(ServiceFabricManagedClustersManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-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 @@ -67,7 +67,7 @@ class ServiceFabricManagedClustersManagementClient: # pylint: disable=too-man
: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 "2022-02-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-06-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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down Expand Up @@ -132,7 +132,7 @@ async def _create_or_update_initial(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationTypeVersionResource')
Expand Down Expand Up @@ -216,7 +216,7 @@ async def begin_create_or_update(
~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicefabricmanagedclusters.models.ApplicationTypeVersionResource]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationTypeVersionResource"]
Expand Down Expand Up @@ -297,7 +297,7 @@ async def update(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationTypeVersionUpdateParameters')
Expand Down Expand Up @@ -352,7 +352,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_delete_request_initial(
Expand Down Expand Up @@ -417,7 +417,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
Expand Down Expand Up @@ -483,7 +483,7 @@ def list_by_application_types(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ApplicationTypeVersionResourceList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationTypeVersionResourceList"]
error_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down Expand Up @@ -146,7 +146,7 @@ async def create_or_update(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationTypeResource')
Expand Down Expand Up @@ -219,7 +219,7 @@ async def update(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationTypeUpdateParameters')
Expand Down Expand Up @@ -272,7 +272,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_delete_request_initial(
Expand Down Expand Up @@ -333,7 +333,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
Expand Down Expand Up @@ -395,7 +395,7 @@ def list(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ApplicationTypeResourceList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationTypeResourceList"]
error_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down Expand Up @@ -127,7 +127,7 @@ async def _create_or_update_initial(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationResource')
Expand Down Expand Up @@ -205,7 +205,7 @@ async def begin_create_or_update(
~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicefabricmanagedclusters.models.ApplicationResource]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationResource"]
Expand Down Expand Up @@ -281,7 +281,7 @@ async def update(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ApplicationUpdateParameters')
Expand Down Expand Up @@ -334,7 +334,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_delete_request_initial(
Expand Down Expand Up @@ -395,7 +395,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
Expand Down Expand Up @@ -457,7 +457,7 @@ def list(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ApplicationResourceList]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ApplicationResourceList"]
error_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down Expand Up @@ -138,7 +138,7 @@ async def get_by_environment(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_by_environment_request(
Expand Down Expand Up @@ -198,7 +198,7 @@ async def list(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_list_request(
Expand Down Expand Up @@ -260,7 +260,7 @@ async def list_by_environment(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_list_by_environment_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def list_by_resource_group(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ManagedClusterListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedClusterListResult"]
error_map = {
Expand Down Expand Up @@ -146,7 +146,7 @@ def list_by_subscription(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ManagedClusterListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedClusterListResult"]
error_map = {
Expand Down Expand Up @@ -233,7 +233,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down Expand Up @@ -281,7 +281,7 @@ async def _create_or_update_initial(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ManagedCluster')
Expand Down Expand Up @@ -355,7 +355,7 @@ async def begin_create_or_update(
~azure.core.polling.AsyncLROPoller[~azure.mgmt.servicefabricmanagedclusters.models.ManagedCluster]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedCluster"]
Expand Down Expand Up @@ -428,7 +428,7 @@ async def update(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
content_type = kwargs.pop('content_type', "application/json") # type: Optional[str]

_json = self._serialize.body(parameters, 'ManagedClusterUpdateParameters')
Expand Down Expand Up @@ -479,7 +479,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_delete_request_initial(
Expand Down Expand Up @@ -536,7 +536,7 @@ async def begin_delete( # pylint: disable=inconsistent-return-statements
:rtype: ~azure.core.polling.AsyncLROPoller[None]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType[None]
lro_delay = kwargs.pop(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def list(
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.servicefabricmanagedclusters.models.ManagedVMSizesResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str

cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedVMSizesResult"]
error_map = {
Expand Down Expand Up @@ -154,7 +154,7 @@ async def get(
}
error_map.update(kwargs.pop('error_map', {}))

api_version = kwargs.pop('api_version', "2022-02-01-preview") # type: str
api_version = kwargs.pop('api_version', "2022-06-01-preview") # type: str


request = build_get_request(
Expand Down
Loading

0 comments on commit 245e183

Please sign in to comment.