Skip to content

Commit 5d78f06

Browse files
[AutoRelease] t2-playwright-2025-08-14-63504(can only be merged by SDK owner) (Azure#42511)
* code and test * update changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent ef3c233 commit 5d78f06

26 files changed

+181
-174
lines changed

sdk/playwright/azure-mgmt-playwright/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2025-08-21)
4+
5+
### Features Added
6+
7+
- Model `PlaywrightWorkspaceProperties` added property `workspace_id`
8+
39
## 1.0.0b1 (2025-07-14)
410

511
### Other Changes
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"apiVersion": "2025-07-01-preview",
3-
"commit": "6c7bb299b1fb029d5f2c8d2c255cd517bc9ac58c",
2+
"apiVersion": "2025-09-01",
3+
"commit": "1bdafdbace5d4cc7eb461433adac4a45af87c186",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/loadtestservice/Playwright.Management",
6-
"emitterVersion": "0.45.1"
6+
"emitterVersion": "0.48.2"
77
}

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232

3333
class PlaywrightMgmtClient:
34-
"""Playwright service provides access to Playwright workspace resource and it's operations.
34+
"""Playwright Service Management API provides access to Playwright workspace resources and their
35+
operations through Azure Resource Manager.
3536
3637
:ivar operations: Operations operations
3738
:vartype operations: azure.mgmt.playwright.operations.Operations
@@ -48,9 +49,8 @@ class PlaywrightMgmtClient:
4849
:type subscription_id: str
4950
:param base_url: Service host. Default value is None.
5051
:type base_url: str
51-
:keyword api_version: The API version to use for this operation. Default value is
52-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
53-
behavior.
52+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
53+
Note that overriding this default value may result in unsupported behavior.
5454
:paramtype api_version: str
5555
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5656
Retry-After header is present.

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class PlaywrightMgmtClientConfiguration: # pylint: disable=too-many-instance-at
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
44+
api_version: str = kwargs.pop("api_version", "2025-09-01")
4645

4746
if credential is None:
4847
raise ValueError("Parameter 'credential' must not be None.")

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/_utils/model_base.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from azure.core import CaseInsensitiveEnumMeta
3030
from azure.core.pipeline import PipelineResponse
3131
from azure.core.serialization import _Null
32+
from azure.core.rest import HttpResponse
3233

3334
_LOGGER = logging.getLogger(__name__)
3435

