Skip to content

Commit

Permalink
upgrade SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwzho committed Dec 13, 2021
1 parent 955f9c6 commit 46991af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ async def _set_active_deployments_initial(
app_name: str,
active_deployment_collection: "_models.ActiveDeploymentCollection",
**kwargs: Any
) -> "_models.ActiveDeploymentCollection":
cls = kwargs.pop('cls', None) # type: ClsType["_models.ActiveDeploymentCollection"]
) -> "_models.AppResource":
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -688,10 +688,10 @@ async def _set_active_deployments_initial(
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

if response.status_code == 200:
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if response.status_code == 202:
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})
Expand All @@ -706,7 +706,7 @@ async def begin_set_active_deployments(
app_name: str,
active_deployment_collection: "_models.ActiveDeploymentCollection",
**kwargs: Any
) -> AsyncLROPoller["_models.ActiveDeploymentCollection"]:
) -> AsyncLROPoller["_models.AppResource"]:
"""Set existing Deployment under the app as active.
:param resource_group_name: The name of the resource group that contains the resource. You can
Expand All @@ -724,12 +724,12 @@ async def begin_set_active_deployments(
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either ActiveDeploymentCollection or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection]
:return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response)
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ActiveDeploymentCollection"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
Expand All @@ -749,7 +749,7 @@ async def begin_set_active_deployments(
kwargs.pop('content_type', None)

def get_long_running_output(pipeline_response):
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ def _set_active_deployments_initial(
active_deployment_collection, # type: "_models.ActiveDeploymentCollection"
**kwargs # type: Any
):
# type: (...) -> "_models.ActiveDeploymentCollection"
cls = kwargs.pop('cls', None) # type: ClsType["_models.ActiveDeploymentCollection"]
# type: (...) -> "_models.AppResource"
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
Expand Down Expand Up @@ -702,10 +702,10 @@ def _set_active_deployments_initial(
raise HttpResponseError(response=response, error_format=ARMErrorFormat)

if response.status_code == 200:
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if response.status_code == 202:
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})
Expand All @@ -721,7 +721,7 @@ def begin_set_active_deployments(
active_deployment_collection, # type: "_models.ActiveDeploymentCollection"
**kwargs # type: Any
):
# type: (...) -> LROPoller["_models.ActiveDeploymentCollection"]
# type: (...) -> LROPoller["_models.AppResource"]
"""Set existing Deployment under the app as active.
:param resource_group_name: The name of the resource group that contains the resource. You can
Expand All @@ -739,12 +739,12 @@ def begin_set_active_deployments(
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.PollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of LROPoller that returns either ActiveDeploymentCollection or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection]
:return: An instance of LROPoller that returns either AppResource or the result of cls(response)
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod]
cls = kwargs.pop('cls', None) # type: ClsType["_models.ActiveDeploymentCollection"]
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
lro_delay = kwargs.pop(
'polling_interval',
self._config.polling_interval
Expand All @@ -764,7 +764,7 @@ def begin_set_active_deployments(
kwargs.pop('content_type', None)

def get_long_running_output(pipeline_response):
deserialized = self._deserialize('ActiveDeploymentCollection', pipeline_response)
deserialized = self._deserialize('AppResource', pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})
Expand Down

0 comments on commit 46991af

Please sign in to comment.