mv-oci-sdk 2.142.0__py3-none-any.whl → 2.142.0.1__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.1.dist-info}/METADATA +3 -3
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/RECORD +197 -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/version.py +1 -1
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/LICENSE.txt +0 -0
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/WHEEL +0 -0
- {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,350 @@
|
|
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: 20170115
|
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 Backend(object):
|
14
|
+
"""
|
15
|
+
The configuration of a backend server that is a member of a load balancer backend set.
|
16
|
+
For more information, see `Managing Backend Servers`__.
|
17
|
+
|
18
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm
|
19
|
+
"""
|
20
|
+
|
21
|
+
def __init__(self, **kwargs):
|
22
|
+
"""
|
23
|
+
Initializes a new Backend object with values from keyword arguments.
|
24
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
25
|
+
|
26
|
+
:param name:
|
27
|
+
The value to assign to the name property of this Backend.
|
28
|
+
:type name: str
|
29
|
+
|
30
|
+
:param ip_address:
|
31
|
+
The value to assign to the ip_address property of this Backend.
|
32
|
+
:type ip_address: str
|
33
|
+
|
34
|
+
:param port:
|
35
|
+
The value to assign to the port property of this Backend.
|
36
|
+
:type port: int
|
37
|
+
|
38
|
+
:param weight:
|
39
|
+
The value to assign to the weight property of this Backend.
|
40
|
+
:type weight: int
|
41
|
+
|
42
|
+
:param max_connections:
|
43
|
+
The value to assign to the max_connections property of this Backend.
|
44
|
+
:type max_connections: int
|
45
|
+
|
46
|
+
:param drain:
|
47
|
+
The value to assign to the drain property of this Backend.
|
48
|
+
:type drain: bool
|
49
|
+
|
50
|
+
:param backup:
|
51
|
+
The value to assign to the backup property of this Backend.
|
52
|
+
:type backup: bool
|
53
|
+
|
54
|
+
:param offline:
|
55
|
+
The value to assign to the offline property of this Backend.
|
56
|
+
:type offline: bool
|
57
|
+
|
58
|
+
"""
|
59
|
+
self.swagger_types = {
|
60
|
+
'name': 'str',
|
61
|
+
'ip_address': 'str',
|
62
|
+
'port': 'int',
|
63
|
+
'weight': 'int',
|
64
|
+
'max_connections': 'int',
|
65
|
+
'drain': 'bool',
|
66
|
+
'backup': 'bool',
|
67
|
+
'offline': 'bool'
|
68
|
+
}
|
69
|
+
|
70
|
+
self.attribute_map = {
|
71
|
+
'name': 'name',
|
72
|
+
'ip_address': 'ipAddress',
|
73
|
+
'port': 'port',
|
74
|
+
'weight': 'weight',
|
75
|
+
'max_connections': 'maxConnections',
|
76
|
+
'drain': 'drain',
|
77
|
+
'backup': 'backup',
|
78
|
+
'offline': 'offline'
|
79
|
+
}
|
80
|
+
|
81
|
+
self._name = None
|
82
|
+
self._ip_address = None
|
83
|
+
self._port = None
|
84
|
+
self._weight = None
|
85
|
+
self._max_connections = None
|
86
|
+
self._drain = None
|
87
|
+
self._backup = None
|
88
|
+
self._offline = None
|
89
|
+
|
90
|
+
@property
|
91
|
+
def name(self):
|
92
|
+
"""
|
93
|
+
**[Required]** Gets the name of this Backend.
|
94
|
+
A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
|
95
|
+
|
96
|
+
Example: `10.0.0.3:8080`
|
97
|
+
|
98
|
+
|
99
|
+
:return: The name of this Backend.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._name
|
103
|
+
|
104
|
+
@name.setter
|
105
|
+
def name(self, name):
|
106
|
+
"""
|
107
|
+
Sets the name of this Backend.
|
108
|
+
A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
|
109
|
+
|
110
|
+
Example: `10.0.0.3:8080`
|
111
|
+
|
112
|
+
|
113
|
+
:param name: The name of this Backend.
|
114
|
+
:type: str
|
115
|
+
"""
|
116
|
+
self._name = name
|
117
|
+
|
118
|
+
@property
|
119
|
+
def ip_address(self):
|
120
|
+
"""
|
121
|
+
**[Required]** Gets the ip_address of this Backend.
|
122
|
+
The IP address of the backend server.
|
123
|
+
|
124
|
+
Example: `10.0.0.3`
|
125
|
+
|
126
|
+
|
127
|
+
:return: The ip_address of this Backend.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._ip_address
|
131
|
+
|
132
|
+
@ip_address.setter
|
133
|
+
def ip_address(self, ip_address):
|
134
|
+
"""
|
135
|
+
Sets the ip_address of this Backend.
|
136
|
+
The IP address of the backend server.
|
137
|
+
|
138
|
+
Example: `10.0.0.3`
|
139
|
+
|
140
|
+
|
141
|
+
:param ip_address: The ip_address of this Backend.
|
142
|
+
:type: str
|
143
|
+
"""
|
144
|
+
self._ip_address = ip_address
|
145
|
+
|
146
|
+
@property
|
147
|
+
def port(self):
|
148
|
+
"""
|
149
|
+
**[Required]** Gets the port of this Backend.
|
150
|
+
The communication port for the backend server.
|
151
|
+
|
152
|
+
Example: `8080`
|
153
|
+
|
154
|
+
|
155
|
+
:return: The port of this Backend.
|
156
|
+
:rtype: int
|
157
|
+
"""
|
158
|
+
return self._port
|
159
|
+
|
160
|
+
@port.setter
|
161
|
+
def port(self, port):
|
162
|
+
"""
|
163
|
+
Sets the port of this Backend.
|
164
|
+
The communication port for the backend server.
|
165
|
+
|
166
|
+
Example: `8080`
|
167
|
+
|
168
|
+
|
169
|
+
:param port: The port of this Backend.
|
170
|
+
:type: int
|
171
|
+
"""
|
172
|
+
self._port = port
|
173
|
+
|
174
|
+
@property
|
175
|
+
def weight(self):
|
176
|
+
"""
|
177
|
+
**[Required]** Gets the weight of this Backend.
|
178
|
+
The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
179
|
+
proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
180
|
+
as a server weighted '1'.
|
181
|
+
For more information on load balancing policies, see
|
182
|
+
`How Load Balancing Policies Work`__.
|
183
|
+
|
184
|
+
Example: `3`
|
185
|
+
|
186
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
|
187
|
+
|
188
|
+
|
189
|
+
:return: The weight of this Backend.
|
190
|
+
:rtype: int
|
191
|
+
"""
|
192
|
+
return self._weight
|
193
|
+
|
194
|
+
@weight.setter
|
195
|
+
def weight(self, weight):
|
196
|
+
"""
|
197
|
+
Sets the weight of this Backend.
|
198
|
+
The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
199
|
+
proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
200
|
+
as a server weighted '1'.
|
201
|
+
For more information on load balancing policies, see
|
202
|
+
`How Load Balancing Policies Work`__.
|
203
|
+
|
204
|
+
Example: `3`
|
205
|
+
|
206
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
|
207
|
+
|
208
|
+
|
209
|
+
:param weight: The weight of this Backend.
|
210
|
+
:type: int
|
211
|
+
"""
|
212
|
+
self._weight = weight
|
213
|
+
|
214
|
+
@property
|
215
|
+
def max_connections(self):
|
216
|
+
"""
|
217
|
+
Gets the max_connections of this Backend.
|
218
|
+
The maximum number of simultaneous connections the load balancer can make to the backend.
|
219
|
+
If this is not set then the maximum number of simultaneous connections the load balancer
|
220
|
+
can make to the backend is unlimited.
|
221
|
+
|
222
|
+
Example: `300`
|
223
|
+
|
224
|
+
|
225
|
+
:return: The max_connections of this Backend.
|
226
|
+
:rtype: int
|
227
|
+
"""
|
228
|
+
return self._max_connections
|
229
|
+
|
230
|
+
@max_connections.setter
|
231
|
+
def max_connections(self, max_connections):
|
232
|
+
"""
|
233
|
+
Sets the max_connections of this Backend.
|
234
|
+
The maximum number of simultaneous connections the load balancer can make to the backend.
|
235
|
+
If this is not set then the maximum number of simultaneous connections the load balancer
|
236
|
+
can make to the backend is unlimited.
|
237
|
+
|
238
|
+
Example: `300`
|
239
|
+
|
240
|
+
|
241
|
+
:param max_connections: The max_connections of this Backend.
|
242
|
+
:type: int
|
243
|
+
"""
|
244
|
+
self._max_connections = max_connections
|
245
|
+
|
246
|
+
@property
|
247
|
+
def drain(self):
|
248
|
+
"""
|
249
|
+
**[Required]** Gets the drain of this Backend.
|
250
|
+
Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
251
|
+
incoming traffic.
|
252
|
+
|
253
|
+
Example: `false`
|
254
|
+
|
255
|
+
|
256
|
+
:return: The drain of this Backend.
|
257
|
+
:rtype: bool
|
258
|
+
"""
|
259
|
+
return self._drain
|
260
|
+
|
261
|
+
@drain.setter
|
262
|
+
def drain(self, drain):
|
263
|
+
"""
|
264
|
+
Sets the drain of this Backend.
|
265
|
+
Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
266
|
+
incoming traffic.
|
267
|
+
|
268
|
+
Example: `false`
|
269
|
+
|
270
|
+
|
271
|
+
:param drain: The drain of this Backend.
|
272
|
+
:type: bool
|
273
|
+
"""
|
274
|
+
self._drain = drain
|
275
|
+
|
276
|
+
@property
|
277
|
+
def backup(self):
|
278
|
+
"""
|
279
|
+
**[Required]** Gets the backup of this Backend.
|
280
|
+
Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
281
|
+
traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
282
|
+
|
283
|
+
**Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
|
284
|
+
|
285
|
+
Example: `false`
|
286
|
+
|
287
|
+
|
288
|
+
:return: The backup of this Backend.
|
289
|
+
:rtype: bool
|
290
|
+
"""
|
291
|
+
return self._backup
|
292
|
+
|
293
|
+
@backup.setter
|
294
|
+
def backup(self, backup):
|
295
|
+
"""
|
296
|
+
Sets the backup of this Backend.
|
297
|
+
Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
298
|
+
traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
299
|
+
|
300
|
+
**Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
|
301
|
+
|
302
|
+
Example: `false`
|
303
|
+
|
304
|
+
|
305
|
+
:param backup: The backup of this Backend.
|
306
|
+
:type: bool
|
307
|
+
"""
|
308
|
+
self._backup = backup
|
309
|
+
|
310
|
+
@property
|
311
|
+
def offline(self):
|
312
|
+
"""
|
313
|
+
**[Required]** Gets the offline of this Backend.
|
314
|
+
Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
315
|
+
traffic.
|
316
|
+
|
317
|
+
Example: `false`
|
318
|
+
|
319
|
+
|
320
|
+
:return: The offline of this Backend.
|
321
|
+
:rtype: bool
|
322
|
+
"""
|
323
|
+
return self._offline
|
324
|
+
|
325
|
+
@offline.setter
|
326
|
+
def offline(self, offline):
|
327
|
+
"""
|
328
|
+
Sets the offline of this Backend.
|
329
|
+
Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
330
|
+
traffic.
|
331
|
+
|
332
|
+
Example: `false`
|
333
|
+
|
334
|
+
|
335
|
+
:param offline: The offline of this Backend.
|
336
|
+
:type: bool
|
337
|
+
"""
|
338
|
+
self._offline = offline
|
339
|
+
|
340
|
+
def __repr__(self):
|
341
|
+
return formatted_flat_dict(self)
|
342
|
+
|
343
|
+
def __eq__(self, other):
|
344
|
+
if other is None:
|
345
|
+
return False
|
346
|
+
|
347
|
+
return self.__dict__ == other.__dict__
|
348
|
+
|
349
|
+
def __ne__(self, other):
|
350
|
+
return not self == other
|
@@ -0,0 +1,312 @@
|
|
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: 20170115
|
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 BackendDetails(object):
|
14
|
+
"""
|
15
|
+
The load balancing configuration details of a backend server.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new BackendDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param ip_address:
|
24
|
+
The value to assign to the ip_address property of this BackendDetails.
|
25
|
+
:type ip_address: str
|
26
|
+
|
27
|
+
:param port:
|
28
|
+
The value to assign to the port property of this BackendDetails.
|
29
|
+
:type port: int
|
30
|
+
|
31
|
+
:param weight:
|
32
|
+
The value to assign to the weight property of this BackendDetails.
|
33
|
+
:type weight: int
|
34
|
+
|
35
|
+
:param max_connections:
|
36
|
+
The value to assign to the max_connections property of this BackendDetails.
|
37
|
+
:type max_connections: int
|
38
|
+
|
39
|
+
:param backup:
|
40
|
+
The value to assign to the backup property of this BackendDetails.
|
41
|
+
:type backup: bool
|
42
|
+
|
43
|
+
:param drain:
|
44
|
+
The value to assign to the drain property of this BackendDetails.
|
45
|
+
:type drain: bool
|
46
|
+
|
47
|
+
:param offline:
|
48
|
+
The value to assign to the offline property of this BackendDetails.
|
49
|
+
:type offline: bool
|
50
|
+
|
51
|
+
"""
|
52
|
+
self.swagger_types = {
|
53
|
+
'ip_address': 'str',
|
54
|
+
'port': 'int',
|
55
|
+
'weight': 'int',
|
56
|
+
'max_connections': 'int',
|
57
|
+
'backup': 'bool',
|
58
|
+
'drain': 'bool',
|
59
|
+
'offline': 'bool'
|
60
|
+
}
|
61
|
+
|
62
|
+
self.attribute_map = {
|
63
|
+
'ip_address': 'ipAddress',
|
64
|
+
'port': 'port',
|
65
|
+
'weight': 'weight',
|
66
|
+
'max_connections': 'maxConnections',
|
67
|
+
'backup': 'backup',
|
68
|
+
'drain': 'drain',
|
69
|
+
'offline': 'offline'
|
70
|
+
}
|
71
|
+
|
72
|
+
self._ip_address = None
|
73
|
+
self._port = None
|
74
|
+
self._weight = None
|
75
|
+
self._max_connections = None
|
76
|
+
self._backup = None
|
77
|
+
self._drain = None
|
78
|
+
self._offline = None
|
79
|
+
|
80
|
+
@property
|
81
|
+
def ip_address(self):
|
82
|
+
"""
|
83
|
+
**[Required]** Gets the ip_address of this BackendDetails.
|
84
|
+
The IP address of the backend server.
|
85
|
+
|
86
|
+
Example: `10.0.0.3`
|
87
|
+
|
88
|
+
|
89
|
+
:return: The ip_address of this BackendDetails.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._ip_address
|
93
|
+
|
94
|
+
@ip_address.setter
|
95
|
+
def ip_address(self, ip_address):
|
96
|
+
"""
|
97
|
+
Sets the ip_address of this BackendDetails.
|
98
|
+
The IP address of the backend server.
|
99
|
+
|
100
|
+
Example: `10.0.0.3`
|
101
|
+
|
102
|
+
|
103
|
+
:param ip_address: The ip_address of this BackendDetails.
|
104
|
+
:type: str
|
105
|
+
"""
|
106
|
+
self._ip_address = ip_address
|
107
|
+
|
108
|
+
@property
|
109
|
+
def port(self):
|
110
|
+
"""
|
111
|
+
**[Required]** Gets the port of this BackendDetails.
|
112
|
+
The communication port for the backend server.
|
113
|
+
|
114
|
+
Example: `8080`
|
115
|
+
|
116
|
+
|
117
|
+
:return: The port of this BackendDetails.
|
118
|
+
:rtype: int
|
119
|
+
"""
|
120
|
+
return self._port
|
121
|
+
|
122
|
+
@port.setter
|
123
|
+
def port(self, port):
|
124
|
+
"""
|
125
|
+
Sets the port of this BackendDetails.
|
126
|
+
The communication port for the backend server.
|
127
|
+
|
128
|
+
Example: `8080`
|
129
|
+
|
130
|
+
|
131
|
+
:param port: The port of this BackendDetails.
|
132
|
+
:type: int
|
133
|
+
"""
|
134
|
+
self._port = port
|
135
|
+
|
136
|
+
@property
|
137
|
+
def weight(self):
|
138
|
+
"""
|
139
|
+
Gets the weight of this BackendDetails.
|
140
|
+
The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
141
|
+
proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
142
|
+
as a server weighted '1'.
|
143
|
+
For more information on load balancing policies, see
|
144
|
+
`How Load Balancing Policies Work`__.
|
145
|
+
|
146
|
+
Example: `3`
|
147
|
+
|
148
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
|
149
|
+
|
150
|
+
|
151
|
+
:return: The weight of this BackendDetails.
|
152
|
+
:rtype: int
|
153
|
+
"""
|
154
|
+
return self._weight
|
155
|
+
|
156
|
+
@weight.setter
|
157
|
+
def weight(self, weight):
|
158
|
+
"""
|
159
|
+
Sets the weight of this BackendDetails.
|
160
|
+
The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
|
161
|
+
proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
|
162
|
+
as a server weighted '1'.
|
163
|
+
For more information on load balancing policies, see
|
164
|
+
`How Load Balancing Policies Work`__.
|
165
|
+
|
166
|
+
Example: `3`
|
167
|
+
|
168
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
|
169
|
+
|
170
|
+
|
171
|
+
:param weight: The weight of this BackendDetails.
|
172
|
+
:type: int
|
173
|
+
"""
|
174
|
+
self._weight = weight
|
175
|
+
|
176
|
+
@property
|
177
|
+
def max_connections(self):
|
178
|
+
"""
|
179
|
+
Gets the max_connections of this BackendDetails.
|
180
|
+
The maximum number of simultaneous connections the load balancer can make to the backend.
|
181
|
+
If this is not set then the maximum number of simultaneous connections the load balancer
|
182
|
+
can make to the backend is unlimited.
|
183
|
+
|
184
|
+
Example: `300`
|
185
|
+
|
186
|
+
|
187
|
+
:return: The max_connections of this BackendDetails.
|
188
|
+
:rtype: int
|
189
|
+
"""
|
190
|
+
return self._max_connections
|
191
|
+
|
192
|
+
@max_connections.setter
|
193
|
+
def max_connections(self, max_connections):
|
194
|
+
"""
|
195
|
+
Sets the max_connections of this BackendDetails.
|
196
|
+
The maximum number of simultaneous connections the load balancer can make to the backend.
|
197
|
+
If this is not set then the maximum number of simultaneous connections the load balancer
|
198
|
+
can make to the backend is unlimited.
|
199
|
+
|
200
|
+
Example: `300`
|
201
|
+
|
202
|
+
|
203
|
+
:param max_connections: The max_connections of this BackendDetails.
|
204
|
+
:type: int
|
205
|
+
"""
|
206
|
+
self._max_connections = max_connections
|
207
|
+
|
208
|
+
@property
|
209
|
+
def backup(self):
|
210
|
+
"""
|
211
|
+
Gets the backup of this BackendDetails.
|
212
|
+
Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
213
|
+
traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
214
|
+
|
215
|
+
**Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
|
216
|
+
|
217
|
+
Example: `false`
|
218
|
+
|
219
|
+
|
220
|
+
:return: The backup of this BackendDetails.
|
221
|
+
:rtype: bool
|
222
|
+
"""
|
223
|
+
return self._backup
|
224
|
+
|
225
|
+
@backup.setter
|
226
|
+
def backup(self, backup):
|
227
|
+
"""
|
228
|
+
Sets the backup of this BackendDetails.
|
229
|
+
Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
|
230
|
+
traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
|
231
|
+
|
232
|
+
**Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
|
233
|
+
|
234
|
+
Example: `false`
|
235
|
+
|
236
|
+
|
237
|
+
:param backup: The backup of this BackendDetails.
|
238
|
+
:type: bool
|
239
|
+
"""
|
240
|
+
self._backup = backup
|
241
|
+
|
242
|
+
@property
|
243
|
+
def drain(self):
|
244
|
+
"""
|
245
|
+
Gets the drain of this BackendDetails.
|
246
|
+
Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
247
|
+
incoming traffic.
|
248
|
+
|
249
|
+
Example: `false`
|
250
|
+
|
251
|
+
|
252
|
+
:return: The drain of this BackendDetails.
|
253
|
+
:rtype: bool
|
254
|
+
"""
|
255
|
+
return self._drain
|
256
|
+
|
257
|
+
@drain.setter
|
258
|
+
def drain(self, drain):
|
259
|
+
"""
|
260
|
+
Sets the drain of this BackendDetails.
|
261
|
+
Whether the load balancer should drain this server. Servers marked \"drain\" receive no new
|
262
|
+
incoming traffic.
|
263
|
+
|
264
|
+
Example: `false`
|
265
|
+
|
266
|
+
|
267
|
+
:param drain: The drain of this BackendDetails.
|
268
|
+
:type: bool
|
269
|
+
"""
|
270
|
+
self._drain = drain
|
271
|
+
|
272
|
+
@property
|
273
|
+
def offline(self):
|
274
|
+
"""
|
275
|
+
Gets the offline of this BackendDetails.
|
276
|
+
Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
277
|
+
traffic.
|
278
|
+
|
279
|
+
Example: `false`
|
280
|
+
|
281
|
+
|
282
|
+
:return: The offline of this BackendDetails.
|
283
|
+
:rtype: bool
|
284
|
+
"""
|
285
|
+
return self._offline
|
286
|
+
|
287
|
+
@offline.setter
|
288
|
+
def offline(self, offline):
|
289
|
+
"""
|
290
|
+
Sets the offline of this BackendDetails.
|
291
|
+
Whether the load balancer should treat this server as offline. Offline servers receive no incoming
|
292
|
+
traffic.
|
293
|
+
|
294
|
+
Example: `false`
|
295
|
+
|
296
|
+
|
297
|
+
:param offline: The offline of this BackendDetails.
|
298
|
+
:type: bool
|
299
|
+
"""
|
300
|
+
self._offline = offline
|
301
|
+
|
302
|
+
def __repr__(self):
|
303
|
+
return formatted_flat_dict(self)
|
304
|
+
|
305
|
+
def __eq__(self, other):
|
306
|
+
if other is None:
|
307
|
+
return False
|
308
|
+
|
309
|
+
return self.__dict__ == other.__dict__
|
310
|
+
|
311
|
+
def __ne__(self, other):
|
312
|
+
return not self == other
|