@@ -940,13 +941,13 @@ def _deserialize(
940941

941942
def _failsafe_deserialize(
942943
deserializer: typing.Any,
943-
value: typing.Any,
944+
response: HttpResponse,
944945
module: typing.Optional[str] = None,
945946
rf: typing.Optional["_RestField"] = None,
946947
format: typing.Optional[str] = None,
947948
) -> typing.Any:
948949
try:
949-
return _deserialize(deserializer, value, module, rf, format)
950+
return _deserialize(deserializer, response.json(), module, rf, format)
950951
except DeserializationError:
951952
_LOGGER.warning(
952953
"Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True
@@ -956,10 +957,10 @@ def _failsafe_deserialize(
956957

957958
def _failsafe_deserialize_xml(
958959
deserializer: typing.Any,
959-
value: typing.Any,
960+
response: HttpResponse,
960961
) -> typing.Any:
961962
try:
962-
return _deserialize_xml(deserializer, value)
963+
return _deserialize_xml(deserializer, response.text())
963964
except DeserializationError:
964965
_LOGGER.warning(
965966
"Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/aio/_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131

3232

3333
class PlaywrightMgmtClient:
34-
"""Playwright service provides access to Playwright workspace resource and it's operations.
34+
"""Playwright Service Management API provides access to Playwright workspace resources and their
35+
operations through Azure Resource Manager.
3536
3637
:ivar operations: Operations operations
3738
:vartype operations: azure.mgmt.playwright.aio.operations.Operations
@@ -49,9 +50,8 @@ class PlaywrightMgmtClient:
4950
:type subscription_id: str
5051
:param base_url: Service host. Default value is None.
5152
:type base_url: str
52-
:keyword api_version: The API version to use for this operation. Default value is
53-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
54-
behavior.
53+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
54+
Note that overriding this default value may result in unsupported behavior.
5555
:paramtype api_version: str
5656
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
5757
Retry-After header is present.

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/aio/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class PlaywrightMgmtClientConfiguration: # pylint: disable=too-many-instance-at
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-07-01-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
44+
api_version: str = kwargs.pop("api_version", "2025-09-01")
4645

4746
if credential is None:
4847
raise ValueError("Parameter 'credential' must not be None.")

sdk/playwright/azure-mgmt-playwright/azure/mgmt/playwright/aio/operations/_operations.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async def get_next(next_link=None):
150150

151151
if response.status_code not in [200]:
152152
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)
154154
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
155155

156156
return pipeline_response
@@ -230,7 +230,7 @@ async def get(
230230
except (StreamConsumedError, StreamClosedError):
231231
pass
232232
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)
234234
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
235235

236236
if _stream:
@@ -299,7 +299,7 @@ async def _create_or_update_initial(
299299
except (StreamConsumedError, StreamClosedError):
300300
pass
301301
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)
303303
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
304304

305305
response_headers = {}
@@ -485,7 +485,7 @@ async def update(
485485
content_type: str = "application/json",
486486
**kwargs: Any
487487
) -> _models.PlaywrightWorkspace:
488-
"""Update a PlaywrightWorkspace.
488+
"""Updates a Playwright workspace resource synchronously.
489489
490490
:param resource_group_name: The name of the resource group. The name is case insensitive.
491491
Required.
@@ -512,7 +512,7 @@ async def update(
512512
content_type: str = "application/json",
513513
**kwargs: Any
514514
) -> _models.PlaywrightWorkspace:
515-
"""Update a PlaywrightWorkspace.
515+
"""Updates a Playwright workspace resource synchronously.
516516
517517
:param resource_group_name: The name of the resource group. The name is case insensitive.
518518
Required.
@@ -539,7 +539,7 @@ async def update(
539539
content_type: str = "application/json",
540540
**kwargs: Any
541541
) -> _models.PlaywrightWorkspace:
542-
"""Update a PlaywrightWorkspace.
542+
"""Updates a Playwright workspace resource synchronously.
543543
544544
:param resource_group_name: The name of the resource group. The name is case insensitive.
545545
Required.
@@ -564,7 +564,7 @@ async def update(
564564
properties: Union[_models.PlaywrightWorkspaceUpdate, JSON, IO[bytes]],
565565
**kwargs: Any
566566
) -> _models.PlaywrightWorkspace:
567-
"""Update a PlaywrightWorkspace.
567+
"""Updates a Playwright workspace resource synchronously.
568568
569569
:param resource_group_name: The name of the resource group. The name is case insensitive.
570570
Required.
@@ -628,7 +628,7 @@ async def update(
628628
except (StreamConsumedError, StreamClosedError):
629629
pass
630630
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)
632632
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
633633

634634
if _stream:
@@ -683,7 +683,7 @@ async def _delete_initial(
683683
except (StreamConsumedError, StreamClosedError):
684684
pass
685685
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)
687687
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
688688

689689
response_headers = {}
@@ -702,7 +702,7 @@ async def _delete_initial(
702702
async def begin_delete(
703703
self, resource_group_name: str, playwright_workspace_name: str, **kwargs: Any
704704
) -> AsyncLROPoller[None]:
705-
"""Delete a PlaywrightWorkspace.
705+
"""Deletes a Playwright workspace resource asynchronously.
706706
707707
:param resource_group_name: The name of the resource group. The name is case insensitive.
708708
Required.
@@ -841,7 +841,7 @@ async def get_next(next_link=None):
841841

842842
if response.status_code not in [200]:
843843
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)
845845
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
846846

847847
return pipeline_response
@@ -926,7 +926,7 @@ async def get_next(next_link=None):
926926

927927
if response.status_code not in [200]:
928928
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)
930930
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
931931

932932
return pipeline_response
@@ -937,7 +937,7 @@ async def get_next(next_link=None):
937937
async def check_name_availability(
938938
self, body: _models.CheckNameAvailabilityRequest, *, content_type: str = "application/json", **kwargs: Any
939939
) -> _models.CheckNameAvailabilityResponse:
940-
"""Implements global CheckNameAvailability operations.
940+
"""Checks if a Playwright workspace name is available globally.
941941
942942
:param body: The CheckAvailability request. Required.
943943
:type body: ~azure.mgmt.playwright.models.CheckNameAvailabilityRequest
@@ -954,7 +954,7 @@ async def check_name_availability(
954954
async def check_name_availability(
955955
self, body: JSON, *, content_type: str = "application/json", **kwargs: Any
956956
) -> _models.CheckNameAvailabilityResponse:
957-
"""Implements global CheckNameAvailability operations.
957+
"""Checks if a Playwright workspace name is available globally.
958958
959959
:param body: The CheckAvailability request. Required.
960960
:type body: JSON
@@ -971,7 +971,7 @@ async def check_name_availability(
971971
async def check_name_availability(
972972
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
973973
) -> _models.CheckNameAvailabilityResponse:
974-
"""Implements global CheckNameAvailability operations.
974+
"""Checks if a Playwright workspace name is available globally.
975975
976976
:param body: The CheckAvailability request. Required.
977977
:type body: IO[bytes]
@@ -988,7 +988,7 @@ async def check_name_availability(
988988
async def check_name_availability(
989989
self, body: Union[_models.CheckNameAvailabilityRequest, JSON, IO[bytes]], **kwargs: Any
990990
) -> _models.CheckNameAvailabilityResponse:
991-
"""Implements global CheckNameAvailability operations.
991+
"""Checks if a Playwright workspace name is available globally.
992992
993993
:param body: The CheckAvailability request. Is one of the following types:
994994
CheckNameAvailabilityRequest, JSON, IO[bytes] Required.
@@ -1046,7 +1046,7 @@ async def check_name_availability(
10461046
except (StreamConsumedError, StreamClosedError):
10471047
pass
10481048
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)
10501050
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
10511051

10521052
if _stream:
@@ -1081,7 +1081,7 @@ def __init__(self, *args, **kwargs) -> None:
10811081
async def get(
10821082
self, location: str, playwright_quota_name: Union[str, _models.QuotaName], **kwargs: Any
10831083
) -> _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.
10851085
10861086
:param location: The name of the Azure region. Required.
10871087
:type location: str
@@ -1131,7 +1131,7 @@ async def get(
11311131
except (StreamConsumedError, StreamClosedError):
11321132
pass
11331133
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)
11351135
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
11361136

11371137
if _stream:
@@ -1146,7 +1146,7 @@ async def get(
11461146

11471147
@distributed_trace
11481148
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.
11501150
11511151
:param location: The name of the Azure region. Required.
11521152
:type location: str
@@ -1224,7 +1224,7 @@ async def get_next(next_link=None):
12241224

12251225
if response.status_code not in [200]:
12261226
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)
12281228
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
12291229

12301230
return pipeline_response
@@ -1257,7 +1257,7 @@ async def get(
12571257
quota_name: Union[str, _models.QuotaName],
12581258
**kwargs: Any
12591259
) -> _models.PlaywrightWorkspaceQuota:
1260-
"""Get Playwright workspace quota resource by name.
1260+
"""Gets a Playwright workspace quota resource by name.
12611261
12621262
:param resource_group_name: The name of the resource group. The name is case insensitive.
12631263
Required.
@@ -1312,7 +1312,7 @@ async def get(
13121312
except (StreamConsumedError, StreamClosedError):
13131313
pass
13141314
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)
13161316
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
13171317

13181318
if _stream:
@@ -1329,7 +1329,7 @@ async def get(
13291329
def list_by_playwright_workspace(
13301330
self, resource_group_name: str, playwright_workspace_name: str, **kwargs: Any
13311331
) -> AsyncItemPaged["_models.PlaywrightWorkspaceQuota"]:
1332-
"""List quota resources for a given Playwright workspace resource.
1332+
"""Lists quota resources for a given Playwright workspace.
13331333
13341334
:param resource_group_name: The name of the resource group. The name is case insensitive.
13351335
Required.
@@ -1412,7 +1412,7 @@ async def get_next(next_link=None):
14121412

14131413
if response.status_code not in [200]:
14141414
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)
14161416
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
14171417

14181418
return pipeline_response

0 commit comments

Comments
 (0)