@@ -150,7 +150,7 @@ async def get_next(next_link=None):
150
150
151
151
if response .status_code not in [200 ]:
152
152
map_error (status_code = response .status_code , response = response , error_map = error_map )
153
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
153
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
154
154
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
155
155
156
156
return pipeline_response
@@ -230,7 +230,7 @@ async def get(
230
230
except (StreamConsumedError , StreamClosedError ):
231
231
pass
232
232
map_error (status_code = response .status_code , response = response , error_map = error_map )
233
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
233
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
234
234
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
235
235
236
236
if _stream :
@@ -299,7 +299,7 @@ async def _create_or_update_initial(
299
299
except (StreamConsumedError , StreamClosedError ):
300
300
pass
301
301
map_error (status_code = response .status_code , response = response , error_map = error_map )
302
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
302
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
303
303
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
304
304
305
305
response_headers = {}
@@ -485,7 +485,7 @@ async def update(
485
485
content_type : str = "application/json" ,
486
486
** kwargs : Any
487
487
) -> _models .PlaywrightWorkspace :
488
- """Update a PlaywrightWorkspace .
488
+ """Updates a Playwright workspace resource synchronously .
489
489
490
490
:param resource_group_name: The name of the resource group. The name is case insensitive.
491
491
Required.
@@ -512,7 +512,7 @@ async def update(
512
512
content_type : str = "application/json" ,
513
513
** kwargs : Any
514
514
) -> _models .PlaywrightWorkspace :
515
- """Update a PlaywrightWorkspace .
515
+ """Updates a Playwright workspace resource synchronously .
516
516
517
517
:param resource_group_name: The name of the resource group. The name is case insensitive.
518
518
Required.
@@ -539,7 +539,7 @@ async def update(
539
539
content_type : str = "application/json" ,
540
540
** kwargs : Any
541
541
) -> _models .PlaywrightWorkspace :
542
- """Update a PlaywrightWorkspace .
542
+ """Updates a Playwright workspace resource synchronously .
543
543
544
544
:param resource_group_name: The name of the resource group. The name is case insensitive.
545
545
Required.
@@ -564,7 +564,7 @@ async def update(
564
564
properties : Union [_models .PlaywrightWorkspaceUpdate , JSON , IO [bytes ]],
565
565
** kwargs : Any
566
566
) -> _models .PlaywrightWorkspace :
567
- """Update a PlaywrightWorkspace .
567
+ """Updates a Playwright workspace resource synchronously .
568
568
569
569
:param resource_group_name: The name of the resource group. The name is case insensitive.
570
570
Required.
@@ -628,7 +628,7 @@ async def update(
628
628
except (StreamConsumedError , StreamClosedError ):
629
629
pass
630
630
map_error (status_code = response .status_code , response = response , error_map = error_map )
631
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
631
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
632
632
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
633
633
634
634
if _stream :
@@ -683,7 +683,7 @@ async def _delete_initial(
683
683
except (StreamConsumedError , StreamClosedError ):
684
684
pass
685
685
map_error (status_code = response .status_code , response = response , error_map = error_map )
686
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
686
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
687
687
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
688
688
689
689
response_headers = {}
@@ -702,7 +702,7 @@ async def _delete_initial(
702
702
async def begin_delete (
703
703
self , resource_group_name : str , playwright_workspace_name : str , ** kwargs : Any
704
704
) -> AsyncLROPoller [None ]:
705
- """Delete a PlaywrightWorkspace .
705
+ """Deletes a Playwright workspace resource asynchronously .
706
706
707
707
:param resource_group_name: The name of the resource group. The name is case insensitive.
708
708
Required.
@@ -841,7 +841,7 @@ async def get_next(next_link=None):
841
841
842
842
if response .status_code not in [200 ]:
843
843
map_error (status_code = response .status_code , response = response , error_map = error_map )
844
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
844
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
845
845
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
846
846
847
847
return pipeline_response
@@ -926,7 +926,7 @@ async def get_next(next_link=None):
926
926
927
927
if response .status_code not in [200 ]:
928
928
map_error (status_code = response .status_code , response = response , error_map = error_map )
929
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
929
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
930
930
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
931
931
932
932
return pipeline_response
@@ -937,7 +937,7 @@ async def get_next(next_link=None):
937
937
async def check_name_availability (
938
938
self , body : _models .CheckNameAvailabilityRequest , * , content_type : str = "application/json" , ** kwargs : Any
939
939
) -> _models .CheckNameAvailabilityResponse :
940
- """Implements global CheckNameAvailability operations .
940
+ """Checks if a Playwright workspace name is available globally .
941
941
942
942
:param body: The CheckAvailability request. Required.
943
943
:type body: ~azure.mgmt.playwright.models.CheckNameAvailabilityRequest
@@ -954,7 +954,7 @@ async def check_name_availability(
954
954
async def check_name_availability (
955
955
self , body : JSON , * , content_type : str = "application/json" , ** kwargs : Any
956
956
) -> _models .CheckNameAvailabilityResponse :
957
- """Implements global CheckNameAvailability operations .
957
+ """Checks if a Playwright workspace name is available globally .
958
958
959
959
:param body: The CheckAvailability request. Required.
960
960
:type body: JSON
@@ -971,7 +971,7 @@ async def check_name_availability(
971
971
async def check_name_availability (
972
972
self , body : IO [bytes ], * , content_type : str = "application/json" , ** kwargs : Any
973
973
) -> _models .CheckNameAvailabilityResponse :
974
- """Implements global CheckNameAvailability operations .
974
+ """Checks if a Playwright workspace name is available globally .
975
975
976
976
:param body: The CheckAvailability request. Required.
977
977
:type body: IO[bytes]
@@ -988,7 +988,7 @@ async def check_name_availability(
988
988
async def check_name_availability (
989
989
self , body : Union [_models .CheckNameAvailabilityRequest , JSON , IO [bytes ]], ** kwargs : Any
990
990
) -> _models .CheckNameAvailabilityResponse :
991
- """Implements global CheckNameAvailability operations .
991
+ """Checks if a Playwright workspace name is available globally .
992
992
993
993
:param body: The CheckAvailability request. Is one of the following types:
994
994
CheckNameAvailabilityRequest, JSON, IO[bytes] Required.
@@ -1046,7 +1046,7 @@ async def check_name_availability(
1046
1046
except (StreamConsumedError , StreamClosedError ):
1047
1047
pass
1048
1048
map_error (status_code = response .status_code , response = response , error_map = error_map )
1049
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
1049
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
1050
1050
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
1051
1051
1052
1052
if _stream :
@@ -1081,7 +1081,7 @@ def __init__(self, *args, **kwargs) -> None:
1081
1081
async def get (
1082
1082
self , location : str , playwright_quota_name : Union [str , _models .QuotaName ], ** kwargs : Any
1083
1083
) -> _models .PlaywrightQuota :
1084
- """Get subscription-level location-based Playwright quota resource by name.
1084
+ """Gets a subscription-level location-based Playwright quota resource by name.
1085
1085
1086
1086
:param location: The name of the Azure region. Required.
1087
1087
:type location: str
@@ -1131,7 +1131,7 @@ async def get(
1131
1131
except (StreamConsumedError , StreamClosedError ):
1132
1132
pass
1133
1133
map_error (status_code = response .status_code , response = response , error_map = error_map )
1134
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
1134
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
1135
1135
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
1136
1136
1137
1137
if _stream :
@@ -1146,7 +1146,7 @@ async def get(
1146
1146
1147
1147
@distributed_trace
1148
1148
def list_by_subscription (self , location : str , ** kwargs : Any ) -> AsyncItemPaged ["_models.PlaywrightQuota" ]:
1149
- """List Playwright quota resources for a given subscription Id .
1149
+ """Lists Playwright quota resources for a given subscription ID .
1150
1150
1151
1151
:param location: The name of the Azure region. Required.
1152
1152
:type location: str
@@ -1224,7 +1224,7 @@ async def get_next(next_link=None):
1224
1224
1225
1225
if response .status_code not in [200 ]:
1226
1226
map_error (status_code = response .status_code , response = response , error_map = error_map )
1227
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
1227
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
1228
1228
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
1229
1229
1230
1230
return pipeline_response
@@ -1257,7 +1257,7 @@ async def get(
1257
1257
quota_name : Union [str , _models .QuotaName ],
1258
1258
** kwargs : Any
1259
1259
) -> _models .PlaywrightWorkspaceQuota :
1260
- """Get Playwright workspace quota resource by name.
1260
+ """Gets a Playwright workspace quota resource by name.
1261
1261
1262
1262
:param resource_group_name: The name of the resource group. The name is case insensitive.
1263
1263
Required.
@@ -1312,7 +1312,7 @@ async def get(
1312
1312
except (StreamConsumedError , StreamClosedError ):
1313
1313
pass
1314
1314
map_error (status_code = response .status_code , response = response , error_map = error_map )
1315
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
1315
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
1316
1316
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
1317
1317
1318
1318
if _stream :
@@ -1329,7 +1329,7 @@ async def get(
1329
1329
def list_by_playwright_workspace (
1330
1330
self , resource_group_name : str , playwright_workspace_name : str , ** kwargs : Any
1331
1331
) -> AsyncItemPaged ["_models.PlaywrightWorkspaceQuota" ]:
1332
- """List quota resources for a given Playwright workspace resource .
1332
+ """Lists quota resources for a given Playwright workspace.
1333
1333
1334
1334
:param resource_group_name: The name of the resource group. The name is case insensitive.
1335
1335
Required.
@@ -1412,7 +1412,7 @@ async def get_next(next_link=None):
1412
1412
1413
1413
if response .status_code not in [200 ]:
1414
1414
map_error (status_code = response .status_code , response = response , error_map = error_map )
1415
- error = _failsafe_deserialize (_models .ErrorResponse , response . json () )
1415
+ error = _failsafe_deserialize (_models .ErrorResponse , response )
1416
1416
raise HttpResponseError (response = response , model = error , error_format = ARMErrorFormat )
1417
1417
1418
1418
return pipeline_response
0 commit comments