Родитель
a0b796698d
Коммит
15d3f80572
|
@ -1,5 +1,9 @@
|
|||
# Release History
|
||||
|
||||
## 0.0.0 (2024-11-18)
|
||||
|
||||
change log generation failed!!!
|
||||
|
||||
## 7.3.1 (2024-08-19)
|
||||
|
||||
### Bugs Fixed
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"commit": "c1d839d48ee936c9338431c38f2cbbfbc9879ea2",
|
||||
"commit": "ff7b8e12e78b352561e2e470dd045be310a313fa",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
|
||||
"autorest": "3.10.2",
|
||||
"use": [
|
||||
"@autorest/python@6.17.0",
|
||||
"@autorest/python@6.26.4",
|
||||
"@autorest/modelerfour@4.27.0"
|
||||
],
|
||||
"autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.17.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
|
||||
"autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --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",
|
||||
|
|
|
@ -34,6 +34,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
environment_id: Optional[str] = None,
|
||||
**kwargs: Any
|
||||
) -> _models.ResourceNameAvailability:
|
||||
# pylint: disable=line-too-long
|
||||
"""Check if a resource name is available.
|
||||
|
||||
Description for Check if a resource name is available.
|
||||
|
@ -43,7 +44,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
: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.v2023_12_01.models.CheckNameResourceTypes
|
||||
:type type: str or ~azure.mgmt.web.v2024_04_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
|
||||
|
@ -52,7 +53,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Default value is None.
|
||||
:type environment_id: str
|
||||
:return: ResourceNameAvailability or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.ResourceNameAvailability
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.ResourceNameAvailability
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('check_name_availability')
|
||||
|
@ -80,6 +81,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'check_name_availability'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -100,7 +103,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for Gets publishing user.
|
||||
|
||||
:return: User or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.User
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_publishing_user')
|
||||
|
@ -128,6 +131,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'get_publishing_user'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -151,7 +156,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:param source_control_type: Type of source control. Required.
|
||||
:type source_control_type: str
|
||||
:return: SourceControl or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SourceControl
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_source_control')
|
||||
|
@ -179,6 +184,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'get_source_control'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -199,7 +206,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for Gets list of available geo regions plus ministamps.
|
||||
|
||||
:return: DeploymentLocations or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.DeploymentLocations
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.DeploymentLocations
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_subscription_deployment_locations')
|
||||
|
@ -227,6 +234,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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()
|
||||
|
@ -247,7 +256,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for get a list of available ASE regions and its supported Skus.
|
||||
|
||||
:return: An iterator like instance of either AseRegion or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.AseRegion]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.AseRegion]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_ase_regions')
|
||||
|
@ -255,6 +264,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_ase_regions'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -281,7 +292,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:param os_type: App Service OS type meters used for. Default value is None.
|
||||
:type os_type: str
|
||||
:return: An iterator like instance of either BillingMeter or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.BillingMeter]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.BillingMeter]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_billing_meters')
|
||||
|
@ -307,6 +318,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_billing_meters'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -330,7 +343,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:param hostname: Specific hostname. Default value is None.
|
||||
:type hostname: str
|
||||
:return: An iterator like instance of either CustomHostnameSites or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.CustomHostnameSites]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.CustomHostnameSites]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_custom_host_name_sites')
|
||||
|
@ -342,6 +355,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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()
|
||||
|
@ -369,7 +384,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
"Basic", "Standard", "Premium", "Dynamic", "Isolated", "IsolatedV2", "PremiumV2", "PremiumV3",
|
||||
"PremiumContainer", "ElasticPremium", "ElasticIsolated", and "FlexConsumption". Default value
|
||||
is None.
|
||||
:type sku: str or ~azure.mgmt.web.v2023_12_01.models.SkuName
|
||||
:type sku: str or ~azure.mgmt.web.v2024_04_01.models.SkuName
|
||||
:param linux_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
|
||||
regions that support Linux workers. Default value is None.
|
||||
:type linux_workers_enabled: bool
|
||||
|
@ -380,7 +395,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
to only regions that support Linux Consumption Workers. Default value is None.
|
||||
:type linux_dynamic_workers_enabled: bool
|
||||
:return: An iterator like instance of either GeoRegion or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.GeoRegion]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.GeoRegion]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_geo_regions')
|
||||
|
@ -408,6 +423,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_geo_regions'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -428,7 +445,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for List all premier add-on offers.
|
||||
|
||||
:return: An iterator like instance of either PremierAddOnOffer or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.PremierAddOnOffer]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.PremierAddOnOffer]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_premier_add_on_offers')
|
||||
|
@ -456,6 +473,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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()
|
||||
|
@ -478,9 +497,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param name_identifier: Hostname information. Is either a NameIdentifier type or a IO[bytes]
|
||||
type. Required.
|
||||
:type name_identifier: ~azure.mgmt.web.v2023_12_01.models.NameIdentifier or IO[bytes]
|
||||
:type name_identifier: ~azure.mgmt.web.v2024_04_01.models.NameIdentifier or IO[bytes]
|
||||
:return: An iterator like instance of either Identifier or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.Identifier]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.Identifier]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_site_identifiers_assigned_to_host_name')
|
||||
|
@ -508,6 +527,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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()
|
||||
|
@ -528,7 +549,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for List all SKUs.
|
||||
|
||||
:return: SkuInfos or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SkuInfos
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SkuInfos
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_skus')
|
||||
|
@ -556,6 +577,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_skus'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -576,7 +599,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for Gets the source controls available for Azure websites.
|
||||
|
||||
:return: An iterator like instance of either SourceControl or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2023_12_01.models.SourceControl]
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2024_04_01.models.SourceControl]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_source_controls')
|
||||
|
@ -604,6 +627,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_source_controls'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -629,7 +654,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param move_resource_envelope: Object that represents the resource to move. Is either a
|
||||
CsmMoveResourceEnvelope type or a IO[bytes] type. Required.
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2023_12_01.models.CsmMoveResourceEnvelope or
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2024_04_01.models.CsmMoveResourceEnvelope or
|
||||
IO[bytes]
|
||||
:return: None or the result of cls(response)
|
||||
:rtype: None
|
||||
|
@ -660,6 +685,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'move'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -682,9 +709,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param user_details: Details of publishing user. Is either a User type or a IO[bytes] type.
|
||||
Required.
|
||||
:type user_details: ~azure.mgmt.web.v2023_12_01.models.User or IO[bytes]
|
||||
:type user_details: ~azure.mgmt.web.v2024_04_01.models.User or IO[bytes]
|
||||
:return: User or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.User
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('update_publishing_user')
|
||||
|
@ -712,6 +739,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'update_publishing_user'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -737,9 +766,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type source_control_type: str
|
||||
:param request_message: Source control token information. Is either a SourceControl type or a
|
||||
IO[bytes] type. Required.
|
||||
:type request_message: ~azure.mgmt.web.v2023_12_01.models.SourceControl or IO[bytes]
|
||||
:type request_message: ~azure.mgmt.web.v2024_04_01.models.SourceControl or IO[bytes]
|
||||
:return: SourceControl or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SourceControl
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('update_source_control')
|
||||
|
@ -767,6 +796,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'update_source_control'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -792,9 +823,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param validate_request: Request with the resources to validate. Is either a ValidateRequest
|
||||
type or a IO[bytes] type. Required.
|
||||
:type validate_request: ~azure.mgmt.web.v2023_12_01.models.ValidateRequest or IO[bytes]
|
||||
:type validate_request: ~azure.mgmt.web.v2024_04_01.models.ValidateRequest or IO[bytes]
|
||||
:return: ValidateResponse or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.ValidateResponse
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.ValidateResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('validate')
|
||||
|
@ -822,6 +853,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'validate'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -881,7 +914,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param move_resource_envelope: Object that represents the resource to move. Is either a
|
||||
CsmMoveResourceEnvelope type or a IO[bytes] type. Required.
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2023_12_01.models.CsmMoveResourceEnvelope or
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2024_04_01.models.CsmMoveResourceEnvelope or
|
||||
IO[bytes]
|
||||
:return: None or the result of cls(response)
|
||||
:rtype: None
|
||||
|
@ -912,6 +945,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'validate_move'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -936,9 +971,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param parameters: VNET information. Is either a VnetParameters type or a IO[bytes] type.
|
||||
Required.
|
||||
:type parameters: ~azure.mgmt.web.v2023_12_01.models.VnetParameters or IO[bytes]
|
||||
:type parameters: ~azure.mgmt.web.v2024_04_01.models.VnetParameters or IO[bytes]
|
||||
:return: VnetValidationFailureDetails or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.VnetValidationFailureDetails
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.VnetValidationFailureDetails
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('verify_hosting_environment_vnet')
|
||||
|
@ -966,6 +1001,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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()
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -5,4 +5,4 @@
|
|||
# license information.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
VERSION = "7.3.1"
|
||||
VERSION = "0.0.0"
|
||||
|
|
|
@ -57,7 +57,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 = '2023-12-01'
|
||||
DEFAULT_API_VERSION = '2024-04-01'
|
||||
_PROFILE_TAG = "azure.mgmt.web.WebSiteManagementClient"
|
||||
LATEST_PROFILE = ProfileDefinition({
|
||||
_PROFILE_TAG: {
|
||||
|
@ -129,6 +129,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :mod:`v2022_09_01.models<azure.mgmt.web.v2022_09_01.models>`
|
||||
* 2023-01-01: :mod:`v2023_01_01.models<azure.mgmt.web.v2023_01_01.models>`
|
||||
* 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.web.v2023_12_01.models>`
|
||||
* 2024-04-01: :mod:`v2024_04_01.models<azure.mgmt.web.v2024_04_01.models>`
|
||||
"""
|
||||
if api_version == '2015-04-01':
|
||||
from .v2015_04_01 import models
|
||||
|
@ -181,6 +182,9 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01 import models
|
||||
return models
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_01 import models
|
||||
return models
|
||||
raise ValueError("API version {} is not available".format(api_version))
|
||||
|
||||
@property
|
||||
|
@ -199,6 +203,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2022_09_01.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2023-01-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2023_01_01.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2023-12-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2023_12_01.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2024-04-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2024_04_01.operations.AppServiceCertificateOrdersOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_certificate_orders')
|
||||
if api_version == '2015-08-01':
|
||||
|
@ -225,6 +230,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import AppServiceCertificateOrdersOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import AppServiceCertificateOrdersOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -246,6 +253,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2022_09_01.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2023-01-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2023_01_01.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2023-12-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2023_12_01.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2024-04-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2024_04_01.operations.AppServiceEnvironmentsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_environments')
|
||||
if api_version == '2016-09-01':
|
||||
|
@ -272,6 +280,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import AppServiceEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import AppServiceEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -293,6 +303,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2022_09_01.operations.AppServicePlansOperations>`
|
||||
* 2023-01-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2023_01_01.operations.AppServicePlansOperations>`
|
||||
* 2023-12-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2023_12_01.operations.AppServicePlansOperations>`
|
||||
* 2024-04-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2024_04_01.operations.AppServicePlansOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_plans')
|
||||
if api_version == '2016-09-01':
|
||||
|
@ -319,6 +330,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import AppServicePlansOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import AppServicePlansOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -349,6 +362,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2022_09_01.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2023_01_01.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2023-12-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2023_12_01.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2024-04-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2024_04_01.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificate_orders_diagnostics')
|
||||
if api_version == '2020-12-01':
|
||||
|
@ -365,6 +379,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -386,6 +402,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2022_09_01.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2023-01-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2023_01_01.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2023-12-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2023_12_01.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2024-04-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2024_04_01.operations.CertificateRegistrationProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificate_registration_provider')
|
||||
if api_version == '2015-08-01':
|
||||
|
@ -412,6 +429,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import CertificateRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import CertificateRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -434,6 +453,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificatesOperations<azure.mgmt.web.v2022_09_01.operations.CertificatesOperations>`
|
||||
* 2023-01-01: :class:`CertificatesOperations<azure.mgmt.web.v2023_01_01.operations.CertificatesOperations>`
|
||||
* 2023-12-01: :class:`CertificatesOperations<azure.mgmt.web.v2023_12_01.operations.CertificatesOperations>`
|
||||
* 2024-04-01: :class:`CertificatesOperations<azure.mgmt.web.v2024_04_01.operations.CertificatesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificates')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -462,6 +482,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import CertificatesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import CertificatesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -475,6 +497,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2022_09_01.operations.ContainerAppsOperations>`
|
||||
* 2023-01-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_01_01.operations.ContainerAppsOperations>`
|
||||
* 2023-12-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_12_01.operations.ContainerAppsOperations>`
|
||||
* 2024-04-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2024_04_01.operations.ContainerAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('container_apps')
|
||||
if api_version == '2021-03-01':
|
||||
|
@ -485,6 +508,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import ContainerAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import ContainerAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -498,6 +523,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2022_09_01.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2023-01-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_01_01.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2023-12-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_12_01.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2024-04-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2024_04_01.operations.ContainerAppsRevisionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('container_apps_revisions')
|
||||
if api_version == '2021-03-01':
|
||||
|
@ -508,6 +534,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import ContainerAppsRevisionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import ContainerAppsRevisionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -529,6 +557,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2022_09_01.operations.DeletedWebAppsOperations>`
|
||||
* 2023-01-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2023_01_01.operations.DeletedWebAppsOperations>`
|
||||
* 2023-12-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2023_12_01.operations.DeletedWebAppsOperations>`
|
||||
* 2024-04-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2024_04_01.operations.DeletedWebAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('deleted_web_apps')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -555,6 +584,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import DeletedWebAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import DeletedWebAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -576,6 +607,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2022_09_01.operations.DiagnosticsOperations>`
|
||||
* 2023-01-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2023_01_01.operations.DiagnosticsOperations>`
|
||||
* 2023-12-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2023_12_01.operations.DiagnosticsOperations>`
|
||||
* 2024-04-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2024_04_01.operations.DiagnosticsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('diagnostics')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -602,6 +634,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import DiagnosticsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import DiagnosticsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -623,6 +657,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2022_09_01.operations.DomainRegistrationProviderOperations>`
|
||||
* 2023-01-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2023_01_01.operations.DomainRegistrationProviderOperations>`
|
||||
* 2023-12-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2023_12_01.operations.DomainRegistrationProviderOperations>`
|
||||
* 2024-04-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2024_04_01.operations.DomainRegistrationProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('domain_registration_provider')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -649,6 +684,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import DomainRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import DomainRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -670,6 +707,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DomainsOperations<azure.mgmt.web.v2022_09_01.operations.DomainsOperations>`
|
||||
* 2023-01-01: :class:`DomainsOperations<azure.mgmt.web.v2023_01_01.operations.DomainsOperations>`
|
||||
* 2023-12-01: :class:`DomainsOperations<azure.mgmt.web.v2023_12_01.operations.DomainsOperations>`
|
||||
* 2024-04-01: :class:`DomainsOperations<azure.mgmt.web.v2024_04_01.operations.DomainsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('domains')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -696,6 +734,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import DomainsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import DomainsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -707,12 +747,15 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
|
||||
* 2023-01-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2023_01_01.operations.GetUsagesInLocationOperations>`
|
||||
* 2023-12-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2023_12_01.operations.GetUsagesInLocationOperations>`
|
||||
* 2024-04-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2024_04_01.operations.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
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import GetUsagesInLocationOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -729,6 +772,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`GlobalOperations<azure.mgmt.web.v2022_09_01.operations.GlobalOperations>`
|
||||
* 2023-01-01: :class:`GlobalOperations<azure.mgmt.web.v2023_01_01.operations.GlobalOperations>`
|
||||
* 2023-12-01: :class:`GlobalOperations<azure.mgmt.web.v2023_12_01.operations.GlobalOperations>`
|
||||
* 2024-04-01: :class:`GlobalOperations<azure.mgmt.web.v2024_04_01.operations.GlobalOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('global_operations')
|
||||
if api_version == '2020-12-01':
|
||||
|
@ -745,6 +789,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import GlobalOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import GlobalOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -760,6 +806,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2022_09_01.operations.KubeEnvironmentsOperations>`
|
||||
* 2023-01-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2023_01_01.operations.KubeEnvironmentsOperations>`
|
||||
* 2023-12-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2023_12_01.operations.KubeEnvironmentsOperations>`
|
||||
* 2024-04-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2024_04_01.operations.KubeEnvironmentsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('kube_environments')
|
||||
if api_version == '2021-01-01':
|
||||
|
@ -774,6 +821,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import KubeEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import KubeEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -795,6 +844,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ProviderOperations<azure.mgmt.web.v2022_09_01.operations.ProviderOperations>`
|
||||
* 2023-01-01: :class:`ProviderOperations<azure.mgmt.web.v2023_01_01.operations.ProviderOperations>`
|
||||
* 2023-12-01: :class:`ProviderOperations<azure.mgmt.web.v2023_12_01.operations.ProviderOperations>`
|
||||
* 2024-04-01: :class:`ProviderOperations<azure.mgmt.web.v2024_04_01.operations.ProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('provider')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -821,6 +871,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import ProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import ProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -842,6 +894,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`RecommendationsOperations<azure.mgmt.web.v2022_09_01.operations.RecommendationsOperations>`
|
||||
* 2023-01-01: :class:`RecommendationsOperations<azure.mgmt.web.v2023_01_01.operations.RecommendationsOperations>`
|
||||
* 2023-12-01: :class:`RecommendationsOperations<azure.mgmt.web.v2023_12_01.operations.RecommendationsOperations>`
|
||||
* 2024-04-01: :class:`RecommendationsOperations<azure.mgmt.web.v2024_04_01.operations.RecommendationsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('recommendations')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -868,6 +921,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import RecommendationsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import RecommendationsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -889,6 +944,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2022_09_01.operations.ResourceHealthMetadataOperations>`
|
||||
* 2023-01-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2023_01_01.operations.ResourceHealthMetadataOperations>`
|
||||
* 2023-12-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2023_12_01.operations.ResourceHealthMetadataOperations>`
|
||||
* 2024-04-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2024_04_01.operations.ResourceHealthMetadataOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('resource_health_metadata')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -915,6 +971,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import ResourceHealthMetadataOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import ResourceHealthMetadataOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -934,6 +992,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`StaticSitesOperations<azure.mgmt.web.v2022_09_01.operations.StaticSitesOperations>`
|
||||
* 2023-01-01: :class:`StaticSitesOperations<azure.mgmt.web.v2023_01_01.operations.StaticSitesOperations>`
|
||||
* 2023-12-01: :class:`StaticSitesOperations<azure.mgmt.web.v2023_12_01.operations.StaticSitesOperations>`
|
||||
* 2024-04-01: :class:`StaticSitesOperations<azure.mgmt.web.v2024_04_01.operations.StaticSitesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('static_sites')
|
||||
if api_version == '2019-08-01':
|
||||
|
@ -956,6 +1015,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import StaticSitesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import StaticSitesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -977,6 +1038,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2022_09_01.operations.TopLevelDomainsOperations>`
|
||||
* 2023-01-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2023_01_01.operations.TopLevelDomainsOperations>`
|
||||
* 2023-12-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2023_12_01.operations.TopLevelDomainsOperations>`
|
||||
* 2024-04-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2024_04_01.operations.TopLevelDomainsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('top_level_domains')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -1003,6 +1065,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import TopLevelDomainsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import TopLevelDomainsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1024,6 +1088,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WebAppsOperations<azure.mgmt.web.v2022_09_01.operations.WebAppsOperations>`
|
||||
* 2023-01-01: :class:`WebAppsOperations<azure.mgmt.web.v2023_01_01.operations.WebAppsOperations>`
|
||||
* 2023-12-01: :class:`WebAppsOperations<azure.mgmt.web.v2023_12_01.operations.WebAppsOperations>`
|
||||
* 2024-04-01: :class:`WebAppsOperations<azure.mgmt.web.v2024_04_01.operations.WebAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('web_apps')
|
||||
if api_version == '2016-08-01':
|
||||
|
@ -1050,6 +1115,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WebAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WebAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1062,6 +1129,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_repetitions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1070,6 +1138,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1082,6 +1152,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_repetitions_request_histories')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1090,6 +1161,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1102,6 +1175,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_scope_repetitions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1110,6 +1184,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1122,6 +1198,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowRunActionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowRunActionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowRunActionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowRunActionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_actions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1130,6 +1207,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowRunActionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowRunActionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1142,6 +1221,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowRunsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowRunsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowRunsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowRunsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_runs')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1150,6 +1230,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowRunsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowRunsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1162,6 +1244,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2023-01-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2023-12-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2024-04-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowTriggerHistoriesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_trigger_histories')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1170,6 +1253,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowTriggerHistoriesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowTriggerHistoriesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1182,6 +1267,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowTriggersOperations>`
|
||||
* 2023-01-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowTriggersOperations>`
|
||||
* 2023-12-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowTriggersOperations>`
|
||||
* 2024-04-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowTriggersOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_triggers')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1190,6 +1276,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowTriggersOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowTriggersOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1202,6 +1290,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowVersionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowVersionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowVersionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowVersionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_versions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1210,6 +1299,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowVersionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowVersionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
@ -1222,6 +1313,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowsOperations<azure.mgmt.web.v2022_09_01.operations.WorkflowsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowsOperations<azure.mgmt.web.v2023_01_01.operations.WorkflowsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowsOperations<azure.mgmt.web.v2023_12_01.operations.WorkflowsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowsOperations<azure.mgmt.web.v2024_04_01.operations.WorkflowsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflows')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1230,6 +1322,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from .v2023_01_01.operations import WorkflowsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from .v2023_12_01.operations import WorkflowsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from .v2024_04_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
|
||||
|
|
|
@ -34,6 +34,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
environment_id: Optional[str] = None,
|
||||
**kwargs: Any
|
||||
) -> _models.ResourceNameAvailability:
|
||||
# pylint: disable=line-too-long
|
||||
"""Check if a resource name is available.
|
||||
|
||||
Description for Check if a resource name is available.
|
||||
|
@ -43,7 +44,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
: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.v2023_12_01.models.CheckNameResourceTypes
|
||||
:type type: str or ~azure.mgmt.web.v2024_04_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
|
||||
|
@ -52,7 +53,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Default value is None.
|
||||
:type environment_id: str
|
||||
:return: ResourceNameAvailability or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.ResourceNameAvailability
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.ResourceNameAvailability
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('check_name_availability')
|
||||
|
@ -80,6 +81,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -100,7 +103,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for Gets publishing user.
|
||||
|
||||
:return: User or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.User
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_publishing_user')
|
||||
|
@ -128,6 +131,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -151,7 +156,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:param source_control_type: Type of source control. Required.
|
||||
:type source_control_type: str
|
||||
:return: SourceControl or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SourceControl
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_source_control')
|
||||
|
@ -179,6 +184,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -199,7 +206,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for Gets list of available geo regions plus ministamps.
|
||||
|
||||
:return: DeploymentLocations or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.DeploymentLocations
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.DeploymentLocations
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('get_subscription_deployment_locations')
|
||||
|
@ -227,6 +234,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -247,7 +256,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for get a list of available ASE regions and its supported Skus.
|
||||
|
||||
:return: An iterator like instance of either AseRegion or the result of cls(response)
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.AseRegion]
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.AseRegion]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_ase_regions')
|
||||
|
@ -255,6 +264,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -282,7 +293,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type os_type: str
|
||||
:return: An iterator like instance of either BillingMeter or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.BillingMeter]
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.BillingMeter]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_billing_meters')
|
||||
|
@ -308,6 +319,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -332,7 +345,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type hostname: str
|
||||
:return: An iterator like instance of either CustomHostnameSites or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.CustomHostnameSites]
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.CustomHostnameSites]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_custom_host_name_sites')
|
||||
|
@ -344,6 +357,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -371,7 +386,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
"Basic", "Standard", "Premium", "Dynamic", "Isolated", "IsolatedV2", "PremiumV2", "PremiumV3",
|
||||
"PremiumContainer", "ElasticPremium", "ElasticIsolated", and "FlexConsumption". Default value
|
||||
is None.
|
||||
:type sku: str or ~azure.mgmt.web.v2023_12_01.models.SkuName
|
||||
:type sku: str or ~azure.mgmt.web.v2024_04_01.models.SkuName
|
||||
:param linux_workers_enabled: Specify :code:`<code>true</code>` if you want to filter to only
|
||||
regions that support Linux workers. Default value is None.
|
||||
:type linux_workers_enabled: bool
|
||||
|
@ -382,7 +397,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
to only regions that support Linux Consumption Workers. Default value is None.
|
||||
:type linux_dynamic_workers_enabled: bool
|
||||
:return: An iterator like instance of either GeoRegion or the result of cls(response)
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.GeoRegion]
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.GeoRegion]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_geo_regions')
|
||||
|
@ -410,6 +425,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -431,7 +448,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:return: An iterator like instance of either PremierAddOnOffer or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.PremierAddOnOffer]
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.PremierAddOnOffer]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_premier_add_on_offers')
|
||||
|
@ -459,6 +476,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -481,9 +500,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param name_identifier: Hostname information. Is either a NameIdentifier type or a IO[bytes]
|
||||
type. Required.
|
||||
:type name_identifier: ~azure.mgmt.web.v2023_12_01.models.NameIdentifier or IO[bytes]
|
||||
:type name_identifier: ~azure.mgmt.web.v2024_04_01.models.NameIdentifier or IO[bytes]
|
||||
:return: An iterator like instance of either Identifier or the result of cls(response)
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.Identifier]
|
||||
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.Identifier]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_site_identifiers_assigned_to_host_name')
|
||||
|
@ -511,6 +530,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -531,7 +552,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
Description for List all SKUs.
|
||||
|
||||
:return: SkuInfos or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SkuInfos
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SkuInfos
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_skus')
|
||||
|
@ -559,6 +580,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'list_skus'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -580,7 +603,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:return: An iterator like instance of either SourceControl or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2023_12_01.models.SourceControl]
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2024_04_01.models.SourceControl]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('list_source_controls')
|
||||
|
@ -608,6 +631,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -619,7 +644,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
|
||||
return mixin_instance.list_source_controls(**kwargs)
|
||||
|
||||
async def move( # pylint: disable=inconsistent-return-statements
|
||||
async def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],
|
||||
|
@ -633,7 +658,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param move_resource_envelope: Object that represents the resource to move. Is either a
|
||||
CsmMoveResourceEnvelope type or a IO[bytes] type. Required.
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2023_12_01.models.CsmMoveResourceEnvelope or
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2024_04_01.models.CsmMoveResourceEnvelope or
|
||||
IO[bytes]
|
||||
:return: None or the result of cls(response)
|
||||
:rtype: None
|
||||
|
@ -664,6 +689,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'move'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -686,9 +713,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param user_details: Details of publishing user. Is either a User type or a IO[bytes] type.
|
||||
Required.
|
||||
:type user_details: ~azure.mgmt.web.v2023_12_01.models.User or IO[bytes]
|
||||
:type user_details: ~azure.mgmt.web.v2024_04_01.models.User or IO[bytes]
|
||||
:return: User or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.User
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('update_publishing_user')
|
||||
|
@ -716,6 +743,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -741,9 +770,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type source_control_type: str
|
||||
:param request_message: Source control token information. Is either a SourceControl type or a
|
||||
IO[bytes] type. Required.
|
||||
:type request_message: ~azure.mgmt.web.v2023_12_01.models.SourceControl or IO[bytes]
|
||||
:type request_message: ~azure.mgmt.web.v2024_04_01.models.SourceControl or IO[bytes]
|
||||
:return: SourceControl or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.SourceControl
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('update_source_control')
|
||||
|
@ -771,6 +800,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
@ -796,9 +827,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param validate_request: Request with the resources to validate. Is either a ValidateRequest
|
||||
type or a IO[bytes] type. Required.
|
||||
:type validate_request: ~azure.mgmt.web.v2023_12_01.models.ValidateRequest or IO[bytes]
|
||||
:type validate_request: ~azure.mgmt.web.v2024_04_01.models.ValidateRequest or IO[bytes]
|
||||
:return: ValidateResponse or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.ValidateResponse
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.ValidateResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('validate')
|
||||
|
@ -826,6 +857,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'validate'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -871,7 +904,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
|
||||
return await mixin_instance.validate_container_settings(resource_group_name, validate_container_settings_request, **kwargs)
|
||||
|
||||
async def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
async def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],
|
||||
|
@ -885,7 +918,7 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
:type resource_group_name: str
|
||||
:param move_resource_envelope: Object that represents the resource to move. Is either a
|
||||
CsmMoveResourceEnvelope type or a IO[bytes] type. Required.
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2023_12_01.models.CsmMoveResourceEnvelope or
|
||||
:type move_resource_envelope: ~azure.mgmt.web.v2024_04_01.models.CsmMoveResourceEnvelope or
|
||||
IO[bytes]
|
||||
:return: None or the result of cls(response)
|
||||
:rtype: None
|
||||
|
@ -916,6 +949,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
else:
|
||||
raise ValueError("API version {} does not have operation 'validate_move'".format(api_version))
|
||||
mixin_instance = OperationClass()
|
||||
|
@ -940,9 +975,9 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
|
||||
:param parameters: VNET information. Is either a VnetParameters type or a IO[bytes] type.
|
||||
Required.
|
||||
:type parameters: ~azure.mgmt.web.v2023_12_01.models.VnetParameters or IO[bytes]
|
||||
:type parameters: ~azure.mgmt.web.v2024_04_01.models.VnetParameters or IO[bytes]
|
||||
:return: VnetValidationFailureDetails or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2023_12_01.models.VnetValidationFailureDetails
|
||||
:rtype: ~azure.mgmt.web.v2024_04_01.models.VnetValidationFailureDetails
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
api_version = self._get_api_version('verify_hosting_environment_vnet')
|
||||
|
@ -970,6 +1005,8 @@ class WebSiteManagementClientOperationsMixin(object):
|
|||
from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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()
|
||||
|
|
|
@ -57,7 +57,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 = '2023-12-01'
|
||||
DEFAULT_API_VERSION = '2024-04-01'
|
||||
_PROFILE_TAG = "azure.mgmt.web.WebSiteManagementClient"
|
||||
LATEST_PROFILE = ProfileDefinition({
|
||||
_PROFILE_TAG: {
|
||||
|
@ -129,6 +129,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :mod:`v2022_09_01.models<azure.mgmt.web.v2022_09_01.models>`
|
||||
* 2023-01-01: :mod:`v2023_01_01.models<azure.mgmt.web.v2023_01_01.models>`
|
||||
* 2023-12-01: :mod:`v2023_12_01.models<azure.mgmt.web.v2023_12_01.models>`
|
||||
* 2024-04-01: :mod:`v2024_04_01.models<azure.mgmt.web.v2024_04_01.models>`
|
||||
"""
|
||||
if api_version == '2015-04-01':
|
||||
from ..v2015_04_01 import models
|
||||
|
@ -181,6 +182,9 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01 import models
|
||||
return models
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01 import models
|
||||
return models
|
||||
raise ValueError("API version {} is not available".format(api_version))
|
||||
|
||||
@property
|
||||
|
@ -199,6 +203,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2022_09_01.aio.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2023-01-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2023_01_01.aio.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2023-12-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2023_12_01.aio.operations.AppServiceCertificateOrdersOperations>`
|
||||
* 2024-04-01: :class:`AppServiceCertificateOrdersOperations<azure.mgmt.web.v2024_04_01.aio.operations.AppServiceCertificateOrdersOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_certificate_orders')
|
||||
if api_version == '2015-08-01':
|
||||
|
@ -225,6 +230,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -246,6 +253,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2022_09_01.aio.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2023-01-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2023_01_01.aio.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2023-12-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2023_12_01.aio.operations.AppServiceEnvironmentsOperations>`
|
||||
* 2024-04-01: :class:`AppServiceEnvironmentsOperations<azure.mgmt.web.v2024_04_01.aio.operations.AppServiceEnvironmentsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_environments')
|
||||
if api_version == '2016-09-01':
|
||||
|
@ -272,6 +280,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -293,6 +303,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2022_09_01.aio.operations.AppServicePlansOperations>`
|
||||
* 2023-01-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2023_01_01.aio.operations.AppServicePlansOperations>`
|
||||
* 2023-12-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2023_12_01.aio.operations.AppServicePlansOperations>`
|
||||
* 2024-04-01: :class:`AppServicePlansOperations<azure.mgmt.web.v2024_04_01.aio.operations.AppServicePlansOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('app_service_plans')
|
||||
if api_version == '2016-09-01':
|
||||
|
@ -319,6 +330,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import AppServicePlansOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import AppServicePlansOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -349,6 +362,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2022_09_01.aio.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2023_01_01.aio.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2023-12-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2023_12_01.aio.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
* 2024-04-01: :class:`CertificateOrdersDiagnosticsOperations<azure.mgmt.web.v2024_04_01.aio.operations.CertificateOrdersDiagnosticsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificate_orders_diagnostics')
|
||||
if api_version == '2020-12-01':
|
||||
|
@ -365,6 +379,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -386,6 +402,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2022_09_01.aio.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2023-01-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2023_01_01.aio.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2023-12-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2023_12_01.aio.operations.CertificateRegistrationProviderOperations>`
|
||||
* 2024-04-01: :class:`CertificateRegistrationProviderOperations<azure.mgmt.web.v2024_04_01.aio.operations.CertificateRegistrationProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificate_registration_provider')
|
||||
if api_version == '2015-08-01':
|
||||
|
@ -412,6 +429,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -434,6 +453,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`CertificatesOperations<azure.mgmt.web.v2022_09_01.aio.operations.CertificatesOperations>`
|
||||
* 2023-01-01: :class:`CertificatesOperations<azure.mgmt.web.v2023_01_01.aio.operations.CertificatesOperations>`
|
||||
* 2023-12-01: :class:`CertificatesOperations<azure.mgmt.web.v2023_12_01.aio.operations.CertificatesOperations>`
|
||||
* 2024-04-01: :class:`CertificatesOperations<azure.mgmt.web.v2024_04_01.aio.operations.CertificatesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('certificates')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -462,6 +482,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import CertificatesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import CertificatesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -475,6 +497,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2022_09_01.aio.operations.ContainerAppsOperations>`
|
||||
* 2023-01-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_01_01.aio.operations.ContainerAppsOperations>`
|
||||
* 2023-12-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2023_12_01.aio.operations.ContainerAppsOperations>`
|
||||
* 2024-04-01: :class:`ContainerAppsOperations<azure.mgmt.web.v2024_04_01.aio.operations.ContainerAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('container_apps')
|
||||
if api_version == '2021-03-01':
|
||||
|
@ -485,6 +508,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import ContainerAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import ContainerAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -498,6 +523,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2023-01-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2023-12-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2023_12_01.aio.operations.ContainerAppsRevisionsOperations>`
|
||||
* 2024-04-01: :class:`ContainerAppsRevisionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.ContainerAppsRevisionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('container_apps_revisions')
|
||||
if api_version == '2021-03-01':
|
||||
|
@ -508,6 +534,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -529,6 +557,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2022_09_01.aio.operations.DeletedWebAppsOperations>`
|
||||
* 2023-01-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2023_01_01.aio.operations.DeletedWebAppsOperations>`
|
||||
* 2023-12-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2023_12_01.aio.operations.DeletedWebAppsOperations>`
|
||||
* 2024-04-01: :class:`DeletedWebAppsOperations<azure.mgmt.web.v2024_04_01.aio.operations.DeletedWebAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('deleted_web_apps')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -555,6 +584,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import DeletedWebAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import DeletedWebAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -576,6 +607,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2022_09_01.aio.operations.DiagnosticsOperations>`
|
||||
* 2023-01-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2023_01_01.aio.operations.DiagnosticsOperations>`
|
||||
* 2023-12-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2023_12_01.aio.operations.DiagnosticsOperations>`
|
||||
* 2024-04-01: :class:`DiagnosticsOperations<azure.mgmt.web.v2024_04_01.aio.operations.DiagnosticsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('diagnostics')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -602,6 +634,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import DiagnosticsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import DiagnosticsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -623,6 +657,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2022_09_01.aio.operations.DomainRegistrationProviderOperations>`
|
||||
* 2023-01-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2023_01_01.aio.operations.DomainRegistrationProviderOperations>`
|
||||
* 2023-12-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2023_12_01.aio.operations.DomainRegistrationProviderOperations>`
|
||||
* 2024-04-01: :class:`DomainRegistrationProviderOperations<azure.mgmt.web.v2024_04_01.aio.operations.DomainRegistrationProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('domain_registration_provider')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -649,6 +684,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import DomainRegistrationProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -670,6 +707,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`DomainsOperations<azure.mgmt.web.v2022_09_01.aio.operations.DomainsOperations>`
|
||||
* 2023-01-01: :class:`DomainsOperations<azure.mgmt.web.v2023_01_01.aio.operations.DomainsOperations>`
|
||||
* 2023-12-01: :class:`DomainsOperations<azure.mgmt.web.v2023_12_01.aio.operations.DomainsOperations>`
|
||||
* 2024-04-01: :class:`DomainsOperations<azure.mgmt.web.v2024_04_01.aio.operations.DomainsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('domains')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -696,6 +734,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import DomainsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import DomainsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -707,12 +747,15 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
|
||||
* 2023-01-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2023_01_01.aio.operations.GetUsagesInLocationOperations>`
|
||||
* 2023-12-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2023_12_01.aio.operations.GetUsagesInLocationOperations>`
|
||||
* 2024-04-01: :class:`GetUsagesInLocationOperations<azure.mgmt.web.v2024_04_01.aio.operations.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
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import GetUsagesInLocationOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -729,6 +772,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`GlobalOperations<azure.mgmt.web.v2022_09_01.aio.operations.GlobalOperations>`
|
||||
* 2023-01-01: :class:`GlobalOperations<azure.mgmt.web.v2023_01_01.aio.operations.GlobalOperations>`
|
||||
* 2023-12-01: :class:`GlobalOperations<azure.mgmt.web.v2023_12_01.aio.operations.GlobalOperations>`
|
||||
* 2024-04-01: :class:`GlobalOperations<azure.mgmt.web.v2024_04_01.aio.operations.GlobalOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('global_operations')
|
||||
if api_version == '2020-12-01':
|
||||
|
@ -745,6 +789,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import GlobalOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import GlobalOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -760,6 +806,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2022_09_01.aio.operations.KubeEnvironmentsOperations>`
|
||||
* 2023-01-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2023_01_01.aio.operations.KubeEnvironmentsOperations>`
|
||||
* 2023-12-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2023_12_01.aio.operations.KubeEnvironmentsOperations>`
|
||||
* 2024-04-01: :class:`KubeEnvironmentsOperations<azure.mgmt.web.v2024_04_01.aio.operations.KubeEnvironmentsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('kube_environments')
|
||||
if api_version == '2021-01-01':
|
||||
|
@ -774,6 +821,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import KubeEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import KubeEnvironmentsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -795,6 +844,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ProviderOperations<azure.mgmt.web.v2022_09_01.aio.operations.ProviderOperations>`
|
||||
* 2023-01-01: :class:`ProviderOperations<azure.mgmt.web.v2023_01_01.aio.operations.ProviderOperations>`
|
||||
* 2023-12-01: :class:`ProviderOperations<azure.mgmt.web.v2023_12_01.aio.operations.ProviderOperations>`
|
||||
* 2024-04-01: :class:`ProviderOperations<azure.mgmt.web.v2024_04_01.aio.operations.ProviderOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('provider')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -821,6 +871,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import ProviderOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import ProviderOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -842,6 +894,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`RecommendationsOperations<azure.mgmt.web.v2022_09_01.aio.operations.RecommendationsOperations>`
|
||||
* 2023-01-01: :class:`RecommendationsOperations<azure.mgmt.web.v2023_01_01.aio.operations.RecommendationsOperations>`
|
||||
* 2023-12-01: :class:`RecommendationsOperations<azure.mgmt.web.v2023_12_01.aio.operations.RecommendationsOperations>`
|
||||
* 2024-04-01: :class:`RecommendationsOperations<azure.mgmt.web.v2024_04_01.aio.operations.RecommendationsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('recommendations')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -868,6 +921,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import RecommendationsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import RecommendationsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -889,6 +944,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2022_09_01.aio.operations.ResourceHealthMetadataOperations>`
|
||||
* 2023-01-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2023_01_01.aio.operations.ResourceHealthMetadataOperations>`
|
||||
* 2023-12-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2023_12_01.aio.operations.ResourceHealthMetadataOperations>`
|
||||
* 2024-04-01: :class:`ResourceHealthMetadataOperations<azure.mgmt.web.v2024_04_01.aio.operations.ResourceHealthMetadataOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('resource_health_metadata')
|
||||
if api_version == '2016-03-01':
|
||||
|
@ -915,6 +971,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import ResourceHealthMetadataOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -934,6 +992,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`StaticSitesOperations<azure.mgmt.web.v2022_09_01.aio.operations.StaticSitesOperations>`
|
||||
* 2023-01-01: :class:`StaticSitesOperations<azure.mgmt.web.v2023_01_01.aio.operations.StaticSitesOperations>`
|
||||
* 2023-12-01: :class:`StaticSitesOperations<azure.mgmt.web.v2023_12_01.aio.operations.StaticSitesOperations>`
|
||||
* 2024-04-01: :class:`StaticSitesOperations<azure.mgmt.web.v2024_04_01.aio.operations.StaticSitesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('static_sites')
|
||||
if api_version == '2019-08-01':
|
||||
|
@ -956,6 +1015,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import StaticSitesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import StaticSitesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -977,6 +1038,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2022_09_01.aio.operations.TopLevelDomainsOperations>`
|
||||
* 2023-01-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2023_01_01.aio.operations.TopLevelDomainsOperations>`
|
||||
* 2023-12-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2023_12_01.aio.operations.TopLevelDomainsOperations>`
|
||||
* 2024-04-01: :class:`TopLevelDomainsOperations<azure.mgmt.web.v2024_04_01.aio.operations.TopLevelDomainsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('top_level_domains')
|
||||
if api_version == '2015-04-01':
|
||||
|
@ -1003,6 +1065,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import TopLevelDomainsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import TopLevelDomainsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_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
|
||||
|
@ -1024,6 +1088,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WebAppsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WebAppsOperations>`
|
||||
* 2023-01-01: :class:`WebAppsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WebAppsOperations>`
|
||||
* 2023-12-01: :class:`WebAppsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WebAppsOperations>`
|
||||
* 2024-04-01: :class:`WebAppsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WebAppsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('web_apps')
|
||||
if api_version == '2016-08-01':
|
||||
|
@ -1050,6 +1115,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WebAppsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WebAppsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1062,6 +1129,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionRepetitionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowRunActionRepetitionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_repetitions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1070,6 +1138,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1082,6 +1152,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_repetitions_request_histories')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1090,6 +1161,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1102,6 +1175,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionScopeRepetitionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowRunActionScopeRepetitionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_action_scope_repetitions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1110,6 +1184,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1122,6 +1198,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowRunActionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowRunActionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowRunActionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunActionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowRunActionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_run_actions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1130,6 +1207,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowRunActionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowRunActionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1142,6 +1221,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowRunsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowRunsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowRunsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowRunsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowRunsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_runs')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1150,6 +1230,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowRunsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowRunsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1162,6 +1244,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2023-01-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2023-12-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowTriggerHistoriesOperations>`
|
||||
* 2024-04-01: :class:`WorkflowTriggerHistoriesOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowTriggerHistoriesOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_trigger_histories')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1170,6 +1253,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1182,6 +1267,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowTriggersOperations>`
|
||||
* 2023-01-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowTriggersOperations>`
|
||||
* 2023-12-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowTriggersOperations>`
|
||||
* 2024-04-01: :class:`WorkflowTriggersOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowTriggersOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_triggers')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1190,6 +1276,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowTriggersOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowTriggersOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1202,6 +1290,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowVersionsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowVersionsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowVersionsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowVersionsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowVersionsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflow_versions')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1210,6 +1299,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowVersionsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowVersionsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
@ -1222,6 +1313,7 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
* 2022-09-01: :class:`WorkflowsOperations<azure.mgmt.web.v2022_09_01.aio.operations.WorkflowsOperations>`
|
||||
* 2023-01-01: :class:`WorkflowsOperations<azure.mgmt.web.v2023_01_01.aio.operations.WorkflowsOperations>`
|
||||
* 2023-12-01: :class:`WorkflowsOperations<azure.mgmt.web.v2023_12_01.aio.operations.WorkflowsOperations>`
|
||||
* 2024-04-01: :class:`WorkflowsOperations<azure.mgmt.web.v2024_04_01.aio.operations.WorkflowsOperations>`
|
||||
"""
|
||||
api_version = self._get_api_version('workflows')
|
||||
if api_version == '2022-09-01':
|
||||
|
@ -1230,6 +1322,8 @@ class WebSiteManagementClient(WebSiteManagementClientOperationsMixin, MultiApiCl
|
|||
from ..v2023_01_01.aio.operations import WorkflowsOperations as OperationClass
|
||||
elif api_version == '2023-12-01':
|
||||
from ..v2023_12_01.aio.operations import WorkflowsOperations as OperationClass
|
||||
elif api_version == '2024-04-01':
|
||||
from ..v2024_04_01.aio.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
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
# --------------------------------------------------------------------------
|
||||
from .v2016_03_01.models import *
|
||||
from .v2018_02_01.models import *
|
||||
from .v2023_12_01.models import *
|
||||
from .v2024_04_01.models import *
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
|
||||
|
||||
from ._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
api_version: str = kwargs.pop("api_version", "2015-04-01")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = api_version
|
||||
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
|
||||
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
|
||||
self.polling_interval = kwargs.get("polling_interval", 30)
|
||||
self._configure(**kwargs)
|
||||
|
||||
def _configure(self, **kwargs: Any) -> None:
|
||||
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
|
||||
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
|
||||
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
|
||||
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
|
||||
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
|
||||
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
|
||||
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get("authentication_policy")
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = ARMChallengeAuthenticationPolicy(
|
||||
self.credential, *self.credential_scopes, **kwargs
|
||||
)
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"chosen_version": "2015-04-01",
|
||||
"total_api_version_list": ["2015-04-01"],
|
||||
"client": {
|
||||
"name": "WebSiteManagementClient",
|
||||
"filename": "_web_site_management_client",
|
||||
"description": "WebSite Management Client.",
|
||||
"host_value": "\"https://management.azure.com\"",
|
||||
"parameterized_host_template": null,
|
||||
"azure_arm": true,
|
||||
"has_public_lro_operations": true,
|
||||
"client_side_validation": false,
|
||||
"sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"ARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \".._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"AsyncARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"AsyncARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \"..._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"global_parameters": {
|
||||
"sync": {
|
||||
"credential": {
|
||||
"signature": "credential: \"TokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials.TokenCredential",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"credential": {
|
||||
"signature": "credential: \"AsyncTokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
|
||||
"required": true
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"constant": {
|
||||
},
|
||||
"call": "credential, subscription_id",
|
||||
"service_client_specific": {
|
||||
"sync": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str]=None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles=KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str] = None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles = KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"credential": true,
|
||||
"credential_scopes": ["https://management.azure.com/.default"],
|
||||
"credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"sync_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"operation_groups": {
|
||||
"domains": "DomainsOperations",
|
||||
"top_level_domains": "TopLevelDomainsOperations",
|
||||
"domain_registration_provider": "DomainRegistrationProviderOperations"
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
VERSION = "7.3.1"
|
|
@ -1,124 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.mgmt.core import ARMPipelineClient
|
||||
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from . import models as _models
|
||||
from .._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar domains: DomainsOperations operations
|
||||
:vartype domains: azure.mgmt.web.v2015_04_01.operations.DomainsOperations
|
||||
:ivar top_level_domains: TopLevelDomainsOperations operations
|
||||
:vartype top_level_domains: azure.mgmt.web.v2015_04_01.operations.TopLevelDomainsOperations
|
||||
:ivar domain_registration_provider: DomainRegistrationProviderOperations operations
|
||||
:vartype domain_registration_provider:
|
||||
azure.mgmt.web.v2015_04_01.operations.DomainRegistrationProviderOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "TokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
ARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize, "2015-04-01")
|
||||
self.top_level_domains = TopLevelDomainsOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-04-01"
|
||||
)
|
||||
self.domain_registration_provider = DomainRegistrationProviderOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-04-01"
|
||||
)
|
||||
|
||||
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = client._send_request(request)
|
||||
<HttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.HttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
def close(self) -> None:
|
||||
self._client.close()
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
self._client.__enter__()
|
||||
return self
|
||||
|
||||
def __exit__(self, *exc_details: Any) -> None:
|
||||
self._client.__exit__(*exc_details)
|
|
@ -1,23 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
|
||||
_patch_sdk()
|
|
@ -1,66 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
|
||||
|
||||
from .._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
api_version: str = kwargs.pop("api_version", "2015-04-01")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = api_version
|
||||
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
|
||||
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
|
||||
self.polling_interval = kwargs.get("polling_interval", 30)
|
||||
self._configure(**kwargs)
|
||||
|
||||
def _configure(self, **kwargs: Any) -> None:
|
||||
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
|
||||
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
|
||||
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
|
||||
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
|
||||
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
|
||||
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs)
|
||||
self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get("authentication_policy")
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(
|
||||
self.credential, *self.credential_scopes, **kwargs
|
||||
)
|
|
@ -1,126 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, Awaitable, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.mgmt.core import AsyncARMPipelineClient
|
||||
from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import DomainRegistrationProviderOperations, DomainsOperations, TopLevelDomainsOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar domains: DomainsOperations operations
|
||||
:vartype domains: azure.mgmt.web.v2015_04_01.aio.operations.DomainsOperations
|
||||
:ivar top_level_domains: TopLevelDomainsOperations operations
|
||||
:vartype top_level_domains: azure.mgmt.web.v2015_04_01.aio.operations.TopLevelDomainsOperations
|
||||
:ivar domain_registration_provider: DomainRegistrationProviderOperations operations
|
||||
:vartype domain_registration_provider:
|
||||
azure.mgmt.web.v2015_04_01.aio.operations.DomainRegistrationProviderOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "AsyncTokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
AsyncARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize, "2015-04-01")
|
||||
self.top_level_domains = TopLevelDomainsOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-04-01"
|
||||
)
|
||||
self.domain_registration_provider = DomainRegistrationProviderOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-04-01"
|
||||
)
|
||||
|
||||
def _send_request(
|
||||
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
|
||||
) -> Awaitable[AsyncHttpResponse]:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = await client._send_request(request)
|
||||
<AsyncHttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.AsyncHttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
async def close(self) -> None:
|
||||
await self._client.close()
|
||||
|
||||
async def __aenter__(self) -> Self:
|
||||
await self._client.__aenter__()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *exc_details: Any) -> None:
|
||||
await self._client.__aexit__(*exc_details)
|
|
@ -1,23 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._domains_operations import DomainsOperations
|
||||
from ._top_level_domains_operations import TopLevelDomainsOperations
|
||||
from ._domain_registration_provider_operations import DomainRegistrationProviderOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"DomainsOperations",
|
||||
"TopLevelDomainsOperations",
|
||||
"DomainRegistrationProviderOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
|
@ -1,136 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from ... import models as _models
|
||||
from ...operations._domain_registration_provider_operations import build_list_operations_request
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
||||
class DomainRegistrationProviderOperations:
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_04_01.aio.WebSiteManagementClient`'s
|
||||
:attr:`domain_registration_provider` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list_operations(self, **kwargs: Any) -> AsyncIterable["_models.CsmOperationDescription"]:
|
||||
"""Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
:return: An iterator like instance of either CsmOperationDescription or the result of
|
||||
cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_04_01.models.CsmOperationDescription]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_operations_request(
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
async def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("CsmOperationCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, AsyncList(list_of_elem)
|
||||
|
||||
async def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return AsyncItemPaged(get_next, extract_data)
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,337 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.tracing.decorator_async import distributed_trace_async
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from ... import models as _models
|
||||
from ...operations._top_level_domains_operations import (
|
||||
build_get_request,
|
||||
build_list_agreements_request,
|
||||
build_list_request,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
||||
class TopLevelDomainsOperations:
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_04_01.aio.WebSiteManagementClient`'s
|
||||
:attr:`top_level_domains` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list(self, **kwargs: Any) -> AsyncIterable["_models.TopLevelDomain"]:
|
||||
"""Get all top-level domains supported for registration.
|
||||
|
||||
Get all top-level domains supported for registration.
|
||||
|
||||
:return: An iterator like instance of either TopLevelDomain or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_04_01.models.TopLevelDomain]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.TopLevelDomainCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_request(
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
async def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("TopLevelDomainCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, AsyncList(list_of_elem)
|
||||
|
||||
async def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return AsyncItemPaged(get_next, extract_data)
|
||||
|
||||
@distributed_trace_async
|
||||
async def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain:
|
||||
"""Get details of a top-level domain.
|
||||
|
||||
Get details of a top-level domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:return: TopLevelDomain or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomain
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None)
|
||||
|
||||
_request = build_get_request(
|
||||
name=name,
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
deserialized = self._deserialize("TopLevelDomain", pipeline_response.http_response)
|
||||
|
||||
if cls:
|
||||
return cls(pipeline_response, deserialized, {}) # type: ignore
|
||||
|
||||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
def list_agreements(
|
||||
self,
|
||||
name: str,
|
||||
agreement_option: _models.TopLevelDomainAgreementOption,
|
||||
*,
|
||||
content_type: str = "application/json",
|
||||
**kwargs: Any
|
||||
) -> AsyncIterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Required.
|
||||
:type agreement_option: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomainAgreementOption
|
||||
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
||||
Default value is "application/json".
|
||||
:paramtype content_type: str
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
|
||||
@overload
|
||||
def list_agreements(
|
||||
self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
||||
) -> AsyncIterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Required.
|
||||
:type agreement_option: IO[bytes]
|
||||
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
||||
Default value is "application/json".
|
||||
:paramtype content_type: str
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
|
||||
@distributed_trace
|
||||
def list_agreements(
|
||||
self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, IO[bytes]], **kwargs: Any
|
||||
) -> AsyncIterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Is either a TopLevelDomainAgreementOption
|
||||
type or a IO[bytes] type. Required.
|
||||
:type agreement_option: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomainAgreementOption or
|
||||
IO[bytes]
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
cls: ClsType[_models.TldLegalAgreementCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
content_type = content_type or "application/json"
|
||||
_json = None
|
||||
_content = None
|
||||
if isinstance(agreement_option, (IOBase, bytes)):
|
||||
_content = agreement_option
|
||||
else:
|
||||
_json = self._serialize.body(agreement_option, "TopLevelDomainAgreementOption")
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_agreements_request(
|
||||
name=name,
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
content_type=content_type,
|
||||
json=_json,
|
||||
content=_content,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
async def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("TldLegalAgreementCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, AsyncList(list_of_elem)
|
||||
|
||||
async def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return AsyncItemPaged(get_next, extract_data)
|
|
@ -1,95 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._models_py3 import Address
|
||||
from ._models_py3 import Contact
|
||||
from ._models_py3 import CsmOperationCollection
|
||||
from ._models_py3 import CsmOperationDescription
|
||||
from ._models_py3 import CsmOperationDescriptionProperties
|
||||
from ._models_py3 import CsmOperationDisplay
|
||||
from ._models_py3 import Dimension
|
||||
from ._models_py3 import Domain
|
||||
from ._models_py3 import DomainAvailablilityCheckResult
|
||||
from ._models_py3 import DomainCollection
|
||||
from ._models_py3 import DomainControlCenterSsoRequest
|
||||
from ._models_py3 import DomainOwnershipIdentifier
|
||||
from ._models_py3 import DomainOwnershipIdentifierCollection
|
||||
from ._models_py3 import DomainPatchResource
|
||||
from ._models_py3 import DomainPurchaseConsent
|
||||
from ._models_py3 import DomainRecommendationSearchParameters
|
||||
from ._models_py3 import ErrorResponse
|
||||
from ._models_py3 import HostName
|
||||
from ._models_py3 import MetricAvailability
|
||||
from ._models_py3 import MetricSpecification
|
||||
from ._models_py3 import NameIdentifier
|
||||
from ._models_py3 import NameIdentifierCollection
|
||||
from ._models_py3 import ProxyOnlyResource
|
||||
from ._models_py3 import Resource
|
||||
from ._models_py3 import ServiceSpecification
|
||||
from ._models_py3 import TldLegalAgreement
|
||||
from ._models_py3 import TldLegalAgreementCollection
|
||||
from ._models_py3 import TopLevelDomain
|
||||
from ._models_py3 import TopLevelDomainAgreementOption
|
||||
from ._models_py3 import TopLevelDomainCollection
|
||||
|
||||
from ._web_site_management_client_enums import AzureResourceType
|
||||
from ._web_site_management_client_enums import CustomHostNameDnsRecordType
|
||||
from ._web_site_management_client_enums import DnsType
|
||||
from ._web_site_management_client_enums import DomainPatchResourcePropertiesDomainNotRenewableReasonsItem
|
||||
from ._web_site_management_client_enums import DomainPropertiesDomainNotRenewableReasonsItem
|
||||
from ._web_site_management_client_enums import DomainStatus
|
||||
from ._web_site_management_client_enums import DomainType
|
||||
from ._web_site_management_client_enums import HostNameType
|
||||
from ._web_site_management_client_enums import ProvisioningState
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"Address",
|
||||
"Contact",
|
||||
"CsmOperationCollection",
|
||||
"CsmOperationDescription",
|
||||
"CsmOperationDescriptionProperties",
|
||||
"CsmOperationDisplay",
|
||||
"Dimension",
|
||||
"Domain",
|
||||
"DomainAvailablilityCheckResult",
|
||||
"DomainCollection",
|
||||
"DomainControlCenterSsoRequest",
|
||||
"DomainOwnershipIdentifier",
|
||||
"DomainOwnershipIdentifierCollection",
|
||||
"DomainPatchResource",
|
||||
"DomainPurchaseConsent",
|
||||
"DomainRecommendationSearchParameters",
|
||||
"ErrorResponse",
|
||||
"HostName",
|
||||
"MetricAvailability",
|
||||
"MetricSpecification",
|
||||
"NameIdentifier",
|
||||
"NameIdentifierCollection",
|
||||
"ProxyOnlyResource",
|
||||
"Resource",
|
||||
"ServiceSpecification",
|
||||
"TldLegalAgreement",
|
||||
"TldLegalAgreementCollection",
|
||||
"TopLevelDomain",
|
||||
"TopLevelDomainAgreementOption",
|
||||
"TopLevelDomainCollection",
|
||||
"AzureResourceType",
|
||||
"CustomHostNameDnsRecordType",
|
||||
"DnsType",
|
||||
"DomainPatchResourcePropertiesDomainNotRenewableReasonsItem",
|
||||
"DomainPropertiesDomainNotRenewableReasonsItem",
|
||||
"DomainStatus",
|
||||
"DomainType",
|
||||
"HostNameType",
|
||||
"ProvisioningState",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,100 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from enum import Enum
|
||||
from azure.core import CaseInsensitiveEnumMeta
|
||||
|
||||
|
||||
class AzureResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of the Azure resource the hostname is assigned to."""
|
||||
|
||||
WEBSITE = "Website"
|
||||
TRAFFIC_MANAGER = "TrafficManager"
|
||||
|
||||
|
||||
class CustomHostNameDnsRecordType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of the DNS record."""
|
||||
|
||||
C_NAME = "CName"
|
||||
A = "A"
|
||||
|
||||
|
||||
class DnsType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Current DNS type."""
|
||||
|
||||
AZURE_DNS = "AzureDns"
|
||||
DEFAULT_DOMAIN_REGISTRAR_DNS = "DefaultDomainRegistrarDns"
|
||||
|
||||
|
||||
class DomainPatchResourcePropertiesDomainNotRenewableReasonsItem(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""DomainPatchResourcePropertiesDomainNotRenewableReasonsItem."""
|
||||
|
||||
REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL = "RegistrationStatusNotSupportedForRenewal"
|
||||
EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE = "ExpirationNotInRenewalTimeRange"
|
||||
SUBSCRIPTION_NOT_ACTIVE = "SubscriptionNotActive"
|
||||
|
||||
|
||||
class DomainPropertiesDomainNotRenewableReasonsItem(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""DomainPropertiesDomainNotRenewableReasonsItem."""
|
||||
|
||||
REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL = "RegistrationStatusNotSupportedForRenewal"
|
||||
EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE = "ExpirationNotInRenewalTimeRange"
|
||||
SUBSCRIPTION_NOT_ACTIVE = "SubscriptionNotActive"
|
||||
|
||||
|
||||
class DomainStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Domain registration status."""
|
||||
|
||||
ACTIVE = "Active"
|
||||
AWAITING = "Awaiting"
|
||||
CANCELLED = "Cancelled"
|
||||
CONFISCATED = "Confiscated"
|
||||
DISABLED = "Disabled"
|
||||
EXCLUDED = "Excluded"
|
||||
EXPIRED = "Expired"
|
||||
FAILED = "Failed"
|
||||
HELD = "Held"
|
||||
LOCKED = "Locked"
|
||||
PARKED = "Parked"
|
||||
PENDING = "Pending"
|
||||
RESERVED = "Reserved"
|
||||
REVERTED = "Reverted"
|
||||
SUSPENDED = "Suspended"
|
||||
TRANSFERRED = "Transferred"
|
||||
UNKNOWN = "Unknown"
|
||||
UNLOCKED = "Unlocked"
|
||||
UNPARKED = "Unparked"
|
||||
UPDATED = "Updated"
|
||||
JSON_CONVERTER_FAILED = "JsonConverterFailed"
|
||||
|
||||
|
||||
class DomainType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Valid values are Regular domain: Azure will charge the full price of domain registration,
|
||||
SoftDeleted: Purchasing this domain will simply restore it and this operation will not cost
|
||||
anything.
|
||||
"""
|
||||
|
||||
REGULAR = "Regular"
|
||||
SOFT_DELETED = "SoftDeleted"
|
||||
|
||||
|
||||
class HostNameType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of the hostname."""
|
||||
|
||||
VERIFIED = "Verified"
|
||||
MANAGED = "Managed"
|
||||
|
||||
|
||||
class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Domain provisioning state."""
|
||||
|
||||
SUCCEEDED = "Succeeded"
|
||||
FAILED = "Failed"
|
||||
CANCELED = "Canceled"
|
||||
IN_PROGRESS = "InProgress"
|
||||
DELETING = "Deleting"
|
|
@ -1,23 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._domains_operations import DomainsOperations
|
||||
from ._top_level_domains_operations import TopLevelDomainsOperations
|
||||
from ._domain_registration_provider_operations import DomainRegistrationProviderOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"DomainsOperations",
|
||||
"TopLevelDomainsOperations",
|
||||
"DomainRegistrationProviderOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
|
@ -1,158 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.paging import ItemPaged
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
_SERIALIZER = Serializer()
|
||||
_SERIALIZER.client_side_validation = False
|
||||
|
||||
|
||||
def build_list_operations_request(**kwargs: Any) -> HttpRequest:
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
_url = kwargs.pop("template_url", "/providers/Microsoft.DomainRegistration/operations")
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
||||
# Construct headers
|
||||
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
||||
|
||||
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
||||
|
||||
|
||||
class DomainRegistrationProviderOperations:
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_04_01.WebSiteManagementClient`'s
|
||||
:attr:`domain_registration_provider` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list_operations(self, **kwargs: Any) -> Iterable["_models.CsmOperationDescription"]:
|
||||
"""Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
:return: An iterator like instance of either CsmOperationDescription or the result of
|
||||
cls(response)
|
||||
:rtype:
|
||||
~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_04_01.models.CsmOperationDescription]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_operations_request(
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("CsmOperationCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, iter(list_of_elem)
|
||||
|
||||
def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return ItemPaged(get_next, extract_data)
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,415 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.paging import ItemPaged
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
_SERIALIZER = Serializer()
|
||||
_SERIALIZER.client_side_validation = False
|
||||
|
||||
|
||||
def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
_url = kwargs.pop(
|
||||
"template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains"
|
||||
) # pylint: disable=line-too-long
|
||||
path_format_arguments = {
|
||||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
|
||||
}
|
||||
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
||||
# Construct headers
|
||||
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
||||
|
||||
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
||||
|
||||
|
||||
def build_get_request(name: str, subscription_id: str, **kwargs: Any) -> HttpRequest:
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
_url = kwargs.pop(
|
||||
"template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}"
|
||||
) # pylint: disable=line-too-long
|
||||
path_format_arguments = {
|
||||
"name": _SERIALIZER.url("name", name, "str"),
|
||||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
|
||||
}
|
||||
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
||||
# Construct headers
|
||||
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
||||
|
||||
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
||||
|
||||
|
||||
def build_list_agreements_request(name: str, subscription_id: str, **kwargs: Any) -> HttpRequest:
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-04-01"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
_url = kwargs.pop(
|
||||
"template_url",
|
||||
"/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements",
|
||||
) # pylint: disable=line-too-long
|
||||
path_format_arguments = {
|
||||
"name": _SERIALIZER.url("name", name, "str"),
|
||||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
|
||||
}
|
||||
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
||||
# Construct headers
|
||||
if content_type is not None:
|
||||
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
||||
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
||||
|
||||
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
||||
|
||||
|
||||
class TopLevelDomainsOperations:
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_04_01.WebSiteManagementClient`'s
|
||||
:attr:`top_level_domains` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list(self, **kwargs: Any) -> Iterable["_models.TopLevelDomain"]:
|
||||
"""Get all top-level domains supported for registration.
|
||||
|
||||
Get all top-level domains supported for registration.
|
||||
|
||||
:return: An iterator like instance of either TopLevelDomain or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_04_01.models.TopLevelDomain]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.TopLevelDomainCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_request(
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("TopLevelDomainCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, iter(list_of_elem)
|
||||
|
||||
def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return ItemPaged(get_next, extract_data)
|
||||
|
||||
@distributed_trace
|
||||
def get(self, name: str, **kwargs: Any) -> _models.TopLevelDomain:
|
||||
"""Get details of a top-level domain.
|
||||
|
||||
Get details of a top-level domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:return: TopLevelDomain or the result of cls(response)
|
||||
:rtype: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomain
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
cls: ClsType[_models.TopLevelDomain] = kwargs.pop("cls", None)
|
||||
|
||||
_request = build_get_request(
|
||||
name=name,
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
deserialized = self._deserialize("TopLevelDomain", pipeline_response.http_response)
|
||||
|
||||
if cls:
|
||||
return cls(pipeline_response, deserialized, {}) # type: ignore
|
||||
|
||||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
def list_agreements(
|
||||
self,
|
||||
name: str,
|
||||
agreement_option: _models.TopLevelDomainAgreementOption,
|
||||
*,
|
||||
content_type: str = "application/json",
|
||||
**kwargs: Any
|
||||
) -> Iterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Required.
|
||||
:type agreement_option: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomainAgreementOption
|
||||
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
||||
Default value is "application/json".
|
||||
:paramtype content_type: str
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
|
||||
@overload
|
||||
def list_agreements(
|
||||
self, name: str, agreement_option: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
||||
) -> Iterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Required.
|
||||
:type agreement_option: IO[bytes]
|
||||
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
||||
Default value is "application/json".
|
||||
:paramtype content_type: str
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
|
||||
@distributed_trace
|
||||
def list_agreements(
|
||||
self, name: str, agreement_option: Union[_models.TopLevelDomainAgreementOption, IO[bytes]], **kwargs: Any
|
||||
) -> Iterable["_models.TldLegalAgreement"]:
|
||||
"""Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
Gets all legal agreements that user needs to accept before purchasing a domain.
|
||||
|
||||
:param name: Name of the top-level domain. Required.
|
||||
:type name: str
|
||||
:param agreement_option: Domain agreement options. Is either a TopLevelDomainAgreementOption
|
||||
type or a IO[bytes] type. Required.
|
||||
:type agreement_option: ~azure.mgmt.web.v2015_04_01.models.TopLevelDomainAgreementOption or
|
||||
IO[bytes]
|
||||
:return: An iterator like instance of either TldLegalAgreement or the result of cls(response)
|
||||
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_04_01.models.TldLegalAgreement]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-04-01"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
cls: ClsType[_models.TldLegalAgreementCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
content_type = content_type or "application/json"
|
||||
_json = None
|
||||
_content = None
|
||||
if isinstance(agreement_option, (IOBase, bytes)):
|
||||
_content = agreement_option
|
||||
else:
|
||||
_json = self._serialize.body(agreement_option, "TopLevelDomainAgreementOption")
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_agreements_request(
|
||||
name=name,
|
||||
subscription_id=self._config.subscription_id,
|
||||
api_version=api_version,
|
||||
content_type=content_type,
|
||||
json=_json,
|
||||
content=_content,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("TldLegalAgreementCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, iter(list_of_elem)
|
||||
|
||||
def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return ItemPaged(get_next, extract_data)
|
|
@ -1,26 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
from ._version import VERSION
|
||||
|
||||
__version__ = VERSION
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
|
||||
_patch_sdk()
|
|
@ -1,66 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
|
||||
|
||||
from ._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2015-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
api_version: str = kwargs.pop("api_version", "2015-08-01")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = api_version
|
||||
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
|
||||
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
|
||||
self.polling_interval = kwargs.get("polling_interval", 30)
|
||||
self._configure(**kwargs)
|
||||
|
||||
def _configure(self, **kwargs: Any) -> None:
|
||||
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
|
||||
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
|
||||
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
|
||||
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
|
||||
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
|
||||
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
|
||||
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get("authentication_policy")
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = ARMChallengeAuthenticationPolicy(
|
||||
self.credential, *self.credential_scopes, **kwargs
|
||||
)
|
|
@ -1,111 +0,0 @@
|
|||
{
|
||||
"chosen_version": "2015-08-01",
|
||||
"total_api_version_list": ["2015-08-01"],
|
||||
"client": {
|
||||
"name": "WebSiteManagementClient",
|
||||
"filename": "_web_site_management_client",
|
||||
"description": "WebSite Management Client.",
|
||||
"host_value": "\"https://management.azure.com\"",
|
||||
"parameterized_host_template": null,
|
||||
"azure_arm": true,
|
||||
"has_public_lro_operations": true,
|
||||
"client_side_validation": false,
|
||||
"sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"ARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \".._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"AsyncARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"AsyncARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \"..._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"global_parameters": {
|
||||
"sync": {
|
||||
"credential": {
|
||||
"signature": "credential: \"TokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials.TokenCredential",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"credential": {
|
||||
"signature": "credential: \"AsyncTokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
|
||||
"required": true
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"constant": {
|
||||
},
|
||||
"call": "credential, subscription_id",
|
||||
"service_client_specific": {
|
||||
"sync": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str]=None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles=KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str] = None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles = KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"credential": true,
|
||||
"credential_scopes": ["https://management.azure.com/.default"],
|
||||
"credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"sync_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"operation_groups": {
|
||||
"app_service_certificate_orders": "AppServiceCertificateOrdersOperations",
|
||||
"certificate_registration_provider": "CertificateRegistrationProviderOperations"
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,122 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.mgmt.core import ARMPipelineClient
|
||||
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from . import models as _models
|
||||
from .._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import AppServiceCertificateOrdersOperations, CertificateRegistrationProviderOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar app_service_certificate_orders: AppServiceCertificateOrdersOperations operations
|
||||
:vartype app_service_certificate_orders:
|
||||
azure.mgmt.web.v2015_08_01.operations.AppServiceCertificateOrdersOperations
|
||||
:ivar certificate_registration_provider: CertificateRegistrationProviderOperations operations
|
||||
:vartype certificate_registration_provider:
|
||||
azure.mgmt.web.v2015_08_01.operations.CertificateRegistrationProviderOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2015-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "TokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
ARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.app_service_certificate_orders = AppServiceCertificateOrdersOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-08-01"
|
||||
)
|
||||
self.certificate_registration_provider = CertificateRegistrationProviderOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-08-01"
|
||||
)
|
||||
|
||||
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = client._send_request(request)
|
||||
<HttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.HttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
def close(self) -> None:
|
||||
self._client.close()
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
self._client.__enter__()
|
||||
return self
|
||||
|
||||
def __exit__(self, *exc_details: Any) -> None:
|
||||
self._client.__exit__(*exc_details)
|
|
@ -1,23 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
|
||||
_patch_sdk()
|
|
@ -1,66 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
|
||||
|
||||
from .._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2015-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
api_version: str = kwargs.pop("api_version", "2015-08-01")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = api_version
|
||||
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
|
||||
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
|
||||
self.polling_interval = kwargs.get("polling_interval", 30)
|
||||
self._configure(**kwargs)
|
||||
|
||||
def _configure(self, **kwargs: Any) -> None:
|
||||
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
|
||||
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
|
||||
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
|
||||
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
|
||||
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
|
||||
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs)
|
||||
self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get("authentication_policy")
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(
|
||||
self.credential, *self.credential_scopes, **kwargs
|
||||
)
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,124 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, Awaitable, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.mgmt.core import AsyncARMPipelineClient
|
||||
from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import AppServiceCertificateOrdersOperations, CertificateRegistrationProviderOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar app_service_certificate_orders: AppServiceCertificateOrdersOperations operations
|
||||
:vartype app_service_certificate_orders:
|
||||
azure.mgmt.web.v2015_08_01.aio.operations.AppServiceCertificateOrdersOperations
|
||||
:ivar certificate_registration_provider: CertificateRegistrationProviderOperations operations
|
||||
:vartype certificate_registration_provider:
|
||||
azure.mgmt.web.v2015_08_01.aio.operations.CertificateRegistrationProviderOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2015-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "AsyncTokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
AsyncARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.app_service_certificate_orders = AppServiceCertificateOrdersOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-08-01"
|
||||
)
|
||||
self.certificate_registration_provider = CertificateRegistrationProviderOperations(
|
||||
self._client, self._config, self._serialize, self._deserialize, "2015-08-01"
|
||||
)
|
||||
|
||||
def _send_request(
|
||||
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
|
||||
) -> Awaitable[AsyncHttpResponse]:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = await client._send_request(request)
|
||||
<AsyncHttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.AsyncHttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
async def close(self) -> None:
|
||||
await self._client.close()
|
||||
|
||||
async def __aenter__(self) -> Self:
|
||||
await self._client.__aenter__()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *exc_details: Any) -> None:
|
||||
await self._client.__aexit__(*exc_details)
|
|
@ -1,21 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._app_service_certificate_orders_operations import AppServiceCertificateOrdersOperations
|
||||
from ._certificate_registration_provider_operations import CertificateRegistrationProviderOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"AppServiceCertificateOrdersOperations",
|
||||
"CertificateRegistrationProviderOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,136 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from ... import models as _models
|
||||
from ...operations._certificate_registration_provider_operations import build_list_operations_request
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
||||
class CertificateRegistrationProviderOperations: # pylint: disable=name-too-long
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_08_01.aio.WebSiteManagementClient`'s
|
||||
:attr:`certificate_registration_provider` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list_operations(self, **kwargs: Any) -> AsyncIterable["_models.CsmOperationDescription"]:
|
||||
"""Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
:return: An iterator like instance of either CsmOperationDescription or the result of
|
||||
cls(response)
|
||||
:rtype:
|
||||
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.web.v2015_08_01.models.CsmOperationDescription]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-08-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_operations_request(
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
async def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("CsmOperationCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, AsyncList(list_of_elem)
|
||||
|
||||
async def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return AsyncItemPaged(get_next, extract_data)
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,79 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._models_py3 import AppServiceCertificate
|
||||
from ._models_py3 import AppServiceCertificateCollection
|
||||
from ._models_py3 import AppServiceCertificateOrder
|
||||
from ._models_py3 import AppServiceCertificateOrderCollection
|
||||
from ._models_py3 import AppServiceCertificateOrderPatchResource
|
||||
from ._models_py3 import AppServiceCertificatePatchResource
|
||||
from ._models_py3 import AppServiceCertificateResource
|
||||
from ._models_py3 import CertificateDetails
|
||||
from ._models_py3 import CertificateEmail
|
||||
from ._models_py3 import CertificateOrderAction
|
||||
from ._models_py3 import CsmOperationCollection
|
||||
from ._models_py3 import CsmOperationDescription
|
||||
from ._models_py3 import CsmOperationDescriptionProperties
|
||||
from ._models_py3 import CsmOperationDisplay
|
||||
from ._models_py3 import Dimension
|
||||
from ._models_py3 import MetricAvailability
|
||||
from ._models_py3 import MetricSpecification
|
||||
from ._models_py3 import NameIdentifier
|
||||
from ._models_py3 import ProxyOnlyResource
|
||||
from ._models_py3 import ReissueCertificateOrderRequest
|
||||
from ._models_py3 import RenewCertificateOrderRequest
|
||||
from ._models_py3 import Resource
|
||||
from ._models_py3 import ServiceSpecification
|
||||
from ._models_py3 import SiteSeal
|
||||
from ._models_py3 import SiteSealRequest
|
||||
|
||||
from ._web_site_management_client_enums import CertificateOrderActionType
|
||||
from ._web_site_management_client_enums import CertificateOrderStatus
|
||||
from ._web_site_management_client_enums import CertificateProductType
|
||||
from ._web_site_management_client_enums import KeyVaultSecretStatus
|
||||
from ._web_site_management_client_enums import ProvisioningState
|
||||
from ._web_site_management_client_enums import ResourceNotRenewableReason
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"AppServiceCertificate",
|
||||
"AppServiceCertificateCollection",
|
||||
"AppServiceCertificateOrder",
|
||||
"AppServiceCertificateOrderCollection",
|
||||
"AppServiceCertificateOrderPatchResource",
|
||||
"AppServiceCertificatePatchResource",
|
||||
"AppServiceCertificateResource",
|
||||
"CertificateDetails",
|
||||
"CertificateEmail",
|
||||
"CertificateOrderAction",
|
||||
"CsmOperationCollection",
|
||||
"CsmOperationDescription",
|
||||
"CsmOperationDescriptionProperties",
|
||||
"CsmOperationDisplay",
|
||||
"Dimension",
|
||||
"MetricAvailability",
|
||||
"MetricSpecification",
|
||||
"NameIdentifier",
|
||||
"ProxyOnlyResource",
|
||||
"ReissueCertificateOrderRequest",
|
||||
"RenewCertificateOrderRequest",
|
||||
"Resource",
|
||||
"ServiceSpecification",
|
||||
"SiteSeal",
|
||||
"SiteSealRequest",
|
||||
"CertificateOrderActionType",
|
||||
"CertificateOrderStatus",
|
||||
"CertificateProductType",
|
||||
"KeyVaultSecretStatus",
|
||||
"ProvisioningState",
|
||||
"ResourceNotRenewableReason",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,85 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from enum import Enum
|
||||
from azure.core import CaseInsensitiveEnumMeta
|
||||
|
||||
|
||||
class CertificateOrderActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Action type."""
|
||||
|
||||
CERTIFICATE_ISSUED = "CertificateIssued"
|
||||
CERTIFICATE_ORDER_CANCELED = "CertificateOrderCanceled"
|
||||
CERTIFICATE_ORDER_CREATED = "CertificateOrderCreated"
|
||||
CERTIFICATE_REVOKED = "CertificateRevoked"
|
||||
DOMAIN_VALIDATION_COMPLETE = "DomainValidationComplete"
|
||||
FRAUD_DETECTED = "FraudDetected"
|
||||
ORG_NAME_CHANGE = "OrgNameChange"
|
||||
ORG_VALIDATION_COMPLETE = "OrgValidationComplete"
|
||||
SAN_DROP = "SanDrop"
|
||||
FRAUD_CLEARED = "FraudCleared"
|
||||
CERTIFICATE_EXPIRED = "CertificateExpired"
|
||||
CERTIFICATE_EXPIRATION_WARNING = "CertificateExpirationWarning"
|
||||
FRAUD_DOCUMENTATION_REQUIRED = "FraudDocumentationRequired"
|
||||
UNKNOWN = "Unknown"
|
||||
|
||||
|
||||
class CertificateOrderStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Current order status."""
|
||||
|
||||
PENDINGISSUANCE = "Pendingissuance"
|
||||
ISSUED = "Issued"
|
||||
REVOKED = "Revoked"
|
||||
CANCELED = "Canceled"
|
||||
DENIED = "Denied"
|
||||
PENDINGREVOCATION = "Pendingrevocation"
|
||||
PENDING_REKEY = "PendingRekey"
|
||||
UNUSED = "Unused"
|
||||
EXPIRED = "Expired"
|
||||
NOT_SUBMITTED = "NotSubmitted"
|
||||
|
||||
|
||||
class CertificateProductType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Certificate product type."""
|
||||
|
||||
STANDARD_DOMAIN_VALIDATED_SSL = "StandardDomainValidatedSsl"
|
||||
STANDARD_DOMAIN_VALIDATED_WILD_CARD_SSL = "StandardDomainValidatedWildCardSsl"
|
||||
|
||||
|
||||
class KeyVaultSecretStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Status of the Key Vault secret."""
|
||||
|
||||
INITIALIZED = "Initialized"
|
||||
WAITING_ON_CERTIFICATE_ORDER = "WaitingOnCertificateOrder"
|
||||
SUCCEEDED = "Succeeded"
|
||||
CERTIFICATE_ORDER_FAILED = "CertificateOrderFailed"
|
||||
OPERATION_NOT_PERMITTED_ON_KEY_VAULT = "OperationNotPermittedOnKeyVault"
|
||||
AZURE_SERVICE_UNAUTHORIZED_TO_ACCESS_KEY_VAULT = "AzureServiceUnauthorizedToAccessKeyVault"
|
||||
KEY_VAULT_DOES_NOT_EXIST = "KeyVaultDoesNotExist"
|
||||
KEY_VAULT_SECRET_DOES_NOT_EXIST = "KeyVaultSecretDoesNotExist"
|
||||
UNKNOWN_ERROR = "UnknownError"
|
||||
EXTERNAL_PRIVATE_KEY = "ExternalPrivateKey"
|
||||
UNKNOWN = "Unknown"
|
||||
|
||||
|
||||
class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Status of certificate order."""
|
||||
|
||||
SUCCEEDED = "Succeeded"
|
||||
FAILED = "Failed"
|
||||
CANCELED = "Canceled"
|
||||
IN_PROGRESS = "InProgress"
|
||||
DELETING = "Deleting"
|
||||
|
||||
|
||||
class ResourceNotRenewableReason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""ResourceNotRenewableReason."""
|
||||
|
||||
REGISTRATION_STATUS_NOT_SUPPORTED_FOR_RENEWAL = "RegistrationStatusNotSupportedForRenewal"
|
||||
EXPIRATION_NOT_IN_RENEWAL_TIME_RANGE = "ExpirationNotInRenewalTimeRange"
|
||||
SUBSCRIPTION_NOT_ACTIVE = "SubscriptionNotActive"
|
|
@ -1,21 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._app_service_certificate_orders_operations import AppServiceCertificateOrdersOperations
|
||||
from ._certificate_registration_provider_operations import CertificateRegistrationProviderOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"AppServiceCertificateOrdersOperations",
|
||||
"CertificateRegistrationProviderOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,158 +0,0 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
ClientAuthenticationError,
|
||||
HttpResponseError,
|
||||
ResourceExistsError,
|
||||
ResourceNotFoundError,
|
||||
ResourceNotModifiedError,
|
||||
map_error,
|
||||
)
|
||||
from azure.core.paging import ItemPaged
|
||||
from azure.core.pipeline import PipelineResponse
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.core.tracing.decorator import distributed_trace
|
||||
from azure.core.utils import case_insensitive_dict
|
||||
from azure.mgmt.core.exceptions import ARMErrorFormat
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
_SERIALIZER = Serializer()
|
||||
_SERIALIZER.client_side_validation = False
|
||||
|
||||
|
||||
def build_list_operations_request(**kwargs: Any) -> HttpRequest:
|
||||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2015-08-01"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
_url = kwargs.pop("template_url", "/providers/Microsoft.CertificateRegistration/operations")
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
||||
# Construct headers
|
||||
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
||||
|
||||
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
||||
|
||||
|
||||
class CertificateRegistrationProviderOperations: # pylint: disable=name-too-long
|
||||
"""
|
||||
.. warning::
|
||||
**DO NOT** instantiate this class directly.
|
||||
|
||||
Instead, you should access the following operations through
|
||||
:class:`~azure.mgmt.web.v2015_08_01.WebSiteManagementClient`'s
|
||||
:attr:`certificate_registration_provider` attribute.
|
||||
"""
|
||||
|
||||
models = _models
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
input_args = list(args)
|
||||
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
||||
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
||||
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
||||
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
||||
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
||||
|
||||
@distributed_trace
|
||||
def list_operations(self, **kwargs: Any) -> Iterable["_models.CsmOperationDescription"]:
|
||||
"""Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
Implements Csm operations Api to exposes the list of available Csm Apis under the resource
|
||||
provider.
|
||||
|
||||
:return: An iterator like instance of either CsmOperationDescription or the result of
|
||||
cls(response)
|
||||
:rtype:
|
||||
~azure.core.paging.ItemPaged[~azure.mgmt.web.v2015_08_01.models.CsmOperationDescription]
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
_headers = kwargs.pop("headers", {}) or {}
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2015-08-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
304: ResourceNotModifiedError,
|
||||
}
|
||||
error_map.update(kwargs.pop("error_map", {}) or {})
|
||||
|
||||
def prepare_request(next_link=None):
|
||||
if not next_link:
|
||||
|
||||
_request = build_list_operations_request(
|
||||
api_version=api_version,
|
||||
headers=_headers,
|
||||
params=_params,
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
|
||||
else:
|
||||
# make call to next link with the client's api-version
|
||||
_parsed_next_link = urllib.parse.urlparse(next_link)
|
||||
_next_request_params = case_insensitive_dict(
|
||||
{
|
||||
key: [urllib.parse.quote(v) for v in value]
|
||||
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
||||
}
|
||||
)
|
||||
_next_request_params["api-version"] = self._api_version
|
||||
_request = HttpRequest(
|
||||
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
||||
)
|
||||
_request.url = self._client.format_url(_request.url)
|
||||
_request.method = "GET"
|
||||
return _request
|
||||
|
||||
def extract_data(pipeline_response):
|
||||
deserialized = self._deserialize("CsmOperationCollection", pipeline_response)
|
||||
list_of_elem = deserialized.value
|
||||
if cls:
|
||||
list_of_elem = cls(list_of_elem) # type: ignore
|
||||
return deserialized.next_link or None, iter(list_of_elem)
|
||||
|
||||
def get_next(next_link=None):
|
||||
_request = prepare_request(next_link)
|
||||
|
||||
_stream = False
|
||||
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
||||
_request, stream=_stream, **kwargs
|
||||
)
|
||||
response = pipeline_response.http_response
|
||||
|
||||
if response.status_code not in [200]:
|
||||
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
||||
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
||||
|
||||
return pipeline_response
|
||||
|
||||
return ItemPaged(get_next, extract_data)
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1 +0,0 @@
|
|||
# Marker file for PEP 561.
|
|
@ -5,15 +5,21 @@
|
|||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient # type: ignore
|
||||
from ._version import VERSION
|
||||
|
||||
__version__ = VERSION
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import *
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
@ -21,6 +27,6 @@ from ._patch import patch_sdk as _patch_sdk
|
|||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
||||
|
||||
_patch_sdk()
|
||||
|
|
|
@ -14,11 +14,10 @@ from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLo
|
|||
from ._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
|
|
|
@ -283,7 +283,7 @@
|
|||
},
|
||||
"async": {
|
||||
"coroutine": true,
|
||||
"signature": "async def move( # pylint: disable=inconsistent-return-statements\n self,\n resource_group_name: str,\n move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],\n **kwargs: Any\n) -\u003e None:\n",
|
||||
"signature": "async def move(\n self,\n resource_group_name: str,\n move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],\n **kwargs: Any\n) -\u003e None:\n",
|
||||
"doc": "\"\"\"Move resources between resource groups.\n\nMove resources between resource groups.\n\n:param resource_group_name: Name of the resource group to which the resource belongs. Required.\n:type resource_group_name: str\n:param move_resource_envelope: Object that represents the resource to move. Is either a\n CsmMoveResourceEnvelope type or a IO[bytes] type. Required.\n:type move_resource_envelope: ~azure.mgmt.web.v2016_03_01.models.CsmMoveResourceEnvelope or\n IO[bytes]\n:return: None or the result of cls(response)\n:rtype: None\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"",
|
||||
"call": "resource_group_name, move_resource_envelope, **kwargs"
|
||||
}
|
||||
|
@ -309,7 +309,7 @@
|
|||
},
|
||||
"async": {
|
||||
"coroutine": true,
|
||||
"signature": "async def validate_move( # pylint: disable=inconsistent-return-statements\n self,\n resource_group_name: str,\n move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],\n **kwargs: Any\n) -\u003e None:\n",
|
||||
"signature": "async def validate_move(\n self,\n resource_group_name: str,\n move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],\n **kwargs: Any\n) -\u003e None:\n",
|
||||
"doc": "\"\"\"Validate whether a resource can be moved.\n\nValidate whether a resource can be moved.\n\n:param resource_group_name: Name of the resource group to which the resource belongs. Required.\n:type resource_group_name: str\n:param move_resource_envelope: Object that represents the resource to move. Is either a\n CsmMoveResourceEnvelope type or a IO[bytes] type. Required.\n:type move_resource_envelope: ~azure.mgmt.web.v2016_03_01.models.CsmMoveResourceEnvelope or\n IO[bytes]\n:return: None or the result of cls(response)\n:rtype: None\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"",
|
||||
"call": "resource_group_name, move_resource_envelope, **kwargs"
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ from typing import TYPE_CHECKING
|
|||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core import PipelineClient
|
||||
|
||||
from .._serialization import Deserializer, Serializer
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
VERSION = "7.3.1"
|
||||
VERSION = "0.0.0"
|
||||
|
|
|
@ -30,13 +30,10 @@ from .operations import (
|
|||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient(
|
||||
WebSiteManagementClientOperationsMixin
|
||||
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
|
||||
class WebSiteManagementClient(WebSiteManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar certificates: CertificatesOperations operations
|
||||
|
|
|
@ -5,12 +5,18 @@
|
|||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient # type: ignore
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import *
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
@ -18,6 +24,6 @@ from ._patch import patch_sdk as _patch_sdk
|
|||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
||||
|
||||
_patch_sdk()
|
||||
|
|
|
@ -14,11 +14,10 @@ from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuth
|
|||
from .._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
|
|
|
@ -11,7 +11,6 @@ from typing import TYPE_CHECKING
|
|||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core import AsyncPipelineClient
|
||||
|
||||
from ..._serialization import Deserializer, Serializer
|
||||
|
|
|
@ -30,13 +30,10 @@ from .operations import (
|
|||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient(
|
||||
WebSiteManagementClientOperationsMixin
|
||||
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
|
||||
class WebSiteManagementClient(WebSiteManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar certificates: CertificatesOperations operations
|
||||
|
|
|
@ -5,18 +5,24 @@
|
|||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from ._certificates_operations import CertificatesOperations
|
||||
from ._deleted_web_apps_operations import DeletedWebAppsOperations
|
||||
from ._diagnostics_operations import DiagnosticsOperations
|
||||
from ._provider_operations import ProviderOperations
|
||||
from ._recommendations_operations import RecommendationsOperations
|
||||
from ._resource_health_metadata_operations import ResourceHealthMetadataOperations
|
||||
from ._web_site_management_client_operations import WebSiteManagementClientOperationsMixin
|
||||
from ._billing_meters_operations import BillingMetersOperations
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
|
||||
from ._certificates_operations import CertificatesOperations # type: ignore
|
||||
from ._deleted_web_apps_operations import DeletedWebAppsOperations # type: ignore
|
||||
from ._diagnostics_operations import DiagnosticsOperations # type: ignore
|
||||
from ._provider_operations import ProviderOperations # type: ignore
|
||||
from ._recommendations_operations import RecommendationsOperations # type: ignore
|
||||
from ._resource_health_metadata_operations import ResourceHealthMetadataOperations # type: ignore
|
||||
from ._web_site_management_client_operations import WebSiteManagementClientOperationsMixin # type: ignore
|
||||
from ._billing_meters_operations import BillingMetersOperations # type: ignore
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import *
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
|
@ -29,5 +35,5 @@ __all__ = [
|
|||
"WebSiteManagementClientOperationsMixin",
|
||||
"BillingMetersOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
||||
_patch_sdk()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from ... import models as _models
|
||||
from ...operations._billing_meters_operations import build_list_request
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -76,7 +74,7 @@ class BillingMetersOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +7,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
|
||||
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -36,12 +35,11 @@ from ...operations._certificates_operations import (
|
|||
build_list_request,
|
||||
build_update_request,
|
||||
)
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -82,7 +80,7 @@ class CertificatesOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -160,7 +158,7 @@ class CertificatesOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -235,7 +233,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -356,7 +354,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -411,9 +409,7 @@ class CertificatesOperations:
|
|||
return deserialized # type: ignore
|
||||
|
||||
@distributed_trace_async
|
||||
async def delete( # pylint: disable=inconsistent-return-statements
|
||||
self, resource_group_name: str, name: str, **kwargs: Any
|
||||
) -> None:
|
||||
async def delete(self, resource_group_name: str, name: str, **kwargs: Any) -> None:
|
||||
"""Delete a certificate.
|
||||
|
||||
Delete a certificate.
|
||||
|
@ -426,7 +422,7 @@ class CertificatesOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -544,7 +540,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from ... import models as _models
|
||||
from ...operations._deleted_web_apps_operations import build_list_request
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -73,7 +71,7 @@ class DeletedWebAppsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DeletedWebAppCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# pylint: disable=too-many-lines
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +8,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
import datetime
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -52,12 +52,11 @@ from ...operations._diagnostics_operations import (
|
|||
build_list_site_diagnostic_categories_request,
|
||||
build_list_site_diagnostic_categories_slot_request,
|
||||
)
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -105,7 +104,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -198,7 +197,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -267,7 +266,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -360,7 +359,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -429,7 +428,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticCategoryCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -509,7 +508,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticCategory
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -577,7 +576,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticAnalysisCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -660,7 +659,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -738,7 +737,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -810,7 +809,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -900,7 +899,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -998,7 +997,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticDetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1070,7 +1069,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1167,7 +1166,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1239,7 +1238,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticCategoryCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1322,7 +1321,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticCategory
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1393,7 +1392,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticAnalysisCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1485,7 +1484,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1567,7 +1566,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1642,7 +1641,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1741,7 +1740,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1843,7 +1842,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticDetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar, Union
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -31,12 +30,11 @@ from ...operations._provider_operations import (
|
|||
build_get_available_stacks_request,
|
||||
build_list_operations_request,
|
||||
)
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -82,7 +80,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ApplicationStackCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -162,7 +160,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -242,7 +240,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ApplicationStackCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -38,12 +37,11 @@ from ...operations._recommendations_operations import (
|
|||
build_reset_all_filters_for_web_app_request,
|
||||
build_reset_all_filters_request,
|
||||
)
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -95,7 +93,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -158,7 +156,7 @@ class RecommendationsOperations:
|
|||
return AsyncItemPaged(get_next, extract_data)
|
||||
|
||||
@distributed_trace_async
|
||||
async def reset_all_filters(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
|
||||
async def reset_all_filters(self, **kwargs: Any) -> None:
|
||||
"""Reset all recommendation opt-out settings for a subscription.
|
||||
|
||||
Reset all recommendation opt-out settings for a subscription.
|
||||
|
@ -167,7 +165,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -204,9 +202,7 @@ class RecommendationsOperations:
|
|||
return cls(pipeline_response, None, {}) # type: ignore
|
||||
|
||||
@distributed_trace_async
|
||||
async def disable_recommendation_for_subscription( # pylint: disable=inconsistent-return-statements
|
||||
self, name: str, **kwargs: Any
|
||||
) -> None:
|
||||
async def disable_recommendation_for_subscription(self, name: str, **kwargs: Any) -> None:
|
||||
"""Disables the specified rule so it will not apply to a subscription in the future.
|
||||
|
||||
Disables the specified rule so it will not apply to a subscription in the future.
|
||||
|
@ -217,7 +213,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -281,7 +277,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -379,7 +375,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -444,9 +440,7 @@ class RecommendationsOperations:
|
|||
return AsyncItemPaged(get_next, extract_data)
|
||||
|
||||
@distributed_trace_async
|
||||
async def disable_all_for_web_app( # pylint: disable=inconsistent-return-statements
|
||||
self, resource_group_name: str, site_name: str, **kwargs: Any
|
||||
) -> None:
|
||||
async def disable_all_for_web_app(self, resource_group_name: str, site_name: str, **kwargs: Any) -> None:
|
||||
"""Disable all recommendations for an app.
|
||||
|
||||
Disable all recommendations for an app.
|
||||
|
@ -459,7 +453,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -498,9 +492,7 @@ class RecommendationsOperations:
|
|||
return cls(pipeline_response, None, {}) # type: ignore
|
||||
|
||||
@distributed_trace_async
|
||||
async def reset_all_filters_for_web_app( # pylint: disable=inconsistent-return-statements
|
||||
self, resource_group_name: str, site_name: str, **kwargs: Any
|
||||
) -> None:
|
||||
async def reset_all_filters_for_web_app(self, resource_group_name: str, site_name: str, **kwargs: Any) -> None:
|
||||
"""Reset all recommendation opt-out settings for an app.
|
||||
|
||||
Reset all recommendation opt-out settings for an app.
|
||||
|
@ -513,7 +505,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -581,7 +573,7 @@ class RecommendationsOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.RecommendationRule
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -627,7 +619,7 @@ class RecommendationsOperations:
|
|||
return deserialized # type: ignore
|
||||
|
||||
@distributed_trace_async
|
||||
async def disable_recommendation_for_site( # pylint: disable=inconsistent-return-statements
|
||||
async def disable_recommendation_for_site(
|
||||
self, resource_group_name: str, site_name: str, name: str, **kwargs: Any
|
||||
) -> None:
|
||||
"""Disables the specific rule for a web site permanently.
|
||||
|
@ -644,7 +636,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
|
||||
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -35,12 +34,11 @@ from ...operations._resource_health_metadata_operations import (
|
|||
build_list_by_site_slot_request,
|
||||
build_list_request,
|
||||
)
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -83,7 +81,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -166,7 +164,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -252,7 +250,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -329,7 +327,7 @@ class ResourceHealthMetadataOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceHealthMetadata
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -399,7 +397,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -482,7 +480,7 @@ class ResourceHealthMetadataOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceHealthMetadata
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# pylint: disable=too-many-lines
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +8,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, Type, TypeVar, Union, overload
|
||||
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
||||
|
@ -50,7 +50,7 @@ from .._vendor import WebSiteManagementClientMixinABC
|
|||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -72,7 +72,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -162,7 +162,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -234,7 +234,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.SourceControlCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -305,7 +305,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -414,7 +414,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -488,7 +488,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceNameAvailability
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -546,7 +546,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DeploymentLocations
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -618,7 +618,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.GeoRegionCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -743,7 +743,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
cls: ClsType[_models.IdentifierCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -832,7 +832,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.PremierAddOnOfferCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -902,7 +902,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SkuInfos
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1001,7 +1001,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.VnetValidationFailureDetails
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1057,7 +1057,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
async def move( # pylint: disable=inconsistent-return-statements
|
||||
async def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: _models.CsmMoveResourceEnvelope,
|
||||
|
@ -1082,7 +1082,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@overload
|
||||
async def move( # pylint: disable=inconsistent-return-statements
|
||||
async def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: IO[bytes],
|
||||
|
@ -1107,7 +1107,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@distributed_trace_async
|
||||
async def move( # pylint: disable=inconsistent-return-statements
|
||||
async def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],
|
||||
|
@ -1127,7 +1127,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1245,7 +1245,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ValidateResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1301,7 +1301,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
async def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
async def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: _models.CsmMoveResourceEnvelope,
|
||||
|
@ -1326,7 +1326,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@overload
|
||||
async def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
async def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: IO[bytes],
|
||||
|
@ -1351,7 +1351,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@distributed_trace_async
|
||||
async def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
async def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: Union[_models.CsmMoveResourceEnvelope, IO[bytes]],
|
||||
|
@ -1371,7 +1371,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -5,178 +5,189 @@
|
|||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from ._models_py3 import AbnormalTimePeriod
|
||||
from ._models_py3 import AnalysisData
|
||||
from ._models_py3 import AnalysisDefinition
|
||||
from ._models_py3 import ApiDefinitionInfo
|
||||
from ._models_py3 import AppServiceEnvironment
|
||||
from ._models_py3 import AppServicePlan
|
||||
from ._models_py3 import AppServicePlanCollection
|
||||
from ._models_py3 import ApplicationStack
|
||||
from ._models_py3 import ApplicationStackCollection
|
||||
from ._models_py3 import AutoHealActions
|
||||
from ._models_py3 import AutoHealCustomAction
|
||||
from ._models_py3 import AutoHealRules
|
||||
from ._models_py3 import AutoHealTriggers
|
||||
from ._models_py3 import BillingMeter
|
||||
from ._models_py3 import BillingMeterCollection
|
||||
from ._models_py3 import Capability
|
||||
from ._models_py3 import Certificate
|
||||
from ._models_py3 import CertificateCollection
|
||||
from ._models_py3 import CertificatePatchResource
|
||||
from ._models_py3 import CloningInfo
|
||||
from ._models_py3 import ConnStringInfo
|
||||
from ._models_py3 import CorsSettings
|
||||
from ._models_py3 import CsmMoveResourceEnvelope
|
||||
from ._models_py3 import CsmOperationCollection
|
||||
from ._models_py3 import CsmOperationDescription
|
||||
from ._models_py3 import CsmOperationDescriptionProperties
|
||||
from ._models_py3 import CsmOperationDisplay
|
||||
from ._models_py3 import CsmUsageQuota
|
||||
from ._models_py3 import CsmUsageQuotaCollection
|
||||
from ._models_py3 import DataSource
|
||||
from ._models_py3 import DataTableResponseColumn
|
||||
from ._models_py3 import DataTableResponseObject
|
||||
from ._models_py3 import DefaultErrorResponse
|
||||
from ._models_py3 import DefaultErrorResponseError
|
||||
from ._models_py3 import DefaultErrorResponseErrorDetailsItem
|
||||
from ._models_py3 import DeletedSite
|
||||
from ._models_py3 import DeletedWebAppCollection
|
||||
from ._models_py3 import DeploymentLocations
|
||||
from ._models_py3 import DetectorAbnormalTimePeriod
|
||||
from ._models_py3 import DetectorDefinition
|
||||
from ._models_py3 import DetectorInfo
|
||||
from ._models_py3 import DetectorResponse
|
||||
from ._models_py3 import DetectorResponseCollection
|
||||
from ._models_py3 import DiagnosticAnalysis
|
||||
from ._models_py3 import DiagnosticAnalysisCollection
|
||||
from ._models_py3 import DiagnosticCategory
|
||||
from ._models_py3 import DiagnosticCategoryCollection
|
||||
from ._models_py3 import DiagnosticData
|
||||
from ._models_py3 import DiagnosticDetectorCollection
|
||||
from ._models_py3 import DiagnosticDetectorResponse
|
||||
from ._models_py3 import DiagnosticMetricSample
|
||||
from ._models_py3 import DiagnosticMetricSet
|
||||
from ._models_py3 import Dimension
|
||||
from ._models_py3 import ErrorEntity
|
||||
from ._models_py3 import Experiments
|
||||
from ._models_py3 import GeoRegion
|
||||
from ._models_py3 import GeoRegionCollection
|
||||
from ._models_py3 import GlobalCsmSkuDescription
|
||||
from ._models_py3 import HandlerMapping
|
||||
from ._models_py3 import HostNameSslState
|
||||
from ._models_py3 import HostingEnvironmentDeploymentInfo
|
||||
from ._models_py3 import HostingEnvironmentProfile
|
||||
from ._models_py3 import HybridConnection
|
||||
from ._models_py3 import HybridConnectionKey
|
||||
from ._models_py3 import Identifier
|
||||
from ._models_py3 import IdentifierCollection
|
||||
from ._models_py3 import IpSecurityRestriction
|
||||
from ._models_py3 import LocalizableString
|
||||
from ._models_py3 import ManagedServiceIdentity
|
||||
from ._models_py3 import MetricAvailability
|
||||
from ._models_py3 import MetricSpecification
|
||||
from ._models_py3 import NameIdentifier
|
||||
from ._models_py3 import NameValuePair
|
||||
from ._models_py3 import NetworkAccessControlEntry
|
||||
from ._models_py3 import Operation
|
||||
from ._models_py3 import PremierAddOnOffer
|
||||
from ._models_py3 import PremierAddOnOfferCollection
|
||||
from ._models_py3 import ProxyOnlyResource
|
||||
from ._models_py3 import PushSettings
|
||||
from ._models_py3 import RampUpRule
|
||||
from ._models_py3 import Recommendation
|
||||
from ._models_py3 import RecommendationCollection
|
||||
from ._models_py3 import RecommendationRule
|
||||
from ._models_py3 import Rendering
|
||||
from ._models_py3 import RequestsBasedTrigger
|
||||
from ._models_py3 import Resource
|
||||
from ._models_py3 import ResourceHealthMetadata
|
||||
from ._models_py3 import ResourceHealthMetadataCollection
|
||||
from ._models_py3 import ResourceMetric
|
||||
from ._models_py3 import ResourceMetricAvailability
|
||||
from ._models_py3 import ResourceMetricCollection
|
||||
from ._models_py3 import ResourceMetricDefinition
|
||||
from ._models_py3 import ResourceMetricDefinitionCollection
|
||||
from ._models_py3 import ResourceMetricName
|
||||
from ._models_py3 import ResourceMetricProperty
|
||||
from ._models_py3 import ResourceMetricValue
|
||||
from ._models_py3 import ResourceNameAvailability
|
||||
from ._models_py3 import ResourceNameAvailabilityRequest
|
||||
from ._models_py3 import ResponseMetaData
|
||||
from ._models_py3 import ServiceSpecification
|
||||
from ._models_py3 import Site
|
||||
from ._models_py3 import SiteConfig
|
||||
from ._models_py3 import SiteLimits
|
||||
from ._models_py3 import SiteMachineKey
|
||||
from ._models_py3 import SkuCapacity
|
||||
from ._models_py3 import SkuDescription
|
||||
from ._models_py3 import SkuInfos
|
||||
from ._models_py3 import SlotSwapStatus
|
||||
from ._models_py3 import SlowRequestsBasedTrigger
|
||||
from ._models_py3 import SnapshotRecoveryRequest
|
||||
from ._models_py3 import SnapshotRecoveryTarget
|
||||
from ._models_py3 import Solution
|
||||
from ._models_py3 import SourceControl
|
||||
from ._models_py3 import SourceControlCollection
|
||||
from ._models_py3 import StackMajorVersion
|
||||
from ._models_py3 import StackMinorVersion
|
||||
from ._models_py3 import StampCapacity
|
||||
from ._models_py3 import StatusCodesBasedTrigger
|
||||
from ._models_py3 import User
|
||||
from ._models_py3 import ValidateRequest
|
||||
from ._models_py3 import ValidateResponse
|
||||
from ._models_py3 import ValidateResponseError
|
||||
from ._models_py3 import VirtualApplication
|
||||
from ._models_py3 import VirtualDirectory
|
||||
from ._models_py3 import VirtualIPMapping
|
||||
from ._models_py3 import VirtualNetworkProfile
|
||||
from ._models_py3 import VnetGateway
|
||||
from ._models_py3 import VnetInfo
|
||||
from ._models_py3 import VnetParameters
|
||||
from ._models_py3 import VnetRoute
|
||||
from ._models_py3 import VnetValidationFailureDetails
|
||||
from ._models_py3 import VnetValidationTestFailure
|
||||
from ._models_py3 import WebAppCollection
|
||||
from ._models_py3 import WorkerPool
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from ._web_site_management_client_enums import AccessControlEntryAction
|
||||
from ._web_site_management_client_enums import AppServicePlanRestrictions
|
||||
from ._web_site_management_client_enums import AutoHealActionType
|
||||
from ._web_site_management_client_enums import Channels
|
||||
from ._web_site_management_client_enums import CheckNameResourceTypes
|
||||
from ._web_site_management_client_enums import ComputeModeOptions
|
||||
from ._web_site_management_client_enums import ConnectionStringType
|
||||
from ._web_site_management_client_enums import Enum0
|
||||
from ._web_site_management_client_enums import Enum1
|
||||
from ._web_site_management_client_enums import HostType
|
||||
from ._web_site_management_client_enums import HostingEnvironmentStatus
|
||||
from ._web_site_management_client_enums import InAvailabilityReasonType
|
||||
from ._web_site_management_client_enums import InternalLoadBalancingMode
|
||||
from ._web_site_management_client_enums import IssueType
|
||||
from ._web_site_management_client_enums import KeyVaultSecretStatus
|
||||
from ._web_site_management_client_enums import ManagedPipelineMode
|
||||
from ._web_site_management_client_enums import ManagedServiceIdentityType
|
||||
from ._web_site_management_client_enums import NotificationLevel
|
||||
from ._web_site_management_client_enums import OperationStatus
|
||||
from ._web_site_management_client_enums import ProvisioningState
|
||||
from ._web_site_management_client_enums import RenderingType
|
||||
from ._web_site_management_client_enums import ResourceScopeType
|
||||
from ._web_site_management_client_enums import RouteType
|
||||
from ._web_site_management_client_enums import ScmType
|
||||
from ._web_site_management_client_enums import SiteAvailabilityState
|
||||
from ._web_site_management_client_enums import SiteLoadBalancing
|
||||
from ._web_site_management_client_enums import SkuName
|
||||
from ._web_site_management_client_enums import SolutionType
|
||||
from ._web_site_management_client_enums import SslState
|
||||
from ._web_site_management_client_enums import StatusOptions
|
||||
from ._web_site_management_client_enums import SupportedTlsVersions
|
||||
from ._web_site_management_client_enums import UsageState
|
||||
from ._web_site_management_client_enums import ValidateResourceTypes
|
||||
from ._web_site_management_client_enums import WorkerSizeOptions
|
||||
from ._patch import __all__ as _patch_all
|
||||
if TYPE_CHECKING:
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
|
||||
|
||||
from ._models_py3 import ( # type: ignore
|
||||
AbnormalTimePeriod,
|
||||
AnalysisData,
|
||||
AnalysisDefinition,
|
||||
ApiDefinitionInfo,
|
||||
AppServiceEnvironment,
|
||||
AppServicePlan,
|
||||
AppServicePlanCollection,
|
||||
ApplicationStack,
|
||||
ApplicationStackCollection,
|
||||
AutoHealActions,
|
||||
AutoHealCustomAction,
|
||||
AutoHealRules,
|
||||
AutoHealTriggers,
|
||||
BillingMeter,
|
||||
BillingMeterCollection,
|
||||
Capability,
|
||||
Certificate,
|
||||
CertificateCollection,
|
||||
CertificatePatchResource,
|
||||
CloningInfo,
|
||||
ConnStringInfo,
|
||||
CorsSettings,
|
||||
CsmMoveResourceEnvelope,
|
||||
CsmOperationCollection,
|
||||
CsmOperationDescription,
|
||||
CsmOperationDescriptionProperties,
|
||||
CsmOperationDisplay,
|
||||
CsmUsageQuota,
|
||||
CsmUsageQuotaCollection,
|
||||
DataSource,
|
||||
DataTableResponseColumn,
|
||||
DataTableResponseObject,
|
||||
DefaultErrorResponse,
|
||||
DefaultErrorResponseError,
|
||||
DefaultErrorResponseErrorDetailsItem,
|
||||
DeletedSite,
|
||||
DeletedWebAppCollection,
|
||||
DeploymentLocations,
|
||||
DetectorAbnormalTimePeriod,
|
||||
DetectorDefinition,
|
||||
DetectorInfo,
|
||||
DetectorResponse,
|
||||
DetectorResponseCollection,
|
||||
DiagnosticAnalysis,
|
||||
DiagnosticAnalysisCollection,
|
||||
DiagnosticCategory,
|
||||
DiagnosticCategoryCollection,
|
||||
DiagnosticData,
|
||||
DiagnosticDetectorCollection,
|
||||
DiagnosticDetectorResponse,
|
||||
DiagnosticMetricSample,
|
||||
DiagnosticMetricSet,
|
||||
Dimension,
|
||||
ErrorEntity,
|
||||
Experiments,
|
||||
GeoRegion,
|
||||
GeoRegionCollection,
|
||||
GlobalCsmSkuDescription,
|
||||
HandlerMapping,
|
||||
HostNameSslState,
|
||||
HostingEnvironmentDeploymentInfo,
|
||||
HostingEnvironmentProfile,
|
||||
HybridConnection,
|
||||
HybridConnectionKey,
|
||||
Identifier,
|
||||
IdentifierCollection,
|
||||
IpSecurityRestriction,
|
||||
LocalizableString,
|
||||
ManagedServiceIdentity,
|
||||
MetricAvailability,
|
||||
MetricSpecification,
|
||||
NameIdentifier,
|
||||
NameValuePair,
|
||||
NetworkAccessControlEntry,
|
||||
Operation,
|
||||
PremierAddOnOffer,
|
||||
PremierAddOnOfferCollection,
|
||||
ProxyOnlyResource,
|
||||
PushSettings,
|
||||
RampUpRule,
|
||||
Recommendation,
|
||||
RecommendationCollection,
|
||||
RecommendationRule,
|
||||
Rendering,
|
||||
RequestsBasedTrigger,
|
||||
Resource,
|
||||
ResourceHealthMetadata,
|
||||
ResourceHealthMetadataCollection,
|
||||
ResourceMetric,
|
||||
ResourceMetricAvailability,
|
||||
ResourceMetricCollection,
|
||||
ResourceMetricDefinition,
|
||||
ResourceMetricDefinitionCollection,
|
||||
ResourceMetricName,
|
||||
ResourceMetricProperty,
|
||||
ResourceMetricValue,
|
||||
ResourceNameAvailability,
|
||||
ResourceNameAvailabilityRequest,
|
||||
ResponseMetaData,
|
||||
ServiceSpecification,
|
||||
Site,
|
||||
SiteConfig,
|
||||
SiteLimits,
|
||||
SiteMachineKey,
|
||||
SkuCapacity,
|
||||
SkuDescription,
|
||||
SkuInfos,
|
||||
SlotSwapStatus,
|
||||
SlowRequestsBasedTrigger,
|
||||
SnapshotRecoveryRequest,
|
||||
SnapshotRecoveryTarget,
|
||||
Solution,
|
||||
SourceControl,
|
||||
SourceControlCollection,
|
||||
StackMajorVersion,
|
||||
StackMinorVersion,
|
||||
StampCapacity,
|
||||
StatusCodesBasedTrigger,
|
||||
User,
|
||||
ValidateRequest,
|
||||
ValidateResponse,
|
||||
ValidateResponseError,
|
||||
VirtualApplication,
|
||||
VirtualDirectory,
|
||||
VirtualIPMapping,
|
||||
VirtualNetworkProfile,
|
||||
VnetGateway,
|
||||
VnetInfo,
|
||||
VnetParameters,
|
||||
VnetRoute,
|
||||
VnetValidationFailureDetails,
|
||||
VnetValidationTestFailure,
|
||||
WebAppCollection,
|
||||
WorkerPool,
|
||||
)
|
||||
|
||||
from ._web_site_management_client_enums import ( # type: ignore
|
||||
AccessControlEntryAction,
|
||||
AppServicePlanRestrictions,
|
||||
AutoHealActionType,
|
||||
Channels,
|
||||
CheckNameResourceTypes,
|
||||
ComputeModeOptions,
|
||||
ConnectionStringType,
|
||||
Enum0,
|
||||
Enum1,
|
||||
HostType,
|
||||
HostingEnvironmentStatus,
|
||||
InAvailabilityReasonType,
|
||||
InternalLoadBalancingMode,
|
||||
IssueType,
|
||||
KeyVaultSecretStatus,
|
||||
ManagedPipelineMode,
|
||||
ManagedServiceIdentityType,
|
||||
NotificationLevel,
|
||||
OperationStatus,
|
||||
ProvisioningState,
|
||||
RenderingType,
|
||||
ResourceScopeType,
|
||||
RouteType,
|
||||
ScmType,
|
||||
SiteAvailabilityState,
|
||||
SiteLoadBalancing,
|
||||
SkuName,
|
||||
SolutionType,
|
||||
SslState,
|
||||
StatusOptions,
|
||||
SupportedTlsVersions,
|
||||
UsageState,
|
||||
ValidateResourceTypes,
|
||||
WorkerSizeOptions,
|
||||
)
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import *
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
|
@ -349,5 +360,5 @@ __all__ = [
|
|||
"ValidateResourceTypes",
|
||||
"WorkerSizeOptions",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
||||
_patch_sdk()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# coding=utf-8
|
||||
# pylint: disable=too-many-lines
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
@ -13,7 +13,6 @@ from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
|
|||
from ... import _serialization
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from .. import models as _models
|
||||
|
||||
|
||||
|
@ -303,7 +302,7 @@ class ApplicationStackCollection(_serialization.Model):
|
|||
self.next_link = None
|
||||
|
||||
|
||||
class AppServiceEnvironment(_serialization.Model): # pylint: disable=too-many-instance-attributes
|
||||
class AppServiceEnvironment(_serialization.Model):
|
||||
"""Description of an App Service Environment.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -644,7 +643,7 @@ class Resource(_serialization.Model):
|
|||
self.tags = tags
|
||||
|
||||
|
||||
class AppServicePlan(Resource): # pylint: disable=too-many-instance-attributes
|
||||
class AppServicePlan(Resource):
|
||||
"""App Service plan.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -1157,7 +1156,7 @@ class Capability(_serialization.Model):
|
|||
self.reason = reason
|
||||
|
||||
|
||||
class Certificate(Resource): # pylint: disable=too-many-instance-attributes
|
||||
class Certificate(Resource):
|
||||
"""SSL certificate for an app.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -1370,7 +1369,7 @@ class CertificateCollection(_serialization.Model):
|
|||
self.next_link = None
|
||||
|
||||
|
||||
class CertificatePatchResource(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class CertificatePatchResource(ProxyOnlyResource):
|
||||
"""ARM resource for a certificate.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -1535,7 +1534,7 @@ class CertificatePatchResource(ProxyOnlyResource): # pylint: disable=too-many-i
|
|||
self.server_farm_id = server_farm_id
|
||||
|
||||
|
||||
class CloningInfo(_serialization.Model): # pylint: disable=too-many-instance-attributes
|
||||
class CloningInfo(_serialization.Model):
|
||||
"""Information needed for cloning operation.
|
||||
|
||||
All required parameters must be populated in order to send to server.
|
||||
|
@ -2856,7 +2855,7 @@ class DiagnosticDetectorCollection(_serialization.Model):
|
|||
self.next_link = None
|
||||
|
||||
|
||||
class DiagnosticDetectorResponse(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class DiagnosticDetectorResponse(ProxyOnlyResource):
|
||||
"""Class representing Response from Diagnostic Detectors.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -3530,7 +3529,7 @@ class HostNameSslState(_serialization.Model):
|
|||
self.host_type = host_type
|
||||
|
||||
|
||||
class HybridConnection(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class HybridConnection(ProxyOnlyResource):
|
||||
"""Hybrid Connection contract. This is used to configure a Hybrid Connection.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -3877,7 +3876,7 @@ class MetricAvailability(_serialization.Model):
|
|||
self.blob_duration = blob_duration
|
||||
|
||||
|
||||
class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes
|
||||
class MetricSpecification(_serialization.Model):
|
||||
"""Definition of a single resource metric.
|
||||
|
||||
:ivar name:
|
||||
|
@ -4168,7 +4167,7 @@ class Operation(_serialization.Model):
|
|||
self.geo_master_operation_id = geo_master_operation_id
|
||||
|
||||
|
||||
class PremierAddOnOffer(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class PremierAddOnOffer(ProxyOnlyResource):
|
||||
"""Premier add-on offer.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -4507,7 +4506,7 @@ class RampUpRule(_serialization.Model):
|
|||
self.name = name
|
||||
|
||||
|
||||
class Recommendation(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class Recommendation(ProxyOnlyResource):
|
||||
"""Represents a recommendation result generated by the recommendation engine.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -4740,7 +4739,7 @@ class RecommendationCollection(_serialization.Model):
|
|||
self.next_link = None
|
||||
|
||||
|
||||
class RecommendationRule(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class RecommendationRule(ProxyOnlyResource):
|
||||
"""Represents a recommendation rule that the recommendation engine can perform.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -5162,7 +5161,7 @@ class ResourceMetricCollection(_serialization.Model):
|
|||
self.next_link = None
|
||||
|
||||
|
||||
class ResourceMetricDefinition(ProxyOnlyResource): # pylint: disable=too-many-instance-attributes
|
||||
class ResourceMetricDefinition(ProxyOnlyResource):
|
||||
"""Metadata for the metrics.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -5518,7 +5517,7 @@ class ServiceSpecification(_serialization.Model):
|
|||
self.metric_specifications = metric_specifications
|
||||
|
||||
|
||||
class Site(Resource): # pylint: disable=too-many-instance-attributes
|
||||
class Site(Resource):
|
||||
"""A web app, a mobile app backend, or an API app.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
@ -5817,7 +5816,7 @@ class Site(Resource): # pylint: disable=too-many-instance-attributes
|
|||
self.https_only = https_only
|
||||
|
||||
|
||||
class SiteConfig(_serialization.Model): # pylint: disable=too-many-instance-attributes
|
||||
class SiteConfig(_serialization.Model):
|
||||
"""Configuration of an App Service app.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
|
|
@ -5,18 +5,24 @@
|
|||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from ._certificates_operations import CertificatesOperations
|
||||
from ._deleted_web_apps_operations import DeletedWebAppsOperations
|
||||
from ._diagnostics_operations import DiagnosticsOperations
|
||||
from ._provider_operations import ProviderOperations
|
||||
from ._recommendations_operations import RecommendationsOperations
|
||||
from ._resource_health_metadata_operations import ResourceHealthMetadataOperations
|
||||
from ._web_site_management_client_operations import WebSiteManagementClientOperationsMixin
|
||||
from ._billing_meters_operations import BillingMetersOperations
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
|
||||
from ._certificates_operations import CertificatesOperations # type: ignore
|
||||
from ._deleted_web_apps_operations import DeletedWebAppsOperations # type: ignore
|
||||
from ._diagnostics_operations import DiagnosticsOperations # type: ignore
|
||||
from ._provider_operations import ProviderOperations # type: ignore
|
||||
from ._recommendations_operations import RecommendationsOperations # type: ignore
|
||||
from ._resource_health_metadata_operations import ResourceHealthMetadataOperations # type: ignore
|
||||
from ._web_site_management_client_operations import WebSiteManagementClientOperationsMixin # type: ignore
|
||||
from ._billing_meters_operations import BillingMetersOperations # type: ignore
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import *
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
|
@ -29,5 +35,5 @@ __all__ = [
|
|||
"WebSiteManagementClientOperationsMixin",
|
||||
"BillingMetersOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
||||
_patch_sdk()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -104,7 +102,7 @@ class BillingMetersOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.BillingMeterCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +7,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
|
||||
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -28,12 +27,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -282,7 +280,7 @@ class CertificatesOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -360,7 +358,7 @@ class CertificatesOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CertificateCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -435,7 +433,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -556,7 +554,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -626,7 +624,7 @@ class CertificatesOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -744,7 +742,7 @@ class CertificatesOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.Certificate
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -100,7 +98,7 @@ class DeletedWebAppsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DeletedWebAppCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# pylint: disable=too-many-lines
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +8,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
import datetime
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -28,12 +28,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -1081,7 +1080,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1174,7 +1173,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1242,7 +1241,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1335,7 +1334,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1403,7 +1402,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticCategoryCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1483,7 +1482,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticCategory
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1550,7 +1549,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticAnalysisCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1633,7 +1632,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1711,7 +1710,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1782,7 +1781,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1871,7 +1870,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1969,7 +1968,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticDetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2040,7 +2039,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DetectorResponseCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2137,7 +2136,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2208,7 +2207,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticCategoryCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2291,7 +2290,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticCategory
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2361,7 +2360,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticAnalysisCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2453,7 +2452,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2535,7 +2534,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticAnalysis
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2609,7 +2608,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2707,7 +2706,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.DiagnosticDetectorCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -2809,7 +2808,7 @@ class DiagnosticsOperations: # pylint: disable=too-many-public-methods
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DiagnosticDetectorResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar, Union
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -150,7 +148,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ApplicationStackCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -230,7 +228,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.CsmOperationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -309,7 +307,7 @@ class ProviderOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ApplicationStackCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -392,7 +390,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -464,7 +462,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -514,7 +512,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -577,7 +575,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -674,7 +672,7 @@ class RecommendationsOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.RecommendationCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -754,7 +752,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -808,7 +806,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -876,7 +874,7 @@ class RecommendationsOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.RecommendationRule
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -939,7 +937,7 @@ class RecommendationsOperations:
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -7,7 +6,7 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -27,12 +26,11 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Serializer
|
||||
from .._vendor import WebSiteManagementClientMixinABC
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -286,7 +284,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -368,7 +366,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -453,7 +451,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -530,7 +528,7 @@ class ResourceHealthMetadataOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceHealthMetadata
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -599,7 +597,7 @@ class ResourceHealthMetadataOperations:
|
|||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2016-03-01"))
|
||||
cls: ClsType[_models.ResourceHealthMetadataCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -682,7 +680,7 @@ class ResourceHealthMetadataOperations:
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceHealthMetadata
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# pylint: disable=too-many-lines,too-many-statements
|
||||
# pylint: disable=too-many-lines
|
||||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -8,7 +8,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
from io import IOBase
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, IO, Iterable, Optional, Type, TypeVar, Union, overload
|
||||
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
|
||||
import urllib.parse
|
||||
|
||||
from azure.core.exceptions import (
|
||||
|
@ -33,7 +33,7 @@ from .._vendor import WebSiteManagementClientMixinABC
|
|||
if sys.version_info >= (3, 9):
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
||||
from typing import MutableMapping # type: ignore
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
||||
|
@ -472,7 +472,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -562,7 +562,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.User
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -633,7 +633,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.SourceControlCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -704,7 +704,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -813,7 +813,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SourceControl
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -887,7 +887,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ResourceNameAvailability
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -945,7 +945,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.DeploymentLocations
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1017,7 +1017,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.GeoRegionCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1142,7 +1142,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
cls: ClsType[_models.IdentifierCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1230,7 +1230,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
)
|
||||
cls: ClsType[_models.PremierAddOnOfferCollection] = kwargs.pop("cls", None)
|
||||
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1300,7 +1300,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.SkuInfos
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1399,7 +1399,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.VnetValidationFailureDetails
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1455,7 +1455,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
def move( # pylint: disable=inconsistent-return-statements
|
||||
def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: _models.CsmMoveResourceEnvelope,
|
||||
|
@ -1480,7 +1480,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@overload
|
||||
def move( # pylint: disable=inconsistent-return-statements
|
||||
def move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: IO[bytes],
|
||||
|
@ -1525,7 +1525,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1643,7 +1643,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: ~azure.mgmt.web.v2016_03_01.models.ValidateResponse
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
@ -1699,7 +1699,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
return deserialized # type: ignore
|
||||
|
||||
@overload
|
||||
def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: _models.CsmMoveResourceEnvelope,
|
||||
|
@ -1724,7 +1724,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
"""
|
||||
|
||||
@overload
|
||||
def validate_move( # pylint: disable=inconsistent-return-statements
|
||||
def validate_move(
|
||||
self,
|
||||
resource_group_name: str,
|
||||
move_resource_envelope: IO[bytes],
|
||||
|
@ -1769,7 +1769,7 @@ class WebSiteManagementClientOperationsMixin(WebSiteManagementClientMixinABC):
|
|||
:rtype: None
|
||||
:raises ~azure.core.exceptions.HttpResponseError:
|
||||
"""
|
||||
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
||||
error_map: MutableMapping = {
|
||||
401: ClientAuthenticationError,
|
||||
404: ResourceNotFoundError,
|
||||
409: ResourceExistsError,
|
||||
|
|
|
@ -1,110 +0,0 @@
|
|||
{
|
||||
"chosen_version": "2016-08-01",
|
||||
"total_api_version_list": ["2016-08-01"],
|
||||
"client": {
|
||||
"name": "WebSiteManagementClient",
|
||||
"filename": "_web_site_management_client",
|
||||
"description": "WebSite Management Client.",
|
||||
"host_value": "\"https://management.azure.com\"",
|
||||
"parameterized_host_template": null,
|
||||
"azure_arm": true,
|
||||
"has_public_lro_operations": true,
|
||||
"client_side_validation": false,
|
||||
"sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"ARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \".._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"AsyncARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"AsyncARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \"..._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"global_parameters": {
|
||||
"sync": {
|
||||
"credential": {
|
||||
"signature": "credential: \"TokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials.TokenCredential",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"credential": {
|
||||
"signature": "credential: \"AsyncTokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
|
||||
"required": true
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"constant": {
|
||||
},
|
||||
"call": "credential, subscription_id",
|
||||
"service_client_specific": {
|
||||
"sync": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str]=None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles=KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str] = None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles = KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"credential": true,
|
||||
"credential_scopes": ["https://management.azure.com/.default"],
|
||||
"credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"sync_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"operation_groups": {
|
||||
"web_apps": "WebAppsOperations"
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,9 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
VERSION = "7.3.1"
|
|
@ -1,113 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import HttpRequest, HttpResponse
|
||||
from azure.mgmt.core import ARMPipelineClient
|
||||
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from . import models as _models
|
||||
from .._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import WebAppsOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar web_apps: WebAppsOperations operations
|
||||
:vartype web_apps: azure.mgmt.web.v2016_08_01.operations.WebAppsOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2016-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "TokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
ARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.web_apps = WebAppsOperations(self._client, self._config, self._serialize, self._deserialize, "2016-08-01")
|
||||
|
||||
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = client._send_request(request)
|
||||
<HttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.HttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
def close(self) -> None:
|
||||
self._client.close()
|
||||
|
||||
def __enter__(self) -> Self:
|
||||
self._client.__enter__()
|
||||
return self
|
||||
|
||||
def __exit__(self, *exc_details: Any) -> None:
|
||||
self._client.__exit__(*exc_details)
|
|
@ -1,23 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
|
||||
_patch_sdk()
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,115 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from copy import deepcopy
|
||||
from typing import Any, Awaitable, TYPE_CHECKING
|
||||
from typing_extensions import Self
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
||||
from azure.mgmt.core import AsyncARMPipelineClient
|
||||
from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
|
||||
|
||||
from .. import models as _models
|
||||
from ..._serialization import Deserializer, Serializer
|
||||
from ._configuration import WebSiteManagementClientConfiguration
|
||||
from .operations import WebAppsOperations
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials_async import AsyncTokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClient: # pylint: disable=client-accepts-api-version-keyword
|
||||
"""WebSite Management Client.
|
||||
|
||||
:ivar web_apps: WebAppsOperations operations
|
||||
:vartype web_apps: azure.mgmt.web.v2016_08_01.aio.operations.WebAppsOperations
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2016-08-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
credential: "AsyncTokenCredential",
|
||||
subscription_id: str,
|
||||
base_url: str = "https://management.azure.com",
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
self._config = WebSiteManagementClientConfiguration(
|
||||
credential=credential, subscription_id=subscription_id, **kwargs
|
||||
)
|
||||
_policies = kwargs.pop("policies", None)
|
||||
if _policies is None:
|
||||
_policies = [
|
||||
policies.RequestIdPolicy(**kwargs),
|
||||
self._config.headers_policy,
|
||||
self._config.user_agent_policy,
|
||||
self._config.proxy_policy,
|
||||
policies.ContentDecodePolicy(**kwargs),
|
||||
AsyncARMAutoResourceProviderRegistrationPolicy(),
|
||||
self._config.redirect_policy,
|
||||
self._config.retry_policy,
|
||||
self._config.authentication_policy,
|
||||
self._config.custom_hook_policy,
|
||||
self._config.logging_policy,
|
||||
policies.DistributedTracingPolicy(**kwargs),
|
||||
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
|
||||
self._config.http_logging_policy,
|
||||
]
|
||||
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
|
||||
|
||||
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
self._serialize.client_side_validation = False
|
||||
self.web_apps = WebAppsOperations(self._client, self._config, self._serialize, self._deserialize, "2016-08-01")
|
||||
|
||||
def _send_request(
|
||||
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
|
||||
) -> Awaitable[AsyncHttpResponse]:
|
||||
"""Runs the network request through the client's chained policies.
|
||||
|
||||
>>> from azure.core.rest import HttpRequest
|
||||
>>> request = HttpRequest("GET", "https://www.example.org/")
|
||||
<HttpRequest [GET], url: 'https://www.example.org/'>
|
||||
>>> response = await client._send_request(request)
|
||||
<AsyncHttpResponse: 200 OK>
|
||||
|
||||
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
|
||||
|
||||
:param request: The network request you want to make. Required.
|
||||
:type request: ~azure.core.rest.HttpRequest
|
||||
:keyword bool stream: Whether the response payload will be streamed. Defaults to False.
|
||||
:return: The response of your network call. Does not do error handling on your response.
|
||||
:rtype: ~azure.core.rest.AsyncHttpResponse
|
||||
"""
|
||||
|
||||
request_copy = deepcopy(request)
|
||||
request_copy.url = self._client.format_url(request_copy.url)
|
||||
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
|
||||
|
||||
async def close(self) -> None:
|
||||
await self._client.close()
|
||||
|
||||
async def __aenter__(self) -> Self:
|
||||
await self._client.__aenter__()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *exc_details: Any) -> None:
|
||||
await self._client.__aexit__(*exc_details)
|
|
@ -1,19 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_apps_operations import WebAppsOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebAppsOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,351 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._models_py3 import ApiDefinitionInfo
|
||||
from ._models_py3 import ApplicationLogsConfig
|
||||
from ._models_py3 import AutoHealActions
|
||||
from ._models_py3 import AutoHealCustomAction
|
||||
from ._models_py3 import AutoHealRules
|
||||
from ._models_py3 import AutoHealTriggers
|
||||
from ._models_py3 import AzureBlobStorageApplicationLogsConfig
|
||||
from ._models_py3 import AzureBlobStorageHttpLogsConfig
|
||||
from ._models_py3 import AzureTableStorageApplicationLogsConfig
|
||||
from ._models_py3 import BackupItem
|
||||
from ._models_py3 import BackupItemCollection
|
||||
from ._models_py3 import BackupRequest
|
||||
from ._models_py3 import BackupSchedule
|
||||
from ._models_py3 import CloningInfo
|
||||
from ._models_py3 import ConnStringInfo
|
||||
from ._models_py3 import ConnStringValueTypePair
|
||||
from ._models_py3 import ConnectionStringDictionary
|
||||
from ._models_py3 import ContinuousWebJob
|
||||
from ._models_py3 import ContinuousWebJobCollection
|
||||
from ._models_py3 import CorsSettings
|
||||
from ._models_py3 import CsmPublishingProfileOptions
|
||||
from ._models_py3 import CsmSlotEntity
|
||||
from ._models_py3 import CsmUsageQuota
|
||||
from ._models_py3 import CsmUsageQuotaCollection
|
||||
from ._models_py3 import CustomHostnameAnalysisResult
|
||||
from ._models_py3 import DatabaseBackupSetting
|
||||
from ._models_py3 import Deployment
|
||||
from ._models_py3 import DeploymentCollection
|
||||
from ._models_py3 import EnabledConfig
|
||||
from ._models_py3 import ErrorEntity
|
||||
from ._models_py3 import Experiments
|
||||
from ._models_py3 import FileSystemApplicationLogsConfig
|
||||
from ._models_py3 import FileSystemHttpLogsConfig
|
||||
from ._models_py3 import FunctionEnvelope
|
||||
from ._models_py3 import FunctionEnvelopeCollection
|
||||
from ._models_py3 import FunctionSecrets
|
||||
from ._models_py3 import HandlerMapping
|
||||
from ._models_py3 import HostNameBinding
|
||||
from ._models_py3 import HostNameBindingCollection
|
||||
from ._models_py3 import HostNameSslState
|
||||
from ._models_py3 import HostingEnvironmentProfile
|
||||
from ._models_py3 import HttpLogsConfig
|
||||
from ._models_py3 import HybridConnection
|
||||
from ._models_py3 import HybridConnectionKey
|
||||
from ._models_py3 import Identifier
|
||||
from ._models_py3 import IdentifierCollection
|
||||
from ._models_py3 import IpSecurityRestriction
|
||||
from ._models_py3 import LocalizableString
|
||||
from ._models_py3 import MSDeploy
|
||||
from ._models_py3 import MSDeployLog
|
||||
from ._models_py3 import MSDeployLogEntry
|
||||
from ._models_py3 import MSDeployStatus
|
||||
from ._models_py3 import ManagedServiceIdentity
|
||||
from ._models_py3 import MigrateMySqlRequest
|
||||
from ._models_py3 import MigrateMySqlStatus
|
||||
from ._models_py3 import NameValuePair
|
||||
from ._models_py3 import NetworkFeatures
|
||||
from ._models_py3 import Operation
|
||||
from ._models_py3 import PerfMonCounterCollection
|
||||
from ._models_py3 import PerfMonResponse
|
||||
from ._models_py3 import PerfMonSample
|
||||
from ._models_py3 import PerfMonSet
|
||||
from ._models_py3 import PremierAddOn
|
||||
from ._models_py3 import ProcessInfo
|
||||
from ._models_py3 import ProcessInfoCollection
|
||||
from ._models_py3 import ProcessModuleInfo
|
||||
from ._models_py3 import ProcessModuleInfoCollection
|
||||
from ._models_py3 import ProcessThreadInfo
|
||||
from ._models_py3 import ProcessThreadInfoCollection
|
||||
from ._models_py3 import ProxyOnlyResource
|
||||
from ._models_py3 import PublicCertificate
|
||||
from ._models_py3 import PublicCertificateCollection
|
||||
from ._models_py3 import PushSettings
|
||||
from ._models_py3 import RampUpRule
|
||||
from ._models_py3 import RelayServiceConnectionEntity
|
||||
from ._models_py3 import RequestsBasedTrigger
|
||||
from ._models_py3 import Resource
|
||||
from ._models_py3 import ResourceMetric
|
||||
from ._models_py3 import ResourceMetricAvailability
|
||||
from ._models_py3 import ResourceMetricCollection
|
||||
from ._models_py3 import ResourceMetricDefinition
|
||||
from ._models_py3 import ResourceMetricDefinitionCollection
|
||||
from ._models_py3 import ResourceMetricName
|
||||
from ._models_py3 import ResourceMetricProperty
|
||||
from ._models_py3 import ResourceMetricValue
|
||||
from ._models_py3 import RestoreRequest
|
||||
from ._models_py3 import RestoreResponse
|
||||
from ._models_py3 import Site
|
||||
from ._models_py3 import SiteAuthSettings
|
||||
from ._models_py3 import SiteCloneability
|
||||
from ._models_py3 import SiteCloneabilityCriterion
|
||||
from ._models_py3 import SiteConfig
|
||||
from ._models_py3 import SiteConfigResource
|
||||
from ._models_py3 import SiteConfigResourceCollection
|
||||
from ._models_py3 import SiteConfigurationSnapshotInfo
|
||||
from ._models_py3 import SiteConfigurationSnapshotInfoCollection
|
||||
from ._models_py3 import SiteExtensionInfo
|
||||
from ._models_py3 import SiteExtensionInfoCollection
|
||||
from ._models_py3 import SiteInstance
|
||||
from ._models_py3 import SiteLimits
|
||||
from ._models_py3 import SiteLogsConfig
|
||||
from ._models_py3 import SiteMachineKey
|
||||
from ._models_py3 import SitePatchResource
|
||||
from ._models_py3 import SitePhpErrorLogFlag
|
||||
from ._models_py3 import SiteSourceControl
|
||||
from ._models_py3 import SlotConfigNamesResource
|
||||
from ._models_py3 import SlotDifference
|
||||
from ._models_py3 import SlotDifferenceCollection
|
||||
from ._models_py3 import SlotSwapStatus
|
||||
from ._models_py3 import SlowRequestsBasedTrigger
|
||||
from ._models_py3 import Snapshot
|
||||
from ._models_py3 import SnapshotCollection
|
||||
from ._models_py3 import SnapshotRecoveryRequest
|
||||
from ._models_py3 import SnapshotRecoveryTarget
|
||||
from ._models_py3 import StatusCodesBasedTrigger
|
||||
from ._models_py3 import StorageMigrationOptions
|
||||
from ._models_py3 import StorageMigrationResponse
|
||||
from ._models_py3 import StringDictionary
|
||||
from ._models_py3 import TriggeredJobHistory
|
||||
from ._models_py3 import TriggeredJobHistoryCollection
|
||||
from ._models_py3 import TriggeredJobRun
|
||||
from ._models_py3 import TriggeredWebJob
|
||||
from ._models_py3 import TriggeredWebJobCollection
|
||||
from ._models_py3 import User
|
||||
from ._models_py3 import VirtualApplication
|
||||
from ._models_py3 import VirtualDirectory
|
||||
from ._models_py3 import VnetGateway
|
||||
from ._models_py3 import VnetInfo
|
||||
from ._models_py3 import VnetRoute
|
||||
from ._models_py3 import WebAppCollection
|
||||
from ._models_py3 import WebAppInstanceCollection
|
||||
from ._models_py3 import WebJob
|
||||
from ._models_py3 import WebJobCollection
|
||||
|
||||
from ._web_site_management_client_enums import AutoHealActionType
|
||||
from ._web_site_management_client_enums import AzureResourceType
|
||||
from ._web_site_management_client_enums import BackupItemStatus
|
||||
from ._web_site_management_client_enums import BackupRestoreOperationType
|
||||
from ._web_site_management_client_enums import BuiltInAuthenticationProvider
|
||||
from ._web_site_management_client_enums import CloneAbilityResult
|
||||
from ._web_site_management_client_enums import ConnectionStringType
|
||||
from ._web_site_management_client_enums import ContinuousWebJobStatus
|
||||
from ._web_site_management_client_enums import CustomHostNameDnsRecordType
|
||||
from ._web_site_management_client_enums import DatabaseType
|
||||
from ._web_site_management_client_enums import DnsVerificationTestResult
|
||||
from ._web_site_management_client_enums import FrequencyUnit
|
||||
from ._web_site_management_client_enums import HostNameType
|
||||
from ._web_site_management_client_enums import HostType
|
||||
from ._web_site_management_client_enums import LogLevel
|
||||
from ._web_site_management_client_enums import MSDeployLogEntryType
|
||||
from ._web_site_management_client_enums import MSDeployProvisioningState
|
||||
from ._web_site_management_client_enums import ManagedPipelineMode
|
||||
from ._web_site_management_client_enums import ManagedServiceIdentityType
|
||||
from ._web_site_management_client_enums import MySqlMigrationType
|
||||
from ._web_site_management_client_enums import OperationStatus
|
||||
from ._web_site_management_client_enums import PublicCertificateLocation
|
||||
from ._web_site_management_client_enums import PublishingProfileFormat
|
||||
from ._web_site_management_client_enums import RouteType
|
||||
from ._web_site_management_client_enums import ScmType
|
||||
from ._web_site_management_client_enums import SiteAvailabilityState
|
||||
from ._web_site_management_client_enums import SiteExtensionType
|
||||
from ._web_site_management_client_enums import SiteLoadBalancing
|
||||
from ._web_site_management_client_enums import SslState
|
||||
from ._web_site_management_client_enums import SupportedTlsVersions
|
||||
from ._web_site_management_client_enums import TriggeredWebJobStatus
|
||||
from ._web_site_management_client_enums import UnauthenticatedClientAction
|
||||
from ._web_site_management_client_enums import UsageState
|
||||
from ._web_site_management_client_enums import WebJobType
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"ApiDefinitionInfo",
|
||||
"ApplicationLogsConfig",
|
||||
"AutoHealActions",
|
||||
"AutoHealCustomAction",
|
||||
"AutoHealRules",
|
||||
"AutoHealTriggers",
|
||||
"AzureBlobStorageApplicationLogsConfig",
|
||||
"AzureBlobStorageHttpLogsConfig",
|
||||
"AzureTableStorageApplicationLogsConfig",
|
||||
"BackupItem",
|
||||
"BackupItemCollection",
|
||||
"BackupRequest",
|
||||
"BackupSchedule",
|
||||
"CloningInfo",
|
||||
"ConnStringInfo",
|
||||
"ConnStringValueTypePair",
|
||||
"ConnectionStringDictionary",
|
||||
"ContinuousWebJob",
|
||||
"ContinuousWebJobCollection",
|
||||
"CorsSettings",
|
||||
"CsmPublishingProfileOptions",
|
||||
"CsmSlotEntity",
|
||||
"CsmUsageQuota",
|
||||
"CsmUsageQuotaCollection",
|
||||
"CustomHostnameAnalysisResult",
|
||||
"DatabaseBackupSetting",
|
||||
"Deployment",
|
||||
"DeploymentCollection",
|
||||
"EnabledConfig",
|
||||
"ErrorEntity",
|
||||
"Experiments",
|
||||
"FileSystemApplicationLogsConfig",
|
||||
"FileSystemHttpLogsConfig",
|
||||
"FunctionEnvelope",
|
||||
"FunctionEnvelopeCollection",
|
||||
"FunctionSecrets",
|
||||
"HandlerMapping",
|
||||
"HostNameBinding",
|
||||
"HostNameBindingCollection",
|
||||
"HostNameSslState",
|
||||
"HostingEnvironmentProfile",
|
||||
"HttpLogsConfig",
|
||||
"HybridConnection",
|
||||
"HybridConnectionKey",
|
||||
"Identifier",
|
||||
"IdentifierCollection",
|
||||
"IpSecurityRestriction",
|
||||
"LocalizableString",
|
||||
"MSDeploy",
|
||||
"MSDeployLog",
|
||||
"MSDeployLogEntry",
|
||||
"MSDeployStatus",
|
||||
"ManagedServiceIdentity",
|
||||
"MigrateMySqlRequest",
|
||||
"MigrateMySqlStatus",
|
||||
"NameValuePair",
|
||||
"NetworkFeatures",
|
||||
"Operation",
|
||||
"PerfMonCounterCollection",
|
||||
"PerfMonResponse",
|
||||
"PerfMonSample",
|
||||
"PerfMonSet",
|
||||
"PremierAddOn",
|
||||
"ProcessInfo",
|
||||
"ProcessInfoCollection",
|
||||
"ProcessModuleInfo",
|
||||
"ProcessModuleInfoCollection",
|
||||
"ProcessThreadInfo",
|
||||
"ProcessThreadInfoCollection",
|
||||
"ProxyOnlyResource",
|
||||
"PublicCertificate",
|
||||
"PublicCertificateCollection",
|
||||
"PushSettings",
|
||||
"RampUpRule",
|
||||
"RelayServiceConnectionEntity",
|
||||
"RequestsBasedTrigger",
|
||||
"Resource",
|
||||
"ResourceMetric",
|
||||
"ResourceMetricAvailability",
|
||||
"ResourceMetricCollection",
|
||||
"ResourceMetricDefinition",
|
||||
"ResourceMetricDefinitionCollection",
|
||||
"ResourceMetricName",
|
||||
"ResourceMetricProperty",
|
||||
"ResourceMetricValue",
|
||||
"RestoreRequest",
|
||||
"RestoreResponse",
|
||||
"Site",
|
||||
"SiteAuthSettings",
|
||||
"SiteCloneability",
|
||||
"SiteCloneabilityCriterion",
|
||||
"SiteConfig",
|
||||
"SiteConfigResource",
|
||||
"SiteConfigResourceCollection",
|
||||
"SiteConfigurationSnapshotInfo",
|
||||
"SiteConfigurationSnapshotInfoCollection",
|
||||
"SiteExtensionInfo",
|
||||
"SiteExtensionInfoCollection",
|
||||
"SiteInstance",
|
||||
"SiteLimits",
|
||||
"SiteLogsConfig",
|
||||
"SiteMachineKey",
|
||||
"SitePatchResource",
|
||||
"SitePhpErrorLogFlag",
|
||||
"SiteSourceControl",
|
||||
"SlotConfigNamesResource",
|
||||
"SlotDifference",
|
||||
"SlotDifferenceCollection",
|
||||
"SlotSwapStatus",
|
||||
"SlowRequestsBasedTrigger",
|
||||
"Snapshot",
|
||||
"SnapshotCollection",
|
||||
"SnapshotRecoveryRequest",
|
||||
"SnapshotRecoveryTarget",
|
||||
"StatusCodesBasedTrigger",
|
||||
"StorageMigrationOptions",
|
||||
"StorageMigrationResponse",
|
||||
"StringDictionary",
|
||||
"TriggeredJobHistory",
|
||||
"TriggeredJobHistoryCollection",
|
||||
"TriggeredJobRun",
|
||||
"TriggeredWebJob",
|
||||
"TriggeredWebJobCollection",
|
||||
"User",
|
||||
"VirtualApplication",
|
||||
"VirtualDirectory",
|
||||
"VnetGateway",
|
||||
"VnetInfo",
|
||||
"VnetRoute",
|
||||
"WebAppCollection",
|
||||
"WebAppInstanceCollection",
|
||||
"WebJob",
|
||||
"WebJobCollection",
|
||||
"AutoHealActionType",
|
||||
"AzureResourceType",
|
||||
"BackupItemStatus",
|
||||
"BackupRestoreOperationType",
|
||||
"BuiltInAuthenticationProvider",
|
||||
"CloneAbilityResult",
|
||||
"ConnectionStringType",
|
||||
"ContinuousWebJobStatus",
|
||||
"CustomHostNameDnsRecordType",
|
||||
"DatabaseType",
|
||||
"DnsVerificationTestResult",
|
||||
"FrequencyUnit",
|
||||
"HostNameType",
|
||||
"HostType",
|
||||
"LogLevel",
|
||||
"MSDeployLogEntryType",
|
||||
"MSDeployProvisioningState",
|
||||
"ManagedPipelineMode",
|
||||
"ManagedServiceIdentityType",
|
||||
"MySqlMigrationType",
|
||||
"OperationStatus",
|
||||
"PublicCertificateLocation",
|
||||
"PublishingProfileFormat",
|
||||
"RouteType",
|
||||
"ScmType",
|
||||
"SiteAvailabilityState",
|
||||
"SiteExtensionType",
|
||||
"SiteLoadBalancing",
|
||||
"SslState",
|
||||
"SupportedTlsVersions",
|
||||
"TriggeredWebJobStatus",
|
||||
"UnauthenticatedClientAction",
|
||||
"UsageState",
|
||||
"WebJobType",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
|
@ -1,323 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from enum import Enum
|
||||
from azure.core import CaseInsensitiveEnumMeta
|
||||
|
||||
|
||||
class AutoHealActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Predefined action to be taken."""
|
||||
|
||||
RECYCLE = "Recycle"
|
||||
LOG_EVENT = "LogEvent"
|
||||
CUSTOM_ACTION = "CustomAction"
|
||||
|
||||
|
||||
class AzureResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Azure resource type."""
|
||||
|
||||
WEBSITE = "Website"
|
||||
TRAFFIC_MANAGER = "TrafficManager"
|
||||
|
||||
|
||||
class BackupItemStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Backup status."""
|
||||
|
||||
IN_PROGRESS = "InProgress"
|
||||
FAILED = "Failed"
|
||||
SUCCEEDED = "Succeeded"
|
||||
TIMED_OUT = "TimedOut"
|
||||
CREATED = "Created"
|
||||
SKIPPED = "Skipped"
|
||||
PARTIALLY_SUCCEEDED = "PartiallySucceeded"
|
||||
DELETE_IN_PROGRESS = "DeleteInProgress"
|
||||
DELETE_FAILED = "DeleteFailed"
|
||||
DELETED = "Deleted"
|
||||
|
||||
|
||||
class BackupRestoreOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of the backup."""
|
||||
|
||||
DEFAULT = "Default"
|
||||
CLONE = "Clone"
|
||||
RELOCATION = "Relocation"
|
||||
SNAPSHOT = "Snapshot"
|
||||
|
||||
|
||||
class BuiltInAuthenticationProvider(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The default authentication provider to use when multiple providers are configured.
|
||||
This setting is only needed if multiple providers are configured and the unauthenticated client
|
||||
action is set to "RedirectToLoginPage".
|
||||
"""
|
||||
|
||||
AZURE_ACTIVE_DIRECTORY = "AzureActiveDirectory"
|
||||
FACEBOOK = "Facebook"
|
||||
GOOGLE = "Google"
|
||||
MICROSOFT_ACCOUNT = "MicrosoftAccount"
|
||||
TWITTER = "Twitter"
|
||||
|
||||
|
||||
class CloneAbilityResult(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Name of app."""
|
||||
|
||||
CLONEABLE = "Cloneable"
|
||||
PARTIALLY_CLONEABLE = "PartiallyCloneable"
|
||||
NOT_CLONEABLE = "NotCloneable"
|
||||
|
||||
|
||||
class ConnectionStringType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of database."""
|
||||
|
||||
MY_SQL = "MySql"
|
||||
SQL_SERVER = "SQLServer"
|
||||
SQL_AZURE = "SQLAzure"
|
||||
CUSTOM = "Custom"
|
||||
NOTIFICATION_HUB = "NotificationHub"
|
||||
SERVICE_BUS = "ServiceBus"
|
||||
EVENT_HUB = "EventHub"
|
||||
API_HUB = "ApiHub"
|
||||
DOC_DB = "DocDb"
|
||||
REDIS_CACHE = "RedisCache"
|
||||
POSTGRE_SQL = "PostgreSQL"
|
||||
|
||||
|
||||
class ContinuousWebJobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Job status."""
|
||||
|
||||
INITIALIZING = "Initializing"
|
||||
STARTING = "Starting"
|
||||
RUNNING = "Running"
|
||||
PENDING_RESTART = "PendingRestart"
|
||||
STOPPED = "Stopped"
|
||||
|
||||
|
||||
class CustomHostNameDnsRecordType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Custom DNS record type."""
|
||||
|
||||
C_NAME = "CName"
|
||||
A = "A"
|
||||
|
||||
|
||||
class DatabaseType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Database type (e.g. SqlAzure / MySql)."""
|
||||
|
||||
SQL_AZURE = "SqlAzure"
|
||||
MY_SQL = "MySql"
|
||||
LOCAL_MY_SQL = "LocalMySql"
|
||||
POSTGRE_SQL = "PostgreSql"
|
||||
|
||||
|
||||
class DnsVerificationTestResult(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""DNS verification test result."""
|
||||
|
||||
PASSED = "Passed"
|
||||
FAILED = "Failed"
|
||||
SKIPPED = "Skipped"
|
||||
|
||||
|
||||
class FrequencyUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The unit of time for how often the backup should be executed (e.g. for weekly backup, this
|
||||
should be set to Day and FrequencyInterval should be set to 7).
|
||||
"""
|
||||
|
||||
DAY = "Day"
|
||||
HOUR = "Hour"
|
||||
|
||||
|
||||
class HostNameType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Hostname type."""
|
||||
|
||||
VERIFIED = "Verified"
|
||||
MANAGED = "Managed"
|
||||
|
||||
|
||||
class HostType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Indicates whether the hostname is a standard or repository hostname."""
|
||||
|
||||
STANDARD = "Standard"
|
||||
REPOSITORY = "Repository"
|
||||
|
||||
|
||||
class LogLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Log level."""
|
||||
|
||||
OFF = "Off"
|
||||
VERBOSE = "Verbose"
|
||||
INFORMATION = "Information"
|
||||
WARNING = "Warning"
|
||||
ERROR = "Error"
|
||||
|
||||
|
||||
class ManagedPipelineMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Managed pipeline mode."""
|
||||
|
||||
INTEGRATED = "Integrated"
|
||||
CLASSIC = "Classic"
|
||||
|
||||
|
||||
class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Type of managed service identity."""
|
||||
|
||||
SYSTEM_ASSIGNED = "SystemAssigned"
|
||||
|
||||
|
||||
class MSDeployLogEntryType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Log entry type."""
|
||||
|
||||
MESSAGE = "Message"
|
||||
WARNING = "Warning"
|
||||
ERROR = "Error"
|
||||
|
||||
|
||||
class MSDeployProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Provisioning state."""
|
||||
|
||||
ACCEPTED = "accepted"
|
||||
RUNNING = "running"
|
||||
SUCCEEDED = "succeeded"
|
||||
FAILED = "failed"
|
||||
CANCELED = "canceled"
|
||||
|
||||
|
||||
class MySqlMigrationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The type of migration operation to be done."""
|
||||
|
||||
LOCAL_TO_REMOTE = "LocalToRemote"
|
||||
REMOTE_TO_LOCAL = "RemoteToLocal"
|
||||
|
||||
|
||||
class OperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The current status of the operation."""
|
||||
|
||||
IN_PROGRESS = "InProgress"
|
||||
FAILED = "Failed"
|
||||
SUCCEEDED = "Succeeded"
|
||||
TIMED_OUT = "TimedOut"
|
||||
CREATED = "Created"
|
||||
|
||||
|
||||
class PublicCertificateLocation(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Public Certificate Location."""
|
||||
|
||||
CURRENT_USER_MY = "CurrentUserMy"
|
||||
LOCAL_MACHINE_MY = "LocalMachineMy"
|
||||
UNKNOWN = "Unknown"
|
||||
|
||||
|
||||
class PublishingProfileFormat(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Name of the format. Valid values are:
|
||||
FileZilla3
|
||||
WebDeploy -- default
|
||||
Ftp.
|
||||
"""
|
||||
|
||||
FILE_ZILLA3 = "FileZilla3"
|
||||
WEB_DEPLOY = "WebDeploy"
|
||||
FTP = "Ftp"
|
||||
|
||||
|
||||
class RouteType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The type of route this is:
|
||||
DEFAULT - By default, every app has routes to the local address ranges specified by RFC1918
|
||||
INHERITED - Routes inherited from the real Virtual Network routes
|
||||
STATIC - Static route set on the app only
|
||||
|
||||
These values will be used for syncing an app's routes with those from a Virtual Network.
|
||||
"""
|
||||
|
||||
DEFAULT = "DEFAULT"
|
||||
INHERITED = "INHERITED"
|
||||
STATIC = "STATIC"
|
||||
|
||||
|
||||
class ScmType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""SCM type."""
|
||||
|
||||
NONE = "None"
|
||||
DROPBOX = "Dropbox"
|
||||
TFS = "Tfs"
|
||||
LOCAL_GIT = "LocalGit"
|
||||
GIT_HUB = "GitHub"
|
||||
CODE_PLEX_GIT = "CodePlexGit"
|
||||
CODE_PLEX_HG = "CodePlexHg"
|
||||
BITBUCKET_GIT = "BitbucketGit"
|
||||
BITBUCKET_HG = "BitbucketHg"
|
||||
EXTERNAL_GIT = "ExternalGit"
|
||||
EXTERNAL_HG = "ExternalHg"
|
||||
ONE_DRIVE = "OneDrive"
|
||||
VSO = "VSO"
|
||||
|
||||
|
||||
class SiteAvailabilityState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Management information availability state for the app."""
|
||||
|
||||
NORMAL = "Normal"
|
||||
LIMITED = "Limited"
|
||||
DISASTER_RECOVERY_MODE = "DisasterRecoveryMode"
|
||||
|
||||
|
||||
class SiteExtensionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Site extension type."""
|
||||
|
||||
GALLERY = "Gallery"
|
||||
WEB_ROOT = "WebRoot"
|
||||
|
||||
|
||||
class SiteLoadBalancing(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Site load balancing."""
|
||||
|
||||
WEIGHTED_ROUND_ROBIN = "WeightedRoundRobin"
|
||||
LEAST_REQUESTS = "LeastRequests"
|
||||
LEAST_RESPONSE_TIME = "LeastResponseTime"
|
||||
WEIGHTED_TOTAL_TRAFFIC = "WeightedTotalTraffic"
|
||||
REQUEST_HASH = "RequestHash"
|
||||
|
||||
|
||||
class SslState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""SSL type."""
|
||||
|
||||
DISABLED = "Disabled"
|
||||
SNI_ENABLED = "SniEnabled"
|
||||
IP_BASED_ENABLED = "IpBasedEnabled"
|
||||
|
||||
|
||||
class SupportedTlsVersions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""MinTlsVersion: configures the minimum version of TLS required for SSL requests."""
|
||||
|
||||
ONE0 = "1.0"
|
||||
ONE1 = "1.1"
|
||||
ONE2 = "1.2"
|
||||
|
||||
|
||||
class TriggeredWebJobStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Job status."""
|
||||
|
||||
SUCCESS = "Success"
|
||||
FAILED = "Failed"
|
||||
ERROR = "Error"
|
||||
|
||||
|
||||
class UnauthenticatedClientAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The action to take when an unauthenticated client attempts to access the app."""
|
||||
|
||||
REDIRECT_TO_LOGIN_PAGE = "RedirectToLoginPage"
|
||||
ALLOW_ANONYMOUS = "AllowAnonymous"
|
||||
|
||||
|
||||
class UsageState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""State indicating whether the app has exceeded its quota usage. Read-only."""
|
||||
|
||||
NORMAL = "Normal"
|
||||
EXCEEDED = "Exceeded"
|
||||
|
||||
|
||||
class WebJobType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Job type."""
|
||||
|
||||
CONTINUOUS = "Continuous"
|
||||
TRIGGERED = "Triggered"
|
|
@ -1,19 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_apps_operations import WebAppsOperations
|
||||
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebAppsOperations",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
_patch_sdk()
|
|
@ -1,20 +0,0 @@
|
|||
# ------------------------------------
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
# ------------------------------------
|
||||
"""Customize generated code here.
|
||||
|
||||
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
||||
|
||||
|
||||
def patch_sdk():
|
||||
"""Do not remove from this file.
|
||||
|
||||
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
||||
you can't accomplish using the techniques described in
|
||||
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
||||
"""
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1 +0,0 @@
|
|||
# Marker file for PEP 561.
|
|
@ -1,26 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from ._web_site_management_client import WebSiteManagementClient
|
||||
from ._version import VERSION
|
||||
|
||||
__version__ = VERSION
|
||||
|
||||
try:
|
||||
from ._patch import __all__ as _patch_all
|
||||
from ._patch import * # pylint: disable=unused-wildcard-import
|
||||
except ImportError:
|
||||
_patch_all = []
|
||||
from ._patch import patch_sdk as _patch_sdk
|
||||
|
||||
__all__ = [
|
||||
"WebSiteManagementClient",
|
||||
]
|
||||
__all__.extend([p for p in _patch_all if p not in __all__])
|
||||
|
||||
_patch_sdk()
|
|
@ -1,66 +0,0 @@
|
|||
# coding=utf-8
|
||||
# --------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline import policies
|
||||
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
|
||||
|
||||
from ._version import VERSION
|
||||
|
||||
if TYPE_CHECKING:
|
||||
# pylint: disable=unused-import,ungrouped-imports
|
||||
from azure.core.credentials import TokenCredential
|
||||
|
||||
|
||||
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
|
||||
"""Configuration for WebSiteManagementClient.
|
||||
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credential: Credential needed for the client to connect to Azure. Required.
|
||||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
|
||||
00000000-0000-0000-0000-000000000000). Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2016-09-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
api_version: str = kwargs.pop("api_version", "2016-09-01")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
|
||||
self.credential = credential
|
||||
self.subscription_id = subscription_id
|
||||
self.api_version = api_version
|
||||
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
|
||||
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
|
||||
self.polling_interval = kwargs.get("polling_interval", 30)
|
||||
self._configure(**kwargs)
|
||||
|
||||
def _configure(self, **kwargs: Any) -> None:
|
||||
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
|
||||
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
|
||||
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
|
||||
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
|
||||
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
|
||||
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
|
||||
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
|
||||
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
|
||||
self.authentication_policy = kwargs.get("authentication_policy")
|
||||
if self.credential and not self.authentication_policy:
|
||||
self.authentication_policy = ARMChallengeAuthenticationPolicy(
|
||||
self.credential, *self.credential_scopes, **kwargs
|
||||
)
|
|
@ -1,111 +0,0 @@
|
|||
{
|
||||
"chosen_version": "2016-09-01",
|
||||
"total_api_version_list": ["2016-09-01"],
|
||||
"client": {
|
||||
"name": "WebSiteManagementClient",
|
||||
"filename": "_web_site_management_client",
|
||||
"description": "WebSite Management Client.",
|
||||
"host_value": "\"https://management.azure.com\"",
|
||||
"parameterized_host_template": null,
|
||||
"azure_arm": true,
|
||||
"has_public_lro_operations": true,
|
||||
"client_side_validation": false,
|
||||
"sync_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"ARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \".._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}, \"regular\": {\"sdkcore\": {\"azure.mgmt.core\": [\"AsyncARMPipelineClient\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"AsyncARMAutoResourceProviderRegistrationPolicy\"], \"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"], \"..._serialization\": [\"Deserializer\", \"Serializer\"]}, \"stdlib\": {\"typing_extensions\": [\"Self\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"global_parameters": {
|
||||
"sync": {
|
||||
"credential": {
|
||||
"signature": "credential: \"TokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials.TokenCredential",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"credential": {
|
||||
"signature": "credential: \"AsyncTokenCredential\",",
|
||||
"description": "Credential needed for the client to connect to Azure. Required.",
|
||||
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
|
||||
"required": true
|
||||
},
|
||||
"subscription_id": {
|
||||
"signature": "subscription_id: str,",
|
||||
"description": "Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.",
|
||||
"docstring_type": "str",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"constant": {
|
||||
},
|
||||
"call": "credential, subscription_id",
|
||||
"service_client_specific": {
|
||||
"sync": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str]=None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles=KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
},
|
||||
"async": {
|
||||
"api_version": {
|
||||
"signature": "api_version: Optional[str] = None,",
|
||||
"description": "API version to use if no profile is provided, or if missing in profile.",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"base_url": {
|
||||
"signature": "base_url: str = \"https://management.azure.com\",",
|
||||
"description": "Service URL",
|
||||
"docstring_type": "str",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
},
|
||||
"profile": {
|
||||
"signature": "profile: KnownProfiles = KnownProfiles.default,",
|
||||
"description": "A profile definition, from KnownProfiles to dict.",
|
||||
"docstring_type": "azure.profiles.KnownProfiles",
|
||||
"required": false,
|
||||
"method_location": "positional"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
"credential": true,
|
||||
"credential_scopes": ["https://management.azure.com/.default"],
|
||||
"credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)",
|
||||
"sync_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
|
||||
"async_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
|
||||
},
|
||||
"operation_groups": {
|
||||
"app_service_environments": "AppServiceEnvironmentsOperations",
|
||||
"app_service_plans": "AppServicePlansOperations"
|
||||
}
|
||||
}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче