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.
Files changed (197) hide show
  1. {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/METADATA +3 -3
  2. {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/RECORD +197 -6
  3. oci/file_storage/__init__.py +14 -0
  4. oci/file_storage/file_storage_client.py +8601 -0
  5. oci/file_storage/file_storage_client_composite_operations.py +2068 -0
  6. oci/file_storage/models/__init__.py +130 -0
  7. oci/file_storage/models/change_file_system_compartment_details.py +76 -0
  8. oci/file_storage/models/change_filesystem_snapshot_policy_compartment_details.py +76 -0
  9. oci/file_storage/models/change_mount_target_compartment_details.py +76 -0
  10. oci/file_storage/models/change_outbound_connector_compartment_details.py +78 -0
  11. oci/file_storage/models/change_replication_compartment_details.py +76 -0
  12. oci/file_storage/models/client_options.py +389 -0
  13. oci/file_storage/models/create_export_details.py +303 -0
  14. oci/file_storage/models/create_file_system_details.py +425 -0
  15. oci/file_storage/models/create_filesystem_snapshot_policy_details.py +337 -0
  16. oci/file_storage/models/create_kerberos_details.py +200 -0
  17. oci/file_storage/models/create_ldap_bind_account_details.py +220 -0
  18. oci/file_storage/models/create_ldap_idmap_details.py +317 -0
  19. oci/file_storage/models/create_mount_target_details.py +581 -0
  20. oci/file_storage/models/create_outbound_connector_details.py +309 -0
  21. oci/file_storage/models/create_replication_details.py +325 -0
  22. oci/file_storage/models/create_snapshot_details.py +261 -0
  23. oci/file_storage/models/endpoint.py +103 -0
  24. oci/file_storage/models/export.py +456 -0
  25. oci/file_storage/models/export_set.py +411 -0
  26. oci/file_storage/models/export_set_summary.py +316 -0
  27. oci/file_storage/models/export_summary.py +343 -0
  28. oci/file_storage/models/file_system.py +818 -0
  29. oci/file_storage/models/file_system_summary.py +659 -0
  30. oci/file_storage/models/filesystem_snapshot_policy.py +473 -0
  31. oci/file_storage/models/filesystem_snapshot_policy_summary.py +429 -0
  32. oci/file_storage/models/kerberos.py +200 -0
  33. oci/file_storage/models/kerberos_keytab_entry.py +166 -0
  34. oci/file_storage/models/key_tab_secret_details.py +138 -0
  35. oci/file_storage/models/ldap_bind_account.py +243 -0
  36. oci/file_storage/models/ldap_bind_account_summary.py +176 -0
  37. oci/file_storage/models/ldap_idmap.py +317 -0
  38. oci/file_storage/models/mount_target.py +828 -0
  39. oci/file_storage/models/mount_target_summary.py +696 -0
  40. oci/file_storage/models/outbound_connector.py +453 -0
  41. oci/file_storage/models/outbound_connector_summary.py +438 -0
  42. oci/file_storage/models/replication.py +740 -0
  43. oci/file_storage/models/replication_estimate.py +196 -0
  44. oci/file_storage/models/replication_summary.py +491 -0
  45. oci/file_storage/models/replication_target.py +679 -0
  46. oci/file_storage/models/replication_target_summary.py +425 -0
  47. oci/file_storage/models/resource_lock.py +185 -0
  48. oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
  49. oci/file_storage/models/snapshot.py +638 -0
  50. oci/file_storage/models/snapshot_schedule.py +487 -0
  51. oci/file_storage/models/snapshot_summary.py +601 -0
  52. oci/file_storage/models/source_details.py +119 -0
  53. oci/file_storage/models/update_export_details.py +111 -0
  54. oci/file_storage/models/update_export_set_details.py +172 -0
  55. oci/file_storage/models/update_file_system_details.py +246 -0
  56. oci/file_storage/models/update_filesystem_snapshot_policy_details.py +236 -0
  57. oci/file_storage/models/update_kerberos_details.py +200 -0
  58. oci/file_storage/models/update_ldap_idmap_details.py +317 -0
  59. oci/file_storage/models/update_mount_target_details.py +286 -0
  60. oci/file_storage/models/update_outbound_connector_details.py +158 -0
  61. oci/file_storage/models/update_replication_details.py +189 -0
  62. oci/file_storage/models/update_snapshot_details.py +156 -0
  63. oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
  64. oci/file_storage/models/validate_key_tabs_details.py +103 -0
  65. oci/file_storage/models/validate_key_tabs_response_details.py +103 -0
  66. oci/functions/__init__.py +16 -0
  67. oci/functions/functions_invoke_client.py +267 -0
  68. oci/functions/functions_invoke_client_composite_operations.py +26 -0
  69. oci/functions/functions_management_client.py +2056 -0
  70. oci/functions/functions_management_client_composite_operations.py +326 -0
  71. oci/functions/models/__init__.py +74 -0
  72. oci/functions/models/application.py +628 -0
  73. oci/functions/models/application_summary.py +512 -0
  74. oci/functions/models/application_trace_config.py +103 -0
  75. oci/functions/models/change_application_compartment_details.py +78 -0
  76. oci/functions/models/config_details.py +134 -0
  77. oci/functions/models/constant_provisioned_concurrency_config.py +82 -0
  78. oci/functions/models/create_application_details.py +446 -0
  79. oci/functions/models/create_function_details.py +437 -0
  80. oci/functions/models/function.py +734 -0
  81. oci/functions/models/function_provisioned_concurrency_config.py +109 -0
  82. oci/functions/models/function_source_details.py +101 -0
  83. oci/functions/models/function_summary.py +657 -0
  84. oci/functions/models/function_trace_config.py +72 -0
  85. oci/functions/models/image_policy_config.py +103 -0
  86. oci/functions/models/key_details.py +76 -0
  87. oci/functions/models/none_provisioned_concurrency_config.py +51 -0
  88. oci/functions/models/pbf_listing.py +408 -0
  89. oci/functions/models/pbf_listing_summary.py +386 -0
  90. oci/functions/models/pbf_listing_version.py +467 -0
  91. oci/functions/models/pbf_listing_version_summary.py +446 -0
  92. oci/functions/models/pbf_listing_versions_collection.py +73 -0
  93. oci/functions/models/pbf_listings_collection.py +72 -0
  94. oci/functions/models/policy_details.py +103 -0
  95. oci/functions/models/pre_built_function_source_details.py +88 -0
  96. oci/functions/models/publisher_details.py +72 -0
  97. oci/functions/models/requirement_details.py +106 -0
  98. oci/functions/models/trigger.py +72 -0
  99. oci/functions/models/trigger_summary.py +72 -0
  100. oci/functions/models/triggers_collection.py +72 -0
  101. oci/functions/models/update_application_details.py +290 -0
  102. oci/functions/models/update_function_details.py +346 -0
  103. oci/load_balancer/__init__.py +14 -0
  104. oci/load_balancer/load_balancer_client.py +7641 -0
  105. oci/load_balancer/load_balancer_client_composite_operations.py +1630 -0
  106. oci/load_balancer/models/__init__.py +186 -0
  107. oci/load_balancer/models/action.py +97 -0
  108. oci/load_balancer/models/add_http_request_header_rule.py +134 -0
  109. oci/load_balancer/models/add_http_response_header_rule.py +137 -0
  110. oci/load_balancer/models/allow_rule.py +123 -0
  111. oci/load_balancer/models/backend.py +350 -0
  112. oci/load_balancer/models/backend_details.py +312 -0
  113. oci/load_balancer/models/backend_health.py +143 -0
  114. oci/load_balancer/models/backend_set.py +305 -0
  115. oci/load_balancer/models/backend_set_details.py +262 -0
  116. oci/load_balancer/models/backend_set_health.py +265 -0
  117. oci/load_balancer/models/certificate.py +188 -0
  118. oci/load_balancer/models/certificate_details.py +270 -0
  119. oci/load_balancer/models/change_load_balancer_compartment_details.py +78 -0
  120. oci/load_balancer/models/connection_configuration.py +168 -0
  121. oci/load_balancer/models/control_access_using_http_methods_rule.py +162 -0
  122. oci/load_balancer/models/create_backend_details.py +316 -0
  123. oci/load_balancer/models/create_backend_set_details.py +305 -0
  124. oci/load_balancer/models/create_certificate_details.py +270 -0
  125. oci/load_balancer/models/create_hostname_details.py +121 -0
  126. oci/load_balancer/models/create_listener_details.py +387 -0
  127. oci/load_balancer/models/create_load_balancer_details.py +895 -0
  128. oci/load_balancer/models/create_path_route_set_details.py +111 -0
  129. oci/load_balancer/models/create_routing_policy_details.py +154 -0
  130. oci/load_balancer/models/create_rule_set_details.py +109 -0
  131. oci/load_balancer/models/create_ssl_cipher_suite_details.py +606 -0
  132. oci/load_balancer/models/extend_http_request_header_value_rule.py +181 -0
  133. oci/load_balancer/models/extend_http_response_header_value_rule.py +181 -0
  134. oci/load_balancer/models/forward_to_backend_set.py +86 -0
  135. oci/load_balancer/models/health_check_result.py +219 -0
  136. oci/load_balancer/models/health_checker.py +381 -0
  137. oci/load_balancer/models/health_checker_details.py +376 -0
  138. oci/load_balancer/models/hostname.py +121 -0
  139. oci/load_balancer/models/hostname_details.py +117 -0
  140. oci/load_balancer/models/http_header_rule.py +127 -0
  141. oci/load_balancer/models/ip_address.py +142 -0
  142. oci/load_balancer/models/ip_based_max_connections_rule.py +118 -0
  143. oci/load_balancer/models/ip_max_connections.py +111 -0
  144. oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.py +423 -0
  145. oci/load_balancer/models/listener.py +383 -0
  146. oci/load_balancer/models/listener_details.py +344 -0
  147. oci/load_balancer/models/listener_rule_summary.py +104 -0
  148. oci/load_balancer/models/load_balancer.py +1023 -0
  149. oci/load_balancer/models/load_balancer_health.py +281 -0
  150. oci/load_balancer/models/load_balancer_health_summary.py +167 -0
  151. oci/load_balancer/models/load_balancer_policy.py +80 -0
  152. oci/load_balancer/models/load_balancer_protocol.py +76 -0
  153. oci/load_balancer/models/load_balancer_shape.py +80 -0
  154. oci/load_balancer/models/path_match_condition.py +166 -0
  155. oci/load_balancer/models/path_match_type.py +126 -0
  156. oci/load_balancer/models/path_route.py +156 -0
  157. oci/load_balancer/models/path_route_set.py +112 -0
  158. oci/load_balancer/models/path_route_set_details.py +72 -0
  159. oci/load_balancer/models/redirect_rule.py +173 -0
  160. oci/load_balancer/models/redirect_uri.py +420 -0
  161. oci/load_balancer/models/remove_http_request_header_rule.py +90 -0
  162. oci/load_balancer/models/remove_http_response_header_rule.py +92 -0
  163. oci/load_balancer/models/reserved_ip.py +90 -0
  164. oci/load_balancer/models/routing_policy.py +152 -0
  165. oci/load_balancer/models/routing_policy_details.py +73 -0
  166. oci/load_balancer/models/routing_rule.py +135 -0
  167. oci/load_balancer/models/rule.py +177 -0
  168. oci/load_balancer/models/rule_condition.py +121 -0
  169. oci/load_balancer/models/rule_set.py +113 -0
  170. oci/load_balancer/models/rule_set_details.py +72 -0
  171. oci/load_balancer/models/session_persistence_configuration_details.py +136 -0
  172. oci/load_balancer/models/shape_details.py +121 -0
  173. oci/load_balancer/models/source_ip_address_condition.py +90 -0
  174. oci/load_balancer/models/source_vcn_id_condition.py +98 -0
  175. oci/load_balancer/models/source_vcn_ip_address_condition.py +97 -0
  176. oci/load_balancer/models/ssl_cipher_suite.py +606 -0
  177. oci/load_balancer/models/ssl_cipher_suite_details.py +606 -0
  178. oci/load_balancer/models/ssl_configuration.py +478 -0
  179. oci/load_balancer/models/ssl_configuration_details.py +476 -0
  180. oci/load_balancer/models/update_backend_details.py +242 -0
  181. oci/load_balancer/models/update_backend_set_details.py +264 -0
  182. oci/load_balancer/models/update_health_checker_details.py +374 -0
  183. oci/load_balancer/models/update_hostname_details.py +86 -0
  184. oci/load_balancer/models/update_listener_details.py +344 -0
  185. oci/load_balancer/models/update_load_balancer_details.py +356 -0
  186. oci/load_balancer/models/update_load_balancer_shape_details.py +127 -0
  187. oci/load_balancer/models/update_network_security_groups_details.py +99 -0
  188. oci/load_balancer/models/update_path_route_set_details.py +72 -0
  189. oci/load_balancer/models/update_routing_policy_details.py +115 -0
  190. oci/load_balancer/models/update_rule_set_details.py +72 -0
  191. oci/load_balancer/models/update_ssl_cipher_suite_details.py +300 -0
  192. oci/load_balancer/models/work_request.py +385 -0
  193. oci/load_balancer/models/work_request_error.py +115 -0
  194. oci/version.py +1 -1
  195. {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/LICENSE.txt +0 -0
  196. {mv_oci_sdk-2.142.0.dist-info → mv_oci_sdk-2.142.0.1.dist-info}/WHEEL +0 -0
  197. {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,168 @@
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 ConnectionConfiguration(object):
14
+ """
15
+ Configuration details for the connection between the client and backend servers.
16
+ """
17
+
18
+ #: A constant which can be used with the backend_tcp_proxy_protocol_options property of a ConnectionConfiguration.
19
+ #: This constant has a value of "PP2_TYPE_AUTHORITY"
20
+ BACKEND_TCP_PROXY_PROTOCOL_OPTIONS_PP2_TYPE_AUTHORITY = "PP2_TYPE_AUTHORITY"
21
+
22
+ def __init__(self, **kwargs):
23
+ """
24
+ Initializes a new ConnectionConfiguration object with values from keyword arguments.
25
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
26
+
27
+ :param idle_timeout:
28
+ The value to assign to the idle_timeout property of this ConnectionConfiguration.
29
+ :type idle_timeout: int
30
+
31
+ :param backend_tcp_proxy_protocol_version:
32
+ The value to assign to the backend_tcp_proxy_protocol_version property of this ConnectionConfiguration.
33
+ :type backend_tcp_proxy_protocol_version: int
34
+
35
+ :param backend_tcp_proxy_protocol_options:
36
+ The value to assign to the backend_tcp_proxy_protocol_options property of this ConnectionConfiguration.
37
+ Allowed values for items in this list are: "PP2_TYPE_AUTHORITY", 'UNKNOWN_ENUM_VALUE'.
38
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
39
+ :type backend_tcp_proxy_protocol_options: list[str]
40
+
41
+ """
42
+ self.swagger_types = {
43
+ 'idle_timeout': 'int',
44
+ 'backend_tcp_proxy_protocol_version': 'int',
45
+ 'backend_tcp_proxy_protocol_options': 'list[str]'
46
+ }
47
+
48
+ self.attribute_map = {
49
+ 'idle_timeout': 'idleTimeout',
50
+ 'backend_tcp_proxy_protocol_version': 'backendTcpProxyProtocolVersion',
51
+ 'backend_tcp_proxy_protocol_options': 'backendTcpProxyProtocolOptions'
52
+ }
53
+
54
+ self._idle_timeout = None
55
+ self._backend_tcp_proxy_protocol_version = None
56
+ self._backend_tcp_proxy_protocol_options = None
57
+
58
+ @property
59
+ def idle_timeout(self):
60
+ """
61
+ **[Required]** Gets the idle_timeout of this ConnectionConfiguration.
62
+ The maximum idle time, in seconds, allowed between two successive receive or two successive send operations
63
+ between the client and backend servers. A send operation does not reset the timer for receive operations. A
64
+ receive operation does not reset the timer for send operations.
65
+
66
+ For more information, see `Connection Configuration`__.
67
+
68
+ Example: `1200`
69
+
70
+ __ https://docs.cloud.oracle.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration
71
+
72
+
73
+ :return: The idle_timeout of this ConnectionConfiguration.
74
+ :rtype: int
75
+ """
76
+ return self._idle_timeout
77
+
78
+ @idle_timeout.setter
79
+ def idle_timeout(self, idle_timeout):
80
+ """
81
+ Sets the idle_timeout of this ConnectionConfiguration.
82
+ The maximum idle time, in seconds, allowed between two successive receive or two successive send operations
83
+ between the client and backend servers. A send operation does not reset the timer for receive operations. A
84
+ receive operation does not reset the timer for send operations.
85
+
86
+ For more information, see `Connection Configuration`__.
87
+
88
+ Example: `1200`
89
+
90
+ __ https://docs.cloud.oracle.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration
91
+
92
+
93
+ :param idle_timeout: The idle_timeout of this ConnectionConfiguration.
94
+ :type: int
95
+ """
96
+ self._idle_timeout = idle_timeout
97
+
98
+ @property
99
+ def backend_tcp_proxy_protocol_version(self):
100
+ """
101
+ Gets the backend_tcp_proxy_protocol_version of this ConnectionConfiguration.
102
+ The backend TCP Proxy Protocol version.
103
+
104
+ Example: `1`
105
+
106
+
107
+ :return: The backend_tcp_proxy_protocol_version of this ConnectionConfiguration.
108
+ :rtype: int
109
+ """
110
+ return self._backend_tcp_proxy_protocol_version
111
+
112
+ @backend_tcp_proxy_protocol_version.setter
113
+ def backend_tcp_proxy_protocol_version(self, backend_tcp_proxy_protocol_version):
114
+ """
115
+ Sets the backend_tcp_proxy_protocol_version of this ConnectionConfiguration.
116
+ The backend TCP Proxy Protocol version.
117
+
118
+ Example: `1`
119
+
120
+
121
+ :param backend_tcp_proxy_protocol_version: The backend_tcp_proxy_protocol_version of this ConnectionConfiguration.
122
+ :type: int
123
+ """
124
+ self._backend_tcp_proxy_protocol_version = backend_tcp_proxy_protocol_version
125
+
126
+ @property
127
+ def backend_tcp_proxy_protocol_options(self):
128
+ """
129
+ Gets the backend_tcp_proxy_protocol_options of this ConnectionConfiguration.
130
+ An array that represents the PPV2 Options that can be enabled on TCP Listeners.
131
+ Example: [\"PP2_TYPE_AUTHORITY\"]
132
+
133
+ Allowed values for items in this list are: "PP2_TYPE_AUTHORITY", 'UNKNOWN_ENUM_VALUE'.
134
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
135
+
136
+
137
+ :return: The backend_tcp_proxy_protocol_options of this ConnectionConfiguration.
138
+ :rtype: list[str]
139
+ """
140
+ return self._backend_tcp_proxy_protocol_options
141
+
142
+ @backend_tcp_proxy_protocol_options.setter
143
+ def backend_tcp_proxy_protocol_options(self, backend_tcp_proxy_protocol_options):
144
+ """
145
+ Sets the backend_tcp_proxy_protocol_options of this ConnectionConfiguration.
146
+ An array that represents the PPV2 Options that can be enabled on TCP Listeners.
147
+ Example: [\"PP2_TYPE_AUTHORITY\"]
148
+
149
+
150
+ :param backend_tcp_proxy_protocol_options: The backend_tcp_proxy_protocol_options of this ConnectionConfiguration.
151
+ :type: list[str]
152
+ """
153
+ allowed_values = ["PP2_TYPE_AUTHORITY"]
154
+ if backend_tcp_proxy_protocol_options:
155
+ backend_tcp_proxy_protocol_options[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in backend_tcp_proxy_protocol_options]
156
+ self._backend_tcp_proxy_protocol_options = backend_tcp_proxy_protocol_options
157
+
158
+ def __repr__(self):
159
+ return formatted_flat_dict(self)
160
+
161
+ def __eq__(self, other):
162
+ if other is None:
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ return not self == other
@@ -0,0 +1,162 @@
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
+ from .rule import Rule
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 ControlAccessUsingHttpMethodsRule(Rule):
14
+ """
15
+ An object that represents the action of returning a specified response code when the requested HTTP method is not in
16
+ the list of allowed methods for the listener. The load balancer does not forward a disallowed request to the back end
17
+ servers. The default response code is `405 Method Not Allowed`.
18
+
19
+ If you set the response code to `405` or leave it blank, the system adds an \"allow\" response header that contains a
20
+ list of the allowed methods for the listener. If you set the response code to anything other than `405` (or blank),
21
+ the system does not add the \"allow\" response header with a list of allowed methods.
22
+
23
+ This rule applies only to HTTP listeners. No more than one `ControlAccessUsingHttpMethodsRule` object can be present in
24
+ a given listener.
25
+ """
26
+
27
+ def __init__(self, **kwargs):
28
+ """
29
+ Initializes a new ControlAccessUsingHttpMethodsRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.ControlAccessUsingHttpMethodsRule.action` attribute
30
+ of this class is ``CONTROL_ACCESS_USING_HTTP_METHODS`` and it should not be changed.
31
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
32
+
33
+ :param action:
34
+ The value to assign to the action property of this ControlAccessUsingHttpMethodsRule.
35
+ 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"
36
+ :type action: str
37
+
38
+ :param allowed_methods:
39
+ The value to assign to the allowed_methods property of this ControlAccessUsingHttpMethodsRule.
40
+ :type allowed_methods: list[str]
41
+
42
+ :param status_code:
43
+ The value to assign to the status_code property of this ControlAccessUsingHttpMethodsRule.
44
+ :type status_code: int
45
+
46
+ """
47
+ self.swagger_types = {
48
+ 'action': 'str',
49
+ 'allowed_methods': 'list[str]',
50
+ 'status_code': 'int'
51
+ }
52
+
53
+ self.attribute_map = {
54
+ 'action': 'action',
55
+ 'allowed_methods': 'allowedMethods',
56
+ 'status_code': 'statusCode'
57
+ }
58
+
59
+ self._action = None
60
+ self._allowed_methods = None
61
+ self._status_code = None
62
+ self._action = 'CONTROL_ACCESS_USING_HTTP_METHODS'
63
+
64
+ @property
65
+ def allowed_methods(self):
66
+ """
67
+ **[Required]** Gets the allowed_methods of this ControlAccessUsingHttpMethodsRule.
68
+ The list of HTTP methods allowed for this listener.
69
+
70
+ By default, you can specify only the standard HTTP methods defined in the
71
+ `HTTP Method Registry`__. You can also
72
+ see a list of supported standard HTTP methods in the Load Balancing service documentation at
73
+ `Managing Rule Sets`__.
74
+
75
+ Your backend application must be able to handle the methods specified in this list.
76
+
77
+ The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact
78
+ `My Oracle Support`__ to remove the restriction for your tenancy.
79
+
80
+ Example: [\"GET\", \"PUT\", \"POST\", \"PROPFIND\"]
81
+
82
+ __ http://www.iana.org/assignments/http-methods/http-methods.xhtml
83
+ __ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm
84
+ __ http://support.oracle.com/
85
+
86
+
87
+ :return: The allowed_methods of this ControlAccessUsingHttpMethodsRule.
88
+ :rtype: list[str]
89
+ """
90
+ return self._allowed_methods
91
+
92
+ @allowed_methods.setter
93
+ def allowed_methods(self, allowed_methods):
94
+ """
95
+ Sets the allowed_methods of this ControlAccessUsingHttpMethodsRule.
96
+ The list of HTTP methods allowed for this listener.
97
+
98
+ By default, you can specify only the standard HTTP methods defined in the
99
+ `HTTP Method Registry`__. You can also
100
+ see a list of supported standard HTTP methods in the Load Balancing service documentation at
101
+ `Managing Rule Sets`__.
102
+
103
+ Your backend application must be able to handle the methods specified in this list.
104
+
105
+ The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact
106
+ `My Oracle Support`__ to remove the restriction for your tenancy.
107
+
108
+ Example: [\"GET\", \"PUT\", \"POST\", \"PROPFIND\"]
109
+
110
+ __ http://www.iana.org/assignments/http-methods/http-methods.xhtml
111
+ __ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm
112
+ __ http://support.oracle.com/
113
+
114
+
115
+ :param allowed_methods: The allowed_methods of this ControlAccessUsingHttpMethodsRule.
116
+ :type: list[str]
117
+ """
118
+ self._allowed_methods = allowed_methods
119
+
120
+ @property
121
+ def status_code(self):
122
+ """
123
+ Gets the status_code of this ControlAccessUsingHttpMethodsRule.
124
+ The HTTP status code to return when the requested HTTP method is not in the list of allowed methods.
125
+ The associated status line returned with the code is mapped from the standard HTTP specification. The
126
+ default value is `405 (Method Not Allowed)`.
127
+
128
+ Example: 403
129
+
130
+
131
+ :return: The status_code of this ControlAccessUsingHttpMethodsRule.
132
+ :rtype: int
133
+ """
134
+ return self._status_code
135
+
136
+ @status_code.setter
137
+ def status_code(self, status_code):
138
+ """
139
+ Sets the status_code of this ControlAccessUsingHttpMethodsRule.
140
+ The HTTP status code to return when the requested HTTP method is not in the list of allowed methods.
141
+ The associated status line returned with the code is mapped from the standard HTTP specification. The
142
+ default value is `405 (Method Not Allowed)`.
143
+
144
+ Example: 403
145
+
146
+
147
+ :param status_code: The status_code of this ControlAccessUsingHttpMethodsRule.
148
+ :type: int
149
+ """
150
+ self._status_code = status_code
151
+
152
+ def __repr__(self):
153
+ return formatted_flat_dict(self)
154
+
155
+ def __eq__(self, other):
156
+ if other is None:
157
+ return False
158
+
159
+ return self.__dict__ == other.__dict__
160
+
161
+ def __ne__(self, other):
162
+ return not self == other
@@ -0,0 +1,316 @@
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 CreateBackendDetails(object):
14
+ """
15
+ The configuration details for creating a backend server in a backend set.
16
+ For more information on backend server configuration, see
17
+ `Managing Backend Servers`__.
18
+
19
+ __ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm
20
+ """
21
+
22
+ def __init__(self, **kwargs):
23
+ """
24
+ Initializes a new CreateBackendDetails object with values from keyword arguments.
25
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
26
+
27
+ :param ip_address:
28
+ The value to assign to the ip_address property of this CreateBackendDetails.
29
+ :type ip_address: str
30
+
31
+ :param port:
32
+ The value to assign to the port property of this CreateBackendDetails.
33
+ :type port: int
34
+
35
+ :param weight:
36
+ The value to assign to the weight property of this CreateBackendDetails.
37
+ :type weight: int
38
+
39
+ :param max_connections:
40
+ The value to assign to the max_connections property of this CreateBackendDetails.
41
+ :type max_connections: int
42
+
43
+ :param backup:
44
+ The value to assign to the backup property of this CreateBackendDetails.
45
+ :type backup: bool
46
+
47
+ :param drain:
48
+ The value to assign to the drain property of this CreateBackendDetails.
49
+ :type drain: bool
50
+
51
+ :param offline:
52
+ The value to assign to the offline property of this CreateBackendDetails.
53
+ :type offline: bool
54
+
55
+ """
56
+ self.swagger_types = {
57
+ 'ip_address': 'str',
58
+ 'port': 'int',
59
+ 'weight': 'int',
60
+ 'max_connections': 'int',
61
+ 'backup': 'bool',
62
+ 'drain': 'bool',
63
+ 'offline': 'bool'
64
+ }
65
+
66
+ self.attribute_map = {
67
+ 'ip_address': 'ipAddress',
68
+ 'port': 'port',
69
+ 'weight': 'weight',
70
+ 'max_connections': 'maxConnections',
71
+ 'backup': 'backup',
72
+ 'drain': 'drain',
73
+ 'offline': 'offline'
74
+ }
75
+
76
+ self._ip_address = None
77
+ self._port = None
78
+ self._weight = None
79
+ self._max_connections = None
80
+ self._backup = None
81
+ self._drain = None
82
+ self._offline = None
83
+
84
+ @property
85
+ def ip_address(self):
86
+ """
87
+ **[Required]** Gets the ip_address of this CreateBackendDetails.
88
+ The IP address of the backend server.
89
+
90
+ Example: `10.0.0.3`
91
+
92
+
93
+ :return: The ip_address of this CreateBackendDetails.
94
+ :rtype: str
95
+ """
96
+ return self._ip_address
97
+
98
+ @ip_address.setter
99
+ def ip_address(self, ip_address):
100
+ """
101
+ Sets the ip_address of this CreateBackendDetails.
102
+ The IP address of the backend server.
103
+
104
+ Example: `10.0.0.3`
105
+
106
+
107
+ :param ip_address: The ip_address of this CreateBackendDetails.
108
+ :type: str
109
+ """
110
+ self._ip_address = ip_address
111
+
112
+ @property
113
+ def port(self):
114
+ """
115
+ **[Required]** Gets the port of this CreateBackendDetails.
116
+ The communication port for the backend server.
117
+
118
+ Example: `8080`
119
+
120
+
121
+ :return: The port of this CreateBackendDetails.
122
+ :rtype: int
123
+ """
124
+ return self._port
125
+
126
+ @port.setter
127
+ def port(self, port):
128
+ """
129
+ Sets the port of this CreateBackendDetails.
130
+ The communication port for the backend server.
131
+
132
+ Example: `8080`
133
+
134
+
135
+ :param port: The port of this CreateBackendDetails.
136
+ :type: int
137
+ """
138
+ self._port = port
139
+
140
+ @property
141
+ def weight(self):
142
+ """
143
+ Gets the weight of this CreateBackendDetails.
144
+ The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
145
+ proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
146
+ as a server weighted '1'.
147
+ For more information on load balancing policies, see
148
+ `How Load Balancing Policies Work`__.
149
+
150
+ Example: `3`
151
+
152
+ __ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
153
+
154
+
155
+ :return: The weight of this CreateBackendDetails.
156
+ :rtype: int
157
+ """
158
+ return self._weight
159
+
160
+ @weight.setter
161
+ def weight(self, weight):
162
+ """
163
+ Sets the weight of this CreateBackendDetails.
164
+ The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger
165
+ proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections
166
+ as a server weighted '1'.
167
+ For more information on load balancing policies, see
168
+ `How Load Balancing Policies Work`__.
169
+
170
+ Example: `3`
171
+
172
+ __ https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm
173
+
174
+
175
+ :param weight: The weight of this CreateBackendDetails.
176
+ :type: int
177
+ """
178
+ self._weight = weight
179
+
180
+ @property
181
+ def max_connections(self):
182
+ """
183
+ Gets the max_connections of this CreateBackendDetails.
184
+ The maximum number of simultaneous connections the load balancer can make to the backend.
185
+ If this is not set then number of simultaneous connections the load balancer can make to
186
+ the backend is unlimited.
187
+
188
+ Example: `300`
189
+
190
+
191
+ :return: The max_connections of this CreateBackendDetails.
192
+ :rtype: int
193
+ """
194
+ return self._max_connections
195
+
196
+ @max_connections.setter
197
+ def max_connections(self, max_connections):
198
+ """
199
+ Sets the max_connections of this CreateBackendDetails.
200
+ The maximum number of simultaneous connections the load balancer can make to the backend.
201
+ If this is not set then number of simultaneous connections the load balancer can make to
202
+ the backend is unlimited.
203
+
204
+ Example: `300`
205
+
206
+
207
+ :param max_connections: The max_connections of this CreateBackendDetails.
208
+ :type: int
209
+ """
210
+ self._max_connections = max_connections
211
+
212
+ @property
213
+ def backup(self):
214
+ """
215
+ Gets the backup of this CreateBackendDetails.
216
+ Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
217
+ traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
218
+
219
+ **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
220
+
221
+ Example: `false`
222
+
223
+
224
+ :return: The backup of this CreateBackendDetails.
225
+ :rtype: bool
226
+ """
227
+ return self._backup
228
+
229
+ @backup.setter
230
+ def backup(self, backup):
231
+ """
232
+ Sets the backup of this CreateBackendDetails.
233
+ Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress
234
+ traffic to this backend server unless all other backend servers not marked as \"backup\" fail the health check policy.
235
+
236
+ **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy.
237
+
238
+ Example: `false`
239
+
240
+
241
+ :param backup: The backup of this CreateBackendDetails.
242
+ :type: bool
243
+ """
244
+ self._backup = backup
245
+
246
+ @property
247
+ def drain(self):
248
+ """
249
+ Gets the drain of this CreateBackendDetails.
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 CreateBackendDetails.
257
+ :rtype: bool
258
+ """
259
+ return self._drain
260
+
261
+ @drain.setter
262
+ def drain(self, drain):
263
+ """
264
+ Sets the drain of this CreateBackendDetails.
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 CreateBackendDetails.
272
+ :type: bool
273
+ """
274
+ self._drain = drain
275
+
276
+ @property
277
+ def offline(self):
278
+ """
279
+ Gets the offline of this CreateBackendDetails.
280
+ Whether the load balancer should treat this server as offline. Offline servers receive no incoming
281
+ traffic.
282
+
283
+ Example: `false`
284
+
285
+
286
+ :return: The offline of this CreateBackendDetails.
287
+ :rtype: bool
288
+ """
289
+ return self._offline
290
+
291
+ @offline.setter
292
+ def offline(self, offline):
293
+ """
294
+ Sets the offline of this CreateBackendDetails.
295
+ Whether the load balancer should treat this server as offline. Offline servers receive no incoming
296
+ traffic.
297
+
298
+ Example: `false`
299
+
300
+
301
+ :param offline: The offline of this CreateBackendDetails.
302
+ :type: bool
303
+ """
304
+ self._offline = offline
305
+
306
+ def __repr__(self):
307
+ return formatted_flat_dict(self)
308
+
309
+ def __eq__(self, other):
310
+ if other is None:
311
+ return False
312
+
313
+ return self.__dict__ == other.__dict__
314
+
315
+ def __ne__(self, other):
316
+ return not self == other