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 azure-mgmt-apimanagement] [Microsoft.ApiManagement][2019-12-01] Gateway hostname configuration protocol settings #746

Open
wants to merge 1 commit into
base: sdkAutomation/azure-mgmt-apimanagement
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -3610,6 +3610,12 @@ class GatewayHostnameConfigurationContract(Resource):
:param negotiate_client_certificate: Determines whether gateway requests
client certificate
:type negotiate_client_certificate: bool
:param tls10_enabled: Specifies if TLS 1.0 is supported
:type tls10_enabled: bool
:param tls11_enabled: Specifies if TLS 1.1 is supported
:type tls11_enabled: bool
:param http2_enabled: Specifies if HTTP/2.0 is supported
:type http2_enabled: bool
"""

_validation = {
Expand All @@ -3625,13 +3631,19 @@ class GatewayHostnameConfigurationContract(Resource):
'hostname': {'key': 'properties.hostname', 'type': 'str'},
'certificate_id': {'key': 'properties.certificateId', 'type': 'str'},
'negotiate_client_certificate': {'key': 'properties.negotiateClientCertificate', 'type': 'bool'},
'tls10_enabled': {'key': 'properties.tls10Enabled', 'type': 'bool'},
'tls11_enabled': {'key': 'properties.tls11Enabled', 'type': 'bool'},
'http2_enabled': {'key': 'properties.http2Enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(GatewayHostnameConfigurationContract, self).__init__(**kwargs)
self.hostname = kwargs.get('hostname', None)
self.certificate_id = kwargs.get('certificate_id', None)
self.negotiate_client_certificate = kwargs.get('negotiate_client_certificate', None)
self.tls10_enabled = kwargs.get('tls10_enabled', None)
self.tls11_enabled = kwargs.get('tls11_enabled', None)
self.http2_enabled = kwargs.get('http2_enabled', None)


class GatewayKeyRegenerationRequestContract(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3610,6 +3610,12 @@ class GatewayHostnameConfigurationContract(Resource):
:param negotiate_client_certificate: Determines whether gateway requests
client certificate
:type negotiate_client_certificate: bool
:param tls10_enabled: Specifies if TLS 1.0 is supported
:type tls10_enabled: bool
:param tls11_enabled: Specifies if TLS 1.1 is supported
:type tls11_enabled: bool
:param http2_enabled: Specifies if HTTP/2.0 is supported
:type http2_enabled: bool
"""

_validation = {
Expand All @@ -3625,13 +3631,19 @@ class GatewayHostnameConfigurationContract(Resource):
'hostname': {'key': 'properties.hostname', 'type': 'str'},
'certificate_id': {'key': 'properties.certificateId', 'type': 'str'},
'negotiate_client_certificate': {'key': 'properties.negotiateClientCertificate', 'type': 'bool'},
'tls10_enabled': {'key': 'properties.tls10Enabled', 'type': 'bool'},
'tls11_enabled': {'key': 'properties.tls11Enabled', 'type': 'bool'},
'http2_enabled': {'key': 'properties.http2Enabled', 'type': 'bool'},
}

def __init__(self, *, hostname: str=None, certificate_id: str=None, negotiate_client_certificate: bool=None, **kwargs) -> None:
def __init__(self, *, hostname: str=None, certificate_id: str=None, negotiate_client_certificate: bool=None, tls10_enabled: bool=None, tls11_enabled: bool=None, http2_enabled: bool=None, **kwargs) -> None:
super(GatewayHostnameConfigurationContract, self).__init__(**kwargs)
self.hostname = hostname
self.certificate_id = certificate_id
self.negotiate_client_certificate = negotiate_client_certificate
self.tls10_enabled = tls10_enabled
self.tls11_enabled = tls11_enabled
self.http2_enabled = http2_enabled


class GatewayKeyRegenerationRequestContract(Model):
Expand Down