Skip to content

Commit 9af8bd7

Browse files
author
SDKAuto
committed
CodeGen from PR 34242 in Azure/azure-rest-api-specs
Merge 8fbc11097a7044c1adc129e989a96f3988cf536d into 11059b2f00c7572b276dc9862c0b41db8702cc78
1 parent ebf29c4 commit 9af8bd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4753
-5312
lines changed

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

Lines changed: 429 additions & 0 deletions
Large diffs are not rendered by default.

sdk/playwrighttesting/azure-mgmt-playwrighttesting/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Playwrighttesting Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"commit": "58740206b853320974ef5e4864f7be8120b15a27",
2+
"commit": "c908490d3d2b6fdd1a5dfa108a0f47183e4c06e0",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/playwrighttesting/PlaywrightTesting.Management",
5-
"@azure-tools/typespec-python": "0.37.1"
5+
"@azure-tools/typespec-python": "0.37.1",
6+
"autorest": "3.10.2",
7+
"use": [
8+
"@autorest/[email protected]",
9+
"@autorest/[email protected]"
10+
],
11+
"autorest_command": "autorest specification/playwrighttesting/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
12+
"readme": "specification/playwrighttesting/resource-manager/readme.md"
613
}

sdk/playwrighttesting/azure-mgmt-playwrighttesting/azure/mgmt/playwrighttesting/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) Python Code Generator.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._client import PlaywrightTestingMgmtClient # type: ignore
15+
from ._playwright_testing_mgmt_client import PlaywrightTestingMgmtClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) Python Code Generator.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

@@ -23,24 +23,16 @@ class PlaywrightTestingMgmtClientConfiguration: # pylint: disable=too-many-inst
2323
Note that all parameters used to create this instance are saved as instance
2424
attributes.
2525
26-
:param credential: Credential used to authenticate requests to the service. Required.
26+
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2929
:type subscription_id: str
30-
:param base_url: Service host. Default value is "https://management.azure.com".
31-
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is "2024-12-01".
33-
Note that overriding this default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2024-12-01". Note that overriding this
31+
default value may result in unsupported behavior.
3432
:paramtype api_version: str
3533
"""
3634

37-
def __init__(
38-
self,
39-
credential: "TokenCredential",
40-
subscription_id: str,
41-
base_url: str = "https://management.azure.com",
42-
**kwargs: Any
43-
) -> None:
35+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4436
api_version: str = kwargs.pop("api_version", "2024-12-01")
4537

4638
if credential is None:
@@ -50,7 +42,6 @@ def __init__(
5042

5143
self.credential = credential
5244
self.subscription_id = subscription_id
53-
self.base_url = base_url
5445
self.api_version = api_version
5546
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5647
kwargs.setdefault("sdk_moniker", "mgmt-playwrighttesting/{}".format(VERSION))

0 commit comments

Comments
 (0)