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,177 @@
|
|
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 Rule(object):
|
14
|
+
"""
|
15
|
+
An object that represents an action to apply to a listener.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the action property of a Rule.
|
19
|
+
#: This constant has a value of "ADD_HTTP_REQUEST_HEADER"
|
20
|
+
ACTION_ADD_HTTP_REQUEST_HEADER = "ADD_HTTP_REQUEST_HEADER"
|
21
|
+
|
22
|
+
#: A constant which can be used with the action property of a Rule.
|
23
|
+
#: This constant has a value of "EXTEND_HTTP_REQUEST_HEADER_VALUE"
|
24
|
+
ACTION_EXTEND_HTTP_REQUEST_HEADER_VALUE = "EXTEND_HTTP_REQUEST_HEADER_VALUE"
|
25
|
+
|
26
|
+
#: A constant which can be used with the action property of a Rule.
|
27
|
+
#: This constant has a value of "REMOVE_HTTP_REQUEST_HEADER"
|
28
|
+
ACTION_REMOVE_HTTP_REQUEST_HEADER = "REMOVE_HTTP_REQUEST_HEADER"
|
29
|
+
|
30
|
+
#: A constant which can be used with the action property of a Rule.
|
31
|
+
#: This constant has a value of "ADD_HTTP_RESPONSE_HEADER"
|
32
|
+
ACTION_ADD_HTTP_RESPONSE_HEADER = "ADD_HTTP_RESPONSE_HEADER"
|
33
|
+
|
34
|
+
#: A constant which can be used with the action property of a Rule.
|
35
|
+
#: This constant has a value of "EXTEND_HTTP_RESPONSE_HEADER_VALUE"
|
36
|
+
ACTION_EXTEND_HTTP_RESPONSE_HEADER_VALUE = "EXTEND_HTTP_RESPONSE_HEADER_VALUE"
|
37
|
+
|
38
|
+
#: A constant which can be used with the action property of a Rule.
|
39
|
+
#: This constant has a value of "REMOVE_HTTP_RESPONSE_HEADER"
|
40
|
+
ACTION_REMOVE_HTTP_RESPONSE_HEADER = "REMOVE_HTTP_RESPONSE_HEADER"
|
41
|
+
|
42
|
+
#: A constant which can be used with the action property of a Rule.
|
43
|
+
#: This constant has a value of "ALLOW"
|
44
|
+
ACTION_ALLOW = "ALLOW"
|
45
|
+
|
46
|
+
#: A constant which can be used with the action property of a Rule.
|
47
|
+
#: This constant has a value of "CONTROL_ACCESS_USING_HTTP_METHODS"
|
48
|
+
ACTION_CONTROL_ACCESS_USING_HTTP_METHODS = "CONTROL_ACCESS_USING_HTTP_METHODS"
|
49
|
+
|
50
|
+
#: A constant which can be used with the action property of a Rule.
|
51
|
+
#: This constant has a value of "REDIRECT"
|
52
|
+
ACTION_REDIRECT = "REDIRECT"
|
53
|
+
|
54
|
+
#: A constant which can be used with the action property of a Rule.
|
55
|
+
#: This constant has a value of "HTTP_HEADER"
|
56
|
+
ACTION_HTTP_HEADER = "HTTP_HEADER"
|
57
|
+
|
58
|
+
#: A constant which can be used with the action property of a Rule.
|
59
|
+
#: This constant has a value of "IP_BASED_MAX_CONNECTIONS"
|
60
|
+
ACTION_IP_BASED_MAX_CONNECTIONS = "IP_BASED_MAX_CONNECTIONS"
|
61
|
+
|
62
|
+
def __init__(self, **kwargs):
|
63
|
+
"""
|
64
|
+
Initializes a new Rule object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
65
|
+
to a service operations then you should favor using a subclass over the base class:
|
66
|
+
|
67
|
+
* :class:`~oci.load_balancer.models.AddHttpRequestHeaderRule`
|
68
|
+
* :class:`~oci.load_balancer.models.RedirectRule`
|
69
|
+
* :class:`~oci.load_balancer.models.RemoveHttpRequestHeaderRule`
|
70
|
+
* :class:`~oci.load_balancer.models.ExtendHttpRequestHeaderValueRule`
|
71
|
+
* :class:`~oci.load_balancer.models.RemoveHttpResponseHeaderRule`
|
72
|
+
* :class:`~oci.load_balancer.models.ControlAccessUsingHttpMethodsRule`
|
73
|
+
* :class:`~oci.load_balancer.models.AllowRule`
|
74
|
+
* :class:`~oci.load_balancer.models.IpBasedMaxConnectionsRule`
|
75
|
+
* :class:`~oci.load_balancer.models.HttpHeaderRule`
|
76
|
+
* :class:`~oci.load_balancer.models.AddHttpResponseHeaderRule`
|
77
|
+
* :class:`~oci.load_balancer.models.ExtendHttpResponseHeaderValueRule`
|
78
|
+
|
79
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
80
|
+
|
81
|
+
:param action:
|
82
|
+
The value to assign to the action property of this Rule.
|
83
|
+
Allowed values for this property are: "ADD_HTTP_REQUEST_HEADER", "EXTEND_HTTP_REQUEST_HEADER_VALUE", "REMOVE_HTTP_REQUEST_HEADER", "ADD_HTTP_RESPONSE_HEADER", "EXTEND_HTTP_RESPONSE_HEADER_VALUE", "REMOVE_HTTP_RESPONSE_HEADER", "ALLOW", "CONTROL_ACCESS_USING_HTTP_METHODS", "REDIRECT", "HTTP_HEADER", "IP_BASED_MAX_CONNECTIONS", 'UNKNOWN_ENUM_VALUE'.
|
84
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
85
|
+
:type action: str
|
86
|
+
|
87
|
+
"""
|
88
|
+
self.swagger_types = {
|
89
|
+
'action': 'str'
|
90
|
+
}
|
91
|
+
|
92
|
+
self.attribute_map = {
|
93
|
+
'action': 'action'
|
94
|
+
}
|
95
|
+
|
96
|
+
self._action = None
|
97
|
+
|
98
|
+
@staticmethod
|
99
|
+
def get_subtype(object_dictionary):
|
100
|
+
"""
|
101
|
+
Given the hash representation of a subtype of this class,
|
102
|
+
use the info in the hash to return the class of the subtype.
|
103
|
+
"""
|
104
|
+
type = object_dictionary['action']
|
105
|
+
|
106
|
+
if type == 'ADD_HTTP_REQUEST_HEADER':
|
107
|
+
return 'AddHttpRequestHeaderRule'
|
108
|
+
|
109
|
+
if type == 'REDIRECT':
|
110
|
+
return 'RedirectRule'
|
111
|
+
|
112
|
+
if type == 'REMOVE_HTTP_REQUEST_HEADER':
|
113
|
+
return 'RemoveHttpRequestHeaderRule'
|
114
|
+
|
115
|
+
if type == 'EXTEND_HTTP_REQUEST_HEADER_VALUE':
|
116
|
+
return 'ExtendHttpRequestHeaderValueRule'
|
117
|
+
|
118
|
+
if type == 'REMOVE_HTTP_RESPONSE_HEADER':
|
119
|
+
return 'RemoveHttpResponseHeaderRule'
|
120
|
+
|
121
|
+
if type == 'CONTROL_ACCESS_USING_HTTP_METHODS':
|
122
|
+
return 'ControlAccessUsingHttpMethodsRule'
|
123
|
+
|
124
|
+
if type == 'ALLOW':
|
125
|
+
return 'AllowRule'
|
126
|
+
|
127
|
+
if type == 'IP_BASED_MAX_CONNECTIONS':
|
128
|
+
return 'IpBasedMaxConnectionsRule'
|
129
|
+
|
130
|
+
if type == 'HTTP_HEADER':
|
131
|
+
return 'HttpHeaderRule'
|
132
|
+
|
133
|
+
if type == 'ADD_HTTP_RESPONSE_HEADER':
|
134
|
+
return 'AddHttpResponseHeaderRule'
|
135
|
+
|
136
|
+
if type == 'EXTEND_HTTP_RESPONSE_HEADER_VALUE':
|
137
|
+
return 'ExtendHttpResponseHeaderValueRule'
|
138
|
+
else:
|
139
|
+
return 'Rule'
|
140
|
+
|
141
|
+
@property
|
142
|
+
def action(self):
|
143
|
+
"""
|
144
|
+
**[Required]** Gets the action of this Rule.
|
145
|
+
Allowed values for this property are: "ADD_HTTP_REQUEST_HEADER", "EXTEND_HTTP_REQUEST_HEADER_VALUE", "REMOVE_HTTP_REQUEST_HEADER", "ADD_HTTP_RESPONSE_HEADER", "EXTEND_HTTP_RESPONSE_HEADER_VALUE", "REMOVE_HTTP_RESPONSE_HEADER", "ALLOW", "CONTROL_ACCESS_USING_HTTP_METHODS", "REDIRECT", "HTTP_HEADER", "IP_BASED_MAX_CONNECTIONS", 'UNKNOWN_ENUM_VALUE'.
|
146
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
147
|
+
|
148
|
+
|
149
|
+
:return: The action of this Rule.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._action
|
153
|
+
|
154
|
+
@action.setter
|
155
|
+
def action(self, action):
|
156
|
+
"""
|
157
|
+
Sets the action of this Rule.
|
158
|
+
|
159
|
+
:param action: The action of this Rule.
|
160
|
+
:type: str
|
161
|
+
"""
|
162
|
+
allowed_values = ["ADD_HTTP_REQUEST_HEADER", "EXTEND_HTTP_REQUEST_HEADER_VALUE", "REMOVE_HTTP_REQUEST_HEADER", "ADD_HTTP_RESPONSE_HEADER", "EXTEND_HTTP_RESPONSE_HEADER_VALUE", "REMOVE_HTTP_RESPONSE_HEADER", "ALLOW", "CONTROL_ACCESS_USING_HTTP_METHODS", "REDIRECT", "HTTP_HEADER", "IP_BASED_MAX_CONNECTIONS"]
|
163
|
+
if not value_allowed_none_or_none_sentinel(action, allowed_values):
|
164
|
+
action = 'UNKNOWN_ENUM_VALUE'
|
165
|
+
self._action = action
|
166
|
+
|
167
|
+
def __repr__(self):
|
168
|
+
return formatted_flat_dict(self)
|
169
|
+
|
170
|
+
def __eq__(self, other):
|
171
|
+
if other is None:
|
172
|
+
return False
|
173
|
+
|
174
|
+
return self.__dict__ == other.__dict__
|
175
|
+
|
176
|
+
def __ne__(self, other):
|
177
|
+
return not self == other
|
@@ -0,0 +1,121 @@
|
|
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 RuleCondition(object):
|
14
|
+
"""
|
15
|
+
A condition to apply to an access control rule.
|
16
|
+
"""
|
17
|
+
|
18
|
+
#: A constant which can be used with the attribute_name property of a RuleCondition.
|
19
|
+
#: This constant has a value of "SOURCE_IP_ADDRESS"
|
20
|
+
ATTRIBUTE_NAME_SOURCE_IP_ADDRESS = "SOURCE_IP_ADDRESS"
|
21
|
+
|
22
|
+
#: A constant which can be used with the attribute_name property of a RuleCondition.
|
23
|
+
#: This constant has a value of "SOURCE_VCN_ID"
|
24
|
+
ATTRIBUTE_NAME_SOURCE_VCN_ID = "SOURCE_VCN_ID"
|
25
|
+
|
26
|
+
#: A constant which can be used with the attribute_name property of a RuleCondition.
|
27
|
+
#: This constant has a value of "SOURCE_VCN_IP_ADDRESS"
|
28
|
+
ATTRIBUTE_NAME_SOURCE_VCN_IP_ADDRESS = "SOURCE_VCN_IP_ADDRESS"
|
29
|
+
|
30
|
+
#: A constant which can be used with the attribute_name property of a RuleCondition.
|
31
|
+
#: This constant has a value of "PATH"
|
32
|
+
ATTRIBUTE_NAME_PATH = "PATH"
|
33
|
+
|
34
|
+
def __init__(self, **kwargs):
|
35
|
+
"""
|
36
|
+
Initializes a new RuleCondition object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
|
37
|
+
to a service operations then you should favor using a subclass over the base class:
|
38
|
+
|
39
|
+
* :class:`~oci.load_balancer.models.SourceVcnIdCondition`
|
40
|
+
* :class:`~oci.load_balancer.models.SourceIpAddressCondition`
|
41
|
+
* :class:`~oci.load_balancer.models.PathMatchCondition`
|
42
|
+
* :class:`~oci.load_balancer.models.SourceVcnIpAddressCondition`
|
43
|
+
|
44
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
45
|
+
|
46
|
+
:param attribute_name:
|
47
|
+
The value to assign to the attribute_name property of this RuleCondition.
|
48
|
+
Allowed values for this property are: "SOURCE_IP_ADDRESS", "SOURCE_VCN_ID", "SOURCE_VCN_IP_ADDRESS", "PATH", 'UNKNOWN_ENUM_VALUE'.
|
49
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
50
|
+
:type attribute_name: str
|
51
|
+
|
52
|
+
"""
|
53
|
+
self.swagger_types = {
|
54
|
+
'attribute_name': 'str'
|
55
|
+
}
|
56
|
+
|
57
|
+
self.attribute_map = {
|
58
|
+
'attribute_name': 'attributeName'
|
59
|
+
}
|
60
|
+
|
61
|
+
self._attribute_name = None
|
62
|
+
|
63
|
+
@staticmethod
|
64
|
+
def get_subtype(object_dictionary):
|
65
|
+
"""
|
66
|
+
Given the hash representation of a subtype of this class,
|
67
|
+
use the info in the hash to return the class of the subtype.
|
68
|
+
"""
|
69
|
+
type = object_dictionary['attributeName']
|
70
|
+
|
71
|
+
if type == 'SOURCE_VCN_ID':
|
72
|
+
return 'SourceVcnIdCondition'
|
73
|
+
|
74
|
+
if type == 'SOURCE_IP_ADDRESS':
|
75
|
+
return 'SourceIpAddressCondition'
|
76
|
+
|
77
|
+
if type == 'PATH':
|
78
|
+
return 'PathMatchCondition'
|
79
|
+
|
80
|
+
if type == 'SOURCE_VCN_IP_ADDRESS':
|
81
|
+
return 'SourceVcnIpAddressCondition'
|
82
|
+
else:
|
83
|
+
return 'RuleCondition'
|
84
|
+
|
85
|
+
@property
|
86
|
+
def attribute_name(self):
|
87
|
+
"""
|
88
|
+
**[Required]** Gets the attribute_name of this RuleCondition.
|
89
|
+
Allowed values for this property are: "SOURCE_IP_ADDRESS", "SOURCE_VCN_ID", "SOURCE_VCN_IP_ADDRESS", "PATH", 'UNKNOWN_ENUM_VALUE'.
|
90
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
91
|
+
|
92
|
+
|
93
|
+
:return: The attribute_name of this RuleCondition.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._attribute_name
|
97
|
+
|
98
|
+
@attribute_name.setter
|
99
|
+
def attribute_name(self, attribute_name):
|
100
|
+
"""
|
101
|
+
Sets the attribute_name of this RuleCondition.
|
102
|
+
|
103
|
+
:param attribute_name: The attribute_name of this RuleCondition.
|
104
|
+
:type: str
|
105
|
+
"""
|
106
|
+
allowed_values = ["SOURCE_IP_ADDRESS", "SOURCE_VCN_ID", "SOURCE_VCN_IP_ADDRESS", "PATH"]
|
107
|
+
if not value_allowed_none_or_none_sentinel(attribute_name, allowed_values):
|
108
|
+
attribute_name = 'UNKNOWN_ENUM_VALUE'
|
109
|
+
self._attribute_name = attribute_name
|
110
|
+
|
111
|
+
def __repr__(self):
|
112
|
+
return formatted_flat_dict(self)
|
113
|
+
|
114
|
+
def __eq__(self, other):
|
115
|
+
if other is None:
|
116
|
+
return False
|
117
|
+
|
118
|
+
return self.__dict__ == other.__dict__
|
119
|
+
|
120
|
+
def __ne__(self, other):
|
121
|
+
return not self == other
|
@@ -0,0 +1,113 @@
|
|
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 RuleSet(object):
|
14
|
+
"""
|
15
|
+
A named set of rules associated with a load balancer. Rules are objects that represent actions to apply to a listener,
|
16
|
+
such as adding, altering, or removing HTTP headers. For more information, see
|
17
|
+
`Managing Rule Sets`__.
|
18
|
+
|
19
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm
|
20
|
+
"""
|
21
|
+
|
22
|
+
def __init__(self, **kwargs):
|
23
|
+
"""
|
24
|
+
Initializes a new RuleSet object with values from keyword arguments.
|
25
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
26
|
+
|
27
|
+
:param name:
|
28
|
+
The value to assign to the name property of this RuleSet.
|
29
|
+
:type name: str
|
30
|
+
|
31
|
+
:param items:
|
32
|
+
The value to assign to the items property of this RuleSet.
|
33
|
+
:type items: list[oci.load_balancer.models.Rule]
|
34
|
+
|
35
|
+
"""
|
36
|
+
self.swagger_types = {
|
37
|
+
'name': 'str',
|
38
|
+
'items': 'list[Rule]'
|
39
|
+
}
|
40
|
+
|
41
|
+
self.attribute_map = {
|
42
|
+
'name': 'name',
|
43
|
+
'items': 'items'
|
44
|
+
}
|
45
|
+
|
46
|
+
self._name = None
|
47
|
+
self._items = None
|
48
|
+
|
49
|
+
@property
|
50
|
+
def name(self):
|
51
|
+
"""
|
52
|
+
**[Required]** Gets the name of this RuleSet.
|
53
|
+
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering
|
54
|
+
confidential information.
|
55
|
+
|
56
|
+
Example: `example_rule_set`
|
57
|
+
|
58
|
+
|
59
|
+
:return: The name of this RuleSet.
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._name
|
63
|
+
|
64
|
+
@name.setter
|
65
|
+
def name(self, name):
|
66
|
+
"""
|
67
|
+
Sets the name of this RuleSet.
|
68
|
+
The name for this set of rules. It must be unique and it cannot be changed. Avoid entering
|
69
|
+
confidential information.
|
70
|
+
|
71
|
+
Example: `example_rule_set`
|
72
|
+
|
73
|
+
|
74
|
+
:param name: The name of this RuleSet.
|
75
|
+
:type: str
|
76
|
+
"""
|
77
|
+
self._name = name
|
78
|
+
|
79
|
+
@property
|
80
|
+
def items(self):
|
81
|
+
"""
|
82
|
+
**[Required]** Gets the items of this RuleSet.
|
83
|
+
An array of rules that compose the rule set.
|
84
|
+
|
85
|
+
|
86
|
+
:return: The items of this RuleSet.
|
87
|
+
:rtype: list[oci.load_balancer.models.Rule]
|
88
|
+
"""
|
89
|
+
return self._items
|
90
|
+
|
91
|
+
@items.setter
|
92
|
+
def items(self, items):
|
93
|
+
"""
|
94
|
+
Sets the items of this RuleSet.
|
95
|
+
An array of rules that compose the rule set.
|
96
|
+
|
97
|
+
|
98
|
+
:param items: The items of this RuleSet.
|
99
|
+
:type: list[oci.load_balancer.models.Rule]
|
100
|
+
"""
|
101
|
+
self._items = items
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
return formatted_flat_dict(self)
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
if other is None:
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
return not self == other
|
@@ -0,0 +1,72 @@
|
|
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 RuleSetDetails(object):
|
14
|
+
"""
|
15
|
+
The rules that compose a rule set.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new RuleSetDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param items:
|
24
|
+
The value to assign to the items property of this RuleSetDetails.
|
25
|
+
:type items: list[oci.load_balancer.models.Rule]
|
26
|
+
|
27
|
+
"""
|
28
|
+
self.swagger_types = {
|
29
|
+
'items': 'list[Rule]'
|
30
|
+
}
|
31
|
+
|
32
|
+
self.attribute_map = {
|
33
|
+
'items': 'items'
|
34
|
+
}
|
35
|
+
|
36
|
+
self._items = None
|
37
|
+
|
38
|
+
@property
|
39
|
+
def items(self):
|
40
|
+
"""
|
41
|
+
**[Required]** Gets the items of this RuleSetDetails.
|
42
|
+
An array of rules that compose the rule set.
|
43
|
+
|
44
|
+
|
45
|
+
:return: The items of this RuleSetDetails.
|
46
|
+
:rtype: list[oci.load_balancer.models.Rule]
|
47
|
+
"""
|
48
|
+
return self._items
|
49
|
+
|
50
|
+
@items.setter
|
51
|
+
def items(self, items):
|
52
|
+
"""
|
53
|
+
Sets the items of this RuleSetDetails.
|
54
|
+
An array of rules that compose the rule set.
|
55
|
+
|
56
|
+
|
57
|
+
:param items: The items of this RuleSetDetails.
|
58
|
+
:type: list[oci.load_balancer.models.Rule]
|
59
|
+
"""
|
60
|
+
self._items = items
|
61
|
+
|
62
|
+
def __repr__(self):
|
63
|
+
return formatted_flat_dict(self)
|
64
|
+
|
65
|
+
def __eq__(self, other):
|
66
|
+
if other is None:
|
67
|
+
return False
|
68
|
+
|
69
|
+
return self.__dict__ == other.__dict__
|
70
|
+
|
71
|
+
def __ne__(self, other):
|
72
|
+
return not self == other
|
@@ -0,0 +1,136 @@
|
|
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 SessionPersistenceConfigurationDetails(object):
|
14
|
+
"""
|
15
|
+
The configuration details for implementing session persistence based on a user-specified cookie name (application
|
16
|
+
cookie stickiness).
|
17
|
+
|
18
|
+
Session persistence enables the Load Balancing service to direct any number of requests that originate from a single
|
19
|
+
logical client to a single backend web server. For more information, see
|
20
|
+
`Session Persistence`__.
|
21
|
+
|
22
|
+
With application cookie stickiness, the load balancer enables session persistence only when the response from a backend
|
23
|
+
application server includes a `Set-cookie` header with the user-specified cookie name.
|
24
|
+
|
25
|
+
To disable application cookie stickiness on a running load balancer, use the
|
26
|
+
:func:`update_backend_set` operation and specify `null` for the
|
27
|
+
`SessionPersistenceConfigurationDetails` object.
|
28
|
+
|
29
|
+
Example: `SessionPersistenceConfigurationDetails: null`
|
30
|
+
|
31
|
+
**Note:** `SessionPersistenceConfigurationDetails` (application cookie stickiness) and `LBCookieSessionPersistenceConfigurationDetails`
|
32
|
+
(LB cookie stickiness) are mutually exclusive. An error results if you try to enable both types of session persistence.
|
33
|
+
|
34
|
+
**Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
35
|
+
|
36
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/sessionpersistence.htm
|
37
|
+
"""
|
38
|
+
|
39
|
+
def __init__(self, **kwargs):
|
40
|
+
"""
|
41
|
+
Initializes a new SessionPersistenceConfigurationDetails object with values from keyword arguments.
|
42
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
43
|
+
|
44
|
+
:param cookie_name:
|
45
|
+
The value to assign to the cookie_name property of this SessionPersistenceConfigurationDetails.
|
46
|
+
:type cookie_name: str
|
47
|
+
|
48
|
+
:param disable_fallback:
|
49
|
+
The value to assign to the disable_fallback property of this SessionPersistenceConfigurationDetails.
|
50
|
+
:type disable_fallback: bool
|
51
|
+
|
52
|
+
"""
|
53
|
+
self.swagger_types = {
|
54
|
+
'cookie_name': 'str',
|
55
|
+
'disable_fallback': 'bool'
|
56
|
+
}
|
57
|
+
|
58
|
+
self.attribute_map = {
|
59
|
+
'cookie_name': 'cookieName',
|
60
|
+
'disable_fallback': 'disableFallback'
|
61
|
+
}
|
62
|
+
|
63
|
+
self._cookie_name = None
|
64
|
+
self._disable_fallback = None
|
65
|
+
|
66
|
+
@property
|
67
|
+
def cookie_name(self):
|
68
|
+
"""
|
69
|
+
**[Required]** Gets the cookie_name of this SessionPersistenceConfigurationDetails.
|
70
|
+
The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify
|
71
|
+
that any cookie set by the backend causes the session to persist.
|
72
|
+
|
73
|
+
Example: `example_cookie`
|
74
|
+
|
75
|
+
|
76
|
+
:return: The cookie_name of this SessionPersistenceConfigurationDetails.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._cookie_name
|
80
|
+
|
81
|
+
@cookie_name.setter
|
82
|
+
def cookie_name(self, cookie_name):
|
83
|
+
"""
|
84
|
+
Sets the cookie_name of this SessionPersistenceConfigurationDetails.
|
85
|
+
The name of the cookie used to detect a session initiated by the backend server. Use '*' to specify
|
86
|
+
that any cookie set by the backend causes the session to persist.
|
87
|
+
|
88
|
+
Example: `example_cookie`
|
89
|
+
|
90
|
+
|
91
|
+
:param cookie_name: The cookie_name of this SessionPersistenceConfigurationDetails.
|
92
|
+
:type: str
|
93
|
+
"""
|
94
|
+
self._cookie_name = cookie_name
|
95
|
+
|
96
|
+
@property
|
97
|
+
def disable_fallback(self):
|
98
|
+
"""
|
99
|
+
Gets the disable_fallback of this SessionPersistenceConfigurationDetails.
|
100
|
+
Whether the load balancer is prevented from directing traffic from a persistent session client to
|
101
|
+
a different backend server if the original server is unavailable. Defaults to false.
|
102
|
+
|
103
|
+
Example: `false`
|
104
|
+
|
105
|
+
|
106
|
+
:return: The disable_fallback of this SessionPersistenceConfigurationDetails.
|
107
|
+
:rtype: bool
|
108
|
+
"""
|
109
|
+
return self._disable_fallback
|
110
|
+
|
111
|
+
@disable_fallback.setter
|
112
|
+
def disable_fallback(self, disable_fallback):
|
113
|
+
"""
|
114
|
+
Sets the disable_fallback of this SessionPersistenceConfigurationDetails.
|
115
|
+
Whether the load balancer is prevented from directing traffic from a persistent session client to
|
116
|
+
a different backend server if the original server is unavailable. Defaults to false.
|
117
|
+
|
118
|
+
Example: `false`
|
119
|
+
|
120
|
+
|
121
|
+
:param disable_fallback: The disable_fallback of this SessionPersistenceConfigurationDetails.
|
122
|
+
:type: bool
|
123
|
+
"""
|
124
|
+
self._disable_fallback = disable_fallback
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
return formatted_flat_dict(self)
|
128
|
+
|
129
|
+
def __eq__(self, other):
|
130
|
+
if other is None:
|
131
|
+
return False
|
132
|
+
|
133
|
+
return self.__dict__ == other.__dict__
|
134
|
+
|
135
|
+
def __ne__(self, other):
|
136
|
+
return not self == other
|