@@ -64,7 +64,7 @@ def list_by_subscription(
6464 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
6565 }
6666 error_map .update (kwargs .pop ('error_map' , {}))
67- api_version = "2019-11 -01"
67+ api_version = "2020-09 -01"
6868 accept = "application/json"
6969
7070 def prepare_request (next_link = None ):
@@ -106,7 +106,7 @@ async def get_next(next_link=None):
106106 response = pipeline_response .http_response
107107
108108 if response .status_code not in [200 ]:
109- error = self ._deserialize (_models .DataShareError , response )
109+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
110110 map_error (status_code = response .status_code , response = response , error_map = error_map )
111111 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
112112
@@ -141,7 +141,7 @@ async def get(
141141 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
142142 }
143143 error_map .update (kwargs .pop ('error_map' , {}))
144- api_version = "2019-11 -01"
144+ api_version = "2020-09 -01"
145145 accept = "application/json"
146146
147147 # Construct URL
@@ -167,7 +167,7 @@ async def get(
167167
168168 if response .status_code not in [200 ]:
169169 map_error (status_code = response .status_code , response = response , error_map = error_map )
170- error = self ._deserialize (_models .DataShareError , response )
170+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
171171 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
172172
173173 deserialized = self ._deserialize ('Account' , pipeline_response )
@@ -190,7 +190,7 @@ async def _create_initial(
190190 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
191191 }
192192 error_map .update (kwargs .pop ('error_map' , {}))
193- api_version = "2019-11 -01"
193+ api_version = "2020-09 -01"
194194 content_type = kwargs .pop ("content_type" , "application/json" )
195195 accept = "application/json"
196196
@@ -221,7 +221,7 @@ async def _create_initial(
221221
222222 if response .status_code not in [200 , 201 ]:
223223 map_error (status_code = response .status_code , response = response , error_map = error_map )
224- error = self ._deserialize (_models .DataShareError , response )
224+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
225225 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
226226
227227 if response .status_code == 200 :
@@ -255,8 +255,8 @@ async def begin_create(
255255 :type account: ~azure.mgmt.datashare.models.Account
256256 :keyword callable cls: A custom type or function that will be passed the direct response
257257 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
258- :keyword polling: True for ARMPolling, False for no polling, or a
259- polling object for personal polling strategy
258+ :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
259+ False for no polling, or your own initialized polling object for a personal polling strategy.
260260 :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
261261 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
262262 :return: An instance of AsyncLROPoller that returns either Account or the result of cls(response)
@@ -320,7 +320,7 @@ async def _delete_initial(
320320 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
321321 }
322322 error_map .update (kwargs .pop ('error_map' , {}))
323- api_version = "2019-11 -01"
323+ api_version = "2020-09 -01"
324324 accept = "application/json"
325325
326326 # Construct URL
@@ -346,7 +346,7 @@ async def _delete_initial(
346346
347347 if response .status_code not in [200 , 202 , 204 ]:
348348 map_error (status_code = response .status_code , response = response , error_map = error_map )
349- error = self ._deserialize (_models .DataShareError , response )
349+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
350350 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
351351
352352 deserialized = None
@@ -375,8 +375,8 @@ async def begin_delete(
375375 :type account_name: str
376376 :keyword callable cls: A custom type or function that will be passed the direct response
377377 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
378- :keyword polling: True for ARMPolling, False for no polling, or a
379- polling object for personal polling strategy
378+ :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
379+ False for no polling, or your own initialized polling object for a personal polling strategy.
380380 :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
381381 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
382382 :return: An instance of AsyncLROPoller that returns either OperationResponse or the result of cls(response)
@@ -455,7 +455,7 @@ async def update(
455455 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
456456 }
457457 error_map .update (kwargs .pop ('error_map' , {}))
458- api_version = "2019-11 -01"
458+ api_version = "2020-09 -01"
459459 content_type = kwargs .pop ("content_type" , "application/json" )
460460 accept = "application/json"
461461
@@ -486,7 +486,7 @@ async def update(
486486
487487 if response .status_code not in [200 ]:
488488 map_error (status_code = response .status_code , response = response , error_map = error_map )
489- error = self ._deserialize (_models .DataShareError , response )
489+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
490490 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
491491
492492 deserialized = self ._deserialize ('Account' , pipeline_response )
@@ -521,7 +521,7 @@ def list_by_resource_group(
521521 401 : ClientAuthenticationError , 404 : ResourceNotFoundError , 409 : ResourceExistsError
522522 }
523523 error_map .update (kwargs .pop ('error_map' , {}))
524- api_version = "2019-11 -01"
524+ api_version = "2020-09 -01"
525525 accept = "application/json"
526526
527527 def prepare_request (next_link = None ):
@@ -564,7 +564,7 @@ async def get_next(next_link=None):
564564 response = pipeline_response .http_response
565565
566566 if response .status_code not in [200 ]:
567- error = self ._deserialize (_models .DataShareError , response )
567+ error = self ._deserialize . failsafe_deserialize (_models .DataShareError , response )
568568 map_error (status_code = response .status_code , response = response , error_map = error_map )
569569 raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
570570
0 commit comments