diff --git a/sdk/core/azure-core/HISTORY.md b/sdk/core/azure-core/HISTORY.md index 9ab8fb5ed6ee..bf36d12524d5 100644 --- a/sdk/core/azure-core/HISTORY.md +++ b/sdk/core/azure-core/HISTORY.md @@ -3,6 +3,13 @@ ------------------- +## 2019-XX-XX Version 1.0.0 + +### Bug fixes + +- Fix AsyncioRequestsTransport if input stream is an async generator #7743 +- Fix form-data with aiohttp transport #7749 + ## 2019-10-07 Version 1.0.0b4 ### Features @@ -32,7 +39,7 @@ - Tracing: `link` renamed `link_from_headers` and `link` takes now a string - Tracing: opencensus implementation has been moved to the package `azure-core-tracing-opencensus` - Some modules and classes that were importables from several differente places have been removed: - + - `azure.core.HttpResponseError` is now only `azure.core.exceptions.HttpResponseError` - `azure.core.Configuration` is now only `azure.core.configuration.Configuration` - `azure.core.HttpRequest` is now only `azure.core.pipeline.transport.HttpRequest` diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/universal.py b/sdk/core/azure-core/azure/core/pipeline/policies/universal.py index c5359ace81ce..4cbeffc26532 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/universal.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/universal.py @@ -131,10 +131,10 @@ def __init__(self, base_user_agent=None, **kwargs): # pylint: disable=super-ini self.use_env = kwargs.pop('user_agent_use_env', True) if base_user_agent is None: - self._user_agent = "python/{} ({}) azure-core/{}".format( + self._user_agent = "azsdk-python-core/{} Python/{} {}".format( + azcore_version, platform.python_version(), - platform.platform(), - azcore_version + platform.platform() ) else: self._user_agent = base_user_agent diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py b/sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py index bf6b5f2bdc5b..2eeb157b10d9 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/aiohttp.py @@ -92,7 +92,6 @@ async def open(self): self.session = aiohttp.ClientSession( loop=self._loop, trust_env=self._use_env_settings, - skip_auto_headers=['Content-Type'] ) if self.session is not None: await self.session.__aenter__() @@ -169,6 +168,11 @@ async def send(self, request: HttpRequest, **config: Any) -> Optional[AsyncHttpR cert=config.pop('connection_cert', self.connection_config.cert), verify=config.pop('connection_verify', self.connection_config.verify) ) + # If we know for sure there is not body, disable "auto content type" + # Otherwise, aiohttp will send "application/octect-stream" even for empty POST request + # and that break services like storage signature + if not request.data and not request.files: + config['skip_auto_headers'] = ['Content-Type'] try: stream_response = config.pop("stream", False) result = await self.session.request( @@ -231,14 +235,14 @@ async def __anext__(self): retry_active = False else: await asyncio.sleep(retry_interval) - headers = {'range': 'bytes=' + self.downloaded + '-'} + headers = {'range': 'bytes=' + str(self.downloaded) + '-'} resp = self.pipeline.run(self.request, stream=True, headers=headers) if resp.status_code == 416: raise chunk = await self.response.internal_response.content.read(self.block_size) if not chunk: raise StopIteration() - self.downloaded += chunk + self.downloaded += len(chunk) return chunk continue except StreamConsumedError: diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/requests_asyncio.py b/sdk/core/azure-core/azure/core/pipeline/transport/requests_asyncio.py index bc3d50d4f04b..6f0a9c2a833c 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/requests_asyncio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/requests_asyncio.py @@ -102,6 +102,16 @@ async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: loop = kwargs.get("loop", _get_running_loop()) response = None error = None # type: Optional[Union[ServiceRequestError, ServiceResponseError]] + if hasattr(request.data, '__aiter__'): + # Need to consume that async generator, since requests can't do anything with it + # That's not ideal, but a list is our only choice. Memory not optimal here, + # but providing an async generator to a requests based transport is not optimal too + new_data = [] + async for part in request.data: + new_data.append(part) + data_to_send = iter(new_data) + else: + data_to_send = request.data try: response = await loop.run_in_executor( None, @@ -110,7 +120,7 @@ async def send(self, request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: request.method, request.url, headers=request.headers, - data=request.data, + data=data_to_send, files=request.files, verify=kwargs.pop('connection_verify', self.connection_config.verify), timeout=kwargs.pop('connection_timeout', self.connection_config.timeout), @@ -182,7 +192,7 @@ async def __anext__(self): retry_active = False else: await asyncio.sleep(retry_interval) - headers = {'range': 'bytes=' + self.downloaded + '-'} + headers = {'range': 'bytes=' + str(self.downloaded) + '-'} resp = self.pipeline.run(self.request, stream=True, headers=headers) if resp.status_code == 416: raise @@ -193,7 +203,7 @@ async def __anext__(self): ) if not chunk: raise StopIteration() - self.downloaded += chunk + self.downloaded += len(chunk) return chunk continue except requests.exceptions.StreamConsumedError: diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/requests_basic.py b/sdk/core/azure-core/azure/core/pipeline/transport/requests_basic.py index 0947c54b7239..9b312be50d0e 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/requests_basic.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/requests_basic.py @@ -120,14 +120,14 @@ def __next__(self): retry_active = False else: time.sleep(retry_interval) - headers = {'range': 'bytes=' + self.downloaded + '-'} + headers = {'range': 'bytes=' + str(self.downloaded) + '-'} resp = self.pipeline.run(self.request, stream=True, headers=headers) if resp.status_code == 416: raise chunk = next(self.iter_content_func) if not chunk: raise StopIteration() - self.downloaded += chunk + self.downloaded += len(chunk) return chunk continue except requests.exceptions.StreamConsumedError: diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py b/sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py index 5b52e52dcfa5..9de405697d27 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py @@ -98,7 +98,7 @@ async def __anext__(self): retry_active = False else: await trio.sleep(1000) - headers = {'range': 'bytes=' + self.downloaded + '-'} + headers = {'range': 'bytes=' + str(self.downloaded) + '-'} resp = self.pipeline.run(self.request, stream=True, headers=headers) if resp.status_code == 416: raise @@ -114,7 +114,7 @@ async def __anext__(self): ) if not chunk: raise StopIteration() - self.downloaded += chunk + self.downloaded += len(chunk) return chunk continue except requests.exceptions.StreamConsumedError: diff --git a/sdk/core/azure-core/tests/azure_core_asynctests/test_request_asyncio.py b/sdk/core/azure-core/tests/azure_core_asynctests/test_request_asyncio.py new file mode 100644 index 000000000000..666bdd39276e --- /dev/null +++ b/sdk/core/azure-core/tests/azure_core_asynctests/test_request_asyncio.py @@ -0,0 +1,40 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +import json + +from azure.core.pipeline.transport import AsyncioRequestsTransport, HttpRequest + +import pytest + + +@pytest.mark.asyncio +async def test_async_gen_data(): + transport = AsyncioRequestsTransport() + + class AsyncGen: + def __init__(self): + self._range = iter([b"azerty"]) + + def __aiter__(self): + return self + + async def __anext__(self): + try: + return next(self._range) + except StopIteration: + raise StopAsyncIteration + + req = HttpRequest('GET', 'http://httpbin.org/post', data=AsyncGen()) + + await transport.send(req) + +@pytest.mark.asyncio +async def test_send_data(): + transport = AsyncioRequestsTransport() + req = HttpRequest('PUT', 'http://httpbin.org/anything', data=b"azerty") + response = await transport.send(req) + + assert json.loads(response.text())['data'] == "azerty" \ No newline at end of file diff --git a/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager.py b/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager.py index 524bc75cdfdf..b37aed20805b 100644 --- a/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager.py +++ b/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio/tests/test_storage_blob_partition_manager.py @@ -28,7 +28,7 @@ def get_live_storage_blob_client(): container_str = str(uuid.uuid4()) blob_service_client = BlobServiceClient.from_connection_string(storage_connection_str) blob_service_client.create_container(container_str) - container_client = ContainerClient.from_connection_string(storage_connection_str, container=container_str) + container_client = ContainerClient.from_connection_string(storage_connection_str, container_str) return container_str, container_client diff --git a/sdk/keyvault/azure-keyvault-certificates/HISTORY.md b/sdk/keyvault/azure-keyvault-certificates/HISTORY.md index 9c43545041d6..4e3719ac33f9 100644 --- a/sdk/keyvault/azure-keyvault-certificates/HISTORY.md +++ b/sdk/keyvault/azure-keyvault-certificates/HISTORY.md @@ -1,5 +1,9 @@ # Release History +## 4.0.0b5 +### Breaking changes +- Removed redundant method `get_pending_certificate_signing_request()`. A pending CSR can be retrieved via `get_certificate_operation()`. + ## 4.0.0b4 (2019-10-08) ### Breaking changes - Enums `JsonWebKeyCurveName` and `JsonWebKeyType` have been renamed to `KeyCurveName` and `KeyType`, respectively. @@ -14,6 +18,7 @@ for details. - The `vault_url` parameter of `CertificateClient` has been renamed to `vault_endpoint` - The property `vault_url` has been renamed to `vault_endpoint` in all models + ## 4.0.0b3 (2019-09-11) Version 4.0.0b3 is the first preview of our efforts to create a user-friendly and Pythonic client library for Azure Key Vault's certificates. diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py index 883841d268ac..f2344fc46f18 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.0.0b4" +VERSION = "4.0.0b5" diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/aio/client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/aio/client.py index 0598271f9f51..968b1b65b510 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/aio/client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/aio/client.py @@ -4,7 +4,6 @@ # ------------------------------------ # pylint:disable=too-many-lines,too-many-public-methods import base64 -import uuid from typing import Any, AsyncIterable, Optional, Iterable, List, Dict, Coroutine from functools import partial @@ -705,58 +704,6 @@ async def cancel_certificate_operation(self, name: str, **kwargs: "**Any") -> Ce ) return CertificateOperation._from_certificate_operation_bundle(certificate_operation_bundle=bundle) - @distributed_trace_async - async def get_pending_certificate_signing_request( - self, name: str, custom_headers: Optional[Dict[str, str]] = None, **kwargs: "**Any" - ) -> str: - """Gets the Base64 pending certificate signing request (PKCS-10). - - :param str name: The name of the certificate - :param custom_headers: headers that will be added to the request - :type custom_headers: dict[str, str] - :return: Base64 encoded pending certificate signing request (PKCS-10). - :rtype: str - :raises: :class:`~azure.core.exceptions.HttpResponseError` - """ - vault_base_url = self.vault_endpoint - # Construct URL - url = "/certificates/{certificate-name}/pending" - path_format_arguments = { - "vaultBaseUrl": self._client._serialize.url("vault_base_url", vault_base_url, "str", skip_quote=True), - "certificate-name": self._client._serialize.url("certificate_name", name, "str"), - } - url = self._client._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters["api-version"] = self._client._serialize.query( - name="self.api_version", data=self._client.api_version, data_type="str" - ) - - # Construct headers - header_parameters = {} - header_parameters["Accept"] = "application/pkcs10" - if self._client._config.generate_client_request_id: - header_parameters["x-ms-client-request-id"] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client._client.get(url=url, params=query_parameters, headers=header_parameters) - pipeline_response = await self._client._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - self._client.map_error(status_code=response.status_code, response=response, error_map=_error_map) - raise self._client.models.KeyVaultErrorException(response, self._client._deserialize) - - deserialized = None - - if response.status_code == 200: - deserialized = response.body() if hasattr(response, "body") else response.content - - return deserialized - @distributed_trace_async async def merge_certificate(self, name: str, x509_certificates: List[bytearray], **kwargs: "**Any") -> Certificate: """Merges a certificate or a certificate chain with a key pair existing on the server. diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/client.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/client.py index 82f4461d6170..832a375d5f07 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/client.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/client.py @@ -4,7 +4,6 @@ # ------------------------------------ # pylint:disable=too-many-lines,too-many-public-methods import base64 -import uuid from functools import partial from azure.core.polling import LROPoller @@ -765,59 +764,6 @@ def merge_certificate( ) return Certificate._from_certificate_bundle(certificate_bundle=bundle) - @distributed_trace - def get_pending_certificate_signing_request( - self, - name, # type: str - **kwargs # type: **Any - ): - # type: (...) -> str - """Gets the Base64 pending certificate signing request (PKCS-10). - - :param str name: The name of the certificate - :param custom_headers: headers that will be added to the request - :type custom_headers: dict[str, str] - :return: Base64 encoded pending certificate signing request (PKCS-10). - :rtype: str - :raises: :class:`~azure.core.exceptions.HttpResponseError` - """ - vault_base_url = self.vault_endpoint - # Construct URL - url = "/certificates/{certificate-name}/pending" - path_format_arguments = { - "vaultBaseUrl": self._client._serialize.url("vault_base_url", vault_base_url, "str", skip_quote=True), - "certificate-name": self._client._serialize.url("certificate_name", name, "str"), - } - url = self._client._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters["api-version"] = self._client._serialize.query( - name="self.api_version", data=self._client.api_version, data_type="str" - ) - - # Construct headers - header_parameters = {} - header_parameters["Accept"] = "application/pkcs10" - if self._client._config.generate_client_request_id: - header_parameters["x-ms-client-request-id"] = str(uuid.uuid1()) - - # Construct and send request - request = self._client._client.get(url=url, params=query_parameters, headers=header_parameters) - pipeline_response = self._client._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - self._client.map_error(status_code=response.status_code, response=response, error_map=_error_map) - raise self._client.models.KeyVaultErrorException(response, self._client._deserialize) - - deserialized = None - - if response.status_code == 200: - deserialized = response.body() if hasattr(response, "body") else response.content - - return deserialized - @distributed_trace def get_issuer(self, name, **kwargs): # type: (str, **Any) -> Issuer diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client.test_get_pending_certificate_signing_request.yaml b/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client.test_get_pending_certificate_signing_request.yaml index 5db884920b13..00bdec8293de 100644 --- a/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client.test_get_pending_certificate_signing_request.yaml +++ b/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client.test_get_pending_certificate_signing_request.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/create?api-version=7.0 response: @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:47:32 GMT + - Wed, 02 Oct 2019 19:05:17 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -56,10 +56,10 @@ interactions: code: 401 message: Unauthorized - request: - body: '{"policy": {"key_props": {"exportable": true, "kty": "RSA", "key_size": - 2048, "reuse_key": false}, "secret_props": {"contentType": "application/x-pkcs12"}, - "x509_props": {"subject": "CN=*.microsoft.com", "sans": {"dns_names": ["sdk.azure-int.net"]}, - "validity_months": 24}, "issuer": {"name": "Self"}}}' + body: '{"policy": {"issuer": {"name": "Self"}, "x509_props": {"validity_months": + 24, "sans": {"dns_names": ["sdk.azure-int.net"]}, "subject": "CN=*.microsoft.com"}, + "key_props": {"exportable": true, "kty": "RSA", "key_size": 2048, "reuse_key": + false}, "secret_props": {"contentType": "application/x-pkcs12"}}}' headers: Accept: - application/json @@ -72,14 +72,14 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/create?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"5e1f4346a50f444a96b78f380473280d"}' + time based on the issuer provider. Please check again later.","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -88,11 +88,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:47:33 GMT + - Wed, 02 Oct 2019 19:05:19 GMT expires: - '-1' location: - - https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0&request_id=5e1f4346a50f444a96b78f380473280d + - https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0&request_id=c87f693df850407ba663c14bd18c6dbb pragma: - no-cache retry-after: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -126,14 +126,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"5e1f4346a50f444a96b78f380473280d"}' + time based on the issuer provider. Please check again later.","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -142,7 +142,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:47:33 GMT + - Wed, 02 Oct 2019 19:05:19 GMT expires: - '-1' pragma: @@ -158,7 +158,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -178,14 +178,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"5e1f4346a50f444a96b78f380473280d"}' + time based on the issuer provider. Please check again later.","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -194,7 +194,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:47:44 GMT + - Wed, 02 Oct 2019 19:05:29 GMT expires: - '-1' pragma: @@ -210,7 +210,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -230,14 +230,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"5e1f4346a50f444a96b78f380473280d"}' + time based on the issuer provider. Please check again later.","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -246,7 +246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:47:54 GMT + - Wed, 02 Oct 2019 19:05:39 GMT expires: - '-1' pragma: @@ -262,7 +262,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -282,12 +282,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"completed","target":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert","request_id":"5e1f4346a50f444a96b78f380473280d"}' + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"completed","target":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -296,7 +296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:48:04 GMT + - Wed, 02 Oct 2019 19:05:49 GMT expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -330,12 +330,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","kid":"https://vaultdda41c5d.vault.azure.net/keys/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","sid":"https://vaultdda41c5d.vault.azure.net/secrets/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","x5t":"HW271xe3p2PaikZi8eoGJ4dhDHU","cer":"MIIDWjCCAkKgAwIBAgIQDGo7vTrrS+megtLlsuxHgzANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkwOTE4MjAzODAyWhcNMjEwOTE4MjA0ODAyWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3840+PyFdHP09Ux8c0L/4zfBMXp+Sqr+SZTAloErvLA1e/uLgtdJ8wXXyszcvN612niOEKPLvPIdEZg/rHHA4vjYXh1oB3CAFNmptXOJ4F9VOnDuwQqxy5AUuUXMRwo5aMt4cWRD1dWz0jMlaGMh19xACVozQ10VKa2pixW/MxJQ+2rHGszc0D2uv19wpgl6zvaqv91lyHV5rHf6NgvcWSjh/fh+D5WRS6Iv3oNUFqkSvC+a0vWYW4zh3FIggSVNyGKmoPE7cOCf2xTlFF3J0g1a1+ksXcdSPZqcbNH+0gQr8DfuaAYNhmwnEO/LFHeG/0Zmc4BEWsjVynqVUh/NfAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFCBJjUBUdIkR3bGgNsLZIAoTQQDrMB0GA1UdDgQWBBQgSY1AVHSJEd2xoDbC2SAKE0EA6zANBgkqhkiG9w0BAQsFAAOCAQEAqO6fKTw2CAy2RjjaYJXE3L9JC8NpSXvcyYqrUpnJ2Il0yUCAufaEV2Ouoss0+7tsJg2DekPYSWbYk439fSzOfxciG8GcoQuZZVbD+SoLzV6D9NaQgAltnshq/h+eqQp3k+662czUNJRSBXx/t/J7+CrRN9jtgF9ecq+BP3kcWVVvaLrCgivNlcaQ5RFCtcJ+0n6eeK95UICuHwCtc0NxanO3eJabdGu5S5UMhPl30evRSQyK3yHXkhMo3CGLxs8QVvgA8fF2Ofez43SDxJX3oMT5EJJTeQsQhmuhGB7UeLZktZT1AFpM/3ySs2R586dsUNv+IQEARIEr4YUzJ/ksiw==","attributes":{"enabled":true,"nbf":1568839082,"exp":1631998082,"created":1568839682,"updated":1568839682,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1568839654,"updated":1568839654}},"pending":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending"}}' + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","kid":"https://vaultdda41c5d.vault.azure.net/keys/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","sid":"https://vaultdda41c5d.vault.azure.net/secrets/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","x5t":"O58S7jwqOVpZIdcOI2NYzjAZ_Mo","cer":"MIIDWjCCAkKgAwIBAgIQctUpPxSzQfCs7x3XFX4e0zANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkxMDAyMTg1NTQ1WhcNMjExMDAyMTkwNTQ1WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCaY8ZjfEFH6DWaApB6bO1SbAnIKL1fRwEFrtVPMEU0rI9sFtJGVLS/YzmZMbp4H7FYqmfmwytEMglPa4S2woVVHAGoZCqxoFsgWSChVgnYMvaldx5Rn2nRuc6NL08RFn8w2D2MtcJvcDCgQVkqSvecbEvfB4IU5c+VfgQhBZn0RPYfRxMhHI4qZcgIiH7+V7Nkvenxm8qVbE+7IFVBj2Xg7Xq6L2qWu12mwQWr77jSbiQ/ZhYEbiBF1ufPJSOGOUIWA9kpDUDaFlTDlSzKHVdVMnEU8wiUy29jM1y9nIoTdDHKdvX2caLeMbm2jeUZ8obHo/aJyHmQJ6ajlHJCaDDNAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFENETx79TigEX9P0TH3I6v1UWYXjMB0GA1UdDgQWBBRDRE8e/U4oBF/T9Ex9yOr9VFmF4zANBgkqhkiG9w0BAQsFAAOCAQEARkHvQ8aQ0tfNFITomhhSdV4cP/bmu4pUln8Y8dMMMGlsGTQ3vylnjThFueBLyMkxBiQ05ceOezts45rgcg6bGCglBlI4OAqKRhFQwrvrk5LZWDP7voF+lyljz74Mp7VBX9YrEp+AlaRTi/RgcACSvizGqUASNJtNPWtVgaaBTw0LbLJmidsQU+yK4Wn2pXPZoIzD7L+CSZYAMOa+SPcwqP/SxdCrqY1GT1by6pBY/EjPNKsjn3ZXI/nB/guYMCSttBOLaZ7WuhuclC5wzqC1aHcMr5JWxtJ4EIPhd3rQWP9qI34/SnoEdJkUaSTtagpeRXqP0tgH6OWPlgUhGesEaA==","attributes":{"enabled":true,"nbf":1570042545,"exp":1633201545,"created":1570043145,"updated":1570043145,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1570043118,"updated":1570043118}},"pending":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending"}}' headers: cache-control: - no-cache @@ -344,7 +344,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:48:10 GMT + - Wed, 02 Oct 2019 19:05:54 GMT expires: - '-1' pragma: @@ -358,7 +358,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -372,27 +372,27 @@ interactions: body: null headers: Accept: - - application/pkcs10 + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4= + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"completed","target":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache content-length: - - '956' + - '1255' content-type: - - application/pkcs10; charset=utf-8 + - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:48:10 GMT + - Wed, 02 Oct 2019 19:05:54 GMT expires: - '-1' pragma: @@ -406,7 +406,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -426,12 +426,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt/ONPj8hXRz9PVMfHNC/+M3wTF6fkqq/kmUwJaBK7ywNXv7i4LXSfMF18rM3Lzetdp4jhCjy7zyHRGYP6xxwOL42F4daAdwgBTZqbVzieBfVTpw7sEKscuQFLlFzEcKOWjLeHFkQ9XVs9IzJWhjIdfcQAlaM0NdFSmtqYsVvzMSUPtqxxrM3NA9rr9fcKYJes72qr/dZch1eax3+jYL3Fko4f34fg+VkUuiL96DVBapErwvmtL1mFuM4dxSIIElTchipqDxO3Dgn9sU5RRdydINWtfpLF3HUj2anGzR/tIEK/A37mgGDYZsJxDvyxR3hv9GZnOARFrI1cp6lVIfzXwIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAKTLGwqvtXIPDBQaQLcFut6yzfdyG90Ie7qryP8w0S//DxNZ2QxFj8DCwF0nyFZvxTDLE+PWsSUeAdN+uQRFlT0M9i6/C6SzFGLN7Qzlk7Pyg8vgqsOeqR54pQ42mTb8FJzMFGsvOaSlR79PUXzRNS+DZFj4y0NdEYfvwQ49D88iiXBy29UtNFQT+0Kqymqjo0eDuH7CoOFqW0Al8BRSyGl7oH+9ZM+zQlhtcfPu6+sFADRmB9VtN2cxxaeQ3pvhX+GIMXf0J+z8/FbvQTzWQcCKnPjDTQGPHvTOLEBikRxOykvus43PAqozCzSAprw2MhPXzDX1YRYbyIXTLAI9/D4=","cancellation_requested":false,"status":"completed","target":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert","request_id":"5e1f4346a50f444a96b78f380473280d"}' + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmmPGY3xBR+g1mgKQemztUmwJyCi9X0cBBa7VTzBFNKyPbBbSRlS0v2M5mTG6eB+xWKpn5sMrRDIJT2uEtsKFVRwBqGQqsaBbIFkgoVYJ2DL2pXceUZ9p0bnOjS9PERZ/MNg9jLXCb3AwoEFZKkr3nGxL3weCFOXPlX4EIQWZ9ET2H0cTIRyOKmXICIh+/lezZL3p8ZvKlWxPuyBVQY9l4O16ui9qlrtdpsEFq++40m4kP2YWBG4gRdbnzyUjhjlCFgPZKQ1A2hZUw5Usyh1XVTJxFPMIlMtvYzNcvZyKE3Qxynb19nGi3jG5to3lGfKGx6P2ich5kCemo5RyQmgwzQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAIM7cWxg6KZJi5UPokLZa65NZmWX7YKyajHabqwudjMVydPXJpbpJiSi4Wt6a/+y74NRyEQvHu+8yNMi+ZKo7Plug6vJgQFVKeGdEHA/tLdsJOF0zCSBjwy95RsiAaKiNYC1AtJnyugvU7FAWOn46ZvBlfB0anNp8ERKvFjBO9f8CHzlzaskJydCSCibBFtLCNEcYrcffA8vGPP/sbm2+3oDIfnP3TcQ8jRpUhli9phgDV9xN8H5u8nmaZ1x5SQCtY5dCVDXc2HHt9tVj1YZ6r3R7S3IxBDkckeF0YCSWo9RDi1Qu3h4aBk3r7RjoTynRahUXvus2hRMLZDrRMyyh3I=","cancellation_requested":false,"status":"completed","target":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert","request_id":"c87f693df850407ba663c14bd18c6dbb"}' headers: cache-control: - no-cache @@ -440,7 +440,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:48:10 GMT + - Wed, 02 Oct 2019 19:05:54 GMT expires: - '-1' pragma: @@ -454,7 +454,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: @@ -476,12 +476,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert?api-version=7.0 response: body: - string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","kid":"https://vaultdda41c5d.vault.azure.net/keys/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","sid":"https://vaultdda41c5d.vault.azure.net/secrets/unknownIssuerCert/c270665afd194c7ebcb51039a8572e87","x5t":"HW271xe3p2PaikZi8eoGJ4dhDHU","cer":"MIIDWjCCAkKgAwIBAgIQDGo7vTrrS+megtLlsuxHgzANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkwOTE4MjAzODAyWhcNMjEwOTE4MjA0ODAyWjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3840+PyFdHP09Ux8c0L/4zfBMXp+Sqr+SZTAloErvLA1e/uLgtdJ8wXXyszcvN612niOEKPLvPIdEZg/rHHA4vjYXh1oB3CAFNmptXOJ4F9VOnDuwQqxy5AUuUXMRwo5aMt4cWRD1dWz0jMlaGMh19xACVozQ10VKa2pixW/MxJQ+2rHGszc0D2uv19wpgl6zvaqv91lyHV5rHf6NgvcWSjh/fh+D5WRS6Iv3oNUFqkSvC+a0vWYW4zh3FIggSVNyGKmoPE7cOCf2xTlFF3J0g1a1+ksXcdSPZqcbNH+0gQr8DfuaAYNhmwnEO/LFHeG/0Zmc4BEWsjVynqVUh/NfAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFCBJjUBUdIkR3bGgNsLZIAoTQQDrMB0GA1UdDgQWBBQgSY1AVHSJEd2xoDbC2SAKE0EA6zANBgkqhkiG9w0BAQsFAAOCAQEAqO6fKTw2CAy2RjjaYJXE3L9JC8NpSXvcyYqrUpnJ2Il0yUCAufaEV2Ouoss0+7tsJg2DekPYSWbYk439fSzOfxciG8GcoQuZZVbD+SoLzV6D9NaQgAltnshq/h+eqQp3k+662czUNJRSBXx/t/J7+CrRN9jtgF9ecq+BP3kcWVVvaLrCgivNlcaQ5RFCtcJ+0n6eeK95UICuHwCtc0NxanO3eJabdGu5S5UMhPl30evRSQyK3yHXkhMo3CGLxs8QVvgA8fF2Ofez43SDxJX3oMT5EJJTeQsQhmuhGB7UeLZktZT1AFpM/3ySs2R586dsUNv+IQEARIEr4YUzJ/ksiw==","attributes":{"enabled":true,"nbf":1568839082,"exp":1631998082,"created":1568839682,"updated":1568839682,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1568839654,"updated":1568839654}},"pending":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending"}}' + string: '{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","kid":"https://vaultdda41c5d.vault.azure.net/keys/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","sid":"https://vaultdda41c5d.vault.azure.net/secrets/unknownIssuerCert/2527ca18b40b42a8a0f07b65d01a0373","x5t":"O58S7jwqOVpZIdcOI2NYzjAZ_Mo","cer":"MIIDWjCCAkKgAwIBAgIQctUpPxSzQfCs7x3XFX4e0zANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkxMDAyMTg1NTQ1WhcNMjExMDAyMTkwNTQ1WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCaY8ZjfEFH6DWaApB6bO1SbAnIKL1fRwEFrtVPMEU0rI9sFtJGVLS/YzmZMbp4H7FYqmfmwytEMglPa4S2woVVHAGoZCqxoFsgWSChVgnYMvaldx5Rn2nRuc6NL08RFn8w2D2MtcJvcDCgQVkqSvecbEvfB4IU5c+VfgQhBZn0RPYfRxMhHI4qZcgIiH7+V7Nkvenxm8qVbE+7IFVBj2Xg7Xq6L2qWu12mwQWr77jSbiQ/ZhYEbiBF1ufPJSOGOUIWA9kpDUDaFlTDlSzKHVdVMnEU8wiUy29jM1y9nIoTdDHKdvX2caLeMbm2jeUZ8obHo/aJyHmQJ6ajlHJCaDDNAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFENETx79TigEX9P0TH3I6v1UWYXjMB0GA1UdDgQWBBRDRE8e/U4oBF/T9Ex9yOr9VFmF4zANBgkqhkiG9w0BAQsFAAOCAQEARkHvQ8aQ0tfNFITomhhSdV4cP/bmu4pUln8Y8dMMMGlsGTQ3vylnjThFueBLyMkxBiQ05ceOezts45rgcg6bGCglBlI4OAqKRhFQwrvrk5LZWDP7voF+lyljz74Mp7VBX9YrEp+AlaRTi/RgcACSvizGqUASNJtNPWtVgaaBTw0LbLJmidsQU+yK4Wn2pXPZoIzD7L+CSZYAMOa+SPcwqP/SxdCrqY1GT1by6pBY/EjPNKsjn3ZXI/nB/guYMCSttBOLaZ7WuhuclC5wzqC1aHcMr5JWxtJ4EIPhd3rQWP9qI34/SnoEdJkUaSTtagpeRXqP0tgH6OWPlgUhGesEaA==","attributes":{"enabled":true,"nbf":1570042545,"exp":1633201545,"created":1570043145,"updated":1570043145,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1570043118,"updated":1570043118}},"pending":{"id":"https://vaultdda41c5d.vault.azure.net/certificates/unknownIssuerCert/pending"}}' headers: cache-control: - no-cache @@ -490,7 +490,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Sep 2019 20:48:10 GMT + - Wed, 02 Oct 2019 19:05:55 GMT expires: - '-1' pragma: @@ -504,7 +504,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - addr=131.107.174.72;act_addr_fam=InterNetwork; + - addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: - westus x-ms-keyvault-service-version: diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client_async.test_get_pending_certificate_signing_request.yaml b/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client_async.test_get_pending_certificate_signing_request.yaml index e1a7e35ec5ef..c7d7dd45f35b 100644 --- a/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client_async.test_get_pending_certificate_signing_request.yaml +++ b/sdk/keyvault/azure-keyvault-certificates/tests/recordings/test_certificates_client_async.test_get_pending_certificate_signing_request.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/create?api-version=7.0 response: @@ -20,7 +20,7 @@ interactions: cache-control: no-cache content-length: '87' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:14 GMT + date: Wed, 02 Oct 2019 19:08:05 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 @@ -29,7 +29,7 @@ interactions: resource="https://vault.azure.net" x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -45,10 +45,10 @@ interactions: - api-version=7.0 - '' - request: - body: '{"policy": {"key_props": {"exportable": true, "kty": "RSA", "key_size": - 2048, "reuse_key": false}, "secret_props": {"contentType": "application/x-pkcs12"}, - "x509_props": {"subject": "CN=*.microsoft.com", "sans": {"dns_names": ["sdk.azure-int.net"]}, - "validity_months": 24}, "issuer": {"name": "Self"}}}' + body: '{"policy": {"key_props": {"kty": "RSA", "key_size": 2048, "exportable": + true, "reuse_key": false}, "issuer": {"name": "Self"}, "x509_props": {"sans": + {"dns_names": ["sdk.azure-int.net"]}, "subject": "CN=*.microsoft.com", "validity_months": + 24}, "secret_props": {"contentType": "application/x-pkcs12"}}}' headers: Accept: - application/json @@ -57,28 +57,28 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/create?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + time based on the issuer provider. Please check again later.","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1340' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:15 GMT + date: Wed, 02 Oct 2019 19:08:06 GMT expires: '-1' - location: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0&request_id=3bd60c4c6cc745cd9f97e7f9b0d7742a + location: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0&request_id=8fd5b9cd11ee48d98d34f9c42925cd33 pragma: no-cache retry-after: '10' server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -99,19 +99,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + time based on the issuer provider. Please check again later.","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1340' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:15 GMT + date: Wed, 02 Oct 2019 19:08:06 GMT expires: '-1' pragma: no-cache retry-after: '10' @@ -119,7 +119,7 @@ interactions: strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -140,19 +140,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + time based on the issuer provider. Please check again later.","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1340' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:25 GMT + date: Wed, 02 Oct 2019 19:08:17 GMT expires: '-1' pragma: no-cache retry-after: '10' @@ -160,7 +160,7 @@ interactions: strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -181,19 +181,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + time based on the issuer provider. Please check again later.","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1340' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:36 GMT + date: Wed, 02 Oct 2019 19:08:27 GMT expires: '-1' pragma: no-cache retry-after: '10' @@ -201,7 +201,7 @@ interactions: strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -222,19 +222,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + time based on the issuer provider. Please check again later.","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1340' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:46 GMT + date: Wed, 02 Oct 2019 19:08:36 GMT expires: '-1' pragma: no-cache retry-after: '10' @@ -242,7 +242,7 @@ interactions: strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -263,24 +263,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"completed","target":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"completed","target":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1255' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:50 GMT + date: Wed, 02 Oct 2019 19:08:42 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -301,24 +301,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","kid":"https://vault91f91eda.vault.azure.net/keys/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","sid":"https://vault91f91eda.vault.azure.net/secrets/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","x5t":"YQY1vmj7iynajXAcAi4C8HY-R0A","cer":"MIIDWjCCAkKgAwIBAgIQTwSLVHAhTluHlts5rdRYjDANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkwOTE4MjAzODQ2WhcNMjEwOTE4MjA0ODQ2WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp6Wzdn0d0HuEQE6CWPS288d9vlFSnrgEuDR56OxAHOk4O93v6wx+BAk1hRuRjXn/kHWw5WeuyltUvhTNMqcJ0BncOnMyR6YwaWr6+nWDR1LB3BrTwmc6dLKJ+5a7l+aSdgpHnSlSgyc3OWzSf5Mj1c9HoiXiypJFBq+xXWmi/Lk1oc15m/3RR317z4P6lzSWbfm+Lah6yWs/Ig4KWJJctgDWYuIVvGtZSMzS1bVj/wzPYXPLqsd76y6M3B55/xtMftFX/v5KuuXeGpW+Xu6/SRMebLP0FsYdCMMIApTHCCdxLyB46RhTBsUS0V9TG0JDE6vMGHGZSiJKdP76yIEbrAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFB9EsorU/rhqTn3U9UG50FC+XlofMB0GA1UdDgQWBBQfRLKK1P64ak591PVBudBQvl5aHzANBgkqhkiG9w0BAQsFAAOCAQEATqRR0IMCv+5rfbEpLh9gulp+9X2AUtsS+8ngQjSciNujrjxnm0af44WD8gctHh5uh6LbraSh4/ympi0dSFyogaZmX4qeycoMu7LLE4g0Y1jktxGAoD/YKcHtQyalyeV8i2Q94ZCXekstmqqXw3/PRtlJFZiu1QyhUdbztyL11+jfC5Pal5VU7Ukiih0h1EqNp+rU1pWSgAvFZTAaAN9mkEutwYbkDd7SJWoBG3rl+RUdbiKFIhuMlKhioac83tJIlwgez+MquwQMZHNGNgDNgDhji8+VhJMv/3WW6lAopyWNFVynmF1tPDGqDSTIJjRno9VsTpLAeu2SBm/FGF5q5A==","attributes":{"enabled":true,"nbf":1568839126,"exp":1631998126,"created":1568839726,"updated":1568839726,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1568839696,"updated":1568839696}},"pending":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending"}}' + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","kid":"https://vault91f91eda.vault.azure.net/keys/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","sid":"https://vault91f91eda.vault.azure.net/secrets/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","x5t":"DyAxPoE4vlhIteS9Nsbd4ErGJzg","cer":"MIIDWjCCAkKgAwIBAgIQHzrNcfwnQpSk01mb4VpzMzANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkxMDAyMTg1ODM5WhcNMjExMDAyMTkwODM5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCwByleTIbJ7EOH3wcbe1RDJCFZgUiGNlEGK8JRrjn3t/R4tkM84eMeYo5ckmdUp1ofqMwmlhmtC1CGax7O0rRuMQniC/oQds+HL+NjSJIBS4xS0G7KODHHr+wsMohgDSYYURWq+57pIAndSNgEwfETsa2S/6w6Mvb5qcAu243nqab44ndCKcclBa0ZbeDvISIo9Wbktwou9PhXhA4vwuOCk37PLeWMNzKsGR1NLz3ytyihLEfzPSOC895jLg1XAW/bhbULmYdOuxoe+sMYg0ODOqI5s4xDefoLmIs77R+bltlPPatIGAHsZRG/AdlOz6ywzmYgNjmVb4URPmsa8ilAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFOQkt47pJayv/CSd+tWoghUUL7DGMB0GA1UdDgQWBBTkJLeO6SWsr/wknfrVqIIVFC+wxjANBgkqhkiG9w0BAQsFAAOCAQEAmjTwwrden80dOkZDxUxXUGZ4VuT6I9xOJbddhaRLGRTpKl0tj2Dh2//kUK+fUzQeJ7FXA5xnyTzDZTCJLsRNqCoxBoUboG9kLNbvulw7D/TuN8rxxYlHOwu6MCJZIMoy1kIQV3UA3KN7nv8bme1DyJSQiKfgeKd/hfcOskpWFyCVCBB6PbW1t1L1TK5QO92QJZHtXaVP6nhSv11PZ9STHYW89C2TmcBZoSg6BZD4G1HlvtikR8UH58ExruSVtOm3Y0FB2/LFV7UX3RfrUDx29zFPMF4mlq4+8jBOPB8cyJrufb1kf04NBmQ5PXA717ijgKYAk7OrZNv+OV7OcGRgWg==","attributes":{"enabled":true,"nbf":1570042719,"exp":1633201719,"created":1570043319,"updated":1570043319,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1570043286,"updated":1570043286}},"pending":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending"}}' headers: cache-control: no-cache content-length: '2407' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:55 GMT + date: Wed, 02 Oct 2019 19:08:47 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -337,26 +337,26 @@ interactions: body: null headers: Accept: - - application/pkcs10 + - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0= + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"completed","target":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache - content-length: '956' - content-type: application/pkcs10; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:55 GMT + content-length: '1255' + content-type: application/json; charset=utf-8 + date: Wed, 02 Oct 2019 19:08:47 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -377,24 +377,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqels3Z9HdB7hEBOglj0tvPHfb5RUp64BLg0eejsQBzpODvd7+sMfgQJNYUbkY15/5B1sOVnrspbVL4UzTKnCdAZ3DpzMkemMGlq+vp1g0dSwdwa08JnOnSyifuWu5fmknYKR50pUoMnNzls0n+TI9XPR6Il4sqSRQavsV1povy5NaHNeZv90Ud9e8+D+pc0lm35vi2oeslrPyIOCliSXLYA1mLiFbxrWUjM0tW1Y/8Mz2Fzy6rHe+sujNweef8bTH7RV/7+Srrl3hqVvl7uv0kTHmyz9BbGHQjDCAKUxwgncS8geOkYUwbFEtFfUxtCQxOrzBhxmUoiSnT++siBG6wIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBADqSLli62pOgpQtsNEt60xrDWf4GafdMf4v+O2p3/Z6Opas4chpb+MXAxPMW6DWa1S/iqmtQQk+C7jF8114hximsUVSo25Vzks+Oz8vR2Dkl+YwCdUpv/hFr62WWl/MSJ2D6svPTlRZDcBBn2f1JcucUJWDWs5lt8tXr/GqFW0AuuTyqwFqA5Hnkhny1FBMAZK8VFro0UiaKvRJ5UceTVU3uKQTNcjqHH4VbvKCY1NCpS2H33vTEcoFk1FtVU4wpll/5KUpykpxc2yGaQZ1X4kluyc4UmL+6aiM4LgZCsrnd27KvdJDtZjcDOgB0PfWVbA6xZghFy50XUJbrZMSe7K0=","cancellation_requested":false,"status":"completed","target":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert","request_id":"3bd60c4c6cc745cd9f97e7f9b0d7742a"}' + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending","issuer":{"name":"Self"},"csr":"MIICyDCCAbACAQAwGjEYMBYGA1UEAwwPKi5taWNyb3NvZnQuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwsAcpXkyGyexDh98HG3tUQyQhWYFIhjZRBivCUa4597f0eLZDPOHjHmKOXJJnVKdaH6jMJpYZrQtQhmseztK0bjEJ4gv6EHbPhy/jY0iSAUuMUtBuyjgxx6/sLDKIYA0mGFEVqvue6SAJ3UjYBMHxE7Gtkv+sOjL2+anALtuN56mm+OJ3QinHJQWtGW3g7yEiKPVm5LcKLvT4V4QOL8LjgpN+zy3ljDcyrBkdTS898rcooSxH8z0jgvPeYy4NVwFv24W1C5mHTrsaHvrDGINDgzqiObOMQ3n6C5iLO+0fm5bZTz2rSBgB7GURvwHZTs+ssM5mIDY5lW+FET5rGvIpQIDAQABoGkwZwYJKoZIhvcNAQkOMVowWDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBAAXYTq4Q1C+c/CAqigVeHK6iG8WNsYrbZO4CII8AJS0/dQe9TK/IPPFNW4QzO0xxshAdmb2ac4phnag5WIIb7Ce0Nv1UsBQOD/h2CoLtNx7/hR0Qh7cyWG30RlBBeoVF2aOlJy7pDEm0qhgIBSoR2mY4kKGrPNt373GL5AwvFmIy3WgwM/uZvAHSPjuLK5GN+RT6parbpWIUMMsJ8Qi705rChe1NMcjdvjz0cRyyzWT+O/UB7dM7PGpsZniyBb3yoBlsJDxhbIV2wkKAxKm2fCHWnG0hGosIOlSwGxSWzCfKUdPoQzD170iuKnSI4lkQiDbgtsEem815HLW+IZC0/I8=","cancellation_requested":false,"status":"completed","target":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert","request_id":"8fd5b9cd11ee48d98d34f9c42925cd33"}' headers: cache-control: no-cache content-length: '1255' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:56 GMT + date: Wed, 02 Oct 2019 19:08:47 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET @@ -415,24 +415,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.6.6 (Windows-10-10.0.18362-SP0) + - azsdk-python-keyvault-certificates/4.0.0b4 Python/3.5.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert?api-version=7.0 response: body: - string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","kid":"https://vault91f91eda.vault.azure.net/keys/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","sid":"https://vault91f91eda.vault.azure.net/secrets/unknownIssuerCert/b6a44e4cd90e4f72b2f2f5e242283195","x5t":"YQY1vmj7iynajXAcAi4C8HY-R0A","cer":"MIIDWjCCAkKgAwIBAgIQTwSLVHAhTluHlts5rdRYjDANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkwOTE4MjAzODQ2WhcNMjEwOTE4MjA0ODQ2WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCp6Wzdn0d0HuEQE6CWPS288d9vlFSnrgEuDR56OxAHOk4O93v6wx+BAk1hRuRjXn/kHWw5WeuyltUvhTNMqcJ0BncOnMyR6YwaWr6+nWDR1LB3BrTwmc6dLKJ+5a7l+aSdgpHnSlSgyc3OWzSf5Mj1c9HoiXiypJFBq+xXWmi/Lk1oc15m/3RR317z4P6lzSWbfm+Lah6yWs/Ig4KWJJctgDWYuIVvGtZSMzS1bVj/wzPYXPLqsd76y6M3B55/xtMftFX/v5KuuXeGpW+Xu6/SRMebLP0FsYdCMMIApTHCCdxLyB46RhTBsUS0V9TG0JDE6vMGHGZSiJKdP76yIEbrAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFB9EsorU/rhqTn3U9UG50FC+XlofMB0GA1UdDgQWBBQfRLKK1P64ak591PVBudBQvl5aHzANBgkqhkiG9w0BAQsFAAOCAQEATqRR0IMCv+5rfbEpLh9gulp+9X2AUtsS+8ngQjSciNujrjxnm0af44WD8gctHh5uh6LbraSh4/ympi0dSFyogaZmX4qeycoMu7LLE4g0Y1jktxGAoD/YKcHtQyalyeV8i2Q94ZCXekstmqqXw3/PRtlJFZiu1QyhUdbztyL11+jfC5Pal5VU7Ukiih0h1EqNp+rU1pWSgAvFZTAaAN9mkEutwYbkDd7SJWoBG3rl+RUdbiKFIhuMlKhioac83tJIlwgez+MquwQMZHNGNgDNgDhji8+VhJMv/3WW6lAopyWNFVynmF1tPDGqDSTIJjRno9VsTpLAeu2SBm/FGF5q5A==","attributes":{"enabled":true,"nbf":1568839126,"exp":1631998126,"created":1568839726,"updated":1568839726,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1568839696,"updated":1568839696}},"pending":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending"}}' + string: '{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","kid":"https://vault91f91eda.vault.azure.net/keys/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","sid":"https://vault91f91eda.vault.azure.net/secrets/unknownIssuerCert/c7afdeda9f7246d3acd52f9c0a244e60","x5t":"DyAxPoE4vlhIteS9Nsbd4ErGJzg","cer":"MIIDWjCCAkKgAwIBAgIQHzrNcfwnQpSk01mb4VpzMzANBgkqhkiG9w0BAQsFADAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wHhcNMTkxMDAyMTg1ODM5WhcNMjExMDAyMTkwODM5WjAaMRgwFgYDVQQDDA8qLm1pY3Jvc29mdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCwByleTIbJ7EOH3wcbe1RDJCFZgUiGNlEGK8JRrjn3t/R4tkM84eMeYo5ckmdUp1ofqMwmlhmtC1CGax7O0rRuMQniC/oQds+HL+NjSJIBS4xS0G7KODHHr+wsMohgDSYYURWq+57pIAndSNgEwfETsa2S/6w6Mvb5qcAu243nqab44ndCKcclBa0ZbeDvISIo9Wbktwou9PhXhA4vwuOCk37PLeWMNzKsGR1NLz3ytyihLEfzPSOC895jLg1XAW/bhbULmYdOuxoe+sMYg0ODOqI5s4xDefoLmIs77R+bltlPPatIGAHsZRG/AdlOz6ywzmYgNjmVb4URPmsa8ilAgMBAAGjgZswgZgwDgYDVR0PAQH/BAQDAgWgMAkGA1UdEwQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBwGA1UdEQQVMBOCEXNkay5henVyZS1pbnQubmV0MB8GA1UdIwQYMBaAFOQkt47pJayv/CSd+tWoghUUL7DGMB0GA1UdDgQWBBTkJLeO6SWsr/wknfrVqIIVFC+wxjANBgkqhkiG9w0BAQsFAAOCAQEAmjTwwrden80dOkZDxUxXUGZ4VuT6I9xOJbddhaRLGRTpKl0tj2Dh2//kUK+fUzQeJ7FXA5xnyTzDZTCJLsRNqCoxBoUboG9kLNbvulw7D/TuN8rxxYlHOwu6MCJZIMoy1kIQV3UA3KN7nv8bme1DyJSQiKfgeKd/hfcOskpWFyCVCBB6PbW1t1L1TK5QO92QJZHtXaVP6nhSv11PZ9STHYW89C2TmcBZoSg6BZD4G1HlvtikR8UH58ExruSVtOm3Y0FB2/LFV7UX3RfrUDx29zFPMF4mlq4+8jBOPB8cyJrufb1kf04NBmQ5PXA717ijgKYAk7OrZNv+OV7OcGRgWg==","attributes":{"enabled":true,"nbf":1570042719,"exp":1633201719,"created":1570043319,"updated":1570043319,"recoveryLevel":"Purgeable"},"policy":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/policy","key_props":{"exportable":true,"kty":"RSA","key_size":2048,"reuse_key":false},"secret_props":{"contentType":"application/x-pkcs12"},"x509_props":{"subject":"CN=*.microsoft.com","sans":{"dns_names":["sdk.azure-int.net"]},"ekus":["1.3.6.1.5.5.7.3.1","1.3.6.1.5.5.7.3.2"],"key_usage":["digitalSignature","keyEncipherment"],"validity_months":24,"basic_constraints":{"ca":false}},"lifetime_actions":[{"trigger":{"lifetime_percentage":80},"action":{"action_type":"AutoRenew"}}],"issuer":{"name":"Self"},"attributes":{"enabled":true,"created":1570043286,"updated":1570043286}},"pending":{"id":"https://vault91f91eda.vault.azure.net/certificates/unknownIssuerCert/pending"}}' headers: cache-control: no-cache content-length: '2407' content-type: application/json; charset=utf-8 - date: Wed, 18 Sep 2019 20:48:56 GMT + date: Wed, 02 Oct 2019 19:08:48 GMT expires: '-1' pragma: no-cache server: Microsoft-IIS/10.0 strict-transport-security: max-age=31536000;includeSubDomains x-aspnet-version: 4.0.30319 x-content-type-options: nosniff - x-ms-keyvault-network-info: addr=131.107.174.72;act_addr_fam=InterNetwork; + x-ms-keyvault-network-info: addr=167.220.2.94;act_addr_fam=InterNetwork; x-ms-keyvault-region: westus x-ms-keyvault-service-version: 1.1.0.878 x-powered-by: ASP.NET diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client.py b/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client.py index ae53b1309b9c..5ea51ce1bc90 100644 --- a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client.py +++ b/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client.py @@ -516,11 +516,11 @@ def test_get_pending_certificate_signing_request(self, vault_client, **kwargs): ), ) - # get pending certiificate signing request + # get pending certificate signing request certificate = client.create_certificate( name=cert_name, policy=CertificatePolicy._from_certificate_policy_bundle(cert_policy) ).wait() - pending_version_csr = client.get_pending_certificate_signing_request(name=cert_name) + pending_version_csr = client.get_certificate_operation(name=cert_name).csr try: self.assertEqual(client.get_certificate_operation(name=cert_name).csr, pending_version_csr) except Exception as ex: diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py b/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py index 8359bb44b80b..e53b419b91ae 100644 --- a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py @@ -535,7 +535,8 @@ async def test_get_pending_certificate_signing_request(self, vault_client, **kwa name=cert_name, policy=CertificatePolicy._from_certificate_policy_bundle(cert_policy) ) await create_certificate_poller - pending_version_csr = await client.get_pending_certificate_signing_request(name=cert_name) + operation = await client.get_certificate_operation(name=cert_name) + pending_version_csr = operation.csr try: self.assertEqual((await client.get_certificate_operation(name=cert_name)).csr, pending_version_csr) except Exception as ex: diff --git a/sdk/keyvault/azure-keyvault-keys/HISTORY.md b/sdk/keyvault/azure-keyvault-keys/HISTORY.md index 96ac18636705..8beea64907b1 100644 --- a/sdk/keyvault/azure-keyvault-keys/HISTORY.md +++ b/sdk/keyvault/azure-keyvault-keys/HISTORY.md @@ -1,5 +1,8 @@ # Release History +## 4.0.0b5 + + ## 4.0.0b4 (2019-10-08) - Enums `JsonWebKeyCurveName`, `JsonWebKeyOperation`, and `JsonWebKeyType` have been renamed to `KeyCurveName`, `KeyOperation`, and `KeyType`, respectively. diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py index 883841d268ac..f2344fc46f18 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.0.0b4" +VERSION = "4.0.0b5" diff --git a/sdk/keyvault/azure-keyvault-secrets/HISTORY.md b/sdk/keyvault/azure-keyvault-secrets/HISTORY.md index 862f6705b015..e7b95c76f2f4 100644 --- a/sdk/keyvault/azure-keyvault-secrets/HISTORY.md +++ b/sdk/keyvault/azure-keyvault-secrets/HISTORY.md @@ -1,5 +1,8 @@ # Release History +## 4.0.0b5 + + ## 4.0.0b4 (2019-10-08) ### Breaking changes: - `Secret` now has attribute `properties`, which holds certain properties of the diff --git a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py index 883841d268ac..f2344fc46f18 100644 --- a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py +++ b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.0.0b4" +VERSION = "4.0.0b5" diff --git a/sdk/network/azure-mgmt-frontdoor/HISTORY.rst b/sdk/network/azure-mgmt-frontdoor/HISTORY.rst index 2f6f26e85c7f..fc9f8e9b80cc 100644 --- a/sdk/network/azure-mgmt-frontdoor/HISTORY.rst +++ b/sdk/network/azure-mgmt-frontdoor/HISTORY.rst @@ -3,6 +3,52 @@ Release History =============== +0.2.0 (2019-10-09) +++++++++++++++++++ + +**Features** + +- Model RoutingRule has a new parameter route_configuration +- Model PolicySettings has a new parameter redirect_url +- Model PolicySettings has a new parameter custom_block_response_body +- Model PolicySettings has a new parameter custom_block_response_status_code +- Model HealthProbeSettingsModel has a new parameter enabled_state +- Model HealthProbeSettingsModel has a new parameter health_probe_method +- Model HealthProbeSettingsUpdateParameters has a new parameter enabled_state +- Model HealthProbeSettingsUpdateParameters has a new parameter health_probe_method +- Model FrontDoorUpdateParameters has a new parameter backend_pools_settings +- Model CustomRule has a new parameter enabled_state +- Model FrontDoor has a new parameter backend_pools_settings +- Model RoutingRuleUpdateParameters has a new parameter route_configuration +- Added operation group ProfilesOperations +- Added operation group ExperimentsOperations +- Added operation group PreconfiguredEndpointsOperations +- Added operation group ManagedRuleSetsOperations +- Added operation group FrontDoorManagementClientOperationsMixin + +**Breaking changes** + +- Parameter certificate_source of model CustomHttpsConfiguration is now required +- Parameter protocol_type of model CustomHttpsConfiguration is now required +- Model RoutingRule no longer has parameter custom_forwarding_path +- Model RoutingRule no longer has parameter forwarding_protocol +- Model RoutingRule no longer has parameter cache_configuration +- Model RoutingRule no longer has parameter backend_pool +- Model CustomRule no longer has parameter etag +- Model CustomRule no longer has parameter transforms +- Model CustomHttpsConfiguration has a new required parameter minimum_tls_version +- Model RoutingRuleUpdateParameters no longer has parameter custom_forwarding_path +- Model RoutingRuleUpdateParameters no longer has parameter forwarding_protocol +- Model RoutingRuleUpdateParameters no longer has parameter cache_configuration +- Model RoutingRuleUpdateParameters no longer has parameter backend_pool +- Removed operation FrontendEndpointsOperations.delete +- Removed operation FrontendEndpointsOperations.create_or_update +- Model ManagedRuleSet has a new signature +- Removed operation group LoadBalancingSettingsOperations +- Removed operation group RoutingRulesOperations +- Removed operation group HealthProbeSettingsOperations +- Removed operation group BackendPoolsOperations + 0.1.0 (2019-03-11) ++++++++++++++++++ diff --git a/sdk/network/azure-mgmt-frontdoor/README.rst b/sdk/network/azure-mgmt-frontdoor/README.rst index 5091bd19f934..57850737cf83 100644 --- a/sdk/network/azure-mgmt-frontdoor/README.rst +++ b/sdk/network/azure-mgmt-frontdoor/README.rst @@ -6,7 +6,7 @@ This is the Microsoft Azure Front Door Service Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +This package has been tested with Python 2.7, 3.5, 3.6 and 3.7. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/__init__.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/__init__.py index f2cf644ce945..c1ad53652dd4 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/__init__.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .front_door_management_client import FrontDoorManagementClient -from .version import VERSION +from ._configuration import FrontDoorManagementClientConfiguration +from ._front_door_management_client import FrontDoorManagementClient +__all__ = ['FrontDoorManagementClient', 'FrontDoorManagementClientConfiguration'] -__all__ = ['FrontDoorManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py new file mode 100644 index 000000000000..826e21351d07 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class FrontDoorManagementClientConfiguration(AzureConfiguration): + """Configuration for FrontDoorManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(FrontDoorManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-frontdoor/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_front_door_management_client.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_front_door_management_client.py new file mode 100644 index 000000000000..f7ad8da279d1 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_front_door_management_client.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer + +from ._configuration import FrontDoorManagementClientConfiguration +from .operations import FrontDoorManagementClientOperationsMixin +from .operations import ProfilesOperations +from .operations import PreconfiguredEndpointsOperations +from .operations import ExperimentsOperations +from .operations import FrontDoorsOperations +from .operations import FrontendEndpointsOperations +from .operations import EndpointsOperations +from .operations import PoliciesOperations +from .operations import ManagedRuleSetsOperations +from . import models + + +class FrontDoorManagementClient(FrontDoorManagementClientOperationsMixin, SDKClient): + """FrontDoor Client + + :ivar config: Configuration for client. + :vartype config: FrontDoorManagementClientConfiguration + + :ivar profiles: Profiles operations + :vartype profiles: azure.mgmt.frontdoor.operations.ProfilesOperations + :ivar preconfigured_endpoints: PreconfiguredEndpoints operations + :vartype preconfigured_endpoints: azure.mgmt.frontdoor.operations.PreconfiguredEndpointsOperations + :ivar experiments: Experiments operations + :vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations + :ivar front_doors: FrontDoors operations + :vartype front_doors: azure.mgmt.frontdoor.operations.FrontDoorsOperations + :ivar frontend_endpoints: FrontendEndpoints operations + :vartype frontend_endpoints: azure.mgmt.frontdoor.operations.FrontendEndpointsOperations + :ivar endpoints: Endpoints operations + :vartype endpoints: azure.mgmt.frontdoor.operations.EndpointsOperations + :ivar policies: Policies operations + :vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations + :ivar managed_rule_sets: ManagedRuleSets operations + :vartype managed_rule_sets: azure.mgmt.frontdoor.operations.ManagedRuleSetsOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = FrontDoorManagementClientConfiguration(credentials, subscription_id, base_url) + super(FrontDoorManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.profiles = ProfilesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.preconfigured_endpoints = PreconfiguredEndpointsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.experiments = ExperimentsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.front_doors = FrontDoorsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.frontend_endpoints = FrontendEndpointsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.endpoints = EndpointsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.policies = PoliciesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.managed_rule_sets = ManagedRuleSetsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py deleted file mode 100644 index 7382a8928955..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py +++ /dev/null @@ -1,258 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling -import uuid -from .operations.front_doors_operations import FrontDoorsOperations -from .operations.routing_rules_operations import RoutingRulesOperations -from .operations.health_probe_settings_operations import HealthProbeSettingsOperations -from .operations.load_balancing_settings_operations import LoadBalancingSettingsOperations -from .operations.backend_pools_operations import BackendPoolsOperations -from .operations.frontend_endpoints_operations import FrontendEndpointsOperations -from .operations.endpoints_operations import EndpointsOperations -from .operations.policies_operations import PoliciesOperations -from . import models - - -class FrontDoorManagementClientConfiguration(AzureConfiguration): - """Configuration for FrontDoorManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription credentials which uniquely - identify the Microsoft Azure subscription. The subscription ID forms part - of the URI for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(FrontDoorManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-frontdoor/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class FrontDoorManagementClient(SDKClient): - """FrontDoor Client - - :ivar config: Configuration for client. - :vartype config: FrontDoorManagementClientConfiguration - - :ivar front_doors: FrontDoors operations - :vartype front_doors: azure.mgmt.frontdoor.operations.FrontDoorsOperations - :ivar routing_rules: RoutingRules operations - :vartype routing_rules: azure.mgmt.frontdoor.operations.RoutingRulesOperations - :ivar health_probe_settings: HealthProbeSettings operations - :vartype health_probe_settings: azure.mgmt.frontdoor.operations.HealthProbeSettingsOperations - :ivar load_balancing_settings: LoadBalancingSettings operations - :vartype load_balancing_settings: azure.mgmt.frontdoor.operations.LoadBalancingSettingsOperations - :ivar backend_pools: BackendPools operations - :vartype backend_pools: azure.mgmt.frontdoor.operations.BackendPoolsOperations - :ivar frontend_endpoints: FrontendEndpoints operations - :vartype frontend_endpoints: azure.mgmt.frontdoor.operations.FrontendEndpointsOperations - :ivar endpoints: Endpoints operations - :vartype endpoints: azure.mgmt.frontdoor.operations.EndpointsOperations - :ivar policies: Policies operations - :vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription credentials which uniquely - identify the Microsoft Azure subscription. The subscription ID forms part - of the URI for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = FrontDoorManagementClientConfiguration(credentials, subscription_id, base_url) - super(FrontDoorManagementClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.front_doors = FrontDoorsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.routing_rules = RoutingRulesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.health_probe_settings = HealthProbeSettingsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.load_balancing_settings = LoadBalancingSettingsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backend_pools = BackendPoolsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.frontend_endpoints = FrontendEndpointsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.endpoints = EndpointsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.policies = PoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) - - def check_front_door_name_availability( - self, name, type, custom_headers=None, raw=False, **operation_config): - """Check the availability of a Front Door resource name. - - :param name: The resource name to validate. - :type name: str - :param type: The type of the resource whose name is to be validated. - Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - :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: CheckNameAvailabilityOutput or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) - - api_version = "2018-08-01" - - # Construct URL - url = self.check_front_door_name_availability.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CheckNameAvailabilityOutput', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_front_door_name_availability.metadata = {'url': '/providers/Microsoft.Network/checkFrontDoorNameAvailability'} - - def check_front_door_name_availability_with_subscription( - self, name, type, custom_headers=None, raw=False, **operation_config): - """Check the availability of a Front Door subdomain. - - :param name: The resource name to validate. - :type name: str - :param type: The type of the resource whose name is to be validated. - Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - :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: CheckNameAvailabilityOutput or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) - - api_version = "2018-08-01" - - # Construct URL - url = self.check_front_door_name_availability_with_subscription.metadata['url'] - path_format_arguments = { - '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("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CheckNameAvailabilityOutput', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_front_door_name_availability_with_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py index 8426d3c4cca0..1fc048f731ec 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py @@ -10,185 +10,288 @@ # -------------------------------------------------------------------------- try: - from .front_door_py3 import FrontDoor - from .routing_rule_py3 import RoutingRule - from .load_balancing_settings_model_py3 import LoadBalancingSettingsModel - from .health_probe_settings_model_py3 import HealthProbeSettingsModel - from .backend_pool_py3 import BackendPool - from .key_vault_certificate_source_parameters_vault_py3 import KeyVaultCertificateSourceParametersVault - from .custom_https_configuration_py3 import CustomHttpsConfiguration - from .frontend_endpoint_py3 import FrontendEndpoint - from .front_door_update_parameters_py3 import FrontDoorUpdateParameters - from .purge_parameters_py3 import PurgeParameters - from .sub_resource_py3 import SubResource - from .cache_configuration_py3 import CacheConfiguration - from .routing_rule_update_parameters_py3 import RoutingRuleUpdateParameters - from .backend_py3 import Backend - from .load_balancing_settings_update_parameters_py3 import LoadBalancingSettingsUpdateParameters - from .health_probe_settings_update_parameters_py3 import HealthProbeSettingsUpdateParameters - from .backend_pool_update_parameters_py3 import BackendPoolUpdateParameters - from .frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3 import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - from .frontend_endpoint_update_parameters_py3 import FrontendEndpointUpdateParameters - from .validate_custom_domain_input_py3 import ValidateCustomDomainInput - from .validate_custom_domain_output_py3 import ValidateCustomDomainOutput - from .error_response_py3 import ErrorResponse, ErrorResponseException - from .check_name_availability_input_py3 import CheckNameAvailabilityInput - from .check_name_availability_output_py3 import CheckNameAvailabilityOutput - from .resource_py3 import Resource - from .error_details_py3 import ErrorDetails - from .error_py3 import Error - from .azure_async_operation_result_py3 import AzureAsyncOperationResult - from .tags_object_py3 import TagsObject - from .policy_settings_py3 import PolicySettings - from .match_condition1_py3 import MatchCondition1 - from .custom_rule_py3 import CustomRule - from .custom_rules_py3 import CustomRules - from .managed_rule_set_py3 import ManagedRuleSet - from .managed_rule_sets_py3 import ManagedRuleSets - from .web_application_firewall_policy1_py3 import WebApplicationFirewallPolicy1 - from .azure_managed_override_rule_group_py3 import AzureManagedOverrideRuleGroup - from .azure_managed_rule_set_py3 import AzureManagedRuleSet + from ._models_py3 import AzureAsyncOperationResult + from ._models_py3 import Backend + from ._models_py3 import BackendPool + from ._models_py3 import BackendPoolListResult + from ._models_py3 import BackendPoolsSettings + from ._models_py3 import BackendPoolUpdateParameters + from ._models_py3 import CacheConfiguration + from ._models_py3 import CheckNameAvailabilityInput + from ._models_py3 import CheckNameAvailabilityOutput + from ._models_py3 import CustomHttpsConfiguration + from ._models_py3 import CustomRule + from ._models_py3 import CustomRuleList + from ._models_py3 import Endpoint + from ._models_py3 import Error + from ._models_py3 import ErrorDetails + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import Experiment + from ._models_py3 import ExperimentUpdateModel + from ._models_py3 import ForwardingConfiguration + from ._models_py3 import FrontDoor + from ._models_py3 import FrontDoorUpdateParameters + from ._models_py3 import FrontendEndpoint + from ._models_py3 import FrontendEndpointLink + from ._models_py3 import FrontendEndpointUpdateParameters + from ._models_py3 import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + from ._models_py3 import HealthProbeSettingsListResult + from ._models_py3 import HealthProbeSettingsModel + from ._models_py3 import HealthProbeSettingsUpdateParameters + from ._models_py3 import KeyVaultCertificateSourceParametersVault + from ._models_py3 import LatencyMetric + from ._models_py3 import LatencyScorecard + from ._models_py3 import LoadBalancingSettingsListResult + from ._models_py3 import LoadBalancingSettingsModel + from ._models_py3 import LoadBalancingSettingsUpdateParameters + from ._models_py3 import ManagedRuleDefinition + from ._models_py3 import ManagedRuleExclusion + from ._models_py3 import ManagedRuleGroupDefinition + from ._models_py3 import ManagedRuleGroupOverride + from ._models_py3 import ManagedRuleOverride + from ._models_py3 import ManagedRuleSet + from ._models_py3 import ManagedRuleSetDefinition + from ._models_py3 import ManagedRuleSetList + from ._models_py3 import MatchCondition + from ._models_py3 import PolicySettings + from ._models_py3 import PreconfiguredEndpoint + from ._models_py3 import Profile + from ._models_py3 import ProfileUpdateModel + from ._models_py3 import PurgeParameters + from ._models_py3 import RedirectConfiguration + from ._models_py3 import Resource + from ._models_py3 import RouteConfiguration + from ._models_py3 import RoutingRule + from ._models_py3 import RoutingRuleListResult + from ._models_py3 import RoutingRuleUpdateParameters + from ._models_py3 import SubResource + from ._models_py3 import TagsObject + from ._models_py3 import Timeseries + from ._models_py3 import TimeseriesDataPoint + from ._models_py3 import ValidateCustomDomainInput + from ._models_py3 import ValidateCustomDomainOutput + from ._models_py3 import WebApplicationFirewallPolicy except (SyntaxError, ImportError): - from .front_door import FrontDoor - from .routing_rule import RoutingRule - from .load_balancing_settings_model import LoadBalancingSettingsModel - from .health_probe_settings_model import HealthProbeSettingsModel - from .backend_pool import BackendPool - from .key_vault_certificate_source_parameters_vault import KeyVaultCertificateSourceParametersVault - from .custom_https_configuration import CustomHttpsConfiguration - from .frontend_endpoint import FrontendEndpoint - from .front_door_update_parameters import FrontDoorUpdateParameters - from .purge_parameters import PurgeParameters - from .sub_resource import SubResource - from .cache_configuration import CacheConfiguration - from .routing_rule_update_parameters import RoutingRuleUpdateParameters - from .backend import Backend - from .load_balancing_settings_update_parameters import LoadBalancingSettingsUpdateParameters - from .health_probe_settings_update_parameters import HealthProbeSettingsUpdateParameters - from .backend_pool_update_parameters import BackendPoolUpdateParameters - from .frontend_endpoint_update_parameters_web_application_firewall_policy_link import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - from .frontend_endpoint_update_parameters import FrontendEndpointUpdateParameters - from .validate_custom_domain_input import ValidateCustomDomainInput - from .validate_custom_domain_output import ValidateCustomDomainOutput - from .error_response import ErrorResponse, ErrorResponseException - from .check_name_availability_input import CheckNameAvailabilityInput - from .check_name_availability_output import CheckNameAvailabilityOutput - from .resource import Resource - from .error_details import ErrorDetails - from .error import Error - from .azure_async_operation_result import AzureAsyncOperationResult - from .tags_object import TagsObject - from .policy_settings import PolicySettings - from .match_condition1 import MatchCondition1 - from .custom_rule import CustomRule - from .custom_rules import CustomRules - from .managed_rule_set import ManagedRuleSet - from .managed_rule_sets import ManagedRuleSets - from .web_application_firewall_policy1 import WebApplicationFirewallPolicy1 - from .azure_managed_override_rule_group import AzureManagedOverrideRuleGroup - from .azure_managed_rule_set import AzureManagedRuleSet -from .front_door_paged import FrontDoorPaged -from .routing_rule_paged import RoutingRulePaged -from .health_probe_settings_model_paged import HealthProbeSettingsModelPaged -from .load_balancing_settings_model_paged import LoadBalancingSettingsModelPaged -from .backend_pool_paged import BackendPoolPaged -from .frontend_endpoint_paged import FrontendEndpointPaged -from .web_application_firewall_policy1_paged import WebApplicationFirewallPolicy1Paged -from .front_door_management_client_enums import ( + from ._models import AzureAsyncOperationResult + from ._models import Backend + from ._models import BackendPool + from ._models import BackendPoolListResult + from ._models import BackendPoolsSettings + from ._models import BackendPoolUpdateParameters + from ._models import CacheConfiguration + from ._models import CheckNameAvailabilityInput + from ._models import CheckNameAvailabilityOutput + from ._models import CustomHttpsConfiguration + from ._models import CustomRule + from ._models import CustomRuleList + from ._models import Endpoint + from ._models import Error + from ._models import ErrorDetails + from ._models import ErrorResponse, ErrorResponseException + from ._models import Experiment + from ._models import ExperimentUpdateModel + from ._models import ForwardingConfiguration + from ._models import FrontDoor + from ._models import FrontDoorUpdateParameters + from ._models import FrontendEndpoint + from ._models import FrontendEndpointLink + from ._models import FrontendEndpointUpdateParameters + from ._models import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + from ._models import HealthProbeSettingsListResult + from ._models import HealthProbeSettingsModel + from ._models import HealthProbeSettingsUpdateParameters + from ._models import KeyVaultCertificateSourceParametersVault + from ._models import LatencyMetric + from ._models import LatencyScorecard + from ._models import LoadBalancingSettingsListResult + from ._models import LoadBalancingSettingsModel + from ._models import LoadBalancingSettingsUpdateParameters + from ._models import ManagedRuleDefinition + from ._models import ManagedRuleExclusion + from ._models import ManagedRuleGroupDefinition + from ._models import ManagedRuleGroupOverride + from ._models import ManagedRuleOverride + from ._models import ManagedRuleSet + from ._models import ManagedRuleSetDefinition + from ._models import ManagedRuleSetList + from ._models import MatchCondition + from ._models import PolicySettings + from ._models import PreconfiguredEndpoint + from ._models import Profile + from ._models import ProfileUpdateModel + from ._models import PurgeParameters + from ._models import RedirectConfiguration + from ._models import Resource + from ._models import RouteConfiguration + from ._models import RoutingRule + from ._models import RoutingRuleListResult + from ._models import RoutingRuleUpdateParameters + from ._models import SubResource + from ._models import TagsObject + from ._models import Timeseries + from ._models import TimeseriesDataPoint + from ._models import ValidateCustomDomainInput + from ._models import ValidateCustomDomainOutput + from ._models import WebApplicationFirewallPolicy +from ._paged_models import ExperimentPaged +from ._paged_models import FrontDoorPaged +from ._paged_models import FrontendEndpointPaged +from ._paged_models import ManagedRuleSetDefinitionPaged +from ._paged_models import PreconfiguredEndpointPaged +from ._paged_models import ProfilePaged +from ._paged_models import WebApplicationFirewallPolicyPaged +from ._front_door_management_client_enums import ( + NetworkOperationStatus, + NetworkExperimentResourceState, + State, + AggregationInterval, + TimeseriesType, + EndpointType, FrontDoorResourceState, CustomHttpsProvisioningState, CustomHttpsProvisioningSubstate, FrontDoorCertificateSource, - FrontDoorTlsProtocolType, + MinimumTLSVersion, FrontDoorCertificateType, + EnforceCertificateNameCheckEnabledState, FrontDoorEnabledState, FrontDoorProtocol, + RoutingRuleEnabledState, FrontDoorForwardingProtocol, FrontDoorQuery, DynamicCompressionEnabled, + FrontDoorRedirectType, + FrontDoorRedirectProtocol, + BackendEnabledState, + FrontDoorHealthProbeMethod, + HealthProbeEnabled, SessionAffinityEnabledState, ResourceType, Availability, - NetworkOperationStatus, - EnabledState, - Mode, + PolicyEnabledState, + PolicyMode, + CustomRuleEnabledState, RuleType, - MatchCondition, + MatchVariable, Operator, - Action, - Transform, - WebApplicationFirewallPolicy, - RuleGroupOverride, + TransformType, + ActionType, + ManagedRuleExclusionMatchVariable, + ManagedRuleExclusionSelectorMatchOperator, + ManagedRuleEnabledState, + PolicyResourceState, + LatencyScorecardAggregationInterval, + TimeseriesAggregationInterval, ) __all__ = [ - 'FrontDoor', - 'RoutingRule', - 'LoadBalancingSettingsModel', - 'HealthProbeSettingsModel', + 'AzureAsyncOperationResult', + 'Backend', 'BackendPool', - 'KeyVaultCertificateSourceParametersVault', + 'BackendPoolListResult', + 'BackendPoolsSettings', + 'BackendPoolUpdateParameters', + 'CacheConfiguration', + 'CheckNameAvailabilityInput', + 'CheckNameAvailabilityOutput', 'CustomHttpsConfiguration', - 'FrontendEndpoint', + 'CustomRule', + 'CustomRuleList', + 'Endpoint', + 'Error', + 'ErrorDetails', + 'ErrorResponse', 'ErrorResponseException', + 'Experiment', + 'ExperimentUpdateModel', + 'ForwardingConfiguration', + 'FrontDoor', 'FrontDoorUpdateParameters', + 'FrontendEndpoint', + 'FrontendEndpointLink', + 'FrontendEndpointUpdateParameters', + 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink', + 'HealthProbeSettingsListResult', + 'HealthProbeSettingsModel', + 'HealthProbeSettingsUpdateParameters', + 'KeyVaultCertificateSourceParametersVault', + 'LatencyMetric', + 'LatencyScorecard', + 'LoadBalancingSettingsListResult', + 'LoadBalancingSettingsModel', + 'LoadBalancingSettingsUpdateParameters', + 'ManagedRuleDefinition', + 'ManagedRuleExclusion', + 'ManagedRuleGroupDefinition', + 'ManagedRuleGroupOverride', + 'ManagedRuleOverride', + 'ManagedRuleSet', + 'ManagedRuleSetDefinition', + 'ManagedRuleSetList', + 'MatchCondition', + 'PolicySettings', + 'PreconfiguredEndpoint', + 'Profile', + 'ProfileUpdateModel', 'PurgeParameters', - 'SubResource', - 'CacheConfiguration', + 'RedirectConfiguration', + 'Resource', + 'RouteConfiguration', + 'RoutingRule', + 'RoutingRuleListResult', 'RoutingRuleUpdateParameters', - 'Backend', - 'LoadBalancingSettingsUpdateParameters', - 'HealthProbeSettingsUpdateParameters', - 'BackendPoolUpdateParameters', - 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink', - 'FrontendEndpointUpdateParameters', + 'SubResource', + 'TagsObject', + 'Timeseries', + 'TimeseriesDataPoint', 'ValidateCustomDomainInput', 'ValidateCustomDomainOutput', - 'ErrorResponse', 'ErrorResponseException', - 'CheckNameAvailabilityInput', - 'CheckNameAvailabilityOutput', - 'Resource', - 'ErrorDetails', - 'Error', - 'AzureAsyncOperationResult', - 'TagsObject', - 'PolicySettings', - 'MatchCondition1', - 'CustomRule', - 'CustomRules', - 'ManagedRuleSet', - 'ManagedRuleSets', - 'WebApplicationFirewallPolicy1', - 'AzureManagedOverrideRuleGroup', - 'AzureManagedRuleSet', + 'WebApplicationFirewallPolicy', + 'ProfilePaged', + 'PreconfiguredEndpointPaged', + 'ExperimentPaged', 'FrontDoorPaged', - 'RoutingRulePaged', - 'HealthProbeSettingsModelPaged', - 'LoadBalancingSettingsModelPaged', - 'BackendPoolPaged', 'FrontendEndpointPaged', - 'WebApplicationFirewallPolicy1Paged', + 'WebApplicationFirewallPolicyPaged', + 'ManagedRuleSetDefinitionPaged', + 'NetworkOperationStatus', + 'NetworkExperimentResourceState', + 'State', + 'AggregationInterval', + 'TimeseriesType', + 'EndpointType', 'FrontDoorResourceState', 'CustomHttpsProvisioningState', 'CustomHttpsProvisioningSubstate', 'FrontDoorCertificateSource', - 'FrontDoorTlsProtocolType', + 'MinimumTLSVersion', 'FrontDoorCertificateType', + 'EnforceCertificateNameCheckEnabledState', 'FrontDoorEnabledState', 'FrontDoorProtocol', + 'RoutingRuleEnabledState', 'FrontDoorForwardingProtocol', 'FrontDoorQuery', 'DynamicCompressionEnabled', + 'FrontDoorRedirectType', + 'FrontDoorRedirectProtocol', + 'BackendEnabledState', + 'FrontDoorHealthProbeMethod', + 'HealthProbeEnabled', 'SessionAffinityEnabledState', 'ResourceType', 'Availability', - 'NetworkOperationStatus', - 'EnabledState', - 'Mode', + 'PolicyEnabledState', + 'PolicyMode', + 'CustomRuleEnabledState', 'RuleType', - 'MatchCondition', + 'MatchVariable', 'Operator', - 'Action', - 'Transform', - 'WebApplicationFirewallPolicy', - 'RuleGroupOverride', + 'TransformType', + 'ActionType', + 'ManagedRuleExclusionMatchVariable', + 'ManagedRuleExclusionSelectorMatchOperator', + 'ManagedRuleEnabledState', + 'PolicyResourceState', + 'LatencyScorecardAggregationInterval', + 'TimeseriesAggregationInterval', ] diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_front_door_management_client_enums.py similarity index 59% rename from sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py rename to sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_front_door_management_client_enums.py index 069909cf497c..3b6f0ce5093f 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_front_door_management_client_enums.py @@ -12,6 +12,51 @@ from enum import Enum +class NetworkOperationStatus(str, Enum): + + in_progress = "InProgress" + succeeded = "Succeeded" + failed = "Failed" + + +class NetworkExperimentResourceState(str, Enum): + + creating = "Creating" + enabling = "Enabling" + enabled = "Enabled" + disabling = "Disabling" + disabled = "Disabled" + deleting = "Deleting" + + +class State(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class AggregationInterval(str, Enum): + + hourly = "Hourly" + daily = "Daily" + + +class TimeseriesType(str, Enum): + + measurement_counts = "MeasurementCounts" + latency_p50 = "LatencyP50" + latency_p75 = "LatencyP75" + latency_p95 = "LatencyP95" + + +class EndpointType(str, Enum): + + afd = "AFD" + azure_region = "AzureRegion" + cdn = "CDN" + atm = "ATM" + + class FrontDoorResourceState(str, Enum): creating = "Creating" @@ -51,9 +96,10 @@ class FrontDoorCertificateSource(str, Enum): front_door = "FrontDoor" -class FrontDoorTlsProtocolType(str, Enum): +class MinimumTLSVersion(str, Enum): - server_name_indication = "ServerNameIndication" + one_full_stop_zero = "1.0" + one_full_stop_two = "1.2" class FrontDoorCertificateType(str, Enum): @@ -61,6 +107,12 @@ class FrontDoorCertificateType(str, Enum): dedicated = "Dedicated" +class EnforceCertificateNameCheckEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class FrontDoorEnabledState(str, Enum): enabled = "Enabled" @@ -73,6 +125,12 @@ class FrontDoorProtocol(str, Enum): https = "Https" +class RoutingRuleEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class FrontDoorForwardingProtocol(str, Enum): http_only = "HttpOnly" @@ -92,6 +150,39 @@ class DynamicCompressionEnabled(str, Enum): disabled = "Disabled" +class FrontDoorRedirectType(str, Enum): + + moved = "Moved" + found = "Found" + temporary_redirect = "TemporaryRedirect" + permanent_redirect = "PermanentRedirect" + + +class FrontDoorRedirectProtocol(str, Enum): + + http_only = "HttpOnly" + https_only = "HttpsOnly" + match_request = "MatchRequest" + + +class BackendEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class FrontDoorHealthProbeMethod(str, Enum): + + get = "GET" + head = "HEAD" + + +class HealthProbeEnabled(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class SessionAffinityEnabledState(str, Enum): enabled = "Enabled" @@ -110,32 +201,31 @@ class Availability(str, Enum): unavailable = "Unavailable" -class NetworkOperationStatus(str, Enum): - - in_progress = "InProgress" - succeeded = "Succeeded" - failed = "Failed" - - -class EnabledState(str, Enum): +class PolicyEnabledState(str, Enum): disabled = "Disabled" enabled = "Enabled" -class Mode(str, Enum): +class PolicyMode(str, Enum): prevention = "Prevention" detection = "Detection" +class CustomRuleEnabledState(str, Enum): + + disabled = "Disabled" + enabled = "Enabled" + + class RuleType(str, Enum): match_rule = "MatchRule" rate_limit_rule = "RateLimitRule" -class MatchCondition(str, Enum): +class MatchVariable(str, Enum): remote_addr = "RemoteAddr" request_method = "RequestMethod" @@ -144,6 +234,8 @@ class MatchCondition(str, Enum): request_uri = "RequestUri" request_header = "RequestHeader" request_body = "RequestBody" + cookies = "Cookies" + socket_addr = "SocketAddr" class Operator(str, Enum): @@ -159,16 +251,10 @@ class Operator(str, Enum): greater_than_or_equal = "GreaterThanOrEqual" begins_with = "BeginsWith" ends_with = "EndsWith" + reg_ex = "RegEx" -class Action(str, Enum): - - allow = "Allow" - block = "Block" - log = "Log" - - -class Transform(str, Enum): +class TransformType(str, Enum): lowercase = "Lowercase" uppercase = "Uppercase" @@ -176,10 +262,40 @@ class Transform(str, Enum): url_decode = "UrlDecode" url_encode = "UrlEncode" remove_nulls = "RemoveNulls" - html_entity_decode = "HtmlEntityDecode" -class WebApplicationFirewallPolicy(str, Enum): +class ActionType(str, Enum): + + allow = "Allow" + block = "Block" + log = "Log" + redirect = "Redirect" + + +class ManagedRuleExclusionMatchVariable(str, Enum): + + request_header_names = "RequestHeaderNames" + request_cookie_names = "RequestCookieNames" + query_string_arg_names = "QueryStringArgNames" + request_body_post_arg_names = "RequestBodyPostArgNames" + + +class ManagedRuleExclusionSelectorMatchOperator(str, Enum): + + equals = "Equals" + contains = "Contains" + starts_with = "StartsWith" + ends_with = "EndsWith" + equals_any = "EqualsAny" + + +class ManagedRuleEnabledState(str, Enum): + + disabled = "Disabled" + enabled = "Enabled" + + +class PolicyResourceState(str, Enum): creating = "Creating" enabling = "Enabling" @@ -189,7 +305,14 @@ class WebApplicationFirewallPolicy(str, Enum): deleting = "Deleting" -class RuleGroupOverride(str, Enum): +class LatencyScorecardAggregationInterval(str, Enum): + + daily = "Daily" + weekly = "Weekly" + monthly = "Monthly" + + +class TimeseriesAggregationInterval(str, Enum): - sql_injection = "SqlInjection" - xss = "XSS" + hourly = "Hourly" + daily = "Daily" diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models.py new file mode 100644 index 000000000000..dafda2e813cd --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models.py @@ -0,0 +1,2495 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class AzureAsyncOperationResult(Model): + """The response body contains the status of the specified asynchronous + operation, indicating whether it has succeeded, is in progress, or has + failed. Note that this status is distinct from the HTTP status code + returned for the Get Operation Status operation itself. If the asynchronous + operation succeeded, the response body includes the HTTP status code for + the successful request. If the asynchronous operation failed, the response + body includes the HTTP status code for the failed request and error + information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: + 'InProgress', 'Succeeded', and 'Failed'. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus + :param error: + :type error: ~azure.mgmt.frontdoor.models.Error + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Error'}, + } + + def __init__(self, **kwargs): + super(AzureAsyncOperationResult, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error = kwargs.get('error', None) + + +class Backend(Model): + """Backend address of a frontDoor load balancer. + + :param address: Location of the backend (IP address or FQDN) + :type address: str + :param http_port: The HTTP TCP port number. Must be between 1 and 65535. + :type http_port: int + :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. + :type https_port: int + :param enabled_state: Whether to enable use of this backend. Permitted + values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.BackendEnabledState + :param priority: Priority to use for load balancing. Higher priorities + will not be used for load balancing if any lower priority backend is + healthy. + :type priority: int + :param weight: Weight of this endpoint for load balancing purposes. + :type weight: int + :param backend_host_header: The value to use as the host header sent to + the backend. If blank or unspecified, this defaults to the incoming host. + :type backend_host_header: str + """ + + _validation = { + 'http_port': {'maximum': 65535, 'minimum': 1}, + 'https_port': {'maximum': 65535, 'minimum': 1}, + 'priority': {'maximum': 5, 'minimum': 1}, + 'weight': {'maximum': 1000, 'minimum': 1}, + } + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'http_port': {'key': 'httpPort', 'type': 'int'}, + 'https_port': {'key': 'httpsPort', 'type': 'int'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'weight': {'key': 'weight', 'type': 'int'}, + 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Backend, self).__init__(**kwargs) + self.address = kwargs.get('address', None) + self.http_port = kwargs.get('http_port', None) + self.https_port = kwargs.get('https_port', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.priority = kwargs.get('priority', None) + self.weight = kwargs.get('weight', None) + self.backend_host_header = kwargs.get('backend_host_header', None) + + +class SubResource(Model): + """Reference to another subresource. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class BackendPool(SubResource): + """A backend pool is a collection of backends that can be routed to. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param backends: The set of backends for this pool + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackendPool, self).__init__(**kwargs) + self.backends = kwargs.get('backends', None) + self.load_balancing_settings = kwargs.get('load_balancing_settings', None) + self.health_probe_settings = kwargs.get('health_probe_settings', None) + self.resource_state = kwargs.get('resource_state', None) + self.name = kwargs.get('name', None) + self.type = None + + +class BackendPoolListResult(Model): + """Result of the request to list Backend Pools. It contains a list of Backend + Pools objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Backend Pools within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.BackendPool] + :param next_link: URL to get the next set of BackendPool objects if there + are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BackendPool]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackendPoolListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class BackendPoolsSettings(Model): + """Settings that apply to all backend pools. + + :param enforce_certificate_name_check: Whether to enforce certificate name + check on HTTPS requests to all backend pools. No effect on non-HTTPS + requests. Possible values include: 'Enabled', 'Disabled'. Default value: + "Enabled" . + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + :param send_recv_timeout_seconds: Send and receive timeout on forwarding + request to the backend. When timeout is reached, the request fails and + returns. + :type send_recv_timeout_seconds: int + """ + + _validation = { + 'send_recv_timeout_seconds': {'minimum': 16}, + } + + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = kwargs.get('enforce_certificate_name_check', "Enabled") + self.send_recv_timeout_seconds = kwargs.get('send_recv_timeout_seconds', None) + + +class BackendPoolUpdateParameters(Model): + """A collection of backends that can be routed to. + + :param backends: The set of backends for this pool + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + """ + + _attribute_map = { + 'backends': {'key': 'backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, + } + + def __init__(self, **kwargs): + super(BackendPoolUpdateParameters, self).__init__(**kwargs) + self.backends = kwargs.get('backends', None) + self.load_balancing_settings = kwargs.get('load_balancing_settings', None) + self.health_probe_settings = kwargs.get('health_probe_settings', None) + + +class CacheConfiguration(Model): + """Caching settings for a caching-type route. To disable caching, do not + provide a cacheConfiguration object. + + :param query_parameter_strip_directive: Treatment of URL query terms when + forming the cache key. Possible values include: 'StripNone', 'StripAll' + :type query_parameter_strip_directive: str or + ~azure.mgmt.frontdoor.models.FrontDoorQuery + :param dynamic_compression: Whether to use dynamic compression for cached + content. Possible values include: 'Enabled', 'Disabled' + :type dynamic_compression: str or + ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled + """ + + _attribute_map = { + 'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'}, + 'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CacheConfiguration, self).__init__(**kwargs) + self.query_parameter_strip_directive = kwargs.get('query_parameter_strip_directive', None) + self.dynamic_compression = kwargs.get('dynamic_compression', None) + + +class CheckNameAvailabilityInput(Model): + """Input of CheckNameAvailability API. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The resource name to validate. + :type name: str + :param type: Required. The type of the resource whose name is to be + validated. Possible values include: 'Microsoft.Network/frontDoors', + 'Microsoft.Network/frontDoors/frontendEndpoints' + :type type: str or ~azure.mgmt.frontdoor.models.ResourceType + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceType'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityInput, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + +class CheckNameAvailabilityOutput(Model): + """Output of check name availability API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_availability: Indicates whether the name is available. Possible + values include: 'Available', 'Unavailable' + :vartype name_availability: str or + ~azure.mgmt.frontdoor.models.Availability + :ivar reason: The reason why the name is not available. + :vartype reason: str + :ivar message: The detailed error message describing why the name is not + available. + :vartype message: str + """ + + _validation = { + 'name_availability': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_availability': {'key': 'nameAvailability', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CheckNameAvailabilityOutput, self).__init__(**kwargs) + self.name_availability = None + self.reason = None + self.message = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CustomHttpsConfiguration(Model): + """Https settings for a domain. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param certificate_source: Required. Defines the source of the SSL + certificate. Possible values include: 'AzureKeyVault', 'FrontDoor' + :type certificate_source: str or + ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource + :ivar protocol_type: Required. Defines the TLS extension protocol that is + used for secure delivery. Default value: "ServerNameIndication" . + :vartype protocol_type: str + :param minimum_tls_version: Required. The minimum TLS version required + from the clients to establish an SSL handshake with Front Door. Possible + values include: '1.0', '1.2' + :type minimum_tls_version: str or + ~azure.mgmt.frontdoor.models.MinimumTLSVersion + :param vault: The Key Vault containing the SSL certificate + :type vault: + ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault + :param secret_name: The name of the Key Vault secret representing the full + certificate PFX + :type secret_name: str + :param secret_version: The version of the Key Vault secret representing + the full certificate PFX + :type secret_version: str + :param certificate_type: Defines the type of the certificate used for + secure connections to a frontendEndpoint. Possible values include: + 'Dedicated' + :type certificate_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorCertificateType + """ + + _validation = { + 'certificate_source': {'required': True}, + 'protocol_type': {'required': True, 'constant': True}, + 'minimum_tls_version': {'required': True}, + } + + _attribute_map = { + 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'}, + 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, + 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, + 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, + 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, + } + + protocol_type = "ServerNameIndication" + + def __init__(self, **kwargs): + super(CustomHttpsConfiguration, self).__init__(**kwargs) + self.certificate_source = kwargs.get('certificate_source', None) + self.minimum_tls_version = kwargs.get('minimum_tls_version', None) + self.vault = kwargs.get('vault', None) + self.secret_name = kwargs.get('secret_name', None) + self.secret_version = kwargs.get('secret_version', None) + self.certificate_type = kwargs.get('certificate_type', None) + + +class CustomRule(Model): + """Defines contents of a web application rule. + + All required parameters must be populated in order to send to Azure. + + :param name: Describes the name of the rule. + :type name: str + :param priority: Required. Describes priority of the rule. Rules with a + lower value will be evaluated before rules with a higher value. + :type priority: int + :param enabled_state: Describes if the custom rule is in enabled or + disabled state. Defaults to Enabled if not specified. Possible values + include: 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.CustomRuleEnabledState + :param rule_type: Required. Describes type of rule. Possible values + include: 'MatchRule', 'RateLimitRule' + :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType + :param rate_limit_duration_in_minutes: Time window for resetting the rate + limit count. Default is 1 minute. + :type rate_limit_duration_in_minutes: int + :param rate_limit_threshold: Number of allowed requests per client within + the time window. + :type rate_limit_threshold: int + :param match_conditions: Required. List of match conditions. + :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition] + :param action: Required. Describes what action to be applied when rule + matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :type action: str or ~azure.mgmt.frontdoor.models.ActionType + """ + + _validation = { + 'name': {'max_length': 128}, + 'priority': {'required': True}, + 'rule_type': {'required': True}, + 'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0}, + 'rate_limit_threshold': {'minimum': 0}, + 'match_conditions': {'required': True}, + 'action': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'rule_type': {'key': 'ruleType', 'type': 'str'}, + 'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'}, + 'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'}, + 'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition]'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CustomRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.priority = kwargs.get('priority', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.rule_type = kwargs.get('rule_type', None) + self.rate_limit_duration_in_minutes = kwargs.get('rate_limit_duration_in_minutes', None) + self.rate_limit_threshold = kwargs.get('rate_limit_threshold', None) + self.match_conditions = kwargs.get('match_conditions', None) + self.action = kwargs.get('action', None) + + +class CustomRuleList(Model): + """Defines contents of custom rules. + + :param rules: List of rules + :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[CustomRule]'}, + } + + def __init__(self, **kwargs): + super(CustomRuleList, self).__init__(**kwargs) + self.rules = kwargs.get('rules', None) + + +class Endpoint(Model): + """Defines the endpoint properties. + + :param name: The name of the endpoint + :type name: str + :param endpoint: The endpoint URL + :type endpoint: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Endpoint, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.endpoint = kwargs.get('endpoint', None) + + +class Error(Model): + """Error. + + :param code: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: + :type details: list[~azure.mgmt.frontdoor.models.ErrorDetails] + :param inner_error: + :type inner_error: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + self.inner_error = kwargs.get('inner_error', None) + + +class ErrorDetails(Model): + """ErrorDetails. + + :param code: + :type code: str + :param target: + :type target: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorDetails, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.target = kwargs.get('target', None) + self.message = kwargs.get('message', None) + + +class ErrorResponse(Model): + """Error response indicates Front Door service is not able to process the + incoming request. The reason is provided in the error message. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.code = None + self.message = None + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Resource(Model): + """Common resource representation. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class Experiment(Resource): + """Defines the properties of an Experiment. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the details or intents of the + Experiment + :type description: str + :param endpoint_a: The endpoint A of an experiment + :type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint + :param endpoint_b: The endpoint B of an experiment + :type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :ivar status: The description of Experiment status from the server side + :vartype status: str + :ivar script_file_uri: The uri to the Script used in the Experiment + :vartype script_file_uri: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + 'script_file_uri': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint_a': {'key': 'properties.endpointA', 'type': 'Endpoint'}, + 'endpoint_b': {'key': 'properties.endpointB', 'type': 'Endpoint'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Experiment, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.endpoint_a = kwargs.get('endpoint_a', None) + self.endpoint_b = kwargs.get('endpoint_b', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.resource_state = kwargs.get('resource_state', None) + self.status = None + self.script_file_uri = None + + +class ExperimentUpdateModel(Model): + """Defines modifiable attributes of an Experiment. + + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the intent or details of the + Experiment + :type description: str + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExperimentUpdateModel, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.description = kwargs.get('description', None) + self.enabled_state = kwargs.get('enabled_state', None) + + +class RouteConfiguration(Model): + """Base class for all types of Route. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ForwardingConfiguration, RedirectConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + } + + def __init__(self, **kwargs): + super(RouteConfiguration, self).__init__(**kwargs) + self.odatatype = None + + +class ForwardingConfiguration(RouteConfiguration): + """Describes Forwarding Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param custom_forwarding_path: A custom path used to rewrite resource + paths matched by this rule. Leave empty to use incoming path. + :type custom_forwarding_path: str + :param forwarding_protocol: Protocol this rule will use when forwarding + traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type forwarding_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this + rule. + :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration + :param backend_pool: A reference to the BackendPool which this rule routes + to. + :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, + 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, + 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, + 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, + } + + def __init__(self, **kwargs): + super(ForwardingConfiguration, self).__init__(**kwargs) + self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) + self.forwarding_protocol = kwargs.get('forwarding_protocol', None) + self.cache_configuration = kwargs.get('cache_configuration', None) + self.backend_pool = kwargs.get('backend_pool', None) + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' + + +class FrontDoor(Resource): + """Front Door represents a collection of backend endpoints to route traffic to + along with rules that specify how traffic is sent there. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param friendly_name: A friendly name for the frontDoor + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with + this Front Door instance. + :type load_balancing_settings: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this + Front Door instance. + :type health_probe_settings: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: + list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. + Permitted values are 'Enabled' or 'Disabled'. Possible values include: + 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :param resource_state: Resource status of the Front Door. Possible values + include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', + 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar provisioning_state: Provisioning state of the Front Door. + :vartype provisioning_state: str + :ivar cname: The host that each frontendEndpoint must CNAME to. + :vartype cname: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'cname': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'properties.backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cname': {'key': 'properties.cname', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FrontDoor, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.routing_rules = kwargs.get('routing_rules', None) + self.load_balancing_settings = kwargs.get('load_balancing_settings', None) + self.health_probe_settings = kwargs.get('health_probe_settings', None) + self.backend_pools = kwargs.get('backend_pools', None) + self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.backend_pools_settings = kwargs.get('backend_pools_settings', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.resource_state = kwargs.get('resource_state', None) + self.provisioning_state = None + self.cname = None + + +class FrontDoorUpdateParameters(Model): + """The properties needed to update a Front Door. + + :param friendly_name: A friendly name for the frontDoor + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with + this Front Door instance. + :type load_balancing_settings: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this + Front Door instance. + :type health_probe_settings: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: + list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. + Permitted values are 'Enabled' or 'Disabled'. Possible values include: + 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + """ + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FrontDoorUpdateParameters, self).__init__(**kwargs) + self.friendly_name = kwargs.get('friendly_name', None) + self.routing_rules = kwargs.get('routing_rules', None) + self.load_balancing_settings = kwargs.get('load_balancing_settings', None) + self.health_probe_settings = kwargs.get('health_probe_settings', None) + self.backend_pools = kwargs.get('backend_pools', None) + self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.backend_pools_settings = kwargs.get('backend_pools_settings', None) + self.enabled_state = kwargs.get('enabled_state', None) + + +class FrontendEndpoint(SubResource): + """A frontend endpoint used for routing. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param host_name: The host name of the frontendEndpoint. Must be a domain + name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity + on this host. Valid options are 'Enabled' or 'Disabled'. Possible values + include: 'Enabled', 'Disabled' + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. + The TTL to use in seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application + Firewall policy for each host (if applicable) + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https + of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', + 'Disabling', 'Disabled', 'Failed' + :vartype custom_https_provisioning_state: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState + :ivar custom_https_provisioning_substate: Provisioning substate shows the + progress of custom HTTPS enabling/disabling process step by step. Possible + values include: 'SubmittingDomainControlValidationRequest', + 'PendingDomainControlValidationREquestApproval', + 'DomainControlValidationRequestApproved', + 'DomainControlValidationRequestRejected', + 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', + 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', + 'CertificateDeleted' + :vartype custom_https_provisioning_substate: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate + :ivar custom_https_configuration: The configuration specifying how to + enable HTTPS + :vartype custom_https_configuration: + ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'custom_https_provisioning_state': {'readonly': True}, + 'custom_https_provisioning_substate': {'readonly': True}, + 'custom_https_configuration': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, + 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, + 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FrontendEndpoint, self).__init__(**kwargs) + self.host_name = kwargs.get('host_name', None) + self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) + self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None) + self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) + self.resource_state = kwargs.get('resource_state', None) + self.custom_https_provisioning_state = None + self.custom_https_provisioning_substate = None + self.custom_https_configuration = None + self.name = kwargs.get('name', None) + self.type = None + + +class FrontendEndpointLink(Model): + """Defines the Resource ID for a Frontend Endpoint. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FrontendEndpointLink, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class FrontendEndpointUpdateParameters(Model): + """Frontend endpoint used in routing rule. + + :param host_name: The host name of the frontendEndpoint. Must be a domain + name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity + on this host. Valid options are 'Enabled' or 'Disabled'. Possible values + include: 'Enabled', 'Disabled' + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. + The TTL to use in seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application + Firewall policy for each host (if applicable) + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + """ + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + } + + def __init__(self, **kwargs): + super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) + self.host_name = kwargs.get('host_name', None) + self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) + self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None) + self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) + + +class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): + """Defines the Web Application Firewall policy for each host (if applicable). + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class HealthProbeSettingsListResult(Model): + """Result of the request to list HealthProbeSettings. It contains a list of + HealthProbeSettings objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of HealthProbeSettings within a Front Door. + :vartype value: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param next_link: URL to get the next set of HealthProbeSettings objects + if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[HealthProbeSettingsModel]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HealthProbeSettingsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class HealthProbeSettingsModel(SubResource): + """Load balancing settings for a backend pool. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param path: The path to use for the health probe. Default is / + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values + include: 'Http', 'Https' + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe + the backends defined under backendPools. Possible values include: 'GET', + 'HEAD'. Default value: "HEAD" . + :type health_probe_method: str or + ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against + backends defined under backendPools. Health probes can only be disabled if + there is a single enabled backend in single enabled backend pool. Possible + values include: 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HealthProbeSettingsModel, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.protocol = kwargs.get('protocol', None) + self.interval_in_seconds = kwargs.get('interval_in_seconds', None) + self.health_probe_method = kwargs.get('health_probe_method', "HEAD") + self.enabled_state = kwargs.get('enabled_state', None) + self.resource_state = kwargs.get('resource_state', None) + self.name = kwargs.get('name', None) + self.type = None + + +class HealthProbeSettingsUpdateParameters(Model): + """L7 health probe settings for a backend pool. + + :param path: The path to use for the health probe. Default is / + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values + include: 'Http', 'Https' + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe + the backends defined under backendPools. Possible values include: 'GET', + 'HEAD'. Default value: "HEAD" . + :type health_probe_method: str or + ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against + backends defined under backendPools. Health probes can only be disabled if + there is a single enabled backend in single enabled backend pool. Possible + values include: 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.HealthProbeEnabled + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.protocol = kwargs.get('protocol', None) + self.interval_in_seconds = kwargs.get('interval_in_seconds', None) + self.health_probe_method = kwargs.get('health_probe_method', "HEAD") + self.enabled_state = kwargs.get('enabled_state', None) + + +class KeyVaultCertificateSourceParametersVault(Model): + """The Key Vault containing the SSL certificate. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class LatencyMetric(Model): + """Defines the properties of a latency metric used in the latency scorecard. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the Latency Metric + :vartype name: str + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :vartype end_date_time_utc: str + :ivar a_value: The metric value of the A endpoint + :vartype a_value: float + :ivar b_value: The metric value of the B endpoint + :vartype b_value: float + :ivar delta: The difference in value between endpoint A and B + :vartype delta: float + :ivar delta_percent: The percent difference between endpoint A and B + :vartype delta_percent: float + :ivar a_clower95_ci: The lower end of the 95% confidence interval for + endpoint A + :vartype a_clower95_ci: float + :ivar a_hupper95_ci: The upper end of the 95% confidence interval for + endpoint A + :vartype a_hupper95_ci: float + :ivar b_clower95_ci: The lower end of the 95% confidence interval for + endpoint B + :vartype b_clower95_ci: float + :ivar b_upper95_ci: The upper end of the 95% confidence interval for + endpoint B + :vartype b_upper95_ci: float + """ + + _validation = { + 'name': {'readonly': True}, + 'end_date_time_utc': {'readonly': True}, + 'a_value': {'readonly': True}, + 'b_value': {'readonly': True}, + 'delta': {'readonly': True}, + 'delta_percent': {'readonly': True}, + 'a_clower95_ci': {'readonly': True}, + 'a_hupper95_ci': {'readonly': True}, + 'b_clower95_ci': {'readonly': True}, + 'b_upper95_ci': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'end_date_time_utc': {'key': 'endDateTimeUTC', 'type': 'str'}, + 'a_value': {'key': 'aValue', 'type': 'float'}, + 'b_value': {'key': 'bValue', 'type': 'float'}, + 'delta': {'key': 'delta', 'type': 'float'}, + 'delta_percent': {'key': 'deltaPercent', 'type': 'float'}, + 'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, + 'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, + 'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, + 'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(LatencyMetric, self).__init__(**kwargs) + self.name = None + self.end_date_time_utc = None + self.a_value = None + self.b_value = None + self.delta = None + self.delta_percent = None + self.a_clower95_ci = None + self.a_hupper95_ci = None + self.b_clower95_ci = None + self.b_upper95_ci = None + + +class LatencyScorecard(Resource): + """Defines the LatencyScorecard. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar latency_scorecard_id: The unique identifier of the Latency Scorecard + :vartype latency_scorecard_id: str + :ivar latency_scorecard_name: The name of the Latency Scorecard + :vartype latency_scorecard_name: str + :ivar description: The description of the Latency Scorecard + :vartype description: str + :ivar endpoint_a: The A endpoint in the scorecard + :vartype endpoint_a: str + :ivar endpoint_b: The B endpoint in the scorecard + :vartype endpoint_b: str + :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC + :vartype start_date_time_utc: datetime + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :vartype end_date_time_utc: datetime + :ivar country: The country associated with the Latency Scorecard. Values + are country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :vartype country: str + :param latency_metrics: The latency metrics of the Latency Scorecard + :type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'latency_scorecard_id': {'readonly': True}, + 'latency_scorecard_name': {'readonly': True}, + 'description': {'readonly': True}, + 'endpoint_a': {'readonly': True}, + 'endpoint_b': {'readonly': True}, + 'start_date_time_utc': {'readonly': True}, + 'end_date_time_utc': {'readonly': True}, + 'country': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'}, + 'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'}, + 'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'}, + 'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'iso-8601'}, + 'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'iso-8601'}, + 'country': {'key': 'properties.country', 'type': 'str'}, + 'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'}, + } + + def __init__(self, **kwargs): + super(LatencyScorecard, self).__init__(**kwargs) + self.latency_scorecard_id = None + self.latency_scorecard_name = None + self.description = None + self.endpoint_a = None + self.endpoint_b = None + self.start_date_time_utc = None + self.end_date_time_utc = None + self.country = None + self.latency_metrics = kwargs.get('latency_metrics', None) + + +class LoadBalancingSettingsListResult(Model): + """Result of the request to list load balancing settings. It contains a list + of load balancing settings objects and a URL link to get the next set of + results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Backend Pools within a Front Door. + :vartype value: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param next_link: URL to get the next set of LoadBalancingSettings objects + if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[LoadBalancingSettingsModel]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LoadBalancingSettingsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class LoadBalancingSettingsModel(SubResource): + """Load balancing settings for a backend pool. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param sample_size: The number of samples to consider for load balancing + decisions + :type sample_size: int + :param successful_samples_required: The number of samples within the + sample period that must succeed + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in + milliseconds for probes to fall into the lowest latency bucket + :type additional_latency_milliseconds: int + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LoadBalancingSettingsModel, self).__init__(**kwargs) + self.sample_size = kwargs.get('sample_size', None) + self.successful_samples_required = kwargs.get('successful_samples_required', None) + self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) + self.resource_state = kwargs.get('resource_state', None) + self.name = kwargs.get('name', None) + self.type = None + + +class LoadBalancingSettingsUpdateParameters(Model): + """Round-Robin load balancing settings for a backend pool. + + :param sample_size: The number of samples to consider for load balancing + decisions + :type sample_size: int + :param successful_samples_required: The number of samples within the + sample period that must succeed + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in + milliseconds for probes to fall into the lowest latency bucket + :type additional_latency_milliseconds: int + """ + + _attribute_map = { + 'sample_size': {'key': 'sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) + self.sample_size = kwargs.get('sample_size', None) + self.successful_samples_required = kwargs.get('successful_samples_required', None) + self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) + + +class ManagedRuleDefinition(Model): + """Describes a managed rule definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar rule_id: Identifier for the managed rule. + :vartype rule_id: str + :ivar default_state: Describes the default state for the managed rule. + Possible values include: 'Disabled', 'Enabled' + :vartype default_state: str or + ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :ivar default_action: Describes the default action to be applied when the + managed rule matches. Possible values include: 'Allow', 'Block', 'Log', + 'Redirect' + :vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType + :ivar description: Describes the functionality of the managed rule. + :vartype description: str + """ + + _validation = { + 'rule_id': {'readonly': True}, + 'default_state': {'readonly': True}, + 'default_action': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'str'}, + 'default_state': {'key': 'defaultState', 'type': 'str'}, + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleDefinition, self).__init__(**kwargs) + self.rule_id = None + self.default_state = None + self.default_action = None + self.description = None + + +class ManagedRuleExclusion(Model): + """Exclude variables from managed rule evaluation. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable type to be excluded. + Possible values include: 'RequestHeaderNames', 'RequestCookieNames', + 'QueryStringArgNames', 'RequestBodyPostArgNames' + :type match_variable: str or + ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable + :param selector_match_operator: Required. Comparison operator to apply to + the selector when specifying which elements in the collection this + exclusion applies to. Possible values include: 'Equals', 'Contains', + 'StartsWith', 'EndsWith', 'EqualsAny' + :type selector_match_operator: str or + ~azure.mgmt.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator + :param selector: Required. Selector value for which elements in the + collection this exclusion applies to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleExclusion, self).__init__(**kwargs) + self.match_variable = kwargs.get('match_variable', None) + self.selector_match_operator = kwargs.get('selector_match_operator', None) + self.selector = kwargs.get('selector', None) + + +class ManagedRuleGroupDefinition(Model): + """Describes a managed rule group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar rule_group_name: Name of the managed rule group. + :vartype rule_group_name: str + :ivar description: Description of the managed rule group. + :vartype description: str + :ivar rules: List of rules within the managed rule group. + :vartype rules: list[~azure.mgmt.frontdoor.models.ManagedRuleDefinition] + """ + + _validation = { + 'rule_group_name': {'readonly': True}, + 'description': {'readonly': True}, + 'rules': {'readonly': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[ManagedRuleDefinition]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleGroupDefinition, self).__init__(**kwargs) + self.rule_group_name = None + self.description = None + self.rules = None + + +class ManagedRuleGroupOverride(Model): + """Defines a managed rule group override setting. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. Describes the managed rule group to + override. + :type rule_group_name: str + :param exclusions: Describes the exclusions that are applied to all rules + in the group. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + :param rules: List of rules that will be disabled. If none specified, all + rules in the group will be disabled. + :type rules: list[~azure.mgmt.frontdoor.models.ManagedRuleOverride] + """ + + _validation = { + 'rule_group_name': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + 'rules': {'key': 'rules', 'type': '[ManagedRuleOverride]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleGroupOverride, self).__init__(**kwargs) + self.rule_group_name = kwargs.get('rule_group_name', None) + self.exclusions = kwargs.get('exclusions', None) + self.rules = kwargs.get('rules', None) + + +class ManagedRuleOverride(Model): + """Defines a managed rule group override setting. + + All required parameters must be populated in order to send to Azure. + + :param rule_id: Required. Identifier for the managed rule. + :type rule_id: str + :param enabled_state: Describes if the managed rule is in enabled or + disabled state. Defaults to Disabled if not specified. Possible values + include: 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :param action: Describes the override action to be applied when rule + matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :type action: str or ~azure.mgmt.frontdoor.models.ActionType + :param exclusions: Describes the exclusions that are applied to this + specific rule. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + """ + + _validation = { + 'rule_id': {'required': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleOverride, self).__init__(**kwargs) + self.rule_id = kwargs.get('rule_id', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.action = kwargs.get('action', None) + self.exclusions = kwargs.get('exclusions', None) + + +class ManagedRuleSet(Model): + """Defines a managed rule set. + + All required parameters must be populated in order to send to Azure. + + :param rule_set_type: Required. Defines the rule set type to use. + :type rule_set_type: str + :param rule_set_version: Required. Defines the version of the rule set to + use. + :type rule_set_version: str + :param exclusions: Describes the exclusions that are applied to all rules + in the set. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + :param rule_group_overrides: Defines the rule group overrides to apply to + the rule set. + :type rule_group_overrides: + list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] + """ + + _validation = { + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + } + + _attribute_map = { + 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'ruleSetVersion', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[ManagedRuleGroupOverride]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleSet, self).__init__(**kwargs) + self.rule_set_type = kwargs.get('rule_set_type', None) + self.rule_set_version = kwargs.get('rule_set_version', None) + self.exclusions = kwargs.get('exclusions', None) + self.rule_group_overrides = kwargs.get('rule_group_overrides', None) + + +class ManagedRuleSetDefinition(Resource): + """Describes the a managed rule set definition. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state of the managed rule set. + :vartype provisioning_state: str + :ivar rule_set_type: Type of the managed rule set. + :vartype rule_set_type: str + :ivar rule_set_version: Version of the managed rule set type. + :vartype rule_set_version: str + :ivar rule_groups: Rule groups of the managed rule set. + :vartype rule_groups: + list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'rule_set_type': {'readonly': True}, + 'rule_set_version': {'readonly': True}, + 'rule_groups': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'properties.ruleSetVersion', 'type': 'str'}, + 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ManagedRuleGroupDefinition]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleSetDefinition, self).__init__(**kwargs) + self.provisioning_state = None + self.rule_set_type = None + self.rule_set_version = None + self.rule_groups = None + + +class ManagedRuleSetList(Model): + """Defines the list of managed rule sets for the policy. + + :param managed_rule_sets: List of rule sets. + :type managed_rule_sets: list[~azure.mgmt.frontdoor.models.ManagedRuleSet] + """ + + _attribute_map = { + 'managed_rule_sets': {'key': 'managedRuleSets', 'type': '[ManagedRuleSet]'}, + } + + def __init__(self, **kwargs): + super(ManagedRuleSetList, self).__init__(**kwargs) + self.managed_rule_sets = kwargs.get('managed_rule_sets', None) + + +class MatchCondition(Model): + """Define a match condition. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. Request variable to compare with. + Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', + 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', + 'SocketAddr' + :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchVariable + :param selector: Match against a specific key from the QueryString, + PostArgs, RequestHeader or Cookies variables. Default is null. + :type selector: str + :param operator: Required. Comparison type to use for matching with the + variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', + 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', + 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' + :type operator: str or ~azure.mgmt.frontdoor.models.Operator + :param negate_condition: Describes if the result of this condition should + be negated. + :type negate_condition: bool + :param match_value: Required. List of possible match values. + :type match_value: list[str] + :param transforms: List of transforms. + :type transforms: list[str or ~azure.mgmt.frontdoor.models.TransformType] + """ + + _validation = { + 'match_variable': {'required': True}, + 'operator': {'required': True}, + 'match_value': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'negate_condition': {'key': 'negateCondition', 'type': 'bool'}, + 'match_value': {'key': 'matchValue', 'type': '[str]'}, + 'transforms': {'key': 'transforms', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(MatchCondition, self).__init__(**kwargs) + self.match_variable = kwargs.get('match_variable', None) + self.selector = kwargs.get('selector', None) + self.operator = kwargs.get('operator', None) + self.negate_condition = kwargs.get('negate_condition', None) + self.match_value = kwargs.get('match_value', None) + self.transforms = kwargs.get('transforms', None) + + +class PolicySettings(Model): + """Defines top-level WebApplicationFirewallPolicy configuration settings. + + :param enabled_state: Describes if the policy is in enabled or disabled + state. Defaults to Enabled if not specified. Possible values include: + 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.PolicyEnabledState + :param mode: Describes if it is in detection mode or prevention mode at + policy level. Possible values include: 'Prevention', 'Detection' + :type mode: str or ~azure.mgmt.frontdoor.models.PolicyMode + :param redirect_url: If action type is redirect, this field represents + redirect URL for the client. + :type redirect_url: str + :param custom_block_response_status_code: If the action type is block, + customer can override the response status code. + :type custom_block_response_status_code: int + :param custom_block_response_body: If the action type is block, customer + can override the response body. The body must be specified in base64 + encoding. + :type custom_block_response_body: str + """ + + _validation = { + 'custom_block_response_body': {'pattern': r'^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$'}, + } + + _attribute_map = { + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'mode': {'key': 'mode', 'type': 'str'}, + 'redirect_url': {'key': 'redirectUrl', 'type': 'str'}, + 'custom_block_response_status_code': {'key': 'customBlockResponseStatusCode', 'type': 'int'}, + 'custom_block_response_body': {'key': 'customBlockResponseBody', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySettings, self).__init__(**kwargs) + self.enabled_state = kwargs.get('enabled_state', None) + self.mode = kwargs.get('mode', None) + self.redirect_url = kwargs.get('redirect_url', None) + self.custom_block_response_status_code = kwargs.get('custom_block_response_status_code', None) + self.custom_block_response_body = kwargs.get('custom_block_response_body', None) + + +class PreconfiguredEndpoint(Resource): + """Defines the properties of a preconfigured endpoint. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the endpoint + :type description: str + :param endpoint: The endpoint that is preconfigured + :type endpoint: str + :param endpoint_type: The type of endpoint. Possible values include: + 'AFD', 'AzureRegion', 'CDN', 'ATM' + :type endpoint_type: str or ~azure.mgmt.frontdoor.models.EndpointType + :param backend: The preconfigured endpoint backend + :type backend: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'endpoint_type': {'key': 'properties.endpointType', 'type': 'str'}, + 'backend': {'key': 'properties.backend', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PreconfiguredEndpoint, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.endpoint = kwargs.get('endpoint', None) + self.endpoint_type = kwargs.get('endpoint_type', None) + self.backend = kwargs.get('backend', None) + + +class Profile(Resource): + """Defines an Network Experiment Profile and lists of Experiments. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Profile, self).__init__(**kwargs) + self.resource_state = kwargs.get('resource_state', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.etag = kwargs.get('etag', None) + + +class ProfileUpdateModel(Model): + """Defines modifiable attributes of a Profile. + + :param enabled_state: The enabled state of the Profile. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProfileUpdateModel, self).__init__(**kwargs) + self.enabled_state = kwargs.get('enabled_state', None) + self.tags = kwargs.get('tags', None) + + +class PurgeParameters(Model): + """Parameters required for content purge. + + All required parameters must be populated in order to send to Azure. + + :param content_paths: Required. The path to the content to be purged. Can + describe a file path or a wild card directory. + :type content_paths: list[str] + """ + + _validation = { + 'content_paths': {'required': True}, + } + + _attribute_map = { + 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PurgeParameters, self).__init__(**kwargs) + self.content_paths = kwargs.get('content_paths', None) + + +class RedirectConfiguration(RouteConfiguration): + """Describes Redirect Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param redirect_type: The redirect type the rule will use when redirecting + traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', + 'PermanentRedirect' + :type redirect_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the + traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type redirect_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use the incoming host + as the destination host. + :type custom_host: str + :param custom_path: The full path to redirect. Path cannot be empty and + must start with /. Leave empty to use the incoming path as destination + path. + :type custom_path: str + :param custom_fragment: Fragment to add to the redirect URL. Fragment is + the part of the URL that comes after #. Do not include the #. + :type custom_fragment: str + :param custom_query_string: The set of query strings to be placed in the + redirect URL. Setting this value would replace any existing query string; + leave empty to preserve the incoming query string. Query string must be in + = format. The first ? and & will be added automatically so do + not include them in the front, but do separate multiple query strings with + &. + :type custom_query_string: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'redirect_type': {'key': 'redirectType', 'type': 'str'}, + 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, + 'custom_host': {'key': 'customHost', 'type': 'str'}, + 'custom_path': {'key': 'customPath', 'type': 'str'}, + 'custom_fragment': {'key': 'customFragment', 'type': 'str'}, + 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RedirectConfiguration, self).__init__(**kwargs) + self.redirect_type = kwargs.get('redirect_type', None) + self.redirect_protocol = kwargs.get('redirect_protocol', None) + self.custom_host = kwargs.get('custom_host', None) + self.custom_path = kwargs.get('custom_path', None) + self.custom_fragment = kwargs.get('custom_fragment', None) + self.custom_query_string = kwargs.get('custom_query_string', None) + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' + + +class RoutingRule(SubResource): + """A routing rule represents a specification for traffic to treat and where to + send it, along with health probe information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param frontend_endpoints: Frontend endpoints associated with this rule + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule + :type accepted_protocols: list[str or + ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values + are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'properties.routeConfiguration', 'type': 'RouteConfiguration'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RoutingRule, self).__init__(**kwargs) + self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.accepted_protocols = kwargs.get('accepted_protocols', None) + self.patterns_to_match = kwargs.get('patterns_to_match', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.route_configuration = kwargs.get('route_configuration', None) + self.resource_state = kwargs.get('resource_state', None) + self.name = kwargs.get('name', None) + self.type = None + + +class RoutingRuleListResult(Model): + """Result of the request to list Routing Rules. It contains a list of Routing + Rule objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Routing Rules within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param next_link: URL to get the next set of RoutingRule objects if there + are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RoutingRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RoutingRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class RoutingRuleUpdateParameters(Model): + """Routing rules to apply to an endpoint. + + :param frontend_endpoints: Frontend endpoints associated with this rule + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule + :type accepted_protocols: list[str or + ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values + are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + """ + + _attribute_map = { + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, + } + + def __init__(self, **kwargs): + super(RoutingRuleUpdateParameters, self).__init__(**kwargs) + self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.accepted_protocols = kwargs.get('accepted_protocols', None) + self.patterns_to_match = kwargs.get('patterns_to_match', None) + self.enabled_state = kwargs.get('enabled_state', None) + self.route_configuration = kwargs.get('route_configuration', None) + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TagsObject, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class Timeseries(Resource): + """Defines the Timeseries. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param endpoint: The endpoint associated with the Timeseries data point + :type endpoint: str + :param start_date_time_utc: The start DateTime of the Timeseries in UTC + :type start_date_time_utc: str + :param end_date_time_utc: The end DateTime of the Timeseries in UTC + :type end_date_time_utc: str + :param aggregation_interval: The aggregation interval of the Timeseries. + Possible values include: 'Hourly', 'Daily' + :type aggregation_interval: str or + ~azure.mgmt.frontdoor.models.AggregationInterval + :param timeseries_type: The type of Timeseries. Possible values include: + 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType + :param country: The country associated with the Timeseries. Values are + country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :type country: str + :param timeseries_data: The set of data points for the timeseries + :type timeseries_data: + list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'str'}, + 'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'str'}, + 'aggregation_interval': {'key': 'properties.aggregationInterval', 'type': 'str'}, + 'timeseries_type': {'key': 'properties.timeseriesType', 'type': 'str'}, + 'country': {'key': 'properties.country', 'type': 'str'}, + 'timeseries_data': {'key': 'properties.timeseriesData', 'type': '[TimeseriesDataPoint]'}, + } + + def __init__(self, **kwargs): + super(Timeseries, self).__init__(**kwargs) + self.endpoint = kwargs.get('endpoint', None) + self.start_date_time_utc = kwargs.get('start_date_time_utc', None) + self.end_date_time_utc = kwargs.get('end_date_time_utc', None) + self.aggregation_interval = kwargs.get('aggregation_interval', None) + self.timeseries_type = kwargs.get('timeseries_type', None) + self.country = kwargs.get('country', None) + self.timeseries_data = kwargs.get('timeseries_data', None) + + +class TimeseriesDataPoint(Model): + """Defines a timeseries datapoint used in a timeseries. + + :param date_time_utc: The DateTime of the Timeseries data point in UTC + :type date_time_utc: str + :param value: The Value of the Timeseries data point + :type value: float + """ + + _attribute_map = { + 'date_time_utc': {'key': 'dateTimeUTC', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, **kwargs): + super(TimeseriesDataPoint, self).__init__(**kwargs) + self.date_time_utc = kwargs.get('date_time_utc', None) + self.value = kwargs.get('value', None) + + +class ValidateCustomDomainInput(Model): + """Input of the custom domain to be validated for DNS mapping. + + All required parameters must be populated in order to send to Azure. + + :param host_name: Required. The host name of the custom domain. Must be a + domain name. + :type host_name: str + """ + + _validation = { + 'host_name': {'required': True}, + } + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ValidateCustomDomainInput, self).__init__(**kwargs) + self.host_name = kwargs.get('host_name', None) + + +class ValidateCustomDomainOutput(Model): + """Output of custom domain validation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar custom_domain_validated: Indicates whether the custom domain is + valid or not. + :vartype custom_domain_validated: bool + :ivar reason: The reason why the custom domain is not valid. + :vartype reason: str + :ivar message: Error message describing why the custom domain is not + valid. + :vartype message: str + """ + + _validation = { + 'custom_domain_validated': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'custom_domain_validated': {'key': 'customDomainValidated', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ValidateCustomDomainOutput, self).__init__(**kwargs) + self.custom_domain_validated = None + self.reason = None + self.message = None + + +class WebApplicationFirewallPolicy(Resource): + """Defines web application firewall policy. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param policy_settings: Describes settings for the policy. + :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings + :param custom_rules: Describes custom rules inside the policy. + :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRuleList + :param managed_rules: Describes managed rules inside the policy. + :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSetList + :ivar frontend_endpoint_links: Describes Frontend Endpoints associated + with this Web Application Firewall policy. + :vartype frontend_endpoint_links: + list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] + :ivar provisioning_state: Provisioning state of the policy. + :vartype provisioning_state: str + :ivar resource_state: Resource status of the policy. Possible values + include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', + 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.frontdoor.models.PolicyResourceState + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'frontend_endpoint_links': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, + 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRuleList'}, + 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSetList'}, + 'frontend_endpoint_links': {'key': 'properties.frontendEndpointLinks', 'type': '[FrontendEndpointLink]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(WebApplicationFirewallPolicy, self).__init__(**kwargs) + self.policy_settings = kwargs.get('policy_settings', None) + self.custom_rules = kwargs.get('custom_rules', None) + self.managed_rules = kwargs.get('managed_rules', None) + self.frontend_endpoint_links = None + self.provisioning_state = None + self.resource_state = None + self.etag = kwargs.get('etag', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models_py3.py new file mode 100644 index 000000000000..41059ec2978c --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_models_py3.py @@ -0,0 +1,2495 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class AzureAsyncOperationResult(Model): + """The response body contains the status of the specified asynchronous + operation, indicating whether it has succeeded, is in progress, or has + failed. Note that this status is distinct from the HTTP status code + returned for the Get Operation Status operation itself. If the asynchronous + operation succeeded, the response body includes the HTTP status code for + the successful request. If the asynchronous operation failed, the response + body includes the HTTP status code for the failed request and error + information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: + 'InProgress', 'Succeeded', and 'Failed'. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus + :param error: + :type error: ~azure.mgmt.frontdoor.models.Error + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Error'}, + } + + def __init__(self, *, status=None, error=None, **kwargs) -> None: + super(AzureAsyncOperationResult, self).__init__(**kwargs) + self.status = status + self.error = error + + +class Backend(Model): + """Backend address of a frontDoor load balancer. + + :param address: Location of the backend (IP address or FQDN) + :type address: str + :param http_port: The HTTP TCP port number. Must be between 1 and 65535. + :type http_port: int + :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. + :type https_port: int + :param enabled_state: Whether to enable use of this backend. Permitted + values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.BackendEnabledState + :param priority: Priority to use for load balancing. Higher priorities + will not be used for load balancing if any lower priority backend is + healthy. + :type priority: int + :param weight: Weight of this endpoint for load balancing purposes. + :type weight: int + :param backend_host_header: The value to use as the host header sent to + the backend. If blank or unspecified, this defaults to the incoming host. + :type backend_host_header: str + """ + + _validation = { + 'http_port': {'maximum': 65535, 'minimum': 1}, + 'https_port': {'maximum': 65535, 'minimum': 1}, + 'priority': {'maximum': 5, 'minimum': 1}, + 'weight': {'maximum': 1000, 'minimum': 1}, + } + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'http_port': {'key': 'httpPort', 'type': 'int'}, + 'https_port': {'key': 'httpsPort', 'type': 'int'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'weight': {'key': 'weight', 'type': 'int'}, + 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, + } + + def __init__(self, *, address: str=None, http_port: int=None, https_port: int=None, enabled_state=None, priority: int=None, weight: int=None, backend_host_header: str=None, **kwargs) -> None: + super(Backend, self).__init__(**kwargs) + self.address = address + self.http_port = http_port + self.https_port = https_port + self.enabled_state = enabled_state + self.priority = priority + self.weight = weight + self.backend_host_header = backend_host_header + + +class SubResource(Model): + """Reference to another subresource. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class BackendPool(SubResource): + """A backend pool is a collection of backends that can be routed to. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param backends: The set of backends for this pool + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, backends=None, load_balancing_settings=None, health_probe_settings=None, resource_state=None, name: str=None, **kwargs) -> None: + super(BackendPool, self).__init__(id=id, **kwargs) + self.backends = backends + self.load_balancing_settings = load_balancing_settings + self.health_probe_settings = health_probe_settings + self.resource_state = resource_state + self.name = name + self.type = None + + +class BackendPoolListResult(Model): + """Result of the request to list Backend Pools. It contains a list of Backend + Pools objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Backend Pools within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.BackendPool] + :param next_link: URL to get the next set of BackendPool objects if there + are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BackendPool]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(BackendPoolListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class BackendPoolsSettings(Model): + """Settings that apply to all backend pools. + + :param enforce_certificate_name_check: Whether to enforce certificate name + check on HTTPS requests to all backend pools. No effect on non-HTTPS + requests. Possible values include: 'Enabled', 'Disabled'. Default value: + "Enabled" . + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + :param send_recv_timeout_seconds: Send and receive timeout on forwarding + request to the backend. When timeout is reached, the request fails and + returns. + :type send_recv_timeout_seconds: int + """ + + _validation = { + 'send_recv_timeout_seconds': {'minimum': 16}, + } + + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + } + + def __init__(self, *, enforce_certificate_name_check="Enabled", send_recv_timeout_seconds: int=None, **kwargs) -> None: + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = enforce_certificate_name_check + self.send_recv_timeout_seconds = send_recv_timeout_seconds + + +class BackendPoolUpdateParameters(Model): + """A collection of backends that can be routed to. + + :param backends: The set of backends for this pool + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + """ + + _attribute_map = { + 'backends': {'key': 'backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, + } + + def __init__(self, *, backends=None, load_balancing_settings=None, health_probe_settings=None, **kwargs) -> None: + super(BackendPoolUpdateParameters, self).__init__(**kwargs) + self.backends = backends + self.load_balancing_settings = load_balancing_settings + self.health_probe_settings = health_probe_settings + + +class CacheConfiguration(Model): + """Caching settings for a caching-type route. To disable caching, do not + provide a cacheConfiguration object. + + :param query_parameter_strip_directive: Treatment of URL query terms when + forming the cache key. Possible values include: 'StripNone', 'StripAll' + :type query_parameter_strip_directive: str or + ~azure.mgmt.frontdoor.models.FrontDoorQuery + :param dynamic_compression: Whether to use dynamic compression for cached + content. Possible values include: 'Enabled', 'Disabled' + :type dynamic_compression: str or + ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled + """ + + _attribute_map = { + 'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'}, + 'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'}, + } + + def __init__(self, *, query_parameter_strip_directive=None, dynamic_compression=None, **kwargs) -> None: + super(CacheConfiguration, self).__init__(**kwargs) + self.query_parameter_strip_directive = query_parameter_strip_directive + self.dynamic_compression = dynamic_compression + + +class CheckNameAvailabilityInput(Model): + """Input of CheckNameAvailability API. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The resource name to validate. + :type name: str + :param type: Required. The type of the resource whose name is to be + validated. Possible values include: 'Microsoft.Network/frontDoors', + 'Microsoft.Network/frontDoors/frontendEndpoints' + :type type: str or ~azure.mgmt.frontdoor.models.ResourceType + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceType'}, + } + + def __init__(self, *, name: str, type, **kwargs) -> None: + super(CheckNameAvailabilityInput, self).__init__(**kwargs) + self.name = name + self.type = type + + +class CheckNameAvailabilityOutput(Model): + """Output of check name availability API. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_availability: Indicates whether the name is available. Possible + values include: 'Available', 'Unavailable' + :vartype name_availability: str or + ~azure.mgmt.frontdoor.models.Availability + :ivar reason: The reason why the name is not available. + :vartype reason: str + :ivar message: The detailed error message describing why the name is not + available. + :vartype message: str + """ + + _validation = { + 'name_availability': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_availability': {'key': 'nameAvailability', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(CheckNameAvailabilityOutput, self).__init__(**kwargs) + self.name_availability = None + self.reason = None + self.message = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CustomHttpsConfiguration(Model): + """Https settings for a domain. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param certificate_source: Required. Defines the source of the SSL + certificate. Possible values include: 'AzureKeyVault', 'FrontDoor' + :type certificate_source: str or + ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource + :ivar protocol_type: Required. Defines the TLS extension protocol that is + used for secure delivery. Default value: "ServerNameIndication" . + :vartype protocol_type: str + :param minimum_tls_version: Required. The minimum TLS version required + from the clients to establish an SSL handshake with Front Door. Possible + values include: '1.0', '1.2' + :type minimum_tls_version: str or + ~azure.mgmt.frontdoor.models.MinimumTLSVersion + :param vault: The Key Vault containing the SSL certificate + :type vault: + ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault + :param secret_name: The name of the Key Vault secret representing the full + certificate PFX + :type secret_name: str + :param secret_version: The version of the Key Vault secret representing + the full certificate PFX + :type secret_version: str + :param certificate_type: Defines the type of the certificate used for + secure connections to a frontendEndpoint. Possible values include: + 'Dedicated' + :type certificate_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorCertificateType + """ + + _validation = { + 'certificate_source': {'required': True}, + 'protocol_type': {'required': True, 'constant': True}, + 'minimum_tls_version': {'required': True}, + } + + _attribute_map = { + 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'}, + 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, + 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, + 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, + 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, + } + + protocol_type = "ServerNameIndication" + + def __init__(self, *, certificate_source, minimum_tls_version, vault=None, secret_name: str=None, secret_version: str=None, certificate_type=None, **kwargs) -> None: + super(CustomHttpsConfiguration, self).__init__(**kwargs) + self.certificate_source = certificate_source + self.minimum_tls_version = minimum_tls_version + self.vault = vault + self.secret_name = secret_name + self.secret_version = secret_version + self.certificate_type = certificate_type + + +class CustomRule(Model): + """Defines contents of a web application rule. + + All required parameters must be populated in order to send to Azure. + + :param name: Describes the name of the rule. + :type name: str + :param priority: Required. Describes priority of the rule. Rules with a + lower value will be evaluated before rules with a higher value. + :type priority: int + :param enabled_state: Describes if the custom rule is in enabled or + disabled state. Defaults to Enabled if not specified. Possible values + include: 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.CustomRuleEnabledState + :param rule_type: Required. Describes type of rule. Possible values + include: 'MatchRule', 'RateLimitRule' + :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType + :param rate_limit_duration_in_minutes: Time window for resetting the rate + limit count. Default is 1 minute. + :type rate_limit_duration_in_minutes: int + :param rate_limit_threshold: Number of allowed requests per client within + the time window. + :type rate_limit_threshold: int + :param match_conditions: Required. List of match conditions. + :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition] + :param action: Required. Describes what action to be applied when rule + matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :type action: str or ~azure.mgmt.frontdoor.models.ActionType + """ + + _validation = { + 'name': {'max_length': 128}, + 'priority': {'required': True}, + 'rule_type': {'required': True}, + 'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0}, + 'rate_limit_threshold': {'minimum': 0}, + 'match_conditions': {'required': True}, + 'action': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'rule_type': {'key': 'ruleType', 'type': 'str'}, + 'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'}, + 'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'}, + 'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition]'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__(self, *, priority: int, rule_type, match_conditions, action, name: str=None, enabled_state=None, rate_limit_duration_in_minutes: int=None, rate_limit_threshold: int=None, **kwargs) -> None: + super(CustomRule, self).__init__(**kwargs) + self.name = name + self.priority = priority + self.enabled_state = enabled_state + self.rule_type = rule_type + self.rate_limit_duration_in_minutes = rate_limit_duration_in_minutes + self.rate_limit_threshold = rate_limit_threshold + self.match_conditions = match_conditions + self.action = action + + +class CustomRuleList(Model): + """Defines contents of custom rules. + + :param rules: List of rules + :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[CustomRule]'}, + } + + def __init__(self, *, rules=None, **kwargs) -> None: + super(CustomRuleList, self).__init__(**kwargs) + self.rules = rules + + +class Endpoint(Model): + """Defines the endpoint properties. + + :param name: The name of the endpoint + :type name: str + :param endpoint: The endpoint URL + :type endpoint: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'endpoint': {'key': 'endpoint', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, endpoint: str=None, **kwargs) -> None: + super(Endpoint, self).__init__(**kwargs) + self.name = name + self.endpoint = endpoint + + +class Error(Model): + """Error. + + :param code: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: + :type details: list[~azure.mgmt.frontdoor.models.ErrorDetails] + :param inner_error: + :type inner_error: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, inner_error: str=None, **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + self.inner_error = inner_error + + +class ErrorDetails(Model): + """ErrorDetails. + + :param code: + :type code: str + :param target: + :type target: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None: + super(ErrorDetails, self).__init__(**kwargs) + self.code = code + self.target = target + self.message = message + + +class ErrorResponse(Model): + """Error response indicates Front Door service is not able to process the + incoming request. The reason is provided in the error message. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.code = None + self.message = None + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Resource(Model): + """Common resource representation. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class Experiment(Resource): + """Defines the properties of an Experiment. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the details or intents of the + Experiment + :type description: str + :param endpoint_a: The endpoint A of an experiment + :type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint + :param endpoint_b: The endpoint B of an experiment + :type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :ivar status: The description of Experiment status from the server side + :vartype status: str + :ivar script_file_uri: The uri to the Script used in the Experiment + :vartype script_file_uri: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'status': {'readonly': True}, + 'script_file_uri': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint_a': {'key': 'properties.endpointA', 'type': 'Endpoint'}, + 'endpoint_b': {'key': 'properties.endpointB', 'type': 'Endpoint'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, description: str=None, endpoint_a=None, endpoint_b=None, enabled_state=None, resource_state=None, **kwargs) -> None: + super(Experiment, self).__init__(location=location, tags=tags, **kwargs) + self.description = description + self.endpoint_a = endpoint_a + self.endpoint_b = endpoint_b + self.enabled_state = enabled_state + self.resource_state = resource_state + self.status = None + self.script_file_uri = None + + +class ExperimentUpdateModel(Model): + """Defines modifiable attributes of an Experiment. + + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the intent or details of the + Experiment + :type description: str + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + } + + def __init__(self, *, tags=None, description: str=None, enabled_state=None, **kwargs) -> None: + super(ExperimentUpdateModel, self).__init__(**kwargs) + self.tags = tags + self.description = description + self.enabled_state = enabled_state + + +class RouteConfiguration(Model): + """Base class for all types of Route. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ForwardingConfiguration, RedirectConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + } + + def __init__(self, **kwargs) -> None: + super(RouteConfiguration, self).__init__(**kwargs) + self.odatatype = None + + +class ForwardingConfiguration(RouteConfiguration): + """Describes Forwarding Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param custom_forwarding_path: A custom path used to rewrite resource + paths matched by this rule. Leave empty to use incoming path. + :type custom_forwarding_path: str + :param forwarding_protocol: Protocol this rule will use when forwarding + traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type forwarding_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this + rule. + :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration + :param backend_pool: A reference to the BackendPool which this rule routes + to. + :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, + 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, + 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, + 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, + } + + def __init__(self, *, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, **kwargs) -> None: + super(ForwardingConfiguration, self).__init__(**kwargs) + self.custom_forwarding_path = custom_forwarding_path + self.forwarding_protocol = forwarding_protocol + self.cache_configuration = cache_configuration + self.backend_pool = backend_pool + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' + + +class FrontDoor(Resource): + """Front Door represents a collection of backend endpoints to route traffic to + along with rules that specify how traffic is sent there. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param friendly_name: A friendly name for the frontDoor + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with + this Front Door instance. + :type load_balancing_settings: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this + Front Door instance. + :type health_probe_settings: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: + list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. + Permitted values are 'Enabled' or 'Disabled'. Possible values include: + 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :param resource_state: Resource status of the Front Door. Possible values + include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', + 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar provisioning_state: Provisioning state of the Front Door. + :vartype provisioning_state: str + :ivar cname: The host that each frontendEndpoint must CNAME to. + :vartype cname: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'cname': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'properties.backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cname': {'key': 'properties.cname', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, resource_state=None, **kwargs) -> None: + super(FrontDoor, self).__init__(location=location, tags=tags, **kwargs) + self.friendly_name = friendly_name + self.routing_rules = routing_rules + self.load_balancing_settings = load_balancing_settings + self.health_probe_settings = health_probe_settings + self.backend_pools = backend_pools + self.frontend_endpoints = frontend_endpoints + self.backend_pools_settings = backend_pools_settings + self.enabled_state = enabled_state + self.resource_state = resource_state + self.provisioning_state = None + self.cname = None + + +class FrontDoorUpdateParameters(Model): + """The properties needed to update a Front Door. + + :param friendly_name: A friendly name for the frontDoor + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with + this Front Door instance. + :type load_balancing_settings: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this + Front Door instance. + :type health_probe_settings: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: + list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. + Permitted values are 'Enabled' or 'Disabled'. Possible values include: + 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + """ + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + } + + def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, **kwargs) -> None: + super(FrontDoorUpdateParameters, self).__init__(**kwargs) + self.friendly_name = friendly_name + self.routing_rules = routing_rules + self.load_balancing_settings = load_balancing_settings + self.health_probe_settings = health_probe_settings + self.backend_pools = backend_pools + self.frontend_endpoints = frontend_endpoints + self.backend_pools_settings = backend_pools_settings + self.enabled_state = enabled_state + + +class FrontendEndpoint(SubResource): + """A frontend endpoint used for routing. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param host_name: The host name of the frontendEndpoint. Must be a domain + name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity + on this host. Valid options are 'Enabled' or 'Disabled'. Possible values + include: 'Enabled', 'Disabled' + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. + The TTL to use in seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application + Firewall policy for each host (if applicable) + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https + of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', + 'Disabling', 'Disabled', 'Failed' + :vartype custom_https_provisioning_state: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState + :ivar custom_https_provisioning_substate: Provisioning substate shows the + progress of custom HTTPS enabling/disabling process step by step. Possible + values include: 'SubmittingDomainControlValidationRequest', + 'PendingDomainControlValidationREquestApproval', + 'DomainControlValidationRequestApproved', + 'DomainControlValidationRequestRejected', + 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', + 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', + 'CertificateDeleted' + :vartype custom_https_provisioning_substate: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate + :ivar custom_https_configuration: The configuration specifying how to + enable HTTPS + :vartype custom_https_configuration: + ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'custom_https_provisioning_state': {'readonly': True}, + 'custom_https_provisioning_substate': {'readonly': True}, + 'custom_https_configuration': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, + 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, + 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, resource_state=None, name: str=None, **kwargs) -> None: + super(FrontendEndpoint, self).__init__(id=id, **kwargs) + self.host_name = host_name + self.session_affinity_enabled_state = session_affinity_enabled_state + self.session_affinity_ttl_seconds = session_affinity_ttl_seconds + self.web_application_firewall_policy_link = web_application_firewall_policy_link + self.resource_state = resource_state + self.custom_https_provisioning_state = None + self.custom_https_provisioning_substate = None + self.custom_https_configuration = None + self.name = name + self.type = None + + +class FrontendEndpointLink(Model): + """Defines the Resource ID for a Frontend Endpoint. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(FrontendEndpointLink, self).__init__(**kwargs) + self.id = id + + +class FrontendEndpointUpdateParameters(Model): + """Frontend endpoint used in routing rule. + + :param host_name: The host name of the frontendEndpoint. Must be a domain + name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity + on this host. Valid options are 'Enabled' or 'Disabled'. Possible values + include: 'Enabled', 'Disabled' + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. + The TTL to use in seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application + Firewall policy for each host (if applicable) + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + """ + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + } + + def __init__(self, *, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, **kwargs) -> None: + super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) + self.host_name = host_name + self.session_affinity_enabled_state = session_affinity_enabled_state + self.session_affinity_ttl_seconds = session_affinity_ttl_seconds + self.web_application_firewall_policy_link = web_application_firewall_policy_link + + +class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): + """Defines the Web Application Firewall policy for each host (if applicable). + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) + self.id = id + + +class HealthProbeSettingsListResult(Model): + """Result of the request to list HealthProbeSettings. It contains a list of + HealthProbeSettings objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of HealthProbeSettings within a Front Door. + :vartype value: + list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param next_link: URL to get the next set of HealthProbeSettings objects + if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[HealthProbeSettingsModel]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(HealthProbeSettingsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class HealthProbeSettingsModel(SubResource): + """Load balancing settings for a backend pool. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param path: The path to use for the health probe. Default is / + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values + include: 'Http', 'Https' + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe + the backends defined under backendPools. Possible values include: 'GET', + 'HEAD'. Default value: "HEAD" . + :type health_probe_method: str or + ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against + backends defined under backendPools. Health probes can only be disabled if + there is a single enabled backend in single enabled backend pool. Possible + values include: 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, resource_state=None, name: str=None, **kwargs) -> None: + super(HealthProbeSettingsModel, self).__init__(id=id, **kwargs) + self.path = path + self.protocol = protocol + self.interval_in_seconds = interval_in_seconds + self.health_probe_method = health_probe_method + self.enabled_state = enabled_state + self.resource_state = resource_state + self.name = name + self.type = None + + +class HealthProbeSettingsUpdateParameters(Model): + """L7 health probe settings for a backend pool. + + :param path: The path to use for the health probe. Default is / + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values + include: 'Http', 'Https' + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe + the backends defined under backendPools. Possible values include: 'GET', + 'HEAD'. Default value: "HEAD" . + :type health_probe_method: str or + ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against + backends defined under backendPools. Health probes can only be disabled if + there is a single enabled backend in single enabled backend pool. Possible + values include: 'Enabled', 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.HealthProbeEnabled + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + } + + def __init__(self, *, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, **kwargs) -> None: + super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) + self.path = path + self.protocol = protocol + self.interval_in_seconds = interval_in_seconds + self.health_probe_method = health_probe_method + self.enabled_state = enabled_state + + +class KeyVaultCertificateSourceParametersVault(Model): + """The Key Vault containing the SSL certificate. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) + self.id = id + + +class LatencyMetric(Model): + """Defines the properties of a latency metric used in the latency scorecard. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the Latency Metric + :vartype name: str + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :vartype end_date_time_utc: str + :ivar a_value: The metric value of the A endpoint + :vartype a_value: float + :ivar b_value: The metric value of the B endpoint + :vartype b_value: float + :ivar delta: The difference in value between endpoint A and B + :vartype delta: float + :ivar delta_percent: The percent difference between endpoint A and B + :vartype delta_percent: float + :ivar a_clower95_ci: The lower end of the 95% confidence interval for + endpoint A + :vartype a_clower95_ci: float + :ivar a_hupper95_ci: The upper end of the 95% confidence interval for + endpoint A + :vartype a_hupper95_ci: float + :ivar b_clower95_ci: The lower end of the 95% confidence interval for + endpoint B + :vartype b_clower95_ci: float + :ivar b_upper95_ci: The upper end of the 95% confidence interval for + endpoint B + :vartype b_upper95_ci: float + """ + + _validation = { + 'name': {'readonly': True}, + 'end_date_time_utc': {'readonly': True}, + 'a_value': {'readonly': True}, + 'b_value': {'readonly': True}, + 'delta': {'readonly': True}, + 'delta_percent': {'readonly': True}, + 'a_clower95_ci': {'readonly': True}, + 'a_hupper95_ci': {'readonly': True}, + 'b_clower95_ci': {'readonly': True}, + 'b_upper95_ci': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'end_date_time_utc': {'key': 'endDateTimeUTC', 'type': 'str'}, + 'a_value': {'key': 'aValue', 'type': 'float'}, + 'b_value': {'key': 'bValue', 'type': 'float'}, + 'delta': {'key': 'delta', 'type': 'float'}, + 'delta_percent': {'key': 'deltaPercent', 'type': 'float'}, + 'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, + 'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, + 'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, + 'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'}, + } + + def __init__(self, **kwargs) -> None: + super(LatencyMetric, self).__init__(**kwargs) + self.name = None + self.end_date_time_utc = None + self.a_value = None + self.b_value = None + self.delta = None + self.delta_percent = None + self.a_clower95_ci = None + self.a_hupper95_ci = None + self.b_clower95_ci = None + self.b_upper95_ci = None + + +class LatencyScorecard(Resource): + """Defines the LatencyScorecard. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar latency_scorecard_id: The unique identifier of the Latency Scorecard + :vartype latency_scorecard_id: str + :ivar latency_scorecard_name: The name of the Latency Scorecard + :vartype latency_scorecard_name: str + :ivar description: The description of the Latency Scorecard + :vartype description: str + :ivar endpoint_a: The A endpoint in the scorecard + :vartype endpoint_a: str + :ivar endpoint_b: The B endpoint in the scorecard + :vartype endpoint_b: str + :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC + :vartype start_date_time_utc: datetime + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :vartype end_date_time_utc: datetime + :ivar country: The country associated with the Latency Scorecard. Values + are country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :vartype country: str + :param latency_metrics: The latency metrics of the Latency Scorecard + :type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'latency_scorecard_id': {'readonly': True}, + 'latency_scorecard_name': {'readonly': True}, + 'description': {'readonly': True}, + 'endpoint_a': {'readonly': True}, + 'endpoint_b': {'readonly': True}, + 'start_date_time_utc': {'readonly': True}, + 'end_date_time_utc': {'readonly': True}, + 'country': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'}, + 'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'}, + 'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'}, + 'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'iso-8601'}, + 'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'iso-8601'}, + 'country': {'key': 'properties.country', 'type': 'str'}, + 'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'}, + } + + def __init__(self, *, location: str=None, tags=None, latency_metrics=None, **kwargs) -> None: + super(LatencyScorecard, self).__init__(location=location, tags=tags, **kwargs) + self.latency_scorecard_id = None + self.latency_scorecard_name = None + self.description = None + self.endpoint_a = None + self.endpoint_b = None + self.start_date_time_utc = None + self.end_date_time_utc = None + self.country = None + self.latency_metrics = latency_metrics + + +class LoadBalancingSettingsListResult(Model): + """Result of the request to list load balancing settings. It contains a list + of load balancing settings objects and a URL link to get the next set of + results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Backend Pools within a Front Door. + :vartype value: + list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param next_link: URL to get the next set of LoadBalancingSettings objects + if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[LoadBalancingSettingsModel]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(LoadBalancingSettingsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class LoadBalancingSettingsModel(SubResource): + """Load balancing settings for a backend pool. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param sample_size: The number of samples to consider for load balancing + decisions + :type sample_size: int + :param successful_samples_required: The number of samples within the + sample period that must succeed + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in + milliseconds for probes to fall into the lowest latency bucket + :type additional_latency_milliseconds: int + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, resource_state=None, name: str=None, **kwargs) -> None: + super(LoadBalancingSettingsModel, self).__init__(id=id, **kwargs) + self.sample_size = sample_size + self.successful_samples_required = successful_samples_required + self.additional_latency_milliseconds = additional_latency_milliseconds + self.resource_state = resource_state + self.name = name + self.type = None + + +class LoadBalancingSettingsUpdateParameters(Model): + """Round-Robin load balancing settings for a backend pool. + + :param sample_size: The number of samples to consider for load balancing + decisions + :type sample_size: int + :param successful_samples_required: The number of samples within the + sample period that must succeed + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in + milliseconds for probes to fall into the lowest latency bucket + :type additional_latency_milliseconds: int + """ + + _attribute_map = { + 'sample_size': {'key': 'sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, + } + + def __init__(self, *, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, **kwargs) -> None: + super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) + self.sample_size = sample_size + self.successful_samples_required = successful_samples_required + self.additional_latency_milliseconds = additional_latency_milliseconds + + +class ManagedRuleDefinition(Model): + """Describes a managed rule definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar rule_id: Identifier for the managed rule. + :vartype rule_id: str + :ivar default_state: Describes the default state for the managed rule. + Possible values include: 'Disabled', 'Enabled' + :vartype default_state: str or + ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :ivar default_action: Describes the default action to be applied when the + managed rule matches. Possible values include: 'Allow', 'Block', 'Log', + 'Redirect' + :vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType + :ivar description: Describes the functionality of the managed rule. + :vartype description: str + """ + + _validation = { + 'rule_id': {'readonly': True}, + 'default_state': {'readonly': True}, + 'default_action': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'str'}, + 'default_state': {'key': 'defaultState', 'type': 'str'}, + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ManagedRuleDefinition, self).__init__(**kwargs) + self.rule_id = None + self.default_state = None + self.default_action = None + self.description = None + + +class ManagedRuleExclusion(Model): + """Exclude variables from managed rule evaluation. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable type to be excluded. + Possible values include: 'RequestHeaderNames', 'RequestCookieNames', + 'QueryStringArgNames', 'RequestBodyPostArgNames' + :type match_variable: str or + ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable + :param selector_match_operator: Required. Comparison operator to apply to + the selector when specifying which elements in the collection this + exclusion applies to. Possible values include: 'Equals', 'Contains', + 'StartsWith', 'EndsWith', 'EqualsAny' + :type selector_match_operator: str or + ~azure.mgmt.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator + :param selector: Required. Selector value for which elements in the + collection this exclusion applies to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, *, match_variable, selector_match_operator, selector: str, **kwargs) -> None: + super(ManagedRuleExclusion, self).__init__(**kwargs) + self.match_variable = match_variable + self.selector_match_operator = selector_match_operator + self.selector = selector + + +class ManagedRuleGroupDefinition(Model): + """Describes a managed rule group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar rule_group_name: Name of the managed rule group. + :vartype rule_group_name: str + :ivar description: Description of the managed rule group. + :vartype description: str + :ivar rules: List of rules within the managed rule group. + :vartype rules: list[~azure.mgmt.frontdoor.models.ManagedRuleDefinition] + """ + + _validation = { + 'rule_group_name': {'readonly': True}, + 'description': {'readonly': True}, + 'rules': {'readonly': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[ManagedRuleDefinition]'}, + } + + def __init__(self, **kwargs) -> None: + super(ManagedRuleGroupDefinition, self).__init__(**kwargs) + self.rule_group_name = None + self.description = None + self.rules = None + + +class ManagedRuleGroupOverride(Model): + """Defines a managed rule group override setting. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. Describes the managed rule group to + override. + :type rule_group_name: str + :param exclusions: Describes the exclusions that are applied to all rules + in the group. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + :param rules: List of rules that will be disabled. If none specified, all + rules in the group will be disabled. + :type rules: list[~azure.mgmt.frontdoor.models.ManagedRuleOverride] + """ + + _validation = { + 'rule_group_name': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + 'rules': {'key': 'rules', 'type': '[ManagedRuleOverride]'}, + } + + def __init__(self, *, rule_group_name: str, exclusions=None, rules=None, **kwargs) -> None: + super(ManagedRuleGroupOverride, self).__init__(**kwargs) + self.rule_group_name = rule_group_name + self.exclusions = exclusions + self.rules = rules + + +class ManagedRuleOverride(Model): + """Defines a managed rule group override setting. + + All required parameters must be populated in order to send to Azure. + + :param rule_id: Required. Identifier for the managed rule. + :type rule_id: str + :param enabled_state: Describes if the managed rule is in enabled or + disabled state. Defaults to Disabled if not specified. Possible values + include: 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :param action: Describes the override action to be applied when rule + matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :type action: str or ~azure.mgmt.frontdoor.models.ActionType + :param exclusions: Describes the exclusions that are applied to this + specific rule. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + """ + + _validation = { + 'rule_id': {'required': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + } + + def __init__(self, *, rule_id: str, enabled_state=None, action=None, exclusions=None, **kwargs) -> None: + super(ManagedRuleOverride, self).__init__(**kwargs) + self.rule_id = rule_id + self.enabled_state = enabled_state + self.action = action + self.exclusions = exclusions + + +class ManagedRuleSet(Model): + """Defines a managed rule set. + + All required parameters must be populated in order to send to Azure. + + :param rule_set_type: Required. Defines the rule set type to use. + :type rule_set_type: str + :param rule_set_version: Required. Defines the version of the rule set to + use. + :type rule_set_version: str + :param exclusions: Describes the exclusions that are applied to all rules + in the set. + :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] + :param rule_group_overrides: Defines the rule group overrides to apply to + the rule set. + :type rule_group_overrides: + list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] + """ + + _validation = { + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + } + + _attribute_map = { + 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'ruleSetVersion', 'type': 'str'}, + 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, + 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[ManagedRuleGroupOverride]'}, + } + + def __init__(self, *, rule_set_type: str, rule_set_version: str, exclusions=None, rule_group_overrides=None, **kwargs) -> None: + super(ManagedRuleSet, self).__init__(**kwargs) + self.rule_set_type = rule_set_type + self.rule_set_version = rule_set_version + self.exclusions = exclusions + self.rule_group_overrides = rule_group_overrides + + +class ManagedRuleSetDefinition(Resource): + """Describes the a managed rule set definition. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state of the managed rule set. + :vartype provisioning_state: str + :ivar rule_set_type: Type of the managed rule set. + :vartype rule_set_type: str + :ivar rule_set_version: Version of the managed rule set type. + :vartype rule_set_version: str + :ivar rule_groups: Rule groups of the managed rule set. + :vartype rule_groups: + list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'rule_set_type': {'readonly': True}, + 'rule_set_version': {'readonly': True}, + 'rule_groups': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'properties.ruleSetVersion', 'type': 'str'}, + 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ManagedRuleGroupDefinition]'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(ManagedRuleSetDefinition, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.rule_set_type = None + self.rule_set_version = None + self.rule_groups = None + + +class ManagedRuleSetList(Model): + """Defines the list of managed rule sets for the policy. + + :param managed_rule_sets: List of rule sets. + :type managed_rule_sets: list[~azure.mgmt.frontdoor.models.ManagedRuleSet] + """ + + _attribute_map = { + 'managed_rule_sets': {'key': 'managedRuleSets', 'type': '[ManagedRuleSet]'}, + } + + def __init__(self, *, managed_rule_sets=None, **kwargs) -> None: + super(ManagedRuleSetList, self).__init__(**kwargs) + self.managed_rule_sets = managed_rule_sets + + +class MatchCondition(Model): + """Define a match condition. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. Request variable to compare with. + Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', + 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', + 'SocketAddr' + :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchVariable + :param selector: Match against a specific key from the QueryString, + PostArgs, RequestHeader or Cookies variables. Default is null. + :type selector: str + :param operator: Required. Comparison type to use for matching with the + variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', + 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', + 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' + :type operator: str or ~azure.mgmt.frontdoor.models.Operator + :param negate_condition: Describes if the result of this condition should + be negated. + :type negate_condition: bool + :param match_value: Required. List of possible match values. + :type match_value: list[str] + :param transforms: List of transforms. + :type transforms: list[str or ~azure.mgmt.frontdoor.models.TransformType] + """ + + _validation = { + 'match_variable': {'required': True}, + 'operator': {'required': True}, + 'match_value': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + 'operator': {'key': 'operator', 'type': 'str'}, + 'negate_condition': {'key': 'negateCondition', 'type': 'bool'}, + 'match_value': {'key': 'matchValue', 'type': '[str]'}, + 'transforms': {'key': 'transforms', 'type': '[str]'}, + } + + def __init__(self, *, match_variable, operator, match_value, selector: str=None, negate_condition: bool=None, transforms=None, **kwargs) -> None: + super(MatchCondition, self).__init__(**kwargs) + self.match_variable = match_variable + self.selector = selector + self.operator = operator + self.negate_condition = negate_condition + self.match_value = match_value + self.transforms = transforms + + +class PolicySettings(Model): + """Defines top-level WebApplicationFirewallPolicy configuration settings. + + :param enabled_state: Describes if the policy is in enabled or disabled + state. Defaults to Enabled if not specified. Possible values include: + 'Disabled', 'Enabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.PolicyEnabledState + :param mode: Describes if it is in detection mode or prevention mode at + policy level. Possible values include: 'Prevention', 'Detection' + :type mode: str or ~azure.mgmt.frontdoor.models.PolicyMode + :param redirect_url: If action type is redirect, this field represents + redirect URL for the client. + :type redirect_url: str + :param custom_block_response_status_code: If the action type is block, + customer can override the response status code. + :type custom_block_response_status_code: int + :param custom_block_response_body: If the action type is block, customer + can override the response body. The body must be specified in base64 + encoding. + :type custom_block_response_body: str + """ + + _validation = { + 'custom_block_response_body': {'pattern': r'^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$'}, + } + + _attribute_map = { + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'mode': {'key': 'mode', 'type': 'str'}, + 'redirect_url': {'key': 'redirectUrl', 'type': 'str'}, + 'custom_block_response_status_code': {'key': 'customBlockResponseStatusCode', 'type': 'int'}, + 'custom_block_response_body': {'key': 'customBlockResponseBody', 'type': 'str'}, + } + + def __init__(self, *, enabled_state=None, mode=None, redirect_url: str=None, custom_block_response_status_code: int=None, custom_block_response_body: str=None, **kwargs) -> None: + super(PolicySettings, self).__init__(**kwargs) + self.enabled_state = enabled_state + self.mode = mode + self.redirect_url = redirect_url + self.custom_block_response_status_code = custom_block_response_status_code + self.custom_block_response_body = custom_block_response_body + + +class PreconfiguredEndpoint(Resource): + """Defines the properties of a preconfigured endpoint. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param description: The description of the endpoint + :type description: str + :param endpoint: The endpoint that is preconfigured + :type endpoint: str + :param endpoint_type: The type of endpoint. Possible values include: + 'AFD', 'AzureRegion', 'CDN', 'ATM' + :type endpoint_type: str or ~azure.mgmt.frontdoor.models.EndpointType + :param backend: The preconfigured endpoint backend + :type backend: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'endpoint_type': {'key': 'properties.endpointType', 'type': 'str'}, + 'backend': {'key': 'properties.backend', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, description: str=None, endpoint: str=None, endpoint_type=None, backend: str=None, **kwargs) -> None: + super(PreconfiguredEndpoint, self).__init__(location=location, tags=tags, **kwargs) + self.description = description + self.endpoint = endpoint + self.endpoint_type = endpoint_type + self.backend = backend + + +class Profile(Resource): + """Defines an Network Experiment Profile and lists of Experiments. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :param enabled_state: The state of the Experiment. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, resource_state=None, enabled_state=None, etag: str=None, **kwargs) -> None: + super(Profile, self).__init__(location=location, tags=tags, **kwargs) + self.resource_state = resource_state + self.enabled_state = enabled_state + self.etag = etag + + +class ProfileUpdateModel(Model): + """Defines modifiable attributes of a Profile. + + :param enabled_state: The enabled state of the Profile. Possible values + include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, enabled_state=None, tags=None, **kwargs) -> None: + super(ProfileUpdateModel, self).__init__(**kwargs) + self.enabled_state = enabled_state + self.tags = tags + + +class PurgeParameters(Model): + """Parameters required for content purge. + + All required parameters must be populated in order to send to Azure. + + :param content_paths: Required. The path to the content to be purged. Can + describe a file path or a wild card directory. + :type content_paths: list[str] + """ + + _validation = { + 'content_paths': {'required': True}, + } + + _attribute_map = { + 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, + } + + def __init__(self, *, content_paths, **kwargs) -> None: + super(PurgeParameters, self).__init__(**kwargs) + self.content_paths = content_paths + + +class RedirectConfiguration(RouteConfiguration): + """Describes Redirect Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param redirect_type: The redirect type the rule will use when redirecting + traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', + 'PermanentRedirect' + :type redirect_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the + traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type redirect_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use the incoming host + as the destination host. + :type custom_host: str + :param custom_path: The full path to redirect. Path cannot be empty and + must start with /. Leave empty to use the incoming path as destination + path. + :type custom_path: str + :param custom_fragment: Fragment to add to the redirect URL. Fragment is + the part of the URL that comes after #. Do not include the #. + :type custom_fragment: str + :param custom_query_string: The set of query strings to be placed in the + redirect URL. Setting this value would replace any existing query string; + leave empty to preserve the incoming query string. Query string must be in + = format. The first ? and & will be added automatically so do + not include them in the front, but do separate multiple query strings with + &. + :type custom_query_string: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'redirect_type': {'key': 'redirectType', 'type': 'str'}, + 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, + 'custom_host': {'key': 'customHost', 'type': 'str'}, + 'custom_path': {'key': 'customPath', 'type': 'str'}, + 'custom_fragment': {'key': 'customFragment', 'type': 'str'}, + 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, + } + + def __init__(self, *, redirect_type=None, redirect_protocol=None, custom_host: str=None, custom_path: str=None, custom_fragment: str=None, custom_query_string: str=None, **kwargs) -> None: + super(RedirectConfiguration, self).__init__(**kwargs) + self.redirect_type = redirect_type + self.redirect_protocol = redirect_protocol + self.custom_host = custom_host + self.custom_path = custom_path + self.custom_fragment = custom_fragment + self.custom_query_string = custom_query_string + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' + + +class RoutingRule(SubResource): + """A routing rule represents a specification for traffic to treat and where to + send it, along with health probe information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param frontend_endpoints: Frontend endpoints associated with this rule + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule + :type accepted_protocols: list[str or + ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values + are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + :param resource_state: Resource status. Possible values include: + 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' + :type resource_state: str or + ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'properties.routeConfiguration', 'type': 'RouteConfiguration'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, resource_state=None, name: str=None, **kwargs) -> None: + super(RoutingRule, self).__init__(id=id, **kwargs) + self.frontend_endpoints = frontend_endpoints + self.accepted_protocols = accepted_protocols + self.patterns_to_match = patterns_to_match + self.enabled_state = enabled_state + self.route_configuration = route_configuration + self.resource_state = resource_state + self.name = name + self.type = None + + +class RoutingRuleListResult(Model): + """Result of the request to list Routing Rules. It contains a list of Routing + Rule objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: List of Routing Rules within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param next_link: URL to get the next set of RoutingRule objects if there + are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RoutingRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, next_link: str=None, **kwargs) -> None: + super(RoutingRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class RoutingRuleUpdateParameters(Model): + """Routing rules to apply to an endpoint. + + :param frontend_endpoints: Frontend endpoints associated with this rule + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule + :type accepted_protocols: list[str or + ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values + are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', + 'Disabled' + :type enabled_state: str or + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + """ + + _attribute_map = { + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, + } + + def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, **kwargs) -> None: + super(RoutingRuleUpdateParameters, self).__init__(**kwargs) + self.frontend_endpoints = frontend_endpoints + self.accepted_protocols = accepted_protocols + self.patterns_to_match = patterns_to_match + self.enabled_state = enabled_state + self.route_configuration = route_configuration + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(TagsObject, self).__init__(**kwargs) + self.tags = tags + + +class Timeseries(Resource): + """Defines the Timeseries. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param endpoint: The endpoint associated with the Timeseries data point + :type endpoint: str + :param start_date_time_utc: The start DateTime of the Timeseries in UTC + :type start_date_time_utc: str + :param end_date_time_utc: The end DateTime of the Timeseries in UTC + :type end_date_time_utc: str + :param aggregation_interval: The aggregation interval of the Timeseries. + Possible values include: 'Hourly', 'Daily' + :type aggregation_interval: str or + ~azure.mgmt.frontdoor.models.AggregationInterval + :param timeseries_type: The type of Timeseries. Possible values include: + 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType + :param country: The country associated with the Timeseries. Values are + country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :type country: str + :param timeseries_data: The set of data points for the timeseries + :type timeseries_data: + list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'str'}, + 'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'str'}, + 'aggregation_interval': {'key': 'properties.aggregationInterval', 'type': 'str'}, + 'timeseries_type': {'key': 'properties.timeseriesType', 'type': 'str'}, + 'country': {'key': 'properties.country', 'type': 'str'}, + 'timeseries_data': {'key': 'properties.timeseriesData', 'type': '[TimeseriesDataPoint]'}, + } + + def __init__(self, *, location: str=None, tags=None, endpoint: str=None, start_date_time_utc: str=None, end_date_time_utc: str=None, aggregation_interval=None, timeseries_type=None, country: str=None, timeseries_data=None, **kwargs) -> None: + super(Timeseries, self).__init__(location=location, tags=tags, **kwargs) + self.endpoint = endpoint + self.start_date_time_utc = start_date_time_utc + self.end_date_time_utc = end_date_time_utc + self.aggregation_interval = aggregation_interval + self.timeseries_type = timeseries_type + self.country = country + self.timeseries_data = timeseries_data + + +class TimeseriesDataPoint(Model): + """Defines a timeseries datapoint used in a timeseries. + + :param date_time_utc: The DateTime of the Timeseries data point in UTC + :type date_time_utc: str + :param value: The Value of the Timeseries data point + :type value: float + """ + + _attribute_map = { + 'date_time_utc': {'key': 'dateTimeUTC', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'float'}, + } + + def __init__(self, *, date_time_utc: str=None, value: float=None, **kwargs) -> None: + super(TimeseriesDataPoint, self).__init__(**kwargs) + self.date_time_utc = date_time_utc + self.value = value + + +class ValidateCustomDomainInput(Model): + """Input of the custom domain to be validated for DNS mapping. + + All required parameters must be populated in order to send to Azure. + + :param host_name: Required. The host name of the custom domain. Must be a + domain name. + :type host_name: str + """ + + _validation = { + 'host_name': {'required': True}, + } + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + } + + def __init__(self, *, host_name: str, **kwargs) -> None: + super(ValidateCustomDomainInput, self).__init__(**kwargs) + self.host_name = host_name + + +class ValidateCustomDomainOutput(Model): + """Output of custom domain validation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar custom_domain_validated: Indicates whether the custom domain is + valid or not. + :vartype custom_domain_validated: bool + :ivar reason: The reason why the custom domain is not valid. + :vartype reason: str + :ivar message: Error message describing why the custom domain is not + valid. + :vartype message: str + """ + + _validation = { + 'custom_domain_validated': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'custom_domain_validated': {'key': 'customDomainValidated', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ValidateCustomDomainOutput, self).__init__(**kwargs) + self.custom_domain_validated = None + self.reason = None + self.message = None + + +class WebApplicationFirewallPolicy(Resource): + """Defines web application firewall policy. + + 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 + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param policy_settings: Describes settings for the policy. + :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings + :param custom_rules: Describes custom rules inside the policy. + :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRuleList + :param managed_rules: Describes managed rules inside the policy. + :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSetList + :ivar frontend_endpoint_links: Describes Frontend Endpoints associated + with this Web Application Firewall policy. + :vartype frontend_endpoint_links: + list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] + :ivar provisioning_state: Provisioning state of the policy. + :vartype provisioning_state: str + :ivar resource_state: Resource status of the policy. Possible values + include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', + 'Deleting' + :vartype resource_state: str or + ~azure.mgmt.frontdoor.models.PolicyResourceState + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'frontend_endpoint_links': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, + 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRuleList'}, + 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSetList'}, + 'frontend_endpoint_links': {'key': 'properties.frontendEndpointLinks', 'type': '[FrontendEndpointLink]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, policy_settings=None, custom_rules=None, managed_rules=None, etag: str=None, **kwargs) -> None: + super(WebApplicationFirewallPolicy, self).__init__(location=location, tags=tags, **kwargs) + self.policy_settings = policy_settings + self.custom_rules = custom_rules + self.managed_rules = managed_rules + self.frontend_endpoint_links = None + self.provisioning_state = None + self.resource_state = None + self.etag = etag diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_paged_models.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_paged_models.py new file mode 100644 index 000000000000..8ae0f541895c --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/_paged_models.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ProfilePaged(Paged): + """ + A paging container for iterating over a list of :class:`Profile ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Profile]'} + } + + def __init__(self, *args, **kwargs): + + super(ProfilePaged, self).__init__(*args, **kwargs) +class PreconfiguredEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`PreconfiguredEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PreconfiguredEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(PreconfiguredEndpointPaged, self).__init__(*args, **kwargs) +class ExperimentPaged(Paged): + """ + A paging container for iterating over a list of :class:`Experiment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Experiment]'} + } + + def __init__(self, *args, **kwargs): + + super(ExperimentPaged, self).__init__(*args, **kwargs) +class FrontDoorPaged(Paged): + """ + A paging container for iterating over a list of :class:`FrontDoor ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FrontDoor]'} + } + + def __init__(self, *args, **kwargs): + + super(FrontDoorPaged, self).__init__(*args, **kwargs) +class FrontendEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`FrontendEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FrontendEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(FrontendEndpointPaged, self).__init__(*args, **kwargs) +class WebApplicationFirewallPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`WebApplicationFirewallPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[WebApplicationFirewallPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(WebApplicationFirewallPolicyPaged, self).__init__(*args, **kwargs) +class ManagedRuleSetDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ManagedRuleSetDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ManagedRuleSetDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(ManagedRuleSetDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result.py deleted file mode 100644 index 7b934f41680c..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureAsyncOperationResult(Model): - """The response body contains the status of the specified asynchronous - operation, indicating whether it has succeeded, is in progress, or has - failed. Note that this status is distinct from the HTTP status code - returned for the Get Operation Status operation itself. If the asynchronous - operation succeeded, the response body includes the HTTP status code for - the successful request. If the asynchronous operation failed, the response - body includes the HTTP status code for the failed request and error - information regarding the failure. - - :param status: Status of the Azure async operation. Possible values are: - 'InProgress', 'Succeeded', and 'Failed'. Possible values include: - 'InProgress', 'Succeeded', 'Failed' - :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus - :param error: - :type error: ~azure.mgmt.frontdoor.models.Error - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - } - - def __init__(self, **kwargs): - super(AzureAsyncOperationResult, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error = kwargs.get('error', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result_py3.py deleted file mode 100644 index 34fd76a89571..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_async_operation_result_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureAsyncOperationResult(Model): - """The response body contains the status of the specified asynchronous - operation, indicating whether it has succeeded, is in progress, or has - failed. Note that this status is distinct from the HTTP status code - returned for the Get Operation Status operation itself. If the asynchronous - operation succeeded, the response body includes the HTTP status code for - the successful request. If the asynchronous operation failed, the response - body includes the HTTP status code for the failed request and error - information regarding the failure. - - :param status: Status of the Azure async operation. Possible values are: - 'InProgress', 'Succeeded', and 'Failed'. Possible values include: - 'InProgress', 'Succeeded', 'Failed' - :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus - :param error: - :type error: ~azure.mgmt.frontdoor.models.Error - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'Error'}, - } - - def __init__(self, *, status=None, error=None, **kwargs) -> None: - super(AzureAsyncOperationResult, self).__init__(**kwargs) - self.status = status - self.error = error diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group.py deleted file mode 100644 index 3602d32adfc3..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureManagedOverrideRuleGroup(Model): - """Defines contents of a web application rule. - - All required parameters must be populated in order to send to Azure. - - :param rule_group_override: Required. Describes override rule group. - Possible values include: 'SqlInjection', 'XSS' - :type rule_group_override: str or - ~azure.mgmt.frontdoor.models.RuleGroupOverride - :param action: Required. Type of Actions. Possible values include: - 'Allow', 'Block', 'Log' - :type action: str or ~azure.mgmt.frontdoor.models.Action - """ - - _validation = { - 'rule_group_override': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'rule_group_override': {'key': 'ruleGroupOverride', 'type': 'str'}, - 'action': {'key': 'action', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureManagedOverrideRuleGroup, self).__init__(**kwargs) - self.rule_group_override = kwargs.get('rule_group_override', None) - self.action = kwargs.get('action', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group_py3.py deleted file mode 100644 index 3080e02399fa..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_override_rule_group_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AzureManagedOverrideRuleGroup(Model): - """Defines contents of a web application rule. - - All required parameters must be populated in order to send to Azure. - - :param rule_group_override: Required. Describes override rule group. - Possible values include: 'SqlInjection', 'XSS' - :type rule_group_override: str or - ~azure.mgmt.frontdoor.models.RuleGroupOverride - :param action: Required. Type of Actions. Possible values include: - 'Allow', 'Block', 'Log' - :type action: str or ~azure.mgmt.frontdoor.models.Action - """ - - _validation = { - 'rule_group_override': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'rule_group_override': {'key': 'ruleGroupOverride', 'type': 'str'}, - 'action': {'key': 'action', 'type': 'str'}, - } - - def __init__(self, *, rule_group_override, action, **kwargs) -> None: - super(AzureManagedOverrideRuleGroup, self).__init__(**kwargs) - self.rule_group_override = rule_group_override - self.action = action diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set.py deleted file mode 100644 index 005935666d49..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .managed_rule_set import ManagedRuleSet - - -class AzureManagedRuleSet(ManagedRuleSet): - """Describes azure managed provider. - - All required parameters must be populated in order to send to Azure. - - :param priority: Describes priority of the rule - :type priority: int - :param version: defines version of the rule set - :type version: int - :param rule_set_type: Required. Constant filled by server. - :type rule_set_type: str - :param rule_group_overrides: List of azure managed provider override - configuration (optional) - :type rule_group_overrides: - list[~azure.mgmt.frontdoor.models.AzureManagedOverrideRuleGroup] - """ - - _validation = { - 'rule_set_type': {'required': True}, - } - - _attribute_map = { - 'priority': {'key': 'priority', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'int'}, - 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, - 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[AzureManagedOverrideRuleGroup]'}, - } - - def __init__(self, **kwargs): - super(AzureManagedRuleSet, self).__init__(**kwargs) - self.rule_group_overrides = kwargs.get('rule_group_overrides', None) - self.rule_set_type = 'AzureManagedRuleSet' diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set_py3.py deleted file mode 100644 index 56d63d6f45db..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/azure_managed_rule_set_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .managed_rule_set_py3 import ManagedRuleSet - - -class AzureManagedRuleSet(ManagedRuleSet): - """Describes azure managed provider. - - All required parameters must be populated in order to send to Azure. - - :param priority: Describes priority of the rule - :type priority: int - :param version: defines version of the rule set - :type version: int - :param rule_set_type: Required. Constant filled by server. - :type rule_set_type: str - :param rule_group_overrides: List of azure managed provider override - configuration (optional) - :type rule_group_overrides: - list[~azure.mgmt.frontdoor.models.AzureManagedOverrideRuleGroup] - """ - - _validation = { - 'rule_set_type': {'required': True}, - } - - _attribute_map = { - 'priority': {'key': 'priority', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'int'}, - 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, - 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[AzureManagedOverrideRuleGroup]'}, - } - - def __init__(self, *, priority: int=None, version: int=None, rule_group_overrides=None, **kwargs) -> None: - super(AzureManagedRuleSet, self).__init__(priority=priority, version=version, **kwargs) - self.rule_group_overrides = rule_group_overrides - self.rule_set_type = 'AzureManagedRuleSet' diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py deleted file mode 100644 index d15a56194c1a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Backend(Model): - """Backend address of a frontDoor load balancer. - - :param address: Location of the backend (IP address or FQDN) - :type address: str - :param http_port: The HTTP TCP port number. Must be between 1 and 65535. - :type http_port: int - :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. - :type https_port: int - :param enabled_state: Whether to enable use of this backend. Permitted - values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param priority: Priority to use for load balancing. Higher priorities - will not be used for load balancing if any lower priority backend is - healthy. - :type priority: int - :param weight: Weight of this endpoint for load balancing purposes. - :type weight: int - :param backend_host_header: The value to use as the host header sent to - the backend. If blank or unspecified, this defaults to the incoming host. - :type backend_host_header: str - """ - - _validation = { - 'http_port': {'maximum': 65535, 'minimum': 1}, - 'https_port': {'maximum': 65535, 'minimum': 1}, - 'priority': {'maximum': 5, 'minimum': 1}, - 'weight': {'maximum': 1000, 'minimum': 1}, - } - - _attribute_map = { - 'address': {'key': 'address', 'type': 'str'}, - 'http_port': {'key': 'httpPort', 'type': 'int'}, - 'https_port': {'key': 'httpsPort', 'type': 'int'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'weight': {'key': 'weight', 'type': 'int'}, - 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Backend, self).__init__(**kwargs) - self.address = kwargs.get('address', None) - self.http_port = kwargs.get('http_port', None) - self.https_port = kwargs.get('https_port', None) - self.enabled_state = kwargs.get('enabled_state', None) - self.priority = kwargs.get('priority', None) - self.weight = kwargs.get('weight', None) - self.backend_host_header = kwargs.get('backend_host_header', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool.py deleted file mode 100644 index 88dc30eab32f..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class BackendPool(SubResource): - """A backend pool is a collection of backends that can be routed to. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, - 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, - 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackendPool, self).__init__(**kwargs) - self.backends = kwargs.get('backends', None) - self.load_balancing_settings = kwargs.get('load_balancing_settings', None) - self.health_probe_settings = kwargs.get('health_probe_settings', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_paged.py deleted file mode 100644 index 7f530dd9c345..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class BackendPoolPaged(Paged): - """ - A paging container for iterating over a list of :class:`BackendPool ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[BackendPool]'} - } - - def __init__(self, *args, **kwargs): - - super(BackendPoolPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_py3.py deleted file mode 100644 index 539d0ab52f3a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class BackendPool(SubResource): - """A backend pool is a collection of backends that can be routed to. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, - 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, - 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, backends=None, load_balancing_settings=None, health_probe_settings=None, resource_state=None, name: str=None, **kwargs) -> None: - super(BackendPool, self).__init__(id=id, **kwargs) - self.backends = backends - self.load_balancing_settings = load_balancing_settings - self.health_probe_settings = health_probe_settings - self.resource_state = resource_state - self.name = name - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters.py deleted file mode 100644 index de81ce836970..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackendPoolUpdateParameters(Model): - """A collection of backends that can be routed to. - - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - """ - - _attribute_map = { - 'backends': {'key': 'backends', 'type': '[Backend]'}, - 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, - 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, - } - - def __init__(self, **kwargs): - super(BackendPoolUpdateParameters, self).__init__(**kwargs) - self.backends = kwargs.get('backends', None) - self.load_balancing_settings = kwargs.get('load_balancing_settings', None) - self.health_probe_settings = kwargs.get('health_probe_settings', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters_py3.py deleted file mode 100644 index d740e7d5e4cc..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pool_update_parameters_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackendPoolUpdateParameters(Model): - """A collection of backends that can be routed to. - - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - """ - - _attribute_map = { - 'backends': {'key': 'backends', 'type': '[Backend]'}, - 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, - 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, - } - - def __init__(self, *, backends=None, load_balancing_settings=None, health_probe_settings=None, **kwargs) -> None: - super(BackendPoolUpdateParameters, self).__init__(**kwargs) - self.backends = backends - self.load_balancing_settings = load_balancing_settings - self.health_probe_settings = health_probe_settings diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py deleted file mode 100644 index eb7427630145..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Backend(Model): - """Backend address of a frontDoor load balancer. - - :param address: Location of the backend (IP address or FQDN) - :type address: str - :param http_port: The HTTP TCP port number. Must be between 1 and 65535. - :type http_port: int - :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. - :type https_port: int - :param enabled_state: Whether to enable use of this backend. Permitted - values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param priority: Priority to use for load balancing. Higher priorities - will not be used for load balancing if any lower priority backend is - healthy. - :type priority: int - :param weight: Weight of this endpoint for load balancing purposes. - :type weight: int - :param backend_host_header: The value to use as the host header sent to - the backend. If blank or unspecified, this defaults to the incoming host. - :type backend_host_header: str - """ - - _validation = { - 'http_port': {'maximum': 65535, 'minimum': 1}, - 'https_port': {'maximum': 65535, 'minimum': 1}, - 'priority': {'maximum': 5, 'minimum': 1}, - 'weight': {'maximum': 1000, 'minimum': 1}, - } - - _attribute_map = { - 'address': {'key': 'address', 'type': 'str'}, - 'http_port': {'key': 'httpPort', 'type': 'int'}, - 'https_port': {'key': 'httpsPort', 'type': 'int'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'weight': {'key': 'weight', 'type': 'int'}, - 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, - } - - def __init__(self, *, address: str=None, http_port: int=None, https_port: int=None, enabled_state=None, priority: int=None, weight: int=None, backend_host_header: str=None, **kwargs) -> None: - super(Backend, self).__init__(**kwargs) - self.address = address - self.http_port = http_port - self.https_port = https_port - self.enabled_state = enabled_state - self.priority = priority - self.weight = weight - self.backend_host_header = backend_host_header diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration.py deleted file mode 100644 index 670e24d9632c..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CacheConfiguration(Model): - """Caching settings for a caching-type route. To disable caching, do not - provide a cacheConfiguration object. - - :param query_parameter_strip_directive: Treatment of URL query terms when - forming the cache key. Possible values include: 'StripNone', 'StripAll' - :type query_parameter_strip_directive: str or - ~azure.mgmt.frontdoor.models.FrontDoorQuery - :param dynamic_compression: Whether to use dynamic compression for cached - content. Possible values include: 'Enabled', 'Disabled' - :type dynamic_compression: str or - ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled - """ - - _attribute_map = { - 'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'}, - 'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CacheConfiguration, self).__init__(**kwargs) - self.query_parameter_strip_directive = kwargs.get('query_parameter_strip_directive', None) - self.dynamic_compression = kwargs.get('dynamic_compression', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration_py3.py deleted file mode 100644 index 6fd1bc544d84..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/cache_configuration_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CacheConfiguration(Model): - """Caching settings for a caching-type route. To disable caching, do not - provide a cacheConfiguration object. - - :param query_parameter_strip_directive: Treatment of URL query terms when - forming the cache key. Possible values include: 'StripNone', 'StripAll' - :type query_parameter_strip_directive: str or - ~azure.mgmt.frontdoor.models.FrontDoorQuery - :param dynamic_compression: Whether to use dynamic compression for cached - content. Possible values include: 'Enabled', 'Disabled' - :type dynamic_compression: str or - ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled - """ - - _attribute_map = { - 'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'}, - 'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'}, - } - - def __init__(self, *, query_parameter_strip_directive=None, dynamic_compression=None, **kwargs) -> None: - super(CacheConfiguration, self).__init__(**kwargs) - self.query_parameter_strip_directive = query_parameter_strip_directive - self.dynamic_compression = dynamic_compression diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input.py deleted file mode 100644 index 795f600390f8..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityInput(Model): - """Input of CheckNameAvailability API. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The resource name to validate. - :type name: str - :param type: Required. The type of the resource whose name is to be - validated. Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceType'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input_py3.py deleted file mode 100644 index 47a5def7517a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_input_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityInput(Model): - """Input of CheckNameAvailability API. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The resource name to validate. - :type name: str - :param type: Required. The type of the resource whose name is to be - validated. Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceType'}, - } - - def __init__(self, *, name: str, type, **kwargs) -> None: - super(CheckNameAvailabilityInput, self).__init__(**kwargs) - self.name = name - self.type = type diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output.py deleted file mode 100644 index 488ab34b8936..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityOutput(Model): - """Output of check name availability API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_availability: Indicates whether the name is available. Possible - values include: 'Available', 'Unavailable' - :vartype name_availability: str or - ~azure.mgmt.frontdoor.models.Availability - :ivar reason: The reason why the name is not available. - :vartype reason: str - :ivar message: The detailed error message describing why the name is not - available. - :vartype message: str - """ - - _validation = { - 'name_availability': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_availability': {'key': 'nameAvailability', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CheckNameAvailabilityOutput, self).__init__(**kwargs) - self.name_availability = None - self.reason = None - self.message = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output_py3.py deleted file mode 100644 index 7d330107c694..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/check_name_availability_output_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityOutput(Model): - """Output of check name availability API. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_availability: Indicates whether the name is available. Possible - values include: 'Available', 'Unavailable' - :vartype name_availability: str or - ~azure.mgmt.frontdoor.models.Availability - :ivar reason: The reason why the name is not available. - :vartype reason: str - :ivar message: The detailed error message describing why the name is not - available. - :vartype message: str - """ - - _validation = { - 'name_availability': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_availability': {'key': 'nameAvailability', 'type': 'str'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(CheckNameAvailabilityOutput, self).__init__(**kwargs) - self.name_availability = None - self.reason = None - self.message = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration.py deleted file mode 100644 index ebf4b28794fd..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomHttpsConfiguration(Model): - """Https settings for a domain. - - :param certificate_source: Defines the source of the SSL certificate. - Possible values include: 'AzureKeyVault', 'FrontDoor' - :type certificate_source: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource - :param protocol_type: Defines the TLS extension protocol that is used for - secure delivery. Possible values include: 'ServerNameIndication' - :type protocol_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorTlsProtocolType - :param vault: The Key Vault containing the SSL certificate - :type vault: - ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault - :param secret_name: The name of the Key Vault secret representing the full - certificate PFX - :type secret_name: str - :param secret_version: The version of the Key Vault secret representing - the full certificate PFX - :type secret_version: str - :param certificate_type: Defines the type of the certificate used for - secure connections to a frontendEndpoint. Possible values include: - 'Dedicated' - :type certificate_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateType - """ - - _attribute_map = { - 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, - 'protocol_type': {'key': 'protocolType', 'type': 'str'}, - 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, - 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, - 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, - 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CustomHttpsConfiguration, self).__init__(**kwargs) - self.certificate_source = kwargs.get('certificate_source', None) - self.protocol_type = kwargs.get('protocol_type', None) - self.vault = kwargs.get('vault', None) - self.secret_name = kwargs.get('secret_name', None) - self.secret_version = kwargs.get('secret_version', None) - self.certificate_type = kwargs.get('certificate_type', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration_py3.py deleted file mode 100644 index 2420582fecb1..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_https_configuration_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomHttpsConfiguration(Model): - """Https settings for a domain. - - :param certificate_source: Defines the source of the SSL certificate. - Possible values include: 'AzureKeyVault', 'FrontDoor' - :type certificate_source: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource - :param protocol_type: Defines the TLS extension protocol that is used for - secure delivery. Possible values include: 'ServerNameIndication' - :type protocol_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorTlsProtocolType - :param vault: The Key Vault containing the SSL certificate - :type vault: - ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault - :param secret_name: The name of the Key Vault secret representing the full - certificate PFX - :type secret_name: str - :param secret_version: The version of the Key Vault secret representing - the full certificate PFX - :type secret_version: str - :param certificate_type: Defines the type of the certificate used for - secure connections to a frontendEndpoint. Possible values include: - 'Dedicated' - :type certificate_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateType - """ - - _attribute_map = { - 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, - 'protocol_type': {'key': 'protocolType', 'type': 'str'}, - 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, - 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, - 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, - 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, - } - - def __init__(self, *, certificate_source=None, protocol_type=None, vault=None, secret_name: str=None, secret_version: str=None, certificate_type=None, **kwargs) -> None: - super(CustomHttpsConfiguration, self).__init__(**kwargs) - self.certificate_source = certificate_source - self.protocol_type = protocol_type - self.vault = vault - self.secret_name = secret_name - self.secret_version = secret_version - self.certificate_type = certificate_type diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule.py deleted file mode 100644 index 6ee3544c69db..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomRule(Model): - """Defines contents of a web application rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Gets name of the resource that is unique within a policy. - This name can be used to access the resource. - :type name: str - :ivar etag: Gets a unique read-only string that changes whenever the - resource is updated. - :vartype etag: str - :param priority: Required. Describes priority of the rule. Rules with a - lower value will be evaluated before rules with a higher value - :type priority: int - :param rule_type: Required. Describes type of rule. Possible values - include: 'MatchRule', 'RateLimitRule' - :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType - :param rate_limit_duration_in_minutes: Defines rate limit duration. - Default - 1 minute - :type rate_limit_duration_in_minutes: int - :param rate_limit_threshold: Defines rate limit threshold - :type rate_limit_threshold: int - :param match_conditions: Required. List of match conditions - :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition1] - :param action: Required. Type of Actions. Possible values include: - 'Allow', 'Block', 'Log' - :type action: str or ~azure.mgmt.frontdoor.models.Action - :param transforms: List of transforms - :type transforms: list[str or ~azure.mgmt.frontdoor.models.Transform] - """ - - _validation = { - 'name': {'max_length': 128}, - 'etag': {'readonly': True}, - 'priority': {'required': True}, - 'rule_type': {'required': True}, - 'match_conditions': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'}, - 'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'}, - 'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition1]'}, - 'action': {'key': 'action', 'type': 'str'}, - 'transforms': {'key': 'transforms', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(CustomRule, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.etag = None - self.priority = kwargs.get('priority', None) - self.rule_type = kwargs.get('rule_type', None) - self.rate_limit_duration_in_minutes = kwargs.get('rate_limit_duration_in_minutes', None) - self.rate_limit_threshold = kwargs.get('rate_limit_threshold', None) - self.match_conditions = kwargs.get('match_conditions', None) - self.action = kwargs.get('action', None) - self.transforms = kwargs.get('transforms', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule_py3.py deleted file mode 100644 index 41d5aaf0a267..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rule_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomRule(Model): - """Defines contents of a web application rule. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Gets name of the resource that is unique within a policy. - This name can be used to access the resource. - :type name: str - :ivar etag: Gets a unique read-only string that changes whenever the - resource is updated. - :vartype etag: str - :param priority: Required. Describes priority of the rule. Rules with a - lower value will be evaluated before rules with a higher value - :type priority: int - :param rule_type: Required. Describes type of rule. Possible values - include: 'MatchRule', 'RateLimitRule' - :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType - :param rate_limit_duration_in_minutes: Defines rate limit duration. - Default - 1 minute - :type rate_limit_duration_in_minutes: int - :param rate_limit_threshold: Defines rate limit threshold - :type rate_limit_threshold: int - :param match_conditions: Required. List of match conditions - :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition1] - :param action: Required. Type of Actions. Possible values include: - 'Allow', 'Block', 'Log' - :type action: str or ~azure.mgmt.frontdoor.models.Action - :param transforms: List of transforms - :type transforms: list[str or ~azure.mgmt.frontdoor.models.Transform] - """ - - _validation = { - 'name': {'max_length': 128}, - 'etag': {'readonly': True}, - 'priority': {'required': True}, - 'rule_type': {'required': True}, - 'match_conditions': {'required': True}, - 'action': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'int'}, - 'rule_type': {'key': 'ruleType', 'type': 'str'}, - 'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'}, - 'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'}, - 'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition1]'}, - 'action': {'key': 'action', 'type': 'str'}, - 'transforms': {'key': 'transforms', 'type': '[str]'}, - } - - def __init__(self, *, priority: int, rule_type, match_conditions, action, name: str=None, rate_limit_duration_in_minutes: int=None, rate_limit_threshold: int=None, transforms=None, **kwargs) -> None: - super(CustomRule, self).__init__(**kwargs) - self.name = name - self.etag = None - self.priority = priority - self.rule_type = rule_type - self.rate_limit_duration_in_minutes = rate_limit_duration_in_minutes - self.rate_limit_threshold = rate_limit_threshold - self.match_conditions = match_conditions - self.action = action - self.transforms = transforms diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules.py deleted file mode 100644 index 07a8252d1e11..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomRules(Model): - """Defines contents of custom rules. - - :param rules: List of rules - :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] - """ - - _attribute_map = { - 'rules': {'key': 'rules', 'type': '[CustomRule]'}, - } - - def __init__(self, **kwargs): - super(CustomRules, self).__init__(**kwargs) - self.rules = kwargs.get('rules', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules_py3.py deleted file mode 100644 index ced7af11f141..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/custom_rules_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomRules(Model): - """Defines contents of custom rules. - - :param rules: List of rules - :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] - """ - - _attribute_map = { - 'rules': {'key': 'rules', 'type': '[CustomRule]'}, - } - - def __init__(self, *, rules=None, **kwargs) -> None: - super(CustomRules, self).__init__(**kwargs) - self.rules = rules diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error.py deleted file mode 100644 index 567bee542aee..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Error(Model): - """Error. - - :param code: - :type code: str - :param message: - :type message: str - :param target: - :type target: str - :param details: - :type details: list[~azure.mgmt.frontdoor.models.ErrorDetails] - :param inner_error: - :type inner_error: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetails]'}, - 'inner_error': {'key': 'innerError', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Error, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) - self.inner_error = kwargs.get('inner_error', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details.py deleted file mode 100644 index a8c4da6ba955..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetails(Model): - """ErrorDetails. - - :param code: - :type code: str - :param target: - :type target: str - :param message: - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.target = kwargs.get('target', None) - self.message = kwargs.get('message', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details_py3.py deleted file mode 100644 index d791f0895345..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_details_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ErrorDetails(Model): - """ErrorDetails. - - :param code: - :type code: str - :param target: - :type target: str - :param message: - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None: - super(ErrorDetails, self).__init__(**kwargs) - self.code = code - self.target = target - self.message = message diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_py3.py deleted file mode 100644 index 7b5bb62ce327..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Error(Model): - """Error. - - :param code: - :type code: str - :param message: - :type message: str - :param target: - :type target: str - :param details: - :type details: list[~azure.mgmt.frontdoor.models.ErrorDetails] - :param inner_error: - :type inner_error: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetails]'}, - 'inner_error': {'key': 'innerError', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, inner_error: str=None, **kwargs) -> None: - super(Error, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - self.inner_error = inner_error diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response.py deleted file mode 100644 index 6a4694c831b1..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Front Door service is not able to process the - incoming request. The reason is provided in the error message. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error message indicating why the operation failed. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.code = None - self.message = None - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response_py3.py deleted file mode 100644 index f1b2dcd4012b..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/error_response_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Front Door service is not able to process the - incoming request. The reason is provided in the error message. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error message indicating why the operation failed. - :vartype message: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.code = None - self.message = None - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py deleted file mode 100644 index 2893d3972dd0..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class FrontDoor(Resource): - """Front Door represents a collection of backend endpoints to route traffic to - along with rules that specify how traffic is sent there. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param friendly_name: A friendly name for the frontDoor - :type friendly_name: str - :param routing_rules: Routing rules associated with this Front Door. - :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param backend_pools: Backend pools available to routing rules. - :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] - :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status of the Front Door. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar provisioning_state: Provisioning state of the Front Door. - :vartype provisioning_state: str - :ivar cname: The host that each frontendEndpoint must CNAME to. - :vartype cname: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'cname': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'}, - 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, - 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, - 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, - 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'cname': {'key': 'properties.cname', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FrontDoor, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.routing_rules = kwargs.get('routing_rules', None) - self.load_balancing_settings = kwargs.get('load_balancing_settings', None) - self.health_probe_settings = kwargs.get('health_probe_settings', None) - self.backend_pools = kwargs.get('backend_pools', None) - self.frontend_endpoints = kwargs.get('frontend_endpoints', None) - self.enabled_state = kwargs.get('enabled_state', None) - self.resource_state = kwargs.get('resource_state', None) - self.provisioning_state = None - self.cname = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_paged.py deleted file mode 100644 index b7bf875fe8e9..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class FrontDoorPaged(Paged): - """ - A paging container for iterating over a list of :class:`FrontDoor ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FrontDoor]'} - } - - def __init__(self, *args, **kwargs): - - super(FrontDoorPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py deleted file mode 100644 index 1af837e68018..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class FrontDoor(Resource): - """Front Door represents a collection of backend endpoints to route traffic to - along with rules that specify how traffic is sent there. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param friendly_name: A friendly name for the frontDoor - :type friendly_name: str - :param routing_rules: Routing rules associated with this Front Door. - :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param backend_pools: Backend pools available to routing rules. - :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] - :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status of the Front Door. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar provisioning_state: Provisioning state of the Front Door. - :vartype provisioning_state: str - :ivar cname: The host that each frontendEndpoint must CNAME to. - :vartype cname: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'cname': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'}, - 'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'}, - 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, - 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, - 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, - 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'cname': {'key': 'properties.cname', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, enabled_state=None, resource_state=None, **kwargs) -> None: - super(FrontDoor, self).__init__(location=location, tags=tags, **kwargs) - self.friendly_name = friendly_name - self.routing_rules = routing_rules - self.load_balancing_settings = load_balancing_settings - self.health_probe_settings = health_probe_settings - self.backend_pools = backend_pools - self.frontend_endpoints = frontend_endpoints - self.enabled_state = enabled_state - self.resource_state = resource_state - self.provisioning_state = None - self.cname = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py deleted file mode 100644 index 9411f5c42c12..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontDoorUpdateParameters(Model): - """The properties needed to update a Front Door. - - :param friendly_name: A friendly name for the frontDoor - :type friendly_name: str - :param routing_rules: Routing rules associated with this Front Door. - :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param backend_pools: Backend pools available to routing rules. - :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] - :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, - 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, - 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, - 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, - 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FrontDoorUpdateParameters, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.routing_rules = kwargs.get('routing_rules', None) - self.load_balancing_settings = kwargs.get('load_balancing_settings', None) - self.health_probe_settings = kwargs.get('health_probe_settings', None) - self.backend_pools = kwargs.get('backend_pools', None) - self.frontend_endpoints = kwargs.get('frontend_endpoints', None) - self.enabled_state = kwargs.get('enabled_state', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py deleted file mode 100644 index 127259641e8c..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontDoorUpdateParameters(Model): - """The properties needed to update a Front Door. - - :param friendly_name: A friendly name for the frontDoor - :type friendly_name: str - :param routing_rules: Routing rules associated with this Front Door. - :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param backend_pools: Backend pools available to routing rules. - :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] - :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, - 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, - 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, - 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, - 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - } - - def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, enabled_state=None, **kwargs) -> None: - super(FrontDoorUpdateParameters, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.routing_rules = routing_rules - self.load_balancing_settings = load_balancing_settings - self.health_probe_settings = health_probe_settings - self.backend_pools = backend_pools - self.frontend_endpoints = frontend_endpoints - self.enabled_state = enabled_state diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint.py deleted file mode 100644 index 09e5af405c3e..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class FrontendEndpoint(SubResource): - """A frontend endpoint used for routing. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. - :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' - :type session_affinity_enabled_state: str or - ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. - :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) - :type web_application_firewall_policy_link: - ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar custom_https_provisioning_state: Provisioning status of Custom Https - of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', - 'Disabling', 'Disabled', 'Failed' - :vartype custom_https_provisioning_state: str or - ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState - :ivar custom_https_provisioning_substate: Provisioning substate shows the - progress of custom HTTPS enabling/disabling process step by step. Possible - values include: 'SubmittingDomainControlValidationRequest', - 'PendingDomainControlValidationREquestApproval', - 'DomainControlValidationRequestApproved', - 'DomainControlValidationRequestRejected', - 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - 'CertificateDeleted' - :vartype custom_https_provisioning_substate: str or - ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate - :ivar custom_https_configuration: The configuration specifying how to - enable HTTPS - :vartype custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'custom_https_provisioning_state': {'readonly': True}, - 'custom_https_provisioning_substate': {'readonly': True}, - 'custom_https_configuration': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'host_name': {'key': 'properties.hostName', 'type': 'str'}, - 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, - 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, - 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, - 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, - 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FrontendEndpoint, self).__init__(**kwargs) - self.host_name = kwargs.get('host_name', None) - self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) - self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None) - self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) - self.resource_state = kwargs.get('resource_state', None) - self.custom_https_provisioning_state = None - self.custom_https_provisioning_substate = None - self.custom_https_configuration = None - self.name = kwargs.get('name', None) - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_paged.py deleted file mode 100644 index ed34b14ca85d..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class FrontendEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`FrontendEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FrontendEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(FrontendEndpointPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_py3.py deleted file mode 100644 index 9bbb6d2a7fcd..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_py3.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class FrontendEndpoint(SubResource): - """A frontend endpoint used for routing. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. - :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' - :type session_affinity_enabled_state: str or - ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. - :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) - :type web_application_firewall_policy_link: - ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar custom_https_provisioning_state: Provisioning status of Custom Https - of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', - 'Disabling', 'Disabled', 'Failed' - :vartype custom_https_provisioning_state: str or - ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState - :ivar custom_https_provisioning_substate: Provisioning substate shows the - progress of custom HTTPS enabling/disabling process step by step. Possible - values include: 'SubmittingDomainControlValidationRequest', - 'PendingDomainControlValidationREquestApproval', - 'DomainControlValidationRequestApproved', - 'DomainControlValidationRequestRejected', - 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - 'CertificateDeleted' - :vartype custom_https_provisioning_substate: str or - ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate - :ivar custom_https_configuration: The configuration specifying how to - enable HTTPS - :vartype custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'custom_https_provisioning_state': {'readonly': True}, - 'custom_https_provisioning_substate': {'readonly': True}, - 'custom_https_configuration': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'host_name': {'key': 'properties.hostName', 'type': 'str'}, - 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, - 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, - 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, - 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, - 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, resource_state=None, name: str=None, **kwargs) -> None: - super(FrontendEndpoint, self).__init__(id=id, **kwargs) - self.host_name = host_name - self.session_affinity_enabled_state = session_affinity_enabled_state - self.session_affinity_ttl_seconds = session_affinity_ttl_seconds - self.web_application_firewall_policy_link = web_application_firewall_policy_link - self.resource_state = resource_state - self.custom_https_provisioning_state = None - self.custom_https_provisioning_substate = None - self.custom_https_configuration = None - self.name = name - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters.py deleted file mode 100644 index e1ac88018f11..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontendEndpointUpdateParameters(Model): - """Frontend endpoint used in routing rule. - - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. - :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' - :type session_affinity_enabled_state: str or - ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. - :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) - :type web_application_firewall_policy_link: - ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - """ - - _attribute_map = { - 'host_name': {'key': 'hostName', 'type': 'str'}, - 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, - 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, - 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, - } - - def __init__(self, **kwargs): - super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) - self.host_name = kwargs.get('host_name', None) - self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) - self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None) - self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_py3.py deleted file mode 100644 index 48e1c1c132d8..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontendEndpointUpdateParameters(Model): - """Frontend endpoint used in routing rule. - - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. - :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' - :type session_affinity_enabled_state: str or - ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. - :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) - :type web_application_firewall_policy_link: - ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - """ - - _attribute_map = { - 'host_name': {'key': 'hostName', 'type': 'str'}, - 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, - 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, - 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, - } - - def __init__(self, *, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, **kwargs) -> None: - super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) - self.host_name = host_name - self.session_affinity_enabled_state = session_affinity_enabled_state - self.session_affinity_ttl_seconds = session_affinity_ttl_seconds - self.web_application_firewall_policy_link = web_application_firewall_policy_link diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link.py deleted file mode 100644 index 23847506919a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): - """Defines the Web Application Firewall policy for each host (if applicable). - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3.py deleted file mode 100644 index ae132742e144..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): - """Defines the Web Application Firewall policy for each host (if applicable). - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) - self.id = id diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model.py deleted file mode 100644 index 693eb0cf1f40..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class HealthProbeSettingsModel(SubResource): - """Load balancing settings for a backend pool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocol': {'key': 'properties.protocol', 'type': 'str'}, - 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(HealthProbeSettingsModel, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.protocol = kwargs.get('protocol', None) - self.interval_in_seconds = kwargs.get('interval_in_seconds', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_paged.py deleted file mode 100644 index 8d368f07bcd9..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class HealthProbeSettingsModelPaged(Paged): - """ - A paging container for iterating over a list of :class:`HealthProbeSettingsModel ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[HealthProbeSettingsModel]'} - } - - def __init__(self, *args, **kwargs): - - super(HealthProbeSettingsModelPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_py3.py deleted file mode 100644 index ef1d1f5749b3..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_model_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class HealthProbeSettingsModel(SubResource): - """Load balancing settings for a backend pool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'path': {'key': 'properties.path', 'type': 'str'}, - 'protocol': {'key': 'properties.protocol', 'type': 'str'}, - 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, path: str=None, protocol=None, interval_in_seconds: int=None, resource_state=None, name: str=None, **kwargs) -> None: - super(HealthProbeSettingsModel, self).__init__(id=id, **kwargs) - self.path = path - self.protocol = protocol - self.interval_in_seconds = interval_in_seconds - self.resource_state = resource_state - self.name = name - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters.py deleted file mode 100644 index a9bad070a4a2..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HealthProbeSettingsUpdateParameters(Model): - """L7 health probe settings for a backend pool. - - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.protocol = kwargs.get('protocol', None) - self.interval_in_seconds = kwargs.get('interval_in_seconds', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters_py3.py deleted file mode 100644 index 21eeab0350aa..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/health_probe_settings_update_parameters_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HealthProbeSettingsUpdateParameters(Model): - """L7 health probe settings for a backend pool. - - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, - } - - def __init__(self, *, path: str=None, protocol=None, interval_in_seconds: int=None, **kwargs) -> None: - super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) - self.path = path - self.protocol = protocol - self.interval_in_seconds = interval_in_seconds diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault.py deleted file mode 100644 index 2b16e73e4ff7..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KeyVaultCertificateSourceParametersVault(Model): - """The Key Vault containing the SSL certificate. - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault_py3.py deleted file mode 100644 index d0fe4d0d8e83..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/key_vault_certificate_source_parameters_vault_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class KeyVaultCertificateSourceParametersVault(Model): - """The Key Vault containing the SSL certificate. - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) - self.id = id diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model.py deleted file mode 100644 index e0c8c97b65f8..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class LoadBalancingSettingsModel(SubResource): - """Load balancing settings for a backend pool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, - 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, - 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LoadBalancingSettingsModel, self).__init__(**kwargs) - self.sample_size = kwargs.get('sample_size', None) - self.successful_samples_required = kwargs.get('successful_samples_required', None) - self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_paged.py deleted file mode 100644 index 20d94f0be273..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LoadBalancingSettingsModelPaged(Paged): - """ - A paging container for iterating over a list of :class:`LoadBalancingSettingsModel ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[LoadBalancingSettingsModel]'} - } - - def __init__(self, *args, **kwargs): - - super(LoadBalancingSettingsModelPaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_py3.py deleted file mode 100644 index 2649e0c4f5da..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_model_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class LoadBalancingSettingsModel(SubResource): - """Load balancing settings for a backend pool. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, - 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, - 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, resource_state=None, name: str=None, **kwargs) -> None: - super(LoadBalancingSettingsModel, self).__init__(id=id, **kwargs) - self.sample_size = sample_size - self.successful_samples_required = successful_samples_required - self.additional_latency_milliseconds = additional_latency_milliseconds - self.resource_state = resource_state - self.name = name - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters.py deleted file mode 100644 index dd564be1172a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LoadBalancingSettingsUpdateParameters(Model): - """Round-Robin load balancing settings for a backend pool. - - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - """ - - _attribute_map = { - 'sample_size': {'key': 'sampleSize', 'type': 'int'}, - 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, - 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) - self.sample_size = kwargs.get('sample_size', None) - self.successful_samples_required = kwargs.get('successful_samples_required', None) - self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters_py3.py deleted file mode 100644 index 358090b0816c..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/load_balancing_settings_update_parameters_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LoadBalancingSettingsUpdateParameters(Model): - """Round-Robin load balancing settings for a backend pool. - - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - """ - - _attribute_map = { - 'sample_size': {'key': 'sampleSize', 'type': 'int'}, - 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, - 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, - } - - def __init__(self, *, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, **kwargs) -> None: - super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) - self.sample_size = sample_size - self.successful_samples_required = successful_samples_required - self.additional_latency_milliseconds = additional_latency_milliseconds diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set.py deleted file mode 100644 index 58c23333357c..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagedRuleSet(Model): - """Base class for all types of ManagedRuleSet. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureManagedRuleSet - - All required parameters must be populated in order to send to Azure. - - :param priority: Describes priority of the rule - :type priority: int - :param version: defines version of the rule set - :type version: int - :param rule_set_type: Required. Constant filled by server. - :type rule_set_type: str - """ - - _validation = { - 'rule_set_type': {'required': True}, - } - - _attribute_map = { - 'priority': {'key': 'priority', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'int'}, - 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, - } - - _subtype_map = { - 'rule_set_type': {'AzureManagedRuleSet': 'AzureManagedRuleSet'} - } - - def __init__(self, **kwargs): - super(ManagedRuleSet, self).__init__(**kwargs) - self.priority = kwargs.get('priority', None) - self.version = kwargs.get('version', None) - self.rule_set_type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set_py3.py deleted file mode 100644 index 423d1317f6ca..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_set_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagedRuleSet(Model): - """Base class for all types of ManagedRuleSet. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureManagedRuleSet - - All required parameters must be populated in order to send to Azure. - - :param priority: Describes priority of the rule - :type priority: int - :param version: defines version of the rule set - :type version: int - :param rule_set_type: Required. Constant filled by server. - :type rule_set_type: str - """ - - _validation = { - 'rule_set_type': {'required': True}, - } - - _attribute_map = { - 'priority': {'key': 'priority', 'type': 'int'}, - 'version': {'key': 'version', 'type': 'int'}, - 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, - } - - _subtype_map = { - 'rule_set_type': {'AzureManagedRuleSet': 'AzureManagedRuleSet'} - } - - def __init__(self, *, priority: int=None, version: int=None, **kwargs) -> None: - super(ManagedRuleSet, self).__init__(**kwargs) - self.priority = priority - self.version = version - self.rule_set_type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets.py deleted file mode 100644 index 37e70e26f118..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagedRuleSets(Model): - """Defines ManagedRuleSets - array of managedRuleSet. - - :param rule_sets: List of rules - :type rule_sets: list[~azure.mgmt.frontdoor.models.ManagedRuleSet] - """ - - _attribute_map = { - 'rule_sets': {'key': 'ruleSets', 'type': '[ManagedRuleSet]'}, - } - - def __init__(self, **kwargs): - super(ManagedRuleSets, self).__init__(**kwargs) - self.rule_sets = kwargs.get('rule_sets', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets_py3.py deleted file mode 100644 index 48f15606ed69..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/managed_rule_sets_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagedRuleSets(Model): - """Defines ManagedRuleSets - array of managedRuleSet. - - :param rule_sets: List of rules - :type rule_sets: list[~azure.mgmt.frontdoor.models.ManagedRuleSet] - """ - - _attribute_map = { - 'rule_sets': {'key': 'ruleSets', 'type': '[ManagedRuleSet]'}, - } - - def __init__(self, *, rule_sets=None, **kwargs) -> None: - super(ManagedRuleSets, self).__init__(**kwargs) - self.rule_sets = rule_sets diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1.py deleted file mode 100644 index 6667f15c68c9..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MatchCondition1(Model): - """Define match conditions. - - All required parameters must be populated in order to send to Azure. - - :param match_variable: Required. Match Variable. Possible values include: - 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', - 'RequestHeader', 'RequestBody' - :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchCondition - :param selector: Name of selector in RequestHeader or RequestBody to be - matched - :type selector: str - :param operator: Required. Describes operator to be matched. Possible - values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', - 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', - 'BeginsWith', 'EndsWith' - :type operator: str or ~azure.mgmt.frontdoor.models.Operator - :param negate_condition: Describes if this is negate condition or not - :type negate_condition: bool - :param match_value: Required. Match value - :type match_value: list[str] - """ - - _validation = { - 'match_variable': {'required': True}, - 'operator': {'required': True}, - 'match_value': {'required': True}, - } - - _attribute_map = { - 'match_variable': {'key': 'matchVariable', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'negate_condition': {'key': 'negateCondition', 'type': 'bool'}, - 'match_value': {'key': 'matchValue', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(MatchCondition1, self).__init__(**kwargs) - self.match_variable = kwargs.get('match_variable', None) - self.selector = kwargs.get('selector', None) - self.operator = kwargs.get('operator', None) - self.negate_condition = kwargs.get('negate_condition', None) - self.match_value = kwargs.get('match_value', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1_py3.py deleted file mode 100644 index 827eae5fc708..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/match_condition1_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class MatchCondition1(Model): - """Define match conditions. - - All required parameters must be populated in order to send to Azure. - - :param match_variable: Required. Match Variable. Possible values include: - 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', - 'RequestHeader', 'RequestBody' - :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchCondition - :param selector: Name of selector in RequestHeader or RequestBody to be - matched - :type selector: str - :param operator: Required. Describes operator to be matched. Possible - values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', - 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', - 'BeginsWith', 'EndsWith' - :type operator: str or ~azure.mgmt.frontdoor.models.Operator - :param negate_condition: Describes if this is negate condition or not - :type negate_condition: bool - :param match_value: Required. Match value - :type match_value: list[str] - """ - - _validation = { - 'match_variable': {'required': True}, - 'operator': {'required': True}, - 'match_value': {'required': True}, - } - - _attribute_map = { - 'match_variable': {'key': 'matchVariable', 'type': 'str'}, - 'selector': {'key': 'selector', 'type': 'str'}, - 'operator': {'key': 'operator', 'type': 'str'}, - 'negate_condition': {'key': 'negateCondition', 'type': 'bool'}, - 'match_value': {'key': 'matchValue', 'type': '[str]'}, - } - - def __init__(self, *, match_variable, operator, match_value, selector: str=None, negate_condition: bool=None, **kwargs) -> None: - super(MatchCondition1, self).__init__(**kwargs) - self.match_variable = match_variable - self.selector = selector - self.operator = operator - self.negate_condition = negate_condition - self.match_value = match_value diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings.py deleted file mode 100644 index 3046acd2c7ac..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySettings(Model): - """Defines contents of a web application firewall global configuration. - - :param enabled_state: describes if the policy is in enabled state or - disabled state. Possible values include: 'Disabled', 'Enabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.EnabledState - :param mode: Describes if it is in detection mode or prevention mode at - policy level. Possible values include: 'Prevention', 'Detection' - :type mode: str or ~azure.mgmt.frontdoor.models.Mode - """ - - _attribute_map = { - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - 'mode': {'key': 'mode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySettings, self).__init__(**kwargs) - self.enabled_state = kwargs.get('enabled_state', None) - self.mode = kwargs.get('mode', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings_py3.py deleted file mode 100644 index 95244a4a4274..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/policy_settings_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySettings(Model): - """Defines contents of a web application firewall global configuration. - - :param enabled_state: describes if the policy is in enabled state or - disabled state. Possible values include: 'Disabled', 'Enabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.EnabledState - :param mode: Describes if it is in detection mode or prevention mode at - policy level. Possible values include: 'Prevention', 'Detection' - :type mode: str or ~azure.mgmt.frontdoor.models.Mode - """ - - _attribute_map = { - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - 'mode': {'key': 'mode', 'type': 'str'}, - } - - def __init__(self, *, enabled_state=None, mode=None, **kwargs) -> None: - super(PolicySettings, self).__init__(**kwargs) - self.enabled_state = enabled_state - self.mode = mode diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters.py deleted file mode 100644 index 4731664fed6a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PurgeParameters(Model): - """Parameters required for content purge. - - All required parameters must be populated in order to send to Azure. - - :param content_paths: Required. The path to the content to be purged. Can - describe a file path or a wild card directory. - :type content_paths: list[str] - """ - - _validation = { - 'content_paths': {'required': True}, - } - - _attribute_map = { - 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(PurgeParameters, self).__init__(**kwargs) - self.content_paths = kwargs.get('content_paths', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters_py3.py deleted file mode 100644 index 31cdefb06e5b..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/purge_parameters_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PurgeParameters(Model): - """Parameters required for content purge. - - All required parameters must be populated in order to send to Azure. - - :param content_paths: Required. The path to the content to be purged. Can - describe a file path or a wild card directory. - :type content_paths: list[str] - """ - - _validation = { - 'content_paths': {'required': True}, - } - - _attribute_map = { - 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, - } - - def __init__(self, *, content_paths, **kwargs) -> None: - super(PurgeParameters, self).__init__(**kwargs) - self.content_paths = content_paths diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource.py deleted file mode 100644 index 17bd2e2618cd..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Common resource representation. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource_py3.py deleted file mode 100644 index aa539104c2f4..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Common resource representation. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py deleted file mode 100644 index 90e6d8aa71fd..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class RoutingRule(SubResource): - """A routing rule represents a specification for traffic to treat and where to - send it, along with health probe information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param frontend_endpoints: Frontend endpoints associated with this rule - :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] - :param patterns_to_match: The route patterns of the rule. - :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, - 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, - 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'properties.customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'properties.cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'properties.backendPool', 'type': 'SubResource'}, - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RoutingRule, self).__init__(**kwargs) - self.frontend_endpoints = kwargs.get('frontend_endpoints', None) - self.accepted_protocols = kwargs.get('accepted_protocols', None) - self.patterns_to_match = kwargs.get('patterns_to_match', None) - self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) - self.forwarding_protocol = kwargs.get('forwarding_protocol', None) - self.cache_configuration = kwargs.get('cache_configuration', None) - self.backend_pool = kwargs.get('backend_pool', None) - self.enabled_state = kwargs.get('enabled_state', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_paged.py deleted file mode 100644 index f45f2a926a5d..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class RoutingRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`RoutingRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RoutingRule]'} - } - - def __init__(self, *args, **kwargs): - - super(RoutingRulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py deleted file mode 100644 index 75ab2b98b1ce..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class RoutingRule(SubResource): - """A routing rule represents a specification for traffic to treat and where to - send it, along with health probe information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :param frontend_endpoints: Frontend endpoints associated with this rule - :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] - :param patterns_to_match: The route patterns of the rule. - :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, - 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, - 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'properties.customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'properties.cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'properties.backendPool', 'type': 'SubResource'}, - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, enabled_state=None, resource_state=None, name: str=None, **kwargs) -> None: - super(RoutingRule, self).__init__(id=id, **kwargs) - self.frontend_endpoints = frontend_endpoints - self.accepted_protocols = accepted_protocols - self.patterns_to_match = patterns_to_match - self.custom_forwarding_path = custom_forwarding_path - self.forwarding_protocol = forwarding_protocol - self.cache_configuration = cache_configuration - self.backend_pool = backend_pool - self.enabled_state = enabled_state - self.resource_state = resource_state - self.name = name - self.type = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py deleted file mode 100644 index 53a05bba5023..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RoutingRuleUpdateParameters(Model): - """Routing rules to apply to an endpoint. - - :param frontend_endpoints: Frontend endpoints associated with this rule - :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] - :param patterns_to_match: The route patterns of the rule. - :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - """ - - _attribute_map = { - 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, - 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, - 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RoutingRuleUpdateParameters, self).__init__(**kwargs) - self.frontend_endpoints = kwargs.get('frontend_endpoints', None) - self.accepted_protocols = kwargs.get('accepted_protocols', None) - self.patterns_to_match = kwargs.get('patterns_to_match', None) - self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) - self.forwarding_protocol = kwargs.get('forwarding_protocol', None) - self.cache_configuration = kwargs.get('cache_configuration', None) - self.backend_pool = kwargs.get('backend_pool', None) - self.enabled_state = kwargs.get('enabled_state', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py deleted file mode 100644 index 473dfd8888c9..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RoutingRuleUpdateParameters(Model): - """Routing rules to apply to an endpoint. - - :param frontend_endpoints: Frontend endpoints associated with this rule - :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] - :param patterns_to_match: The route patterns of the rule. - :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - """ - - _attribute_map = { - 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, - 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, - 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, - 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - } - - def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, enabled_state=None, **kwargs) -> None: - super(RoutingRuleUpdateParameters, self).__init__(**kwargs) - self.frontend_endpoints = frontend_endpoints - self.accepted_protocols = accepted_protocols - self.patterns_to_match = patterns_to_match - self.custom_forwarding_path = custom_forwarding_path - self.forwarding_protocol = forwarding_protocol - self.cache_configuration = cache_configuration - self.backend_pool = backend_pool - self.enabled_state = enabled_state diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource.py deleted file mode 100644 index 6ab81f55f21b..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Reference to another subresource. - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource_py3.py deleted file mode 100644 index 8f4c4c816061..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Reference to another subresource. - - :param id: Resource ID. - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object.py deleted file mode 100644 index 2966ec220f94..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagsObject(Model): - """Tags object for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(TagsObject, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object_py3.py deleted file mode 100644 index 8be0bb4a15d7..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/tags_object_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagsObject(Model): - """Tags object for patch operations. - - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, tags=None, **kwargs) -> None: - super(TagsObject, self).__init__(**kwargs) - self.tags = tags diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input.py deleted file mode 100644 index 5ccf7293966d..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateCustomDomainInput(Model): - """Input of the custom domain to be validated for DNS mapping. - - All required parameters must be populated in order to send to Azure. - - :param host_name: Required. The host name of the custom domain. Must be a - domain name. - :type host_name: str - """ - - _validation = { - 'host_name': {'required': True}, - } - - _attribute_map = { - 'host_name': {'key': 'hostName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ValidateCustomDomainInput, self).__init__(**kwargs) - self.host_name = kwargs.get('host_name', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input_py3.py deleted file mode 100644 index ad915548dba8..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_input_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateCustomDomainInput(Model): - """Input of the custom domain to be validated for DNS mapping. - - All required parameters must be populated in order to send to Azure. - - :param host_name: Required. The host name of the custom domain. Must be a - domain name. - :type host_name: str - """ - - _validation = { - 'host_name': {'required': True}, - } - - _attribute_map = { - 'host_name': {'key': 'hostName', 'type': 'str'}, - } - - def __init__(self, *, host_name: str, **kwargs) -> None: - super(ValidateCustomDomainInput, self).__init__(**kwargs) - self.host_name = host_name diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output.py deleted file mode 100644 index d330e0f93521..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateCustomDomainOutput(Model): - """Output of custom domain validation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar custom_domain_validated: Indicates whether the custom domain is - valid or not. - :vartype custom_domain_validated: bool - :ivar reason: The reason why the custom domain is not valid. - :vartype reason: str - :ivar message: Error message describing why the custom domain is not - valid. - :vartype message: str - """ - - _validation = { - 'custom_domain_validated': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'custom_domain_validated': {'key': 'customDomainValidated', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ValidateCustomDomainOutput, self).__init__(**kwargs) - self.custom_domain_validated = None - self.reason = None - self.message = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output_py3.py deleted file mode 100644 index a3d2b9339b9b..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/validate_custom_domain_output_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ValidateCustomDomainOutput(Model): - """Output of custom domain validation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar custom_domain_validated: Indicates whether the custom domain is - valid or not. - :vartype custom_domain_validated: bool - :ivar reason: The reason why the custom domain is not valid. - :vartype reason: str - :ivar message: Error message describing why the custom domain is not - valid. - :vartype message: str - """ - - _validation = { - 'custom_domain_validated': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'custom_domain_validated': {'key': 'customDomainValidated', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ValidateCustomDomainOutput, self).__init__(**kwargs) - self.custom_domain_validated = None - self.reason = None - self.message = None diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1.py deleted file mode 100644 index 6ed0220ac712..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class WebApplicationFirewallPolicy1(Resource): - """Defines web application firewall policy. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param policy_settings: Describes policySettings for policy - :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings - :param custom_rules: Describes custom rules inside the policy - :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRules - :param managed_rules: Describes managed rules inside the policy - :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSets - :ivar provisioning_state: Provisioning state of the - WebApplicationFirewallPolicy. - :vartype provisioning_state: str - :ivar resource_state: Resource status of the policy. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. - :type etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, - 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRules'}, - 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSets'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(WebApplicationFirewallPolicy1, self).__init__(**kwargs) - self.policy_settings = kwargs.get('policy_settings', None) - self.custom_rules = kwargs.get('custom_rules', None) - self.managed_rules = kwargs.get('managed_rules', None) - self.provisioning_state = None - self.resource_state = None - self.etag = kwargs.get('etag', None) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_paged.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_paged.py deleted file mode 100644 index b3fc5baabd07..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class WebApplicationFirewallPolicy1Paged(Paged): - """ - A paging container for iterating over a list of :class:`WebApplicationFirewallPolicy1 ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WebApplicationFirewallPolicy1]'} - } - - def __init__(self, *args, **kwargs): - - super(WebApplicationFirewallPolicy1Paged, self).__init__(*args, **kwargs) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_py3.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_py3.py deleted file mode 100644 index 5920b8383ec2..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/web_application_firewall_policy1_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class WebApplicationFirewallPolicy1(Resource): - """Defines web application firewall policy. - - 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 - :ivar type: Resource type. - :vartype type: str - :param location: Resource location. - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param policy_settings: Describes policySettings for policy - :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings - :param custom_rules: Describes custom rules inside the policy - :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRules - :param managed_rules: Describes managed rules inside the policy - :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSets - :ivar provisioning_state: Provisioning state of the - WebApplicationFirewallPolicy. - :vartype provisioning_state: str - :ivar resource_state: Resource status of the policy. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. - :type etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, - 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRules'}, - 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSets'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, policy_settings=None, custom_rules=None, managed_rules=None, etag: str=None, **kwargs) -> None: - super(WebApplicationFirewallPolicy1, self).__init__(location=location, tags=tags, **kwargs) - self.policy_settings = policy_settings - self.custom_rules = custom_rules - self.managed_rules = managed_rules - self.provisioning_state = None - self.resource_state = None - self.etag = etag diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/__init__.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/__init__.py index 8f1ba5d477fb..d51a0d3f0f2c 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/__init__.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/__init__.py @@ -9,22 +9,24 @@ # regenerated. # -------------------------------------------------------------------------- -from .front_doors_operations import FrontDoorsOperations -from .routing_rules_operations import RoutingRulesOperations -from .health_probe_settings_operations import HealthProbeSettingsOperations -from .load_balancing_settings_operations import LoadBalancingSettingsOperations -from .backend_pools_operations import BackendPoolsOperations -from .frontend_endpoints_operations import FrontendEndpointsOperations -from .endpoints_operations import EndpointsOperations -from .policies_operations import PoliciesOperations +from ._profiles_operations import ProfilesOperations +from ._preconfigured_endpoints_operations import PreconfiguredEndpointsOperations +from ._experiments_operations import ExperimentsOperations +from ._front_doors_operations import FrontDoorsOperations +from ._frontend_endpoints_operations import FrontendEndpointsOperations +from ._endpoints_operations import EndpointsOperations +from ._policies_operations import PoliciesOperations +from ._managed_rule_sets_operations import ManagedRuleSetsOperations +from ._front_door_management_client_operations import FrontDoorManagementClientOperationsMixin __all__ = [ + 'ProfilesOperations', + 'PreconfiguredEndpointsOperations', + 'ExperimentsOperations', 'FrontDoorsOperations', - 'RoutingRulesOperations', - 'HealthProbeSettingsOperations', - 'LoadBalancingSettingsOperations', - 'BackendPoolsOperations', 'FrontendEndpointsOperations', 'EndpointsOperations', 'PoliciesOperations', + 'ManagedRuleSetsOperations', + 'FrontDoorManagementClientOperationsMixin', ] diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py similarity index 95% rename from sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py rename to sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py index 16b6fe5722b8..54445455a681 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_endpoints_operations.py @@ -20,11 +20,13 @@ class EndpointsOperations(object): """EndpointsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-05-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-05-01" self.config = config diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py new file mode 100644 index 000000000000..4460fe0f4392 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_experiments_operations.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ExperimentsOperations(object): + """ExperimentsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2019-11-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01" + + self.config = config + + def list_by_profile( + self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + """Gets a list of Experiments. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_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 Experiment + :rtype: + ~azure.mgmt.frontdoor.models.ExperimentPaged[~azure.mgmt.frontdoor.models.Experiment] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_profile.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + 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.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ExperimentPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_management_client_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_management_client_operations.py new file mode 100644 index 000000000000..9ae45d057405 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_door_management_client_operations.py @@ -0,0 +1,1076 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling +from .. import models +import uuid + + +class FrontDoorManagementClientOperationsMixin(object): + + def get_network_experiment_profiles_by_profile_name( + self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + """Gets an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_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: Profile or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.Profile or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + api_version = "2019-11-01" + + # Construct URL + url = self.get_network_experiment_profiles_by_profile_name.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", 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.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Profile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_network_experiment_profiles_by_profile_name.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} + + + def _create_or_update_network_experiment_profiles_initial( + self, profile_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2019-11-01" + + # Construct URL + url = self.create_or_update_network_experiment_profiles.metadata['url'] + path_format_arguments = { + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'Profile') + + # Construct and send request + 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]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Profile', response) + if response.status_code == 201: + deserialized = self._deserialize('Profile', response) + if response.status_code == 202: + deserialized = self._deserialize('Profile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update_network_experiment_profiles( + self, profile_name, resource_group_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates an NetworkExperiment Profile. + + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param parameters: An Network Experiment Profile + :type parameters: ~azure.mgmt.frontdoor.models.Profile + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Profile or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Profile] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Profile]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_network_experiment_profiles_initial( + profile_name=profile_name, + resource_group_name=resource_group_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Profile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update_network_experiment_profiles.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} + + + def _update_network_experiment_profiles_by_profiles_name_initial( + self, resource_group_name, profile_name, enabled_state=None, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.ProfileUpdateModel(enabled_state=enabled_state, tags=tags) + + api_version = "2019-11-01" + + # Construct URL + url = self.update_network_experiment_profiles_by_profiles_name.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'ProfileUpdateModel') + + # Construct and send request + 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]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Profile', response) + if response.status_code == 202: + deserialized = self._deserialize('Profile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_network_experiment_profiles_by_profiles_name( + self, resource_group_name, profile_name, enabled_state=None, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates an NetworkExperimentProfiles by NetworkExperimentProfile name. + + Updates an NetworkExperimentProfiles. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param enabled_state: The enabled state of the Profile. Possible + values include: 'Enabled', 'Disabled' + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Profile or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Profile] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Profile]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._update_network_experiment_profiles_by_profiles_name_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + enabled_state=enabled_state, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Profile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_network_experiment_profiles_by_profiles_name.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} + + + def _delete_network_experiment_profiles_initial( + self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + api_version = "2019-11-01" + + # Construct URL + url = self.delete_network_experiment_profiles.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete_network_experiment_profiles( + self, resource_group_name, profile_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_network_experiment_profiles_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete_network_experiment_profiles.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} + + def get_experiments_by_experiment_name( + self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, **operation_config): + """Gets an Experiment by ExperimentName. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_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: Experiment or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.Experiment or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + api_version = "2019-11-01" + + # Construct URL + url = self.get_experiments_by_experiment_name.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", 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.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Experiment', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_experiments_by_experiment_name.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} + + + def _create_or_update_experiments_initial( + self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2019-11-01" + + # Construct URL + url = self.create_or_update_experiments.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'Experiment') + + # Construct and send request + 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]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Experiment', response) + if response.status_code == 201: + deserialized = self._deserialize('Experiment', response) + if response.status_code == 202: + deserialized = self._deserialize('Experiment', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update_experiments( + self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an Experiment. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_name: str + :param parameters: The Experiment resource + :type parameters: ~azure.mgmt.frontdoor.models.Experiment + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Experiment or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Experiment] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Experiment]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_experiments_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Experiment', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update_experiments.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} + + + def _update_experiments_by_experiment_name_initial( + self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2019-11-01" + + # Construct URL + url = self.update_experiments_by_experiment_name.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(parameters, 'ExperimentUpdateModel') + + # Construct and send request + 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]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Experiment', response) + if response.status_code == 202: + deserialized = self._deserialize('Experiment', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_experiments_by_experiment_name( + self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates an Experiment by Experiment id. + + Updates an Experiment. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_name: str + :param parameters: The Experiment Update Model + :type parameters: ~azure.mgmt.frontdoor.models.ExperimentUpdateModel + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Experiment or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Experiment] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Experiment]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._update_experiments_by_experiment_name_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Experiment', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_experiments_by_experiment_name.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} + + + def _delete_experiments_initial( + self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, **operation_config): + api_version = "2019-11-01" + + # Construct URL + url = self.delete_experiments.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete_experiments( + self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes an Experiment. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_experiments_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete_experiments.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} + + def get_latency_scorecards( + self, resource_group_name, profile_name, experiment_name, aggregation_interval, end_date_time_utc=None, country=None, custom_headers=None, raw=False, **operation_config): + """Gets a Latency Scorecard for a given Experiment. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_name: str + :param aggregation_interval: The aggregation interval of the Latency + Scorecard. Possible values include: 'Daily', 'Weekly', 'Monthly' + :type aggregation_interval: str or + ~azure.mgmt.frontdoor.models.LatencyScorecardAggregationInterval + :param end_date_time_utc: The end DateTime of the Latency Scorecard in + UTC + :type end_date_time_utc: str + :param country: The country associated with the Latency Scorecard. + Values are country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :type country: 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: LatencyScorecard or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.LatencyScorecard or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + api_version = "2019-11-01" + + # Construct URL + url = self.get_latency_scorecards.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if end_date_time_utc is not None: + query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'str') + if country is not None: + query_parameters['country'] = self._serialize.query("country", country, 'str') + query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, '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.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('LatencyScorecard', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_latency_scorecards.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard'} + + def get_timeseries( + self, resource_group_name, profile_name, experiment_name, start_date_time_utc, end_date_time_utc, aggregation_interval, timeseries_type, endpoint=None, country=None, custom_headers=None, raw=False, **operation_config): + """Gets a Timeseries for a given Experiment. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the + Experiment + :type experiment_name: str + :param start_date_time_utc: The start DateTime of the Timeseries in + UTC + :type start_date_time_utc: datetime + :param end_date_time_utc: The end DateTime of the Timeseries in UTC + :type end_date_time_utc: datetime + :param aggregation_interval: The aggregation interval of the + Timeseries. Possible values include: 'Hourly', 'Daily' + :type aggregation_interval: str or + ~azure.mgmt.frontdoor.models.TimeseriesAggregationInterval + :param timeseries_type: The type of Timeseries. Possible values + include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + :type timeseries_type: str or + ~azure.mgmt.frontdoor.models.TimeseriesType + :param endpoint: The specific endpoint + :type endpoint: str + :param country: The country associated with the Timeseries. Values are + country ISO codes as specified here- + https://www.iso.org/iso-3166-country-codes.html + :type country: 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: Timeseries or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.Timeseries or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + api_version = "2019-11-01" + + # Construct URL + url = self.get_timeseries.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['startDateTimeUTC'] = self._serialize.query("start_date_time_utc", start_date_time_utc, 'iso-8601') + query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'iso-8601') + query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, 'str') + query_parameters['timeseriesType'] = self._serialize.query("timeseries_type", timeseries_type, 'str') + if endpoint is not None: + query_parameters['endpoint'] = self._serialize.query("endpoint", endpoint, 'str') + if country is not None: + query_parameters['country'] = self._serialize.query("country", country, '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.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Timeseries', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_timeseries.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries'} + + def check_front_door_name_availability( + self, name, type, custom_headers=None, raw=False, **operation_config): + """Check the availability of a Front Door resource name. + + :param name: The resource name to validate. + :type name: str + :param type: The type of the resource whose name is to be validated. + Possible values include: 'Microsoft.Network/frontDoors', + 'Microsoft.Network/frontDoors/frontendEndpoints' + :type type: str or ~azure.mgmt.frontdoor.models.ResourceType + :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: CheckNameAvailabilityOutput or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) + + api_version = "2019-05-01" + + # Construct URL + url = self.check_front_door_name_availability.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('CheckNameAvailabilityOutput', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_front_door_name_availability.metadata = {'url': '/providers/Microsoft.Network/checkFrontDoorNameAvailability'} + + def check_front_door_name_availability_with_subscription( + self, name, type, custom_headers=None, raw=False, **operation_config): + """Check the availability of a Front Door subdomain. + + :param name: The resource name to validate. + :type name: str + :param type: The type of the resource whose name is to be validated. + Possible values include: 'Microsoft.Network/frontDoors', + 'Microsoft.Network/frontDoors/frontendEndpoints' + :type type: str or ~azure.mgmt.frontdoor.models.ResourceType + :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: CheckNameAvailabilityOutput or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) + + api_version = "2019-05-01" + + # Construct URL + url = self.check_front_door_name_availability_with_subscription.metadata['url'] + path_format_arguments = { + '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("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('CheckNameAvailabilityOutput', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_front_door_name_availability_with_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py similarity index 96% rename from sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py rename to sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py index 0e7070406164..c8023dfe4806 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_front_doors_operations.py @@ -20,11 +20,13 @@ class FrontDoorsOperations(object): """FrontDoorsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-05-01". """ models = models @@ -34,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-05-01" self.config = config @@ -53,8 +55,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -83,6 +84,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -91,12 +97,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'} @@ -120,8 +124,7 @@ def list_by_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -151,6 +154,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -159,12 +167,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'} @@ -222,7 +228,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FrontDoor', response) @@ -482,7 +487,6 @@ def validate_custom_domain( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ValidateCustomDomainOutput', response) diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py similarity index 71% rename from sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py rename to sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py index e7ddae7b45fe..73b8469f51ef 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_frontend_endpoints_operations.py @@ -17,14 +17,16 @@ from .. import models -class BackendPoolsOperations(object): - """BackendPoolsOperations operations. +class FrontendEndpointsOperations(object): + """FrontendEndpointsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-05-01". """ models = models @@ -34,13 +36,13 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-05-01" self.config = config def list_by_front_door( self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the Backend Pools within a Front Door. + """Lists all of the frontend endpoints within a Front Door. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -53,14 +55,13 @@ def list_by_front_door( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: An iterator like instance of BackendPool + :return: An iterator like instance of FrontendEndpoint :rtype: - ~azure.mgmt.frontdoor.models.BackendPoolPaged[~azure.mgmt.frontdoor.models.BackendPool] + ~azure.mgmt.frontdoor.models.FrontendEndpointPaged[~azure.mgmt.frontdoor.models.FrontendEndpoint] :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_front_door.metadata['url'] @@ -91,6 +92,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -99,19 +105,17 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.BackendPoolPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.BackendPoolPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FrontendEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools'} + list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'} def get( - self, resource_group_name, front_door_name, backend_pool_name, custom_headers=None, raw=False, **operation_config): - """Gets a Backend Pool with the specified Pool name within the specified + self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): + """Gets a Frontend endpoint with the specified name within the specified Front Door. :param resource_group_name: Name of the Resource group within the @@ -120,16 +124,16 @@ def get( :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param backend_pool_name: Name of the Backend Pool which is unique - within the Front Door. - :type backend_pool_name: str + :param frontend_endpoint_name: Name of the Frontend endpoint which is + unique within the Front Door. + :type frontend_endpoint_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: BackendPool or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.BackendPool or + :return: FrontendEndpoint or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.FrontendEndpoint or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorResponseException` @@ -140,7 +144,7 @@ def get( 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'backendPoolName': self._serialize.url("backend_pool_name", backend_pool_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') } url = self._client.format_url(url, **path_format_arguments) @@ -166,27 +170,26 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('BackendPool', response) + deserialized = self._deserialize('FrontendEndpoint', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} - def _create_or_update_initial( - self, resource_group_name, front_door_name, backend_pool_name, backend_pool_parameters, custom_headers=None, raw=False, **operation_config): + def _enable_https_initial( + self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.create_or_update.metadata['url'] + url = self.enable_https.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'backendPoolName': self._serialize.url("backend_pool_name", backend_pool_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') } url = self._client.format_url(url, **path_format_arguments) @@ -196,7 +199,6 @@ def _create_or_update_initial( # Construct headers header_parameters = {} - header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -206,34 +208,22 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(backend_pool_parameters, 'BackendPool') + body_content = self._serialize.body(custom_https_configuration, 'CustomHttpsConfiguration') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + request = self._client.post(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.ErrorResponseException(self._deserialize, response) - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('BackendPool', response) - if response.status_code == 201: - deserialized = self._deserialize('BackendPool', response) - if response.status_code == 202: - deserialized = self._deserialize('BackendPool', response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response = ClientRawResponse(None, response) return client_raw_response - return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, backend_pool_name, backend_pool_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new Backend Pool with the specified Pool name within the - specified Front Door. + def enable_https( + self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, polling=True, **operation_config): + """Enables a frontendEndpoint for HTTPS traffic. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -241,46 +231,40 @@ def create_or_update( :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param backend_pool_name: Name of the Backend Pool which is unique - within the Front Door. - :type backend_pool_name: str - :param backend_pool_parameters: Backend Pool properties needed to - create a new Pool. - :type backend_pool_parameters: - ~azure.mgmt.frontdoor.models.BackendPool + :param frontend_endpoint_name: Name of the Frontend endpoint which is + unique within the Front Door. + :type frontend_endpoint_name: str + :param custom_https_configuration: The configuration specifying how to + enable HTTPS + :type custom_https_configuration: + ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response :param polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns BackendPool or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.BackendPool] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.BackendPool]] + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] :raises: :class:`ErrorResponseException` """ - raw_result = self._create_or_update_initial( + raw_result = self._enable_https_initial( resource_group_name=resource_group_name, front_door_name=front_door_name, - backend_pool_name=backend_pool_name, - backend_pool_parameters=backend_pool_parameters, + frontend_endpoint_name=frontend_endpoint_name, + custom_https_configuration=custom_https_configuration, custom_headers=custom_headers, raw=True, **operation_config ) def get_long_running_output(response): - deserialized = self._deserialize('BackendPool', response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response = ClientRawResponse(None, response) return client_raw_response - return deserialized - lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) @@ -288,18 +272,18 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}'} + enable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} - def _delete_initial( - self, resource_group_name, front_door_name, backend_pool_name, custom_headers=None, raw=False, **operation_config): + def _disable_https_initial( + self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.delete.metadata['url'] + url = self.disable_https.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'backendPoolName': self._serialize.url("backend_pool_name", backend_pool_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') } url = self._client.format_url(url, **path_format_arguments) @@ -317,19 +301,19 @@ def _delete_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(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 [202, 204]: + if response.status_code not in [200, 202]: raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - def delete( - self, resource_group_name, front_door_name, backend_pool_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing Backend Pool with the specified parameters. + def disable_https( + self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Disables a frontendEndpoint for HTTPS traffic. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -337,9 +321,9 @@ def delete( :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param backend_pool_name: Name of the Backend Pool which is unique - within the Front Door. - :type backend_pool_name: str + :param frontend_endpoint_name: Name of the Frontend endpoint which is + unique within the Front Door. + :type frontend_endpoint_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -352,10 +336,10 @@ def delete( :raises: :class:`ErrorResponseException` """ - raw_result = self._delete_initial( + raw_result = self._disable_https_initial( resource_group_name=resource_group_name, front_door_name=front_door_name, - backend_pool_name=backend_pool_name, + frontend_endpoint_name=frontend_endpoint_name, custom_headers=custom_headers, raw=True, **operation_config @@ -373,4 +357,4 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}'} + disable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_managed_rule_sets_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_managed_rule_sets_operations.py new file mode 100644 index 000000000000..cf28d3b72414 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_managed_rule_sets_operations.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ManagedRuleSetsOperations(object): + """ManagedRuleSetsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2019-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all available managed rule sets. + + :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 ManagedRuleSetDefinition + :rtype: + ~azure.mgmt.frontdoor.models.ManagedRuleSetDefinitionPaged[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinition] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + '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.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ManagedRuleSetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/policies_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py similarity index 76% rename from sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/policies_operations.py rename to sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py index 228a22b5c995..d709da5a562a 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/policies_operations.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_policies_operations.py @@ -21,11 +21,13 @@ class PoliciesOperations(object): """PoliciesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-10-01". """ models = models @@ -35,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-10-01" self.config = config @@ -43,26 +45,26 @@ def list( self, resource_group_name, custom_headers=None, raw=False, **operation_config): """Lists all of the protection policies within a resource group. - :param resource_group_name: The name of the resource group. + :param resource_group_name: Name of the Resource group within the + Azure subscription. :type resource_group_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 WebApplicationFirewallPolicy1 + :return: An iterator like instance of WebApplicationFirewallPolicy :rtype: - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy1Paged[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy1] + ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicyPaged[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) @@ -87,6 +89,11 @@ def internal_paging(next_link=None, raw=False): # 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]: @@ -95,12 +102,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.WebApplicationFirewallPolicy1Paged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.WebApplicationFirewallPolicy1Paged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.WebApplicationFirewallPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies'} @@ -109,18 +114,18 @@ def get( self, resource_group_name, policy_name, custom_headers=None, raw=False, **operation_config): """Retrieve protection policy with specified name within a resource group. - :param resource_group_name: The name of the resource group. + :param resource_group_name: Name of the Resource group within the + Azure subscription. :type resource_group_name: str - :param policy_name: The name of the resource group. + :param policy_name: The name of the Web Application Firewall Policy. :type policy_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: WebApplicationFirewallPolicy1 or ClientRawResponse if - raw=true - :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy1 or + :return: WebApplicationFirewallPolicy or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy or ~msrest.pipeline.ClientRawResponse :raises: :class:`ErrorResponseException` @@ -128,7 +133,7 @@ def get( # Construct URL url = self.get.metadata['url'] path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -156,9 +161,8 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('WebApplicationFirewallPolicy1', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) @@ -167,34 +171,13 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} - def create_or_update( - self, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or update policy with specified rule set name within a resource - group. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param policy_name: The name of the resource group. - :type policy_name: str - :param parameters: Policy to be created. - :type parameters: - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy1 - :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: WebApplicationFirewallPolicy1 or ClientRawResponse if - raw=true - :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy1 or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ + def _create_or_update_initial( + self, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -216,27 +199,83 @@ def create_or_update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(parameters, 'WebApplicationFirewallPolicy1') + body_content = self._serialize.body(parameters, 'WebApplicationFirewallPolicy') # Construct and send request 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]: + if response.status_code not in [200, 201, 202]: raise models.ErrorResponseException(self._deserialize, response) deserialized = None if response.status_code == 200: - deserialized = self._deserialize('WebApplicationFirewallPolicy1', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', response) if response.status_code == 201: - deserialized = self._deserialize('WebApplicationFirewallPolicy1', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + if response.status_code == 202: + deserialized = self._deserialize('WebApplicationFirewallPolicy', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized + + def create_or_update( + self, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Create or update policy with specified rule set name within a resource + group. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param policy_name: The name of the Web Application Firewall Policy. + :type policy_name: str + :param parameters: Policy to be created. + :type parameters: + ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + WebApplicationFirewallPolicy or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + policy_name=policy_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} @@ -245,7 +284,7 @@ def _delete_initial( # Construct URL url = self.delete.metadata['url'] path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -281,9 +320,10 @@ def delete( self, resource_group_name, policy_name, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes Policy. - :param resource_group_name: The name of the resource group. + :param resource_group_name: Name of the Resource group within the + Azure subscription. :type resource_group_name: str - :param policy_name: The name of the resource group. + :param policy_name: The name of the Web Application Firewall Policy. :type policy_name: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_preconfigured_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_preconfigured_endpoints_operations.py new file mode 100644 index 000000000000..cff8cab32cc2 --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_preconfigured_endpoints_operations.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PreconfiguredEndpointsOperations(object): + """PreconfiguredEndpointsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2019-11-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01" + + self.config = config + + def list( + self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + """Gets a list of Preconfigured Endpoints. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant + and Partner + :type profile_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 PreconfiguredEndpoint + :rtype: + ~azure.mgmt.frontdoor.models.PreconfiguredEndpointPaged[~azure.mgmt.frontdoor.models.PreconfiguredEndpoint] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + 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.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.PreconfiguredEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_profiles_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_profiles_operations.py new file mode 100644 index 000000000000..30fea27fc64b --- /dev/null +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_profiles_operations.py @@ -0,0 +1,174 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ProfilesOperations(object): + """ProfilesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2019-11-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-11-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets a list of Network Experiment Profiles under a subscription. + + :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 Profile + :rtype: + ~azure.mgmt.frontdoor.models.ProfilePaged[~azure.mgmt.frontdoor.models.Profile] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + '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.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets a list of Network Experiment Profiles within a resource group + under a subscription. + + :param resource_group_name: Name of the Resource group within the + Azure subscription. + :type resource_group_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 Profile + :rtype: + ~azure.mgmt.frontdoor.models.ProfilePaged[~azure.mgmt.frontdoor.models.Profile] + :raises: + :class:`ErrorResponseException` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + } + 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.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py deleted file mode 100644 index 0e82bdf28f54..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class FrontendEndpointsOperations(object): - """FrontendEndpointsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-08-01" - - self.config = config - - def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the frontend endpoints within a Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_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 FrontendEndpoint - :rtype: - ~azure.mgmt.frontdoor.models.FrontendEndpointPaged[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_front_door.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') - } - 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) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.FrontendEndpointPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.FrontendEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'} - - def get( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): - """Gets a Frontend endpoint with the specified name within the specified - Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. - :type frontend_endpoint_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: FrontendEndpoint or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.FrontendEndpoint or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FrontendEndpoint', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} - - - def _create_or_update_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, frontend_endpoint_parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(frontend_endpoint_parameters, 'FrontendEndpoint') - - # Construct and send request - 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]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FrontendEndpoint', response) - if response.status_code == 201: - deserialized = self._deserialize('FrontendEndpoint', response) - if response.status_code == 202: - deserialized = self._deserialize('FrontendEndpoint', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, frontend_endpoint_name, frontend_endpoint_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new frontend endpoint with the specified host name within the - specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. - :type frontend_endpoint_name: str - :param frontend_endpoint_parameters: Frontend endpoint properties - needed to create a new endpoint. - :type frontend_endpoint_parameters: - ~azure.mgmt.frontdoor.models.FrontendEndpoint - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns FrontendEndpoint or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.FrontendEndpoint] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.FrontendEndpoint]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - frontend_endpoint_parameters=frontend_endpoint_parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('FrontendEndpoint', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} - - - def _delete_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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 = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing frontend endpoint with the specified parameters. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. - :type frontend_endpoint_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} - - - def _enable_https_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.enable_https.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(custom_https_configuration, 'CustomHttpsConfiguration') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def enable_https( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, polling=True, **operation_config): - """Enables a frontendEndpoint for HTTPS traffic. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. - :type frontend_endpoint_name: str - :param custom_https_configuration: The configuration specifying how to - enable HTTPS - :type custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._enable_https_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - custom_https_configuration=custom_https_configuration, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - enable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} - - - def _disable_https_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.disable_https.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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 = {} - 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, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def disable_https( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Disables a frontendEndpoint for HTTPS traffic. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. - :type frontend_endpoint_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._disable_https_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - disable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py deleted file mode 100644 index a8e0356a75cc..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py +++ /dev/null @@ -1,377 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class HealthProbeSettingsOperations(object): - """HealthProbeSettingsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-08-01" - - self.config = config - - def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the HealthProbeSettings within a Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_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 HealthProbeSettingsModel - :rtype: - ~azure.mgmt.frontdoor.models.HealthProbeSettingsModelPaged[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_front_door.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') - } - 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) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.HealthProbeSettingsModelPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.HealthProbeSettingsModelPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings'} - - def get( - self, resource_group_name, front_door_name, health_probe_settings_name, custom_headers=None, raw=False, **operation_config): - """Gets a HealthProbeSettings with the specified Rule name within the - specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param health_probe_settings_name: Name of the health probe settings - which is unique within the Front Door. - :type health_probe_settings_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: HealthProbeSettingsModel or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.HealthProbeSettingsModel or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'healthProbeSettingsName': self._serialize.url("health_probe_settings_name", health_probe_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('HealthProbeSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}'} - - - def _create_or_update_initial( - self, resource_group_name, front_door_name, health_probe_settings_name, health_probe_settings_parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'healthProbeSettingsName': self._serialize.url("health_probe_settings_name", health_probe_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(health_probe_settings_parameters, 'HealthProbeSettingsModel') - - # Construct and send request - 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]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('HealthProbeSettingsModel', response) - if response.status_code == 201: - deserialized = self._deserialize('HealthProbeSettingsModel', response) - if response.status_code == 202: - deserialized = self._deserialize('HealthProbeSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, health_probe_settings_name, health_probe_settings_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new HealthProbeSettings with the specified Rule name within - the specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param health_probe_settings_name: Name of the health probe settings - which is unique within the Front Door. - :type health_probe_settings_name: str - :param health_probe_settings_parameters: HealthProbeSettings - properties needed to create a new Front Door. - :type health_probe_settings_parameters: - ~azure.mgmt.frontdoor.models.HealthProbeSettingsModel - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns - HealthProbeSettingsModel or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - health_probe_settings_name=health_probe_settings_name, - health_probe_settings_parameters=health_probe_settings_parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('HealthProbeSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}'} - - - def _delete_initial( - self, resource_group_name, front_door_name, health_probe_settings_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'healthProbeSettingsName': self._serialize.url("health_probe_settings_name", health_probe_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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 = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, health_probe_settings_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing HealthProbeSettings with the specified parameters. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param health_probe_settings_name: Name of the health probe settings - which is unique within the Front Door. - :type health_probe_settings_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - health_probe_settings_name=health_probe_settings_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py deleted file mode 100644 index 6813d14f1ec9..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class LoadBalancingSettingsOperations(object): - """LoadBalancingSettingsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-08-01" - - self.config = config - - def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the LoadBalancingSettings within a Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_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 LoadBalancingSettingsModel - :rtype: - ~azure.mgmt.frontdoor.models.LoadBalancingSettingsModelPaged[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_front_door.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') - } - 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) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.LoadBalancingSettingsModelPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.LoadBalancingSettingsModelPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings'} - - def get( - self, resource_group_name, front_door_name, load_balancing_settings_name, custom_headers=None, raw=False, **operation_config): - """Gets a LoadBalancingSettings with the specified Rule name within the - specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param load_balancing_settings_name: Name of the load balancing - settings which is unique within the Front Door. - :type load_balancing_settings_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: LoadBalancingSettingsModel or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'loadBalancingSettingsName': self._serialize.url("load_balancing_settings_name", load_balancing_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('LoadBalancingSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}'} - - - def _create_or_update_initial( - self, resource_group_name, front_door_name, load_balancing_settings_name, load_balancing_settings_parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'loadBalancingSettingsName': self._serialize.url("load_balancing_settings_name", load_balancing_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(load_balancing_settings_parameters, 'LoadBalancingSettingsModel') - - # Construct and send request - 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]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('LoadBalancingSettingsModel', response) - if response.status_code == 201: - deserialized = self._deserialize('LoadBalancingSettingsModel', response) - if response.status_code == 202: - deserialized = self._deserialize('LoadBalancingSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, load_balancing_settings_name, load_balancing_settings_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new LoadBalancingSettings with the specified Rule name within - the specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param load_balancing_settings_name: Name of the load balancing - settings which is unique within the Front Door. - :type load_balancing_settings_name: str - :param load_balancing_settings_parameters: LoadBalancingSettings - properties needed to create a new Front Door. - :type load_balancing_settings_parameters: - ~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns - LoadBalancingSettingsModel or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - load_balancing_settings_name=load_balancing_settings_name, - load_balancing_settings_parameters=load_balancing_settings_parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('LoadBalancingSettingsModel', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}'} - - - def _delete_initial( - self, resource_group_name, front_door_name, load_balancing_settings_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'loadBalancingSettingsName': self._serialize.url("load_balancing_settings_name", load_balancing_settings_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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 = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, load_balancing_settings_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing LoadBalancingSettings with the specified - parameters. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param load_balancing_settings_name: Name of the load balancing - settings which is unique within the Front Door. - :type load_balancing_settings_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - load_balancing_settings_name=load_balancing_settings_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py deleted file mode 100644 index 568968537d1a..000000000000 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py +++ /dev/null @@ -1,376 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class RoutingRulesOperations(object): - """RoutingRulesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-08-01" - - self.config = config - - def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the Routing Rules within a Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_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 RoutingRule - :rtype: - ~azure.mgmt.frontdoor.models.RoutingRulePaged[~azure.mgmt.frontdoor.models.RoutingRule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_by_front_door.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') - } - 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) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.RoutingRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.RoutingRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules'} - - def get( - self, resource_group_name, front_door_name, routing_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets a Routing Rule with the specified Rule name within the specified - Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param routing_rule_name: Name of the Routing Rule which is unique - within the Front Door. - :type routing_rule_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: RoutingRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.RoutingRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'routingRuleName': self._serialize.url("routing_rule_name", routing_rule_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('RoutingRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}'} - - - def _create_or_update_initial( - self, resource_group_name, front_door_name, routing_rule_name, routing_rule_parameters, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'routingRuleName': self._serialize.url("routing_rule_name", routing_rule_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - 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 body - body_content = self._serialize.body(routing_rule_parameters, 'RoutingRule') - - # Construct and send request - 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]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('RoutingRule', response) - if response.status_code == 201: - deserialized = self._deserialize('RoutingRule', response) - if response.status_code == 202: - deserialized = self._deserialize('RoutingRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, routing_rule_name, routing_rule_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new Routing Rule with the specified Rule name within the - specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param routing_rule_name: Name of the Routing Rule which is unique - within the Front Door. - :type routing_rule_name: str - :param routing_rule_parameters: Routing Rule properties needed to - create a new Front Door. - :type routing_rule_parameters: - ~azure.mgmt.frontdoor.models.RoutingRule - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns RoutingRule or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.RoutingRule] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.RoutingRule]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - routing_rule_name=routing_rule_name, - routing_rule_parameters=routing_rule_parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('RoutingRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}'} - - - def _delete_initial( - self, resource_group_name, front_door_name, routing_rule_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'routingRuleName': self._serialize.url("routing_rule_name", routing_rule_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') - } - 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 = {} - 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.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, routing_rule_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing Routing Rule with the specified parameters. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. - :type front_door_name: str - :param routing_rule_name: Name of the Routing Rule which is unique - within the Front Door. - :type routing_rule_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - routing_rule_name=routing_rule_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}'} diff --git a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/version.py b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/version.py +++ b/sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" diff --git a/sdk/network/azure-mgmt-frontdoor/setup.py b/sdk/network/azure-mgmt-frontdoor/setup.py index bff1de6438bb..bb1b4df3475f 100644 --- a/sdk/network/azure-mgmt-frontdoor/setup.py +++ b/sdk/network/azure-mgmt-frontdoor/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', @@ -63,7 +64,6 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7',