Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def list(
:return: An iterator like instance of IntegrationAccountSession
:rtype:
~azure.mgmt.logic.models.IntegrationAccountSessionPaged[~azure.mgmt.logic.models.IntegrationAccountSession]
:raises:
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down Expand Up @@ -100,7 +99,9 @@ def internal_paging(next_link=None, raw=False):
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp

return response

Expand Down Expand Up @@ -133,8 +134,7 @@ def get(
:return: IntegrationAccountSession or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = self.get.metadata['url']
Expand Down Expand Up @@ -165,7 +165,9 @@ def get(
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp

deserialized = None

Expand Down Expand Up @@ -199,8 +201,7 @@ def create_or_update(
:return: IntegrationAccountSession or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = self.create_or_update.metadata['url']
Expand Down Expand Up @@ -235,7 +236,9 @@ def create_or_update(
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200, 201]:
raise models.ErrorResponseException(self._deserialize, response)
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp

deserialized = None

Expand Down