Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR frontdoor/resource-manager] Update readme.md files missed from previous commit - switching API version to 2019-05-01 #6721

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/network/azure-mgmt-frontdoor/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def check_front_door_name_availability(
"""
check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type)

api_version = "2019-04-01"
api_version = "2019-05-01"

# Construct URL
url = self.check_front_door_name_availability.metadata['url']
Expand Down Expand Up @@ -216,7 +216,7 @@ def check_front_door_name_availability_with_subscription(
"""
check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type)

api_version = "2019-04-01"
api_version = "2019-05-01"

# Construct URL
url = self.check_front_door_name_availability_with_subscription.metadata['url']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
CustomHttpsProvisioningState,
CustomHttpsProvisioningSubstate,
FrontDoorCertificateSource,
FrontDoorTlsProtocolType,
MinimumTLSVersion,
FrontDoorCertificateType,
EnforceCertificateNameCheckEnabledState,
FrontDoorEnabledState,
Expand All @@ -128,6 +128,8 @@
FrontDoorRedirectType,
FrontDoorRedirectProtocol,
BackendEnabledState,
FrontDoorHealthProbeMethod,
HealthProbeEnabled,
SessionAffinityEnabledState,
ResourceType,
Availability,
Expand Down Expand Up @@ -203,7 +205,7 @@
'CustomHttpsProvisioningState',
'CustomHttpsProvisioningSubstate',
'FrontDoorCertificateSource',
'FrontDoorTlsProtocolType',
'MinimumTLSVersion',
'FrontDoorCertificateType',
'EnforceCertificateNameCheckEnabledState',
'FrontDoorEnabledState',
Expand All @@ -215,6 +217,8 @@
'FrontDoorRedirectType',
'FrontDoorRedirectProtocol',
'BackendEnabledState',
'FrontDoorHealthProbeMethod',
'HealthProbeEnabled',
'SessionAffinityEnabledState',
'ResourceType',
'Availability',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ class BackendPoolsSettings(Model):
"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)
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,22 @@ class BackendPoolsSettings(Model):
"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", **kwargs) -> None:
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@
class CustomHttpsConfiguration(Model):
"""Https settings for a domain.

:param certificate_source: Defines the source of the SSL certificate.
Possible values include: 'AzureKeyVault', 'FrontDoor'
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
: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
: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
Expand All @@ -39,19 +48,28 @@ class CustomHttpsConfiguration(Model):
~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.protocol_type = kwargs.get('protocol_type', 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@
class CustomHttpsConfiguration(Model):
"""Https settings for a domain.

:param certificate_source: Defines the source of the SSL certificate.
Possible values include: 'AzureKeyVault', 'FrontDoor'
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
: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
: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
Expand All @@ -39,19 +48,28 @@ class CustomHttpsConfiguration(Model):
~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'},
}

def __init__(self, *, certificate_source=None, protocol_type=None, vault=None, secret_name: str=None, secret_version: str=None, certificate_type=None, **kwargs) -> None:
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.protocol_type = protocol_type
self.minimum_tls_version = minimum_tls_version
self.vault = vault
self.secret_name = secret_name
self.secret_version = secret_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,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):
Expand Down Expand Up @@ -125,6 +126,18 @@ class BackendEnabledState(str, Enum):
disabled = "Disabled"


class FrontDoorHealthProbeMethod(str, Enum):

get = "GET"
head = "HEAD"


class HealthProbeEnabled(str, Enum):

enabled = "Enabled"
disabled = "Disabled"


class SessionAffinityEnabledState(str, Enum):

enabled = "Enabled"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ class HealthProbeSettingsModel(SubResource):
: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
Expand All @@ -46,6 +57,8 @@ class HealthProbeSettingsModel(SubResource):
'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'},
Expand All @@ -56,6 +69,8 @@ def __init__(self, **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
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ class HealthProbeSettingsModel(SubResource):
: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
Expand All @@ -46,16 +57,20 @@ class HealthProbeSettingsModel(SubResource):
'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, resource_state=None, name: str=None, **kwargs) -> None:
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,31 @@ class HealthProbeSettingsUpdateParameters(Model):
: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)
Loading