diff --git a/sdk/appservice/azure-mgmt-web/_meta.json b/sdk/appservice/azure-mgmt-web/_meta.json
index 911daaab7157..e27d7bffdf1d 100644
--- a/sdk/appservice/azure-mgmt-web/_meta.json
+++ b/sdk/appservice/azure-mgmt-web/_meta.json
@@ -1,11 +1,27 @@
{
- "commit": "969fd0c2634fbcc1975d7abe3749330a5145a97c",
+ "commit": "1782f1139ff2a27fb9d213c0303eea4bdb5a776c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
- "autorest": "3.9.2",
+ "autorest": "3.9.7",
"use": [
- "@autorest/python@6.4.3",
- "@autorest/modelerfour@4.24.3"
+ "@autorest/python@6.7.1",
+ "@autorest/modelerfour@4.26.2"
],
- "autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
- "readme": "specification/web/resource-manager/readme.md"
+ "autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
+ "readme": "specification/web/resource-manager/readme.md",
+ "package-2023-01": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2022-09": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2021-03-only": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2021-01-15-only": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2021-01-only": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2020-12-only": "fatal: invalid object name 'from'. from: WebApps.json",
+ "package-2020-09-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2020-06-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2019-08-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2018-11-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2018-02-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2016-09-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2016-08-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2016-03-only": "2022-12-08 21:38:55 -0800 65106a17de1db38e076ea6f14c0b60305bd27ace Microsoft.Web/stable/2016-03-01/CommonDefinitions.json",
+ "package-2015-08-only": "fatal: invalid object name 'from'. from: AppServiceCertificateOrders.json",
+ "package-2015-04-only": "2021-03-07 21:09:45 -0500 19aa203acad715399745b9e2f125889b14934e84 Microsoft.DomainRegistration/stable/2015-04-01/Domains.json"
}
\ No newline at end of file
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py
index c46ba9e78255..d3389d581007 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py
@@ -9,6 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------
from ._serialization import Serializer, Deserializer
+from io import IOBase
import sys
from typing import Any, IO, Iterable, Optional, Union
@@ -30,6 +31,7 @@ def check_name_availability(
name: str,
type: Union[str, _models.CheckNameResourceTypes],
is_fqdn: Optional[bool] = None,
+ environment_id: Optional[str] = None,
**kwargs: Any
) -> _models.ResourceNameAvailability:
"""Check if a resource name is available.
@@ -41,12 +43,17 @@ def check_name_availability(
:param type: Resource type used for verification. Known values are: "Site", "Slot",
"HostingEnvironment", "PublishingUser", "Microsoft.Web/sites", "Microsoft.Web/sites/slots",
"Microsoft.Web/hostingEnvironments", and "Microsoft.Web/publishingUsers". Required.
- :type type: str or ~azure.mgmt.web.v2022_09_01.models.CheckNameResourceTypes
+ :type type: str or ~azure.mgmt.web.v2023_01_01.models.CheckNameResourceTypes
:param is_fqdn: Is fully qualified domain name. Default value is None.
:type is_fqdn: bool
+ :param environment_id: Azure Resource Manager ID of the customer's selected Container Apps
+ Environment on which to host the Function app. This must be of the form
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}.
+ Default value is None.
+ :type environment_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ResourceNameAvailability or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.ResourceNameAvailability
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.ResourceNameAvailability
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('check_name_availability')
@@ -66,8 +73,12 @@ def check_name_availability(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'check_name_availability'".format(api_version))
mixin_instance = OperationClass()
@@ -77,7 +88,7 @@ def check_name_availability(
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._serialize.client_side_validation = False
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
- return mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)
+ return mixin_instance.check_name_availability(name, type, is_fqdn, environment_id, **kwargs)
def get_publishing_user(
self,
@@ -89,7 +100,7 @@ def get_publishing_user(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: User or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.User
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.User
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_publishing_user')
@@ -109,8 +120,12 @@ def get_publishing_user(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_publishing_user'".format(api_version))
mixin_instance = OperationClass()
@@ -135,7 +150,7 @@ def get_source_control(
:type source_control_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SourceControl or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SourceControl
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SourceControl
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_source_control')
@@ -155,8 +170,12 @@ def get_source_control(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_source_control'".format(api_version))
mixin_instance = OperationClass()
@@ -178,7 +197,7 @@ def get_subscription_deployment_locations(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DeploymentLocations or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.DeploymentLocations
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.DeploymentLocations
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_subscription_deployment_locations')
@@ -198,8 +217,12 @@ def get_subscription_deployment_locations(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_subscription_deployment_locations'".format(api_version))
mixin_instance = OperationClass()
@@ -211,6 +234,33 @@ def get_subscription_deployment_locations(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.get_subscription_deployment_locations(**kwargs)
+ def list_ase_regions(
+ self,
+ **kwargs: Any
+ ) -> Iterable["_models.AseRegion"]:
+ """Get a list of available ASE regions and its supported Skus.
+
+ Description for get a list of available ASE regions and its supported Skus.
+
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: An iterator like instance of either AseRegion or the result of cls(response)
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.AseRegion]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ api_version = self._get_api_version('list_ase_regions')
+ if api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ else:
+ raise ValueError("API version {} does not have operation 'list_ase_regions'".format(api_version))
+ mixin_instance = OperationClass()
+ mixin_instance._client = self._client
+ mixin_instance._config = self._config
+ mixin_instance._config.api_version = api_version
+ mixin_instance._serialize = Serializer(self._models_dict(api_version))
+ mixin_instance._serialize.client_side_validation = False
+ mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
+ return mixin_instance.list_ase_regions(**kwargs)
+
def list_billing_meters(
self,
billing_location: Optional[str] = None,
@@ -227,7 +277,7 @@ def list_billing_meters(
:type os_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BillingMeter or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.BillingMeter]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.BillingMeter]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_billing_meters')
@@ -245,8 +295,12 @@ def list_billing_meters(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_billing_meters'".format(api_version))
mixin_instance = OperationClass()
@@ -271,12 +325,16 @@ def list_custom_host_name_sites(
:type hostname: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either CustomHostnameSites or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.CustomHostnameSites]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.CustomHostnameSites]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_custom_host_name_sites')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_custom_host_name_sites'".format(api_version))
mixin_instance = OperationClass()
@@ -303,7 +361,7 @@ def list_geo_regions(
:param sku: Name of SKU used to filter the regions. Known values are: "Free", "Shared",
"Basic", "Standard", "Premium", "Dynamic", "Isolated", "IsolatedV2", "PremiumV2", "PremiumV3",
"PremiumContainer", "ElasticPremium", and "ElasticIsolated". Default value is None.
- :type sku: str or ~azure.mgmt.web.v2022_09_01.models.SkuName
+ :type sku: str or ~azure.mgmt.web.v2023_01_01.models.SkuName
:param linux_workers_enabled: Specify :code:`true
` if you want to filter to only
regions that support Linux workers. Default value is None.
:type linux_workers_enabled: bool
@@ -315,7 +373,7 @@ def list_geo_regions(
:type linux_dynamic_workers_enabled: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either GeoRegion or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.GeoRegion]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.GeoRegion]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_geo_regions')
@@ -335,8 +393,12 @@ def list_geo_regions(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_geo_regions'".format(api_version))
mixin_instance = OperationClass()
@@ -358,7 +420,7 @@ def list_premier_add_on_offers(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either PremierAddOnOffer or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.PremierAddOnOffer]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.PremierAddOnOffer]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_premier_add_on_offers')
@@ -378,8 +440,12 @@ def list_premier_add_on_offers(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_premier_add_on_offers'".format(api_version))
mixin_instance = OperationClass()
@@ -402,13 +468,13 @@ def list_site_identifiers_assigned_to_host_name(
:param name_identifier: Hostname information. Is either a NameIdentifier type or a IO type.
Required.
- :type name_identifier: ~azure.mgmt.web.v2022_09_01.models.NameIdentifier or IO
+ :type name_identifier: ~azure.mgmt.web.v2023_01_01.models.NameIdentifier or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either Identifier or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.Identifier]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.Identifier]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_site_identifiers_assigned_to_host_name')
@@ -428,8 +494,12 @@ def list_site_identifiers_assigned_to_host_name(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_site_identifiers_assigned_to_host_name'".format(api_version))
mixin_instance = OperationClass()
@@ -451,7 +521,7 @@ def list_skus(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SkuInfos or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SkuInfos
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SkuInfos
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_skus')
@@ -471,8 +541,12 @@ def list_skus(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_skus'".format(api_version))
mixin_instance = OperationClass()
@@ -494,7 +568,7 @@ def list_source_controls(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either SourceControl or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2022_09_01.models.SourceControl]
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_01_01.models.SourceControl]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_source_controls')
@@ -514,8 +588,12 @@ def list_source_controls(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_source_controls'".format(api_version))
mixin_instance = OperationClass()
@@ -541,7 +619,7 @@ def move( # pylint: disable=inconsistent-return-statements
:type resource_group_name: str
:param move_resource_envelope: Object that represents the resource to move. Is either a
CsmMoveResourceEnvelope type or a IO type. Required.
- :type move_resource_envelope: ~azure.mgmt.web.v2022_09_01.models.CsmMoveResourceEnvelope or IO
+ :type move_resource_envelope: ~azure.mgmt.web.v2023_01_01.models.CsmMoveResourceEnvelope or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
@@ -567,8 +645,12 @@ def move( # pylint: disable=inconsistent-return-statements
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'move'".format(api_version))
mixin_instance = OperationClass()
@@ -590,13 +672,13 @@ def update_publishing_user(
Description for Updates publishing user.
:param user_details: Details of publishing user. Is either a User type or a IO type. Required.
- :type user_details: ~azure.mgmt.web.v2022_09_01.models.User or IO
+ :type user_details: ~azure.mgmt.web.v2023_01_01.models.User or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: User or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.User
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.User
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('update_publishing_user')
@@ -616,8 +698,12 @@ def update_publishing_user(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'update_publishing_user'".format(api_version))
mixin_instance = OperationClass()
@@ -643,13 +729,13 @@ def update_source_control(
:type source_control_type: str
:param request_message: Source control token information. Is either a SourceControl type or a
IO type. Required.
- :type request_message: ~azure.mgmt.web.v2022_09_01.models.SourceControl or IO
+ :type request_message: ~azure.mgmt.web.v2023_01_01.models.SourceControl or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SourceControl or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SourceControl
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SourceControl
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('update_source_control')
@@ -669,8 +755,12 @@ def update_source_control(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'update_source_control'".format(api_version))
mixin_instance = OperationClass()
@@ -696,13 +786,13 @@ def validate(
:type resource_group_name: str
:param validate_request: Request with the resources to validate. Is either a ValidateRequest
type or a IO type. Required.
- :type validate_request: ~azure.mgmt.web.v2022_09_01.models.ValidateRequest or IO
+ :type validate_request: ~azure.mgmt.web.v2023_01_01.models.ValidateRequest or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ValidateResponse or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.ValidateResponse
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.ValidateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('validate')
@@ -722,8 +812,12 @@ def validate(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'validate'".format(api_version))
mixin_instance = OperationClass()
@@ -787,7 +881,7 @@ def validate_move( # pylint: disable=inconsistent-return-statements
:type resource_group_name: str
:param move_resource_envelope: Object that represents the resource to move. Is either a
CsmMoveResourceEnvelope type or a IO type. Required.
- :type move_resource_envelope: ~azure.mgmt.web.v2022_09_01.models.CsmMoveResourceEnvelope or IO
+ :type move_resource_envelope: ~azure.mgmt.web.v2023_01_01.models.CsmMoveResourceEnvelope or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
@@ -813,8 +907,12 @@ def validate_move( # pylint: disable=inconsistent-return-statements
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'validate_move'".format(api_version))
mixin_instance = OperationClass()
@@ -838,13 +936,13 @@ def verify_hosting_environment_vnet(
analyzing the Network Security Group rules.
:param parameters: VNET information. Is either a VnetParameters type or a IO type. Required.
- :type parameters: ~azure.mgmt.web.v2022_09_01.models.VnetParameters or IO
+ :type parameters: ~azure.mgmt.web.v2023_01_01.models.VnetParameters or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VnetValidationFailureDetails or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.VnetValidationFailureDetails
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.VnetValidationFailureDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('verify_hosting_environment_vnet')
@@ -864,8 +962,12 @@ def verify_hosting_environment_vnet(
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'verify_hosting_environment_vnet'".format(api_version))
mixin_instance = OperationClass()
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py
index 25467dfc00bb..a00658b1fc19 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py
@@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
if xml_desc.get("attr", False):
if xml_ns:
ET.register_namespace(xml_prefix, xml_ns)
- xml_name = "{}{}".format(xml_ns, xml_name)
+ xml_name = "{{{}}}{}".format(xml_ns, xml_name)
serialized.set(xml_name, new_attr) # type: ignore
continue
if xml_desc.get("text", False):
@@ -664,8 +664,9 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
_serialized.update(_new_attr) # type: ignore
_new_attr = _new_attr[k] # type: ignore
_serialized = _serialized[k]
- except ValueError:
- continue
+ except ValueError as err:
+ if isinstance(err, SerializationError):
+ raise
except (AttributeError, KeyError, TypeError) as err:
msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj))
@@ -743,6 +744,8 @@ def query(self, name, data, data_type, **kwargs):
:param data: The data to be serialized.
:param str data_type: The type to be serialized from.
+ :keyword bool skip_quote: Whether to skip quote the serialized result.
+ Defaults to False.
:rtype: str
:raises: TypeError if serialization fails.
:raises: ValueError if data is None
@@ -751,10 +754,8 @@ def query(self, name, data, data_type, **kwargs):
# Treat the list aside, since we don't want to encode the div separator
if data_type.startswith("["):
internal_data_type = data_type[1:-1]
- data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data]
- if not kwargs.get("skip_quote", False):
- data = [quote(str(d), safe="") for d in data]
- return str(self.serialize_iter(data, internal_data_type, **kwargs))
+ do_quote = not kwargs.get('skip_quote', False)
+ return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs))
# Not a list, regular serialization
output = self.serialize_data(data, data_type, **kwargs)
@@ -893,6 +894,8 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs):
not be None or empty.
:param str div: If set, this str will be used to combine the elements
in the iterable into a combined string. Default is 'None'.
+ :keyword bool do_quote: Whether to quote the serialized result of each iterable element.
+ Defaults to False.
:rtype: list, str
"""
if isinstance(data, str):
@@ -905,9 +908,18 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs):
for d in data:
try:
serialized.append(self.serialize_data(d, iter_type, **kwargs))
- except ValueError:
+ except ValueError as err:
+ if isinstance(err, SerializationError):
+ raise
serialized.append(None)
+ if kwargs.get('do_quote', False):
+ serialized = [
+ '' if s is None else quote(str(s), safe='')
+ for s
+ in serialized
+ ]
+
if div:
serialized = ["" if s is None else str(s) for s in serialized]
serialized = div.join(serialized)
@@ -952,7 +964,9 @@ def serialize_dict(self, attr, dict_type, **kwargs):
for key, value in attr.items():
try:
serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs)
- except ValueError:
+ except ValueError as err:
+ if isinstance(err, SerializationError):
+ raise
serialized[self.serialize_unicode(key)] = None
if "xml" in serialization_ctxt:
@@ -1273,7 +1287,7 @@ def _extract_name_from_internal_type(internal_type):
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
xml_ns = internal_type_xml_map.get("ns", None)
if xml_ns:
- xml_name = "{}{}".format(xml_ns, xml_name)
+ xml_name = "{{{}}}{}".format(xml_ns, xml_name)
return xml_name
@@ -1297,7 +1311,7 @@ def xml_key_extractor(attr, attr_desc, data):
# Integrate namespace if necessary
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
if xml_ns:
- xml_name = "{}{}".format(xml_ns, xml_name)
+ xml_name = "{{{}}}{}".format(xml_ns, xml_name)
# If it's an attribute, that's simple
if xml_desc.get("attr", False):
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
index 9bdf86125b1e..401629e8eb61 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
@@ -54,7 +54,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""
- DEFAULT_API_VERSION = '2022-09-01'
+ DEFAULT_API_VERSION = '2023-01-01'
_PROFILE_TAG = "azure.mgmt.web.WebSiteManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
@@ -74,6 +74,8 @@ def __init__(
profile: KnownProfiles=KnownProfiles.default,
**kwargs: Any
):
+ if api_version:
+ kwargs.setdefault('api_version', api_version)
self._config = WebSiteManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
super(WebSiteManagementClient, self).__init__(
@@ -102,7 +104,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2020-12-01: :mod:`v2020_12_01.models`
* 2021-01-01: :mod:`v2021_01_01.models`
* 2021-01-15: :mod:`v2021_01_15.models`
+ * 2021-03-01: :mod:`v2021_03_01.models`
* 2022-09-01: :mod:`v2022_09_01.models`
+ * 2023-01-01: :mod:`v2023_01_01.models`
"""
if api_version == '2015-04-01':
from .v2015_04_01 import models
@@ -143,9 +147,15 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-01-15':
from .v2021_01_15 import models
return models
+ elif api_version == '2021-03-01':
+ from .v2021_03_01 import models
+ return models
elif api_version == '2022-09-01':
from .v2022_09_01 import models
return models
+ elif api_version == '2023-01-01':
+ from .v2023_01_01 import models
+ return models
raise ValueError("API version {} is not available".format(api_version))
@property
@@ -160,7 +170,9 @@ def app_service_certificate_orders(self):
* 2020-12-01: :class:`AppServiceCertificateOrdersOperations`
* 2021-01-01: :class:`AppServiceCertificateOrdersOperations`
* 2021-01-15: :class:`AppServiceCertificateOrdersOperations`
+ * 2021-03-01: :class:`AppServiceCertificateOrdersOperations`
* 2022-09-01: :class:`AppServiceCertificateOrdersOperations`
+ * 2023-01-01: :class:`AppServiceCertificateOrdersOperations`
"""
api_version = self._get_api_version('app_service_certificate_orders')
if api_version == '2015-08-01':
@@ -179,12 +191,16 @@ def app_service_certificate_orders(self):
from .v2021_01_01.operations import AppServiceCertificateOrdersOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import AppServiceCertificateOrdersOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import AppServiceCertificateOrdersOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import AppServiceCertificateOrdersOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import AppServiceCertificateOrdersOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_certificate_orders'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def app_service_environments(self):
@@ -198,7 +214,9 @@ def app_service_environments(self):
* 2020-12-01: :class:`AppServiceEnvironmentsOperations`
* 2021-01-01: :class:`AppServiceEnvironmentsOperations`
* 2021-01-15: :class:`AppServiceEnvironmentsOperations`
+ * 2021-03-01: :class:`AppServiceEnvironmentsOperations`
* 2022-09-01: :class:`AppServiceEnvironmentsOperations`
+ * 2023-01-01: :class:`AppServiceEnvironmentsOperations`
"""
api_version = self._get_api_version('app_service_environments')
if api_version == '2016-09-01':
@@ -217,12 +235,16 @@ def app_service_environments(self):
from .v2021_01_01.operations import AppServiceEnvironmentsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import AppServiceEnvironmentsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import AppServiceEnvironmentsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import AppServiceEnvironmentsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import AppServiceEnvironmentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_environments'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def app_service_plans(self):
@@ -236,7 +258,9 @@ def app_service_plans(self):
* 2020-12-01: :class:`AppServicePlansOperations`
* 2021-01-01: :class:`AppServicePlansOperations`
* 2021-01-15: :class:`AppServicePlansOperations`
+ * 2021-03-01: :class:`AppServicePlansOperations`
* 2022-09-01: :class:`AppServicePlansOperations`
+ * 2023-01-01: :class:`AppServicePlansOperations`
"""
api_version = self._get_api_version('app_service_plans')
if api_version == '2016-09-01':
@@ -255,12 +279,16 @@ def app_service_plans(self):
from .v2021_01_01.operations import AppServicePlansOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import AppServicePlansOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import AppServicePlansOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import AppServicePlansOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import AppServicePlansOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_plans'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def billing_meters(self):
@@ -274,7 +302,7 @@ def billing_meters(self):
else:
raise ValueError("API version {} does not have operation group 'billing_meters'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificate_orders_diagnostics(self):
@@ -283,7 +311,9 @@ def certificate_orders_diagnostics(self):
* 2020-12-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2021-01-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2021-01-15: :class:`CertificateOrdersDiagnosticsOperations`
+ * 2021-03-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations`
+ * 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations`
"""
api_version = self._get_api_version('certificate_orders_diagnostics')
if api_version == '2020-12-01':
@@ -292,12 +322,16 @@ def certificate_orders_diagnostics(self):
from .v2021_01_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import CertificateOrdersDiagnosticsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificate_orders_diagnostics'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificate_registration_provider(self):
@@ -311,7 +345,9 @@ def certificate_registration_provider(self):
* 2020-12-01: :class:`CertificateRegistrationProviderOperations`
* 2021-01-01: :class:`CertificateRegistrationProviderOperations`
* 2021-01-15: :class:`CertificateRegistrationProviderOperations`
+ * 2021-03-01: :class:`CertificateRegistrationProviderOperations`
* 2022-09-01: :class:`CertificateRegistrationProviderOperations`
+ * 2023-01-01: :class:`CertificateRegistrationProviderOperations`
"""
api_version = self._get_api_version('certificate_registration_provider')
if api_version == '2015-08-01':
@@ -330,12 +366,16 @@ def certificate_registration_provider(self):
from .v2021_01_01.operations import CertificateRegistrationProviderOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import CertificateRegistrationProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import CertificateRegistrationProviderOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import CertificateRegistrationProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import CertificateRegistrationProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificate_registration_provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificates(self):
@@ -350,7 +390,9 @@ def certificates(self):
* 2020-12-01: :class:`CertificatesOperations`
* 2021-01-01: :class:`CertificatesOperations`
* 2021-01-15: :class:`CertificatesOperations`
+ * 2021-03-01: :class:`CertificatesOperations`
* 2022-09-01: :class:`CertificatesOperations`
+ * 2023-01-01: :class:`CertificatesOperations`
"""
api_version = self._get_api_version('certificates')
if api_version == '2016-03-01':
@@ -371,40 +413,56 @@ def certificates(self):
from .v2021_01_01.operations import CertificatesOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import CertificatesOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import CertificatesOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import CertificatesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import CertificatesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificates'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def container_apps(self):
"""Instance depends on the API version:
+ * 2021-03-01: :class:`ContainerAppsOperations`
* 2022-09-01: :class:`ContainerAppsOperations`
+ * 2023-01-01: :class:`ContainerAppsOperations`
"""
api_version = self._get_api_version('container_apps')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from .v2021_03_01.operations import ContainerAppsOperations as OperationClass
+ elif api_version == '2022-09-01':
from .v2022_09_01.operations import ContainerAppsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import ContainerAppsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'container_apps'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def container_apps_revisions(self):
"""Instance depends on the API version:
+ * 2021-03-01: :class:`ContainerAppsRevisionsOperations`
* 2022-09-01: :class:`ContainerAppsRevisionsOperations`
+ * 2023-01-01: :class:`ContainerAppsRevisionsOperations`
"""
api_version = self._get_api_version('container_apps_revisions')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from .v2021_03_01.operations import ContainerAppsRevisionsOperations as OperationClass
+ elif api_version == '2022-09-01':
from .v2022_09_01.operations import ContainerAppsRevisionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import ContainerAppsRevisionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'container_apps_revisions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def deleted_web_apps(self):
@@ -418,7 +476,9 @@ def deleted_web_apps(self):
* 2020-12-01: :class:`DeletedWebAppsOperations`
* 2021-01-01: :class:`DeletedWebAppsOperations`
* 2021-01-15: :class:`DeletedWebAppsOperations`
+ * 2021-03-01: :class:`DeletedWebAppsOperations`
* 2022-09-01: :class:`DeletedWebAppsOperations`
+ * 2023-01-01: :class:`DeletedWebAppsOperations`
"""
api_version = self._get_api_version('deleted_web_apps')
if api_version == '2016-03-01':
@@ -437,12 +497,16 @@ def deleted_web_apps(self):
from .v2021_01_01.operations import DeletedWebAppsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import DeletedWebAppsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import DeletedWebAppsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import DeletedWebAppsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import DeletedWebAppsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'deleted_web_apps'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def diagnostics(self):
@@ -456,7 +520,9 @@ def diagnostics(self):
* 2020-12-01: :class:`DiagnosticsOperations`
* 2021-01-01: :class:`DiagnosticsOperations`
* 2021-01-15: :class:`DiagnosticsOperations`
+ * 2021-03-01: :class:`DiagnosticsOperations`
* 2022-09-01: :class:`DiagnosticsOperations`
+ * 2023-01-01: :class:`DiagnosticsOperations`
"""
api_version = self._get_api_version('diagnostics')
if api_version == '2016-03-01':
@@ -475,12 +541,16 @@ def diagnostics(self):
from .v2021_01_01.operations import DiagnosticsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import DiagnosticsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import DiagnosticsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import DiagnosticsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import DiagnosticsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'diagnostics'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def domain_registration_provider(self):
@@ -494,7 +564,9 @@ def domain_registration_provider(self):
* 2020-12-01: :class:`DomainRegistrationProviderOperations`
* 2021-01-01: :class:`DomainRegistrationProviderOperations`
* 2021-01-15: :class:`DomainRegistrationProviderOperations`
+ * 2021-03-01: :class:`DomainRegistrationProviderOperations`
* 2022-09-01: :class:`DomainRegistrationProviderOperations`
+ * 2023-01-01: :class:`DomainRegistrationProviderOperations`
"""
api_version = self._get_api_version('domain_registration_provider')
if api_version == '2015-04-01':
@@ -513,12 +585,16 @@ def domain_registration_provider(self):
from .v2021_01_01.operations import DomainRegistrationProviderOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import DomainRegistrationProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import DomainRegistrationProviderOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import DomainRegistrationProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import DomainRegistrationProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'domain_registration_provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def domains(self):
@@ -532,7 +608,9 @@ def domains(self):
* 2020-12-01: :class:`DomainsOperations`
* 2021-01-01: :class:`DomainsOperations`
* 2021-01-15: :class:`DomainsOperations`
+ * 2021-03-01: :class:`DomainsOperations`
* 2022-09-01: :class:`DomainsOperations`
+ * 2023-01-01: :class:`DomainsOperations`
"""
api_version = self._get_api_version('domains')
if api_version == '2015-04-01':
@@ -551,12 +629,30 @@ def domains(self):
from .v2021_01_01.operations import DomainsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import DomainsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import DomainsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import DomainsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import DomainsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'domains'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
+
+ @property
+ def get_usages_in_location(self):
+ """Instance depends on the API version:
+
+ * 2023-01-01: :class:`GetUsagesInLocationOperations`
+ """
+ api_version = self._get_api_version('get_usages_in_location')
+ if api_version == '2023-01-01':
+ from .v2023_01_01.operations import GetUsagesInLocationOperations as OperationClass
+ else:
+ raise ValueError("API version {} does not have operation group 'get_usages_in_location'".format(api_version))
+ self._config.api_version = api_version
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def global_operations(self):
@@ -565,7 +661,9 @@ def global_operations(self):
* 2020-12-01: :class:`GlobalOperations`
* 2021-01-01: :class:`GlobalOperations`
* 2021-01-15: :class:`GlobalOperations`
+ * 2021-03-01: :class:`GlobalOperations`
* 2022-09-01: :class:`GlobalOperations`
+ * 2023-01-01: :class:`GlobalOperations`
"""
api_version = self._get_api_version('global_operations')
if api_version == '2020-12-01':
@@ -574,12 +672,16 @@ def global_operations(self):
from .v2021_01_01.operations import GlobalOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import GlobalOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import GlobalOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import GlobalOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import GlobalOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'global_operations'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def kube_environments(self):
@@ -587,19 +689,25 @@ def kube_environments(self):
* 2021-01-01: :class:`KubeEnvironmentsOperations`
* 2021-01-15: :class:`KubeEnvironmentsOperations`
+ * 2021-03-01: :class:`KubeEnvironmentsOperations`
* 2022-09-01: :class:`KubeEnvironmentsOperations`
+ * 2023-01-01: :class:`KubeEnvironmentsOperations`
"""
api_version = self._get_api_version('kube_environments')
if api_version == '2021-01-01':
from .v2021_01_01.operations import KubeEnvironmentsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import KubeEnvironmentsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import KubeEnvironmentsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import KubeEnvironmentsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import KubeEnvironmentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'kube_environments'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def provider(self):
@@ -613,7 +721,9 @@ def provider(self):
* 2020-12-01: :class:`ProviderOperations`
* 2021-01-01: :class:`ProviderOperations`
* 2021-01-15: :class:`ProviderOperations`
+ * 2021-03-01: :class:`ProviderOperations`
* 2022-09-01: :class:`ProviderOperations`
+ * 2023-01-01: :class:`ProviderOperations`
"""
api_version = self._get_api_version('provider')
if api_version == '2016-03-01':
@@ -632,12 +742,16 @@ def provider(self):
from .v2021_01_01.operations import ProviderOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import ProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import ProviderOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import ProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import ProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def recommendations(self):
@@ -651,7 +765,9 @@ def recommendations(self):
* 2020-12-01: :class:`RecommendationsOperations`
* 2021-01-01: :class:`RecommendationsOperations`
* 2021-01-15: :class:`RecommendationsOperations`
+ * 2021-03-01: :class:`RecommendationsOperations`
* 2022-09-01: :class:`RecommendationsOperations`
+ * 2023-01-01: :class:`RecommendationsOperations`
"""
api_version = self._get_api_version('recommendations')
if api_version == '2016-03-01':
@@ -670,12 +786,16 @@ def recommendations(self):
from .v2021_01_01.operations import RecommendationsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import RecommendationsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import RecommendationsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import RecommendationsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import RecommendationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'recommendations'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def resource_health_metadata(self):
@@ -689,7 +809,9 @@ def resource_health_metadata(self):
* 2020-12-01: :class:`ResourceHealthMetadataOperations`
* 2021-01-01: :class:`ResourceHealthMetadataOperations`
* 2021-01-15: :class:`ResourceHealthMetadataOperations`
+ * 2021-03-01: :class:`ResourceHealthMetadataOperations`
* 2022-09-01: :class:`ResourceHealthMetadataOperations`
+ * 2023-01-01: :class:`ResourceHealthMetadataOperations`
"""
api_version = self._get_api_version('resource_health_metadata')
if api_version == '2016-03-01':
@@ -708,12 +830,16 @@ def resource_health_metadata(self):
from .v2021_01_01.operations import ResourceHealthMetadataOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import ResourceHealthMetadataOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import ResourceHealthMetadataOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import ResourceHealthMetadataOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import ResourceHealthMetadataOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'resource_health_metadata'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def static_sites(self):
@@ -725,7 +851,9 @@ def static_sites(self):
* 2020-12-01: :class:`StaticSitesOperations`
* 2021-01-01: :class:`StaticSitesOperations`
* 2021-01-15: :class:`StaticSitesOperations`
+ * 2021-03-01: :class:`StaticSitesOperations`
* 2022-09-01: :class:`StaticSitesOperations`
+ * 2023-01-01: :class:`StaticSitesOperations`
"""
api_version = self._get_api_version('static_sites')
if api_version == '2019-08-01':
@@ -740,12 +868,16 @@ def static_sites(self):
from .v2021_01_01.operations import StaticSitesOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import StaticSitesOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import StaticSitesOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import StaticSitesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import StaticSitesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'static_sites'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def top_level_domains(self):
@@ -759,7 +891,9 @@ def top_level_domains(self):
* 2020-12-01: :class:`TopLevelDomainsOperations`
* 2021-01-01: :class:`TopLevelDomainsOperations`
* 2021-01-15: :class:`TopLevelDomainsOperations`
+ * 2021-03-01: :class:`TopLevelDomainsOperations`
* 2022-09-01: :class:`TopLevelDomainsOperations`
+ * 2023-01-01: :class:`TopLevelDomainsOperations`
"""
api_version = self._get_api_version('top_level_domains')
if api_version == '2015-04-01':
@@ -778,12 +912,16 @@ def top_level_domains(self):
from .v2021_01_01.operations import TopLevelDomainsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import TopLevelDomainsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import TopLevelDomainsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import TopLevelDomainsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import TopLevelDomainsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'top_level_domains'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def web_apps(self):
@@ -797,7 +935,9 @@ def web_apps(self):
* 2020-12-01: :class:`WebAppsOperations`
* 2021-01-01: :class:`WebAppsOperations`
* 2021-01-15: :class:`WebAppsOperations`
+ * 2021-03-01: :class:`WebAppsOperations`
* 2022-09-01: :class:`WebAppsOperations`
+ * 2023-01-01: :class:`WebAppsOperations`
"""
api_version = self._get_api_version('web_apps')
if api_version == '2016-08-01':
@@ -816,138 +956,169 @@ def web_apps(self):
from .v2021_01_01.operations import WebAppsOperations as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebAppsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from .v2021_03_01.operations import WebAppsOperations as OperationClass
elif api_version == '2022-09-01':
from .v2022_09_01.operations import WebAppsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WebAppsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'web_apps'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_run_action_repetitions(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowRunActionRepetitionsOperations`
+ * 2023-01-01: :class:`WorkflowRunActionRepetitionsOperations`
"""
api_version = self._get_api_version('workflow_run_action_repetitions')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_run_action_repetitions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_run_action_repetitions_request_histories(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations`
+ * 2023-01-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations`
"""
api_version = self._get_api_version('workflow_run_action_repetitions_request_histories')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_run_action_repetitions_request_histories'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_run_action_scope_repetitions(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowRunActionScopeRepetitionsOperations`
+ * 2023-01-01: :class:`WorkflowRunActionScopeRepetitionsOperations`
"""
api_version = self._get_api_version('workflow_run_action_scope_repetitions')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_run_action_scope_repetitions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_run_actions(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowRunActionsOperations`
+ * 2023-01-01: :class:`WorkflowRunActionsOperations`
"""
api_version = self._get_api_version('workflow_run_actions')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowRunActionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowRunActionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_run_actions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_runs(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowRunsOperations`
+ * 2023-01-01: :class:`WorkflowRunsOperations`
"""
api_version = self._get_api_version('workflow_runs')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowRunsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowRunsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_runs'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_trigger_histories(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowTriggerHistoriesOperations`
+ * 2023-01-01: :class:`WorkflowTriggerHistoriesOperations`
"""
api_version = self._get_api_version('workflow_trigger_histories')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowTriggerHistoriesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowTriggerHistoriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_trigger_histories'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_triggers(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowTriggersOperations`
+ * 2023-01-01: :class:`WorkflowTriggersOperations`
"""
api_version = self._get_api_version('workflow_triggers')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowTriggersOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowTriggersOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_triggers'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflow_versions(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowVersionsOperations`
+ * 2023-01-01: :class:`WorkflowVersionsOperations`
"""
api_version = self._get_api_version('workflow_versions')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowVersionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflow_versions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def workflows(self):
"""Instance depends on the API version:
* 2022-09-01: :class:`WorkflowsOperations`
+ * 2023-01-01: :class:`WorkflowsOperations`
"""
api_version = self._get_api_version('workflows')
if api_version == '2022-09-01':
from .v2022_09_01.operations import WorkflowsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from .v2023_01_01.operations import WorkflowsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'workflows'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
def close(self):
self._client.close()
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py
index 5d746893e3ce..3173479c18cc 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py
@@ -9,6 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------
from .._serialization import Serializer, Deserializer
+from io import IOBase
import sys
from typing import Any, AsyncIterable, IO, Optional, Union
@@ -30,6 +31,7 @@ async def check_name_availability(
name: str,
type: Union[str, _models.CheckNameResourceTypes],
is_fqdn: Optional[bool] = None,
+ environment_id: Optional[str] = None,
**kwargs: Any
) -> _models.ResourceNameAvailability:
"""Check if a resource name is available.
@@ -41,12 +43,17 @@ async def check_name_availability(
:param type: Resource type used for verification. Known values are: "Site", "Slot",
"HostingEnvironment", "PublishingUser", "Microsoft.Web/sites", "Microsoft.Web/sites/slots",
"Microsoft.Web/hostingEnvironments", and "Microsoft.Web/publishingUsers". Required.
- :type type: str or ~azure.mgmt.web.v2022_09_01.models.CheckNameResourceTypes
+ :type type: str or ~azure.mgmt.web.v2023_01_01.models.CheckNameResourceTypes
:param is_fqdn: Is fully qualified domain name. Default value is None.
:type is_fqdn: bool
+ :param environment_id: Azure Resource Manager ID of the customer's selected Container Apps
+ Environment on which to host the Function app. This must be of the form
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}.
+ Default value is None.
+ :type environment_id: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ResourceNameAvailability or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.ResourceNameAvailability
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.ResourceNameAvailability
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('check_name_availability')
@@ -66,8 +73,12 @@ async def check_name_availability(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'check_name_availability'".format(api_version))
mixin_instance = OperationClass()
@@ -77,7 +88,7 @@ async def check_name_availability(
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._serialize.client_side_validation = False
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
- return await mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)
+ return await mixin_instance.check_name_availability(name, type, is_fqdn, environment_id, **kwargs)
async def get_publishing_user(
self,
@@ -89,7 +100,7 @@ async def get_publishing_user(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: User or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.User
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.User
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_publishing_user')
@@ -109,8 +120,12 @@ async def get_publishing_user(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_publishing_user'".format(api_version))
mixin_instance = OperationClass()
@@ -135,7 +150,7 @@ async def get_source_control(
:type source_control_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SourceControl or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SourceControl
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SourceControl
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_source_control')
@@ -155,8 +170,12 @@ async def get_source_control(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_source_control'".format(api_version))
mixin_instance = OperationClass()
@@ -178,7 +197,7 @@ async def get_subscription_deployment_locations(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DeploymentLocations or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.DeploymentLocations
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.DeploymentLocations
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('get_subscription_deployment_locations')
@@ -198,8 +217,12 @@ async def get_subscription_deployment_locations(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'get_subscription_deployment_locations'".format(api_version))
mixin_instance = OperationClass()
@@ -211,6 +234,33 @@ async def get_subscription_deployment_locations(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return await mixin_instance.get_subscription_deployment_locations(**kwargs)
+ def list_ase_regions(
+ self,
+ **kwargs: Any
+ ) -> AsyncIterable["_models.AseRegion"]:
+ """Get a list of available ASE regions and its supported Skus.
+
+ Description for get a list of available ASE regions and its supported Skus.
+
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: An iterator like instance of either AseRegion or the result of cls(response)
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.AseRegion]
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ api_version = self._get_api_version('list_ase_regions')
+ if api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ else:
+ raise ValueError("API version {} does not have operation 'list_ase_regions'".format(api_version))
+ mixin_instance = OperationClass()
+ mixin_instance._client = self._client
+ mixin_instance._config = self._config
+ mixin_instance._config.api_version = api_version
+ mixin_instance._serialize = Serializer(self._models_dict(api_version))
+ mixin_instance._serialize.client_side_validation = False
+ mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
+ return mixin_instance.list_ase_regions(**kwargs)
+
def list_billing_meters(
self,
billing_location: Optional[str] = None,
@@ -228,7 +278,7 @@ def list_billing_meters(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BillingMeter or the result of cls(response)
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.BillingMeter]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.BillingMeter]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_billing_meters')
@@ -246,8 +296,12 @@ def list_billing_meters(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_billing_meters'".format(api_version))
mixin_instance = OperationClass()
@@ -273,12 +327,16 @@ def list_custom_host_name_sites(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either CustomHostnameSites or the result of cls(response)
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.CustomHostnameSites]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.CustomHostnameSites]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_custom_host_name_sites')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_custom_host_name_sites'".format(api_version))
mixin_instance = OperationClass()
@@ -305,7 +363,7 @@ def list_geo_regions(
:param sku: Name of SKU used to filter the regions. Known values are: "Free", "Shared",
"Basic", "Standard", "Premium", "Dynamic", "Isolated", "IsolatedV2", "PremiumV2", "PremiumV3",
"PremiumContainer", "ElasticPremium", and "ElasticIsolated". Default value is None.
- :type sku: str or ~azure.mgmt.web.v2022_09_01.models.SkuName
+ :type sku: str or ~azure.mgmt.web.v2023_01_01.models.SkuName
:param linux_workers_enabled: Specify :code:`true
` if you want to filter to only
regions that support Linux workers. Default value is None.
:type linux_workers_enabled: bool
@@ -317,7 +375,7 @@ def list_geo_regions(
:type linux_dynamic_workers_enabled: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either GeoRegion or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.GeoRegion]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.GeoRegion]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_geo_regions')
@@ -337,8 +395,12 @@ def list_geo_regions(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_geo_regions'".format(api_version))
mixin_instance = OperationClass()
@@ -361,7 +423,7 @@ def list_premier_add_on_offers(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either PremierAddOnOffer or the result of cls(response)
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.PremierAddOnOffer]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.PremierAddOnOffer]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_premier_add_on_offers')
@@ -381,8 +443,12 @@ def list_premier_add_on_offers(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_premier_add_on_offers'".format(api_version))
mixin_instance = OperationClass()
@@ -405,13 +471,13 @@ def list_site_identifiers_assigned_to_host_name(
:param name_identifier: Hostname information. Is either a NameIdentifier type or a IO type.
Required.
- :type name_identifier: ~azure.mgmt.web.v2022_09_01.models.NameIdentifier or IO
+ :type name_identifier: ~azure.mgmt.web.v2023_01_01.models.NameIdentifier or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either Identifier or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.Identifier]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.Identifier]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_site_identifiers_assigned_to_host_name')
@@ -431,8 +497,12 @@ def list_site_identifiers_assigned_to_host_name(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_site_identifiers_assigned_to_host_name'".format(api_version))
mixin_instance = OperationClass()
@@ -454,7 +524,7 @@ async def list_skus(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SkuInfos or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SkuInfos
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SkuInfos
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_skus')
@@ -474,8 +544,12 @@ async def list_skus(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_skus'".format(api_version))
mixin_instance = OperationClass()
@@ -498,7 +572,7 @@ def list_source_controls(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either SourceControl or the result of cls(response)
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2022_09_01.models.SourceControl]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_01_01.models.SourceControl]
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('list_source_controls')
@@ -518,8 +592,12 @@ def list_source_controls(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_source_controls'".format(api_version))
mixin_instance = OperationClass()
@@ -545,7 +623,7 @@ async def move( # pylint: disable=inconsistent-return-statements
:type resource_group_name: str
:param move_resource_envelope: Object that represents the resource to move. Is either a
CsmMoveResourceEnvelope type or a IO type. Required.
- :type move_resource_envelope: ~azure.mgmt.web.v2022_09_01.models.CsmMoveResourceEnvelope or IO
+ :type move_resource_envelope: ~azure.mgmt.web.v2023_01_01.models.CsmMoveResourceEnvelope or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
@@ -571,8 +649,12 @@ async def move( # pylint: disable=inconsistent-return-statements
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'move'".format(api_version))
mixin_instance = OperationClass()
@@ -594,13 +676,13 @@ async def update_publishing_user(
Description for Updates publishing user.
:param user_details: Details of publishing user. Is either a User type or a IO type. Required.
- :type user_details: ~azure.mgmt.web.v2022_09_01.models.User or IO
+ :type user_details: ~azure.mgmt.web.v2023_01_01.models.User or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: User or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.User
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.User
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('update_publishing_user')
@@ -620,8 +702,12 @@ async def update_publishing_user(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'update_publishing_user'".format(api_version))
mixin_instance = OperationClass()
@@ -647,13 +733,13 @@ async def update_source_control(
:type source_control_type: str
:param request_message: Source control token information. Is either a SourceControl type or a
IO type. Required.
- :type request_message: ~azure.mgmt.web.v2022_09_01.models.SourceControl or IO
+ :type request_message: ~azure.mgmt.web.v2023_01_01.models.SourceControl or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: SourceControl or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.SourceControl
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.SourceControl
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('update_source_control')
@@ -673,8 +759,12 @@ async def update_source_control(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'update_source_control'".format(api_version))
mixin_instance = OperationClass()
@@ -700,13 +790,13 @@ async def validate(
:type resource_group_name: str
:param validate_request: Request with the resources to validate. Is either a ValidateRequest
type or a IO type. Required.
- :type validate_request: ~azure.mgmt.web.v2022_09_01.models.ValidateRequest or IO
+ :type validate_request: ~azure.mgmt.web.v2023_01_01.models.ValidateRequest or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: ValidateResponse or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.ValidateResponse
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.ValidateResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('validate')
@@ -726,8 +816,12 @@ async def validate(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'validate'".format(api_version))
mixin_instance = OperationClass()
@@ -791,7 +885,7 @@ async def validate_move( # pylint: disable=inconsistent-return-statements
:type resource_group_name: str
:param move_resource_envelope: Object that represents the resource to move. Is either a
CsmMoveResourceEnvelope type or a IO type. Required.
- :type move_resource_envelope: ~azure.mgmt.web.v2022_09_01.models.CsmMoveResourceEnvelope or IO
+ :type move_resource_envelope: ~azure.mgmt.web.v2023_01_01.models.CsmMoveResourceEnvelope or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
@@ -817,8 +911,12 @@ async def validate_move( # pylint: disable=inconsistent-return-statements
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'validate_move'".format(api_version))
mixin_instance = OperationClass()
@@ -842,13 +940,13 @@ async def verify_hosting_environment_vnet(
analyzing the Network Security Group rules.
:param parameters: VNET information. Is either a VnetParameters type or a IO type. Required.
- :type parameters: ~azure.mgmt.web.v2022_09_01.models.VnetParameters or IO
+ :type parameters: ~azure.mgmt.web.v2023_01_01.models.VnetParameters or IO
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
Default value is None.
:paramtype content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VnetValidationFailureDetails or the result of cls(response)
- :rtype: ~azure.mgmt.web.v2022_09_01.models.VnetValidationFailureDetails
+ :rtype: ~azure.mgmt.web.v2023_01_01.models.VnetValidationFailureDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
api_version = self._get_api_version('verify_hosting_environment_vnet')
@@ -868,8 +966,12 @@ async def verify_hosting_environment_vnet(
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'verify_hosting_environment_vnet'".format(api_version))
mixin_instance = OperationClass()
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py
index 3964ef5f51a4..7e4a01cdc66a 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py
@@ -54,7 +54,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""
- DEFAULT_API_VERSION = '2022-09-01'
+ DEFAULT_API_VERSION = '2023-01-01'
_PROFILE_TAG = "azure.mgmt.web.WebSiteManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
@@ -74,6 +74,8 @@ def __init__(
profile: KnownProfiles = KnownProfiles.default,
**kwargs: Any
) -> None:
+ if api_version:
+ kwargs.setdefault('api_version', api_version)
self._config = WebSiteManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
super(WebSiteManagementClient, self).__init__(
@@ -102,7 +104,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2020-12-01: :mod:`v2020_12_01.models`
* 2021-01-01: :mod:`v2021_01_01.models`
* 2021-01-15: :mod:`v2021_01_15.models`
+ * 2021-03-01: :mod:`v2021_03_01.models`
* 2022-09-01: :mod:`v2022_09_01.models`
+ * 2023-01-01: :mod:`v2023_01_01.models`
"""
if api_version == '2015-04-01':
from ..v2015_04_01 import models
@@ -143,9 +147,15 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-01-15':
from ..v2021_01_15 import models
return models
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01 import models
+ return models
elif api_version == '2022-09-01':
from ..v2022_09_01 import models
return models
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01 import models
+ return models
raise ValueError("API version {} is not available".format(api_version))
@property
@@ -160,7 +170,9 @@ def app_service_certificate_orders(self):
* 2020-12-01: :class:`AppServiceCertificateOrdersOperations`
* 2021-01-01: :class:`AppServiceCertificateOrdersOperations`
* 2021-01-15: :class:`AppServiceCertificateOrdersOperations`
+ * 2021-03-01: :class:`AppServiceCertificateOrdersOperations`
* 2022-09-01: :class:`AppServiceCertificateOrdersOperations`
+ * 2023-01-01: :class:`AppServiceCertificateOrdersOperations`
"""
api_version = self._get_api_version('app_service_certificate_orders')
if api_version == '2015-08-01':
@@ -179,12 +191,16 @@ def app_service_certificate_orders(self):
from ..v2021_01_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_certificate_orders'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def app_service_environments(self):
@@ -198,7 +214,9 @@ def app_service_environments(self):
* 2020-12-01: :class:`AppServiceEnvironmentsOperations`
* 2021-01-01: :class:`AppServiceEnvironmentsOperations`
* 2021-01-15: :class:`AppServiceEnvironmentsOperations`
+ * 2021-03-01: :class:`AppServiceEnvironmentsOperations`
* 2022-09-01: :class:`AppServiceEnvironmentsOperations`
+ * 2023-01-01: :class:`AppServiceEnvironmentsOperations`
"""
api_version = self._get_api_version('app_service_environments')
if api_version == '2016-09-01':
@@ -217,12 +235,16 @@ def app_service_environments(self):
from ..v2021_01_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import AppServiceEnvironmentsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_environments'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def app_service_plans(self):
@@ -236,7 +258,9 @@ def app_service_plans(self):
* 2020-12-01: :class:`AppServicePlansOperations`
* 2021-01-01: :class:`AppServicePlansOperations`
* 2021-01-15: :class:`AppServicePlansOperations`
+ * 2021-03-01: :class:`AppServicePlansOperations`
* 2022-09-01: :class:`AppServicePlansOperations`
+ * 2023-01-01: :class:`AppServicePlansOperations`
"""
api_version = self._get_api_version('app_service_plans')
if api_version == '2016-09-01':
@@ -255,12 +279,16 @@ def app_service_plans(self):
from ..v2021_01_01.aio.operations import AppServicePlansOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import AppServicePlansOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import AppServicePlansOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import AppServicePlansOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import AppServicePlansOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'app_service_plans'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def billing_meters(self):
@@ -274,7 +302,7 @@ def billing_meters(self):
else:
raise ValueError("API version {} does not have operation group 'billing_meters'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificate_orders_diagnostics(self):
@@ -283,7 +311,9 @@ def certificate_orders_diagnostics(self):
* 2020-12-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2021-01-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2021-01-15: :class:`CertificateOrdersDiagnosticsOperations`
+ * 2021-03-01: :class:`CertificateOrdersDiagnosticsOperations`
* 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations`
+ * 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations`
"""
api_version = self._get_api_version('certificate_orders_diagnostics')
if api_version == '2020-12-01':
@@ -292,12 +322,16 @@ def certificate_orders_diagnostics(self):
from ..v2021_01_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificate_orders_diagnostics'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificate_registration_provider(self):
@@ -311,7 +345,9 @@ def certificate_registration_provider(self):
* 2020-12-01: :class:`CertificateRegistrationProviderOperations`
* 2021-01-01: :class:`CertificateRegistrationProviderOperations`
* 2021-01-15: :class:`CertificateRegistrationProviderOperations`
+ * 2021-03-01: :class:`CertificateRegistrationProviderOperations`
* 2022-09-01: :class:`CertificateRegistrationProviderOperations`
+ * 2023-01-01: :class:`CertificateRegistrationProviderOperations`
"""
api_version = self._get_api_version('certificate_registration_provider')
if api_version == '2015-08-01':
@@ -330,12 +366,16 @@ def certificate_registration_provider(self):
from ..v2021_01_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import CertificateRegistrationProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificate_registration_provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def certificates(self):
@@ -350,7 +390,9 @@ def certificates(self):
* 2020-12-01: :class:`CertificatesOperations`
* 2021-01-01: :class:`CertificatesOperations`
* 2021-01-15: :class:`CertificatesOperations`
+ * 2021-03-01: :class:`CertificatesOperations`
* 2022-09-01: :class:`CertificatesOperations`
+ * 2023-01-01: :class:`CertificatesOperations`
"""
api_version = self._get_api_version('certificates')
if api_version == '2016-03-01':
@@ -371,40 +413,56 @@ def certificates(self):
from ..v2021_01_01.aio.operations import CertificatesOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import CertificatesOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import CertificatesOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import CertificatesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import CertificatesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'certificates'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def container_apps(self):
"""Instance depends on the API version:
+ * 2021-03-01: :class:`ContainerAppsOperations`
* 2022-09-01: :class:`ContainerAppsOperations`
+ * 2023-01-01: :class:`ContainerAppsOperations`
"""
api_version = self._get_api_version('container_apps')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import ContainerAppsOperations as OperationClass
+ elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import ContainerAppsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import ContainerAppsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'container_apps'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def container_apps_revisions(self):
"""Instance depends on the API version:
+ * 2021-03-01: :class:`ContainerAppsRevisionsOperations`
* 2022-09-01: :class:`ContainerAppsRevisionsOperations`
+ * 2023-01-01: :class:`ContainerAppsRevisionsOperations`
"""
api_version = self._get_api_version('container_apps_revisions')
- if api_version == '2022-09-01':
+ if api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
+ elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'container_apps_revisions'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def deleted_web_apps(self):
@@ -418,7 +476,9 @@ def deleted_web_apps(self):
* 2020-12-01: :class:`DeletedWebAppsOperations`
* 2021-01-01: :class:`DeletedWebAppsOperations`
* 2021-01-15: :class:`DeletedWebAppsOperations`
+ * 2021-03-01: :class:`DeletedWebAppsOperations`
* 2022-09-01: :class:`DeletedWebAppsOperations`
+ * 2023-01-01: :class:`DeletedWebAppsOperations`
"""
api_version = self._get_api_version('deleted_web_apps')
if api_version == '2016-03-01':
@@ -437,12 +497,16 @@ def deleted_web_apps(self):
from ..v2021_01_01.aio.operations import DeletedWebAppsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import DeletedWebAppsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import DeletedWebAppsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import DeletedWebAppsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import DeletedWebAppsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'deleted_web_apps'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def diagnostics(self):
@@ -456,7 +520,9 @@ def diagnostics(self):
* 2020-12-01: :class:`DiagnosticsOperations`
* 2021-01-01: :class:`DiagnosticsOperations`
* 2021-01-15: :class:`DiagnosticsOperations`
+ * 2021-03-01: :class:`DiagnosticsOperations`
* 2022-09-01: :class:`DiagnosticsOperations`
+ * 2023-01-01: :class:`DiagnosticsOperations`
"""
api_version = self._get_api_version('diagnostics')
if api_version == '2016-03-01':
@@ -475,12 +541,16 @@ def diagnostics(self):
from ..v2021_01_01.aio.operations import DiagnosticsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import DiagnosticsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import DiagnosticsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import DiagnosticsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import DiagnosticsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'diagnostics'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def domain_registration_provider(self):
@@ -494,7 +564,9 @@ def domain_registration_provider(self):
* 2020-12-01: :class:`DomainRegistrationProviderOperations`
* 2021-01-01: :class:`DomainRegistrationProviderOperations`
* 2021-01-15: :class:`DomainRegistrationProviderOperations`
+ * 2021-03-01: :class:`DomainRegistrationProviderOperations`
* 2022-09-01: :class:`DomainRegistrationProviderOperations`
+ * 2023-01-01: :class:`DomainRegistrationProviderOperations`
"""
api_version = self._get_api_version('domain_registration_provider')
if api_version == '2015-04-01':
@@ -513,12 +585,16 @@ def domain_registration_provider(self):
from ..v2021_01_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import DomainRegistrationProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'domain_registration_provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def domains(self):
@@ -532,7 +608,9 @@ def domains(self):
* 2020-12-01: :class:`DomainsOperations`
* 2021-01-01: :class:`DomainsOperations`
* 2021-01-15: :class:`DomainsOperations`
+ * 2021-03-01: :class:`DomainsOperations`
* 2022-09-01: :class:`DomainsOperations`
+ * 2023-01-01: :class:`DomainsOperations`
"""
api_version = self._get_api_version('domains')
if api_version == '2015-04-01':
@@ -551,12 +629,30 @@ def domains(self):
from ..v2021_01_01.aio.operations import DomainsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import DomainsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import DomainsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import DomainsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import DomainsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'domains'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
+
+ @property
+ def get_usages_in_location(self):
+ """Instance depends on the API version:
+
+ * 2023-01-01: :class:`GetUsagesInLocationOperations`
+ """
+ api_version = self._get_api_version('get_usages_in_location')
+ if api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import GetUsagesInLocationOperations as OperationClass
+ else:
+ raise ValueError("API version {} does not have operation group 'get_usages_in_location'".format(api_version))
+ self._config.api_version = api_version
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def global_operations(self):
@@ -565,7 +661,9 @@ def global_operations(self):
* 2020-12-01: :class:`GlobalOperations`
* 2021-01-01: :class:`GlobalOperations`
* 2021-01-15: :class:`GlobalOperations`
+ * 2021-03-01: :class:`GlobalOperations`
* 2022-09-01: :class:`GlobalOperations`
+ * 2023-01-01: :class:`GlobalOperations`
"""
api_version = self._get_api_version('global_operations')
if api_version == '2020-12-01':
@@ -574,12 +672,16 @@ def global_operations(self):
from ..v2021_01_01.aio.operations import GlobalOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import GlobalOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import GlobalOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import GlobalOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import GlobalOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'global_operations'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def kube_environments(self):
@@ -587,19 +689,25 @@ def kube_environments(self):
* 2021-01-01: :class:`KubeEnvironmentsOperations`
* 2021-01-15: :class:`KubeEnvironmentsOperations`
+ * 2021-03-01: :class:`KubeEnvironmentsOperations`
* 2022-09-01: :class:`KubeEnvironmentsOperations`
+ * 2023-01-01: :class:`KubeEnvironmentsOperations`
"""
api_version = self._get_api_version('kube_environments')
if api_version == '2021-01-01':
from ..v2021_01_01.aio.operations import KubeEnvironmentsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import KubeEnvironmentsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import KubeEnvironmentsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import KubeEnvironmentsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import KubeEnvironmentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'kube_environments'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def provider(self):
@@ -613,7 +721,9 @@ def provider(self):
* 2020-12-01: :class:`ProviderOperations`
* 2021-01-01: :class:`ProviderOperations`
* 2021-01-15: :class:`ProviderOperations`
+ * 2021-03-01: :class:`ProviderOperations`
* 2022-09-01: :class:`ProviderOperations`
+ * 2023-01-01: :class:`ProviderOperations`
"""
api_version = self._get_api_version('provider')
if api_version == '2016-03-01':
@@ -632,12 +742,16 @@ def provider(self):
from ..v2021_01_01.aio.operations import ProviderOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import ProviderOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import ProviderOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import ProviderOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import ProviderOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'provider'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def recommendations(self):
@@ -651,7 +765,9 @@ def recommendations(self):
* 2020-12-01: :class:`RecommendationsOperations`
* 2021-01-01: :class:`RecommendationsOperations`
* 2021-01-15: :class:`RecommendationsOperations`
+ * 2021-03-01: :class:`RecommendationsOperations`
* 2022-09-01: :class:`RecommendationsOperations`
+ * 2023-01-01: :class:`RecommendationsOperations`
"""
api_version = self._get_api_version('recommendations')
if api_version == '2016-03-01':
@@ -670,12 +786,16 @@ def recommendations(self):
from ..v2021_01_01.aio.operations import RecommendationsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import RecommendationsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import RecommendationsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import RecommendationsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import RecommendationsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'recommendations'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def resource_health_metadata(self):
@@ -689,7 +809,9 @@ def resource_health_metadata(self):
* 2020-12-01: :class:`ResourceHealthMetadataOperations`
* 2021-01-01: :class:`ResourceHealthMetadataOperations`
* 2021-01-15: :class:`ResourceHealthMetadataOperations`
+ * 2021-03-01: :class:`ResourceHealthMetadataOperations`
* 2022-09-01: :class:`ResourceHealthMetadataOperations`
+ * 2023-01-01: :class:`ResourceHealthMetadataOperations`
"""
api_version = self._get_api_version('resource_health_metadata')
if api_version == '2016-03-01':
@@ -708,12 +830,16 @@ def resource_health_metadata(self):
from ..v2021_01_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import ResourceHealthMetadataOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'resource_health_metadata'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def static_sites(self):
@@ -725,7 +851,9 @@ def static_sites(self):
* 2020-12-01: :class:`StaticSitesOperations`
* 2021-01-01: :class:`StaticSitesOperations`
* 2021-01-15: :class:`StaticSitesOperations`
+ * 2021-03-01: :class:`StaticSitesOperations`
* 2022-09-01: :class:`StaticSitesOperations`
+ * 2023-01-01: :class:`StaticSitesOperations`
"""
api_version = self._get_api_version('static_sites')
if api_version == '2019-08-01':
@@ -740,12 +868,16 @@ def static_sites(self):
from ..v2021_01_01.aio.operations import StaticSitesOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import StaticSitesOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import StaticSitesOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import StaticSitesOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import StaticSitesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'static_sites'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def top_level_domains(self):
@@ -759,7 +891,9 @@ def top_level_domains(self):
* 2020-12-01: :class:`TopLevelDomainsOperations`
* 2021-01-01: :class:`TopLevelDomainsOperations`
* 2021-01-15: :class:`TopLevelDomainsOperations`
+ * 2021-03-01: :class:`TopLevelDomainsOperations`
* 2022-09-01: :class:`TopLevelDomainsOperations`
+ * 2023-01-01: :class:`TopLevelDomainsOperations`
"""
api_version = self._get_api_version('top_level_domains')
if api_version == '2015-04-01':
@@ -778,12 +912,16 @@ def top_level_domains(self):
from ..v2021_01_01.aio.operations import TopLevelDomainsOperations as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import TopLevelDomainsOperations as OperationClass
+ elif api_version == '2021-03-01':
+ from ..v2021_03_01.aio.operations import TopLevelDomainsOperations as OperationClass
elif api_version == '2022-09-01':
from ..v2022_09_01.aio.operations import TopLevelDomainsOperations as OperationClass
+ elif api_version == '2023-01-01':
+ from ..v2023_01_01.aio.operations import TopLevelDomainsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'top_level_domains'".format(api_version))
self._config.api_version = api_version
- return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
+ return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)), api_version)
@property
def web_apps(self):
@@ -797,7 +935,9 @@ def web_apps(self):
* 2020-12-01: :class:`WebAppsOperations`
* 2021-01-01: :class:`WebAppsOperations`
* 2021-01-15: :class:`WebAppsOperations