-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from e30338eb768cedebd77c024fe290d5c91af7397b (#4852)
fix api version
- Loading branch information
1 parent
70568de
commit 59d94d1
Showing
7 changed files
with
329 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ork/azure/mgmt/network/v2019_02_01/models/application_gateway_backend_health_on_demand.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
36 changes: 36 additions & 0 deletions
36
...azure/mgmt/network/v2019_02_01/models/application_gateway_backend_health_on_demand_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
65 changes: 65 additions & 0 deletions
65
...mgmt-network/azure/mgmt/network/v2019_02_01/models/application_gateway_on_demand_probe.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
65 changes: 65 additions & 0 deletions
65
...-network/azure/mgmt/network/v2019_02_01/models/application_gateway_on_demand_probe_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.