Skip to content

Commit 6d22700

Browse files
[AutoRelease] t2-web-2025-04-03-61989(can only be merged by SDK owner) (#40355)
* code and test * Update version to 8.0.0 in multiple files * format sdk --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent cf1e8bd commit 6d22700

Some content is hidden

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

45 files changed

+1221
-6260
lines changed

sdk/appservice/azure-mgmt-web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.

sdk/appservice/azure-mgmt-web/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "ff7b8e12e78b352561e2e470dd045be310a313fa",
2+
"commit": "166c3a2ace3d2511cbdeeada95826cd67a45895e",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.26.4",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/web/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/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/web/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/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/web/resource-manager/readme.md",
1111
"package-2023-01": "fatal: invalid object name 'from'. from: WebApps.json",
1212
"package-2022-09": "fatal: invalid object name 'from'. from: WebApps.json",

sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
309309
return ET.Element(tag)
310310

311311

312-
class Model(object):
312+
class Model:
313313
"""Mixin for all client request body/response body models to support
314314
serialization and deserialization.
315315
"""
@@ -562,7 +562,7 @@ def _decode_attribute_map_key(key):
562562
return key.replace("\\.", ".")
563563

564564

565-
class Serializer(object): # pylint: disable=too-many-public-methods
565+
class Serializer: # pylint: disable=too-many-public-methods
566566
"""Request object model serializer."""
567567

568568
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1440,7 +1440,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14401440
return children[0]
14411441

14421442

1443-
class Deserializer(object):
1443+
class Deserializer:
14441444
"""Response object model deserializer.
14451445
14461446
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1682,17 +1682,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16821682
subtype = getattr(response, "_subtype_map", {})
16831683
try:
16841684
readonly = [
1685-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1685+
k
1686+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1687+
if v.get("readonly")
16861688
]
16871689
const = [
1688-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1690+
k
1691+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1692+
if v.get("constant")
16891693
]
16901694
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16911695
response_obj = response(**kwargs)
16921696
for attr in readonly:
16931697
setattr(response_obj, attr, attrs.get(attr))
16941698
if additional_properties:
1695-
response_obj.additional_properties = additional_properties
1699+
response_obj.additional_properties = additional_properties # type: ignore
16961700
return response_obj
16971701
except TypeError as err:
16981702
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
6666
_PROFILE_TAG: {
6767
None: DEFAULT_API_VERSION,
6868
"billing_meters": "2016-03-01",
69+
"container_apps": "2023-01-01",
70+
"container_apps_revisions": "2023-01-01",
6971
"validate_container_settings": "2018-02-01",
7072
}
7173
},
@@ -102,7 +104,7 @@ def __init__(
102104
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
103105
self._config.http_logging_policy,
104106
]
105-
self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
107+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
106108
super(WebSiteManagementClient, self).__init__(api_version=api_version, profile=profile)
107109

108110
@classmethod
@@ -349,15 +351,12 @@ def container_apps(self):
349351
350352
* 2022-09-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2022_09_01.operations.ContainerAppsOperations>`
351353
* 2023-01-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_01_01.operations.ContainerAppsOperations>`
352-
* 2024-04-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2024_04_01.operations.ContainerAppsOperations>`
353354
"""
354355
api_version = self._get_api_version("container_apps")
355356
if api_version == "2022-09-01":
356357
from .v2022_09_01.operations import ContainerAppsOperations as OperationClass
357358
elif api_version == "2023-01-01":
358359
from .v2023_01_01.operations import ContainerAppsOperations as OperationClass
359-
elif api_version == "2024-04-01":
360-
from .v2024_04_01.operations import ContainerAppsOperations as OperationClass
361360
else:
362361
raise ValueError("API version {} does not have operation group 'container_apps'".format(api_version))
363362
self._config.api_version = api_version
@@ -375,15 +374,12 @@ def container_apps_revisions(self):
375374
376375
* 2022-09-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2022_09_01.operations.ContainerAppsRevisionsOperations>`
377376
* 2023-01-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_01_01.operations.ContainerAppsRevisionsOperations>`
378-
* 2024-04-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2024_04_01.operations.ContainerAppsRevisionsOperations>`
379377
"""
380378
api_version = self._get_api_version("container_apps_revisions")
381379
if api_version == "2022-09-01":
382380
from .v2022_09_01.operations import ContainerAppsRevisionsOperations as OperationClass
383381
elif api_version == "2023-01-01":
384382
from .v2023_01_01.operations import ContainerAppsRevisionsOperations as OperationClass
385-
elif api_version == "2024-04-01":
386-
from .v2024_04_01.operations import ContainerAppsRevisionsOperations as OperationClass
387383
else:
388384
raise ValueError(
389385
"API version {} does not have operation group 'container_apps_revisions'".format(api_version)

sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
6666
_PROFILE_TAG: {
6767
None: DEFAULT_API_VERSION,
6868
"billing_meters": "2016-03-01",
69+
"container_apps": "2023-01-01",
70+
"container_apps_revisions": "2023-01-01",
6971
"validate_container_settings": "2018-02-01",
7072
}
7173
},
@@ -102,7 +104,7 @@ def __init__(
102104
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
103105
self._config.http_logging_policy,
104106
]
105-
self._client = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
107+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
106108
super(WebSiteManagementClient, self).__init__(api_version=api_version, profile=profile)
107109

108110
@classmethod
@@ -349,15 +351,12 @@ def container_apps(self):
349351
350352
* 2022-09-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2022_09_01.aio.operations.ContainerAppsOperations>`
351353
* 2023-01-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_01_01.aio.operations.ContainerAppsOperations>`
352-
* 2024-04-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2024_04_01.aio.operations.ContainerAppsOperations>`
353354
"""
354355
api_version = self._get_api_version("container_apps")
355356
if api_version == "2022-09-01":
356357
from ..v2022_09_01.aio.operations import ContainerAppsOperations as OperationClass
357358
elif api_version == "2023-01-01":
358359
from ..v2023_01_01.aio.operations import ContainerAppsOperations as OperationClass
359-
elif api_version == "2024-04-01":
360-
from ..v2024_04_01.aio.operations import ContainerAppsOperations as OperationClass
361360
else:
362361
raise ValueError("API version {} does not have operation group 'container_apps'".format(api_version))
363362
self._config.api_version = api_version
@@ -375,15 +374,12 @@ def container_apps_revisions(self):
375374
376375
* 2022-09-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.ContainerAppsRevisionsOperations>`
377376
* 2023-01-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.ContainerAppsRevisionsOperations>`
378-
* 2024-04-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.ContainerAppsRevisionsOperations>`
379377
"""
380378
api_version = self._get_api_version("container_apps_revisions")
381379
if api_version == "2022-09-01":
382380
from ..v2022_09_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
383381
elif api_version == "2023-01-01":
384382
from ..v2023_01_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
385-
elif api_version == "2024-04-01":
386-
from ..v2024_04_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
387383
else:
388384
raise ValueError(
389385
"API version {} does not have operation group 'container_apps_revisions'".format(api_version)

sdk/appservice/azure-mgmt-web/azure/mgmt/web/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
# --------------------------------------------------------------------------
77
from .v2016_03_01.models import *
88
from .v2018_02_01.models import *
9+
from .v2023_01_01.models import *
910
from .v2024_04_01.models import *

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/models/_models_py3.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4430,9 +4430,7 @@ class RampUpRule(_serialization.Model):
44304430
:ivar max_reroute_percentage: Specifies upper boundary below which ReroutePercentage will stay.
44314431
:vartype max_reroute_percentage: float
44324432
:ivar change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback
4433-
site extension which URL can be specified. See TiPCallback site extension for the scaffold and
4434-
contracts.
4435-
https://www.siteextensions.net/packages/TiPCallback/.
4433+
site extension which URL can be specified.
44364434
:vartype change_decision_callback_url: str
44374435
:ivar name: Name of the routing rule. The recommended name would be to point to the slot which
44384436
will receive the traffic in the experiment.
@@ -4487,9 +4485,7 @@ def __init__(
44874485
stay.
44884486
:paramtype max_reroute_percentage: float
44894487
:keyword change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback
4490-
site extension which URL can be specified. See TiPCallback site extension for the scaffold and
4491-
contracts.
4492-
https://www.siteextensions.net/packages/TiPCallback/.
4488+
site extension which URL can be specified.
44934489
:paramtype change_decision_callback_url: str
44944490
:keyword name: Name of the routing rule. The recommended name would be to point to the slot
44954491
which will receive the traffic in the experiment.

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_models_py3.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11159,9 +11159,7 @@ class RampUpRule(_serialization.Model):
1115911159
:ivar max_reroute_percentage: Specifies upper boundary below which ReroutePercentage will stay.
1116011160
:vartype max_reroute_percentage: float
1116111161
:ivar change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback
11162-
site extension which URL can be specified. See TiPCallback site extension for the scaffold and
11163-
contracts.
11164-
https://www.siteextensions.net/packages/TiPCallback/.
11162+
site extension which URL can be specified.
1116511163
:vartype change_decision_callback_url: str
1116611164
:ivar name: Name of the routing rule. The recommended name would be to point to the slot which
1116711165
will receive the traffic in the experiment.
@@ -11216,9 +11214,7 @@ def __init__(
1121611214
stay.
1121711215
:paramtype max_reroute_percentage: float
1121811216
:keyword change_decision_callback_url: Custom decision algorithm can be provided in TiPCallback
11219-
site extension which URL can be specified. See TiPCallback site extension for the scaffold and
11220-
contracts.
11221-
https://www.siteextensions.net/packages/TiPCallback/.
11217+
site extension which URL can be specified.
1122211218
:paramtype change_decision_callback_url: str
1122311219
:keyword name: Name of the routing rule. The recommended name would be to point to the slot
1122411220
which will receive the traffic in the experiment.
@@ -13058,7 +13054,7 @@ class SiteAuthSettings(ProxyOnlyResource):
1305813054
:ivar issuer: The OpenID Connect Issuer URI that represents the entity which issues access
1305913055
tokens for this application.
1306013056
When using Azure Active Directory, this value is the URI of the directory tenant, e.g.
13061-
https://sts.windows.net/{tenant-guid}/.
13057+
``https://sts.windows.net/{tenant-guid}/``.
1306213058
This URI is a case-sensitive identifier for the token issuer.
1306313059
More information on OpenID Connect Discovery:
1306413060
http://openid.net/specs/openid-connect-discovery-1_0.html.
@@ -13255,7 +13251,7 @@ def __init__( # pylint: disable=too-many-locals
1325513251
:keyword issuer: The OpenID Connect Issuer URI that represents the entity which issues access
1325613252
tokens for this application.
1325713253
When using Azure Active Directory, this value is the URI of the directory tenant, e.g.
13258-
https://sts.windows.net/{tenant-guid}/.
13254+
``https://sts.windows.net/{tenant-guid}/``.
1325913255
This URI is a case-sensitive identifier for the token issuer.
1326013256
More information on OpenID Connect Discovery:
1326113257
http://openid.net/specs/openid-connect-discovery-1_0.html.

0 commit comments

Comments
 (0)