mv-oci-sdk 2.142.0__py3-none-any.whl → 2.142.0.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.2.dist-info}/METADATA +3 -3
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.2.dist-info}/RECORD +248 -6
- oci/file_storage/__init__.py +14 -0
- oci/file_storage/file_storage_client.py +8601 -0
- oci/file_storage/file_storage_client_composite_operations.py +2068 -0
- oci/file_storage/models/__init__.py +130 -0
- oci/file_storage/models/change_file_system_compartment_details.py +76 -0
- oci/file_storage/models/change_filesystem_snapshot_policy_compartment_details.py +76 -0
- oci/file_storage/models/change_mount_target_compartment_details.py +76 -0
- oci/file_storage/models/change_outbound_connector_compartment_details.py +78 -0
- oci/file_storage/models/change_replication_compartment_details.py +76 -0
- oci/file_storage/models/client_options.py +389 -0
- oci/file_storage/models/create_export_details.py +303 -0
- oci/file_storage/models/create_file_system_details.py +425 -0
- oci/file_storage/models/create_filesystem_snapshot_policy_details.py +337 -0
- oci/file_storage/models/create_kerberos_details.py +200 -0
- oci/file_storage/models/create_ldap_bind_account_details.py +220 -0
- oci/file_storage/models/create_ldap_idmap_details.py +317 -0
- oci/file_storage/models/create_mount_target_details.py +581 -0
- oci/file_storage/models/create_outbound_connector_details.py +309 -0
- oci/file_storage/models/create_replication_details.py +325 -0
- oci/file_storage/models/create_snapshot_details.py +261 -0
- oci/file_storage/models/endpoint.py +103 -0
- oci/file_storage/models/export.py +456 -0
- oci/file_storage/models/export_set.py +411 -0
- oci/file_storage/models/export_set_summary.py +316 -0
- oci/file_storage/models/export_summary.py +343 -0
- oci/file_storage/models/file_system.py +818 -0
- oci/file_storage/models/file_system_summary.py +659 -0
- oci/file_storage/models/filesystem_snapshot_policy.py +473 -0
- oci/file_storage/models/filesystem_snapshot_policy_summary.py +429 -0
- oci/file_storage/models/kerberos.py +200 -0
- oci/file_storage/models/kerberos_keytab_entry.py +166 -0
- oci/file_storage/models/key_tab_secret_details.py +138 -0
- oci/file_storage/models/ldap_bind_account.py +243 -0
- oci/file_storage/models/ldap_bind_account_summary.py +176 -0
- oci/file_storage/models/ldap_idmap.py +317 -0
- oci/file_storage/models/mount_target.py +828 -0
- oci/file_storage/models/mount_target_summary.py +696 -0
- oci/file_storage/models/outbound_connector.py +453 -0
- oci/file_storage/models/outbound_connector_summary.py +438 -0
- oci/file_storage/models/replication.py +740 -0
- oci/file_storage/models/replication_estimate.py +196 -0
- oci/file_storage/models/replication_summary.py +491 -0
- oci/file_storage/models/replication_target.py +679 -0
- oci/file_storage/models/replication_target_summary.py +425 -0
- oci/file_storage/models/resource_lock.py +185 -0
- oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/snapshot.py +638 -0
- oci/file_storage/models/snapshot_schedule.py +487 -0
- oci/file_storage/models/snapshot_summary.py +601 -0
- oci/file_storage/models/source_details.py +119 -0
- oci/file_storage/models/update_export_details.py +111 -0
- oci/file_storage/models/update_export_set_details.py +172 -0
- oci/file_storage/models/update_file_system_details.py +246 -0
- oci/file_storage/models/update_filesystem_snapshot_policy_details.py +236 -0
- oci/file_storage/models/update_kerberos_details.py +200 -0
- oci/file_storage/models/update_ldap_idmap_details.py +317 -0
- oci/file_storage/models/update_mount_target_details.py +286 -0
- oci/file_storage/models/update_outbound_connector_details.py +158 -0
- oci/file_storage/models/update_replication_details.py +189 -0
- oci/file_storage/models/update_snapshot_details.py +156 -0
- oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/validate_key_tabs_details.py +103 -0
- oci/file_storage/models/validate_key_tabs_response_details.py +103 -0
- oci/functions/__init__.py +16 -0
- oci/functions/functions_invoke_client.py +267 -0
- oci/functions/functions_invoke_client_composite_operations.py +26 -0
- oci/functions/functions_management_client.py +2056 -0
- oci/functions/functions_management_client_composite_operations.py +326 -0
- oci/functions/models/__init__.py +74 -0
- oci/functions/models/application.py +628 -0
- oci/functions/models/application_summary.py +512 -0
- oci/functions/models/application_trace_config.py +103 -0
- oci/functions/models/change_application_compartment_details.py +78 -0
- oci/functions/models/config_details.py +134 -0
- oci/functions/models/constant_provisioned_concurrency_config.py +82 -0
- oci/functions/models/create_application_details.py +446 -0
- oci/functions/models/create_function_details.py +437 -0
- oci/functions/models/function.py +734 -0
- oci/functions/models/function_provisioned_concurrency_config.py +109 -0
- oci/functions/models/function_source_details.py +101 -0
- oci/functions/models/function_summary.py +657 -0
- oci/functions/models/function_trace_config.py +72 -0
- oci/functions/models/image_policy_config.py +103 -0
- oci/functions/models/key_details.py +76 -0
- oci/functions/models/none_provisioned_concurrency_config.py +51 -0
- oci/functions/models/pbf_listing.py +408 -0
- oci/functions/models/pbf_listing_summary.py +386 -0
- oci/functions/models/pbf_listing_version.py +467 -0
- oci/functions/models/pbf_listing_version_summary.py +446 -0
- oci/functions/models/pbf_listing_versions_collection.py +73 -0
- oci/functions/models/pbf_listings_collection.py +72 -0
- oci/functions/models/policy_details.py +103 -0
- oci/functions/models/pre_built_function_source_details.py +88 -0
- oci/functions/models/publisher_details.py +72 -0
- oci/functions/models/requirement_details.py +106 -0
- oci/functions/models/trigger.py +72 -0
- oci/functions/models/trigger_summary.py +72 -0
- oci/functions/models/triggers_collection.py +72 -0
- oci/functions/models/update_application_details.py +290 -0
- oci/functions/models/update_function_details.py +346 -0
- oci/load_balancer/__init__.py +14 -0
- oci/load_balancer/load_balancer_client.py +7641 -0
- oci/load_balancer/load_balancer_client_composite_operations.py +1630 -0
- oci/load_balancer/models/__init__.py +186 -0
- oci/load_balancer/models/action.py +97 -0
- oci/load_balancer/models/add_http_request_header_rule.py +134 -0
- oci/load_balancer/models/add_http_response_header_rule.py +137 -0
- oci/load_balancer/models/allow_rule.py +123 -0
- oci/load_balancer/models/backend.py +350 -0
- oci/load_balancer/models/backend_details.py +312 -0
- oci/load_balancer/models/backend_health.py +143 -0
- oci/load_balancer/models/backend_set.py +305 -0
- oci/load_balancer/models/backend_set_details.py +262 -0
- oci/load_balancer/models/backend_set_health.py +265 -0
- oci/load_balancer/models/certificate.py +188 -0
- oci/load_balancer/models/certificate_details.py +270 -0
- oci/load_balancer/models/change_load_balancer_compartment_details.py +78 -0
- oci/load_balancer/models/connection_configuration.py +168 -0
- oci/load_balancer/models/control_access_using_http_methods_rule.py +162 -0
- oci/load_balancer/models/create_backend_details.py +316 -0
- oci/load_balancer/models/create_backend_set_details.py +305 -0
- oci/load_balancer/models/create_certificate_details.py +270 -0
- oci/load_balancer/models/create_hostname_details.py +121 -0
- oci/load_balancer/models/create_listener_details.py +387 -0
- oci/load_balancer/models/create_load_balancer_details.py +895 -0
- oci/load_balancer/models/create_path_route_set_details.py +111 -0
- oci/load_balancer/models/create_routing_policy_details.py +154 -0
- oci/load_balancer/models/create_rule_set_details.py +109 -0
- oci/load_balancer/models/create_ssl_cipher_suite_details.py +606 -0
- oci/load_balancer/models/extend_http_request_header_value_rule.py +181 -0
- oci/load_balancer/models/extend_http_response_header_value_rule.py +181 -0
- oci/load_balancer/models/forward_to_backend_set.py +86 -0
- oci/load_balancer/models/health_check_result.py +219 -0
- oci/load_balancer/models/health_checker.py +381 -0
- oci/load_balancer/models/health_checker_details.py +376 -0
- oci/load_balancer/models/hostname.py +121 -0
- oci/load_balancer/models/hostname_details.py +117 -0
- oci/load_balancer/models/http_header_rule.py +127 -0
- oci/load_balancer/models/ip_address.py +142 -0
- oci/load_balancer/models/ip_based_max_connections_rule.py +118 -0
- oci/load_balancer/models/ip_max_connections.py +111 -0
- oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.py +423 -0
- oci/load_balancer/models/listener.py +383 -0
- oci/load_balancer/models/listener_details.py +344 -0
- oci/load_balancer/models/listener_rule_summary.py +104 -0
- oci/load_balancer/models/load_balancer.py +1023 -0
- oci/load_balancer/models/load_balancer_health.py +281 -0
- oci/load_balancer/models/load_balancer_health_summary.py +167 -0
- oci/load_balancer/models/load_balancer_policy.py +80 -0
- oci/load_balancer/models/load_balancer_protocol.py +76 -0
- oci/load_balancer/models/load_balancer_shape.py +80 -0
- oci/load_balancer/models/path_match_condition.py +166 -0
- oci/load_balancer/models/path_match_type.py +126 -0
- oci/load_balancer/models/path_route.py +156 -0
- oci/load_balancer/models/path_route_set.py +112 -0
- oci/load_balancer/models/path_route_set_details.py +72 -0
- oci/load_balancer/models/redirect_rule.py +173 -0
- oci/load_balancer/models/redirect_uri.py +420 -0
- oci/load_balancer/models/remove_http_request_header_rule.py +90 -0
- oci/load_balancer/models/remove_http_response_header_rule.py +92 -0
- oci/load_balancer/models/reserved_ip.py +90 -0
- oci/load_balancer/models/routing_policy.py +152 -0
- oci/load_balancer/models/routing_policy_details.py +73 -0
- oci/load_balancer/models/routing_rule.py +135 -0
- oci/load_balancer/models/rule.py +177 -0
- oci/load_balancer/models/rule_condition.py +121 -0
- oci/load_balancer/models/rule_set.py +113 -0
- oci/load_balancer/models/rule_set_details.py +72 -0
- oci/load_balancer/models/session_persistence_configuration_details.py +136 -0
- oci/load_balancer/models/shape_details.py +121 -0
- oci/load_balancer/models/source_ip_address_condition.py +90 -0
- oci/load_balancer/models/source_vcn_id_condition.py +98 -0
- oci/load_balancer/models/source_vcn_ip_address_condition.py +97 -0
- oci/load_balancer/models/ssl_cipher_suite.py +606 -0
- oci/load_balancer/models/ssl_cipher_suite_details.py +606 -0
- oci/load_balancer/models/ssl_configuration.py +478 -0
- oci/load_balancer/models/ssl_configuration_details.py +476 -0
- oci/load_balancer/models/update_backend_details.py +242 -0
- oci/load_balancer/models/update_backend_set_details.py +264 -0
- oci/load_balancer/models/update_health_checker_details.py +374 -0
- oci/load_balancer/models/update_hostname_details.py +86 -0
- oci/load_balancer/models/update_listener_details.py +344 -0
- oci/load_balancer/models/update_load_balancer_details.py +356 -0
- oci/load_balancer/models/update_load_balancer_shape_details.py +127 -0
- oci/load_balancer/models/update_network_security_groups_details.py +99 -0
- oci/load_balancer/models/update_path_route_set_details.py +72 -0
- oci/load_balancer/models/update_routing_policy_details.py +115 -0
- oci/load_balancer/models/update_rule_set_details.py +72 -0
- oci/load_balancer/models/update_ssl_cipher_suite_details.py +300 -0
- oci/load_balancer/models/work_request.py +385 -0
- oci/load_balancer/models/work_request_error.py +115 -0
- oci/network_load_balancer/__init__.py +14 -0
- oci/network_load_balancer/models/__init__.py +106 -0
- oci/network_load_balancer/models/backend.py +338 -0
- oci/network_load_balancer/models/backend_collection.py +72 -0
- oci/network_load_balancer/models/backend_details.py +337 -0
- oci/network_load_balancer/models/backend_health.py +145 -0
- oci/network_load_balancer/models/backend_set.py +347 -0
- oci/network_load_balancer/models/backend_set_collection.py +72 -0
- oci/network_load_balancer/models/backend_set_details.py +306 -0
- oci/network_load_balancer/models/backend_set_health.py +265 -0
- oci/network_load_balancer/models/backend_set_summary.py +347 -0
- oci/network_load_balancer/models/backend_summary.py +338 -0
- oci/network_load_balancer/models/change_network_load_balancer_compartment_details.py +78 -0
- oci/network_load_balancer/models/create_backend_details.py +336 -0
- oci/network_load_balancer/models/create_backend_set_details.py +347 -0
- oci/network_load_balancer/models/create_listener_details.py +396 -0
- oci/network_load_balancer/models/create_network_load_balancer_details.py +694 -0
- oci/network_load_balancer/models/dns_health_checker_details.py +264 -0
- oci/network_load_balancer/models/health_check_result.py +139 -0
- oci/network_load_balancer/models/health_checker.py +449 -0
- oci/network_load_balancer/models/health_checker_details.py +449 -0
- oci/network_load_balancer/models/ip_address.py +189 -0
- oci/network_load_balancer/models/listener.py +396 -0
- oci/network_load_balancer/models/listener_collection.py +72 -0
- oci/network_load_balancer/models/listener_details.py +396 -0
- oci/network_load_balancer/models/listener_summary.py +396 -0
- oci/network_load_balancer/models/network_load_balancer.py +847 -0
- oci/network_load_balancer/models/network_load_balancer_collection.py +72 -0
- oci/network_load_balancer/models/network_load_balancer_health.py +281 -0
- oci/network_load_balancer/models/network_load_balancer_health_collection.py +72 -0
- oci/network_load_balancer/models/network_load_balancer_health_summary.py +167 -0
- oci/network_load_balancer/models/network_load_balancer_summary.py +833 -0
- oci/network_load_balancer/models/network_load_balancers_policy_collection.py +72 -0
- oci/network_load_balancer/models/network_load_balancers_protocol_collection.py +73 -0
- oci/network_load_balancer/models/reserved_ip.py +90 -0
- oci/network_load_balancer/models/update_backend_details.py +199 -0
- oci/network_load_balancer/models/update_backend_set_details.py +288 -0
- oci/network_load_balancer/models/update_health_checker_details.py +444 -0
- oci/network_load_balancer/models/update_listener_details.py +361 -0
- oci/network_load_balancer/models/update_network_load_balancer_details.py +386 -0
- oci/network_load_balancer/models/update_network_security_groups_details.py +99 -0
- oci/network_load_balancer/models/work_request.py +454 -0
- oci/network_load_balancer/models/work_request_collection.py +72 -0
- oci/network_load_balancer/models/work_request_error.py +136 -0
- oci/network_load_balancer/models/work_request_error_collection.py +72 -0
- oci/network_load_balancer/models/work_request_log_entry.py +103 -0
- oci/network_load_balancer/models/work_request_log_entry_collection.py +72 -0
- oci/network_load_balancer/models/work_request_resource.py +199 -0
- oci/network_load_balancer/models/work_request_summary.py +454 -0
- oci/network_load_balancer/network_load_balancer_client.py +4392 -0
- oci/network_load_balancer/network_load_balancer_client_composite_operations.py +757 -0
- oci/version.py +1 -1
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.2.dist-info}/LICENSE.txt +0 -0
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.2.dist-info}/WHEEL +0 -0
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,449 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200501
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class HealthChecker(object):
|
14
|
+
"""
|
15
|
+
The health check policy configuration.
|
16
|
+
For more information, see `Editing Health Check Policies`__.
|
17
|
+
|
18
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm
|
19
|
+
"""
|
20
|
+
|
21
|
+
#: A constant which can be used with the protocol property of a HealthChecker.
|
22
|
+
#: This constant has a value of "HTTP"
|
23
|
+
PROTOCOL_HTTP = "HTTP"
|
24
|
+
|
25
|
+
#: A constant which can be used with the protocol property of a HealthChecker.
|
26
|
+
#: This constant has a value of "HTTPS"
|
27
|
+
PROTOCOL_HTTPS = "HTTPS"
|
28
|
+
|
29
|
+
#: A constant which can be used with the protocol property of a HealthChecker.
|
30
|
+
#: This constant has a value of "TCP"
|
31
|
+
PROTOCOL_TCP = "TCP"
|
32
|
+
|
33
|
+
#: A constant which can be used with the protocol property of a HealthChecker.
|
34
|
+
#: This constant has a value of "UDP"
|
35
|
+
PROTOCOL_UDP = "UDP"
|
36
|
+
|
37
|
+
#: A constant which can be used with the protocol property of a HealthChecker.
|
38
|
+
#: This constant has a value of "DNS"
|
39
|
+
PROTOCOL_DNS = "DNS"
|
40
|
+
|
41
|
+
def __init__(self, **kwargs):
|
42
|
+
"""
|
43
|
+
Initializes a new HealthChecker object with values from keyword arguments.
|
44
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
45
|
+
|
46
|
+
:param protocol:
|
47
|
+
The value to assign to the protocol property of this HealthChecker.
|
48
|
+
Allowed values for this property are: "HTTP", "HTTPS", "TCP", "UDP", "DNS", 'UNKNOWN_ENUM_VALUE'.
|
49
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
50
|
+
:type protocol: str
|
51
|
+
|
52
|
+
:param port:
|
53
|
+
The value to assign to the port property of this HealthChecker.
|
54
|
+
:type port: int
|
55
|
+
|
56
|
+
:param retries:
|
57
|
+
The value to assign to the retries property of this HealthChecker.
|
58
|
+
:type retries: int
|
59
|
+
|
60
|
+
:param timeout_in_millis:
|
61
|
+
The value to assign to the timeout_in_millis property of this HealthChecker.
|
62
|
+
:type timeout_in_millis: int
|
63
|
+
|
64
|
+
:param interval_in_millis:
|
65
|
+
The value to assign to the interval_in_millis property of this HealthChecker.
|
66
|
+
:type interval_in_millis: int
|
67
|
+
|
68
|
+
:param url_path:
|
69
|
+
The value to assign to the url_path property of this HealthChecker.
|
70
|
+
:type url_path: str
|
71
|
+
|
72
|
+
:param response_body_regex:
|
73
|
+
The value to assign to the response_body_regex property of this HealthChecker.
|
74
|
+
:type response_body_regex: str
|
75
|
+
|
76
|
+
:param return_code:
|
77
|
+
The value to assign to the return_code property of this HealthChecker.
|
78
|
+
:type return_code: int
|
79
|
+
|
80
|
+
:param request_data:
|
81
|
+
The value to assign to the request_data property of this HealthChecker.
|
82
|
+
:type request_data: str
|
83
|
+
|
84
|
+
:param response_data:
|
85
|
+
The value to assign to the response_data property of this HealthChecker.
|
86
|
+
:type response_data: str
|
87
|
+
|
88
|
+
:param dns:
|
89
|
+
The value to assign to the dns property of this HealthChecker.
|
90
|
+
:type dns: oci.network_load_balancer.models.DnsHealthCheckerDetails
|
91
|
+
|
92
|
+
"""
|
93
|
+
self.swagger_types = {
|
94
|
+
'protocol': 'str',
|
95
|
+
'port': 'int',
|
96
|
+
'retries': 'int',
|
97
|
+
'timeout_in_millis': 'int',
|
98
|
+
'interval_in_millis': 'int',
|
99
|
+
'url_path': 'str',
|
100
|
+
'response_body_regex': 'str',
|
101
|
+
'return_code': 'int',
|
102
|
+
'request_data': 'str',
|
103
|
+
'response_data': 'str',
|
104
|
+
'dns': 'DnsHealthCheckerDetails'
|
105
|
+
}
|
106
|
+
|
107
|
+
self.attribute_map = {
|
108
|
+
'protocol': 'protocol',
|
109
|
+
'port': 'port',
|
110
|
+
'retries': 'retries',
|
111
|
+
'timeout_in_millis': 'timeoutInMillis',
|
112
|
+
'interval_in_millis': 'intervalInMillis',
|
113
|
+
'url_path': 'urlPath',
|
114
|
+
'response_body_regex': 'responseBodyRegex',
|
115
|
+
'return_code': 'returnCode',
|
116
|
+
'request_data': 'requestData',
|
117
|
+
'response_data': 'responseData',
|
118
|
+
'dns': 'dns'
|
119
|
+
}
|
120
|
+
|
121
|
+
self._protocol = None
|
122
|
+
self._port = None
|
123
|
+
self._retries = None
|
124
|
+
self._timeout_in_millis = None
|
125
|
+
self._interval_in_millis = None
|
126
|
+
self._url_path = None
|
127
|
+
self._response_body_regex = None
|
128
|
+
self._return_code = None
|
129
|
+
self._request_data = None
|
130
|
+
self._response_data = None
|
131
|
+
self._dns = None
|
132
|
+
|
133
|
+
@property
|
134
|
+
def protocol(self):
|
135
|
+
"""
|
136
|
+
**[Required]** Gets the protocol of this HealthChecker.
|
137
|
+
The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP.
|
138
|
+
|
139
|
+
Example: `HTTP`
|
140
|
+
|
141
|
+
Allowed values for this property are: "HTTP", "HTTPS", "TCP", "UDP", "DNS", 'UNKNOWN_ENUM_VALUE'.
|
142
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
143
|
+
|
144
|
+
|
145
|
+
:return: The protocol of this HealthChecker.
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._protocol
|
149
|
+
|
150
|
+
@protocol.setter
|
151
|
+
def protocol(self, protocol):
|
152
|
+
"""
|
153
|
+
Sets the protocol of this HealthChecker.
|
154
|
+
The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP.
|
155
|
+
|
156
|
+
Example: `HTTP`
|
157
|
+
|
158
|
+
|
159
|
+
:param protocol: The protocol of this HealthChecker.
|
160
|
+
:type: str
|
161
|
+
"""
|
162
|
+
allowed_values = ["HTTP", "HTTPS", "TCP", "UDP", "DNS"]
|
163
|
+
if not value_allowed_none_or_none_sentinel(protocol, allowed_values):
|
164
|
+
protocol = 'UNKNOWN_ENUM_VALUE'
|
165
|
+
self._protocol = protocol
|
166
|
+
|
167
|
+
@property
|
168
|
+
def port(self):
|
169
|
+
"""
|
170
|
+
Gets the port of this HealthChecker.
|
171
|
+
The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the
|
172
|
+
port information from the `Backend` object. The port must be specified if the backend port is 0.
|
173
|
+
|
174
|
+
Example: `8080`
|
175
|
+
|
176
|
+
|
177
|
+
:return: The port of this HealthChecker.
|
178
|
+
:rtype: int
|
179
|
+
"""
|
180
|
+
return self._port
|
181
|
+
|
182
|
+
@port.setter
|
183
|
+
def port(self, port):
|
184
|
+
"""
|
185
|
+
Sets the port of this HealthChecker.
|
186
|
+
The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the
|
187
|
+
port information from the `Backend` object. The port must be specified if the backend port is 0.
|
188
|
+
|
189
|
+
Example: `8080`
|
190
|
+
|
191
|
+
|
192
|
+
:param port: The port of this HealthChecker.
|
193
|
+
:type: int
|
194
|
+
"""
|
195
|
+
self._port = port
|
196
|
+
|
197
|
+
@property
|
198
|
+
def retries(self):
|
199
|
+
"""
|
200
|
+
Gets the retries of this HealthChecker.
|
201
|
+
The number of retries to attempt before a backend server is considered \"unhealthy\". This number also applies
|
202
|
+
when recovering a server to the \"healthy\" state. The default value is 3.
|
203
|
+
|
204
|
+
Example: `3`
|
205
|
+
|
206
|
+
|
207
|
+
:return: The retries of this HealthChecker.
|
208
|
+
:rtype: int
|
209
|
+
"""
|
210
|
+
return self._retries
|
211
|
+
|
212
|
+
@retries.setter
|
213
|
+
def retries(self, retries):
|
214
|
+
"""
|
215
|
+
Sets the retries of this HealthChecker.
|
216
|
+
The number of retries to attempt before a backend server is considered \"unhealthy\". This number also applies
|
217
|
+
when recovering a server to the \"healthy\" state. The default value is 3.
|
218
|
+
|
219
|
+
Example: `3`
|
220
|
+
|
221
|
+
|
222
|
+
:param retries: The retries of this HealthChecker.
|
223
|
+
:type: int
|
224
|
+
"""
|
225
|
+
self._retries = retries
|
226
|
+
|
227
|
+
@property
|
228
|
+
def timeout_in_millis(self):
|
229
|
+
"""
|
230
|
+
Gets the timeout_in_millis of this HealthChecker.
|
231
|
+
The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
|
232
|
+
returns within this timeout period. The default value is 3000 (3 seconds).
|
233
|
+
|
234
|
+
Example: `3000`
|
235
|
+
|
236
|
+
|
237
|
+
:return: The timeout_in_millis of this HealthChecker.
|
238
|
+
:rtype: int
|
239
|
+
"""
|
240
|
+
return self._timeout_in_millis
|
241
|
+
|
242
|
+
@timeout_in_millis.setter
|
243
|
+
def timeout_in_millis(self, timeout_in_millis):
|
244
|
+
"""
|
245
|
+
Sets the timeout_in_millis of this HealthChecker.
|
246
|
+
The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply
|
247
|
+
returns within this timeout period. The default value is 3000 (3 seconds).
|
248
|
+
|
249
|
+
Example: `3000`
|
250
|
+
|
251
|
+
|
252
|
+
:param timeout_in_millis: The timeout_in_millis of this HealthChecker.
|
253
|
+
:type: int
|
254
|
+
"""
|
255
|
+
self._timeout_in_millis = timeout_in_millis
|
256
|
+
|
257
|
+
@property
|
258
|
+
def interval_in_millis(self):
|
259
|
+
"""
|
260
|
+
Gets the interval_in_millis of this HealthChecker.
|
261
|
+
The interval between health checks, in milliseconds. The default value is 10000 (10 seconds).
|
262
|
+
|
263
|
+
Example: `10000`
|
264
|
+
|
265
|
+
|
266
|
+
:return: The interval_in_millis of this HealthChecker.
|
267
|
+
:rtype: int
|
268
|
+
"""
|
269
|
+
return self._interval_in_millis
|
270
|
+
|
271
|
+
@interval_in_millis.setter
|
272
|
+
def interval_in_millis(self, interval_in_millis):
|
273
|
+
"""
|
274
|
+
Sets the interval_in_millis of this HealthChecker.
|
275
|
+
The interval between health checks, in milliseconds. The default value is 10000 (10 seconds).
|
276
|
+
|
277
|
+
Example: `10000`
|
278
|
+
|
279
|
+
|
280
|
+
:param interval_in_millis: The interval_in_millis of this HealthChecker.
|
281
|
+
:type: int
|
282
|
+
"""
|
283
|
+
self._interval_in_millis = interval_in_millis
|
284
|
+
|
285
|
+
@property
|
286
|
+
def url_path(self):
|
287
|
+
"""
|
288
|
+
Gets the url_path of this HealthChecker.
|
289
|
+
The path against which to run the health check.
|
290
|
+
|
291
|
+
Example: `/healthcheck`
|
292
|
+
|
293
|
+
|
294
|
+
:return: The url_path of this HealthChecker.
|
295
|
+
:rtype: str
|
296
|
+
"""
|
297
|
+
return self._url_path
|
298
|
+
|
299
|
+
@url_path.setter
|
300
|
+
def url_path(self, url_path):
|
301
|
+
"""
|
302
|
+
Sets the url_path of this HealthChecker.
|
303
|
+
The path against which to run the health check.
|
304
|
+
|
305
|
+
Example: `/healthcheck`
|
306
|
+
|
307
|
+
|
308
|
+
:param url_path: The url_path of this HealthChecker.
|
309
|
+
:type: str
|
310
|
+
"""
|
311
|
+
self._url_path = url_path
|
312
|
+
|
313
|
+
@property
|
314
|
+
def response_body_regex(self):
|
315
|
+
"""
|
316
|
+
Gets the response_body_regex of this HealthChecker.
|
317
|
+
A regular expression for parsing the response body from the backend server.
|
318
|
+
|
319
|
+
Example: `^((?!false).|\\s)*$`
|
320
|
+
|
321
|
+
|
322
|
+
:return: The response_body_regex of this HealthChecker.
|
323
|
+
:rtype: str
|
324
|
+
"""
|
325
|
+
return self._response_body_regex
|
326
|
+
|
327
|
+
@response_body_regex.setter
|
328
|
+
def response_body_regex(self, response_body_regex):
|
329
|
+
"""
|
330
|
+
Sets the response_body_regex of this HealthChecker.
|
331
|
+
A regular expression for parsing the response body from the backend server.
|
332
|
+
|
333
|
+
Example: `^((?!false).|\\s)*$`
|
334
|
+
|
335
|
+
|
336
|
+
:param response_body_regex: The response_body_regex of this HealthChecker.
|
337
|
+
:type: str
|
338
|
+
"""
|
339
|
+
self._response_body_regex = response_body_regex
|
340
|
+
|
341
|
+
@property
|
342
|
+
def return_code(self):
|
343
|
+
"""
|
344
|
+
Gets the return_code of this HealthChecker.
|
345
|
+
The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol,
|
346
|
+
then you can use common HTTP status codes such as \"200\".
|
347
|
+
|
348
|
+
Example: `200`
|
349
|
+
|
350
|
+
|
351
|
+
:return: The return_code of this HealthChecker.
|
352
|
+
:rtype: int
|
353
|
+
"""
|
354
|
+
return self._return_code
|
355
|
+
|
356
|
+
@return_code.setter
|
357
|
+
def return_code(self, return_code):
|
358
|
+
"""
|
359
|
+
Sets the return_code of this HealthChecker.
|
360
|
+
The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol,
|
361
|
+
then you can use common HTTP status codes such as \"200\".
|
362
|
+
|
363
|
+
Example: `200`
|
364
|
+
|
365
|
+
|
366
|
+
:param return_code: The return_code of this HealthChecker.
|
367
|
+
:type: int
|
368
|
+
"""
|
369
|
+
self._return_code = return_code
|
370
|
+
|
371
|
+
@property
|
372
|
+
def request_data(self):
|
373
|
+
"""
|
374
|
+
Gets the request_data of this HealthChecker.
|
375
|
+
Base64 encoded pattern to be sent as UDP or TCP health check probe.
|
376
|
+
|
377
|
+
|
378
|
+
:return: The request_data of this HealthChecker.
|
379
|
+
:rtype: str
|
380
|
+
"""
|
381
|
+
return self._request_data
|
382
|
+
|
383
|
+
@request_data.setter
|
384
|
+
def request_data(self, request_data):
|
385
|
+
"""
|
386
|
+
Sets the request_data of this HealthChecker.
|
387
|
+
Base64 encoded pattern to be sent as UDP or TCP health check probe.
|
388
|
+
|
389
|
+
|
390
|
+
:param request_data: The request_data of this HealthChecker.
|
391
|
+
:type: str
|
392
|
+
"""
|
393
|
+
self._request_data = request_data
|
394
|
+
|
395
|
+
@property
|
396
|
+
def response_data(self):
|
397
|
+
"""
|
398
|
+
Gets the response_data of this HealthChecker.
|
399
|
+
Base64 encoded pattern to be validated as UDP or TCP health check probe response.
|
400
|
+
|
401
|
+
|
402
|
+
:return: The response_data of this HealthChecker.
|
403
|
+
:rtype: str
|
404
|
+
"""
|
405
|
+
return self._response_data
|
406
|
+
|
407
|
+
@response_data.setter
|
408
|
+
def response_data(self, response_data):
|
409
|
+
"""
|
410
|
+
Sets the response_data of this HealthChecker.
|
411
|
+
Base64 encoded pattern to be validated as UDP or TCP health check probe response.
|
412
|
+
|
413
|
+
|
414
|
+
:param response_data: The response_data of this HealthChecker.
|
415
|
+
:type: str
|
416
|
+
"""
|
417
|
+
self._response_data = response_data
|
418
|
+
|
419
|
+
@property
|
420
|
+
def dns(self):
|
421
|
+
"""
|
422
|
+
Gets the dns of this HealthChecker.
|
423
|
+
|
424
|
+
:return: The dns of this HealthChecker.
|
425
|
+
:rtype: oci.network_load_balancer.models.DnsHealthCheckerDetails
|
426
|
+
"""
|
427
|
+
return self._dns
|
428
|
+
|
429
|
+
@dns.setter
|
430
|
+
def dns(self, dns):
|
431
|
+
"""
|
432
|
+
Sets the dns of this HealthChecker.
|
433
|
+
|
434
|
+
:param dns: The dns of this HealthChecker.
|
435
|
+
:type: oci.network_load_balancer.models.DnsHealthCheckerDetails
|
436
|
+
"""
|
437
|
+
self._dns = dns
|
438
|
+
|
439
|
+
def __repr__(self):
|
440
|
+
return formatted_flat_dict(self)
|
441
|
+
|
442
|
+
def __eq__(self, other):
|
443
|
+
if other is None:
|
444
|
+
return False
|
445
|
+
|
446
|
+
return self.__dict__ == other.__dict__
|
447
|
+
|
448
|
+
def __ne__(self, other):
|
449
|
+
return not self == other
|