Skip to content

Commit

Permalink
Generated from e30338eb768cedebd77c024fe290d5c91af7397b (#4852)
Browse files Browse the repository at this point in the history
fix api version
  • Loading branch information
AutorestCI authored Apr 15, 2019
1 parent 70568de commit 59d94d1
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# --------------------------------------------------------------------------

try:
from .application_gateway_probe_health_response_match_py3 import ApplicationGatewayProbeHealthResponseMatch
from .application_gateway_on_demand_probe_py3 import ApplicationGatewayOnDemandProbe
from .network_interface_tap_configuration_py3 import NetworkInterfaceTapConfiguration
from .sub_resource_py3 import SubResource
from .application_security_group_py3 import ApplicationSecurityGroup
Expand Down Expand Up @@ -46,6 +48,7 @@
from .application_gateway_backend_http_settings_py3 import ApplicationGatewayBackendHttpSettings
from .application_gateway_backend_health_server_py3 import ApplicationGatewayBackendHealthServer
from .application_gateway_backend_health_http_settings_py3 import ApplicationGatewayBackendHealthHttpSettings
from .application_gateway_backend_health_on_demand_py3 import ApplicationGatewayBackendHealthOnDemand
from .application_gateway_backend_health_pool_py3 import ApplicationGatewayBackendHealthPool
from .application_gateway_backend_health_py3 import ApplicationGatewayBackendHealth
from .application_gateway_sku_py3 import ApplicationGatewaySku
Expand All @@ -59,7 +62,6 @@
from .application_gateway_custom_error_py3 import ApplicationGatewayCustomError
from .application_gateway_http_listener_py3 import ApplicationGatewayHttpListener
from .application_gateway_path_rule_py3 import ApplicationGatewayPathRule
from .application_gateway_probe_health_response_match_py3 import ApplicationGatewayProbeHealthResponseMatch
from .application_gateway_probe_py3 import ApplicationGatewayProbe
from .application_gateway_request_routing_rule_py3 import ApplicationGatewayRequestRoutingRule
from .application_gateway_rewrite_rule_condition_py3 import ApplicationGatewayRewriteRuleCondition
Expand Down Expand Up @@ -305,6 +307,8 @@
from .web_application_firewall_custom_rule_py3 import WebApplicationFirewallCustomRule
from .web_application_firewall_policy_py3 import WebApplicationFirewallPolicy
except (SyntaxError, ImportError):
from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch
from .application_gateway_on_demand_probe import ApplicationGatewayOnDemandProbe
from .network_interface_tap_configuration import NetworkInterfaceTapConfiguration
from .sub_resource import SubResource
from .application_security_group import ApplicationSecurityGroup
Expand Down Expand Up @@ -341,6 +345,7 @@
from .application_gateway_backend_http_settings import ApplicationGatewayBackendHttpSettings
from .application_gateway_backend_health_server import ApplicationGatewayBackendHealthServer
from .application_gateway_backend_health_http_settings import ApplicationGatewayBackendHealthHttpSettings
from .application_gateway_backend_health_on_demand import ApplicationGatewayBackendHealthOnDemand
from .application_gateway_backend_health_pool import ApplicationGatewayBackendHealthPool
from .application_gateway_backend_health import ApplicationGatewayBackendHealth
from .application_gateway_sku import ApplicationGatewaySku
Expand All @@ -354,7 +359,6 @@
from .application_gateway_custom_error import ApplicationGatewayCustomError
from .application_gateway_http_listener import ApplicationGatewayHttpListener
from .application_gateway_path_rule import ApplicationGatewayPathRule
from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch
from .application_gateway_probe import ApplicationGatewayProbe
from .application_gateway_request_routing_rule import ApplicationGatewayRequestRoutingRule
from .application_gateway_rewrite_rule_condition import ApplicationGatewayRewriteRuleCondition
Expand Down Expand Up @@ -666,6 +670,7 @@
from .p2_svpn_gateway_paged import P2SVpnGatewayPaged
from .web_application_firewall_policy_paged import WebApplicationFirewallPolicyPaged
from .network_management_client_enums import (
ApplicationGatewayProtocol,
IPAllocationMethod,
SecurityRuleProtocol,
SecurityRuleAccess,
Expand All @@ -675,7 +680,6 @@
IPVersion,
DdosSettingsProtectionCoverage,
TransportProtocol,
ApplicationGatewayProtocol,
ApplicationGatewayCookieBasedAffinity,
ApplicationGatewayBackendHealthServerHealth,
ApplicationGatewaySkuName,
Expand Down Expand Up @@ -774,6 +778,8 @@
)

__all__ = [
'ApplicationGatewayProbeHealthResponseMatch',
'ApplicationGatewayOnDemandProbe',
'NetworkInterfaceTapConfiguration',
'SubResource',
'ApplicationSecurityGroup',
Expand Down Expand Up @@ -810,6 +816,7 @@
'ApplicationGatewayBackendHttpSettings',
'ApplicationGatewayBackendHealthServer',
'ApplicationGatewayBackendHealthHttpSettings',
'ApplicationGatewayBackendHealthOnDemand',
'ApplicationGatewayBackendHealthPool',
'ApplicationGatewayBackendHealth',
'ApplicationGatewaySku',
Expand All @@ -823,7 +830,6 @@
'ApplicationGatewayCustomError',
'ApplicationGatewayHttpListener',
'ApplicationGatewayPathRule',
'ApplicationGatewayProbeHealthResponseMatch',
'ApplicationGatewayProbe',
'ApplicationGatewayRequestRoutingRule',
'ApplicationGatewayRewriteRuleCondition',
Expand Down Expand Up @@ -1134,6 +1140,7 @@
'P2SVpnServerConfigurationPaged',
'P2SVpnGatewayPaged',
'WebApplicationFirewallPolicyPaged',
'ApplicationGatewayProtocol',
'IPAllocationMethod',
'SecurityRuleProtocol',
'SecurityRuleAccess',
Expand All @@ -1143,7 +1150,6 @@
'IPVersion',
'DdosSettingsProtectionCoverage',
'TransportProtocol',
'ApplicationGatewayProtocol',
'ApplicationGatewayCookieBasedAffinity',
'ApplicationGatewayBackendHealthServerHealth',
'ApplicationGatewaySkuName',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 ApplicationGatewayBackendHealthOnDemand(Model):
"""Result of on demand test probe.
:param backend_address_pool: Reference of an
ApplicationGatewayBackendAddressPool resource.
:type backend_address_pool:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayBackendAddressPool
:param backend_health_http_settings: Application gateway BackendHealthHttp
settings.
:type backend_health_http_settings:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayBackendHealthHttpSettings
"""

_attribute_map = {
'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'},
'backend_health_http_settings': {'key': 'backendHealthHttpSettings', 'type': 'ApplicationGatewayBackendHealthHttpSettings'},
}

def __init__(self, **kwargs):
super(ApplicationGatewayBackendHealthOnDemand, self).__init__(**kwargs)
self.backend_address_pool = kwargs.get('backend_address_pool', None)
self.backend_health_http_settings = kwargs.get('backend_health_http_settings', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 ApplicationGatewayBackendHealthOnDemand(Model):
"""Result of on demand test probe.
:param backend_address_pool: Reference of an
ApplicationGatewayBackendAddressPool resource.
:type backend_address_pool:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayBackendAddressPool
:param backend_health_http_settings: Application gateway BackendHealthHttp
settings.
:type backend_health_http_settings:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayBackendHealthHttpSettings
"""

_attribute_map = {
'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'},
'backend_health_http_settings': {'key': 'backendHealthHttpSettings', 'type': 'ApplicationGatewayBackendHealthHttpSettings'},
}

def __init__(self, *, backend_address_pool=None, backend_health_http_settings=None, **kwargs) -> None:
super(ApplicationGatewayBackendHealthOnDemand, self).__init__(**kwargs)
self.backend_address_pool = backend_address_pool
self.backend_health_http_settings = backend_health_http_settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 ApplicationGatewayOnDemandProbe(Model):
"""Details of on demand test probe request.
:param protocol: The protocol used for the probe. Possible values are
'Http' and 'Https'. Possible values include: 'Http', 'Https'
:type protocol: str or
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayProtocol
:param host: Host name to send the probe to.
:type host: str
:param path: Relative path of probe. Valid path starts from '/'. Probe is
sent to <Protocol>://<host>:<port><path>
:type path: str
:param timeout: The probe timeout in seconds. Probe marked as failed if
valid response is not received with this timeout period. Acceptable values
are from 1 second to 86400 seconds.
:type timeout: int
:param pick_host_name_from_backend_http_settings: Whether the host header
should be picked from the backend http settings. Default value is false.
:type pick_host_name_from_backend_http_settings: bool
:param match: Criterion for classifying a healthy probe response.
:type match:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayProbeHealthResponseMatch
:param backend_pool_name: Name of backend pool of application gateway to
which probe request will be sent.
:type backend_pool_name: str
:param backend_http_setting_name: Name of backend http setting of
application gateway to be used for test probe
:type backend_http_setting_name: str
"""

_attribute_map = {
'protocol': {'key': 'protocol', 'type': 'str'},
'host': {'key': 'host', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'},
'timeout': {'key': 'timeout', 'type': 'int'},
'pick_host_name_from_backend_http_settings': {'key': 'pickHostNameFromBackendHttpSettings', 'type': 'bool'},
'match': {'key': 'match', 'type': 'ApplicationGatewayProbeHealthResponseMatch'},
'backend_pool_name': {'key': 'backendPoolName', 'type': 'str'},
'backend_http_setting_name': {'key': 'backendHttpSettingName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ApplicationGatewayOnDemandProbe, self).__init__(**kwargs)
self.protocol = kwargs.get('protocol', None)
self.host = kwargs.get('host', None)
self.path = kwargs.get('path', None)
self.timeout = kwargs.get('timeout', None)
self.pick_host_name_from_backend_http_settings = kwargs.get('pick_host_name_from_backend_http_settings', None)
self.match = kwargs.get('match', None)
self.backend_pool_name = kwargs.get('backend_pool_name', None)
self.backend_http_setting_name = kwargs.get('backend_http_setting_name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 ApplicationGatewayOnDemandProbe(Model):
"""Details of on demand test probe request.
:param protocol: The protocol used for the probe. Possible values are
'Http' and 'Https'. Possible values include: 'Http', 'Https'
:type protocol: str or
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayProtocol
:param host: Host name to send the probe to.
:type host: str
:param path: Relative path of probe. Valid path starts from '/'. Probe is
sent to <Protocol>://<host>:<port><path>
:type path: str
:param timeout: The probe timeout in seconds. Probe marked as failed if
valid response is not received with this timeout period. Acceptable values
are from 1 second to 86400 seconds.
:type timeout: int
:param pick_host_name_from_backend_http_settings: Whether the host header
should be picked from the backend http settings. Default value is false.
:type pick_host_name_from_backend_http_settings: bool
:param match: Criterion for classifying a healthy probe response.
:type match:
~azure.mgmt.network.v2019_02_01.models.ApplicationGatewayProbeHealthResponseMatch
:param backend_pool_name: Name of backend pool of application gateway to
which probe request will be sent.
:type backend_pool_name: str
:param backend_http_setting_name: Name of backend http setting of
application gateway to be used for test probe
:type backend_http_setting_name: str
"""

_attribute_map = {
'protocol': {'key': 'protocol', 'type': 'str'},
'host': {'key': 'host', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'},
'timeout': {'key': 'timeout', 'type': 'int'},
'pick_host_name_from_backend_http_settings': {'key': 'pickHostNameFromBackendHttpSettings', 'type': 'bool'},
'match': {'key': 'match', 'type': 'ApplicationGatewayProbeHealthResponseMatch'},
'backend_pool_name': {'key': 'backendPoolName', 'type': 'str'},
'backend_http_setting_name': {'key': 'backendHttpSettingName', 'type': 'str'},
}

def __init__(self, *, protocol=None, host: str=None, path: str=None, timeout: int=None, pick_host_name_from_backend_http_settings: bool=None, match=None, backend_pool_name: str=None, backend_http_setting_name: str=None, **kwargs) -> None:
super(ApplicationGatewayOnDemandProbe, self).__init__(**kwargs)
self.protocol = protocol
self.host = host
self.path = path
self.timeout = timeout
self.pick_host_name_from_backend_http_settings = pick_host_name_from_backend_http_settings
self.match = match
self.backend_pool_name = backend_pool_name
self.backend_http_setting_name = backend_http_setting_name
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
from enum import Enum


class ApplicationGatewayProtocol(str, Enum):

http = "Http"
https = "Https"


class IPAllocationMethod(str, Enum):

static = "Static"
Expand Down Expand Up @@ -73,12 +79,6 @@ class TransportProtocol(str, Enum):
all = "All"


class ApplicationGatewayProtocol(str, Enum):

http = "Http"
https = "Https"


class ApplicationGatewayCookieBasedAffinity(str, Enum):

enabled = "Enabled"
Expand Down
Loading

0 comments on commit 59d94d1

Please sign in to comment.