Skip to content

Commit c729294

Browse files
authored
Generated from 14736179143e9c45f99655ed4066c1ff36c6a98e (#3319)
Remove default response from Sessions to bring them inline with the remaining artifacts
1 parent 944a272 commit c729294

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def list(
5858
:return: An iterator like instance of IntegrationAccountSession
5959
:rtype:
6060
~azure.mgmt.logic.models.IntegrationAccountSessionPaged[~azure.mgmt.logic.models.IntegrationAccountSession]
61-
:raises:
62-
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
61+
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
6362
"""
6463
def internal_paging(next_link=None, raw=False):
6564

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

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

105106
return response
106107

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

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

170172
deserialized = None
171173

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

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

240243
deserialized = None
241244

0 commit comments

Comments
 (0)