diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
index 8d986080007b..b03e8c422f2c 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py
@@ -82,6 +82,7 @@ def __init__(
super(WebSiteManagementClient, self).__init__(self.config.credentials, self.config)
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
+ self.api_version = '2019-08-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/__init__.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/__init__.py
index ce7b9a27c8e6..c98bd6b934ea 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/__init__.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/__init__.py
@@ -16,8 +16,11 @@
from ._models_py3 import AnalysisData
from ._models_py3 import AnalysisDefinition
from ._models_py3 import ApiDefinitionInfo
+ from ._models_py3 import ApiKVReference
+ from ._models_py3 import ApiManagementConfig
from ._models_py3 import ApplicationLogsConfig
from ._models_py3 import ApplicationStack
+ from ._models_py3 import ApplicationStackResource
from ._models_py3 import AppServiceCertificate
from ._models_py3 import AppServiceCertificateOrder
from ._models_py3 import AppServiceCertificateOrderPatchResource
@@ -52,8 +55,15 @@
from ._models_py3 import ConnStringInfo
from ._models_py3 import ConnStringValueTypePair
from ._models_py3 import Contact
+ from ._models_py3 import ContainerCpuStatistics
+ from ._models_py3 import ContainerCpuUsage
+ from ._models_py3 import ContainerInfo
+ from ._models_py3 import ContainerMemoryStatistics
+ from ._models_py3 import ContainerNetworkInterfaceStatistics
+ from ._models_py3 import ContainerThrottlingData
from ._models_py3 import ContinuousWebJob
from ._models_py3 import CorsSettings
+ from ._models_py3 import CsmCopySlotEntity
from ._models_py3 import CsmMoveResourceEnvelope
from ._models_py3 import CsmOperationDescription
from ._models_py3 import CsmOperationDescriptionProperties
@@ -85,7 +95,7 @@
from ._models_py3 import DiagnosticMetricSet
from ._models_py3 import Dimension
from ._models_py3 import Domain
- from ._models_py3 import DomainAvailablilityCheckResult
+ from ._models_py3 import DomainAvailabilityCheckResult
from ._models_py3 import DomainControlCenterSsoRequest
from ._models_py3 import DomainOwnershipIdentifier
from ._models_py3 import DomainPatchResource
@@ -100,7 +110,6 @@
from ._models_py3 import FileSystemHttpLogsConfig
from ._models_py3 import FunctionEnvelope
from ._models_py3 import FunctionSecrets
- from ._models_py3 import GeoDistribution
from ._models_py3 import GeoRegion
from ._models_py3 import GlobalCsmSkuDescription
from ._models_py3 import HandlerMapping
@@ -117,13 +126,13 @@
from ._models_py3 import Identifier
from ._models_py3 import InboundEnvironmentEndpoint
from ._models_py3 import IpSecurityRestriction
+ from ._models_py3 import KeyVaultReferenceCollection
+ from ._models_py3 import KeyVaultReferenceResource
from ._models_py3 import LocalizableString
from ._models_py3 import LogSpecification
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import ManagedServiceIdentityUserAssignedIdentitiesValue
- from ._models_py3 import MetricAvailabilily
from ._models_py3 import MetricAvailability
- from ._models_py3 import MetricDefinition
from ._models_py3 import MetricSpecification
from ._models_py3 import MigrateMySqlRequest
from ._models_py3 import MigrateMySqlStatus
@@ -163,12 +172,8 @@
from ._models_py3 import RequestsBasedTrigger
from ._models_py3 import Resource
from ._models_py3 import ResourceHealthMetadata
- from ._models_py3 import ResourceMetric
from ._models_py3 import ResourceMetricAvailability
from ._models_py3 import ResourceMetricDefinition
- 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
@@ -220,7 +225,6 @@
from ._models_py3 import TriggeredWebJob
from ._models_py3 import Usage
from ._models_py3 import User
- from ._models_py3 import ValidateContainerSettingsRequest
from ._models_py3 import ValidateRequest
from ._models_py3 import ValidateResponse
from ._models_py3 import ValidateResponseError
@@ -236,6 +240,7 @@
from ._models_py3 import VnetValidationTestFailure
from ._models_py3 import WebAppCollection
from ._models_py3 import WebJob
+ from ._models_py3 import WebSiteInstanceStatus
from ._models_py3 import WorkerPool
from ._models_py3 import WorkerPoolResource
except (SyntaxError, ImportError):
@@ -245,8 +250,11 @@
from ._models import AnalysisData
from ._models import AnalysisDefinition
from ._models import ApiDefinitionInfo
+ from ._models import ApiKVReference
+ from ._models import ApiManagementConfig
from ._models import ApplicationLogsConfig
from ._models import ApplicationStack
+ from ._models import ApplicationStackResource
from ._models import AppServiceCertificate
from ._models import AppServiceCertificateOrder
from ._models import AppServiceCertificateOrderPatchResource
@@ -281,8 +289,15 @@
from ._models import ConnStringInfo
from ._models import ConnStringValueTypePair
from ._models import Contact
+ from ._models import ContainerCpuStatistics
+ from ._models import ContainerCpuUsage
+ from ._models import ContainerInfo
+ from ._models import ContainerMemoryStatistics
+ from ._models import ContainerNetworkInterfaceStatistics
+ from ._models import ContainerThrottlingData
from ._models import ContinuousWebJob
from ._models import CorsSettings
+ from ._models import CsmCopySlotEntity
from ._models import CsmMoveResourceEnvelope
from ._models import CsmOperationDescription
from ._models import CsmOperationDescriptionProperties
@@ -314,7 +329,7 @@
from ._models import DiagnosticMetricSet
from ._models import Dimension
from ._models import Domain
- from ._models import DomainAvailablilityCheckResult
+ from ._models import DomainAvailabilityCheckResult
from ._models import DomainControlCenterSsoRequest
from ._models import DomainOwnershipIdentifier
from ._models import DomainPatchResource
@@ -329,7 +344,6 @@
from ._models import FileSystemHttpLogsConfig
from ._models import FunctionEnvelope
from ._models import FunctionSecrets
- from ._models import GeoDistribution
from ._models import GeoRegion
from ._models import GlobalCsmSkuDescription
from ._models import HandlerMapping
@@ -346,13 +360,13 @@
from ._models import Identifier
from ._models import InboundEnvironmentEndpoint
from ._models import IpSecurityRestriction
+ from ._models import KeyVaultReferenceCollection
+ from ._models import KeyVaultReferenceResource
from ._models import LocalizableString
from ._models import LogSpecification
from ._models import ManagedServiceIdentity
from ._models import ManagedServiceIdentityUserAssignedIdentitiesValue
- from ._models import MetricAvailabilily
from ._models import MetricAvailability
- from ._models import MetricDefinition
from ._models import MetricSpecification
from ._models import MigrateMySqlRequest
from ._models import MigrateMySqlStatus
@@ -392,12 +406,8 @@
from ._models import RequestsBasedTrigger
from ._models import Resource
from ._models import ResourceHealthMetadata
- from ._models import ResourceMetric
from ._models import ResourceMetricAvailability
from ._models import ResourceMetricDefinition
- from ._models import ResourceMetricName
- from ._models import ResourceMetricProperty
- from ._models import ResourceMetricValue
from ._models import ResourceNameAvailability
from ._models import ResourceNameAvailabilityRequest
from ._models import ResponseMetaData
@@ -449,7 +459,6 @@
from ._models import TriggeredWebJob
from ._models import Usage
from ._models import User
- from ._models import ValidateContainerSettingsRequest
from ._models import ValidateRequest
from ._models import ValidateResponse
from ._models import ValidateResponseError
@@ -465,10 +474,11 @@
from ._models import VnetValidationTestFailure
from ._models import WebAppCollection
from ._models import WebJob
+ from ._models import WebSiteInstanceStatus
from ._models import WorkerPool
from ._models import WorkerPoolResource
from ._paged_models import AnalysisDefinitionPaged
-from ._paged_models import ApplicationStackPaged
+from ._paged_models import ApplicationStackResourcePaged
from ._paged_models import AppServiceCertificateOrderPaged
from ._paged_models import AppServiceCertificateResourcePaged
from ._paged_models import AppServiceEnvironmentResourcePaged
@@ -503,7 +513,6 @@
from ._paged_models import RecommendationPaged
from ._paged_models import ResourceHealthMetadataPaged
from ._paged_models import ResourceMetricDefinitionPaged
-from ._paged_models import ResourceMetricPaged
from ._paged_models import SiteConfigResourcePaged
from ._paged_models import SiteConfigurationSnapshotInfoPaged
from ._paged_models import SiteExtensionInfoPaged
@@ -533,8 +542,6 @@
IpFilterTag,
AutoHealActionType,
ConnectionStringType,
- AzureStorageType,
- AzureStorageState,
ScmType,
ManagedPipelineMode,
SiteLoadBalancing,
@@ -568,7 +575,12 @@
InAvailabilityReasonType,
CheckNameResourceTypes,
ValidateResourceTypes,
+ ResolveStatus,
+ ConfigReferenceSource,
+ ConfigReferenceLocation,
LogLevel,
+ AzureStorageType,
+ AzureStorageState,
BackupItemStatus,
DatabaseType,
FrequencyUnit,
@@ -586,6 +598,7 @@
CloneAbilityResult,
SiteExtensionType,
TriggeredWebJobStatus,
+ SiteRuntimeState,
SkuName,
)
@@ -596,8 +609,11 @@
'AnalysisData',
'AnalysisDefinition',
'ApiDefinitionInfo',
+ 'ApiKVReference',
+ 'ApiManagementConfig',
'ApplicationLogsConfig',
'ApplicationStack',
+ 'ApplicationStackResource',
'AppServiceCertificate',
'AppServiceCertificateOrder',
'AppServiceCertificateOrderPatchResource',
@@ -632,8 +648,15 @@
'ConnStringInfo',
'ConnStringValueTypePair',
'Contact',
+ 'ContainerCpuStatistics',
+ 'ContainerCpuUsage',
+ 'ContainerInfo',
+ 'ContainerMemoryStatistics',
+ 'ContainerNetworkInterfaceStatistics',
+ 'ContainerThrottlingData',
'ContinuousWebJob',
'CorsSettings',
+ 'CsmCopySlotEntity',
'CsmMoveResourceEnvelope',
'CsmOperationDescription',
'CsmOperationDescriptionProperties',
@@ -665,7 +688,7 @@
'DiagnosticMetricSet',
'Dimension',
'Domain',
- 'DomainAvailablilityCheckResult',
+ 'DomainAvailabilityCheckResult',
'DomainControlCenterSsoRequest',
'DomainOwnershipIdentifier',
'DomainPatchResource',
@@ -680,7 +703,6 @@
'FileSystemHttpLogsConfig',
'FunctionEnvelope',
'FunctionSecrets',
- 'GeoDistribution',
'GeoRegion',
'GlobalCsmSkuDescription',
'HandlerMapping',
@@ -697,13 +719,13 @@
'Identifier',
'InboundEnvironmentEndpoint',
'IpSecurityRestriction',
+ 'KeyVaultReferenceCollection',
+ 'KeyVaultReferenceResource',
'LocalizableString',
'LogSpecification',
'ManagedServiceIdentity',
'ManagedServiceIdentityUserAssignedIdentitiesValue',
- 'MetricAvailabilily',
'MetricAvailability',
- 'MetricDefinition',
'MetricSpecification',
'MigrateMySqlRequest',
'MigrateMySqlStatus',
@@ -743,12 +765,8 @@
'RequestsBasedTrigger',
'Resource',
'ResourceHealthMetadata',
- 'ResourceMetric',
'ResourceMetricAvailability',
'ResourceMetricDefinition',
- 'ResourceMetricName',
- 'ResourceMetricProperty',
- 'ResourceMetricValue',
'ResourceNameAvailability',
'ResourceNameAvailabilityRequest',
'ResponseMetaData',
@@ -800,7 +818,6 @@
'TriggeredWebJob',
'Usage',
'User',
- 'ValidateContainerSettingsRequest',
'ValidateRequest',
'ValidateResponse',
'ValidateResponseError',
@@ -816,6 +833,7 @@
'VnetValidationTestFailure',
'WebAppCollection',
'WebJob',
+ 'WebSiteInstanceStatus',
'WorkerPool',
'WorkerPoolResource',
'AppServiceCertificateOrderPaged',
@@ -832,7 +850,7 @@
'DiagnosticCategoryPaged',
'AnalysisDefinitionPaged',
'DetectorDefinitionPaged',
- 'ApplicationStackPaged',
+ 'ApplicationStackResourcePaged',
'RecommendationPaged',
'SourceControlPaged',
'BillingMeterPaged',
@@ -851,8 +869,6 @@
'ProcessInfoPaged',
'ProcessModuleInfoPaged',
'ProcessThreadInfoPaged',
- 'ResourceMetricDefinitionPaged',
- 'ResourceMetricPaged',
'PerfMonResponsePaged',
'PublicCertificatePaged',
'SiteExtensionInfoPaged',
@@ -866,6 +882,7 @@
'StampCapacityPaged',
'InboundEnvironmentEndpointPaged',
'WorkerPoolResourcePaged',
+ 'ResourceMetricDefinitionPaged',
'SkuInfoPaged',
'UsagePaged',
'OutboundEnvironmentEndpointPaged',
@@ -883,8 +900,6 @@
'IpFilterTag',
'AutoHealActionType',
'ConnectionStringType',
- 'AzureStorageType',
- 'AzureStorageState',
'ScmType',
'ManagedPipelineMode',
'SiteLoadBalancing',
@@ -918,7 +933,12 @@
'InAvailabilityReasonType',
'CheckNameResourceTypes',
'ValidateResourceTypes',
+ 'ResolveStatus',
+ 'ConfigReferenceSource',
+ 'ConfigReferenceLocation',
'LogLevel',
+ 'AzureStorageType',
+ 'AzureStorageState',
'BackupItemStatus',
'DatabaseType',
'FrequencyUnit',
@@ -936,5 +956,6 @@
'CloneAbilityResult',
'SiteExtensionType',
'TriggeredWebJobStatus',
+ 'SiteRuntimeState',
'SkuName',
]
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models.py
index 7849442cf6b6..8f4346e6b26e 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models.py
@@ -87,9 +87,58 @@ def __init__(self, **kwargs):
self.state = kwargs.get('state', None)
-class AddressResponse(Model):
+class ProxyOnlyResource(Model):
+ """Azure proxy only resource. This resource is not tracked by Azure Resource
+ Manager.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ProxyOnlyResource, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.kind = kwargs.get('kind', None)
+ self.type = None
+
+
+class AddressResponse(ProxyOnlyResource):
"""Describes main public IP address and any extra virtual IPs.
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
:param service_ip_address: Main public virtual IP.
:type service_ip_address: str
:param internal_ip_address: Virtual Network internal IP address of the App
@@ -102,11 +151,21 @@ class AddressResponse(Model):
:type vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
"""
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
_attribute_map = {
- 'service_ip_address': {'key': 'serviceIpAddress', 'type': 'str'},
- 'internal_ip_address': {'key': 'internalIpAddress', 'type': 'str'},
- 'outbound_ip_addresses': {'key': 'outboundIpAddresses', 'type': '[str]'},
- 'vip_mappings': {'key': 'vipMappings', 'type': '[VirtualIPMapping]'},
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'service_ip_address': {'key': 'properties.serviceIpAddress', 'type': 'str'},
+ 'internal_ip_address': {'key': 'properties.internalIpAddress', 'type': 'str'},
+ 'outbound_ip_addresses': {'key': 'properties.outboundIpAddresses', 'type': '[str]'},
+ 'vip_mappings': {'key': 'properties.vipMappings', 'type': '[VirtualIPMapping]'},
}
def __init__(self, **kwargs):
@@ -149,44 +208,6 @@ def __init__(self, **kwargs):
self.detector_meta_data = kwargs.get('detector_meta_data', None)
-class ProxyOnlyResource(Model):
- """Azure proxy only resource. This resource is not tracked by Azure Resource
- Manager.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar id: Resource Id.
- :vartype id: str
- :ivar name: Resource Name.
- :vartype name: str
- :param kind: Kind of resource.
- :type kind: str
- :ivar type: Resource type.
- :vartype type: str
- """
-
- _validation = {
- 'id': {'readonly': True},
- 'name': {'readonly': True},
- 'type': {'readonly': True},
- }
-
- _attribute_map = {
- 'id': {'key': 'id', 'type': 'str'},
- 'name': {'key': 'name', 'type': 'str'},
- 'kind': {'key': 'kind', 'type': 'str'},
- 'type': {'key': 'type', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(ProxyOnlyResource, self).__init__(**kwargs)
- self.id = None
- self.name = None
- self.kind = kwargs.get('kind', None)
- self.type = None
-
-
class AnalysisDefinition(ProxyOnlyResource):
"""Definition of Analysis.
@@ -241,6 +262,74 @@ def __init__(self, **kwargs):
self.url = kwargs.get('url', None)
+class ApiKVReference(Model):
+ """Description of site key vault references.
+
+ :param reference:
+ :type reference: str
+ :param status: Possible values include: 'Initialized', 'Resolved',
+ 'InvalidSyntax', 'MSINotEnabled', 'VaultNotFound', 'SecretNotFound',
+ 'SecretVersionNotFound', 'AccessToKeyVaultDenied', 'OtherReasons'
+ :type status: str or ~azure.mgmt.web.models.ResolveStatus
+ :param vault_name:
+ :type vault_name: str
+ :param secret_name:
+ :type secret_name: str
+ :param secret_version:
+ :type secret_version: str
+ :param identity_type: Possible values include: 'None', 'SystemAssigned',
+ 'UserAssigned'
+ :type identity_type: str or
+ ~azure.mgmt.web.models.ManagedServiceIdentityType
+ :param details:
+ :type details: str
+ :param source: Possible values include: 'KeyVault'
+ :type source: str or ~azure.mgmt.web.models.ConfigReferenceSource
+ :param location: Possible values include: 'ApplicationSetting'
+ :type location: str or ~azure.mgmt.web.models.ConfigReferenceLocation
+ """
+
+ _attribute_map = {
+ 'reference': {'key': 'reference', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'ResolveStatus'},
+ 'vault_name': {'key': 'vaultName', 'type': 'str'},
+ 'secret_name': {'key': 'secretName', 'type': 'str'},
+ 'secret_version': {'key': 'secretVersion', 'type': 'str'},
+ 'identity_type': {'key': 'identityType', 'type': 'ManagedServiceIdentityType'},
+ 'details': {'key': 'details', 'type': 'str'},
+ 'source': {'key': 'source', 'type': 'ConfigReferenceSource'},
+ 'location': {'key': 'location', 'type': 'ConfigReferenceLocation'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ApiKVReference, self).__init__(**kwargs)
+ self.reference = kwargs.get('reference', None)
+ self.status = kwargs.get('status', None)
+ self.vault_name = kwargs.get('vault_name', None)
+ self.secret_name = kwargs.get('secret_name', None)
+ self.secret_version = kwargs.get('secret_version', None)
+ self.identity_type = kwargs.get('identity_type', None)
+ self.details = kwargs.get('details', None)
+ self.source = kwargs.get('source', None)
+ self.location = kwargs.get('location', None)
+
+
+class ApiManagementConfig(Model):
+ """Azure API management (APIM) configuration linked to the app.
+
+ :param id: APIM-Api Identifier.
+ :type id: str
+ """
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ApiManagementConfig, self).__init__(**kwargs)
+ self.id = kwargs.get('id', None)
+
+
class ApplicationLogsConfig(Model):
"""Application logs configuration.
@@ -300,6 +389,59 @@ def __init__(self, **kwargs):
self.frameworks = kwargs.get('frameworks', None)
+class ApplicationStackResource(ProxyOnlyResource):
+ """ARM resource for a ApplicationStack.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param application_stack_resource_name: Application stack name.
+ :type application_stack_resource_name: str
+ :param display: Application stack display name.
+ :type display: str
+ :param dependency: Application stack dependency.
+ :type dependency: str
+ :param major_versions: List of major versions available.
+ :type major_versions: list[~azure.mgmt.web.models.StackMajorVersion]
+ :param frameworks: List of frameworks associated with application stack.
+ :type frameworks: list[~azure.mgmt.web.models.ApplicationStack]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'application_stack_resource_name': {'key': 'properties.name', 'type': 'str'},
+ 'display': {'key': 'properties.display', 'type': 'str'},
+ 'dependency': {'key': 'properties.dependency', 'type': 'str'},
+ 'major_versions': {'key': 'properties.majorVersions', 'type': '[StackMajorVersion]'},
+ 'frameworks': {'key': 'properties.frameworks', 'type': '[ApplicationStack]'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ApplicationStackResource, self).__init__(**kwargs)
+ self.application_stack_resource_name = kwargs.get('application_stack_resource_name', None)
+ self.display = kwargs.get('display', None)
+ self.dependency = kwargs.get('dependency', None)
+ self.major_versions = kwargs.get('major_versions', None)
+ self.frameworks = kwargs.get('frameworks', None)
+
+
class AppServiceCertificate(Model):
"""Key Vault container for a certificate that is purchased through Azure.
@@ -2446,6 +2588,9 @@ class Certificate(Resource):
formatted as:
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
:type server_farm_id: str
+ :param canonical_name: CNAME of the certificate to be issued via free
+ certificate
+ :type canonical_name: str
"""
_validation = {
@@ -2495,6 +2640,7 @@ class Certificate(Resource):
'key_vault_secret_name': {'key': 'properties.keyVaultSecretName', 'type': 'str'},
'key_vault_secret_status': {'key': 'properties.keyVaultSecretStatus', 'type': 'KeyVaultSecretStatus'},
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
+ 'canonical_name': {'key': 'properties.canonicalName', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -2518,6 +2664,7 @@ def __init__(self, **kwargs):
self.key_vault_secret_name = kwargs.get('key_vault_secret_name', None)
self.key_vault_secret_status = None
self.server_farm_id = kwargs.get('server_farm_id', None)
+ self.canonical_name = kwargs.get('canonical_name', None)
class CertificateDetails(Model):
@@ -2737,6 +2884,9 @@ class CertificatePatchResource(ProxyOnlyResource):
formatted as:
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
:type server_farm_id: str
+ :param canonical_name: CNAME of the certificate to be issued via free
+ certificate
+ :type canonical_name: str
"""
_validation = {
@@ -2783,6 +2933,7 @@ class CertificatePatchResource(ProxyOnlyResource):
'key_vault_secret_name': {'key': 'properties.keyVaultSecretName', 'type': 'str'},
'key_vault_secret_status': {'key': 'properties.keyVaultSecretStatus', 'type': 'KeyVaultSecretStatus'},
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
+ 'canonical_name': {'key': 'properties.canonicalName', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -2806,6 +2957,7 @@ def __init__(self, **kwargs):
self.key_vault_secret_name = kwargs.get('key_vault_secret_name', None)
self.key_vault_secret_status = None
self.server_farm_id = kwargs.get('server_farm_id', None)
+ self.canonical_name = kwargs.get('canonical_name', None)
class CloningInfo(Model):
@@ -3050,6 +3202,198 @@ def __init__(self, **kwargs):
self.phone = kwargs.get('phone', None)
+class ContainerCpuStatistics(Model):
+ """ContainerCpuStatistics.
+
+ :param cpu_usage:
+ :type cpu_usage: ~azure.mgmt.web.models.ContainerCpuUsage
+ :param system_cpu_usage:
+ :type system_cpu_usage: long
+ :param online_cpu_count:
+ :type online_cpu_count: int
+ :param throttling_data:
+ :type throttling_data: ~azure.mgmt.web.models.ContainerThrottlingData
+ """
+
+ _attribute_map = {
+ 'cpu_usage': {'key': 'cpuUsage', 'type': 'ContainerCpuUsage'},
+ 'system_cpu_usage': {'key': 'systemCpuUsage', 'type': 'long'},
+ 'online_cpu_count': {'key': 'onlineCpuCount', 'type': 'int'},
+ 'throttling_data': {'key': 'throttlingData', 'type': 'ContainerThrottlingData'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerCpuStatistics, self).__init__(**kwargs)
+ self.cpu_usage = kwargs.get('cpu_usage', None)
+ self.system_cpu_usage = kwargs.get('system_cpu_usage', None)
+ self.online_cpu_count = kwargs.get('online_cpu_count', None)
+ self.throttling_data = kwargs.get('throttling_data', None)
+
+
+class ContainerCpuUsage(Model):
+ """ContainerCpuUsage.
+
+ :param total_usage:
+ :type total_usage: long
+ :param per_cpu_usage:
+ :type per_cpu_usage: list[long]
+ :param kernel_mode_usage:
+ :type kernel_mode_usage: long
+ :param user_mode_usage:
+ :type user_mode_usage: long
+ """
+
+ _attribute_map = {
+ 'total_usage': {'key': 'totalUsage', 'type': 'long'},
+ 'per_cpu_usage': {'key': 'perCpuUsage', 'type': '[long]'},
+ 'kernel_mode_usage': {'key': 'kernelModeUsage', 'type': 'long'},
+ 'user_mode_usage': {'key': 'userModeUsage', 'type': 'long'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerCpuUsage, self).__init__(**kwargs)
+ self.total_usage = kwargs.get('total_usage', None)
+ self.per_cpu_usage = kwargs.get('per_cpu_usage', None)
+ self.kernel_mode_usage = kwargs.get('kernel_mode_usage', None)
+ self.user_mode_usage = kwargs.get('user_mode_usage', None)
+
+
+class ContainerInfo(Model):
+ """ContainerInfo.
+
+ :param current_time_stamp:
+ :type current_time_stamp: datetime
+ :param previous_time_stamp:
+ :type previous_time_stamp: datetime
+ :param current_cpu_stats:
+ :type current_cpu_stats: ~azure.mgmt.web.models.ContainerCpuStatistics
+ :param previous_cpu_stats:
+ :type previous_cpu_stats: ~azure.mgmt.web.models.ContainerCpuStatistics
+ :param memory_stats:
+ :type memory_stats: ~azure.mgmt.web.models.ContainerMemoryStatistics
+ :param name:
+ :type name: str
+ :param id:
+ :type id: str
+ :param eth0:
+ :type eth0: ~azure.mgmt.web.models.ContainerNetworkInterfaceStatistics
+ """
+
+ _attribute_map = {
+ 'current_time_stamp': {'key': 'currentTimeStamp', 'type': 'iso-8601'},
+ 'previous_time_stamp': {'key': 'previousTimeStamp', 'type': 'iso-8601'},
+ 'current_cpu_stats': {'key': 'currentCpuStats', 'type': 'ContainerCpuStatistics'},
+ 'previous_cpu_stats': {'key': 'previousCpuStats', 'type': 'ContainerCpuStatistics'},
+ 'memory_stats': {'key': 'memoryStats', 'type': 'ContainerMemoryStatistics'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'id': {'key': 'id', 'type': 'str'},
+ 'eth0': {'key': 'eth0', 'type': 'ContainerNetworkInterfaceStatistics'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerInfo, self).__init__(**kwargs)
+ self.current_time_stamp = kwargs.get('current_time_stamp', None)
+ self.previous_time_stamp = kwargs.get('previous_time_stamp', None)
+ self.current_cpu_stats = kwargs.get('current_cpu_stats', None)
+ self.previous_cpu_stats = kwargs.get('previous_cpu_stats', None)
+ self.memory_stats = kwargs.get('memory_stats', None)
+ self.name = kwargs.get('name', None)
+ self.id = kwargs.get('id', None)
+ self.eth0 = kwargs.get('eth0', None)
+
+
+class ContainerMemoryStatistics(Model):
+ """ContainerMemoryStatistics.
+
+ :param usage:
+ :type usage: long
+ :param max_usage:
+ :type max_usage: long
+ :param limit:
+ :type limit: long
+ """
+
+ _attribute_map = {
+ 'usage': {'key': 'usage', 'type': 'long'},
+ 'max_usage': {'key': 'maxUsage', 'type': 'long'},
+ 'limit': {'key': 'limit', 'type': 'long'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerMemoryStatistics, self).__init__(**kwargs)
+ self.usage = kwargs.get('usage', None)
+ self.max_usage = kwargs.get('max_usage', None)
+ self.limit = kwargs.get('limit', None)
+
+
+class ContainerNetworkInterfaceStatistics(Model):
+ """ContainerNetworkInterfaceStatistics.
+
+ :param rx_bytes:
+ :type rx_bytes: long
+ :param rx_packets:
+ :type rx_packets: long
+ :param rx_errors:
+ :type rx_errors: long
+ :param rx_dropped:
+ :type rx_dropped: long
+ :param tx_bytes:
+ :type tx_bytes: long
+ :param tx_packets:
+ :type tx_packets: long
+ :param tx_errors:
+ :type tx_errors: long
+ :param tx_dropped:
+ :type tx_dropped: long
+ """
+
+ _attribute_map = {
+ 'rx_bytes': {'key': 'rxBytes', 'type': 'long'},
+ 'rx_packets': {'key': 'rxPackets', 'type': 'long'},
+ 'rx_errors': {'key': 'rxErrors', 'type': 'long'},
+ 'rx_dropped': {'key': 'rxDropped', 'type': 'long'},
+ 'tx_bytes': {'key': 'txBytes', 'type': 'long'},
+ 'tx_packets': {'key': 'txPackets', 'type': 'long'},
+ 'tx_errors': {'key': 'txErrors', 'type': 'long'},
+ 'tx_dropped': {'key': 'txDropped', 'type': 'long'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerNetworkInterfaceStatistics, self).__init__(**kwargs)
+ self.rx_bytes = kwargs.get('rx_bytes', None)
+ self.rx_packets = kwargs.get('rx_packets', None)
+ self.rx_errors = kwargs.get('rx_errors', None)
+ self.rx_dropped = kwargs.get('rx_dropped', None)
+ self.tx_bytes = kwargs.get('tx_bytes', None)
+ self.tx_packets = kwargs.get('tx_packets', None)
+ self.tx_errors = kwargs.get('tx_errors', None)
+ self.tx_dropped = kwargs.get('tx_dropped', None)
+
+
+class ContainerThrottlingData(Model):
+ """ContainerThrottlingData.
+
+ :param periods:
+ :type periods: int
+ :param throttled_periods:
+ :type throttled_periods: int
+ :param throttled_time:
+ :type throttled_time: int
+ """
+
+ _attribute_map = {
+ 'periods': {'key': 'periods', 'type': 'int'},
+ 'throttled_periods': {'key': 'throttledPeriods', 'type': 'int'},
+ 'throttled_time': {'key': 'throttledTime', 'type': 'int'},
+ }
+
+ def __init__(self, **kwargs):
+ super(ContainerThrottlingData, self).__init__(**kwargs)
+ self.periods = kwargs.get('periods', None)
+ self.throttled_periods = kwargs.get('throttled_periods', None)
+ self.throttled_time = kwargs.get('throttled_time', None)
+
+
class ContinuousWebJob(ProxyOnlyResource):
"""Continuous Web Job Information.
@@ -3150,6 +3494,39 @@ def __init__(self, **kwargs):
self.support_credentials = kwargs.get('support_credentials', None)
+class CsmCopySlotEntity(Model):
+ """Copy deployment slot parameters.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param target_slot: Required. Destination deployment slot during copy
+ operation.
+ :type target_slot: str
+ :param site_config: Required. The site object which will be merged with
+ the source slot site
+ to produce new destination slot site object.
+ null to just copy source slot content. Otherwise a
+ Site
+ object with properties to override source slot site.
+ :type site_config: ~azure.mgmt.web.models.SiteConfig
+ """
+
+ _validation = {
+ 'target_slot': {'required': True},
+ 'site_config': {'required': True},
+ }
+
+ _attribute_map = {
+ 'target_slot': {'key': 'targetSlot', 'type': 'str'},
+ 'site_config': {'key': 'siteConfig', 'type': 'SiteConfig'},
+ }
+
+ def __init__(self, **kwargs):
+ super(CsmCopySlotEntity, self).__init__(**kwargs)
+ self.target_slot = kwargs.get('target_slot', None)
+ self.site_config = kwargs.get('site_config', None)
+
+
class CsmMoveResourceEnvelope(Model):
"""Object with a list of the resources that need to be moved and the resource
group they should be moved to.
@@ -4493,7 +4870,7 @@ def __init__(self, **kwargs):
self.auth_code = kwargs.get('auth_code', None)
-class DomainAvailablilityCheckResult(Model):
+class DomainAvailabilityCheckResult(Model):
"""Domain availability check result.
:param name: Name of the domain.
@@ -4515,7 +4892,7 @@ class DomainAvailablilityCheckResult(Model):
}
def __init__(self, **kwargs):
- super(DomainAvailablilityCheckResult, self).__init__(**kwargs)
+ super(DomainAvailabilityCheckResult, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.available = kwargs.get('available', None)
self.domain_type = kwargs.get('domain_type', None)
@@ -4835,16 +5212,16 @@ class EndpointDetail(Model):
be created from the App Service Environment to this IpAddress at this
Port.
:type latency: float
- :param is_accessable: Whether it is possible to create a TCP connection
+ :param is_accessible: Whether it is possible to create a TCP connection
from the App Service Environment to this IpAddress at this Port.
- :type is_accessable: bool
+ :type is_accessible: bool
"""
_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'latency': {'key': 'latency', 'type': 'float'},
- 'is_accessable': {'key': 'isAccessable', 'type': 'bool'},
+ 'is_accessible': {'key': 'isAccessible', 'type': 'bool'},
}
def __init__(self, **kwargs):
@@ -4852,7 +5229,7 @@ def __init__(self, **kwargs):
self.ip_address = kwargs.get('ip_address', None)
self.port = kwargs.get('port', None)
self.latency = kwargs.get('latency', None)
- self.is_accessable = kwargs.get('is_accessable', None)
+ self.is_accessible = kwargs.get('is_accessible', None)
class ErrorEntity(Model):
@@ -4959,7 +5336,7 @@ def __init__(self, **kwargs):
class FunctionEnvelope(ProxyOnlyResource):
- """Web Job Information.
+ """Function information.
Variables are only populated by the server, and will be ignored when
sending a request.
@@ -4980,6 +5357,8 @@ class FunctionEnvelope(ProxyOnlyResource):
:type script_href: str
:param config_href: Config URI.
:type config_href: str
+ :param test_data_href: Test data URI.
+ :type test_data_href: str
:param secrets_file_href: Secrets file URI.
:type secrets_file_href: str
:param href: Function URI.
@@ -4990,6 +5369,13 @@ class FunctionEnvelope(ProxyOnlyResource):
:type files: dict[str, str]
:param test_data: Test data used when testing via the Azure Portal.
:type test_data: str
+ :param invoke_url_template: The invocation URL
+ :type invoke_url_template: str
+ :param language: The function language
+ :type language: str
+ :param is_disabled: Gets or sets a value indicating whether the function
+ is disabled
+ :type is_disabled: bool
"""
_validation = {
@@ -5007,11 +5393,15 @@ class FunctionEnvelope(ProxyOnlyResource):
'script_root_path_href': {'key': 'properties.script_root_path_href', 'type': 'str'},
'script_href': {'key': 'properties.script_href', 'type': 'str'},
'config_href': {'key': 'properties.config_href', 'type': 'str'},
+ 'test_data_href': {'key': 'properties.test_data_href', 'type': 'str'},
'secrets_file_href': {'key': 'properties.secrets_file_href', 'type': 'str'},
'href': {'key': 'properties.href', 'type': 'str'},
'config': {'key': 'properties.config', 'type': 'object'},
'files': {'key': 'properties.files', 'type': '{str}'},
'test_data': {'key': 'properties.test_data', 'type': 'str'},
+ 'invoke_url_template': {'key': 'properties.invoke_url_template', 'type': 'str'},
+ 'language': {'key': 'properties.language', 'type': 'str'},
+ 'is_disabled': {'key': 'properties.isDisabled', 'type': 'bool'},
}
def __init__(self, **kwargs):
@@ -5020,11 +5410,15 @@ def __init__(self, **kwargs):
self.script_root_path_href = kwargs.get('script_root_path_href', None)
self.script_href = kwargs.get('script_href', None)
self.config_href = kwargs.get('config_href', None)
+ self.test_data_href = kwargs.get('test_data_href', None)
self.secrets_file_href = kwargs.get('secrets_file_href', None)
self.href = kwargs.get('href', None)
self.config = kwargs.get('config', None)
self.files = kwargs.get('files', None)
self.test_data = kwargs.get('test_data', None)
+ self.invoke_url_template = kwargs.get('invoke_url_template', None)
+ self.language = kwargs.get('language', None)
+ self.is_disabled = kwargs.get('is_disabled', None)
class FunctionSecrets(ProxyOnlyResource):
@@ -5068,26 +5462,6 @@ def __init__(self, **kwargs):
self.trigger_url = kwargs.get('trigger_url', None)
-class GeoDistribution(Model):
- """A global distribution definition.
-
- :param location: Location.
- :type location: str
- :param number_of_workers: NumberOfWorkers.
- :type number_of_workers: int
- """
-
- _attribute_map = {
- 'location': {'key': 'location', 'type': 'str'},
- 'number_of_workers': {'key': 'numberOfWorkers', 'type': 'int'},
- }
-
- def __init__(self, **kwargs):
- super(GeoDistribution, self).__init__(**kwargs)
- self.location = kwargs.get('location', None)
- self.number_of_workers = kwargs.get('number_of_workers', None)
-
-
class GeoRegion(ProxyOnlyResource):
"""Geographical region.
@@ -5106,6 +5480,8 @@ class GeoRegion(ProxyOnlyResource):
:vartype description: str
:ivar display_name: Display name for region.
:vartype display_name: str
+ :ivar org_domain: Display name for region.
+ :vartype org_domain: str
"""
_validation = {
@@ -5114,6 +5490,7 @@ class GeoRegion(ProxyOnlyResource):
'type': {'readonly': True},
'description': {'readonly': True},
'display_name': {'readonly': True},
+ 'org_domain': {'readonly': True},
}
_attribute_map = {
@@ -5123,12 +5500,14 @@ class GeoRegion(ProxyOnlyResource):
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
+ 'org_domain': {'key': 'properties.orgDomain', 'type': 'str'},
}
def __init__(self, **kwargs):
super(GeoRegion, self).__init__(**kwargs)
self.description = None
self.display_name = None
+ self.org_domain = None
class GlobalCsmSkuDescription(Model):
@@ -5226,19 +5605,19 @@ class HostingEnvironmentDiagnostics(Model):
:param name: Name/identifier of the diagnostics.
:type name: str
- :param diagnosics_output: Diagnostics output.
- :type diagnosics_output: str
+ :param diagnostics_output: Diagnostics output.
+ :type diagnostics_output: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
- 'diagnosics_output': {'key': 'diagnosicsOutput', 'type': 'str'},
+ 'diagnostics_output': {'key': 'diagnosticsOutput', 'type': 'str'},
}
def __init__(self, **kwargs):
super(HostingEnvironmentDiagnostics, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
- self.diagnosics_output = kwargs.get('diagnosics_output', None)
+ self.diagnostics_output = kwargs.get('diagnostics_output', None)
class HostingEnvironmentProfile(Model):
@@ -5624,8 +6003,8 @@ class Identifier(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
- :param identifier_id: String representation of the identity.
- :type identifier_id: str
+ :param value: String representation of the identity.
+ :type value: str
"""
_validation = {
@@ -5639,12 +6018,12 @@ class Identifier(ProxyOnlyResource):
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
- 'identifier_id': {'key': 'properties.id', 'type': 'str'},
+ 'value': {'key': 'properties.id', 'type': 'str'},
}
def __init__(self, **kwargs):
super(Identifier, self).__init__(**kwargs)
- self.identifier_id = kwargs.get('identifier_id', None)
+ self.value = kwargs.get('value', None)
class InboundEnvironmentEndpoint(Model):
@@ -5707,30 +6086,141 @@ class IpSecurityRestriction(Model):
"""
_attribute_map = {
- 'ip_address': {'key': 'ipAddress', 'type': 'str'},
- 'subnet_mask': {'key': 'subnetMask', 'type': 'str'},
- 'vnet_subnet_resource_id': {'key': 'vnetSubnetResourceId', 'type': 'str'},
- 'vnet_traffic_tag': {'key': 'vnetTrafficTag', 'type': 'int'},
- 'subnet_traffic_tag': {'key': 'subnetTrafficTag', 'type': 'int'},
- 'action': {'key': 'action', 'type': 'str'},
- 'tag': {'key': 'tag', 'type': 'IpFilterTag'},
- 'priority': {'key': 'priority', 'type': 'int'},
+ 'ip_address': {'key': 'ipAddress', 'type': 'str'},
+ 'subnet_mask': {'key': 'subnetMask', 'type': 'str'},
+ 'vnet_subnet_resource_id': {'key': 'vnetSubnetResourceId', 'type': 'str'},
+ 'vnet_traffic_tag': {'key': 'vnetTrafficTag', 'type': 'int'},
+ 'subnet_traffic_tag': {'key': 'subnetTrafficTag', 'type': 'int'},
+ 'action': {'key': 'action', 'type': 'str'},
+ 'tag': {'key': 'tag', 'type': 'IpFilterTag'},
+ 'priority': {'key': 'priority', 'type': 'int'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'description': {'key': 'description', 'type': 'str'},
+ }
+
+ def __init__(self, **kwargs):
+ super(IpSecurityRestriction, self).__init__(**kwargs)
+ self.ip_address = kwargs.get('ip_address', None)
+ self.subnet_mask = kwargs.get('subnet_mask', None)
+ self.vnet_subnet_resource_id = kwargs.get('vnet_subnet_resource_id', None)
+ self.vnet_traffic_tag = kwargs.get('vnet_traffic_tag', None)
+ self.subnet_traffic_tag = kwargs.get('subnet_traffic_tag', None)
+ self.action = kwargs.get('action', None)
+ self.tag = kwargs.get('tag', None)
+ self.priority = kwargs.get('priority', None)
+ self.name = kwargs.get('name', None)
+ self.description = kwargs.get('description', None)
+
+
+class KeyVaultReferenceCollection(ProxyOnlyResource):
+ """Web app key vault reference and status ARM resource.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param key_to_reference_statuses:
+ :type key_to_reference_statuses: dict[str,
+ ~azure.mgmt.web.models.ApiKVReference]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'key_to_reference_statuses': {'key': 'properties.keyToReferenceStatuses', 'type': '{ApiKVReference}'},
+ }
+
+ def __init__(self, **kwargs):
+ super(KeyVaultReferenceCollection, self).__init__(**kwargs)
+ self.key_to_reference_statuses = kwargs.get('key_to_reference_statuses', None)
+
+
+class KeyVaultReferenceResource(ProxyOnlyResource):
+ """Web app key vault reference and status ARM resource.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param reference:
+ :type reference: str
+ :param status: Possible values include: 'Initialized', 'Resolved',
+ 'InvalidSyntax', 'MSINotEnabled', 'VaultNotFound', 'SecretNotFound',
+ 'SecretVersionNotFound', 'AccessToKeyVaultDenied', 'OtherReasons'
+ :type status: str or ~azure.mgmt.web.models.ResolveStatus
+ :param vault_name:
+ :type vault_name: str
+ :param secret_name:
+ :type secret_name: str
+ :param secret_version:
+ :type secret_version: str
+ :param identity_type: Possible values include: 'None', 'SystemAssigned',
+ 'UserAssigned'
+ :type identity_type: str or
+ ~azure.mgmt.web.models.ManagedServiceIdentityType
+ :param details:
+ :type details: str
+ :param source: Possible values include: 'KeyVault'
+ :type source: str or ~azure.mgmt.web.models.ConfigReferenceSource
+ :param location: Possible values include: 'ApplicationSetting'
+ :type location: str or ~azure.mgmt.web.models.ConfigReferenceLocation
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
- 'description': {'key': 'description', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'reference': {'key': 'properties.reference', 'type': 'str'},
+ 'status': {'key': 'properties.status', 'type': 'ResolveStatus'},
+ 'vault_name': {'key': 'properties.vaultName', 'type': 'str'},
+ 'secret_name': {'key': 'properties.secretName', 'type': 'str'},
+ 'secret_version': {'key': 'properties.secretVersion', 'type': 'str'},
+ 'identity_type': {'key': 'properties.identityType', 'type': 'ManagedServiceIdentityType'},
+ 'details': {'key': 'properties.details', 'type': 'str'},
+ 'source': {'key': 'properties.source', 'type': 'ConfigReferenceSource'},
+ 'location': {'key': 'properties.location', 'type': 'ConfigReferenceLocation'},
}
def __init__(self, **kwargs):
- super(IpSecurityRestriction, self).__init__(**kwargs)
- self.ip_address = kwargs.get('ip_address', None)
- self.subnet_mask = kwargs.get('subnet_mask', None)
- self.vnet_subnet_resource_id = kwargs.get('vnet_subnet_resource_id', None)
- self.vnet_traffic_tag = kwargs.get('vnet_traffic_tag', None)
- self.subnet_traffic_tag = kwargs.get('subnet_traffic_tag', None)
- self.action = kwargs.get('action', None)
- self.tag = kwargs.get('tag', None)
- self.priority = kwargs.get('priority', None)
- self.name = kwargs.get('name', None)
- self.description = kwargs.get('description', None)
+ super(KeyVaultReferenceResource, self).__init__(**kwargs)
+ self.reference = kwargs.get('reference', None)
+ self.status = kwargs.get('status', None)
+ self.vault_name = kwargs.get('vault_name', None)
+ self.secret_name = kwargs.get('secret_name', None)
+ self.secret_version = kwargs.get('secret_version', None)
+ self.identity_type = kwargs.get('identity_type', None)
+ self.details = kwargs.get('details', None)
+ self.source = kwargs.get('source', None)
+ self.location = kwargs.get('location', None)
class LocalizableString(Model):
@@ -5784,7 +6274,7 @@ class ManagedServiceIdentity(Model):
sending a request.
:param type: Type of managed service identity. Possible values include:
- 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
+ 'None', 'SystemAssigned', 'UserAssigned'
:type type: str or ~azure.mgmt.web.models.ManagedServiceIdentityType
:ivar tenant_id: Tenant of managed service identity.
:vartype tenant_id: str
@@ -5804,7 +6294,7 @@ class ManagedServiceIdentity(Model):
}
_attribute_map = {
- 'type': {'key': 'type', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'ManagedServiceIdentityType'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'},
@@ -5846,26 +6336,6 @@ def __init__(self, **kwargs):
self.client_id = None
-class MetricAvailabilily(Model):
- """Metric availability and retention.
-
- :param time_grain: Time grain.
- :type time_grain: str
- :param retention: Retention period for the current time grain.
- :type retention: str
- """
-
- _attribute_map = {
- 'time_grain': {'key': 'timeGrain', 'type': 'str'},
- 'retention': {'key': 'retention', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(MetricAvailabilily, self).__init__(**kwargs)
- self.time_grain = kwargs.get('time_grain', None)
- self.retention = kwargs.get('retention', None)
-
-
class MetricAvailability(Model):
"""Retention policy of a resource metric.
@@ -5886,61 +6356,6 @@ def __init__(self, **kwargs):
self.blob_duration = kwargs.get('blob_duration', None)
-class MetricDefinition(ProxyOnlyResource):
- """Metadata for a metric.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar id: Resource Id.
- :vartype id: str
- :ivar name: Resource Name.
- :vartype name: str
- :param kind: Kind of resource.
- :type kind: str
- :ivar type: Resource type.
- :vartype type: str
- :ivar unit: Unit of the metric.
- :vartype unit: str
- :ivar primary_aggregation_type: Primary aggregation type.
- :vartype primary_aggregation_type: str
- :ivar metric_availabilities: List of time grains supported for the metric
- together with retention period.
- :vartype metric_availabilities:
- list[~azure.mgmt.web.models.MetricAvailabilily]
- :ivar display_name: Friendly name shown in the UI.
- :vartype display_name: str
- """
-
- _validation = {
- 'id': {'readonly': True},
- 'name': {'readonly': True},
- 'type': {'readonly': True},
- 'unit': {'readonly': True},
- 'primary_aggregation_type': {'readonly': True},
- 'metric_availabilities': {'readonly': True},
- 'display_name': {'readonly': True},
- }
-
- _attribute_map = {
- 'id': {'key': 'id', 'type': 'str'},
- 'name': {'key': 'name', 'type': 'str'},
- 'kind': {'key': 'kind', 'type': 'str'},
- 'type': {'key': 'type', 'type': 'str'},
- 'unit': {'key': 'properties.unit', 'type': 'str'},
- 'primary_aggregation_type': {'key': 'properties.primaryAggregationType', 'type': 'str'},
- 'metric_availabilities': {'key': 'properties.metricAvailabilities', 'type': '[MetricAvailabilily]'},
- 'display_name': {'key': 'properties.displayName', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(MetricDefinition, self).__init__(**kwargs)
- self.unit = None
- self.primary_aggregation_type = None
- self.metric_availabilities = None
- self.display_name = None
-
-
class MetricSpecification(Model):
"""Definition of a single resource metric.
@@ -5974,6 +6389,8 @@ class MetricSpecification(Model):
:type category: str
:param availabilities:
:type availabilities: list[~azure.mgmt.web.models.MetricAvailability]
+ :param supported_time_grain_types:
+ :type supported_time_grain_types: list[str]
"""
_attribute_map = {
@@ -5992,6 +6409,7 @@ class MetricSpecification(Model):
'dimensions': {'key': 'dimensions', 'type': '[Dimension]'},
'category': {'key': 'category', 'type': 'str'},
'availabilities': {'key': 'availabilities', 'type': '[MetricAvailability]'},
+ 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'},
}
def __init__(self, **kwargs):
@@ -6011,6 +6429,7 @@ def __init__(self, **kwargs):
self.dimensions = kwargs.get('dimensions', None)
self.category = kwargs.get('category', None)
self.availabilities = kwargs.get('availabilities', None)
+ self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None)
class MigrateMySqlRequest(ProxyOnlyResource):
@@ -7184,8 +7603,6 @@ class ProcessThreadInfo(ProxyOnlyResource):
:type total_processor_time: str
:param user_processor_time: User processor time.
:type user_processor_time: str
- :param priviledged_processor_time: Privileged processor time.
- :type priviledged_processor_time: str
:param state: Thread state.
:type state: str
:param wait_reason: Wait reason.
@@ -7214,7 +7631,6 @@ class ProcessThreadInfo(ProxyOnlyResource):
'start_time': {'key': 'properties.start_time', 'type': 'iso-8601'},
'total_processor_time': {'key': 'properties.total_processor_time', 'type': 'str'},
'user_processor_time': {'key': 'properties.user_processor_time', 'type': 'str'},
- 'priviledged_processor_time': {'key': 'properties.priviledged_processor_time', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'wait_reason': {'key': 'properties.wait_reason', 'type': 'str'},
}
@@ -7231,7 +7647,6 @@ def __init__(self, **kwargs):
self.start_time = kwargs.get('start_time', None)
self.total_processor_time = kwargs.get('total_processor_time', None)
self.user_processor_time = kwargs.get('user_processor_time', None)
- self.priviledged_processor_time = kwargs.get('priviledged_processor_time', None)
self.state = kwargs.get('state', None)
self.wait_reason = kwargs.get('wait_reason', None)
@@ -7357,11 +7772,12 @@ class RampUpRule(Model):
:type reroute_percentage: float
:param change_step: In auto ramp up scenario this is the step to
add/remove from ReroutePercentage until it reaches
- MinReroutePercentage or MaxReroutePercentage.
- Site metrics are checked every N minutes specified in
- ChangeIntervalInMinutes.
- Custom decision algorithm can be provided in TiPCallback site extension
- which URL can be specified in ChangeDecisionCallbackUrl.
+ \\nMinReroutePercentage or
+ MaxReroutePercentage. Site metrics are checked every N
+ minutes specified in ChangeIntervalInMinutes.\\nCustom
+ decision algorithm
+ can be provided in TiPCallback site extension which URL can be specified
+ in ChangeDecisionCallbackUrl.
:type change_step: float
:param change_interval_in_minutes: Specifies interval in minutes to
reevaluate ReroutePercentage.
@@ -7892,69 +8308,6 @@ def __init__(self, **kwargs):
self.signal_availability = kwargs.get('signal_availability', None)
-class ResourceMetric(Model):
- """Object representing a metric for any resource .
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar name: Name of metric.
- :vartype name: ~azure.mgmt.web.models.ResourceMetricName
- :ivar unit: Metric unit.
- :vartype unit: str
- :ivar time_grain: Metric granularity. E.g PT1H, PT5M, P1D
- :vartype time_grain: str
- :ivar start_time: Metric start time.
- :vartype start_time: datetime
- :ivar end_time: Metric end time.
- :vartype end_time: datetime
- :ivar resource_id: Metric resource Id.
- :vartype resource_id: str
- :ivar id: Resource Id.
- :vartype id: str
- :ivar metric_values: Metric values.
- :vartype metric_values: list[~azure.mgmt.web.models.ResourceMetricValue]
- :ivar properties: Resource metric properties collection.
- :vartype properties: list[~azure.mgmt.web.models.ResourceMetricProperty]
- """
-
- _validation = {
- 'name': {'readonly': True},
- 'unit': {'readonly': True},
- 'time_grain': {'readonly': True},
- 'start_time': {'readonly': True},
- 'end_time': {'readonly': True},
- 'resource_id': {'readonly': True},
- 'id': {'readonly': True},
- 'metric_values': {'readonly': True},
- 'properties': {'readonly': True},
- }
-
- _attribute_map = {
- 'name': {'key': 'name', 'type': 'ResourceMetricName'},
- 'unit': {'key': 'unit', 'type': 'str'},
- 'time_grain': {'key': 'timeGrain', 'type': 'str'},
- 'start_time': {'key': 'startTime', 'type': 'iso-8601'},
- 'end_time': {'key': 'endTime', 'type': 'iso-8601'},
- 'resource_id': {'key': 'resourceId', 'type': 'str'},
- 'id': {'key': 'id', 'type': 'str'},
- 'metric_values': {'key': 'metricValues', 'type': '[ResourceMetricValue]'},
- 'properties': {'key': 'properties', 'type': '[ResourceMetricProperty]'},
- }
-
- def __init__(self, **kwargs):
- super(ResourceMetric, self).__init__(**kwargs)
- self.name = None
- self.unit = None
- self.time_grain = None
- self.start_time = None
- self.end_time = None
- self.resource_id = None
- self.id = None
- self.metric_values = None
- self.properties = None
-
-
class ResourceMetricAvailability(Model):
"""Metrics availability and retention.
@@ -8043,107 +8396,6 @@ def __init__(self, **kwargs):
self.properties = None
-class ResourceMetricName(Model):
- """Name of a metric for any resource .
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar value: metric name value.
- :vartype value: str
- :ivar localized_value: Localized metric name value.
- :vartype localized_value: str
- """
-
- _validation = {
- 'value': {'readonly': True},
- 'localized_value': {'readonly': True},
- }
-
- _attribute_map = {
- 'value': {'key': 'value', 'type': 'str'},
- 'localized_value': {'key': 'localizedValue', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(ResourceMetricName, self).__init__(**kwargs)
- self.value = None
- self.localized_value = None
-
-
-class ResourceMetricProperty(Model):
- """Resource metric property.
-
- :param key: Key for resource metric property.
- :type key: str
- :param value: Value of pair.
- :type value: str
- """
-
- _attribute_map = {
- 'key': {'key': 'key', 'type': 'str'},
- 'value': {'key': 'value', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(ResourceMetricProperty, self).__init__(**kwargs)
- self.key = kwargs.get('key', None)
- self.value = kwargs.get('value', None)
-
-
-class ResourceMetricValue(Model):
- """Value of resource metric.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar timestamp: Value timestamp.
- :vartype timestamp: str
- :ivar average: Value average.
- :vartype average: float
- :ivar minimum: Value minimum.
- :vartype minimum: float
- :ivar maximum: Value maximum.
- :vartype maximum: float
- :ivar total: Value total.
- :vartype total: float
- :ivar count: Value count.
- :vartype count: float
- :ivar properties: Resource metric properties collection.
- :vartype properties: list[~azure.mgmt.web.models.ResourceMetricProperty]
- """
-
- _validation = {
- 'timestamp': {'readonly': True},
- 'average': {'readonly': True},
- 'minimum': {'readonly': True},
- 'maximum': {'readonly': True},
- 'total': {'readonly': True},
- 'count': {'readonly': True},
- 'properties': {'readonly': True},
- }
-
- _attribute_map = {
- 'timestamp': {'key': 'timestamp', 'type': 'str'},
- 'average': {'key': 'average', 'type': 'float'},
- 'minimum': {'key': 'minimum', 'type': 'float'},
- 'maximum': {'key': 'maximum', 'type': 'float'},
- 'total': {'key': 'total', 'type': 'float'},
- 'count': {'key': 'count', 'type': 'float'},
- 'properties': {'key': 'properties', 'type': '[ResourceMetricProperty]'},
- }
-
- def __init__(self, **kwargs):
- super(ResourceMetricValue, self).__init__(**kwargs)
- self.timestamp = None
- self.average = None
- self.minimum = None
- self.maximum = None
- self.total = None
- self.count = None
- self.properties = None
-
-
class ResourceNameAvailability(Model):
"""Information regarding availability of a resource name.
@@ -8441,7 +8693,7 @@ class Site(Resource):
:vartype outbound_ip_addresses: str
:ivar possible_outbound_ip_addresses: List of IP addresses that the app
uses for outbound connections (e.g. database access). Includes VIPs from
- all tenants. Read-only.
+ all tenants except dataComponent. Read-only.
:vartype possible_outbound_ip_addresses: str
:param container_size: Size of the function container.
:type container_size: int
@@ -8477,8 +8729,6 @@ class Site(Resource):
:ivar in_progress_operation_id: Specifies an operation id if this site has
a pending operation.
:vartype in_progress_operation_id: str
- :param geo_distributions: GeoDistributions for this site
- :type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
:param identity:
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
"""
@@ -8551,7 +8801,6 @@ class Site(Resource):
'https_only': {'key': 'properties.httpsOnly', 'type': 'bool'},
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
- 'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
}
@@ -8593,7 +8842,6 @@ def __init__(self, **kwargs):
self.https_only = kwargs.get('https_only', None)
self.redundancy_mode = kwargs.get('redundancy_mode', None)
self.in_progress_operation_id = None
- self.geo_distributions = kwargs.get('geo_distributions', None)
self.identity = kwargs.get('identity', None)
@@ -8928,9 +9176,6 @@ class SiteConfig(Model):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
- :param azure_storage_accounts: User-provided Azure storage accounts.
- :type azure_storage_accounts: dict[str,
- ~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
@@ -8941,7 +9186,7 @@ class SiteConfig(Model):
:type document_root: str
:param scm_type: SCM type. Possible values include: 'None', 'Dropbox',
'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit',
- 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO'
+ 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'
:type scm_type: str or ~azure.mgmt.web.models.ScmType
:param use32_bit_worker_process: true to use 32-bit worker
process; otherwise, false.
@@ -8991,6 +9236,9 @@ class SiteConfig(Model):
:param api_definition: Information about the formal API definition for the
app.
:type api_definition: ~azure.mgmt.web.models.ApiDefinitionInfo
+ :param api_management_config: Azure API management settings linked to the
+ app.
+ :type api_management_config: ~azure.mgmt.web.models.ApiManagementConfig
:param auto_swap_slot_name: Auto-swap slot name.
:type auto_swap_slot_name: str
:param local_my_sql_enabled: true to enable local MySQL;
@@ -9019,14 +9267,16 @@ class SiteConfig(Model):
:param ftps_state: State of FTP / FTPS service. Possible values include:
'AllAllowed', 'FtpsOnly', 'Disabled'
:type ftps_state: str or ~azure.mgmt.web.models.FtpsState
- :param reserved_instance_count: Number of reserved instances.
- This setting only applies to the Consumption Plan
- :type reserved_instance_count: int
+ :param pre_warmed_instance_count: Number of preWarmed instances.
+ This setting only applies to the Consumption and Elastic Plans
+ :type pre_warmed_instance_count: int
+ :param health_check_path: Health check path
+ :type health_check_path: str
"""
_validation = {
'machine_key': {'readonly': True},
- 'reserved_instance_count': {'maximum': 10, 'minimum': 0},
+ 'pre_warmed_instance_count': {'maximum': 10, 'minimum': 0},
}
_attribute_map = {
@@ -9047,7 +9297,6 @@ class SiteConfig(Model):
'detailed_error_logging_enabled': {'key': 'detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'publishingUsername', 'type': 'str'},
'app_settings': {'key': 'appSettings', 'type': '[NameValuePair]'},
- 'azure_storage_accounts': {'key': 'azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'handlerMappings', 'type': '[HandlerMapping]'},
@@ -9072,6 +9321,7 @@ class SiteConfig(Model):
'cors': {'key': 'cors', 'type': 'CorsSettings'},
'push': {'key': 'push', 'type': 'PushSettings'},
'api_definition': {'key': 'apiDefinition', 'type': 'ApiDefinitionInfo'},
+ 'api_management_config': {'key': 'apiManagementConfig', 'type': 'ApiManagementConfig'},
'auto_swap_slot_name': {'key': 'autoSwapSlotName', 'type': 'str'},
'local_my_sql_enabled': {'key': 'localMySqlEnabled', 'type': 'bool'},
'managed_service_identity_id': {'key': 'managedServiceIdentityId', 'type': 'int'},
@@ -9082,7 +9332,8 @@ class SiteConfig(Model):
'http20_enabled': {'key': 'http20Enabled', 'type': 'bool'},
'min_tls_version': {'key': 'minTlsVersion', 'type': 'str'},
'ftps_state': {'key': 'ftpsState', 'type': 'str'},
- 'reserved_instance_count': {'key': 'reservedInstanceCount', 'type': 'int'},
+ 'pre_warmed_instance_count': {'key': 'preWarmedInstanceCount', 'type': 'int'},
+ 'health_check_path': {'key': 'healthCheckPath', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -9104,7 +9355,6 @@ def __init__(self, **kwargs):
self.detailed_error_logging_enabled = kwargs.get('detailed_error_logging_enabled', None)
self.publishing_username = kwargs.get('publishing_username', None)
self.app_settings = kwargs.get('app_settings', None)
- self.azure_storage_accounts = kwargs.get('azure_storage_accounts', None)
self.connection_strings = kwargs.get('connection_strings', None)
self.machine_key = None
self.handler_mappings = kwargs.get('handler_mappings', None)
@@ -9129,6 +9379,7 @@ def __init__(self, **kwargs):
self.cors = kwargs.get('cors', None)
self.push = kwargs.get('push', None)
self.api_definition = kwargs.get('api_definition', None)
+ self.api_management_config = kwargs.get('api_management_config', None)
self.auto_swap_slot_name = kwargs.get('auto_swap_slot_name', None)
self.local_my_sql_enabled = kwargs.get('local_my_sql_enabled', False)
self.managed_service_identity_id = kwargs.get('managed_service_identity_id', None)
@@ -9139,7 +9390,8 @@ def __init__(self, **kwargs):
self.http20_enabled = kwargs.get('http20_enabled', True)
self.min_tls_version = kwargs.get('min_tls_version', None)
self.ftps_state = kwargs.get('ftps_state', None)
- self.reserved_instance_count = kwargs.get('reserved_instance_count', None)
+ self.pre_warmed_instance_count = kwargs.get('pre_warmed_instance_count', None)
+ self.health_check_path = kwargs.get('health_check_path', None)
class SiteConfigResource(ProxyOnlyResource):
@@ -9195,9 +9447,6 @@ class SiteConfigResource(ProxyOnlyResource):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
- :param azure_storage_accounts: User-provided Azure storage accounts.
- :type azure_storage_accounts: dict[str,
- ~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
@@ -9208,7 +9457,7 @@ class SiteConfigResource(ProxyOnlyResource):
:type document_root: str
:param scm_type: SCM type. Possible values include: 'None', 'Dropbox',
'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit',
- 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO'
+ 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'
:type scm_type: str or ~azure.mgmt.web.models.ScmType
:param use32_bit_worker_process: true to use 32-bit worker
process; otherwise, false.
@@ -9258,6 +9507,9 @@ class SiteConfigResource(ProxyOnlyResource):
:param api_definition: Information about the formal API definition for the
app.
:type api_definition: ~azure.mgmt.web.models.ApiDefinitionInfo
+ :param api_management_config: Azure API management settings linked to the
+ app.
+ :type api_management_config: ~azure.mgmt.web.models.ApiManagementConfig
:param auto_swap_slot_name: Auto-swap slot name.
:type auto_swap_slot_name: str
:param local_my_sql_enabled: true to enable local MySQL;
@@ -9286,9 +9538,11 @@ class SiteConfigResource(ProxyOnlyResource):
:param ftps_state: State of FTP / FTPS service. Possible values include:
'AllAllowed', 'FtpsOnly', 'Disabled'
:type ftps_state: str or ~azure.mgmt.web.models.FtpsState
- :param reserved_instance_count: Number of reserved instances.
- This setting only applies to the Consumption Plan
- :type reserved_instance_count: int
+ :param pre_warmed_instance_count: Number of preWarmed instances.
+ This setting only applies to the Consumption and Elastic Plans
+ :type pre_warmed_instance_count: int
+ :param health_check_path: Health check path
+ :type health_check_path: str
"""
_validation = {
@@ -9296,7 +9550,7 @@ class SiteConfigResource(ProxyOnlyResource):
'name': {'readonly': True},
'type': {'readonly': True},
'machine_key': {'readonly': True},
- 'reserved_instance_count': {'maximum': 10, 'minimum': 0},
+ 'pre_warmed_instance_count': {'maximum': 10, 'minimum': 0},
}
_attribute_map = {
@@ -9321,7 +9575,6 @@ class SiteConfigResource(ProxyOnlyResource):
'detailed_error_logging_enabled': {'key': 'properties.detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'properties.publishingUsername', 'type': 'str'},
'app_settings': {'key': 'properties.appSettings', 'type': '[NameValuePair]'},
- 'azure_storage_accounts': {'key': 'properties.azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'properties.connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'properties.machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'properties.handlerMappings', 'type': '[HandlerMapping]'},
@@ -9346,6 +9599,7 @@ class SiteConfigResource(ProxyOnlyResource):
'cors': {'key': 'properties.cors', 'type': 'CorsSettings'},
'push': {'key': 'properties.push', 'type': 'PushSettings'},
'api_definition': {'key': 'properties.apiDefinition', 'type': 'ApiDefinitionInfo'},
+ 'api_management_config': {'key': 'properties.apiManagementConfig', 'type': 'ApiManagementConfig'},
'auto_swap_slot_name': {'key': 'properties.autoSwapSlotName', 'type': 'str'},
'local_my_sql_enabled': {'key': 'properties.localMySqlEnabled', 'type': 'bool'},
'managed_service_identity_id': {'key': 'properties.managedServiceIdentityId', 'type': 'int'},
@@ -9356,7 +9610,8 @@ class SiteConfigResource(ProxyOnlyResource):
'http20_enabled': {'key': 'properties.http20Enabled', 'type': 'bool'},
'min_tls_version': {'key': 'properties.minTlsVersion', 'type': 'str'},
'ftps_state': {'key': 'properties.ftpsState', 'type': 'str'},
- 'reserved_instance_count': {'key': 'properties.reservedInstanceCount', 'type': 'int'},
+ 'pre_warmed_instance_count': {'key': 'properties.preWarmedInstanceCount', 'type': 'int'},
+ 'health_check_path': {'key': 'properties.healthCheckPath', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -9378,7 +9633,6 @@ def __init__(self, **kwargs):
self.detailed_error_logging_enabled = kwargs.get('detailed_error_logging_enabled', None)
self.publishing_username = kwargs.get('publishing_username', None)
self.app_settings = kwargs.get('app_settings', None)
- self.azure_storage_accounts = kwargs.get('azure_storage_accounts', None)
self.connection_strings = kwargs.get('connection_strings', None)
self.machine_key = None
self.handler_mappings = kwargs.get('handler_mappings', None)
@@ -9403,6 +9657,7 @@ def __init__(self, **kwargs):
self.cors = kwargs.get('cors', None)
self.push = kwargs.get('push', None)
self.api_definition = kwargs.get('api_definition', None)
+ self.api_management_config = kwargs.get('api_management_config', None)
self.auto_swap_slot_name = kwargs.get('auto_swap_slot_name', None)
self.local_my_sql_enabled = kwargs.get('local_my_sql_enabled', False)
self.managed_service_identity_id = kwargs.get('managed_service_identity_id', None)
@@ -9413,7 +9668,8 @@ def __init__(self, **kwargs):
self.http20_enabled = kwargs.get('http20_enabled', True)
self.min_tls_version = kwargs.get('min_tls_version', None)
self.ftps_state = kwargs.get('ftps_state', None)
- self.reserved_instance_count = kwargs.get('reserved_instance_count', None)
+ self.pre_warmed_instance_count = kwargs.get('pre_warmed_instance_count', None)
+ self.health_check_path = kwargs.get('health_check_path', None)
class SiteConfigurationSnapshotInfo(ProxyOnlyResource):
@@ -9805,7 +10061,7 @@ class SitePatchResource(ProxyOnlyResource):
:vartype outbound_ip_addresses: str
:ivar possible_outbound_ip_addresses: List of IP addresses that the app
uses for outbound connections (e.g. database access). Includes VIPs from
- all tenants. Read-only.
+ all tenants except dataComponent. Read-only.
:vartype possible_outbound_ip_addresses: str
:param container_size: Size of the function container.
:type container_size: int
@@ -9841,8 +10097,6 @@ class SitePatchResource(ProxyOnlyResource):
:ivar in_progress_operation_id: Specifies an operation id if this site has
a pending operation.
:vartype in_progress_operation_id: str
- :param geo_distributions: GeoDistributions for this site
- :type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
:param identity:
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
"""
@@ -9912,7 +10166,6 @@ class SitePatchResource(ProxyOnlyResource):
'https_only': {'key': 'properties.httpsOnly', 'type': 'bool'},
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
- 'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
}
@@ -9954,7 +10207,6 @@ def __init__(self, **kwargs):
self.https_only = kwargs.get('https_only', None)
self.redundancy_mode = kwargs.get('redundancy_mode', None)
self.in_progress_operation_id = None
- self.geo_distributions = kwargs.get('geo_distributions', None)
self.identity = kwargs.get('identity', None)
@@ -10634,6 +10886,15 @@ class StackMajorVersion(Model):
:param application_insights: true if this supports
Application Insights; otherwise, false.
:type application_insights: bool
+ :param is_preview: true if this stack is in Preview,
+ otherwise false.
+ :type is_preview: bool
+ :param is_deprecated: true if this stack has been deprecated,
+ otherwise false.
+ :type is_deprecated: bool
+ :param is_hidden: true if this stack should be hidden for new
+ customers on portal, otherwise false.
+ :type is_hidden: bool
"""
_attribute_map = {
@@ -10642,6 +10903,9 @@ class StackMajorVersion(Model):
'is_default': {'key': 'isDefault', 'type': 'bool'},
'minor_versions': {'key': 'minorVersions', 'type': '[StackMinorVersion]'},
'application_insights': {'key': 'applicationInsights', 'type': 'bool'},
+ 'is_preview': {'key': 'isPreview', 'type': 'bool'},
+ 'is_deprecated': {'key': 'isDeprecated', 'type': 'bool'},
+ 'is_hidden': {'key': 'isHidden', 'type': 'bool'},
}
def __init__(self, **kwargs):
@@ -10651,6 +10915,9 @@ def __init__(self, **kwargs):
self.is_default = kwargs.get('is_default', None)
self.minor_versions = kwargs.get('minor_versions', None)
self.application_insights = kwargs.get('application_insights', None)
+ self.is_preview = kwargs.get('is_preview', None)
+ self.is_deprecated = kwargs.get('is_deprecated', None)
+ self.is_hidden = kwargs.get('is_hidden', None)
class StackMinorVersion(Model):
@@ -10700,7 +10967,7 @@ class StampCapacity(Model):
'Shared', 'Dedicated', 'Dynamic'
:type compute_mode: str or ~azure.mgmt.web.models.ComputeModeOptions
:param worker_size: Size of the machines. Possible values include:
- 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default'
+ 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'NestedSmall', 'Default'
:type worker_size: str or ~azure.mgmt.web.models.WorkerSizeOptions
:param worker_size_id: Size ID of machines:
0 - Small
@@ -11378,42 +11645,6 @@ def __init__(self, **kwargs):
self.scm_uri = kwargs.get('scm_uri', None)
-class ValidateContainerSettingsRequest(Model):
- """Container settings validation request context.
-
- :param base_url: Base URL of the container registry
- :type base_url: str
- :param username: Username for to access the container registry
- :type username: str
- :param password: Password for to access the container registry
- :type password: str
- :param repository: Repository name (image name)
- :type repository: str
- :param tag: Image tag
- :type tag: str
- :param platform: Platform (windows or linux)
- :type platform: str
- """
-
- _attribute_map = {
- 'base_url': {'key': 'baseUrl', 'type': 'str'},
- 'username': {'key': 'username', 'type': 'str'},
- 'password': {'key': 'password', 'type': 'str'},
- 'repository': {'key': 'repository', 'type': 'str'},
- 'tag': {'key': 'tag', 'type': 'str'},
- 'platform': {'key': 'platform', 'type': 'str'},
- }
-
- def __init__(self, **kwargs):
- super(ValidateContainerSettingsRequest, self).__init__(**kwargs)
- self.base_url = kwargs.get('base_url', None)
- self.username = kwargs.get('username', None)
- self.password = kwargs.get('password', None)
- self.repository = kwargs.get('repository', None)
- self.tag = kwargs.get('tag', None)
- self.platform = kwargs.get('platform', None)
-
-
class ValidateRequest(Model):
"""Resource validation request content.
@@ -11445,6 +11676,20 @@ class ValidateRequest(Model):
:param is_xenon: true if App Service plan is running as a
windows container
:type is_xenon: bool
+ :param container_registry_base_url: Base URL of the container registry
+ :type container_registry_base_url: str
+ :param container_registry_username: Username for to access the container
+ registry
+ :type container_registry_username: str
+ :param container_registry_password: Password for to access the container
+ registry
+ :type container_registry_password: str
+ :param container_image_repository: Repository name (image name)
+ :type container_image_repository: str
+ :param container_image_tag: Image tag
+ :type container_image_tag: str
+ :param container_image_platform: Platform (windows or linux)
+ :type container_image_platform: str
"""
_validation = {
@@ -11465,6 +11710,12 @@ class ValidateRequest(Model):
'capacity': {'key': 'properties.capacity', 'type': 'int'},
'hosting_environment': {'key': 'properties.hostingEnvironment', 'type': 'str'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
+ 'container_registry_base_url': {'key': 'properties.containerRegistryBaseUrl', 'type': 'str'},
+ 'container_registry_username': {'key': 'properties.containerRegistryUsername', 'type': 'str'},
+ 'container_registry_password': {'key': 'properties.containerRegistryPassword', 'type': 'str'},
+ 'container_image_repository': {'key': 'properties.containerImageRepository', 'type': 'str'},
+ 'container_image_tag': {'key': 'properties.containerImageTag', 'type': 'str'},
+ 'container_image_platform': {'key': 'properties.containerImagePlatform', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -11479,6 +11730,12 @@ def __init__(self, **kwargs):
self.capacity = kwargs.get('capacity', None)
self.hosting_environment = kwargs.get('hosting_environment', None)
self.is_xenon = kwargs.get('is_xenon', None)
+ self.container_registry_base_url = kwargs.get('container_registry_base_url', None)
+ self.container_registry_username = kwargs.get('container_registry_username', None)
+ self.container_registry_password = kwargs.get('container_registry_password', None)
+ self.container_image_repository = kwargs.get('container_image_repository', None)
+ self.container_image_tag = kwargs.get('container_image_tag', None)
+ self.container_image_platform = kwargs.get('container_image_platform', None)
class ValidateResponse(Model):
@@ -11581,6 +11838,8 @@ class VirtualIPMapping(Model):
:type internal_https_port: int
:param in_use: Is virtual IP mapping in use.
:type in_use: bool
+ :param service_name: name of the service that virtual IP is assigned to
+ :type service_name: str
"""
_attribute_map = {
@@ -11588,6 +11847,7 @@ class VirtualIPMapping(Model):
'internal_http_port': {'key': 'internalHttpPort', 'type': 'int'},
'internal_https_port': {'key': 'internalHttpsPort', 'type': 'int'},
'in_use': {'key': 'inUse', 'type': 'bool'},
+ 'service_name': {'key': 'serviceName', 'type': 'str'},
}
def __init__(self, **kwargs):
@@ -11596,6 +11856,7 @@ def __init__(self, **kwargs):
self.internal_http_port = kwargs.get('internal_http_port', None)
self.internal_https_port = kwargs.get('internal_https_port', None)
self.in_use = kwargs.get('in_use', None)
+ self.service_name = kwargs.get('service_name', None)
class VirtualNetworkProfile(Model):
@@ -12023,6 +12284,59 @@ def __init__(self, **kwargs):
self.settings = kwargs.get('settings', None)
+class WebSiteInstanceStatus(ProxyOnlyResource):
+ """WebSiteInstanceStatus.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param state: Possible values include: 'READY', 'STOPPED', 'UNKNOWN'
+ :type state: str or ~azure.mgmt.web.models.SiteRuntimeState
+ :param status_url: Link to the GetStatusApi in Kudu
+ :type status_url: str
+ :param detector_url: Link to the Diagnose and Solve Portal
+ :type detector_url: str
+ :param console_url: Link to the Diagnose and Solve Portal
+ :type console_url: str
+ :param containers:
+ :type containers: dict[str, ~azure.mgmt.web.models.ContainerInfo]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'state': {'key': 'properties.state', 'type': 'SiteRuntimeState'},
+ 'status_url': {'key': 'properties.statusUrl', 'type': 'str'},
+ 'detector_url': {'key': 'properties.detectorUrl', 'type': 'str'},
+ 'console_url': {'key': 'properties.consoleUrl', 'type': 'str'},
+ 'containers': {'key': 'properties.containers', 'type': '{ContainerInfo}'},
+ }
+
+ def __init__(self, **kwargs):
+ super(WebSiteInstanceStatus, self).__init__(**kwargs)
+ self.state = kwargs.get('state', None)
+ self.status_url = kwargs.get('status_url', None)
+ self.detector_url = kwargs.get('detector_url', None)
+ self.console_url = kwargs.get('console_url', None)
+ self.containers = kwargs.get('containers', None)
+
+
class WorkerPool(Model):
"""Worker pool of an App Service Environment.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models_py3.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models_py3.py
index 8d30f86872c4..7fd6d0e95bf6 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models_py3.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_models_py3.py
@@ -87,9 +87,58 @@ def __init__(self, *, address1: str, city: str, country: str, postal_code: str,
self.state = state
-class AddressResponse(Model):
+class ProxyOnlyResource(Model):
+ """Azure proxy only resource. This resource is not tracked by Azure Resource
+ Manager.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(self, *, kind: str=None, **kwargs) -> None:
+ super(ProxyOnlyResource, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.kind = kind
+ self.type = None
+
+
+class AddressResponse(ProxyOnlyResource):
"""Describes main public IP address and any extra virtual IPs.
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
:param service_ip_address: Main public virtual IP.
:type service_ip_address: str
:param internal_ip_address: Virtual Network internal IP address of the App
@@ -102,15 +151,25 @@ class AddressResponse(Model):
:type vip_mappings: list[~azure.mgmt.web.models.VirtualIPMapping]
"""
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
_attribute_map = {
- 'service_ip_address': {'key': 'serviceIpAddress', 'type': 'str'},
- 'internal_ip_address': {'key': 'internalIpAddress', 'type': 'str'},
- 'outbound_ip_addresses': {'key': 'outboundIpAddresses', 'type': '[str]'},
- 'vip_mappings': {'key': 'vipMappings', 'type': '[VirtualIPMapping]'},
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'service_ip_address': {'key': 'properties.serviceIpAddress', 'type': 'str'},
+ 'internal_ip_address': {'key': 'properties.internalIpAddress', 'type': 'str'},
+ 'outbound_ip_addresses': {'key': 'properties.outboundIpAddresses', 'type': '[str]'},
+ 'vip_mappings': {'key': 'properties.vipMappings', 'type': '[VirtualIPMapping]'},
}
- def __init__(self, *, service_ip_address: str=None, internal_ip_address: str=None, outbound_ip_addresses=None, vip_mappings=None, **kwargs) -> None:
- super(AddressResponse, self).__init__(**kwargs)
+ def __init__(self, *, kind: str=None, service_ip_address: str=None, internal_ip_address: str=None, outbound_ip_addresses=None, vip_mappings=None, **kwargs) -> None:
+ super(AddressResponse, self).__init__(kind=kind, **kwargs)
self.service_ip_address = service_ip_address
self.internal_ip_address = internal_ip_address
self.outbound_ip_addresses = outbound_ip_addresses
@@ -149,44 +208,6 @@ def __init__(self, *, source: str=None, detector_definition=None, metrics=None,
self.detector_meta_data = detector_meta_data
-class ProxyOnlyResource(Model):
- """Azure proxy only resource. This resource is not tracked by Azure Resource
- Manager.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar id: Resource Id.
- :vartype id: str
- :ivar name: Resource Name.
- :vartype name: str
- :param kind: Kind of resource.
- :type kind: str
- :ivar type: Resource type.
- :vartype type: str
- """
-
- _validation = {
- 'id': {'readonly': True},
- 'name': {'readonly': True},
- 'type': {'readonly': True},
- }
-
- _attribute_map = {
- 'id': {'key': 'id', 'type': 'str'},
- 'name': {'key': 'name', 'type': 'str'},
- 'kind': {'key': 'kind', 'type': 'str'},
- 'type': {'key': 'type', 'type': 'str'},
- }
-
- def __init__(self, *, kind: str=None, **kwargs) -> None:
- super(ProxyOnlyResource, self).__init__(**kwargs)
- self.id = None
- self.name = None
- self.kind = kind
- self.type = None
-
-
class AnalysisDefinition(ProxyOnlyResource):
"""Definition of Analysis.
@@ -241,6 +262,74 @@ def __init__(self, *, url: str=None, **kwargs) -> None:
self.url = url
+class ApiKVReference(Model):
+ """Description of site key vault references.
+
+ :param reference:
+ :type reference: str
+ :param status: Possible values include: 'Initialized', 'Resolved',
+ 'InvalidSyntax', 'MSINotEnabled', 'VaultNotFound', 'SecretNotFound',
+ 'SecretVersionNotFound', 'AccessToKeyVaultDenied', 'OtherReasons'
+ :type status: str or ~azure.mgmt.web.models.ResolveStatus
+ :param vault_name:
+ :type vault_name: str
+ :param secret_name:
+ :type secret_name: str
+ :param secret_version:
+ :type secret_version: str
+ :param identity_type: Possible values include: 'None', 'SystemAssigned',
+ 'UserAssigned'
+ :type identity_type: str or
+ ~azure.mgmt.web.models.ManagedServiceIdentityType
+ :param details:
+ :type details: str
+ :param source: Possible values include: 'KeyVault'
+ :type source: str or ~azure.mgmt.web.models.ConfigReferenceSource
+ :param location: Possible values include: 'ApplicationSetting'
+ :type location: str or ~azure.mgmt.web.models.ConfigReferenceLocation
+ """
+
+ _attribute_map = {
+ 'reference': {'key': 'reference', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'ResolveStatus'},
+ 'vault_name': {'key': 'vaultName', 'type': 'str'},
+ 'secret_name': {'key': 'secretName', 'type': 'str'},
+ 'secret_version': {'key': 'secretVersion', 'type': 'str'},
+ 'identity_type': {'key': 'identityType', 'type': 'ManagedServiceIdentityType'},
+ 'details': {'key': 'details', 'type': 'str'},
+ 'source': {'key': 'source', 'type': 'ConfigReferenceSource'},
+ 'location': {'key': 'location', 'type': 'ConfigReferenceLocation'},
+ }
+
+ def __init__(self, *, reference: str=None, status=None, vault_name: str=None, secret_name: str=None, secret_version: str=None, identity_type=None, details: str=None, source=None, location=None, **kwargs) -> None:
+ super(ApiKVReference, self).__init__(**kwargs)
+ self.reference = reference
+ self.status = status
+ self.vault_name = vault_name
+ self.secret_name = secret_name
+ self.secret_version = secret_version
+ self.identity_type = identity_type
+ self.details = details
+ self.source = source
+ self.location = location
+
+
+class ApiManagementConfig(Model):
+ """Azure API management (APIM) configuration linked to the app.
+
+ :param id: APIM-Api Identifier.
+ :type id: str
+ """
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ }
+
+ def __init__(self, *, id: str=None, **kwargs) -> None:
+ super(ApiManagementConfig, self).__init__(**kwargs)
+ self.id = id
+
+
class ApplicationLogsConfig(Model):
"""Application logs configuration.
@@ -300,6 +389,59 @@ def __init__(self, *, name: str=None, display: str=None, dependency: str=None, m
self.frameworks = frameworks
+class ApplicationStackResource(ProxyOnlyResource):
+ """ARM resource for a ApplicationStack.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param application_stack_resource_name: Application stack name.
+ :type application_stack_resource_name: str
+ :param display: Application stack display name.
+ :type display: str
+ :param dependency: Application stack dependency.
+ :type dependency: str
+ :param major_versions: List of major versions available.
+ :type major_versions: list[~azure.mgmt.web.models.StackMajorVersion]
+ :param frameworks: List of frameworks associated with application stack.
+ :type frameworks: list[~azure.mgmt.web.models.ApplicationStack]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'application_stack_resource_name': {'key': 'properties.name', 'type': 'str'},
+ 'display': {'key': 'properties.display', 'type': 'str'},
+ 'dependency': {'key': 'properties.dependency', 'type': 'str'},
+ 'major_versions': {'key': 'properties.majorVersions', 'type': '[StackMajorVersion]'},
+ 'frameworks': {'key': 'properties.frameworks', 'type': '[ApplicationStack]'},
+ }
+
+ def __init__(self, *, kind: str=None, application_stack_resource_name: str=None, display: str=None, dependency: str=None, major_versions=None, frameworks=None, **kwargs) -> None:
+ super(ApplicationStackResource, self).__init__(kind=kind, **kwargs)
+ self.application_stack_resource_name = application_stack_resource_name
+ self.display = display
+ self.dependency = dependency
+ self.major_versions = major_versions
+ self.frameworks = frameworks
+
+
class AppServiceCertificate(Model):
"""Key Vault container for a certificate that is purchased through Azure.
@@ -2446,6 +2588,9 @@ class Certificate(Resource):
formatted as:
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
:type server_farm_id: str
+ :param canonical_name: CNAME of the certificate to be issued via free
+ certificate
+ :type canonical_name: str
"""
_validation = {
@@ -2495,9 +2640,10 @@ class Certificate(Resource):
'key_vault_secret_name': {'key': 'properties.keyVaultSecretName', 'type': 'str'},
'key_vault_secret_status': {'key': 'properties.keyVaultSecretStatus', 'type': 'KeyVaultSecretStatus'},
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
+ 'canonical_name': {'key': 'properties.canonicalName', 'type': 'str'},
}
- def __init__(self, *, location: str, password: str, kind: str=None, tags=None, host_names=None, pfx_blob: bytearray=None, key_vault_id: str=None, key_vault_secret_name: str=None, server_farm_id: str=None, **kwargs) -> None:
+ def __init__(self, *, location: str, password: str, kind: str=None, tags=None, host_names=None, pfx_blob: bytearray=None, key_vault_id: str=None, key_vault_secret_name: str=None, server_farm_id: str=None, canonical_name: str=None, **kwargs) -> None:
super(Certificate, self).__init__(kind=kind, location=location, tags=tags, **kwargs)
self.friendly_name = None
self.subject_name = None
@@ -2518,6 +2664,7 @@ def __init__(self, *, location: str, password: str, kind: str=None, tags=None, h
self.key_vault_secret_name = key_vault_secret_name
self.key_vault_secret_status = None
self.server_farm_id = server_farm_id
+ self.canonical_name = canonical_name
class CertificateDetails(Model):
@@ -2737,6 +2884,9 @@ class CertificatePatchResource(ProxyOnlyResource):
formatted as:
"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
:type server_farm_id: str
+ :param canonical_name: CNAME of the certificate to be issued via free
+ certificate
+ :type canonical_name: str
"""
_validation = {
@@ -2783,9 +2933,10 @@ class CertificatePatchResource(ProxyOnlyResource):
'key_vault_secret_name': {'key': 'properties.keyVaultSecretName', 'type': 'str'},
'key_vault_secret_status': {'key': 'properties.keyVaultSecretStatus', 'type': 'KeyVaultSecretStatus'},
'server_farm_id': {'key': 'properties.serverFarmId', 'type': 'str'},
+ 'canonical_name': {'key': 'properties.canonicalName', 'type': 'str'},
}
- def __init__(self, *, password: str, kind: str=None, host_names=None, pfx_blob: bytearray=None, key_vault_id: str=None, key_vault_secret_name: str=None, server_farm_id: str=None, **kwargs) -> None:
+ def __init__(self, *, password: str, kind: str=None, host_names=None, pfx_blob: bytearray=None, key_vault_id: str=None, key_vault_secret_name: str=None, server_farm_id: str=None, canonical_name: str=None, **kwargs) -> None:
super(CertificatePatchResource, self).__init__(kind=kind, **kwargs)
self.friendly_name = None
self.subject_name = None
@@ -2806,6 +2957,7 @@ def __init__(self, *, password: str, kind: str=None, host_names=None, pfx_blob:
self.key_vault_secret_name = key_vault_secret_name
self.key_vault_secret_status = None
self.server_farm_id = server_farm_id
+ self.canonical_name = canonical_name
class CloningInfo(Model):
@@ -3050,6 +3202,198 @@ def __init__(self, *, email: str, name_first: str, name_last: str, phone: str, a
self.phone = phone
+class ContainerCpuStatistics(Model):
+ """ContainerCpuStatistics.
+
+ :param cpu_usage:
+ :type cpu_usage: ~azure.mgmt.web.models.ContainerCpuUsage
+ :param system_cpu_usage:
+ :type system_cpu_usage: long
+ :param online_cpu_count:
+ :type online_cpu_count: int
+ :param throttling_data:
+ :type throttling_data: ~azure.mgmt.web.models.ContainerThrottlingData
+ """
+
+ _attribute_map = {
+ 'cpu_usage': {'key': 'cpuUsage', 'type': 'ContainerCpuUsage'},
+ 'system_cpu_usage': {'key': 'systemCpuUsage', 'type': 'long'},
+ 'online_cpu_count': {'key': 'onlineCpuCount', 'type': 'int'},
+ 'throttling_data': {'key': 'throttlingData', 'type': 'ContainerThrottlingData'},
+ }
+
+ def __init__(self, *, cpu_usage=None, system_cpu_usage: int=None, online_cpu_count: int=None, throttling_data=None, **kwargs) -> None:
+ super(ContainerCpuStatistics, self).__init__(**kwargs)
+ self.cpu_usage = cpu_usage
+ self.system_cpu_usage = system_cpu_usage
+ self.online_cpu_count = online_cpu_count
+ self.throttling_data = throttling_data
+
+
+class ContainerCpuUsage(Model):
+ """ContainerCpuUsage.
+
+ :param total_usage:
+ :type total_usage: long
+ :param per_cpu_usage:
+ :type per_cpu_usage: list[long]
+ :param kernel_mode_usage:
+ :type kernel_mode_usage: long
+ :param user_mode_usage:
+ :type user_mode_usage: long
+ """
+
+ _attribute_map = {
+ 'total_usage': {'key': 'totalUsage', 'type': 'long'},
+ 'per_cpu_usage': {'key': 'perCpuUsage', 'type': '[long]'},
+ 'kernel_mode_usage': {'key': 'kernelModeUsage', 'type': 'long'},
+ 'user_mode_usage': {'key': 'userModeUsage', 'type': 'long'},
+ }
+
+ def __init__(self, *, total_usage: int=None, per_cpu_usage=None, kernel_mode_usage: int=None, user_mode_usage: int=None, **kwargs) -> None:
+ super(ContainerCpuUsage, self).__init__(**kwargs)
+ self.total_usage = total_usage
+ self.per_cpu_usage = per_cpu_usage
+ self.kernel_mode_usage = kernel_mode_usage
+ self.user_mode_usage = user_mode_usage
+
+
+class ContainerInfo(Model):
+ """ContainerInfo.
+
+ :param current_time_stamp:
+ :type current_time_stamp: datetime
+ :param previous_time_stamp:
+ :type previous_time_stamp: datetime
+ :param current_cpu_stats:
+ :type current_cpu_stats: ~azure.mgmt.web.models.ContainerCpuStatistics
+ :param previous_cpu_stats:
+ :type previous_cpu_stats: ~azure.mgmt.web.models.ContainerCpuStatistics
+ :param memory_stats:
+ :type memory_stats: ~azure.mgmt.web.models.ContainerMemoryStatistics
+ :param name:
+ :type name: str
+ :param id:
+ :type id: str
+ :param eth0:
+ :type eth0: ~azure.mgmt.web.models.ContainerNetworkInterfaceStatistics
+ """
+
+ _attribute_map = {
+ 'current_time_stamp': {'key': 'currentTimeStamp', 'type': 'iso-8601'},
+ 'previous_time_stamp': {'key': 'previousTimeStamp', 'type': 'iso-8601'},
+ 'current_cpu_stats': {'key': 'currentCpuStats', 'type': 'ContainerCpuStatistics'},
+ 'previous_cpu_stats': {'key': 'previousCpuStats', 'type': 'ContainerCpuStatistics'},
+ 'memory_stats': {'key': 'memoryStats', 'type': 'ContainerMemoryStatistics'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'id': {'key': 'id', 'type': 'str'},
+ 'eth0': {'key': 'eth0', 'type': 'ContainerNetworkInterfaceStatistics'},
+ }
+
+ def __init__(self, *, current_time_stamp=None, previous_time_stamp=None, current_cpu_stats=None, previous_cpu_stats=None, memory_stats=None, name: str=None, id: str=None, eth0=None, **kwargs) -> None:
+ super(ContainerInfo, self).__init__(**kwargs)
+ self.current_time_stamp = current_time_stamp
+ self.previous_time_stamp = previous_time_stamp
+ self.current_cpu_stats = current_cpu_stats
+ self.previous_cpu_stats = previous_cpu_stats
+ self.memory_stats = memory_stats
+ self.name = name
+ self.id = id
+ self.eth0 = eth0
+
+
+class ContainerMemoryStatistics(Model):
+ """ContainerMemoryStatistics.
+
+ :param usage:
+ :type usage: long
+ :param max_usage:
+ :type max_usage: long
+ :param limit:
+ :type limit: long
+ """
+
+ _attribute_map = {
+ 'usage': {'key': 'usage', 'type': 'long'},
+ 'max_usage': {'key': 'maxUsage', 'type': 'long'},
+ 'limit': {'key': 'limit', 'type': 'long'},
+ }
+
+ def __init__(self, *, usage: int=None, max_usage: int=None, limit: int=None, **kwargs) -> None:
+ super(ContainerMemoryStatistics, self).__init__(**kwargs)
+ self.usage = usage
+ self.max_usage = max_usage
+ self.limit = limit
+
+
+class ContainerNetworkInterfaceStatistics(Model):
+ """ContainerNetworkInterfaceStatistics.
+
+ :param rx_bytes:
+ :type rx_bytes: long
+ :param rx_packets:
+ :type rx_packets: long
+ :param rx_errors:
+ :type rx_errors: long
+ :param rx_dropped:
+ :type rx_dropped: long
+ :param tx_bytes:
+ :type tx_bytes: long
+ :param tx_packets:
+ :type tx_packets: long
+ :param tx_errors:
+ :type tx_errors: long
+ :param tx_dropped:
+ :type tx_dropped: long
+ """
+
+ _attribute_map = {
+ 'rx_bytes': {'key': 'rxBytes', 'type': 'long'},
+ 'rx_packets': {'key': 'rxPackets', 'type': 'long'},
+ 'rx_errors': {'key': 'rxErrors', 'type': 'long'},
+ 'rx_dropped': {'key': 'rxDropped', 'type': 'long'},
+ 'tx_bytes': {'key': 'txBytes', 'type': 'long'},
+ 'tx_packets': {'key': 'txPackets', 'type': 'long'},
+ 'tx_errors': {'key': 'txErrors', 'type': 'long'},
+ 'tx_dropped': {'key': 'txDropped', 'type': 'long'},
+ }
+
+ def __init__(self, *, rx_bytes: int=None, rx_packets: int=None, rx_errors: int=None, rx_dropped: int=None, tx_bytes: int=None, tx_packets: int=None, tx_errors: int=None, tx_dropped: int=None, **kwargs) -> None:
+ super(ContainerNetworkInterfaceStatistics, self).__init__(**kwargs)
+ self.rx_bytes = rx_bytes
+ self.rx_packets = rx_packets
+ self.rx_errors = rx_errors
+ self.rx_dropped = rx_dropped
+ self.tx_bytes = tx_bytes
+ self.tx_packets = tx_packets
+ self.tx_errors = tx_errors
+ self.tx_dropped = tx_dropped
+
+
+class ContainerThrottlingData(Model):
+ """ContainerThrottlingData.
+
+ :param periods:
+ :type periods: int
+ :param throttled_periods:
+ :type throttled_periods: int
+ :param throttled_time:
+ :type throttled_time: int
+ """
+
+ _attribute_map = {
+ 'periods': {'key': 'periods', 'type': 'int'},
+ 'throttled_periods': {'key': 'throttledPeriods', 'type': 'int'},
+ 'throttled_time': {'key': 'throttledTime', 'type': 'int'},
+ }
+
+ def __init__(self, *, periods: int=None, throttled_periods: int=None, throttled_time: int=None, **kwargs) -> None:
+ super(ContainerThrottlingData, self).__init__(**kwargs)
+ self.periods = periods
+ self.throttled_periods = throttled_periods
+ self.throttled_time = throttled_time
+
+
class ContinuousWebJob(ProxyOnlyResource):
"""Continuous Web Job Information.
@@ -3150,6 +3494,39 @@ def __init__(self, *, allowed_origins=None, support_credentials: bool=None, **kw
self.support_credentials = support_credentials
+class CsmCopySlotEntity(Model):
+ """Copy deployment slot parameters.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param target_slot: Required. Destination deployment slot during copy
+ operation.
+ :type target_slot: str
+ :param site_config: Required. The site object which will be merged with
+ the source slot site
+ to produce new destination slot site object.
+ null to just copy source slot content. Otherwise a
+ Site
+ object with properties to override source slot site.
+ :type site_config: ~azure.mgmt.web.models.SiteConfig
+ """
+
+ _validation = {
+ 'target_slot': {'required': True},
+ 'site_config': {'required': True},
+ }
+
+ _attribute_map = {
+ 'target_slot': {'key': 'targetSlot', 'type': 'str'},
+ 'site_config': {'key': 'siteConfig', 'type': 'SiteConfig'},
+ }
+
+ def __init__(self, *, target_slot: str, site_config, **kwargs) -> None:
+ super(CsmCopySlotEntity, self).__init__(**kwargs)
+ self.target_slot = target_slot
+ self.site_config = site_config
+
+
class CsmMoveResourceEnvelope(Model):
"""Object with a list of the resources that need to be moved and the resource
group they should be moved to.
@@ -4493,7 +4870,7 @@ def __init__(self, *, location: str, contact_admin, contact_billing, contact_reg
self.auth_code = auth_code
-class DomainAvailablilityCheckResult(Model):
+class DomainAvailabilityCheckResult(Model):
"""Domain availability check result.
:param name: Name of the domain.
@@ -4515,7 +4892,7 @@ class DomainAvailablilityCheckResult(Model):
}
def __init__(self, *, name: str=None, available: bool=None, domain_type=None, **kwargs) -> None:
- super(DomainAvailablilityCheckResult, self).__init__(**kwargs)
+ super(DomainAvailabilityCheckResult, self).__init__(**kwargs)
self.name = name
self.available = available
self.domain_type = domain_type
@@ -4835,24 +5212,24 @@ class EndpointDetail(Model):
be created from the App Service Environment to this IpAddress at this
Port.
:type latency: float
- :param is_accessable: Whether it is possible to create a TCP connection
+ :param is_accessible: Whether it is possible to create a TCP connection
from the App Service Environment to this IpAddress at this Port.
- :type is_accessable: bool
+ :type is_accessible: bool
"""
_attribute_map = {
'ip_address': {'key': 'ipAddress', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
'latency': {'key': 'latency', 'type': 'float'},
- 'is_accessable': {'key': 'isAccessable', 'type': 'bool'},
+ 'is_accessible': {'key': 'isAccessible', 'type': 'bool'},
}
- def __init__(self, *, ip_address: str=None, port: int=None, latency: float=None, is_accessable: bool=None, **kwargs) -> None:
+ def __init__(self, *, ip_address: str=None, port: int=None, latency: float=None, is_accessible: bool=None, **kwargs) -> None:
super(EndpointDetail, self).__init__(**kwargs)
self.ip_address = ip_address
self.port = port
self.latency = latency
- self.is_accessable = is_accessable
+ self.is_accessible = is_accessible
class ErrorEntity(Model):
@@ -4959,7 +5336,7 @@ def __init__(self, *, retention_in_mb: int=None, retention_in_days: int=None, en
class FunctionEnvelope(ProxyOnlyResource):
- """Web Job Information.
+ """Function information.
Variables are only populated by the server, and will be ignored when
sending a request.
@@ -4980,6 +5357,8 @@ class FunctionEnvelope(ProxyOnlyResource):
:type script_href: str
:param config_href: Config URI.
:type config_href: str
+ :param test_data_href: Test data URI.
+ :type test_data_href: str
:param secrets_file_href: Secrets file URI.
:type secrets_file_href: str
:param href: Function URI.
@@ -4990,6 +5369,13 @@ class FunctionEnvelope(ProxyOnlyResource):
:type files: dict[str, str]
:param test_data: Test data used when testing via the Azure Portal.
:type test_data: str
+ :param invoke_url_template: The invocation URL
+ :type invoke_url_template: str
+ :param language: The function language
+ :type language: str
+ :param is_disabled: Gets or sets a value indicating whether the function
+ is disabled
+ :type is_disabled: bool
"""
_validation = {
@@ -5007,24 +5393,32 @@ class FunctionEnvelope(ProxyOnlyResource):
'script_root_path_href': {'key': 'properties.script_root_path_href', 'type': 'str'},
'script_href': {'key': 'properties.script_href', 'type': 'str'},
'config_href': {'key': 'properties.config_href', 'type': 'str'},
+ 'test_data_href': {'key': 'properties.test_data_href', 'type': 'str'},
'secrets_file_href': {'key': 'properties.secrets_file_href', 'type': 'str'},
'href': {'key': 'properties.href', 'type': 'str'},
'config': {'key': 'properties.config', 'type': 'object'},
'files': {'key': 'properties.files', 'type': '{str}'},
'test_data': {'key': 'properties.test_data', 'type': 'str'},
+ 'invoke_url_template': {'key': 'properties.invoke_url_template', 'type': 'str'},
+ 'language': {'key': 'properties.language', 'type': 'str'},
+ 'is_disabled': {'key': 'properties.isDisabled', 'type': 'bool'},
}
- def __init__(self, *, kind: str=None, function_app_id: str=None, script_root_path_href: str=None, script_href: str=None, config_href: str=None, secrets_file_href: str=None, href: str=None, config=None, files=None, test_data: str=None, **kwargs) -> None:
+ def __init__(self, *, kind: str=None, function_app_id: str=None, script_root_path_href: str=None, script_href: str=None, config_href: str=None, test_data_href: str=None, secrets_file_href: str=None, href: str=None, config=None, files=None, test_data: str=None, invoke_url_template: str=None, language: str=None, is_disabled: bool=None, **kwargs) -> None:
super(FunctionEnvelope, self).__init__(kind=kind, **kwargs)
self.function_app_id = function_app_id
self.script_root_path_href = script_root_path_href
self.script_href = script_href
self.config_href = config_href
+ self.test_data_href = test_data_href
self.secrets_file_href = secrets_file_href
self.href = href
self.config = config
self.files = files
self.test_data = test_data
+ self.invoke_url_template = invoke_url_template
+ self.language = language
+ self.is_disabled = is_disabled
class FunctionSecrets(ProxyOnlyResource):
@@ -5068,26 +5462,6 @@ def __init__(self, *, kind: str=None, key: str=None, trigger_url: str=None, **kw
self.trigger_url = trigger_url
-class GeoDistribution(Model):
- """A global distribution definition.
-
- :param location: Location.
- :type location: str
- :param number_of_workers: NumberOfWorkers.
- :type number_of_workers: int
- """
-
- _attribute_map = {
- 'location': {'key': 'location', 'type': 'str'},
- 'number_of_workers': {'key': 'numberOfWorkers', 'type': 'int'},
- }
-
- def __init__(self, *, location: str=None, number_of_workers: int=None, **kwargs) -> None:
- super(GeoDistribution, self).__init__(**kwargs)
- self.location = location
- self.number_of_workers = number_of_workers
-
-
class GeoRegion(ProxyOnlyResource):
"""Geographical region.
@@ -5106,6 +5480,8 @@ class GeoRegion(ProxyOnlyResource):
:vartype description: str
:ivar display_name: Display name for region.
:vartype display_name: str
+ :ivar org_domain: Display name for region.
+ :vartype org_domain: str
"""
_validation = {
@@ -5114,6 +5490,7 @@ class GeoRegion(ProxyOnlyResource):
'type': {'readonly': True},
'description': {'readonly': True},
'display_name': {'readonly': True},
+ 'org_domain': {'readonly': True},
}
_attribute_map = {
@@ -5123,12 +5500,14 @@ class GeoRegion(ProxyOnlyResource):
'type': {'key': 'type', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
+ 'org_domain': {'key': 'properties.orgDomain', 'type': 'str'},
}
def __init__(self, *, kind: str=None, **kwargs) -> None:
super(GeoRegion, self).__init__(kind=kind, **kwargs)
self.description = None
self.display_name = None
+ self.org_domain = None
class GlobalCsmSkuDescription(Model):
@@ -5226,19 +5605,19 @@ class HostingEnvironmentDiagnostics(Model):
:param name: Name/identifier of the diagnostics.
:type name: str
- :param diagnosics_output: Diagnostics output.
- :type diagnosics_output: str
+ :param diagnostics_output: Diagnostics output.
+ :type diagnostics_output: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
- 'diagnosics_output': {'key': 'diagnosicsOutput', 'type': 'str'},
+ 'diagnostics_output': {'key': 'diagnosticsOutput', 'type': 'str'},
}
- def __init__(self, *, name: str=None, diagnosics_output: str=None, **kwargs) -> None:
+ def __init__(self, *, name: str=None, diagnostics_output: str=None, **kwargs) -> None:
super(HostingEnvironmentDiagnostics, self).__init__(**kwargs)
self.name = name
- self.diagnosics_output = diagnosics_output
+ self.diagnostics_output = diagnostics_output
class HostingEnvironmentProfile(Model):
@@ -5624,8 +6003,8 @@ class Identifier(ProxyOnlyResource):
:type kind: str
:ivar type: Resource type.
:vartype type: str
- :param identifier_id: String representation of the identity.
- :type identifier_id: str
+ :param value: String representation of the identity.
+ :type value: str
"""
_validation = {
@@ -5639,12 +6018,12 @@ class Identifier(ProxyOnlyResource):
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
- 'identifier_id': {'key': 'properties.id', 'type': 'str'},
+ 'value': {'key': 'properties.id', 'type': 'str'},
}
- def __init__(self, *, kind: str=None, identifier_id: str=None, **kwargs) -> None:
+ def __init__(self, *, kind: str=None, value: str=None, **kwargs) -> None:
super(Identifier, self).__init__(kind=kind, **kwargs)
- self.identifier_id = identifier_id
+ self.value = value
class InboundEnvironmentEndpoint(Model):
@@ -5707,30 +6086,141 @@ class IpSecurityRestriction(Model):
"""
_attribute_map = {
- 'ip_address': {'key': 'ipAddress', 'type': 'str'},
- 'subnet_mask': {'key': 'subnetMask', 'type': 'str'},
- 'vnet_subnet_resource_id': {'key': 'vnetSubnetResourceId', 'type': 'str'},
- 'vnet_traffic_tag': {'key': 'vnetTrafficTag', 'type': 'int'},
- 'subnet_traffic_tag': {'key': 'subnetTrafficTag', 'type': 'int'},
- 'action': {'key': 'action', 'type': 'str'},
- 'tag': {'key': 'tag', 'type': 'IpFilterTag'},
- 'priority': {'key': 'priority', 'type': 'int'},
+ 'ip_address': {'key': 'ipAddress', 'type': 'str'},
+ 'subnet_mask': {'key': 'subnetMask', 'type': 'str'},
+ 'vnet_subnet_resource_id': {'key': 'vnetSubnetResourceId', 'type': 'str'},
+ 'vnet_traffic_tag': {'key': 'vnetTrafficTag', 'type': 'int'},
+ 'subnet_traffic_tag': {'key': 'subnetTrafficTag', 'type': 'int'},
+ 'action': {'key': 'action', 'type': 'str'},
+ 'tag': {'key': 'tag', 'type': 'IpFilterTag'},
+ 'priority': {'key': 'priority', 'type': 'int'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'description': {'key': 'description', 'type': 'str'},
+ }
+
+ def __init__(self, *, ip_address: str=None, subnet_mask: str=None, vnet_subnet_resource_id: str=None, vnet_traffic_tag: int=None, subnet_traffic_tag: int=None, action: str=None, tag=None, priority: int=None, name: str=None, description: str=None, **kwargs) -> None:
+ super(IpSecurityRestriction, self).__init__(**kwargs)
+ self.ip_address = ip_address
+ self.subnet_mask = subnet_mask
+ self.vnet_subnet_resource_id = vnet_subnet_resource_id
+ self.vnet_traffic_tag = vnet_traffic_tag
+ self.subnet_traffic_tag = subnet_traffic_tag
+ self.action = action
+ self.tag = tag
+ self.priority = priority
+ self.name = name
+ self.description = description
+
+
+class KeyVaultReferenceCollection(ProxyOnlyResource):
+ """Web app key vault reference and status ARM resource.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param key_to_reference_statuses:
+ :type key_to_reference_statuses: dict[str,
+ ~azure.mgmt.web.models.ApiKVReference]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'key_to_reference_statuses': {'key': 'properties.keyToReferenceStatuses', 'type': '{ApiKVReference}'},
+ }
+
+ def __init__(self, *, kind: str=None, key_to_reference_statuses=None, **kwargs) -> None:
+ super(KeyVaultReferenceCollection, self).__init__(kind=kind, **kwargs)
+ self.key_to_reference_statuses = key_to_reference_statuses
+
+
+class KeyVaultReferenceResource(ProxyOnlyResource):
+ """Web app key vault reference and status ARM resource.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param reference:
+ :type reference: str
+ :param status: Possible values include: 'Initialized', 'Resolved',
+ 'InvalidSyntax', 'MSINotEnabled', 'VaultNotFound', 'SecretNotFound',
+ 'SecretVersionNotFound', 'AccessToKeyVaultDenied', 'OtherReasons'
+ :type status: str or ~azure.mgmt.web.models.ResolveStatus
+ :param vault_name:
+ :type vault_name: str
+ :param secret_name:
+ :type secret_name: str
+ :param secret_version:
+ :type secret_version: str
+ :param identity_type: Possible values include: 'None', 'SystemAssigned',
+ 'UserAssigned'
+ :type identity_type: str or
+ ~azure.mgmt.web.models.ManagedServiceIdentityType
+ :param details:
+ :type details: str
+ :param source: Possible values include: 'KeyVault'
+ :type source: str or ~azure.mgmt.web.models.ConfigReferenceSource
+ :param location: Possible values include: 'ApplicationSetting'
+ :type location: str or ~azure.mgmt.web.models.ConfigReferenceLocation
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
- 'description': {'key': 'description', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'reference': {'key': 'properties.reference', 'type': 'str'},
+ 'status': {'key': 'properties.status', 'type': 'ResolveStatus'},
+ 'vault_name': {'key': 'properties.vaultName', 'type': 'str'},
+ 'secret_name': {'key': 'properties.secretName', 'type': 'str'},
+ 'secret_version': {'key': 'properties.secretVersion', 'type': 'str'},
+ 'identity_type': {'key': 'properties.identityType', 'type': 'ManagedServiceIdentityType'},
+ 'details': {'key': 'properties.details', 'type': 'str'},
+ 'source': {'key': 'properties.source', 'type': 'ConfigReferenceSource'},
+ 'location': {'key': 'properties.location', 'type': 'ConfigReferenceLocation'},
}
- def __init__(self, *, ip_address: str=None, subnet_mask: str=None, vnet_subnet_resource_id: str=None, vnet_traffic_tag: int=None, subnet_traffic_tag: int=None, action: str=None, tag=None, priority: int=None, name: str=None, description: str=None, **kwargs) -> None:
- super(IpSecurityRestriction, self).__init__(**kwargs)
- self.ip_address = ip_address
- self.subnet_mask = subnet_mask
- self.vnet_subnet_resource_id = vnet_subnet_resource_id
- self.vnet_traffic_tag = vnet_traffic_tag
- self.subnet_traffic_tag = subnet_traffic_tag
- self.action = action
- self.tag = tag
- self.priority = priority
- self.name = name
- self.description = description
+ def __init__(self, *, kind: str=None, reference: str=None, status=None, vault_name: str=None, secret_name: str=None, secret_version: str=None, identity_type=None, details: str=None, source=None, location=None, **kwargs) -> None:
+ super(KeyVaultReferenceResource, self).__init__(kind=kind, **kwargs)
+ self.reference = reference
+ self.status = status
+ self.vault_name = vault_name
+ self.secret_name = secret_name
+ self.secret_version = secret_version
+ self.identity_type = identity_type
+ self.details = details
+ self.source = source
+ self.location = location
class LocalizableString(Model):
@@ -5784,7 +6274,7 @@ class ManagedServiceIdentity(Model):
sending a request.
:param type: Type of managed service identity. Possible values include:
- 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
+ 'None', 'SystemAssigned', 'UserAssigned'
:type type: str or ~azure.mgmt.web.models.ManagedServiceIdentityType
:ivar tenant_id: Tenant of managed service identity.
:vartype tenant_id: str
@@ -5804,7 +6294,7 @@ class ManagedServiceIdentity(Model):
}
_attribute_map = {
- 'type': {'key': 'type', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'ManagedServiceIdentityType'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'},
@@ -5846,26 +6336,6 @@ def __init__(self, **kwargs) -> None:
self.client_id = None
-class MetricAvailabilily(Model):
- """Metric availability and retention.
-
- :param time_grain: Time grain.
- :type time_grain: str
- :param retention: Retention period for the current time grain.
- :type retention: str
- """
-
- _attribute_map = {
- 'time_grain': {'key': 'timeGrain', 'type': 'str'},
- 'retention': {'key': 'retention', 'type': 'str'},
- }
-
- def __init__(self, *, time_grain: str=None, retention: str=None, **kwargs) -> None:
- super(MetricAvailabilily, self).__init__(**kwargs)
- self.time_grain = time_grain
- self.retention = retention
-
-
class MetricAvailability(Model):
"""Retention policy of a resource metric.
@@ -5886,61 +6356,6 @@ def __init__(self, *, time_grain: str=None, blob_duration: str=None, **kwargs) -
self.blob_duration = blob_duration
-class MetricDefinition(ProxyOnlyResource):
- """Metadata for a metric.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar id: Resource Id.
- :vartype id: str
- :ivar name: Resource Name.
- :vartype name: str
- :param kind: Kind of resource.
- :type kind: str
- :ivar type: Resource type.
- :vartype type: str
- :ivar unit: Unit of the metric.
- :vartype unit: str
- :ivar primary_aggregation_type: Primary aggregation type.
- :vartype primary_aggregation_type: str
- :ivar metric_availabilities: List of time grains supported for the metric
- together with retention period.
- :vartype metric_availabilities:
- list[~azure.mgmt.web.models.MetricAvailabilily]
- :ivar display_name: Friendly name shown in the UI.
- :vartype display_name: str
- """
-
- _validation = {
- 'id': {'readonly': True},
- 'name': {'readonly': True},
- 'type': {'readonly': True},
- 'unit': {'readonly': True},
- 'primary_aggregation_type': {'readonly': True},
- 'metric_availabilities': {'readonly': True},
- 'display_name': {'readonly': True},
- }
-
- _attribute_map = {
- 'id': {'key': 'id', 'type': 'str'},
- 'name': {'key': 'name', 'type': 'str'},
- 'kind': {'key': 'kind', 'type': 'str'},
- 'type': {'key': 'type', 'type': 'str'},
- 'unit': {'key': 'properties.unit', 'type': 'str'},
- 'primary_aggregation_type': {'key': 'properties.primaryAggregationType', 'type': 'str'},
- 'metric_availabilities': {'key': 'properties.metricAvailabilities', 'type': '[MetricAvailabilily]'},
- 'display_name': {'key': 'properties.displayName', 'type': 'str'},
- }
-
- def __init__(self, *, kind: str=None, **kwargs) -> None:
- super(MetricDefinition, self).__init__(kind=kind, **kwargs)
- self.unit = None
- self.primary_aggregation_type = None
- self.metric_availabilities = None
- self.display_name = None
-
-
class MetricSpecification(Model):
"""Definition of a single resource metric.
@@ -5974,6 +6389,8 @@ class MetricSpecification(Model):
:type category: str
:param availabilities:
:type availabilities: list[~azure.mgmt.web.models.MetricAvailability]
+ :param supported_time_grain_types:
+ :type supported_time_grain_types: list[str]
"""
_attribute_map = {
@@ -5992,9 +6409,10 @@ class MetricSpecification(Model):
'dimensions': {'key': 'dimensions', 'type': '[Dimension]'},
'category': {'key': 'category', 'type': 'str'},
'availabilities': {'key': 'availabilities', 'type': '[MetricAvailability]'},
+ 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'},
}
- def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, supports_instance_level_aggregation: bool=None, enable_regional_mdm_account: bool=None, source_mdm_account: str=None, source_mdm_namespace: str=None, metric_filter_pattern: str=None, fill_gap_with_zero: bool=None, is_internal: bool=None, dimensions=None, category: str=None, availabilities=None, **kwargs) -> None:
+ def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, supports_instance_level_aggregation: bool=None, enable_regional_mdm_account: bool=None, source_mdm_account: str=None, source_mdm_namespace: str=None, metric_filter_pattern: str=None, fill_gap_with_zero: bool=None, is_internal: bool=None, dimensions=None, category: str=None, availabilities=None, supported_time_grain_types=None, **kwargs) -> None:
super(MetricSpecification, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
@@ -6011,6 +6429,7 @@ def __init__(self, *, name: str=None, display_name: str=None, display_descriptio
self.dimensions = dimensions
self.category = category
self.availabilities = availabilities
+ self.supported_time_grain_types = supported_time_grain_types
class MigrateMySqlRequest(ProxyOnlyResource):
@@ -7184,8 +7603,6 @@ class ProcessThreadInfo(ProxyOnlyResource):
:type total_processor_time: str
:param user_processor_time: User processor time.
:type user_processor_time: str
- :param priviledged_processor_time: Privileged processor time.
- :type priviledged_processor_time: str
:param state: Thread state.
:type state: str
:param wait_reason: Wait reason.
@@ -7214,12 +7631,11 @@ class ProcessThreadInfo(ProxyOnlyResource):
'start_time': {'key': 'properties.start_time', 'type': 'iso-8601'},
'total_processor_time': {'key': 'properties.total_processor_time', 'type': 'str'},
'user_processor_time': {'key': 'properties.user_processor_time', 'type': 'str'},
- 'priviledged_processor_time': {'key': 'properties.priviledged_processor_time', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'wait_reason': {'key': 'properties.wait_reason', 'type': 'str'},
}
- def __init__(self, *, kind: str=None, href: str=None, process: str=None, start_address: str=None, current_priority: int=None, priority_level: str=None, base_priority: int=None, start_time=None, total_processor_time: str=None, user_processor_time: str=None, priviledged_processor_time: str=None, state: str=None, wait_reason: str=None, **kwargs) -> None:
+ def __init__(self, *, kind: str=None, href: str=None, process: str=None, start_address: str=None, current_priority: int=None, priority_level: str=None, base_priority: int=None, start_time=None, total_processor_time: str=None, user_processor_time: str=None, state: str=None, wait_reason: str=None, **kwargs) -> None:
super(ProcessThreadInfo, self).__init__(kind=kind, **kwargs)
self.identifier = None
self.href = href
@@ -7231,7 +7647,6 @@ def __init__(self, *, kind: str=None, href: str=None, process: str=None, start_a
self.start_time = start_time
self.total_processor_time = total_processor_time
self.user_processor_time = user_processor_time
- self.priviledged_processor_time = priviledged_processor_time
self.state = state
self.wait_reason = wait_reason
@@ -7357,11 +7772,12 @@ class RampUpRule(Model):
:type reroute_percentage: float
:param change_step: In auto ramp up scenario this is the step to
add/remove from ReroutePercentage until it reaches
- MinReroutePercentage or MaxReroutePercentage.
- Site metrics are checked every N minutes specified in
- ChangeIntervalInMinutes.
- Custom decision algorithm can be provided in TiPCallback site extension
- which URL can be specified in ChangeDecisionCallbackUrl.
+ \\nMinReroutePercentage or
+ MaxReroutePercentage. Site metrics are checked every N
+ minutes specified in ChangeIntervalInMinutes.\\nCustom
+ decision algorithm
+ can be provided in TiPCallback site extension which URL can be specified
+ in ChangeDecisionCallbackUrl.
:type change_step: float
:param change_interval_in_minutes: Specifies interval in minutes to
reevaluate ReroutePercentage.
@@ -7892,69 +8308,6 @@ def __init__(self, *, kind: str=None, category: str=None, signal_availability: b
self.signal_availability = signal_availability
-class ResourceMetric(Model):
- """Object representing a metric for any resource .
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar name: Name of metric.
- :vartype name: ~azure.mgmt.web.models.ResourceMetricName
- :ivar unit: Metric unit.
- :vartype unit: str
- :ivar time_grain: Metric granularity. E.g PT1H, PT5M, P1D
- :vartype time_grain: str
- :ivar start_time: Metric start time.
- :vartype start_time: datetime
- :ivar end_time: Metric end time.
- :vartype end_time: datetime
- :ivar resource_id: Metric resource Id.
- :vartype resource_id: str
- :ivar id: Resource Id.
- :vartype id: str
- :ivar metric_values: Metric values.
- :vartype metric_values: list[~azure.mgmt.web.models.ResourceMetricValue]
- :ivar properties: Resource metric properties collection.
- :vartype properties: list[~azure.mgmt.web.models.ResourceMetricProperty]
- """
-
- _validation = {
- 'name': {'readonly': True},
- 'unit': {'readonly': True},
- 'time_grain': {'readonly': True},
- 'start_time': {'readonly': True},
- 'end_time': {'readonly': True},
- 'resource_id': {'readonly': True},
- 'id': {'readonly': True},
- 'metric_values': {'readonly': True},
- 'properties': {'readonly': True},
- }
-
- _attribute_map = {
- 'name': {'key': 'name', 'type': 'ResourceMetricName'},
- 'unit': {'key': 'unit', 'type': 'str'},
- 'time_grain': {'key': 'timeGrain', 'type': 'str'},
- 'start_time': {'key': 'startTime', 'type': 'iso-8601'},
- 'end_time': {'key': 'endTime', 'type': 'iso-8601'},
- 'resource_id': {'key': 'resourceId', 'type': 'str'},
- 'id': {'key': 'id', 'type': 'str'},
- 'metric_values': {'key': 'metricValues', 'type': '[ResourceMetricValue]'},
- 'properties': {'key': 'properties', 'type': '[ResourceMetricProperty]'},
- }
-
- def __init__(self, **kwargs) -> None:
- super(ResourceMetric, self).__init__(**kwargs)
- self.name = None
- self.unit = None
- self.time_grain = None
- self.start_time = None
- self.end_time = None
- self.resource_id = None
- self.id = None
- self.metric_values = None
- self.properties = None
-
-
class ResourceMetricAvailability(Model):
"""Metrics availability and retention.
@@ -8043,107 +8396,6 @@ def __init__(self, *, kind: str=None, **kwargs) -> None:
self.properties = None
-class ResourceMetricName(Model):
- """Name of a metric for any resource .
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar value: metric name value.
- :vartype value: str
- :ivar localized_value: Localized metric name value.
- :vartype localized_value: str
- """
-
- _validation = {
- 'value': {'readonly': True},
- 'localized_value': {'readonly': True},
- }
-
- _attribute_map = {
- 'value': {'key': 'value', 'type': 'str'},
- 'localized_value': {'key': 'localizedValue', 'type': 'str'},
- }
-
- def __init__(self, **kwargs) -> None:
- super(ResourceMetricName, self).__init__(**kwargs)
- self.value = None
- self.localized_value = None
-
-
-class ResourceMetricProperty(Model):
- """Resource metric property.
-
- :param key: Key for resource metric property.
- :type key: str
- :param value: Value of pair.
- :type value: str
- """
-
- _attribute_map = {
- 'key': {'key': 'key', 'type': 'str'},
- 'value': {'key': 'value', 'type': 'str'},
- }
-
- def __init__(self, *, key: str=None, value: str=None, **kwargs) -> None:
- super(ResourceMetricProperty, self).__init__(**kwargs)
- self.key = key
- self.value = value
-
-
-class ResourceMetricValue(Model):
- """Value of resource metric.
-
- Variables are only populated by the server, and will be ignored when
- sending a request.
-
- :ivar timestamp: Value timestamp.
- :vartype timestamp: str
- :ivar average: Value average.
- :vartype average: float
- :ivar minimum: Value minimum.
- :vartype minimum: float
- :ivar maximum: Value maximum.
- :vartype maximum: float
- :ivar total: Value total.
- :vartype total: float
- :ivar count: Value count.
- :vartype count: float
- :ivar properties: Resource metric properties collection.
- :vartype properties: list[~azure.mgmt.web.models.ResourceMetricProperty]
- """
-
- _validation = {
- 'timestamp': {'readonly': True},
- 'average': {'readonly': True},
- 'minimum': {'readonly': True},
- 'maximum': {'readonly': True},
- 'total': {'readonly': True},
- 'count': {'readonly': True},
- 'properties': {'readonly': True},
- }
-
- _attribute_map = {
- 'timestamp': {'key': 'timestamp', 'type': 'str'},
- 'average': {'key': 'average', 'type': 'float'},
- 'minimum': {'key': 'minimum', 'type': 'float'},
- 'maximum': {'key': 'maximum', 'type': 'float'},
- 'total': {'key': 'total', 'type': 'float'},
- 'count': {'key': 'count', 'type': 'float'},
- 'properties': {'key': 'properties', 'type': '[ResourceMetricProperty]'},
- }
-
- def __init__(self, **kwargs) -> None:
- super(ResourceMetricValue, self).__init__(**kwargs)
- self.timestamp = None
- self.average = None
- self.minimum = None
- self.maximum = None
- self.total = None
- self.count = None
- self.properties = None
-
-
class ResourceNameAvailability(Model):
"""Information regarding availability of a resource name.
@@ -8441,7 +8693,7 @@ class Site(Resource):
:vartype outbound_ip_addresses: str
:ivar possible_outbound_ip_addresses: List of IP addresses that the app
uses for outbound connections (e.g. database access). Includes VIPs from
- all tenants. Read-only.
+ all tenants except dataComponent. Read-only.
:vartype possible_outbound_ip_addresses: str
:param container_size: Size of the function container.
:type container_size: int
@@ -8477,8 +8729,6 @@ class Site(Resource):
:ivar in_progress_operation_id: Specifies an operation id if this site has
a pending operation.
:vartype in_progress_operation_id: str
- :param geo_distributions: GeoDistributions for this site
- :type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
:param identity:
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
"""
@@ -8551,11 +8801,10 @@ class Site(Resource):
'https_only': {'key': 'properties.httpsOnly', 'type': 'bool'},
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
- 'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
}
- def __init__(self, *, location: str, kind: str=None, tags=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, geo_distributions=None, identity=None, **kwargs) -> None:
+ def __init__(self, *, location: str, kind: str=None, tags=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, identity=None, **kwargs) -> None:
super(Site, self).__init__(kind=kind, location=location, tags=tags, **kwargs)
self.state = None
self.host_names = None
@@ -8593,7 +8842,6 @@ def __init__(self, *, location: str, kind: str=None, tags=None, enabled: bool=No
self.https_only = https_only
self.redundancy_mode = redundancy_mode
self.in_progress_operation_id = None
- self.geo_distributions = geo_distributions
self.identity = identity
@@ -8928,9 +9176,6 @@ class SiteConfig(Model):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
- :param azure_storage_accounts: User-provided Azure storage accounts.
- :type azure_storage_accounts: dict[str,
- ~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
@@ -8941,7 +9186,7 @@ class SiteConfig(Model):
:type document_root: str
:param scm_type: SCM type. Possible values include: 'None', 'Dropbox',
'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit',
- 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO'
+ 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'
:type scm_type: str or ~azure.mgmt.web.models.ScmType
:param use32_bit_worker_process: true to use 32-bit worker
process; otherwise, false.
@@ -8991,6 +9236,9 @@ class SiteConfig(Model):
:param api_definition: Information about the formal API definition for the
app.
:type api_definition: ~azure.mgmt.web.models.ApiDefinitionInfo
+ :param api_management_config: Azure API management settings linked to the
+ app.
+ :type api_management_config: ~azure.mgmt.web.models.ApiManagementConfig
:param auto_swap_slot_name: Auto-swap slot name.
:type auto_swap_slot_name: str
:param local_my_sql_enabled: true to enable local MySQL;
@@ -9019,14 +9267,16 @@ class SiteConfig(Model):
:param ftps_state: State of FTP / FTPS service. Possible values include:
'AllAllowed', 'FtpsOnly', 'Disabled'
:type ftps_state: str or ~azure.mgmt.web.models.FtpsState
- :param reserved_instance_count: Number of reserved instances.
- This setting only applies to the Consumption Plan
- :type reserved_instance_count: int
+ :param pre_warmed_instance_count: Number of preWarmed instances.
+ This setting only applies to the Consumption and Elastic Plans
+ :type pre_warmed_instance_count: int
+ :param health_check_path: Health check path
+ :type health_check_path: str
"""
_validation = {
'machine_key': {'readonly': True},
- 'reserved_instance_count': {'maximum': 10, 'minimum': 0},
+ 'pre_warmed_instance_count': {'maximum': 10, 'minimum': 0},
}
_attribute_map = {
@@ -9047,7 +9297,6 @@ class SiteConfig(Model):
'detailed_error_logging_enabled': {'key': 'detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'publishingUsername', 'type': 'str'},
'app_settings': {'key': 'appSettings', 'type': '[NameValuePair]'},
- 'azure_storage_accounts': {'key': 'azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'handlerMappings', 'type': '[HandlerMapping]'},
@@ -9072,6 +9321,7 @@ class SiteConfig(Model):
'cors': {'key': 'cors', 'type': 'CorsSettings'},
'push': {'key': 'push', 'type': 'PushSettings'},
'api_definition': {'key': 'apiDefinition', 'type': 'ApiDefinitionInfo'},
+ 'api_management_config': {'key': 'apiManagementConfig', 'type': 'ApiManagementConfig'},
'auto_swap_slot_name': {'key': 'autoSwapSlotName', 'type': 'str'},
'local_my_sql_enabled': {'key': 'localMySqlEnabled', 'type': 'bool'},
'managed_service_identity_id': {'key': 'managedServiceIdentityId', 'type': 'int'},
@@ -9082,10 +9332,11 @@ class SiteConfig(Model):
'http20_enabled': {'key': 'http20Enabled', 'type': 'bool'},
'min_tls_version': {'key': 'minTlsVersion', 'type': 'str'},
'ftps_state': {'key': 'ftpsState', 'type': 'str'},
- 'reserved_instance_count': {'key': 'reservedInstanceCount', 'type': 'int'},
+ 'pre_warmed_instance_count': {'key': 'preWarmedInstanceCount', 'type': 'int'},
+ 'health_check_path': {'key': 'healthCheckPath', 'type': 'str'},
}
- def __init__(self, *, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, azure_storage_accounts=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, scm_ip_security_restrictions=None, scm_ip_security_restrictions_use_main: bool=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, reserved_instance_count: int=None, **kwargs) -> None:
+ def __init__(self, *, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, api_management_config=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, scm_ip_security_restrictions=None, scm_ip_security_restrictions_use_main: bool=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, pre_warmed_instance_count: int=None, health_check_path: str=None, **kwargs) -> None:
super(SiteConfig, self).__init__(**kwargs)
self.number_of_workers = number_of_workers
self.default_documents = default_documents
@@ -9104,7 +9355,6 @@ def __init__(self, *, number_of_workers: int=None, default_documents=None, net_f
self.detailed_error_logging_enabled = detailed_error_logging_enabled
self.publishing_username = publishing_username
self.app_settings = app_settings
- self.azure_storage_accounts = azure_storage_accounts
self.connection_strings = connection_strings
self.machine_key = None
self.handler_mappings = handler_mappings
@@ -9129,6 +9379,7 @@ def __init__(self, *, number_of_workers: int=None, default_documents=None, net_f
self.cors = cors
self.push = push
self.api_definition = api_definition
+ self.api_management_config = api_management_config
self.auto_swap_slot_name = auto_swap_slot_name
self.local_my_sql_enabled = local_my_sql_enabled
self.managed_service_identity_id = managed_service_identity_id
@@ -9139,7 +9390,8 @@ def __init__(self, *, number_of_workers: int=None, default_documents=None, net_f
self.http20_enabled = http20_enabled
self.min_tls_version = min_tls_version
self.ftps_state = ftps_state
- self.reserved_instance_count = reserved_instance_count
+ self.pre_warmed_instance_count = pre_warmed_instance_count
+ self.health_check_path = health_check_path
class SiteConfigResource(ProxyOnlyResource):
@@ -9195,9 +9447,6 @@ class SiteConfigResource(ProxyOnlyResource):
:type publishing_username: str
:param app_settings: Application settings.
:type app_settings: list[~azure.mgmt.web.models.NameValuePair]
- :param azure_storage_accounts: User-provided Azure storage accounts.
- :type azure_storage_accounts: dict[str,
- ~azure.mgmt.web.models.AzureStorageInfoValue]
:param connection_strings: Connection strings.
:type connection_strings: list[~azure.mgmt.web.models.ConnStringInfo]
:ivar machine_key: Site MachineKey.
@@ -9208,7 +9457,7 @@ class SiteConfigResource(ProxyOnlyResource):
:type document_root: str
:param scm_type: SCM type. Possible values include: 'None', 'Dropbox',
'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit',
- 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO'
+ 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'
:type scm_type: str or ~azure.mgmt.web.models.ScmType
:param use32_bit_worker_process: true to use 32-bit worker
process; otherwise, false.
@@ -9258,6 +9507,9 @@ class SiteConfigResource(ProxyOnlyResource):
:param api_definition: Information about the formal API definition for the
app.
:type api_definition: ~azure.mgmt.web.models.ApiDefinitionInfo
+ :param api_management_config: Azure API management settings linked to the
+ app.
+ :type api_management_config: ~azure.mgmt.web.models.ApiManagementConfig
:param auto_swap_slot_name: Auto-swap slot name.
:type auto_swap_slot_name: str
:param local_my_sql_enabled: true to enable local MySQL;
@@ -9286,9 +9538,11 @@ class SiteConfigResource(ProxyOnlyResource):
:param ftps_state: State of FTP / FTPS service. Possible values include:
'AllAllowed', 'FtpsOnly', 'Disabled'
:type ftps_state: str or ~azure.mgmt.web.models.FtpsState
- :param reserved_instance_count: Number of reserved instances.
- This setting only applies to the Consumption Plan
- :type reserved_instance_count: int
+ :param pre_warmed_instance_count: Number of preWarmed instances.
+ This setting only applies to the Consumption and Elastic Plans
+ :type pre_warmed_instance_count: int
+ :param health_check_path: Health check path
+ :type health_check_path: str
"""
_validation = {
@@ -9296,7 +9550,7 @@ class SiteConfigResource(ProxyOnlyResource):
'name': {'readonly': True},
'type': {'readonly': True},
'machine_key': {'readonly': True},
- 'reserved_instance_count': {'maximum': 10, 'minimum': 0},
+ 'pre_warmed_instance_count': {'maximum': 10, 'minimum': 0},
}
_attribute_map = {
@@ -9321,7 +9575,6 @@ class SiteConfigResource(ProxyOnlyResource):
'detailed_error_logging_enabled': {'key': 'properties.detailedErrorLoggingEnabled', 'type': 'bool'},
'publishing_username': {'key': 'properties.publishingUsername', 'type': 'str'},
'app_settings': {'key': 'properties.appSettings', 'type': '[NameValuePair]'},
- 'azure_storage_accounts': {'key': 'properties.azureStorageAccounts', 'type': '{AzureStorageInfoValue}'},
'connection_strings': {'key': 'properties.connectionStrings', 'type': '[ConnStringInfo]'},
'machine_key': {'key': 'properties.machineKey', 'type': 'SiteMachineKey'},
'handler_mappings': {'key': 'properties.handlerMappings', 'type': '[HandlerMapping]'},
@@ -9346,6 +9599,7 @@ class SiteConfigResource(ProxyOnlyResource):
'cors': {'key': 'properties.cors', 'type': 'CorsSettings'},
'push': {'key': 'properties.push', 'type': 'PushSettings'},
'api_definition': {'key': 'properties.apiDefinition', 'type': 'ApiDefinitionInfo'},
+ 'api_management_config': {'key': 'properties.apiManagementConfig', 'type': 'ApiManagementConfig'},
'auto_swap_slot_name': {'key': 'properties.autoSwapSlotName', 'type': 'str'},
'local_my_sql_enabled': {'key': 'properties.localMySqlEnabled', 'type': 'bool'},
'managed_service_identity_id': {'key': 'properties.managedServiceIdentityId', 'type': 'int'},
@@ -9356,10 +9610,11 @@ class SiteConfigResource(ProxyOnlyResource):
'http20_enabled': {'key': 'properties.http20Enabled', 'type': 'bool'},
'min_tls_version': {'key': 'properties.minTlsVersion', 'type': 'str'},
'ftps_state': {'key': 'properties.ftpsState', 'type': 'str'},
- 'reserved_instance_count': {'key': 'properties.reservedInstanceCount', 'type': 'int'},
+ 'pre_warmed_instance_count': {'key': 'properties.preWarmedInstanceCount', 'type': 'int'},
+ 'health_check_path': {'key': 'properties.healthCheckPath', 'type': 'str'},
}
- def __init__(self, *, kind: str=None, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, azure_storage_accounts=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, scm_ip_security_restrictions=None, scm_ip_security_restrictions_use_main: bool=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, reserved_instance_count: int=None, **kwargs) -> None:
+ def __init__(self, *, kind: str=None, number_of_workers: int=None, default_documents=None, net_framework_version: str="v4.6", php_version: str=None, python_version: str=None, node_version: str=None, linux_fx_version: str=None, windows_fx_version: str=None, request_tracing_enabled: bool=None, request_tracing_expiration_time=None, remote_debugging_enabled: bool=None, remote_debugging_version: str=None, http_logging_enabled: bool=None, logs_directory_size_limit: int=None, detailed_error_logging_enabled: bool=None, publishing_username: str=None, app_settings=None, connection_strings=None, handler_mappings=None, document_root: str=None, scm_type=None, use32_bit_worker_process: bool=None, web_sockets_enabled: bool=None, always_on: bool=None, java_version: str=None, java_container: str=None, java_container_version: str=None, app_command_line: str=None, managed_pipeline_mode=None, virtual_applications=None, load_balancing=None, experiments=None, limits=None, auto_heal_enabled: bool=None, auto_heal_rules=None, tracing_options: str=None, vnet_name: str=None, cors=None, push=None, api_definition=None, api_management_config=None, auto_swap_slot_name: str=None, local_my_sql_enabled: bool=False, managed_service_identity_id: int=None, x_managed_service_identity_id: int=None, ip_security_restrictions=None, scm_ip_security_restrictions=None, scm_ip_security_restrictions_use_main: bool=None, http20_enabled: bool=True, min_tls_version=None, ftps_state=None, pre_warmed_instance_count: int=None, health_check_path: str=None, **kwargs) -> None:
super(SiteConfigResource, self).__init__(kind=kind, **kwargs)
self.number_of_workers = number_of_workers
self.default_documents = default_documents
@@ -9378,7 +9633,6 @@ def __init__(self, *, kind: str=None, number_of_workers: int=None, default_docum
self.detailed_error_logging_enabled = detailed_error_logging_enabled
self.publishing_username = publishing_username
self.app_settings = app_settings
- self.azure_storage_accounts = azure_storage_accounts
self.connection_strings = connection_strings
self.machine_key = None
self.handler_mappings = handler_mappings
@@ -9403,6 +9657,7 @@ def __init__(self, *, kind: str=None, number_of_workers: int=None, default_docum
self.cors = cors
self.push = push
self.api_definition = api_definition
+ self.api_management_config = api_management_config
self.auto_swap_slot_name = auto_swap_slot_name
self.local_my_sql_enabled = local_my_sql_enabled
self.managed_service_identity_id = managed_service_identity_id
@@ -9413,7 +9668,8 @@ def __init__(self, *, kind: str=None, number_of_workers: int=None, default_docum
self.http20_enabled = http20_enabled
self.min_tls_version = min_tls_version
self.ftps_state = ftps_state
- self.reserved_instance_count = reserved_instance_count
+ self.pre_warmed_instance_count = pre_warmed_instance_count
+ self.health_check_path = health_check_path
class SiteConfigurationSnapshotInfo(ProxyOnlyResource):
@@ -9805,7 +10061,7 @@ class SitePatchResource(ProxyOnlyResource):
:vartype outbound_ip_addresses: str
:ivar possible_outbound_ip_addresses: List of IP addresses that the app
uses for outbound connections (e.g. database access). Includes VIPs from
- all tenants. Read-only.
+ all tenants except dataComponent. Read-only.
:vartype possible_outbound_ip_addresses: str
:param container_size: Size of the function container.
:type container_size: int
@@ -9841,8 +10097,6 @@ class SitePatchResource(ProxyOnlyResource):
:ivar in_progress_operation_id: Specifies an operation id if this site has
a pending operation.
:vartype in_progress_operation_id: str
- :param geo_distributions: GeoDistributions for this site
- :type geo_distributions: list[~azure.mgmt.web.models.GeoDistribution]
:param identity:
:type identity: ~azure.mgmt.web.models.ManagedServiceIdentity
"""
@@ -9912,11 +10166,10 @@ class SitePatchResource(ProxyOnlyResource):
'https_only': {'key': 'properties.httpsOnly', 'type': 'bool'},
'redundancy_mode': {'key': 'properties.redundancyMode', 'type': 'RedundancyMode'},
'in_progress_operation_id': {'key': 'properties.inProgressOperationId', 'type': 'str'},
- 'geo_distributions': {'key': 'properties.geoDistributions', 'type': '[GeoDistribution]'},
'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'},
}
- def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, geo_distributions=None, identity=None, **kwargs) -> None:
+ def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=None, server_farm_id: str=None, reserved: bool=False, is_xenon: bool=False, hyper_v: bool=False, site_config=None, scm_site_also_stopped: bool=False, hosting_environment_profile=None, client_affinity_enabled: bool=None, client_cert_enabled: bool=None, client_cert_exclusion_paths: str=None, host_names_disabled: bool=None, container_size: int=None, daily_memory_time_quota: int=None, cloning_info=None, https_only: bool=None, redundancy_mode=None, identity=None, **kwargs) -> None:
super(SitePatchResource, self).__init__(kind=kind, **kwargs)
self.state = None
self.host_names = None
@@ -9954,7 +10207,6 @@ def __init__(self, *, kind: str=None, enabled: bool=None, host_name_ssl_states=N
self.https_only = https_only
self.redundancy_mode = redundancy_mode
self.in_progress_operation_id = None
- self.geo_distributions = geo_distributions
self.identity = identity
@@ -10634,6 +10886,15 @@ class StackMajorVersion(Model):
:param application_insights: true if this supports
Application Insights; otherwise, false.
:type application_insights: bool
+ :param is_preview: true if this stack is in Preview,
+ otherwise false.
+ :type is_preview: bool
+ :param is_deprecated: true if this stack has been deprecated,
+ otherwise false.
+ :type is_deprecated: bool
+ :param is_hidden: true if this stack should be hidden for new
+ customers on portal, otherwise false.
+ :type is_hidden: bool
"""
_attribute_map = {
@@ -10642,15 +10903,21 @@ class StackMajorVersion(Model):
'is_default': {'key': 'isDefault', 'type': 'bool'},
'minor_versions': {'key': 'minorVersions', 'type': '[StackMinorVersion]'},
'application_insights': {'key': 'applicationInsights', 'type': 'bool'},
+ 'is_preview': {'key': 'isPreview', 'type': 'bool'},
+ 'is_deprecated': {'key': 'isDeprecated', 'type': 'bool'},
+ 'is_hidden': {'key': 'isHidden', 'type': 'bool'},
}
- def __init__(self, *, display_version: str=None, runtime_version: str=None, is_default: bool=None, minor_versions=None, application_insights: bool=None, **kwargs) -> None:
+ def __init__(self, *, display_version: str=None, runtime_version: str=None, is_default: bool=None, minor_versions=None, application_insights: bool=None, is_preview: bool=None, is_deprecated: bool=None, is_hidden: bool=None, **kwargs) -> None:
super(StackMajorVersion, self).__init__(**kwargs)
self.display_version = display_version
self.runtime_version = runtime_version
self.is_default = is_default
self.minor_versions = minor_versions
self.application_insights = application_insights
+ self.is_preview = is_preview
+ self.is_deprecated = is_deprecated
+ self.is_hidden = is_hidden
class StackMinorVersion(Model):
@@ -10700,7 +10967,7 @@ class StampCapacity(Model):
'Shared', 'Dedicated', 'Dynamic'
:type compute_mode: str or ~azure.mgmt.web.models.ComputeModeOptions
:param worker_size: Size of the machines. Possible values include:
- 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'Default'
+ 'Small', 'Medium', 'Large', 'D1', 'D2', 'D3', 'NestedSmall', 'Default'
:type worker_size: str or ~azure.mgmt.web.models.WorkerSizeOptions
:param worker_size_id: Size ID of machines:
0 - Small
@@ -11378,42 +11645,6 @@ def __init__(self, *, publishing_user_name: str, kind: str=None, publishing_pass
self.scm_uri = scm_uri
-class ValidateContainerSettingsRequest(Model):
- """Container settings validation request context.
-
- :param base_url: Base URL of the container registry
- :type base_url: str
- :param username: Username for to access the container registry
- :type username: str
- :param password: Password for to access the container registry
- :type password: str
- :param repository: Repository name (image name)
- :type repository: str
- :param tag: Image tag
- :type tag: str
- :param platform: Platform (windows or linux)
- :type platform: str
- """
-
- _attribute_map = {
- 'base_url': {'key': 'baseUrl', 'type': 'str'},
- 'username': {'key': 'username', 'type': 'str'},
- 'password': {'key': 'password', 'type': 'str'},
- 'repository': {'key': 'repository', 'type': 'str'},
- 'tag': {'key': 'tag', 'type': 'str'},
- 'platform': {'key': 'platform', 'type': 'str'},
- }
-
- def __init__(self, *, base_url: str=None, username: str=None, password: str=None, repository: str=None, tag: str=None, platform: str=None, **kwargs) -> None:
- super(ValidateContainerSettingsRequest, self).__init__(**kwargs)
- self.base_url = base_url
- self.username = username
- self.password = password
- self.repository = repository
- self.tag = tag
- self.platform = platform
-
-
class ValidateRequest(Model):
"""Resource validation request content.
@@ -11445,6 +11676,20 @@ class ValidateRequest(Model):
:param is_xenon: true if App Service plan is running as a
windows container
:type is_xenon: bool
+ :param container_registry_base_url: Base URL of the container registry
+ :type container_registry_base_url: str
+ :param container_registry_username: Username for to access the container
+ registry
+ :type container_registry_username: str
+ :param container_registry_password: Password for to access the container
+ registry
+ :type container_registry_password: str
+ :param container_image_repository: Repository name (image name)
+ :type container_image_repository: str
+ :param container_image_tag: Image tag
+ :type container_image_tag: str
+ :param container_image_platform: Platform (windows or linux)
+ :type container_image_platform: str
"""
_validation = {
@@ -11465,9 +11710,15 @@ class ValidateRequest(Model):
'capacity': {'key': 'properties.capacity', 'type': 'int'},
'hosting_environment': {'key': 'properties.hostingEnvironment', 'type': 'str'},
'is_xenon': {'key': 'properties.isXenon', 'type': 'bool'},
+ 'container_registry_base_url': {'key': 'properties.containerRegistryBaseUrl', 'type': 'str'},
+ 'container_registry_username': {'key': 'properties.containerRegistryUsername', 'type': 'str'},
+ 'container_registry_password': {'key': 'properties.containerRegistryPassword', 'type': 'str'},
+ 'container_image_repository': {'key': 'properties.containerImageRepository', 'type': 'str'},
+ 'container_image_tag': {'key': 'properties.containerImageTag', 'type': 'str'},
+ 'container_image_platform': {'key': 'properties.containerImagePlatform', 'type': 'str'},
}
- def __init__(self, *, name: str, type, location: str, server_farm_id: str=None, sku_name: str=None, need_linux_workers: bool=None, is_spot: bool=None, capacity: int=None, hosting_environment: str=None, is_xenon: bool=None, **kwargs) -> None:
+ def __init__(self, *, name: str, type, location: str, server_farm_id: str=None, sku_name: str=None, need_linux_workers: bool=None, is_spot: bool=None, capacity: int=None, hosting_environment: str=None, is_xenon: bool=None, container_registry_base_url: str=None, container_registry_username: str=None, container_registry_password: str=None, container_image_repository: str=None, container_image_tag: str=None, container_image_platform: str=None, **kwargs) -> None:
super(ValidateRequest, self).__init__(**kwargs)
self.name = name
self.type = type
@@ -11479,6 +11730,12 @@ def __init__(self, *, name: str, type, location: str, server_farm_id: str=None,
self.capacity = capacity
self.hosting_environment = hosting_environment
self.is_xenon = is_xenon
+ self.container_registry_base_url = container_registry_base_url
+ self.container_registry_username = container_registry_username
+ self.container_registry_password = container_registry_password
+ self.container_image_repository = container_image_repository
+ self.container_image_tag = container_image_tag
+ self.container_image_platform = container_image_platform
class ValidateResponse(Model):
@@ -11581,6 +11838,8 @@ class VirtualIPMapping(Model):
:type internal_https_port: int
:param in_use: Is virtual IP mapping in use.
:type in_use: bool
+ :param service_name: name of the service that virtual IP is assigned to
+ :type service_name: str
"""
_attribute_map = {
@@ -11588,14 +11847,16 @@ class VirtualIPMapping(Model):
'internal_http_port': {'key': 'internalHttpPort', 'type': 'int'},
'internal_https_port': {'key': 'internalHttpsPort', 'type': 'int'},
'in_use': {'key': 'inUse', 'type': 'bool'},
+ 'service_name': {'key': 'serviceName', 'type': 'str'},
}
- def __init__(self, *, virtual_ip: str=None, internal_http_port: int=None, internal_https_port: int=None, in_use: bool=None, **kwargs) -> None:
+ def __init__(self, *, virtual_ip: str=None, internal_http_port: int=None, internal_https_port: int=None, in_use: bool=None, service_name: str=None, **kwargs) -> None:
super(VirtualIPMapping, self).__init__(**kwargs)
self.virtual_ip = virtual_ip
self.internal_http_port = internal_http_port
self.internal_https_port = internal_https_port
self.in_use = in_use
+ self.service_name = service_name
class VirtualNetworkProfile(Model):
@@ -12023,6 +12284,59 @@ def __init__(self, *, kind: str=None, run_command: str=None, url: str=None, extr
self.settings = settings
+class WebSiteInstanceStatus(ProxyOnlyResource):
+ """WebSiteInstanceStatus.
+
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar id: Resource Id.
+ :vartype id: str
+ :ivar name: Resource Name.
+ :vartype name: str
+ :param kind: Kind of resource.
+ :type kind: str
+ :ivar type: Resource type.
+ :vartype type: str
+ :param state: Possible values include: 'READY', 'STOPPED', 'UNKNOWN'
+ :type state: str or ~azure.mgmt.web.models.SiteRuntimeState
+ :param status_url: Link to the GetStatusApi in Kudu
+ :type status_url: str
+ :param detector_url: Link to the Diagnose and Solve Portal
+ :type detector_url: str
+ :param console_url: Link to the Diagnose and Solve Portal
+ :type console_url: str
+ :param containers:
+ :type containers: dict[str, ~azure.mgmt.web.models.ContainerInfo]
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'kind': {'key': 'kind', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'state': {'key': 'properties.state', 'type': 'SiteRuntimeState'},
+ 'status_url': {'key': 'properties.statusUrl', 'type': 'str'},
+ 'detector_url': {'key': 'properties.detectorUrl', 'type': 'str'},
+ 'console_url': {'key': 'properties.consoleUrl', 'type': 'str'},
+ 'containers': {'key': 'properties.containers', 'type': '{ContainerInfo}'},
+ }
+
+ def __init__(self, *, kind: str=None, state=None, status_url: str=None, detector_url: str=None, console_url: str=None, containers=None, **kwargs) -> None:
+ super(WebSiteInstanceStatus, self).__init__(kind=kind, **kwargs)
+ self.state = state
+ self.status_url = status_url
+ self.detector_url = detector_url
+ self.console_url = console_url
+ self.containers = containers
+
+
class WorkerPool(Model):
"""Worker pool of an App Service Environment.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_paged_models.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_paged_models.py
index 0919cae68220..9e9283465892 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_paged_models.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_paged_models.py
@@ -194,19 +194,19 @@ class DetectorDefinitionPaged(Paged):
def __init__(self, *args, **kwargs):
super(DetectorDefinitionPaged, self).__init__(*args, **kwargs)
-class ApplicationStackPaged(Paged):
+class ApplicationStackResourcePaged(Paged):
"""
- A paging container for iterating over a list of :class:`ApplicationStack ` object
+ A paging container for iterating over a list of :class:`ApplicationStackResource ` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
- 'current_page': {'key': 'value', 'type': '[ApplicationStack]'}
+ 'current_page': {'key': 'value', 'type': '[ApplicationStackResource]'}
}
def __init__(self, *args, **kwargs):
- super(ApplicationStackPaged, self).__init__(*args, **kwargs)
+ super(ApplicationStackResourcePaged, self).__init__(*args, **kwargs)
class RecommendationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Recommendation ` object
@@ -441,32 +441,6 @@ class ProcessThreadInfoPaged(Paged):
def __init__(self, *args, **kwargs):
super(ProcessThreadInfoPaged, self).__init__(*args, **kwargs)
-class ResourceMetricDefinitionPaged(Paged):
- """
- A paging container for iterating over a list of :class:`ResourceMetricDefinition ` object
- """
-
- _attribute_map = {
- 'next_link': {'key': 'nextLink', 'type': 'str'},
- 'current_page': {'key': 'value', 'type': '[ResourceMetricDefinition]'}
- }
-
- def __init__(self, *args, **kwargs):
-
- super(ResourceMetricDefinitionPaged, self).__init__(*args, **kwargs)
-class ResourceMetricPaged(Paged):
- """
- A paging container for iterating over a list of :class:`ResourceMetric ` object
- """
-
- _attribute_map = {
- 'next_link': {'key': 'nextLink', 'type': 'str'},
- 'current_page': {'key': 'value', 'type': '[ResourceMetric]'}
- }
-
- def __init__(self, *args, **kwargs):
-
- super(ResourceMetricPaged, self).__init__(*args, **kwargs)
class PerfMonResponsePaged(Paged):
"""
A paging container for iterating over a list of :class:`PerfMonResponse ` object
@@ -636,6 +610,19 @@ class WorkerPoolResourcePaged(Paged):
def __init__(self, *args, **kwargs):
super(WorkerPoolResourcePaged, self).__init__(*args, **kwargs)
+class ResourceMetricDefinitionPaged(Paged):
+ """
+ A paging container for iterating over a list of :class:`ResourceMetricDefinition ` object
+ """
+
+ _attribute_map = {
+ 'next_link': {'key': 'nextLink', 'type': 'str'},
+ 'current_page': {'key': 'value', 'type': '[ResourceMetricDefinition]'}
+ }
+
+ def __init__(self, *args, **kwargs):
+
+ super(ResourceMetricDefinitionPaged, self).__init__(*args, **kwargs)
class SkuInfoPaged(Paged):
"""
A paging container for iterating over a list of :class:`SkuInfo ` object
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_web_site_management_client_enums.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_web_site_management_client_enums.py
index a4db9855c59f..bb8eb4b7cdbe 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_web_site_management_client_enums.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/models/_web_site_management_client_enums.py
@@ -83,10 +83,9 @@ class RouteType(str, Enum):
class ManagedServiceIdentityType(str, Enum):
+ none = "None"
system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
- system_assigned_user_assigned = "SystemAssigned, UserAssigned"
- none = "None"
class IpFilterTag(str, Enum):
@@ -117,19 +116,6 @@ class ConnectionStringType(str, Enum):
postgre_sql = "PostgreSQL"
-class AzureStorageType(str, Enum):
-
- azure_files = "AzureFiles"
- azure_blob = "AzureBlob"
-
-
-class AzureStorageState(str, Enum):
-
- ok = "Ok"
- invalid_credentials = "InvalidCredentials"
- invalid_share = "InvalidShare"
-
-
class ScmType(str, Enum):
none = "None"
@@ -145,6 +131,7 @@ class ScmType(str, Enum):
external_hg = "ExternalHg"
one_drive = "OneDrive"
vso = "VSO"
+ vstsrm = "VSTSRM"
class ManagedPipelineMode(str, Enum):
@@ -303,6 +290,7 @@ class WorkerSizeOptions(str, Enum):
d1 = "D1"
d2 = "D2"
d3 = "D3"
+ nested_small = "NestedSmall"
default = "Default"
@@ -406,6 +394,29 @@ class ValidateResourceTypes(str, Enum):
site = "Site"
+class ResolveStatus(str, Enum):
+
+ initialized = "Initialized"
+ resolved = "Resolved"
+ invalid_syntax = "InvalidSyntax"
+ msi_not_enabled = "MSINotEnabled"
+ vault_not_found = "VaultNotFound"
+ secret_not_found = "SecretNotFound"
+ secret_version_not_found = "SecretVersionNotFound"
+ access_to_key_vault_denied = "AccessToKeyVaultDenied"
+ other_reasons = "OtherReasons"
+
+
+class ConfigReferenceSource(str, Enum):
+
+ key_vault = "KeyVault"
+
+
+class ConfigReferenceLocation(str, Enum):
+
+ application_setting = "ApplicationSetting"
+
+
class LogLevel(str, Enum):
off = "Off"
@@ -415,6 +426,19 @@ class LogLevel(str, Enum):
error = "Error"
+class AzureStorageType(str, Enum):
+
+ azure_files = "AzureFiles"
+ azure_blob = "AzureBlob"
+
+
+class AzureStorageState(str, Enum):
+
+ ok = "Ok"
+ invalid_credentials = "InvalidCredentials"
+ invalid_share = "InvalidShare"
+
+
class BackupItemStatus(str, Enum):
in_progress = "InProgress"
@@ -545,6 +569,13 @@ class TriggeredWebJobStatus(str, Enum):
error = "Error"
+class SiteRuntimeState(str, Enum):
+
+ ready = "READY"
+ stopped = "STOPPED"
+ unknown = "UNKNOWN"
+
+
class SkuName(str, Enum):
free = "Free"
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_certificate_orders_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_certificate_orders_operations.py
index b871f5831d45..50247af33c8d 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_certificate_orders_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_certificate_orders_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from msrest.polling import LROPoller, NoPolling
from msrestazure.polling.arm_polling import ARMPolling
@@ -27,7 +26,7 @@ class AppServiceCertificateOrdersOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -37,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -45,7 +44,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""List all certificate orders in a subscription.
- List all certificate orders in a subscription.
+ Description for List all certificate orders in a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -112,7 +111,7 @@ def validate_purchase_information(
self, app_service_certificate_order, custom_headers=None, raw=False, **operation_config):
"""Validate information for a certificate order.
- Validate information for a certificate order.
+ Description for Validate information for a certificate order.
:param app_service_certificate_order: Information for a certificate
order.
@@ -125,7 +124,8 @@ def validate_purchase_information(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.validate_purchase_information.metadata['url']
@@ -156,9 +156,7 @@ def validate_purchase_information(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -169,7 +167,7 @@ def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Get certificate orders in a resource group.
- Get certificate orders in a resource group.
+ Description for Get certificate orders in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -240,7 +238,7 @@ def get(
self, resource_group_name, certificate_order_name, custom_headers=None, raw=False, **operation_config):
"""Get a certificate order.
- Get a certificate order.
+ Description for Get a certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -353,7 +351,7 @@ def create_or_update(
self, resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a certificate purchase order.
- Create or update a certificate purchase order.
+ Description for Create or update a certificate purchase order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -410,7 +408,7 @@ def delete(
self, resource_group_name, certificate_order_name, custom_headers=None, raw=False, **operation_config):
"""Delete an existing certificate order.
- Delete an existing certificate order.
+ Description for Delete an existing certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -424,7 +422,8 @@ def delete(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete.metadata['url']
@@ -453,9 +452,7 @@ def delete(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -466,7 +463,7 @@ def update(
self, resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers=None, raw=False, **operation_config):
"""Create or update a certificate purchase order.
- Create or update a certificate purchase order.
+ Description for Create or update a certificate purchase order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -539,7 +536,8 @@ def list_certificates(
self, resource_group_name, certificate_order_name, custom_headers=None, raw=False, **operation_config):
"""List all certificates associated with a certificate order.
- List all certificates associated with a certificate order.
+ Description for List all certificates associated with a certificate
+ order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -613,7 +611,8 @@ def get_certificate(
self, resource_group_name, certificate_order_name, name, custom_headers=None, raw=False, **operation_config):
"""Get the certificate associated with a certificate order.
- Get the certificate associated with a certificate order.
+ Description for Get the certificate associated with a certificate
+ order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -731,7 +730,8 @@ def create_or_update_certificate(
self, resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers=None, raw=False, polling=True, **operation_config):
"""Creates or updates a certificate and associates with key vault secret.
- Creates or updates a certificate and associates with key vault secret.
+ Description for Creates or updates a certificate and associates with
+ key vault secret.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -790,7 +790,8 @@ def delete_certificate(
self, resource_group_name, certificate_order_name, name, custom_headers=None, raw=False, **operation_config):
"""Delete the certificate associated with a certificate order.
- Delete the certificate associated with a certificate order.
+ Description for Delete the certificate associated with a certificate
+ order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -806,7 +807,8 @@ def delete_certificate(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_certificate.metadata['url']
@@ -836,9 +838,7 @@ def delete_certificate(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -849,7 +849,8 @@ def update_certificate(
self, resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers=None, raw=False, **operation_config):
"""Creates or updates a certificate and associates with key vault secret.
- Creates or updates a certificate and associates with key vault secret.
+ Description for Creates or updates a certificate and associates with
+ key vault secret.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -925,7 +926,7 @@ def reissue(
self, resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers=None, raw=False, **operation_config):
"""Reissue an existing certificate order.
- Reissue an existing certificate order.
+ Description for Reissue an existing certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -942,7 +943,8 @@ def reissue(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reissue.metadata['url']
@@ -975,9 +977,7 @@ def reissue(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -988,7 +988,7 @@ def renew(
self, resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers=None, raw=False, **operation_config):
"""Renew an existing certificate order.
- Renew an existing certificate order.
+ Description for Renew an existing certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1005,7 +1005,8 @@ def renew(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.renew.metadata['url']
@@ -1038,9 +1039,7 @@ def renew(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1051,7 +1050,7 @@ def resend_email(
self, resource_group_name, certificate_order_name, custom_headers=None, raw=False, **operation_config):
"""Resend certificate email.
- Resend certificate email.
+ Description for Resend certificate email.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1065,7 +1064,8 @@ def resend_email(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.resend_email.metadata['url']
@@ -1094,9 +1094,7 @@ def resend_email(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1107,7 +1105,7 @@ def resend_request_emails(
self, resource_group_name, certificate_order_name, name=None, custom_headers=None, raw=False, **operation_config):
"""Verify domain ownership for this certificate order.
- Verify domain ownership for this certificate order.
+ Description for Verify domain ownership for this certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1123,7 +1121,8 @@ def resend_request_emails(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
name_identifier = models.NameIdentifier(name=name)
@@ -1158,9 +1157,7 @@ def resend_request_emails(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1171,7 +1168,7 @@ def retrieve_site_seal(
self, resource_group_name, certificate_order_name, light_theme=None, locale=None, custom_headers=None, raw=False, **operation_config):
"""Verify domain ownership for this certificate order.
- Verify domain ownership for this certificate order.
+ Description for Verify domain ownership for this certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1245,7 +1242,7 @@ def verify_domain_ownership(
self, resource_group_name, certificate_order_name, custom_headers=None, raw=False, **operation_config):
"""Verify domain ownership for this certificate order.
- Verify domain ownership for this certificate order.
+ Description for Verify domain ownership for this certificate order.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1259,7 +1256,8 @@ def verify_domain_ownership(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.verify_domain_ownership.metadata['url']
@@ -1288,9 +1286,7 @@ def verify_domain_ownership(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1301,7 +1297,7 @@ def retrieve_certificate_actions(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Retrieve the list of certificate actions.
- Retrieve the list of certificate actions.
+ Description for Retrieve the list of certificate actions.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1364,7 +1360,7 @@ def retrieve_certificate_email_history(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Retrieve email history.
- Retrieve email history.
+ Description for Retrieve email history.
:param resource_group_name: Name of the resource group to which the
resource belongs.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_environments_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_environments_operations.py
index 44707a9ff17a..fdee75a83c18 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_environments_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_environments_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from msrest.polling import LROPoller, NoPolling
from msrestazure.polling.arm_polling import ARMPolling
@@ -27,7 +26,7 @@ class AppServiceEnvironmentsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -37,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -45,7 +44,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all App Service Environments for a subscription.
- Get all App Service Environments for a subscription.
+ Description for Get all App Service Environments for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -112,7 +111,7 @@ def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Get all App Service Environments in a resource group.
- Get all App Service Environments in a resource group.
+ Description for Get all App Service Environments in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -183,7 +182,7 @@ def get(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get the properties of an App Service Environment.
- Get the properties of an App Service Environment.
+ Description for Get the properties of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -277,15 +276,15 @@ def _create_or_update_initial(
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 201, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('AppServiceEnvironmentResource', response)
+ if response.status_code == 201:
+ deserialized = self._deserialize('AppServiceEnvironmentResource', response)
if response.status_code == 202:
deserialized = self._deserialize('AppServiceEnvironmentResource', response)
@@ -299,7 +298,7 @@ def create_or_update(
self, resource_group_name, name, hosting_environment_envelope, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update an App Service Environment.
- Create or update an App Service Environment.
+ Description for Create or update an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -322,7 +321,8 @@ def create_or_update(
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.web.models.AppServiceEnvironmentResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.web.models.AppServiceEnvironmentResource]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._create_or_update_initial(
resource_group_name=resource_group_name,
@@ -382,10 +382,8 @@ def _delete_initial(
request = self._client.delete(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [202, 204, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [202, 204]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -395,7 +393,7 @@ def delete(
self, resource_group_name, name, force_delete=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Delete an App Service Environment.
- Delete an App Service Environment.
+ Description for Delete an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -415,7 +413,8 @@ def delete(
ClientRawResponse if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._delete_initial(
resource_group_name=resource_group_name,
@@ -444,7 +443,7 @@ def update(
self, resource_group_name, name, hosting_environment_envelope, custom_headers=None, raw=False, **operation_config):
"""Create or update an App Service Environment.
- Create or update an App Service Environment.
+ Description for Create or update an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -464,7 +463,8 @@ def update(
raw=true
:rtype: ~azure.mgmt.web.models.AppServiceEnvironmentResource or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.update.metadata['url']
@@ -497,14 +497,14 @@ def update(
request = self._client.patch(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 201, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('AppServiceEnvironmentResource', response)
+ if response.status_code == 201:
+ deserialized = self._deserialize('AppServiceEnvironmentResource', response)
if response.status_code == 202:
deserialized = self._deserialize('AppServiceEnvironmentResource', response)
@@ -520,8 +520,8 @@ def list_capacities(
"""Get the used, available, and total worker capacity an App Service
Environment.
- Get the used, available, and total worker capacity an App Service
- Environment.
+ Description for Get the used, available, and total worker capacity an
+ App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -591,11 +591,12 @@ def internal_paging(next_link=None):
return deserialized
list_capacities.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute'}
- def list_vips(
+ def get_vip_info(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get IP addresses assigned to an App Service Environment.
- Get IP addresses assigned to an App Service Environment.
+ Description for Get IP addresses assigned to an App Service
+ Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -614,7 +615,7 @@ def list_vips(
:class:`DefaultErrorResponseException`
"""
# Construct URL
- url = self.list_vips.metadata['url']
+ url = self.get_vip_info.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
'name': self._serialize.url("name", name, 'str'),
@@ -652,7 +653,7 @@ def list_vips(
return client_raw_response
return deserialized
- list_vips.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip'}
+ get_vip_info.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/virtualip'}
def _change_vnet_initial(
@@ -710,7 +711,7 @@ def change_vnet(
self, resource_group_name, name, id=None, subnet=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Move an App Service Environment to a different VNET.
- Move an App Service Environment to a different VNET.
+ Description for Move an App Service Environment to a different VNET.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -767,7 +768,8 @@ def list_diagnostics(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get diagnostic information for an App Service Environment.
- Get diagnostic information for an App Service Environment.
+ Description for Get diagnostic information for an App Service
+ Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -830,7 +832,7 @@ def get_diagnostics_item(
self, resource_group_name, name, diagnostics_name, custom_headers=None, raw=False, **operation_config):
"""Get a diagnostics item for an App Service Environment.
- Get a diagnostics item for an App Service Environment.
+ Description for Get a diagnostics item for an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -898,8 +900,8 @@ def get_inbound_network_dependencies_endpoints(
"""Get the network endpoints of all inbound dependencies of an App Service
Environment.
- Get the network endpoints of all inbound dependencies of an App Service
- Environment.
+ Description for Get the network endpoints of all inbound dependencies
+ of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -969,161 +971,11 @@ def internal_paging(next_link=None):
return deserialized
get_inbound_network_dependencies_endpoints.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/inboundNetworkDependenciesEndpoints'}
- def list_metric_definitions(
- self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
- """Get global metric definitions of an App Service Environment.
-
- Get global metric definitions of an App Service Environment.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: MetricDefinition or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.MetricDefinition or
- ~msrest.pipeline.ClientRawResponse
- :raises:
- :class:`DefaultErrorResponseException`
- """
- # Construct URL
- url = self.list_metric_definitions.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- deserialized = None
- if response.status_code == 200:
- deserialized = self._deserialize('MetricDefinition', response)
-
- if raw:
- client_raw_response = ClientRawResponse(deserialized, response)
- return client_raw_response
-
- return deserialized
- list_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metricdefinitions'}
-
- def list_metrics(
- self, resource_group_name, name, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Get global metrics of an App Service Environment.
-
- Get global metrics of an App Service Environment.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param filter: Return only usages/metrics specified in the filter.
- Filter conforms to odata syntax. Example: $filter=(name.value eq
- 'Metric1' or name.value eq 'Metric2') and startTime eq
- 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain
- eq duration'[Hour|Minute|Day]'.
- :type filter: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/metrics'}
-
def list_multi_role_pools(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get all multi-role pools.
- Get all multi-role pools.
+ Description for Get all multi-role pools.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1197,7 +1049,7 @@ def get_multi_role_pool(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get properties of a multi-role pool.
- Get properties of a multi-role pool.
+ Description for Get properties of a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1290,10 +1142,8 @@ def _create_or_update_multi_role_pool_initial(
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
@@ -1312,7 +1162,7 @@ def create_or_update_multi_role_pool(
self, resource_group_name, name, multi_role_pool_envelope, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a multi-role pool.
- Create or update a multi-role pool.
+ Description for Create or update a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1333,7 +1183,8 @@ def create_or_update_multi_role_pool(
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.web.models.WorkerPoolResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.web.models.WorkerPoolResource]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._create_or_update_multi_role_pool_initial(
resource_group_name=resource_group_name,
@@ -1366,7 +1217,7 @@ def update_multi_role_pool(
self, resource_group_name, name, multi_role_pool_envelope, custom_headers=None, raw=False, **operation_config):
"""Create or update a multi-role pool.
- Create or update a multi-role pool.
+ Description for Create or update a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1384,7 +1235,8 @@ def update_multi_role_pool(
:return: WorkerPoolResource or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.WorkerPoolResource or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.update_multi_role_pool.metadata['url']
@@ -1417,10 +1269,8 @@ def update_multi_role_pool(
request = self._client.patch(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -1440,8 +1290,8 @@ def list_multi_role_pool_instance_metric_definitions(
"""Get metric definitions for a specific instance of a multi-role pool of
an App Service Environment.
- Get metric definitions for a specific instance of a multi-role pool of
- an App Service Environment.
+ Description for Get metric definitions for a specific instance of a
+ multi-role pool of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1514,97 +1364,13 @@ def internal_paging(next_link=None):
return deserialized
list_multi_role_pool_instance_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metricdefinitions'}
- def list_multi_role_pool_instance_metrics(
- self, resource_group_name, name, instance, details=None, custom_headers=None, raw=False, **operation_config):
- """Get metrics for a specific instance of a multi-role pool of an App
- Service Environment.
-
- Get metrics for a specific instance of a multi-role pool of an App
- Service Environment.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param instance: Name of the instance in the multi-role pool.
- :type instance: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_multi_role_pool_instance_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'instance': self._serialize.url("instance", instance, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_multi_role_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/instances/{instance}/metrics'}
-
def list_multi_role_metric_definitions(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get metric definitions for a multi-role pool of an App Service
Environment.
- Get metric definitions for a multi-role pool of an App Service
- Environment.
+ Description for Get metric definitions for a multi-role pool of an App
+ Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1674,110 +1440,11 @@ def internal_paging(next_link=None):
return deserialized
list_multi_role_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metricdefinitions'}
- def list_multi_role_metrics(
- self, resource_group_name, name, start_time=None, end_time=None, time_grain=None, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Get metrics for a multi-role pool of an App Service Environment.
-
- Get metrics for a multi-role pool of an App Service Environment.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param start_time: Beginning time of the metrics query.
- :type start_time: str
- :param end_time: End time of the metrics query.
- :type end_time: str
- :param time_grain: Time granularity of the metrics query.
- :type time_grain: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param filter: Return only usages/metrics specified in the filter.
- Filter conforms to odata syntax. Example: $filter=(name.value eq
- 'Metric1' or name.value eq 'Metric2') and startTime eq
- 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain
- eq duration'[Hour|Minute|Day]'.
- :type filter: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_multi_role_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if start_time is not None:
- query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'str')
- if end_time is not None:
- query_parameters['endTime'] = self._serialize.query("end_time", end_time, 'str')
- if time_grain is not None:
- query_parameters['timeGrain'] = self._serialize.query("time_grain", time_grain, 'str')
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_multi_role_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default/metrics'}
-
def list_multi_role_pool_skus(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get available SKUs for scaling a multi-role pool.
- Get available SKUs for scaling a multi-role pool.
+ Description for Get available SKUs for scaling a multi-role pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1851,7 +1518,8 @@ def list_multi_role_usages(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get usage metrics for a multi-role pool of an App Service Environment.
- Get usage metrics for a multi-role pool of an App Service Environment.
+ Description for Get usage metrics for a multi-role pool of an App
+ Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1925,7 +1593,8 @@ def list_operations(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List all currently running operations on the App Service Environment.
- List all currently running operations on the App Service Environment.
+ Description for List all currently running operations on the App
+ Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1989,8 +1658,8 @@ def get_outbound_network_dependencies_endpoints(
"""Get the network endpoints of all outbound dependencies of an App
Service Environment.
- Get the network endpoints of all outbound dependencies of an App
- Service Environment.
+ Description for Get the network endpoints of all outbound dependencies
+ of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2064,7 +1733,7 @@ def reboot(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Reboot all machines in an App Service Environment.
- Reboot all machines in an App Service Environment.
+ Description for Reboot all machines in an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2078,7 +1747,8 @@ def reboot(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reboot.metadata['url']
@@ -2106,10 +1776,8 @@ def reboot(
request = self._client.post(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -2166,7 +1834,7 @@ def resume(
self, resource_group_name, name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Resume an App Service Environment.
- Resume an App Service Environment.
+ Description for Resume an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2217,7 +1885,8 @@ def list_app_service_plans(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get all App Service plans in an App Service Environment.
- Get all App Service plans in an App Service Environment.
+ Description for Get all App Service plans in an App Service
+ Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2291,7 +1960,7 @@ def list_web_apps(
self, resource_group_name, name, properties_to_include=None, custom_headers=None, raw=False, **operation_config):
"""Get all apps in an App Service Environment.
- Get all apps in an App Service Environment.
+ Description for Get all apps in an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2415,7 +2084,7 @@ def suspend(
self, resource_group_name, name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Suspend an App Service Environment.
- Suspend an App Service Environment.
+ Description for Suspend an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2466,7 +2135,7 @@ def list_usages(
self, resource_group_name, name, filter=None, custom_headers=None, raw=False, **operation_config):
"""Get global usage metrics of an App Service Environment.
- Get global usage metrics of an App Service Environment.
+ Description for Get global usage metrics of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2548,7 +2217,7 @@ def list_worker_pools(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get all worker pools of an App Service Environment.
- Get all worker pools of an App Service Environment.
+ Description for Get all worker pools of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2622,7 +2291,7 @@ def get_worker_pool(
self, resource_group_name, name, worker_pool_name, custom_headers=None, raw=False, **operation_config):
"""Get properties of a worker pool.
- Get properties of a worker pool.
+ Description for Get properties of a worker pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2719,10 +2388,8 @@ def _create_or_update_worker_pool_initial(
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
@@ -2741,7 +2408,7 @@ def create_or_update_worker_pool(
self, resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a worker pool.
- Create or update a worker pool.
+ Description for Create or update a worker pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2763,7 +2430,8 @@ def create_or_update_worker_pool(
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.web.models.WorkerPoolResource]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.web.models.WorkerPoolResource]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._create_or_update_worker_pool_initial(
resource_group_name=resource_group_name,
@@ -2797,7 +2465,7 @@ def update_worker_pool(
self, resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers=None, raw=False, **operation_config):
"""Create or update a worker pool.
- Create or update a worker pool.
+ Description for Create or update a worker pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2816,7 +2484,8 @@ def update_worker_pool(
:return: WorkerPoolResource or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.WorkerPoolResource or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.update_worker_pool.metadata['url']
@@ -2850,10 +2519,8 @@ def update_worker_pool(
request = self._client.patch(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 400, 404, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 202]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -2873,8 +2540,8 @@ def list_worker_pool_instance_metric_definitions(
"""Get metric definitions for a specific instance of a worker pool of an
App Service Environment.
- Get metric definitions for a specific instance of a worker pool of an
- App Service Environment.
+ Description for Get metric definitions for a specific instance of a
+ worker pool of an App Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2950,106 +2617,12 @@ def internal_paging(next_link=None):
return deserialized
list_worker_pool_instance_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metricdefinitions'}
- def list_worker_pool_instance_metrics(
- self, resource_group_name, name, worker_pool_name, instance, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Get metrics for a specific instance of a worker pool of an App Service
- Environment.
-
- Get metrics for a specific instance of a worker pool of an App Service
- Environment.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param worker_pool_name: Name of the worker pool.
- :type worker_pool_name: str
- :param instance: Name of the instance in the worker pool.
- :type instance: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param filter: Return only usages/metrics specified in the filter.
- Filter conforms to odata syntax. Example: $filter=(name.value eq
- 'Metric1' or name.value eq 'Metric2') and startTime eq
- 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain
- eq duration'[Hour|Minute|Day]'.
- :type filter: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_worker_pool_instance_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'workerPoolName': self._serialize.url("worker_pool_name", worker_pool_name, 'str'),
- 'instance': self._serialize.url("instance", instance, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_worker_pool_instance_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/instances/{instance}/metrics'}
-
def list_web_worker_metric_definitions(
self, resource_group_name, name, worker_pool_name, custom_headers=None, raw=False, **operation_config):
"""Get metric definitions for a worker pool of an App Service Environment.
- Get metric definitions for a worker pool of an App Service Environment.
+ Description for Get metric definitions for a worker pool of an App
+ Service Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3122,103 +2695,11 @@ def internal_paging(next_link=None):
return deserialized
list_web_worker_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metricdefinitions'}
- def list_web_worker_metrics(
- self, resource_group_name, name, worker_pool_name, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Get metrics for a worker pool of a AppServiceEnvironment (App Service
- Environment).
-
- Get metrics for a worker pool of a AppServiceEnvironment (App Service
- Environment).
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service Environment.
- :type name: str
- :param worker_pool_name: Name of worker pool
- :type worker_pool_name: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param filter: Return only usages/metrics specified in the filter.
- Filter conforms to odata syntax. Example: $filter=(name.value eq
- 'Metric1' or name.value eq 'Metric2') and startTime eq
- 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain
- eq duration'[Hour|Minute|Day]'.
- :type filter: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_web_worker_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'workerPoolName': self._serialize.url("worker_pool_name", worker_pool_name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_web_worker_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}/metrics'}
-
def list_worker_pool_skus(
self, resource_group_name, name, worker_pool_name, custom_headers=None, raw=False, **operation_config):
"""Get available SKUs for scaling a worker pool.
- Get available SKUs for scaling a worker pool.
+ Description for Get available SKUs for scaling a worker pool.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3295,7 +2776,8 @@ def list_web_worker_usages(
self, resource_group_name, name, worker_pool_name, custom_headers=None, raw=False, **operation_config):
"""Get usage metrics for a worker pool of an App Service Environment.
- Get usage metrics for a worker pool of an App Service Environment.
+ Description for Get usage metrics for a worker pool of an App Service
+ Environment.
:param resource_group_name: Name of the resource group to which the
resource belongs.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_plans_operations.py
index 2ffd2e059506..18a4f845fcc6 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_plans_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_app_service_plans_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from msrest.polling import LROPoller, NoPolling
from msrestazure.polling.arm_polling import ARMPolling
@@ -27,7 +26,7 @@ class AppServicePlansOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -37,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -45,7 +44,7 @@ def list(
self, detailed=None, custom_headers=None, raw=False, **operation_config):
"""Get all App Service plans for a subscription.
- Get all App Service plans for a subscription.
+ Description for Get all App Service plans for a subscription.
:param detailed: Specify true to return all App Service
plan properties. The default is false, which returns a
@@ -119,7 +118,7 @@ def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Get all App Service plans in a resource group.
- Get all App Service plans in a resource group.
+ Description for Get all App Service plans in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -190,7 +189,7 @@ def get(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get an App Service plan.
- Get an App Service plan.
+ Description for Get an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -205,7 +204,8 @@ def get(
:return: AppServicePlan or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.AppServicePlan or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get.metadata['url']
@@ -235,9 +235,7 @@ def get(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -284,15 +282,13 @@ def _create_or_update_initial(
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 201, 202]:
+ if response.status_code not in [200, 202]:
raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('AppServicePlan', response)
- if response.status_code == 201:
- deserialized = self._deserialize('AppServicePlan', response)
if response.status_code == 202:
deserialized = self._deserialize('AppServicePlan', response)
@@ -306,7 +302,7 @@ def create_or_update(
self, resource_group_name, name, app_service_plan, custom_headers=None, raw=False, polling=True, **operation_config):
"""Creates or updates an App Service Plan.
- Creates or updates an App Service Plan.
+ Description for Creates or updates an App Service Plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -360,7 +356,7 @@ def delete(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Delete an App Service plan.
- Delete an App Service plan.
+ Description for Delete an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -374,7 +370,8 @@ def delete(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete.metadata['url']
@@ -403,9 +400,7 @@ def delete(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -416,7 +411,7 @@ def update(
self, resource_group_name, name, app_service_plan, custom_headers=None, raw=False, **operation_config):
"""Creates or updates an App Service Plan.
- Creates or updates an App Service Plan.
+ Description for Creates or updates an App Service Plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -488,7 +483,7 @@ def list_capabilities(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List all capabilities of an App Service plan.
- List all capabilities of an App Service plan.
+ Description for List all capabilities of an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -551,7 +546,8 @@ def get_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
"""Retrieve a Hybrid Connection in use in an App Service plan.
- Retrieve a Hybrid Connection in use in an App Service plan.
+ Description for Retrieve a Hybrid Connection in use in an App Service
+ plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -620,7 +616,8 @@ def delete_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
"""Delete a Hybrid Connection in use in an App Service plan.
- Delete a Hybrid Connection in use in an App Service plan.
+ Description for Delete a Hybrid Connection in use in an App Service
+ plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -638,7 +635,8 @@ def delete_hybrid_connection(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_hybrid_connection.metadata['url']
@@ -669,9 +667,7 @@ def delete_hybrid_connection(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -682,7 +678,7 @@ def list_hybrid_connection_keys(
self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
"""Get the send key name and value of a Hybrid Connection.
- Get the send key name and value of a Hybrid Connection.
+ Description for Get the send key name and value of a Hybrid Connection.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -751,7 +747,8 @@ def list_web_apps_by_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
"""Get all apps that use a Hybrid Connection in an App Service Plan.
- Get all apps that use a Hybrid Connection in an App Service Plan.
+ Description for Get all apps that use a Hybrid Connection in an App
+ Service Plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -831,8 +828,8 @@ def get_hybrid_connection_plan_limit(
"""Get the maximum number of Hybrid Connections allowed in an App Service
plan.
- Get the maximum number of Hybrid Connections allowed in an App Service
- plan.
+ Description for Get the maximum number of Hybrid Connections allowed in
+ an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -895,7 +892,8 @@ def list_hybrid_connections(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Retrieve all Hybrid Connections in use in an App Service plan.
- Retrieve all Hybrid Connections in use in an App Service plan.
+ Description for Retrieve all Hybrid Connections in use in an App
+ Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -965,174 +963,11 @@ def internal_paging(next_link=None):
return deserialized
list_hybrid_connections.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionRelays'}
- def list_metric_defintions(
- self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
- """Get metrics that can be queried for an App Service plan, and their
- definitions.
-
- Get metrics that can be queried for an App Service plan, and their
- definitions.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service plan.
- :type name: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetricDefinition
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricDefinitionPaged[~azure.mgmt.web.models.ResourceMetricDefinition]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_metric_defintions.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_metric_defintions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metricdefinitions'}
-
- def list_metrics(
- self, resource_group_name, name, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Get metrics for an App Service plan.
-
- Get metrics for an App Service plan.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the App Service plan.
- :type name: str
- :param details: Specify true to include instance details.
- The default is false.
- :type details: bool
- :param filter: Return only usages/metrics specified in the filter.
- Filter conforms to odata syntax. Example: $filter=(name.value eq
- 'Metric1' or name.value eq 'Metric2') and startTime eq
- 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain
- eq duration'[Hour|Minute|Day]'.
- :type filter: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
- :raises:
- :class:`DefaultErrorResponseException`
- """
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
-
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- return response
-
- # Deserialize response
- header_dict = None
- if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
-
- return deserialized
- list_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/metrics'}
-
def restart_web_apps(
self, resource_group_name, name, soft_restart=None, custom_headers=None, raw=False, **operation_config):
"""Restart all apps in an App Service plan.
- Restart all apps in an App Service plan.
+ Description for Restart all apps in an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1151,7 +986,8 @@ def restart_web_apps(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.restart_web_apps.metadata['url']
@@ -1182,9 +1018,7 @@ def restart_web_apps(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1195,7 +1029,7 @@ def list_web_apps(
self, resource_group_name, name, skip_token=None, filter=None, top=None, custom_headers=None, raw=False, **operation_config):
"""Get all apps associated with an App Service plan.
- Get all apps associated with an App Service plan.
+ Description for Get all apps associated with an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1284,7 +1118,7 @@ def get_server_farm_skus(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets all selectable SKUs for a given App Service Plan.
- Gets all selectable SKUs for a given App Service Plan.
+ Description for Gets all selectable SKUs for a given App Service Plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1346,7 +1180,7 @@ def list_usages(
self, resource_group_name, name, filter=None, custom_headers=None, raw=False, **operation_config):
"""Gets server farm usage information.
- Gets server farm usage information.
+ Description for Gets server farm usage information.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1426,7 +1260,8 @@ def list_vnets(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get all Virtual Networks associated with an App Service plan.
- Get all Virtual Networks associated with an App Service plan.
+ Description for Get all Virtual Networks associated with an App Service
+ plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1489,7 +1324,8 @@ def get_vnet_from_server_farm(
self, resource_group_name, name, vnet_name, custom_headers=None, raw=False, **operation_config):
"""Get a Virtual Network associated with an App Service plan.
- Get a Virtual Network associated with an App Service plan.
+ Description for Get a Virtual Network associated with an App Service
+ plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1506,7 +1342,8 @@ def get_vnet_from_server_farm(
:return: VnetInfo or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.VnetInfo or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_vnet_from_server_farm.metadata['url']
@@ -1537,9 +1374,7 @@ def get_vnet_from_server_farm(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -1556,7 +1391,7 @@ def get_vnet_gateway(
self, resource_group_name, name, vnet_name, gateway_name, custom_headers=None, raw=False, **operation_config):
"""Get a Virtual Network gateway.
- Get a Virtual Network gateway.
+ Description for Get a Virtual Network gateway.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1626,7 +1461,7 @@ def update_vnet_gateway(
self, resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers=None, raw=False, **operation_config):
"""Update a Virtual Network gateway.
- Update a Virtual Network gateway.
+ Description for Update a Virtual Network gateway.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1703,8 +1538,8 @@ def list_routes_for_vnet(
"""Get all routes that are associated with a Virtual Network in an App
Service plan.
- Get all routes that are associated with a Virtual Network in an App
- Service plan.
+ Description for Get all routes that are associated with a Virtual
+ Network in an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1770,7 +1605,7 @@ def get_route_for_vnet(
self, resource_group_name, name, vnet_name, route_name, custom_headers=None, raw=False, **operation_config):
"""Get a Virtual Network route in an App Service plan.
- Get a Virtual Network route in an App Service plan.
+ Description for Get a Virtual Network route in an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1789,7 +1624,8 @@ def get_route_for_vnet(
:return: list or ClientRawResponse if raw=true
:rtype: list[~azure.mgmt.web.models.VnetRoute] or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_route_for_vnet.metadata['url']
@@ -1821,9 +1657,7 @@ def get_route_for_vnet(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -1840,7 +1674,8 @@ def create_or_update_vnet_route(
self, resource_group_name, name, vnet_name, route_name, route, custom_headers=None, raw=False, **operation_config):
"""Create or update a Virtual Network route in an App Service plan.
- Create or update a Virtual Network route in an App Service plan.
+ Description for Create or update a Virtual Network route in an App
+ Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1861,7 +1696,8 @@ def create_or_update_vnet_route(
:return: VnetRoute or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.VnetRoute or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.create_or_update_vnet_route.metadata['url']
@@ -1897,9 +1733,7 @@ def create_or_update_vnet_route(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 400, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -1916,7 +1750,7 @@ def delete_vnet_route(
self, resource_group_name, name, vnet_name, route_name, custom_headers=None, raw=False, **operation_config):
"""Delete a Virtual Network route in an App Service plan.
- Delete a Virtual Network route in an App Service plan.
+ Description for Delete a Virtual Network route in an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1934,7 +1768,8 @@ def delete_vnet_route(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_vnet_route.metadata['url']
@@ -1965,9 +1800,7 @@ def delete_vnet_route(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1978,7 +1811,8 @@ def update_vnet_route(
self, resource_group_name, name, vnet_name, route_name, route, custom_headers=None, raw=False, **operation_config):
"""Create or update a Virtual Network route in an App Service plan.
- Create or update a Virtual Network route in an App Service plan.
+ Description for Create or update a Virtual Network route in an App
+ Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1999,7 +1833,8 @@ def update_vnet_route(
:return: VnetRoute or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.VnetRoute or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.update_vnet_route.metadata['url']
@@ -2035,9 +1870,7 @@ def update_vnet_route(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 400, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -2054,7 +1887,7 @@ def reboot_worker(
self, resource_group_name, name, worker_name, custom_headers=None, raw=False, **operation_config):
"""Reboot a worker machine in an App Service plan.
- Reboot a worker machine in an App Service plan.
+ Description for Reboot a worker machine in an App Service plan.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2071,7 +1904,8 @@ def reboot_worker(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reboot_worker.metadata['url']
@@ -2101,9 +1935,7 @@ def reboot_worker(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificate_registration_provider_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificate_registration_provider_operations.py
index 3e396400d353..b176584d30b9 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificate_registration_provider_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificate_registration_provider_operations.py
@@ -24,7 +24,7 @@ class CertificateRegistrationProviderOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -43,8 +43,8 @@ def list_operations(
"""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.
+ Description for Implements Csm operations Api to exposes the list of
+ available Csm Apis under the resource provider.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificates_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificates_operations.py
index affed9da9560..ee9e7085d11e 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificates_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_certificates_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from .. import models
@@ -25,7 +24,7 @@ class CertificatesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-11-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -35,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-11-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -43,7 +42,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all certificates for a subscription.
- Get all certificates for a subscription.
+ Description for Get all certificates for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -110,7 +109,7 @@ def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Get all certificates in a resource group.
- Get all certificates in a resource group.
+ Description for Get all certificates in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -181,7 +180,7 @@ def get(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get a certificate.
- Get a certificate.
+ Description for Get a certificate.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -244,7 +243,7 @@ def create_or_update(
self, resource_group_name, name, certificate_envelope, custom_headers=None, raw=False, **operation_config):
"""Create or update a certificate.
- Create or update a certificate.
+ Description for Create or update a certificate.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -314,7 +313,7 @@ def delete(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Delete a certificate.
- Delete a certificate.
+ Description for Delete a certificate.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -328,7 +327,8 @@ def delete(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete.metadata['url']
@@ -357,9 +357,7 @@ def delete(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -370,7 +368,7 @@ def update(
self, resource_group_name, name, certificate_envelope, custom_headers=None, raw=False, **operation_config):
"""Create or update a certificate.
- Create or update a certificate.
+ Description for Create or update a certificate.
:param resource_group_name: Name of the resource group to which the
resource belongs.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_deleted_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_deleted_web_apps_operations.py
index d7e5ff21324a..9a43d3fb48f8 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_deleted_web_apps_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_deleted_web_apps_operations.py
@@ -24,7 +24,7 @@ class DeletedWebAppsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -42,7 +42,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all deleted apps for a subscription.
- Get all deleted apps for a subscription.
+ Description for Get all deleted apps for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -109,7 +109,7 @@ def list_by_location(
self, location, custom_headers=None, raw=False, **operation_config):
"""Get all deleted apps for a subscription at location.
- Get all deleted apps for a subscription at location.
+ Description for Get all deleted apps for a subscription at location.
:param location:
:type location: str
@@ -179,7 +179,7 @@ def get_deleted_web_app_by_location(
self, location, deleted_site_id, custom_headers=None, raw=False, **operation_config):
"""Get deleted app for a subscription at location.
- Get deleted app for a subscription at location.
+ Description for Get deleted app for a subscription at location.
:param location:
:type location: str
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_diagnostics_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_diagnostics_operations.py
index e987ced13439..2ffd2fdb6c90 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_diagnostics_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_diagnostics_operations.py
@@ -24,7 +24,7 @@ class DiagnosticsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -42,7 +42,7 @@ def list_hosting_environment_detector_responses(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List Hosting Environment Detector Responses.
- List Hosting Environment Detector Responses.
+ Description for List Hosting Environment Detector Responses.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -116,7 +116,7 @@ def get_hosting_environment_detector_response(
self, resource_group_name, name, detector_name, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Get Hosting Environment Detector Response.
- Get Hosting Environment Detector Response.
+ Description for Get Hosting Environment Detector Response.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -194,7 +194,7 @@ def list_site_detector_responses(
self, resource_group_name, site_name, custom_headers=None, raw=False, **operation_config):
"""List Site Detector Responses.
- List Site Detector Responses.
+ Description for List Site Detector Responses.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -268,7 +268,7 @@ def get_site_detector_response(
self, resource_group_name, site_name, detector_name, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Get site detector response.
- Get site detector response.
+ Description for Get site detector response.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -346,7 +346,7 @@ def list_site_diagnostic_categories(
self, resource_group_name, site_name, custom_headers=None, raw=False, **operation_config):
"""Get Diagnostics Categories.
- Get Diagnostics Categories.
+ Description for Get Diagnostics Categories.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -420,7 +420,7 @@ def get_site_diagnostic_category(
self, resource_group_name, site_name, diagnostic_category, custom_headers=None, raw=False, **operation_config):
"""Get Diagnostics Category.
- Get Diagnostics Category.
+ Description for Get Diagnostics Category.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -486,7 +486,7 @@ def list_site_analyses(
self, resource_group_name, site_name, diagnostic_category, custom_headers=None, raw=False, **operation_config):
"""Get Site Analyses.
- Get Site Analyses.
+ Description for Get Site Analyses.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -563,7 +563,7 @@ def get_site_analysis(
self, resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers=None, raw=False, **operation_config):
"""Get Site Analysis.
- Get Site Analysis.
+ Description for Get Site Analysis.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -579,8 +579,8 @@ def get_site_analysis(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: DiagnosticAnalysis or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.DiagnosticAnalysis or
+ :return: AnalysisDefinition or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.AnalysisDefinition or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
@@ -619,7 +619,7 @@ def get_site_analysis(
deserialized = None
if response.status_code == 200:
- deserialized = self._deserialize('DiagnosticAnalysis', response)
+ deserialized = self._deserialize('AnalysisDefinition', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
@@ -632,7 +632,7 @@ def execute_site_analysis(
self, resource_group_name, site_name, diagnostic_category, analysis_name, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Execute Analysis.
- Execute Analysis.
+ Description for Execute Analysis.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -713,7 +713,7 @@ def list_site_detectors(
self, resource_group_name, site_name, diagnostic_category, custom_headers=None, raw=False, **operation_config):
"""Get Detectors.
- Get Detectors.
+ Description for Get Detectors.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -790,7 +790,7 @@ def get_site_detector(
self, resource_group_name, site_name, diagnostic_category, detector_name, custom_headers=None, raw=False, **operation_config):
"""Get Detector.
- Get Detector.
+ Description for Get Detector.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -806,62 +806,51 @@ def get_site_detector(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of DetectorDefinition
- :rtype:
- ~azure.mgmt.web.models.DetectorDefinitionPaged[~azure.mgmt.web.models.DetectorDefinition]
+ :return: DetectorDefinition or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.DetectorDefinition or
+ ~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
"""
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.get_site_detector.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'siteName': self._serialize.url("site_name", site_name, 'str'),
- 'diagnosticCategory': self._serialize.url("diagnostic_category", diagnostic_category, 'str'),
- 'detectorName': self._serialize.url("detector_name", detector_name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+ # Construct URL
+ url = self.get_site_detector.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'siteName': self._serialize.url("site_name", site_name, 'str'),
+ 'diagnosticCategory': self._serialize.url("diagnostic_category", diagnostic_category, 'str'),
+ 'detectorName': self._serialize.url("detector_name", detector_name, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
- response = self._client.send(request, stream=False, **operation_config)
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
- return response
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('DetectorDefinition', response)
- # Deserialize response
- header_dict = None
if raw:
- header_dict = {}
- deserialized = models.DetectorDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
return deserialized
get_site_detector.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}'}
@@ -870,7 +859,7 @@ def execute_site_detector(
self, resource_group_name, site_name, detector_name, diagnostic_category, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Execute Detector.
- Execute Detector.
+ Description for Execute Detector.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -951,7 +940,7 @@ def list_site_detector_responses_slot(
self, resource_group_name, site_name, slot, custom_headers=None, raw=False, **operation_config):
"""List Site Detector Responses.
- List Site Detector Responses.
+ Description for List Site Detector Responses.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1028,7 +1017,7 @@ def get_site_detector_response_slot(
self, resource_group_name, site_name, detector_name, slot, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Get site detector response.
- Get site detector response.
+ Description for Get site detector response.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1109,7 +1098,7 @@ def list_site_diagnostic_categories_slot(
self, resource_group_name, site_name, slot, custom_headers=None, raw=False, **operation_config):
"""Get Diagnostics Categories.
- Get Diagnostics Categories.
+ Description for Get Diagnostics Categories.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1186,7 +1175,7 @@ def get_site_diagnostic_category_slot(
self, resource_group_name, site_name, diagnostic_category, slot, custom_headers=None, raw=False, **operation_config):
"""Get Diagnostics Category.
- Get Diagnostics Category.
+ Description for Get Diagnostics Category.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1255,7 +1244,7 @@ def list_site_analyses_slot(
self, resource_group_name, site_name, diagnostic_category, slot, custom_headers=None, raw=False, **operation_config):
"""Get Site Analyses.
- Get Site Analyses.
+ Description for Get Site Analyses.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1335,7 +1324,7 @@ def get_site_analysis_slot(
self, resource_group_name, site_name, diagnostic_category, analysis_name, slot, custom_headers=None, raw=False, **operation_config):
"""Get Site Analysis.
- Get Site Analysis.
+ Description for Get Site Analysis.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1353,8 +1342,8 @@ def get_site_analysis_slot(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: DiagnosticAnalysis or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.DiagnosticAnalysis or
+ :return: AnalysisDefinition or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.AnalysisDefinition or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
@@ -1394,7 +1383,7 @@ def get_site_analysis_slot(
deserialized = None
if response.status_code == 200:
- deserialized = self._deserialize('DiagnosticAnalysis', response)
+ deserialized = self._deserialize('AnalysisDefinition', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
@@ -1407,7 +1396,7 @@ def execute_site_analysis_slot(
self, resource_group_name, site_name, diagnostic_category, analysis_name, slot, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Execute Analysis.
- Execute Analysis.
+ Description for Execute Analysis.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1491,7 +1480,7 @@ def list_site_detectors_slot(
self, resource_group_name, site_name, diagnostic_category, slot, custom_headers=None, raw=False, **operation_config):
"""Get Detectors.
- Get Detectors.
+ Description for Get Detectors.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1571,7 +1560,7 @@ def get_site_detector_slot(
self, resource_group_name, site_name, diagnostic_category, detector_name, slot, custom_headers=None, raw=False, **operation_config):
"""Get Detector.
- Get Detector.
+ Description for Get Detector.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1589,63 +1578,52 @@ def get_site_detector_slot(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of DetectorDefinition
- :rtype:
- ~azure.mgmt.web.models.DetectorDefinitionPaged[~azure.mgmt.web.models.DetectorDefinition]
+ :return: DetectorDefinition or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.DetectorDefinition or
+ ~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
"""
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.get_site_detector_slot.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'siteName': self._serialize.url("site_name", site_name, 'str'),
- 'diagnosticCategory': self._serialize.url("diagnostic_category", diagnostic_category, 'str'),
- 'detectorName': self._serialize.url("detector_name", detector_name, 'str'),
- 'slot': self._serialize.url("slot", slot, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+ # Construct URL
+ url = self.get_site_detector_slot.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'siteName': self._serialize.url("site_name", site_name, 'str'),
+ 'diagnosticCategory': self._serialize.url("diagnostic_category", diagnostic_category, 'str'),
+ 'detectorName': self._serialize.url("detector_name", detector_name, 'str'),
+ 'slot': self._serialize.url("slot", slot, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
- response = self._client.send(request, stream=False, **operation_config)
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
- return response
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('DetectorDefinition', response)
- # Deserialize response
- header_dict = None
if raw:
- header_dict = {}
- deserialized = models.DetectorDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
return deserialized
get_site_detector_slot.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}'}
@@ -1654,7 +1632,7 @@ def execute_site_detector_slot(
self, resource_group_name, site_name, detector_name, diagnostic_category, slot, start_time=None, end_time=None, time_grain=None, custom_headers=None, raw=False, **operation_config):
"""Execute Detector.
- Execute Detector.
+ Description for Execute Detector.
:param resource_group_name: Name of the resource group to which the
resource belongs.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domain_registration_provider_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domain_registration_provider_operations.py
index 4598629ba7f2..75ff040e7843 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domain_registration_provider_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domain_registration_provider_operations.py
@@ -24,7 +24,7 @@ class DomainRegistrationProviderOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -43,8 +43,8 @@ def list_operations(
"""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.
+ Description for Implements Csm operations Api to exposes the list of
+ available Csm Apis under the resource provider.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domains_operations.py
index 9d9901828b1f..145fa755787b 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domains_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_domains_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from msrest.polling import LROPoller, NoPolling
from msrestazure.polling.arm_polling import ARMPolling
@@ -27,7 +26,7 @@ class DomainsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -37,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -45,7 +44,7 @@ def check_availability(
self, name=None, custom_headers=None, raw=False, **operation_config):
"""Check if a domain is available for registration.
- Check if a domain is available for registration.
+ Description for Check if a domain is available for registration.
:param name: Name of the object.
:type name: str
@@ -54,9 +53,9 @@ def check_availability(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: DomainAvailablilityCheckResult or ClientRawResponse if
+ :return: DomainAvailabilityCheckResult or ClientRawResponse if
raw=true
- :rtype: ~azure.mgmt.web.models.DomainAvailablilityCheckResult or
+ :rtype: ~azure.mgmt.web.models.DomainAvailabilityCheckResult or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
@@ -97,7 +96,7 @@ def check_availability(
deserialized = None
if response.status_code == 200:
- deserialized = self._deserialize('DomainAvailablilityCheckResult', response)
+ deserialized = self._deserialize('DomainAvailabilityCheckResult', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
@@ -110,7 +109,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all domains in a subscription.
- Get all domains in a subscription.
+ Description for Get all domains in a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -177,7 +176,8 @@ def get_control_center_sso_request(
self, custom_headers=None, raw=False, **operation_config):
"""Generate a single sign-on request for the domain management portal.
- Generate a single sign-on request for the domain management portal.
+ Description for Generate a single sign-on request for the domain
+ management portal.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -234,7 +234,7 @@ def list_recommendations(
self, keywords=None, max_domain_recommendations=None, custom_headers=None, raw=False, **operation_config):
"""Get domain name recommendations based on keywords.
- Get domain name recommendations based on keywords.
+ Description for Get domain name recommendations based on keywords.
:param keywords: Keywords to be used for generating domain
recommendations.
@@ -312,7 +312,7 @@ def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Get all domains in a resource group.
- Get all domains in a resource group.
+ Description for Get all domains in a resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -383,7 +383,7 @@ def get(
self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config):
"""Get a domain.
- Get a domain.
+ Description for Get a domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -496,7 +496,7 @@ def create_or_update(
self, resource_group_name, domain_name, domain, custom_headers=None, raw=False, polling=True, **operation_config):
"""Creates or updates a domain.
- Creates or updates a domain.
+ Description for Creates or updates a domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -550,7 +550,7 @@ def delete(
self, resource_group_name, domain_name, force_hard_delete_domain=None, custom_headers=None, raw=False, **operation_config):
"""Delete a domain.
- Delete a domain.
+ Description for Delete a domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -568,7 +568,8 @@ def delete(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete.metadata['url']
@@ -599,9 +600,7 @@ def delete(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -612,7 +611,7 @@ def update(
self, resource_group_name, domain_name, domain, custom_headers=None, raw=False, **operation_config):
"""Creates or updates a domain.
- Creates or updates a domain.
+ Description for Creates or updates a domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -683,7 +682,7 @@ def list_ownership_identifiers(
self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config):
"""Lists domain ownership identifiers.
- Lists domain ownership identifiers.
+ Description for Lists domain ownership identifiers.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -757,7 +756,7 @@ def get_ownership_identifier(
self, resource_group_name, domain_name, name, custom_headers=None, raw=False, **operation_config):
"""Get ownership identifier for domain.
- Get ownership identifier for domain.
+ Description for Get ownership identifier for domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -824,8 +823,8 @@ def create_or_update_ownership_identifier(
"""Creates an ownership identifier for a domain or updates identifier
details for an existing identifer.
- Creates an ownership identifier for a domain or updates identifier
- details for an existing identifer.
+ Description for Creates an ownership identifier for a domain or updates
+ identifier details for an existing identifer.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -901,7 +900,7 @@ def delete_ownership_identifier(
self, resource_group_name, domain_name, name, custom_headers=None, raw=False, **operation_config):
"""Delete ownership identifier for domain.
- Delete ownership identifier for domain.
+ Description for Delete ownership identifier for domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -917,7 +916,8 @@ def delete_ownership_identifier(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_ownership_identifier.metadata['url']
@@ -947,9 +947,7 @@ def delete_ownership_identifier(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -961,8 +959,8 @@ def update_ownership_identifier(
"""Creates an ownership identifier for a domain or updates identifier
details for an existing identifer.
- Creates an ownership identifier for a domain or updates identifier
- details for an existing identifer.
+ Description for Creates an ownership identifier for a domain or updates
+ identifier details for an existing identifer.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1038,7 +1036,7 @@ def renew(
self, resource_group_name, domain_name, custom_headers=None, raw=False, **operation_config):
"""Renew a domain.
- Renew a domain.
+ Description for Renew a domain.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1052,7 +1050,8 @@ def renew(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.renew.metadata['url']
@@ -1080,10 +1079,8 @@ def renew(
request = self._client.post(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 202, 204, 400, 500]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200, 202, 204]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_provider_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_provider_operations.py
index c5668c4c84d7..a68601957d81 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_provider_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_provider_operations.py
@@ -24,7 +24,7 @@ class ProviderOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -42,7 +42,8 @@ def get_available_stacks(
self, os_type_selected=None, custom_headers=None, raw=False, **operation_config):
"""Get available application frameworks and their versions.
- Get available application frameworks and their versions.
+ Description for Get available application frameworks and their
+ versions.
:param os_type_selected: Possible values include: 'Windows', 'Linux',
'WindowsFunctions', 'LinuxFunctions'
@@ -52,9 +53,9 @@ def get_available_stacks(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of ApplicationStack
+ :return: An iterator like instance of ApplicationStackResource
:rtype:
- ~azure.mgmt.web.models.ApplicationStackPaged[~azure.mgmt.web.models.ApplicationStack]
+ ~azure.mgmt.web.models.ApplicationStackResourcePaged[~azure.mgmt.web.models.ApplicationStackResource]
:raises:
:class:`DefaultErrorResponseException`
"""
@@ -101,7 +102,7 @@ def internal_paging(next_link=None):
header_dict = None
if raw:
header_dict = {}
- deserialized = models.ApplicationStackPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ deserialized = models.ApplicationStackResourcePaged(internal_paging, self._deserialize.dependencies, header_dict)
return deserialized
get_available_stacks.metadata = {'url': '/providers/Microsoft.Web/availableStacks'}
@@ -111,8 +112,8 @@ def list_operations(
"""Gets all available operations for the Microsoft.Web resource provider.
Also exposes resource metric definitions.
- Gets all available operations for the Microsoft.Web resource provider.
- Also exposes resource metric definitions.
+ Description for Gets all available operations for the Microsoft.Web
+ resource provider. Also exposes resource metric definitions.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -175,7 +176,8 @@ def get_available_stacks_on_prem(
self, os_type_selected=None, custom_headers=None, raw=False, **operation_config):
"""Get available application frameworks and their versions.
- Get available application frameworks and their versions.
+ Description for Get available application frameworks and their
+ versions.
:param os_type_selected: Possible values include: 'Windows', 'Linux',
'WindowsFunctions', 'LinuxFunctions'
@@ -185,9 +187,9 @@ def get_available_stacks_on_prem(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of ApplicationStack
+ :return: An iterator like instance of ApplicationStackResource
:rtype:
- ~azure.mgmt.web.models.ApplicationStackPaged[~azure.mgmt.web.models.ApplicationStack]
+ ~azure.mgmt.web.models.ApplicationStackResourcePaged[~azure.mgmt.web.models.ApplicationStackResource]
:raises:
:class:`DefaultErrorResponseException`
"""
@@ -238,7 +240,7 @@ def internal_paging(next_link=None):
header_dict = None
if raw:
header_dict = {}
- deserialized = models.ApplicationStackPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ deserialized = models.ApplicationStackResourcePaged(internal_paging, self._deserialize.dependencies, header_dict)
return deserialized
get_available_stacks_on_prem.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Web/availableStacks'}
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_recommendations_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_recommendations_operations.py
index f8331c8c5add..e1c1be0cdbdb 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_recommendations_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_recommendations_operations.py
@@ -11,7 +11,6 @@
import uuid
from msrest.pipeline import ClientRawResponse
-from msrestazure.azure_exceptions import CloudError
from .. import models
@@ -25,7 +24,7 @@ class RecommendationsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -35,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -43,7 +42,7 @@ def list(
self, featured=None, filter=None, custom_headers=None, raw=False, **operation_config):
"""List all recommendations for a subscription.
- List all recommendations for a subscription.
+ Description for List all recommendations for a subscription.
:param featured: Specify true to return only the most
critical recommendations. The default is false, which
@@ -123,7 +122,8 @@ def reset_all_filters(
self, custom_headers=None, raw=False, **operation_config):
"""Reset all recommendation opt-out settings for a subscription.
- Reset all recommendation opt-out settings for a subscription.
+ Description for Reset all recommendation opt-out settings for a
+ subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -132,7 +132,8 @@ def reset_all_filters(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reset_all_filters.metadata['url']
@@ -159,9 +160,7 @@ def reset_all_filters(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -173,8 +172,8 @@ def disable_recommendation_for_subscription(
"""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.
+ Description for Disables the specified rule so it will not apply to a
+ subscription in the future.
:param name: Rule name
:type name: str
@@ -185,7 +184,8 @@ def disable_recommendation_for_subscription(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.disable_recommendation_for_subscription.metadata['url']
@@ -213,9 +213,7 @@ def disable_recommendation_for_subscription(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -227,8 +225,8 @@ def list_history_for_hosting_environment(
"""Get past recommendations for an app, optionally specified by the time
range.
- Get past recommendations for an app, optionally specified by the time
- range.
+ Description for Get past recommendations for an app, optionally
+ specified by the time range.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -315,7 +313,7 @@ def list_recommended_rules_for_hosting_environment(
self, resource_group_name, hosting_environment_name, featured=None, filter=None, custom_headers=None, raw=False, **operation_config):
"""Get all recommendations for an app.
- Get all recommendations for an app.
+ Description for Get all recommendations for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -401,7 +399,7 @@ def disable_all_for_hosting_environment(
self, resource_group_name, environment_name, hosting_environment_name, custom_headers=None, raw=False, **operation_config):
"""Disable all recommendations for an app.
- Disable all recommendations for an app.
+ Description for Disable all recommendations for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -417,7 +415,8 @@ def disable_all_for_hosting_environment(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.disable_all_for_hosting_environment.metadata['url']
@@ -447,9 +446,7 @@ def disable_all_for_hosting_environment(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -460,7 +457,7 @@ def reset_all_filters_for_hosting_environment(
self, resource_group_name, environment_name, hosting_environment_name, custom_headers=None, raw=False, **operation_config):
"""Reset all recommendation opt-out settings for an app.
- Reset all recommendation opt-out settings for an app.
+ Description for Reset all recommendation opt-out settings for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -476,7 +473,8 @@ def reset_all_filters_for_hosting_environment(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reset_all_filters_for_hosting_environment.metadata['url']
@@ -506,9 +504,7 @@ def reset_all_filters_for_hosting_environment(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -519,7 +515,7 @@ def get_rule_details_by_hosting_environment(
self, resource_group_name, hosting_environment_name, name, update_seen=None, recommendation_id=None, custom_headers=None, raw=False, **operation_config):
"""Get a recommendation rule for an app.
- Get a recommendation rule for an app.
+ Description for Get a recommendation rule for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -596,7 +592,7 @@ def disable_recommendation_for_hosting_environment(
self, resource_group_name, environment_name, name, hosting_environment_name, custom_headers=None, raw=False, **operation_config):
"""Disables the specific rule for a web site permanently.
- Disables the specific rule for a web site permanently.
+ Description for Disables the specific rule for a web site permanently.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -614,7 +610,8 @@ def disable_recommendation_for_hosting_environment(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.disable_recommendation_for_hosting_environment.metadata['url']
@@ -645,9 +642,7 @@ def disable_recommendation_for_hosting_environment(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -659,8 +654,8 @@ def list_history_for_web_app(
"""Get past recommendations for an app, optionally specified by the time
range.
- Get past recommendations for an app, optionally specified by the time
- range.
+ Description for Get past recommendations for an app, optionally
+ specified by the time range.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -747,7 +742,7 @@ def list_recommended_rules_for_web_app(
self, resource_group_name, site_name, featured=None, filter=None, custom_headers=None, raw=False, **operation_config):
"""Get all recommendations for an app.
- Get all recommendations for an app.
+ Description for Get all recommendations for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -833,7 +828,7 @@ def disable_all_for_web_app(
self, resource_group_name, site_name, custom_headers=None, raw=False, **operation_config):
"""Disable all recommendations for an app.
- Disable all recommendations for an app.
+ Description for Disable all recommendations for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -847,7 +842,8 @@ def disable_all_for_web_app(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.disable_all_for_web_app.metadata['url']
@@ -876,9 +872,7 @@ def disable_all_for_web_app(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -889,7 +883,7 @@ def reset_all_filters_for_web_app(
self, resource_group_name, site_name, custom_headers=None, raw=False, **operation_config):
"""Reset all recommendation opt-out settings for an app.
- Reset all recommendation opt-out settings for an app.
+ Description for Reset all recommendation opt-out settings for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -903,7 +897,8 @@ def reset_all_filters_for_web_app(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.reset_all_filters_for_web_app.metadata['url']
@@ -932,9 +927,7 @@ def reset_all_filters_for_web_app(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -945,7 +938,7 @@ def get_rule_details_by_web_app(
self, resource_group_name, site_name, name, update_seen=None, recommendation_id=None, custom_headers=None, raw=False, **operation_config):
"""Get a recommendation rule for an app.
- Get a recommendation rule for an app.
+ Description for Get a recommendation rule for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1022,7 +1015,7 @@ def disable_recommendation_for_site(
self, resource_group_name, site_name, name, custom_headers=None, raw=False, **operation_config):
"""Disables the specific rule for a web site permanently.
- Disables the specific rule for a web site permanently.
+ Description for Disables the specific rule for a web site permanently.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1038,7 +1031,8 @@ def disable_recommendation_for_site(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.disable_recommendation_for_site.metadata['url']
@@ -1068,9 +1062,7 @@ def disable_recommendation_for_site(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_resource_health_metadata_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_resource_health_metadata_operations.py
index 15264c2cb04a..046174edd0d8 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_resource_health_metadata_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_resource_health_metadata_operations.py
@@ -24,7 +24,7 @@ class ResourceHealthMetadataOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -42,7 +42,8 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""List all ResourceHealthMetadata for all sites in the subscription.
- List all ResourceHealthMetadata for all sites in the subscription.
+ Description for List all ResourceHealthMetadata for all sites in the
+ subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -110,8 +111,8 @@ def list_by_resource_group(
"""List all ResourceHealthMetadata for all sites in the resource group in
the subscription.
- List all ResourceHealthMetadata for all sites in the resource group in
- the subscription.
+ Description for List all ResourceHealthMetadata for all sites in the
+ resource group in the subscription.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -183,8 +184,8 @@ def list_by_site(
"""Gets the category of ResourceHealthMetadata to use for the given site
as a collection.
- Gets the category of ResourceHealthMetadata to use for the given site
- as a collection.
+ Description for Gets the category of ResourceHealthMetadata to use for
+ the given site as a collection.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -258,7 +259,8 @@ def get_by_site(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the category of ResourceHealthMetadata to use for the given site.
- Gets the category of ResourceHealthMetadata to use for the given site.
+ Description for Gets the category of ResourceHealthMetadata to use for
+ the given site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -322,8 +324,8 @@ def list_by_site_slot(
"""Gets the category of ResourceHealthMetadata to use for the given site
as a collection.
- Gets the category of ResourceHealthMetadata to use for the given site
- as a collection.
+ Description for Gets the category of ResourceHealthMetadata to use for
+ the given site as a collection.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -401,7 +403,8 @@ def get_by_site_slot(
self, resource_group_name, name, slot, custom_headers=None, raw=False, **operation_config):
"""Gets the category of ResourceHealthMetadata to use for the given site.
- Gets the category of ResourceHealthMetadata to use for the given site.
+ Description for Gets the category of ResourceHealthMetadata to use for
+ the given site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_top_level_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_top_level_domains_operations.py
index ce5bcfdccbf8..96be37fa2914 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_top_level_domains_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_top_level_domains_operations.py
@@ -24,7 +24,7 @@ class TopLevelDomainsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-02-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-02-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -42,7 +42,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all top-level domains supported for registration.
- Get all top-level domains supported for registration.
+ Description for Get all top-level domains supported for registration.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -109,7 +109,7 @@ def get(
self, name, custom_headers=None, raw=False, **operation_config):
"""Get details of a top-level domain.
- Get details of a top-level domain.
+ Description for Get details of a top-level domain.
:param name: Name of the top-level domain.
:type name: str
@@ -169,8 +169,8 @@ def list_agreements(
"""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.
+ Description for Gets all legal agreements that user needs to accept
+ before purchasing a domain.
:param name: Name of the top-level domain.
:type name: str
diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_web_apps_operations.py
index 60d1e0de8297..4bbc089d63fe 100644
--- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_web_apps_operations.py
+++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/operations/_web_apps_operations.py
@@ -27,7 +27,7 @@ class WebAppsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
- :ivar api_version: API Version. Constant value: "2018-11-01".
+ :ivar api_version: API Version. Constant value: "2019-08-01".
"""
models = models
@@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
- self.api_version = "2018-11-01"
+ self.api_version = "2019-08-01"
self.config = config
@@ -45,7 +45,7 @@ def list(
self, custom_headers=None, raw=False, **operation_config):
"""Get all apps for a subscription.
- Get all apps for a subscription.
+ Description for Get all apps for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
@@ -111,7 +111,8 @@ def list_by_resource_group(
self, resource_group_name, include_slots=None, custom_headers=None, raw=False, **operation_config):
"""Gets all web, mobile, and API apps in the specified resource group.
- Gets all web, mobile, and API apps in the specified resource group.
+ Description for Gets all web, mobile, and API apps in the specified
+ resource group.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -187,7 +188,7 @@ def get(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the details of a web, mobile, or API app.
- Gets the details of a web, mobile, or API app.
+ Description for Gets the details of a web, mobile, or API app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -202,7 +203,8 @@ def get(
:return: Site or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.Site or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get.metadata['url']
@@ -232,9 +234,7 @@ def get(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -302,8 +302,8 @@ def create_or_update(
"""Creates a new web, mobile, or API app in an existing resource group, or
updates an existing app.
- Creates a new web, mobile, or API app in an existing resource group, or
- updates an existing app.
+ Description for Creates a new web, mobile, or API app in an existing
+ resource group, or updates an existing app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -359,7 +359,8 @@ def delete(
self, resource_group_name, name, delete_metrics=None, delete_empty_server_farm=None, custom_headers=None, raw=False, **operation_config):
"""Deletes a web, mobile, or API app, or one of the deployment slots.
- Deletes a web, mobile, or API app, or one of the deployment slots.
+ Description for Deletes a web, mobile, or API app, or one of the
+ deployment slots.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -379,7 +380,8 @@ def delete(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete.metadata['url']
@@ -412,9 +414,7 @@ def delete(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -426,8 +426,8 @@ def update(
"""Creates a new web, mobile, or API app in an existing resource group, or
updates an existing app.
- Creates a new web, mobile, or API app in an existing resource group, or
- updates an existing app.
+ Description for Creates a new web, mobile, or API app in an existing
+ resource group, or updates an existing app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -500,7 +500,7 @@ def analyze_custom_hostname(
self, resource_group_name, name, host_name=None, custom_headers=None, raw=False, **operation_config):
"""Analyze a custom hostname.
- Analyze a custom hostname.
+ Description for Analyze a custom hostname.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -568,8 +568,8 @@ def apply_slot_config_to_production(
"""Applies the configuration settings from the target slot onto the
current slot.
- Applies the configuration settings from the target slot onto the
- current slot.
+ Description for Applies the configuration settings from the target slot
+ onto the current slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -588,7 +588,8 @@ def apply_slot_config_to_production(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
slot_swap_entity = models.CsmSlotEntity(target_slot=target_slot, preserve_vnet=preserve_vnet)
@@ -623,9 +624,7 @@ def apply_slot_config_to_production(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -636,7 +635,7 @@ def backup(
self, resource_group_name, name, request, custom_headers=None, raw=False, **operation_config):
"""Creates a backup of an app.
- Creates a backup of an app.
+ Description for Creates a backup of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -706,7 +705,7 @@ def list_backups(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets existing backups of an app.
- Gets existing backups of an app.
+ Description for Gets existing backups of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -780,7 +779,7 @@ def get_backup_status(
self, resource_group_name, name, backup_id, custom_headers=None, raw=False, **operation_config):
"""Gets a backup of an app by its ID.
- Gets a backup of an app by its ID.
+ Description for Gets a backup of an app by its ID.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -846,7 +845,7 @@ def delete_backup(
self, resource_group_name, name, backup_id, custom_headers=None, raw=False, **operation_config):
"""Deletes a backup of an app by its ID.
- Deletes a backup of an app by its ID.
+ Description for Deletes a backup of an app by its ID.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -862,7 +861,8 @@ def delete_backup(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_backup.metadata['url']
@@ -892,9 +892,7 @@ def delete_backup(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -908,10 +906,10 @@ def list_backup_status_secrets(
Also can be used to update the SAS URL for the backup if a new URL is
passed in the request body.
- Gets status of a web app backup that may be in progress, including
- secrets associated with the backup, such as the Azure Storage SAS URL.
- Also can be used to update the SAS URL for the backup if a new URL is
- passed in the request body.
+ Description for Gets status of a web app backup that may be in
+ progress, including secrets associated with the backup, such as the
+ Azure Storage SAS URL. Also can be used to update the SAS URL for the
+ backup if a new URL is passed in the request body.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1014,9 +1012,7 @@ def _restore_initial(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 202]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1027,8 +1023,8 @@ def restore(
"""Restores a specific backup to another app (or deployment slot, if
specified).
- Restores a specific backup to another app (or deployment slot, if
- specified).
+ Description for Restores a specific backup to another app (or
+ deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1048,7 +1044,8 @@ def restore(
ClientRawResponse if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._restore_initial(
resource_group_name=resource_group_name,
@@ -1078,7 +1075,7 @@ def list_configurations(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List the configurations of an app.
- List the configurations of an app.
+ Description for List the configurations of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1152,7 +1149,7 @@ def update_application_settings(
self, resource_group_name, name, kind=None, properties=None, custom_headers=None, raw=False, **operation_config):
"""Replaces the application settings of an app.
- Replaces the application settings of an app.
+ Description for Replaces the application settings of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1225,7 +1222,7 @@ def list_application_settings(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the application settings of an app.
- Gets the application settings of an app.
+ Description for Gets the application settings of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1289,8 +1286,8 @@ def update_auth_settings(
"""Updates the Authentication / Authorization settings associated with web
app.
- Updates the Authentication / Authorization settings associated with web
- app.
+ Description for Updates the Authentication / Authorization settings
+ associated with web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1359,7 +1356,8 @@ def get_auth_settings(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the Authentication/Authorization settings of an app.
- Gets the Authentication/Authorization settings of an app.
+ Description for Gets the Authentication/Authorization settings of an
+ app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1422,7 +1420,8 @@ def update_azure_storage_accounts(
self, resource_group_name, name, kind=None, properties=None, custom_headers=None, raw=False, **operation_config):
"""Updates the Azure storage account configurations of an app.
- Updates the Azure storage account configurations of an app.
+ Description for Updates the Azure storage account configurations of an
+ app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1497,7 +1496,8 @@ def list_azure_storage_accounts(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the Azure storage account configurations of an app.
- Gets the Azure storage account configurations of an app.
+ Description for Gets the Azure storage account configurations of an
+ app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1561,7 +1561,7 @@ def update_backup_configuration(
self, resource_group_name, name, request, custom_headers=None, raw=False, **operation_config):
"""Updates the backup configuration of an app.
- Updates the backup configuration of an app.
+ Description for Updates the backup configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1630,7 +1630,7 @@ def delete_backup_configuration(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Deletes the backup configuration of an app.
- Deletes the backup configuration of an app.
+ Description for Deletes the backup configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1644,7 +1644,8 @@ def delete_backup_configuration(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_backup_configuration.metadata['url']
@@ -1673,9 +1674,7 @@ def delete_backup_configuration(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -1686,7 +1685,7 @@ def get_backup_configuration(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the backup configuration of an app.
- Gets the backup configuration of an app.
+ Description for Gets the backup configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1745,11 +1744,141 @@ def get_backup_configuration(
return deserialized
get_backup_configuration.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/backup/list'}
+ def get_app_settings_key_vault_references(
+ self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
+ """Gets the config reference app settings and status of an app.
+
+ Description for Gets the config reference app settings and status of an
+ app.
+
+ :param resource_group_name: Name of the resource group to which the
+ resource belongs.
+ :type resource_group_name: str
+ :param name: Name of the app.
+ :type name: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: KeyVaultReferenceCollection or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.KeyVaultReferenceCollection or
+ ~msrest.pipeline.ClientRawResponse
+ :raises:
+ :class:`DefaultErrorResponseException`
+ """
+ # Construct URL
+ url = self.get_app_settings_key_vault_references.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'name': self._serialize.url("name", name, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
+
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('KeyVaultReferenceCollection', response)
+
+ if raw:
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
+
+ return deserialized
+ get_app_settings_key_vault_references.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings'}
+
+ def get_app_setting_key_vault_reference(
+ self, resource_group_name, name, app_setting_key, custom_headers=None, raw=False, **operation_config):
+ """Gets the config reference and status of an app.
+
+ Description for Gets the config reference and status of an app.
+
+ :param resource_group_name: Name of the resource group to which the
+ resource belongs.
+ :type resource_group_name: str
+ :param name: Name of the app.
+ :type name: str
+ :param app_setting_key: App Setting key name.
+ :type app_setting_key: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: KeyVaultReferenceResource or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.KeyVaultReferenceResource or
+ ~msrest.pipeline.ClientRawResponse
+ :raises:
+ :class:`DefaultErrorResponseException`
+ """
+ # Construct URL
+ url = self.get_app_setting_key_vault_reference.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'name': self._serialize.url("name", name, 'str'),
+ 'appSettingKey': self._serialize.url("app_setting_key", app_setting_key, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
+
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('KeyVaultReferenceResource', response)
+
+ if raw:
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
+
+ return deserialized
+ get_app_setting_key_vault_reference.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings/{appSettingKey}'}
+
def update_connection_strings(
self, resource_group_name, name, kind=None, properties=None, custom_headers=None, raw=False, **operation_config):
"""Replaces the connection strings of an app.
- Replaces the connection strings of an app.
+ Description for Replaces the connection strings of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1823,7 +1952,7 @@ def list_connection_strings(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the connection strings of an app.
- Gets the connection strings of an app.
+ Description for Gets the connection strings of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1886,7 +2015,7 @@ def get_diagnostic_logs_configuration(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the logging configuration of an app.
- Gets the logging configuration of an app.
+ Description for Gets the logging configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -1949,7 +2078,7 @@ def update_diagnostic_logs_config(
self, resource_group_name, name, site_logs_config, custom_headers=None, raw=False, **operation_config):
"""Updates the logging configuration of an app.
- Updates the logging configuration of an app.
+ Description for Updates the logging configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2019,7 +2148,7 @@ def update_metadata(
self, resource_group_name, name, kind=None, properties=None, custom_headers=None, raw=False, **operation_config):
"""Replaces the metadata of an app.
- Replaces the metadata of an app.
+ Description for Replaces the metadata of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2092,7 +2221,7 @@ def list_metadata(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the metadata of an app.
- Gets the metadata of an app.
+ Description for Gets the metadata of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2199,7 +2328,7 @@ def list_publishing_credentials(
self, resource_group_name, name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Gets the Git/FTP publishing credentials of an app.
- Gets the Git/FTP publishing credentials of an app.
+ Description for Gets the Git/FTP publishing credentials of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2250,7 +2379,7 @@ def update_site_push_settings(
self, resource_group_name, name, push_settings, custom_headers=None, raw=False, **operation_config):
"""Updates the Push settings associated with web app.
- Updates the Push settings associated with web app.
+ Description for Updates the Push settings associated with web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2319,7 +2448,7 @@ def list_site_push_settings(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the Push settings associated with web app.
- Gets the Push settings associated with web app.
+ Description for Gets the Push settings associated with web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2383,8 +2512,8 @@ def list_slot_configuration_names(
"""Gets the names of app settings and connection strings that stick to the
slot (not swapped).
- Gets the names of app settings and connection strings that stick to the
- slot (not swapped).
+ Description for Gets the names of app settings and connection strings
+ that stick to the slot (not swapped).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2448,8 +2577,8 @@ def update_slot_configuration_names(
"""Updates the names of application settings and connection string that
remain with the slot during swap operation.
- Updates the names of application settings and connection string that
- remain with the slot during swap operation.
+ Description for Updates the names of application settings and
+ connection string that remain with the slot during swap operation.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2521,8 +2650,9 @@ def get_configuration(
"""Gets the configuration of an app, such as platform version and bitness,
default documents, virtual applications, Always On, etc.
- Gets the configuration of an app, such as platform version and bitness,
- default documents, virtual applications, Always On, etc.
+ Description for Gets the configuration of an app, such as platform
+ version and bitness, default documents, virtual applications, Always
+ On, etc.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2585,7 +2715,7 @@ def create_or_update_configuration(
self, resource_group_name, name, site_config, custom_headers=None, raw=False, **operation_config):
"""Updates the configuration of an app.
- Updates the configuration of an app.
+ Description for Updates the configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2655,7 +2785,7 @@ def update_configuration(
self, resource_group_name, name, site_config, custom_headers=None, raw=False, **operation_config):
"""Updates the configuration of an app.
- Updates the configuration of an app.
+ Description for Updates the configuration of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2726,8 +2856,9 @@ def list_configuration_snapshot_info(
"""Gets a list of web app configuration snapshots identifiers. Each
element of the list contains a timestamp and the ID of the snapshot.
- Gets a list of web app configuration snapshots identifiers. Each
- element of the list contains a timestamp and the ID of the snapshot.
+ Description for Gets a list of web app configuration snapshots
+ identifiers. Each element of the list contains a timestamp and the ID
+ of the snapshot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2802,8 +2933,8 @@ def get_configuration_snapshot(
"""Gets a snapshot of the configuration of an app at a previous point in
time.
- Gets a snapshot of the configuration of an app at a previous point in
- time.
+ Description for Gets a snapshot of the configuration of an app at a
+ previous point in time.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2869,7 +3000,8 @@ def recover_site_configuration_snapshot(
self, resource_group_name, name, snapshot_id, custom_headers=None, raw=False, **operation_config):
"""Reverts the configuration of an app to a previous snapshot.
- Reverts the configuration of an app to a previous snapshot.
+ Description for Reverts the configuration of an app to a previous
+ snapshot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2885,7 +3017,8 @@ def recover_site_configuration_snapshot(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.recover_site_configuration_snapshot.metadata['url']
@@ -2915,9 +3048,7 @@ def recover_site_configuration_snapshot(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -2928,7 +3059,7 @@ def get_web_site_container_logs(
self, resource_group_name, name, custom_headers=None, raw=False, callback=None, **operation_config):
"""Gets the last lines of docker logs for the given site.
- Gets the last lines of docker logs for the given site.
+ Description for Gets the last lines of docker logs for the given site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -2994,7 +3125,8 @@ def get_container_logs_zip(
self, resource_group_name, name, custom_headers=None, raw=False, callback=None, **operation_config):
"""Gets the ZIP archived docker log files for the given site.
- Gets the ZIP archived docker log files for the given site.
+ Description for Gets the ZIP archived docker log files for the given
+ site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3060,7 +3192,8 @@ def list_continuous_web_jobs(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List continuous web jobs for an app, or a deployment slot.
- List continuous web jobs for an app, or a deployment slot.
+ Description for List continuous web jobs for an app, or a deployment
+ slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3134,7 +3267,8 @@ def get_continuous_web_job(
self, resource_group_name, name, web_job_name, custom_headers=None, raw=False, **operation_config):
"""Gets a continuous web job by its ID for an app, or a deployment slot.
- Gets a continuous web job by its ID for an app, or a deployment slot.
+ Description for Gets a continuous web job by its ID for an app, or a
+ deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3151,7 +3285,8 @@ def get_continuous_web_job(
:return: ContinuousWebJob or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.ContinuousWebJob or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_continuous_web_job.metadata['url']
@@ -3182,9 +3317,7 @@ def get_continuous_web_job(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -3201,7 +3334,8 @@ def delete_continuous_web_job(
self, resource_group_name, name, web_job_name, custom_headers=None, raw=False, **operation_config):
"""Delete a continuous web job by its ID for an app, or a deployment slot.
- Delete a continuous web job by its ID for an app, or a deployment slot.
+ Description for Delete a continuous web job by its ID for an app, or a
+ deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3217,7 +3351,8 @@ def delete_continuous_web_job(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_continuous_web_job.metadata['url']
@@ -3247,9 +3382,7 @@ def delete_continuous_web_job(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -3260,7 +3393,8 @@ def start_continuous_web_job(
self, resource_group_name, name, web_job_name, custom_headers=None, raw=False, **operation_config):
"""Start a continuous web job for an app, or a deployment slot.
- Start a continuous web job for an app, or a deployment slot.
+ Description for Start a continuous web job for an app, or a deployment
+ slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3276,7 +3410,8 @@ def start_continuous_web_job(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.start_continuous_web_job.metadata['url']
@@ -3306,9 +3441,7 @@ def start_continuous_web_job(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -3319,7 +3452,8 @@ def stop_continuous_web_job(
self, resource_group_name, name, web_job_name, custom_headers=None, raw=False, **operation_config):
"""Stop a continuous web job for an app, or a deployment slot.
- Stop a continuous web job for an app, or a deployment slot.
+ Description for Stop a continuous web job for an app, or a deployment
+ slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3335,7 +3469,8 @@ def stop_continuous_web_job(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.stop_continuous_web_job.metadata['url']
@@ -3365,9 +3500,7 @@ def stop_continuous_web_job(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -3378,7 +3511,7 @@ def list_deployments(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List deployments for an app, or a deployment slot.
- List deployments for an app, or a deployment slot.
+ Description for List deployments for an app, or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3452,7 +3585,8 @@ def get_deployment(
self, resource_group_name, name, id, custom_headers=None, raw=False, **operation_config):
"""Get a deployment by its ID for an app, or a deployment slot.
- Get a deployment by its ID for an app, or a deployment slot.
+ Description for Get a deployment by its ID for an app, or a deployment
+ slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3518,7 +3652,7 @@ def create_deployment(
self, resource_group_name, name, id, deployment, custom_headers=None, raw=False, **operation_config):
"""Create a deployment for an app, or a deployment slot.
- Create a deployment for an app, or a deployment slot.
+ Description for Create a deployment for an app, or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3590,7 +3724,8 @@ def delete_deployment(
self, resource_group_name, name, id, custom_headers=None, raw=False, **operation_config):
"""Delete a deployment by its ID for an app, or a deployment slot.
- Delete a deployment by its ID for an app, or a deployment slot.
+ Description for Delete a deployment by its ID for an app, or a
+ deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3606,7 +3741,8 @@ def delete_deployment(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_deployment.metadata['url']
@@ -3636,9 +3772,7 @@ def delete_deployment(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -3650,8 +3784,8 @@ def list_deployment_log(
"""List deployment log for specific deployment for an app, or a deployment
slot.
- List deployment log for specific deployment for an app, or a deployment
- slot.
+ Description for List deployment log for specific deployment for an app,
+ or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3721,9 +3855,9 @@ def discover_backup(
Azure storage. Use this to get information about the databases stored
in a backup.
- Discovers an existing app backup that can be restored from a blob in
- Azure storage. Use this to get information about the databases stored
- in a backup.
+ Description for Discovers an existing app backup that can be restored
+ from a blob in Azure storage. Use this to get information about the
+ databases stored in a backup.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3793,7 +3927,8 @@ def list_domain_ownership_identifiers(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Lists ownership identifiers for domain associated with web app.
- Lists ownership identifiers for domain associated with web app.
+ Description for Lists ownership identifiers for domain associated with
+ web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3867,7 +4002,7 @@ def get_domain_ownership_identifier(
self, resource_group_name, name, domain_ownership_identifier_name, custom_headers=None, raw=False, **operation_config):
"""Get domain ownership identifier for web app.
- Get domain ownership identifier for web app.
+ Description for Get domain ownership identifier for web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3931,12 +4066,12 @@ def get_domain_ownership_identifier(
get_domain_ownership_identifier.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}'}
def create_or_update_domain_ownership_identifier(
- self, resource_group_name, name, domain_ownership_identifier_name, kind=None, identifier_id=None, custom_headers=None, raw=False, **operation_config):
+ self, resource_group_name, name, domain_ownership_identifier_name, kind=None, value=None, custom_headers=None, raw=False, **operation_config):
"""Creates a domain ownership identifier for web app, or updates an
existing ownership identifier.
- Creates a domain ownership identifier for web app, or updates an
- existing ownership identifier.
+ Description for Creates a domain ownership identifier for web app, or
+ updates an existing ownership identifier.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -3948,8 +4083,8 @@ def create_or_update_domain_ownership_identifier(
:type domain_ownership_identifier_name: str
:param kind: Kind of resource.
:type kind: str
- :param identifier_id: String representation of the identity.
- :type identifier_id: str
+ :param value: String representation of the identity.
+ :type value: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
@@ -3961,7 +4096,7 @@ def create_or_update_domain_ownership_identifier(
:raises:
:class:`DefaultErrorResponseException`
"""
- domain_ownership_identifier = models.Identifier(kind=kind, identifier_id=identifier_id)
+ domain_ownership_identifier = models.Identifier(kind=kind, value=value)
# Construct URL
url = self.create_or_update_domain_ownership_identifier.metadata['url']
@@ -4013,7 +4148,7 @@ def delete_domain_ownership_identifier(
self, resource_group_name, name, domain_ownership_identifier_name, custom_headers=None, raw=False, **operation_config):
"""Deletes a domain ownership identifier for a web app.
- Deletes a domain ownership identifier for a web app.
+ Description for Deletes a domain ownership identifier for a web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4030,7 +4165,8 @@ def delete_domain_ownership_identifier(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_domain_ownership_identifier.metadata['url']
@@ -4060,9 +4196,7 @@ def delete_domain_ownership_identifier(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -4070,12 +4204,12 @@ def delete_domain_ownership_identifier(
delete_domain_ownership_identifier.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}'}
def update_domain_ownership_identifier(
- self, resource_group_name, name, domain_ownership_identifier_name, kind=None, identifier_id=None, custom_headers=None, raw=False, **operation_config):
+ self, resource_group_name, name, domain_ownership_identifier_name, kind=None, value=None, custom_headers=None, raw=False, **operation_config):
"""Creates a domain ownership identifier for web app, or updates an
existing ownership identifier.
- Creates a domain ownership identifier for web app, or updates an
- existing ownership identifier.
+ Description for Creates a domain ownership identifier for web app, or
+ updates an existing ownership identifier.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4087,8 +4221,8 @@ def update_domain_ownership_identifier(
:type domain_ownership_identifier_name: str
:param kind: Kind of resource.
:type kind: str
- :param identifier_id: String representation of the identity.
- :type identifier_id: str
+ :param value: String representation of the identity.
+ :type value: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
@@ -4100,7 +4234,7 @@ def update_domain_ownership_identifier(
:raises:
:class:`DefaultErrorResponseException`
"""
- domain_ownership_identifier = models.Identifier(kind=kind, identifier_id=identifier_id)
+ domain_ownership_identifier = models.Identifier(kind=kind, value=value)
# Construct URL
url = self.update_domain_ownership_identifier.metadata['url']
@@ -4152,7 +4286,7 @@ def get_ms_deploy_status(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get the status of the last MSDeploy operation.
- Get the status of the last MSDeploy operation.
+ Description for Get the status of the last MSDeploy operation.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4246,9 +4380,7 @@ def _create_ms_deploy_operation_initial(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [201, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
@@ -4265,7 +4397,7 @@ def create_ms_deploy_operation(
self, resource_group_name, name, ms_deploy, custom_headers=None, raw=False, polling=True, **operation_config):
"""Invoke the MSDeploy web app extension.
- Invoke the MSDeploy web app extension.
+ Description for Invoke the MSDeploy web app extension.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4285,7 +4417,8 @@ def create_ms_deploy_operation(
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.web.models.MSDeployStatus]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.web.models.MSDeployStatus]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._create_ms_deploy_operation_initial(
resource_group_name=resource_group_name,
@@ -4318,7 +4451,7 @@ def get_ms_deploy_log(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get the MSDeploy Log for the last MSDeploy operation.
- Get the MSDeploy Log for the last MSDeploy operation.
+ Description for Get the MSDeploy Log for the last MSDeploy operation.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4333,7 +4466,8 @@ def get_ms_deploy_log(
:return: MSDeployLog or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.MSDeployLog or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_ms_deploy_log.metadata['url']
@@ -4363,9 +4497,7 @@ def get_ms_deploy_log(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -4382,7 +4514,8 @@ def list_functions(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""List the functions for a web site, or a deployment slot.
- List the functions for a web site, or a deployment slot.
+ Description for List the functions for a web site, or a deployment
+ slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4397,7 +4530,8 @@ def list_functions(
:return: An iterator like instance of FunctionEnvelope
:rtype:
~azure.mgmt.web.models.FunctionEnvelopePaged[~azure.mgmt.web.models.FunctionEnvelope]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
def prepare_request(next_link=None):
if not next_link:
@@ -4438,9 +4572,7 @@ def internal_paging(next_link=None):
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
return response
@@ -4457,7 +4589,8 @@ def get_functions_admin_token(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Fetch a short lived token that can be exchanged for a master key.
- Fetch a short lived token that can be exchanged for a master key.
+ Description for Fetch a short lived token that can be exchanged for a
+ master key.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4519,7 +4652,8 @@ def get_function(
self, resource_group_name, name, function_name, custom_headers=None, raw=False, **operation_config):
"""Get function information by its ID for web site, or a deployment slot.
- Get function information by its ID for web site, or a deployment slot.
+ Description for Get function information by its ID for web site, or a
+ deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4536,7 +4670,8 @@ def get_function(
:return: FunctionEnvelope or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.FunctionEnvelope or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_function.metadata['url']
@@ -4567,9 +4702,7 @@ def get_function(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -4635,7 +4768,7 @@ def create_function(
self, resource_group_name, name, function_name, function_envelope, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create function for web site, or a deployment slot.
- Create function for web site, or a deployment slot.
+ Description for Create function for web site, or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4692,7 +4825,7 @@ def delete_function(
self, resource_group_name, name, function_name, custom_headers=None, raw=False, **operation_config):
"""Delete a function for web site, or a deployment slot.
- Delete a function for web site, or a deployment slot.
+ Description for Delete a function for web site, or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4708,7 +4841,8 @@ def delete_function(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_function.metadata['url']
@@ -4738,9 +4872,7 @@ def delete_function(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -4752,8 +4884,8 @@ def list_function_secrets(
"""Get function secrets for a function in a web site, or a deployment
slot.
- Get function secrets for a function in a web site, or a deployment
- slot.
+ Description for Get function secrets for a function in a web site, or a
+ deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4819,7 +4951,7 @@ def list_host_name_bindings(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Get hostname bindings for an app or a deployment slot.
- Get hostname bindings for an app or a deployment slot.
+ Description for Get hostname bindings for an app or a deployment slot.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4894,8 +5026,8 @@ def get_host_name_binding(
"""Get the named hostname binding for an app (or deployment slot, if
specified).
- Get the named hostname binding for an app (or deployment slot, if
- specified).
+ Description for Get the named hostname binding for an app (or
+ deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -4961,7 +5093,7 @@ def create_or_update_host_name_binding(
self, resource_group_name, name, host_name, host_name_binding, custom_headers=None, raw=False, **operation_config):
"""Creates a hostname binding for an app.
- Creates a hostname binding for an app.
+ Description for Creates a hostname binding for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5034,7 +5166,7 @@ def delete_host_name_binding(
self, resource_group_name, name, host_name, custom_headers=None, raw=False, **operation_config):
"""Deletes a hostname binding for an app.
- Deletes a hostname binding for an app.
+ Description for Deletes a hostname binding for an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5050,7 +5182,8 @@ def delete_host_name_binding(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_host_name_binding.metadata['url']
@@ -5080,9 +5213,7 @@ def delete_host_name_binding(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -5094,8 +5225,8 @@ def get_hybrid_connection(
"""Retrieves a specific Service Bus Hybrid Connection used by this Web
App.
- Retrieves a specific Service Bus Hybrid Connection used by this Web
- App.
+ Description for Retrieves a specific Service Bus Hybrid Connection used
+ by this Web App.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5164,7 +5295,8 @@ def create_or_update_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers=None, raw=False, **operation_config):
"""Creates a new Hybrid Connection using a Service Bus relay.
- Creates a new Hybrid Connection using a Service Bus relay.
+ Description for Creates a new Hybrid Connection using a Service Bus
+ relay.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5239,7 +5371,7 @@ def delete_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
"""Removes a Hybrid Connection from this site.
- Removes a Hybrid Connection from this site.
+ Description for Removes a Hybrid Connection from this site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5257,7 +5389,8 @@ def delete_hybrid_connection(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_hybrid_connection.metadata['url']
@@ -5288,9 +5421,7 @@ def delete_hybrid_connection(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -5301,7 +5432,8 @@ def update_hybrid_connection(
self, resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers=None, raw=False, **operation_config):
"""Creates a new Hybrid Connection using a Service Bus relay.
- Creates a new Hybrid Connection using a Service Bus relay.
+ Description for Creates a new Hybrid Connection using a Service Bus
+ relay.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5372,80 +5504,12 @@ def update_hybrid_connection(
return deserialized
update_hybrid_connection.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}'}
- def list_hybrid_connection_keys(
- self, resource_group_name, name, namespace_name, relay_name, custom_headers=None, raw=False, **operation_config):
- """Gets the send key name and value for a Hybrid Connection.
-
- Gets the send key name and value for a Hybrid Connection.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: The name of the web app.
- :type name: str
- :param namespace_name: The namespace for this hybrid connection.
- :type namespace_name: str
- :param relay_name: The relay name for this hybrid connection.
- :type relay_name: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: HybridConnectionKey or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.HybridConnectionKey or
- ~msrest.pipeline.ClientRawResponse
- :raises:
- :class:`DefaultErrorResponseException`
- """
- # Construct URL
- url = self.list_hybrid_connection_keys.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str'),
- 'relayName': self._serialize.url("relay_name", relay_name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.post(url, query_parameters, header_parameters)
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- deserialized = None
- if response.status_code == 200:
- deserialized = self._deserialize('HybridConnectionKey', response)
-
- if raw:
- client_raw_response = ClientRawResponse(deserialized, response)
- return client_raw_response
-
- return deserialized
- list_hybrid_connection_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}/listKeys'}
-
def list_hybrid_connections(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Retrieves all Service Bus Hybrid Connections used by this Web App.
- Retrieves all Service Bus Hybrid Connections used by this Web App.
+ Description for Retrieves all Service Bus Hybrid Connections used by
+ this Web App.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5509,8 +5573,8 @@ def list_relay_service_connections(
"""Gets hybrid connections configured for an app (or deployment slot, if
specified).
- Gets hybrid connections configured for an app (or deployment slot, if
- specified).
+ Description for Gets hybrid connections configured for an app (or
+ deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5573,7 +5637,7 @@ def get_relay_service_connection(
self, resource_group_name, name, entity_name, custom_headers=None, raw=False, **operation_config):
"""Gets a hybrid connection configuration by its name.
- Gets a hybrid connection configuration by its name.
+ Description for Gets a hybrid connection configuration by its name.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5640,8 +5704,8 @@ def create_or_update_relay_service_connection(
"""Creates a new hybrid connection configuration (PUT), or updates an
existing one (PATCH).
- Creates a new hybrid connection configuration (PUT), or updates an
- existing one (PATCH).
+ Description for Creates a new hybrid connection configuration (PUT), or
+ updates an existing one (PATCH).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5715,7 +5779,7 @@ def delete_relay_service_connection(
self, resource_group_name, name, entity_name, custom_headers=None, raw=False, **operation_config):
"""Deletes a relay service connection by its name.
- Deletes a relay service connection by its name.
+ Description for Deletes a relay service connection by its name.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5731,7 +5795,8 @@ def delete_relay_service_connection(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_relay_service_connection.metadata['url']
@@ -5761,9 +5826,7 @@ def delete_relay_service_connection(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -5775,8 +5838,8 @@ def update_relay_service_connection(
"""Creates a new hybrid connection configuration (PUT), or updates an
existing one (PATCH).
- Creates a new hybrid connection configuration (PUT), or updates an
- existing one (PATCH).
+ Description for Creates a new hybrid connection configuration (PUT), or
+ updates an existing one (PATCH).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5850,7 +5913,7 @@ def list_instance_identifiers(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets all scale-out instances of an app.
- Gets all scale-out instances of an app.
+ Description for Gets all scale-out instances of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -5920,11 +5983,77 @@ def internal_paging(next_link=None):
return deserialized
list_instance_identifiers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances'}
+ def get_instance_info(
+ self, resource_group_name, name, instance_id, custom_headers=None, raw=False, **operation_config):
+ """Gets all scale-out instances of an app.
+
+ Description for Gets all scale-out instances of an app.
+
+ :param resource_group_name: Name of the resource group to which the
+ resource belongs.
+ :type resource_group_name: str
+ :param name: Name of the app.
+ :type name: str
+ :param instance_id:
+ :type instance_id: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: WebSiteInstanceStatus or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.WebSiteInstanceStatus or
+ ~msrest.pipeline.ClientRawResponse
+ :raises:
+ :class:`DefaultErrorResponseException`
+ """
+ # Construct URL
+ url = self.get_instance_info.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'name': self._serialize.url("name", name, 'str'),
+ 'instanceId': self._serialize.url("instance_id", instance_id, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
+
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('WebSiteInstanceStatus', response)
+
+ if raw:
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
+
+ return deserialized
+ get_instance_info.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}'}
+
def get_instance_ms_deploy_status(
self, resource_group_name, name, instance_id, custom_headers=None, raw=False, **operation_config):
"""Get the status of the last MSDeploy operation.
- Get the status of the last MSDeploy operation.
+ Description for Get the status of the last MSDeploy operation.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6022,9 +6151,7 @@ def _create_instance_ms_deploy_operation_initial(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [201, 409]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
@@ -6041,7 +6168,7 @@ def create_instance_ms_deploy_operation(
self, resource_group_name, name, instance_id, ms_deploy, custom_headers=None, raw=False, polling=True, **operation_config):
"""Invoke the MSDeploy web app extension.
- Invoke the MSDeploy web app extension.
+ Description for Invoke the MSDeploy web app extension.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6063,7 +6190,8 @@ def create_instance_ms_deploy_operation(
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.web.models.MSDeployStatus]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.web.models.MSDeployStatus]]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
raw_result = self._create_instance_ms_deploy_operation_initial(
resource_group_name=resource_group_name,
@@ -6097,7 +6225,7 @@ def get_instance_ms_deploy_log(
self, resource_group_name, name, instance_id, custom_headers=None, raw=False, **operation_config):
"""Get the MSDeploy Log for the last MSDeploy operation.
- Get the MSDeploy Log for the last MSDeploy operation.
+ Description for Get the MSDeploy Log for the last MSDeploy operation.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6114,7 +6242,8 @@ def get_instance_ms_deploy_log(
:return: MSDeployLog or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.MSDeployLog or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_instance_ms_deploy_log.metadata['url']
@@ -6145,9 +6274,7 @@ def get_instance_ms_deploy_log(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -6165,8 +6292,8 @@ def list_instance_processes(
"""Get list of processes for a web site, or a deployment slot, or for a
specific scaled-out instance in a web site.
- Get list of processes for a web site, or a deployment slot, or for a
- specific scaled-out instance in a web site.
+ Description for Get list of processes for a web site, or a deployment
+ slot, or for a specific scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6185,7 +6312,8 @@ def list_instance_processes(
:return: An iterator like instance of ProcessInfo
:rtype:
~azure.mgmt.web.models.ProcessInfoPaged[~azure.mgmt.web.models.ProcessInfo]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
def prepare_request(next_link=None):
if not next_link:
@@ -6227,9 +6355,7 @@ def internal_paging(next_link=None):
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
return response
@@ -6247,8 +6373,8 @@ def get_instance_process(
"""Get process information by its ID for a specific scaled-out instance in
a web site.
- Get process information by its ID for a specific scaled-out instance in
- a web site.
+ Description for Get process information by its ID for a specific
+ scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6269,7 +6395,8 @@ def get_instance_process(
:return: ProcessInfo or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.ProcessInfo or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_instance_process.metadata['url']
@@ -6301,9 +6428,7 @@ def get_instance_process(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -6321,8 +6446,8 @@ def delete_instance_process(
"""Terminate a process by its ID for a web site, or a deployment slot, or
specific scaled-out instance in a web site.
- Terminate a process by its ID for a web site, or a deployment slot, or
- specific scaled-out instance in a web site.
+ Description for Terminate a process by its ID for a web site, or a
+ deployment slot, or specific scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6342,7 +6467,8 @@ def delete_instance_process(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_instance_process.metadata['url']
@@ -6373,9 +6499,7 @@ def delete_instance_process(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [204, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -6387,8 +6511,8 @@ def get_instance_process_dump(
"""Get a memory dump of a process by its ID for a specific scaled-out
instance in a web site.
- Get a memory dump of a process by its ID for a specific scaled-out
- instance in a web site.
+ Description for Get a memory dump of a process by its ID for a specific
+ scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6413,7 +6537,8 @@ def get_instance_process_dump(
overrides`.
:return: object or ClientRawResponse if raw=true
:rtype: Generator or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_instance_process_dump.metadata['url']
@@ -6445,9 +6570,7 @@ def get_instance_process_dump(
response = self._client.send(request, stream=True, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = self._client.stream_download(response, callback)
@@ -6463,8 +6586,8 @@ def list_instance_process_modules(
"""List module information for a process by its ID for a specific
scaled-out instance in a web site.
- List module information for a process by its ID for a specific
- scaled-out instance in a web site.
+ Description for List module information for a process by its ID for a
+ specific scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6485,7 +6608,8 @@ def list_instance_process_modules(
:return: An iterator like instance of ProcessModuleInfo
:rtype:
~azure.mgmt.web.models.ProcessModuleInfoPaged[~azure.mgmt.web.models.ProcessModuleInfo]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
def prepare_request(next_link=None):
if not next_link:
@@ -6528,9 +6652,7 @@ def internal_paging(next_link=None):
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
return response
@@ -6548,8 +6670,8 @@ def get_instance_process_module(
"""Get process information by its ID for a specific scaled-out instance in
a web site.
- Get process information by its ID for a specific scaled-out instance in
- a web site.
+ Description for Get process information by its ID for a specific
+ scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6572,7 +6694,8 @@ def get_instance_process_module(
:return: ProcessModuleInfo or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.ProcessModuleInfo or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.get_instance_process_module.metadata['url']
@@ -6605,9 +6728,7 @@ def get_instance_process_module(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -6625,8 +6746,8 @@ def list_instance_process_threads(
"""List the threads in a process by its ID for a specific scaled-out
instance in a web site.
- List the threads in a process by its ID for a specific scaled-out
- instance in a web site.
+ Description for List the threads in a process by its ID for a specific
+ scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6647,7 +6768,8 @@ def list_instance_process_threads(
:return: An iterator like instance of ProcessThreadInfo
:rtype:
~azure.mgmt.web.models.ProcessThreadInfoPaged[~azure.mgmt.web.models.ProcessThreadInfo]
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
def prepare_request(next_link=None):
if not next_link:
@@ -6690,9 +6812,7 @@ def internal_paging(next_link=None):
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
return response
@@ -6705,45 +6825,35 @@ def internal_paging(next_link=None):
return deserialized
list_instance_process_threads.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads'}
- def get_instance_process_thread(
- self, resource_group_name, name, process_id, thread_id, instance_id, custom_headers=None, raw=False, **operation_config):
- """Get thread information by Thread ID for a specific process, in a
- specific scaled-out instance in a web site.
+ def is_cloneable(
+ self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
+ """Shows whether an app can be cloned to another resource group or
+ subscription.
- Get thread information by Thread ID for a specific process, in a
- specific scaled-out instance in a web site.
+ Description for Shows whether an app can be cloned to another resource
+ group or subscription.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
- :param name: Site name.
+ :param name: Name of the app.
:type name: str
- :param process_id: PID.
- :type process_id: str
- :param thread_id: TID.
- :type thread_id: str
- :param instance_id: ID of a specific scaled-out instance. This is the
- value of the name property in the JSON response from "GET
- api/sites/{siteName}/instances".
- :type instance_id: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: ProcessThreadInfo or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.ProcessThreadInfo or
+ :return: SiteCloneability or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.SiteCloneability or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
- url = self.get_instance_process_thread.metadata['url']
+ url = self.is_cloneable.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
'name': self._serialize.url("name", name, 'str'),
- 'processId': self._serialize.url("process_id", process_id, 'str'),
- 'threadId': self._serialize.url("thread_id", thread_id, 'str'),
- 'instanceId': self._serialize.url("instance_id", instance_id, 'str'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
@@ -6763,160 +6873,28 @@ def get_instance_process_thread(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
+ request = self._client.post(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
- deserialized = self._deserialize('ProcessThreadInfo', response)
+ deserialized = self._deserialize('SiteCloneability', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
- get_instance_process_thread.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/threads/{threadId}'}
+ is_cloneable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable'}
- def is_cloneable(
+ def list_site_backups(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
- """Shows whether an app can be cloned to another resource group or
- subscription.
+ """Gets existing backups of an app.
- Shows whether an app can be cloned to another resource group or
- subscription.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the app.
- :type name: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: SiteCloneability or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.SiteCloneability or
- ~msrest.pipeline.ClientRawResponse
- :raises:
- :class:`DefaultErrorResponseException`
- """
- # Construct URL
- url = self.is_cloneable.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.post(url, query_parameters, header_parameters)
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- deserialized = None
- if response.status_code == 200:
- deserialized = self._deserialize('SiteCloneability', response)
-
- if raw:
- client_raw_response = ClientRawResponse(deserialized, response)
- return client_raw_response
-
- return deserialized
- is_cloneable.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/iscloneable'}
-
- def list_sync_function_triggers(
- self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
- """This is to allow calling via powershell and ARM template.
-
- This is to allow calling via powershell and ARM template.
-
- :param resource_group_name: Name of the resource group to which the
- resource belongs.
- :type resource_group_name: str
- :param name: Name of the app.
- :type name: str
- :param dict custom_headers: headers that will be added to the request
- :param bool raw: returns the direct response alongside the
- deserialized response
- :param operation_config: :ref:`Operation configuration
- overrides`.
- :return: FunctionSecrets or ClientRawResponse if raw=true
- :rtype: ~azure.mgmt.web.models.FunctionSecrets or
- ~msrest.pipeline.ClientRawResponse
- :raises:
- :class:`DefaultErrorResponseException`
- """
- # Construct URL
- url = self.list_sync_function_triggers.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
-
- # Construct and send request
- request = self._client.post(url, query_parameters, header_parameters)
- response = self._client.send(request, stream=False, **operation_config)
-
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
-
- deserialized = None
- if response.status_code == 200:
- deserialized = self._deserialize('FunctionSecrets', response)
-
- if raw:
- client_raw_response = ClientRawResponse(deserialized, response)
- return client_raw_response
-
- return deserialized
- list_sync_function_triggers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listsyncfunctiontriggerstatus'}
-
- def list_metric_definitions(
- self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
- """Gets all metric definitions of an app (or deployment slot, if
- specified).
-
- Gets all metric definitions of an app (or deployment slot, if
- specified).
+ Description for Gets existing backups of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -6928,16 +6906,16 @@ def list_metric_definitions(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of ResourceMetricDefinition
+ :return: An iterator like instance of BackupItem
:rtype:
- ~azure.mgmt.web.models.ResourceMetricDefinitionPaged[~azure.mgmt.web.models.ResourceMetricDefinition]
+ ~azure.mgmt.web.models.BackupItemPaged[~azure.mgmt.web.models.BackupItem]
:raises:
:class:`DefaultErrorResponseException`
"""
def prepare_request(next_link=None):
if not next_link:
# Construct URL
- url = self.list_metric_definitions.metadata['url']
+ url = self.list_site_backups.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
'name': self._serialize.url("name", name, 'str'),
@@ -6964,7 +6942,7 @@ def prepare_request(next_link=None):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
+ request = self._client.post(url, query_parameters, header_parameters)
return request
def internal_paging(next_link=None):
@@ -6981,97 +6959,74 @@ def internal_paging(next_link=None):
header_dict = None
if raw:
header_dict = {}
- deserialized = models.ResourceMetricDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ deserialized = models.BackupItemPaged(internal_paging, self._deserialize.dependencies, header_dict)
return deserialized
- list_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metricdefinitions'}
+ list_site_backups.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listbackups'}
- def list_metrics(
- self, resource_group_name, name, details=None, filter=None, custom_headers=None, raw=False, **operation_config):
- """Gets performance metrics of an app (or deployment slot, if specified).
+ def list_sync_function_triggers(
+ self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
+ """This is to allow calling via powershell and ARM template.
- Gets performance metrics of an app (or deployment slot, if specified).
+ Description for This is to allow calling via powershell and ARM
+ template.
:param resource_group_name: Name of the resource group to which the
resource belongs.
:type resource_group_name: str
:param name: Name of the app.
:type name: str
- :param details: Specify "true" to include metric details in the
- response. It is "false" by default.
- :type details: bool
- :param filter: Return only metrics specified in the filter (using
- OData syntax). For example: $filter=(name.value eq 'Metric1' or
- name.value eq 'Metric2') and startTime eq 2014-01-01T00:00:00Z and
- endTime eq 2014-12-31T23:59:59Z and timeGrain eq
- duration'[Hour|Minute|Day]'.
- :type filter: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
- :return: An iterator like instance of ResourceMetric
- :rtype:
- ~azure.mgmt.web.models.ResourceMetricPaged[~azure.mgmt.web.models.ResourceMetric]
+ :return: FunctionSecrets or ClientRawResponse if raw=true
+ :rtype: ~azure.mgmt.web.models.FunctionSecrets or
+ ~msrest.pipeline.ClientRawResponse
:raises:
:class:`DefaultErrorResponseException`
"""
- def prepare_request(next_link=None):
- if not next_link:
- # Construct URL
- url = self.list_metrics.metadata['url']
- path_format_arguments = {
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
- 'name': self._serialize.url("name", name, 'str'),
- 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {}
- if details is not None:
- query_parameters['details'] = self._serialize.query("details", details, 'bool')
- if filter is not None:
- query_parameters['$filter'] = self._serialize.query("filter", filter, 'str', skip_quote=True)
- query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
-
- else:
- url = next_link
- query_parameters = {}
-
- # Construct headers
- header_parameters = {}
- header_parameters['Accept'] = 'application/json'
- if self.config.generate_client_request_id:
- header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
- if custom_headers:
- header_parameters.update(custom_headers)
- if self.config.accept_language is not None:
- header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+ # Construct URL
+ url = self.list_sync_function_triggers.metadata['url']
+ path_format_arguments = {
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+[^\.]$'),
+ 'name': self._serialize.url("name", name, 'str'),
+ 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
+ }
+ url = self._client.format_url(url, **path_format_arguments)
- # Construct and send request
- request = self._client.get(url, query_parameters, header_parameters)
- return request
+ # Construct parameters
+ query_parameters = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
- def internal_paging(next_link=None):
- request = prepare_request(next_link)
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
- response = self._client.send(request, stream=False, **operation_config)
+ # Construct and send request
+ request = self._client.post(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
- if response.status_code not in [200]:
- raise models.DefaultErrorResponseException(self._deserialize, response)
+ if response.status_code not in [200]:
+ raise models.DefaultErrorResponseException(self._deserialize, response)
- return response
+ deserialized = None
+ if response.status_code == 200:
+ deserialized = self._deserialize('FunctionSecrets', response)
- # Deserialize response
- header_dict = None
if raw:
- header_dict = {}
- deserialized = models.ResourceMetricPaged(internal_paging, self._deserialize.dependencies, header_dict)
+ client_raw_response = ClientRawResponse(deserialized, response)
+ return client_raw_response
return deserialized
- list_metrics.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/metrics'}
+ list_sync_function_triggers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/listsyncfunctiontriggerstatus'}
def _migrate_storage_initial(
@@ -7126,7 +7081,7 @@ def migrate_storage(
self, subscription_name, resource_group_name, name, migration_options, custom_headers=None, raw=False, polling=True, **operation_config):
"""Restores a web app.
- Restores a web app.
+ Description for Restores a web app.
:param subscription_name: Azure subscription.
:type subscription_name: str
@@ -7233,7 +7188,8 @@ def migrate_my_sql(
self, resource_group_name, name, migration_request_envelope, custom_headers=None, raw=False, polling=True, **operation_config):
"""Migrates a local (in-app) MySql database to a remote MySql database.
- Migrates a local (in-app) MySql database to a remote MySql database.
+ Description for Migrates a local (in-app) MySql database to a remote
+ MySql database.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7289,8 +7245,8 @@ def get_migrate_my_sql_status(
"""Returns the status of MySql in app migration, if one is active, and
whether or not MySql in app is enabled.
- Returns the status of MySql in app migration, if one is active, and
- whether or not MySql in app is enabled.
+ Description for Returns the status of MySql in app migration, if one is
+ active, and whether or not MySql in app is enabled.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7353,7 +7309,7 @@ def get_swift_virtual_network_connection(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets a Swift Virtual Network connection.
- Gets a Swift Virtual Network connection.
+ Description for Gets a Swift Virtual Network connection.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7419,9 +7375,10 @@ def create_or_update_swift_virtual_network_connection(
that the target Subnet has already been delegated, and is not
in use by another App Service Plan other than the one this App is in.
- Integrates this Web App with a Virtual Network. This requires that 1)
- "swiftSupported" is true when doing a GET against this resource, and 2)
- that the target Subnet has already been delegated, and is not
+ Description for Integrates this Web App with a Virtual Network. This
+ requires that 1) "swiftSupported" is true when doing a GET against this
+ resource, and 2) that the target Subnet has already been delegated, and
+ is not
in use by another App Service Plan other than the one this App is in.
:param resource_group_name: Name of the resource group to which the
@@ -7493,8 +7450,8 @@ def delete_swift_virtual_network(
"""Deletes a Swift Virtual Network connection from an app (or deployment
slot).
- Deletes a Swift Virtual Network connection from an app (or deployment
- slot).
+ Description for Deletes a Swift Virtual Network connection from an app
+ (or deployment slot).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7508,7 +7465,8 @@ def delete_swift_virtual_network(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_swift_virtual_network.metadata['url']
@@ -7537,9 +7495,7 @@ def delete_swift_virtual_network(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -7553,9 +7509,10 @@ def update_swift_virtual_network_connection(
that the target Subnet has already been delegated, and is not
in use by another App Service Plan other than the one this App is in.
- Integrates this Web App with a Virtual Network. This requires that 1)
- "swiftSupported" is true when doing a GET against this resource, and 2)
- that the target Subnet has already been delegated, and is not
+ Description for Integrates this Web App with a Virtual Network. This
+ requires that 1) "swiftSupported" is true when doing a GET against this
+ resource, and 2) that the target Subnet has already been delegated, and
+ is not
in use by another App Service Plan other than the one this App is in.
:param resource_group_name: Name of the resource group to which the
@@ -7627,8 +7584,8 @@ def list_network_features(
"""Gets all network features used by the app (or deployment slot, if
specified).
- Gets all network features used by the app (or deployment slot, if
- specified).
+ Description for Gets all network features used by the app (or
+ deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7646,7 +7603,8 @@ def list_network_features(
:return: NetworkFeatures or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.web.models.NetworkFeatures or
~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.list_network_features.metadata['url']
@@ -7677,9 +7635,7 @@ def list_network_features(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 404]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
deserialized = None
if response.status_code == 200:
@@ -7697,8 +7653,8 @@ def get_network_trace_operation(
"""Gets a named operation for a network trace capturing (or deployment
slot, if specified).
- Gets a named operation for a network trace capturing (or deployment
- slot, if specified).
+ Description for Gets a named operation for a network trace capturing
+ (or deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7766,7 +7722,8 @@ def start_web_site_network_trace(
self, resource_group_name, name, duration_in_seconds=None, max_frame_length=None, sas_url=None, custom_headers=None, raw=False, **operation_config):
"""Start capturing network packets for the site (To be deprecated).
- Start capturing network packets for the site (To be deprecated).
+ Description for Start capturing network packets for the site (To be
+ deprecated).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7892,7 +7849,7 @@ def start_web_site_network_trace_operation(
self, resource_group_name, name, duration_in_seconds=None, max_frame_length=None, sas_url=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Start capturing network packets for the site.
- Start capturing network packets for the site.
+ Description for Start capturing network packets for the site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7952,7 +7909,7 @@ def stop_web_site_network_trace(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Stop ongoing capturing network packets for the site.
- Stop ongoing capturing network packets for the site.
+ Description for Stop ongoing capturing network packets for the site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -7966,7 +7923,8 @@ def stop_web_site_network_trace(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.stop_web_site_network_trace.metadata['url']
@@ -7995,9 +7953,7 @@ def stop_web_site_network_trace(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -8009,8 +7965,8 @@ def get_network_traces(
"""Gets a named operation for a network trace capturing (or deployment
slot, if specified).
- Gets a named operation for a network trace capturing (or deployment
- slot, if specified).
+ Description for Gets a named operation for a network trace capturing
+ (or deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8077,8 +8033,8 @@ def get_network_trace_operation_v2(
"""Gets a named operation for a network trace capturing (or deployment
slot, if specified).
- Gets a named operation for a network trace capturing (or deployment
- slot, if specified).
+ Description for Gets a named operation for a network trace capturing
+ (or deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8147,8 +8103,8 @@ def get_network_traces_v2(
"""Gets a named operation for a network trace capturing (or deployment
slot, if specified).
- Gets a named operation for a network trace capturing (or deployment
- slot, if specified).
+ Description for Gets a named operation for a network trace capturing
+ (or deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8215,8 +8171,8 @@ def generate_new_site_publishing_password(
"""Generates a new publishing password for an app (or deployment slot, if
specified).
- Generates a new publishing password for an app (or deployment slot, if
- specified).
+ Description for Generates a new publishing password for an app (or
+ deployment slot, if specified).
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8230,7 +8186,8 @@ def generate_new_site_publishing_password(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.generate_new_site_publishing_password.metadata['url']
@@ -8259,9 +8216,7 @@ def generate_new_site_publishing_password(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200, 204]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -8272,7 +8227,7 @@ def list_perf_mon_counters(
self, resource_group_name, name, filter=None, custom_headers=None, raw=False, **operation_config):
"""Gets perfmon counters for web app.
- Gets perfmon counters for web app.
+ Description for Gets perfmon counters for web app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8353,7 +8308,7 @@ def get_site_php_error_log_flag(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets web app's event logs.
- Gets web app's event logs.
+ Description for Gets web app's event logs.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8416,7 +8371,7 @@ def list_premier_add_ons(
self, resource_group_name, name, custom_headers=None, raw=False, **operation_config):
"""Gets the premier add-ons of an app.
- Gets the premier add-ons of an app.
+ Description for Gets the premier add-ons of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8479,7 +8434,7 @@ def get_premier_add_on(
self, resource_group_name, name, premier_add_on_name, custom_headers=None, raw=False, **operation_config):
"""Gets a named add-on of an app.
- Gets a named add-on of an app.
+ Description for Gets a named add-on of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8545,7 +8500,7 @@ def add_premier_add_on(
self, resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers=None, raw=False, **operation_config):
"""Updates a named add-on of an app.
- Updates a named add-on of an app.
+ Description for Updates a named add-on of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8618,7 +8573,7 @@ def delete_premier_add_on(
self, resource_group_name, name, premier_add_on_name, custom_headers=None, raw=False, **operation_config):
"""Delete a premier add-on from an app.
- Delete a premier add-on from an app.
+ Description for Delete a premier add-on from an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8634,7 +8589,8 @@ def delete_premier_add_on(
overrides`.
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
- :raises: :class:`CloudError`
+ :raises:
+ :class:`DefaultErrorResponseException`
"""
# Construct URL
url = self.delete_premier_add_on.metadata['url']
@@ -8664,9 +8620,7 @@ def delete_premier_add_on(
response = self._client.send(request, stream=False, **operation_config)
if response.status_code not in [200]:
- exp = CloudError(response)
- exp.request_id = response.headers.get('x-ms-request-id')
- raise exp
+ raise models.DefaultErrorResponseException(self._deserialize, response)
if raw:
client_raw_response = ClientRawResponse(None, response)
@@ -8677,7 +8631,7 @@ def update_premier_add_on(
self, resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers=None, raw=False, **operation_config):
"""Updates a named add-on of an app.
- Updates a named add-on of an app.
+ Description for Updates a named add-on of an app.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8751,8 +8705,8 @@ def get_private_access(
"""Gets data around private site access enablement and authorized Virtual
Networks that can access the site.
- Gets data around private site access enablement and authorized Virtual
- Networks that can access the site.
+ Description for Gets data around private site access enablement and
+ authorized Virtual Networks that can access the site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8816,8 +8770,8 @@ def put_private_access_vnet(
"""Sets data around private site access enablement and authorized Virtual
Networks that can access the site.
- Sets data around private site access enablement and authorized Virtual
- Networks that can access the site.
+ Description for Sets data around private site access enablement and
+ authorized Virtual Networks that can access the site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8887,8 +8841,8 @@ def list_processes(
"""Get list of processes for a web site, or a deployment slot, or for a
specific scaled-out instance in a web site.
- Get list of processes for a web site, or a deployment slot, or for a
- specific scaled-out instance in a web site.
+ Description for Get list of processes for a web site, or a deployment
+ slot, or for a specific scaled-out instance in a web site.
:param resource_group_name: Name of the resource group to which the
resource belongs.
@@ -8903,7 +8857,8 @@ def list_processes(
:return: An iterator like instance of ProcessInfo
:rtype:
~azure.mgmt.web.models.ProcessInfoPaged[~azure.mgmt.web.models.ProcessInfo]
- :raises: :class:`CloudError