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,173 @@
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 RedirectRule(Rule):
14
+ """
15
+ An object that represents the action of returning a specified response code and a redirect URI. Each RedirectRule
16
+ object is configured for a particular listener and a designated path.
17
+
18
+ The default response code is `302 Found`.
19
+
20
+ **NOTES:**
21
+ * This rule applies only to HTTP listeners.
22
+ * You can specify this rule only with the :func:`rule_condition`
23
+ type `PATH`.
24
+ * A listener can have only one RedirectRule object for a given original path. The
25
+ :func:`path_match_condition` `attributeValue` specifies the
26
+ original path.
27
+ """
28
+
29
+ def __init__(self, **kwargs):
30
+ """
31
+ Initializes a new RedirectRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.RedirectRule.action` attribute
32
+ of this class is ``REDIRECT`` and it should not be changed.
33
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
34
+
35
+ :param action:
36
+ The value to assign to the action property of this RedirectRule.
37
+ 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"
38
+ :type action: str
39
+
40
+ :param response_code:
41
+ The value to assign to the response_code property of this RedirectRule.
42
+ :type response_code: int
43
+
44
+ :param conditions:
45
+ The value to assign to the conditions property of this RedirectRule.
46
+ :type conditions: list[oci.load_balancer.models.RuleCondition]
47
+
48
+ :param redirect_uri:
49
+ The value to assign to the redirect_uri property of this RedirectRule.
50
+ :type redirect_uri: oci.load_balancer.models.RedirectUri
51
+
52
+ """
53
+ self.swagger_types = {
54
+ 'action': 'str',
55
+ 'response_code': 'int',
56
+ 'conditions': 'list[RuleCondition]',
57
+ 'redirect_uri': 'RedirectUri'
58
+ }
59
+
60
+ self.attribute_map = {
61
+ 'action': 'action',
62
+ 'response_code': 'responseCode',
63
+ 'conditions': 'conditions',
64
+ 'redirect_uri': 'redirectUri'
65
+ }
66
+
67
+ self._action = None
68
+ self._response_code = None
69
+ self._conditions = None
70
+ self._redirect_uri = None
71
+ self._action = 'REDIRECT'
72
+
73
+ @property
74
+ def response_code(self):
75
+ """
76
+ Gets the response_code of this RedirectRule.
77
+ The HTTP status code to return when the incoming request is redirected.
78
+
79
+ The status line returned with the code is mapped from the standard HTTP specification. Valid response
80
+ codes for redirection are:
81
+
82
+ * 301
83
+ * 302
84
+ * 303
85
+ * 307
86
+ * 308
87
+
88
+ The default value is `302` (Found).
89
+
90
+ Example: `301`
91
+
92
+
93
+ :return: The response_code of this RedirectRule.
94
+ :rtype: int
95
+ """
96
+ return self._response_code
97
+
98
+ @response_code.setter
99
+ def response_code(self, response_code):
100
+ """
101
+ Sets the response_code of this RedirectRule.
102
+ The HTTP status code to return when the incoming request is redirected.
103
+
104
+ The status line returned with the code is mapped from the standard HTTP specification. Valid response
105
+ codes for redirection are:
106
+
107
+ * 301
108
+ * 302
109
+ * 303
110
+ * 307
111
+ * 308
112
+
113
+ The default value is `302` (Found).
114
+
115
+ Example: `301`
116
+
117
+
118
+ :param response_code: The response_code of this RedirectRule.
119
+ :type: int
120
+ """
121
+ self._response_code = response_code
122
+
123
+ @property
124
+ def conditions(self):
125
+ """
126
+ **[Required]** Gets the conditions of this RedirectRule.
127
+
128
+ :return: The conditions of this RedirectRule.
129
+ :rtype: list[oci.load_balancer.models.RuleCondition]
130
+ """
131
+ return self._conditions
132
+
133
+ @conditions.setter
134
+ def conditions(self, conditions):
135
+ """
136
+ Sets the conditions of this RedirectRule.
137
+
138
+ :param conditions: The conditions of this RedirectRule.
139
+ :type: list[oci.load_balancer.models.RuleCondition]
140
+ """
141
+ self._conditions = conditions
142
+
143
+ @property
144
+ def redirect_uri(self):
145
+ """
146
+ Gets the redirect_uri of this RedirectRule.
147
+
148
+ :return: The redirect_uri of this RedirectRule.
149
+ :rtype: oci.load_balancer.models.RedirectUri
150
+ """
151
+ return self._redirect_uri
152
+
153
+ @redirect_uri.setter
154
+ def redirect_uri(self, redirect_uri):
155
+ """
156
+ Sets the redirect_uri of this RedirectRule.
157
+
158
+ :param redirect_uri: The redirect_uri of this RedirectRule.
159
+ :type: oci.load_balancer.models.RedirectUri
160
+ """
161
+ self._redirect_uri = redirect_uri
162
+
163
+ def __repr__(self):
164
+ return formatted_flat_dict(self)
165
+
166
+ def __eq__(self, other):
167
+ if other is None:
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ return not self == other
@@ -0,0 +1,420 @@
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 RedirectUri(object):
14
+ """
15
+ An object that defines the redirect URI applied to the original request. The object property values compose the
16
+ redirect URI.
17
+
18
+ **NOTE:** The Load Balancing service cannot automatically detect or avoid infinite redirects. Be sure to provide
19
+ meaningful, complete, and correct field values. If any component field of this object has no value, the system
20
+ retains the value from the incoming HTTP request URI.
21
+
22
+ For example, if you specify only the protocol field `https`, and the incoming request URI is
23
+ `http://example.com:8080`, the resulting runtime redirect URI is `https://example.com:8080`. The system retains
24
+ the host and port from the incoming URI and does not automatically change the port setting from `8080` to `443`.
25
+
26
+ Be sure to configure valid percent-encoding (URL encoding) when needed.
27
+
28
+ In addition to static string values, you can use the following tokens to construct the redirect URI. These tokens
29
+ extract values from the incoming HTTP request URI.
30
+
31
+ * {protocol} : The protocol from the incoming HTTP request URI.
32
+ * {host} : The domain name from the incoming HTTP request URI.
33
+ * {port} : The port from the incoming HTTP request URI.
34
+ * {path} : The path from the incoming HTTP request URI.
35
+ * {query} : The query string from the incoming HTTP request URI.
36
+
37
+ The tokens are case sensitive. For example, `{host}` is a valid token, but `{HOST}` is not.
38
+
39
+ You can retain the literal characters of a token when you specify values for the path and query properties of the
40
+ redirect URI. Use a backslash (\\\\) as the escape character for the \\\\, {, and } characters. For example, if the
41
+ incoming HTTP request URI is `/video`, the path property value:
42
+
43
+ `/example{path}123\\{path\\}`
44
+
45
+ appears in the constructed redirect URI as:
46
+
47
+ `/example/video123{path}`
48
+ """
49
+
50
+ def __init__(self, **kwargs):
51
+ """
52
+ Initializes a new RedirectUri object with values from keyword arguments.
53
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
54
+
55
+ :param protocol:
56
+ The value to assign to the protocol property of this RedirectUri.
57
+ :type protocol: str
58
+
59
+ :param host:
60
+ The value to assign to the host property of this RedirectUri.
61
+ :type host: str
62
+
63
+ :param port:
64
+ The value to assign to the port property of this RedirectUri.
65
+ :type port: int
66
+
67
+ :param path:
68
+ The value to assign to the path property of this RedirectUri.
69
+ :type path: str
70
+
71
+ :param query:
72
+ The value to assign to the query property of this RedirectUri.
73
+ :type query: str
74
+
75
+ """
76
+ self.swagger_types = {
77
+ 'protocol': 'str',
78
+ 'host': 'str',
79
+ 'port': 'int',
80
+ 'path': 'str',
81
+ 'query': 'str'
82
+ }
83
+
84
+ self.attribute_map = {
85
+ 'protocol': 'protocol',
86
+ 'host': 'host',
87
+ 'port': 'port',
88
+ 'path': 'path',
89
+ 'query': 'query'
90
+ }
91
+
92
+ self._protocol = None
93
+ self._host = None
94
+ self._port = None
95
+ self._path = None
96
+ self._query = None
97
+
98
+ @property
99
+ def protocol(self):
100
+ """
101
+ Gets the protocol of this RedirectUri.
102
+ The HTTP protocol to use in the redirect URI.
103
+
104
+ When this value is null, not set, or set to `{protocol}`, the service preserves the original protocol from the
105
+ incoming HTTP request URI. Allowed values are:
106
+
107
+ * HTTP
108
+ * HTTPS
109
+ * {protocol}
110
+
111
+ `{protocol}` is the only valid token for this property. It can appear only once in the value string.
112
+
113
+ Example: `HTTPS`
114
+
115
+
116
+ :return: The protocol of this RedirectUri.
117
+ :rtype: str
118
+ """
119
+ return self._protocol
120
+
121
+ @protocol.setter
122
+ def protocol(self, protocol):
123
+ """
124
+ Sets the protocol of this RedirectUri.
125
+ The HTTP protocol to use in the redirect URI.
126
+
127
+ When this value is null, not set, or set to `{protocol}`, the service preserves the original protocol from the
128
+ incoming HTTP request URI. Allowed values are:
129
+
130
+ * HTTP
131
+ * HTTPS
132
+ * {protocol}
133
+
134
+ `{protocol}` is the only valid token for this property. It can appear only once in the value string.
135
+
136
+ Example: `HTTPS`
137
+
138
+
139
+ :param protocol: The protocol of this RedirectUri.
140
+ :type: str
141
+ """
142
+ self._protocol = protocol
143
+
144
+ @property
145
+ def host(self):
146
+ """
147
+ Gets the host of this RedirectUri.
148
+ The valid domain name (hostname) or IP address to use in the redirect URI.
149
+
150
+ When this value is null, not set, or set to `{host}`, the service preserves the original domain name from the
151
+ incoming HTTP request URI.
152
+
153
+ All RedirectUri tokens are valid for this property. You can use any token more than once.
154
+
155
+ Curly braces are valid in this property only to surround tokens, such as `{host}`
156
+
157
+ Examples:
158
+
159
+ * **example.com** appears as `example.com` in the redirect URI.
160
+
161
+ * **in{host}** appears as `inexample.com` in the redirect URI if `example.com` is the hostname in the
162
+ incoming HTTP request URI.
163
+
164
+ * **{port}{host}** appears as `8081example.com` in the redirect URI if `example.com` is the hostname and
165
+ the port is `8081` in the incoming HTTP request URI.
166
+
167
+
168
+ :return: The host of this RedirectUri.
169
+ :rtype: str
170
+ """
171
+ return self._host
172
+
173
+ @host.setter
174
+ def host(self, host):
175
+ """
176
+ Sets the host of this RedirectUri.
177
+ The valid domain name (hostname) or IP address to use in the redirect URI.
178
+
179
+ When this value is null, not set, or set to `{host}`, the service preserves the original domain name from the
180
+ incoming HTTP request URI.
181
+
182
+ All RedirectUri tokens are valid for this property. You can use any token more than once.
183
+
184
+ Curly braces are valid in this property only to surround tokens, such as `{host}`
185
+
186
+ Examples:
187
+
188
+ * **example.com** appears as `example.com` in the redirect URI.
189
+
190
+ * **in{host}** appears as `inexample.com` in the redirect URI if `example.com` is the hostname in the
191
+ incoming HTTP request URI.
192
+
193
+ * **{port}{host}** appears as `8081example.com` in the redirect URI if `example.com` is the hostname and
194
+ the port is `8081` in the incoming HTTP request URI.
195
+
196
+
197
+ :param host: The host of this RedirectUri.
198
+ :type: str
199
+ """
200
+ self._host = host
201
+
202
+ @property
203
+ def port(self):
204
+ """
205
+ Gets the port of this RedirectUri.
206
+ The communication port to use in the redirect URI.
207
+
208
+ Valid values include integers from 1 to 65535.
209
+
210
+ When this value is null, the service preserves the original port from the incoming HTTP request URI.
211
+
212
+ Example: `8081`
213
+
214
+
215
+ :return: The port of this RedirectUri.
216
+ :rtype: int
217
+ """
218
+ return self._port
219
+
220
+ @port.setter
221
+ def port(self, port):
222
+ """
223
+ Sets the port of this RedirectUri.
224
+ The communication port to use in the redirect URI.
225
+
226
+ Valid values include integers from 1 to 65535.
227
+
228
+ When this value is null, the service preserves the original port from the incoming HTTP request URI.
229
+
230
+ Example: `8081`
231
+
232
+
233
+ :param port: The port of this RedirectUri.
234
+ :type: int
235
+ """
236
+ self._port = port
237
+
238
+ @property
239
+ def path(self):
240
+ """
241
+ Gets the path of this RedirectUri.
242
+ The HTTP URI path to use in the redirect URI.
243
+
244
+ When this value is null, not set, or set to `{path}`, the service preserves the original path from the
245
+ incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, \"\".
246
+
247
+ All RedirectUri tokens are valid for this property. You can use any token more than once.
248
+
249
+ The path string must begin with `/` if it does not begin with the `{path}` token.
250
+
251
+ Examples:
252
+
253
+ * __/example/video/123__ appears as `/example/video/123` in the redirect URI.
254
+
255
+ * __/example{path}__ appears as `/example/video/123` in the redirect URI if `/video/123` is the path in the
256
+ incoming HTTP request URI.
257
+
258
+ * __{path}/123__ appears as `/example/video/123` in the redirect URI if `/example/video` is the path in the
259
+ incoming HTTP request URI.
260
+
261
+ * __{path}123__ appears as `/example/video123` in the redirect URI if `/example/video` is the path in the
262
+ incoming HTTP request URI.
263
+
264
+ * __/{host}/123__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname
265
+ in the incoming HTTP request URI.
266
+
267
+ * __/{host}/{port}__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname and
268
+ `123` is the port in the incoming HTTP request URI.
269
+
270
+ * __/{query}__ appears as `/lang=en` in the redirect URI if the query is `lang=en` in the incoming HTTP
271
+ request URI.
272
+
273
+
274
+ :return: The path of this RedirectUri.
275
+ :rtype: str
276
+ """
277
+ return self._path
278
+
279
+ @path.setter
280
+ def path(self, path):
281
+ """
282
+ Sets the path of this RedirectUri.
283
+ The HTTP URI path to use in the redirect URI.
284
+
285
+ When this value is null, not set, or set to `{path}`, the service preserves the original path from the
286
+ incoming HTTP request URI. To omit the path from the redirect URI, set this value to an empty string, \"\".
287
+
288
+ All RedirectUri tokens are valid for this property. You can use any token more than once.
289
+
290
+ The path string must begin with `/` if it does not begin with the `{path}` token.
291
+
292
+ Examples:
293
+
294
+ * __/example/video/123__ appears as `/example/video/123` in the redirect URI.
295
+
296
+ * __/example{path}__ appears as `/example/video/123` in the redirect URI if `/video/123` is the path in the
297
+ incoming HTTP request URI.
298
+
299
+ * __{path}/123__ appears as `/example/video/123` in the redirect URI if `/example/video` is the path in the
300
+ incoming HTTP request URI.
301
+
302
+ * __{path}123__ appears as `/example/video123` in the redirect URI if `/example/video` is the path in the
303
+ incoming HTTP request URI.
304
+
305
+ * __/{host}/123__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname
306
+ in the incoming HTTP request URI.
307
+
308
+ * __/{host}/{port}__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname and
309
+ `123` is the port in the incoming HTTP request URI.
310
+
311
+ * __/{query}__ appears as `/lang=en` in the redirect URI if the query is `lang=en` in the incoming HTTP
312
+ request URI.
313
+
314
+
315
+ :param path: The path of this RedirectUri.
316
+ :type: str
317
+ """
318
+ self._path = path
319
+
320
+ @property
321
+ def query(self):
322
+ """
323
+ Gets the query of this RedirectUri.
324
+ The query string to use in the redirect URI.
325
+
326
+ When this value is null, not set, or set to `{query}`, the service preserves the original query parameters
327
+ from the incoming HTTP request URI.
328
+
329
+ All `RedirectUri` tokens are valid for this property. You can use any token more than once.
330
+
331
+ If the query string does not begin with the `{query}` token, it must begin with the question mark (?) character.
332
+
333
+ You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand
334
+ (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty
335
+ string, \"\".
336
+
337
+ If the specified query string results in a redirect URI ending with `?` or `&`, the last character is truncated.
338
+ For example, if the incoming URI is `http://host.com:8080/documents` and the query property value is
339
+ `?lang=en&{query}`, the redirect URI is `http://host.com:8080/documents?lang=en`. The system
340
+ truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.
341
+
342
+ Examples:
343
+ * **lang=en&time_zone=PST** appears as `lang=en&time_zone=PST` in the redirect URI.
344
+
345
+ * **{query}** appears as `lang=en&time_zone=PST` in the redirect URI if `lang=en&time_zone=PST` is the query
346
+ string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the `{query}`
347
+ token renders as an empty string.
348
+
349
+ * **lang=en&{query}&time_zone=PST** appears as `lang=en&country=us&time_zone=PST` in the redirect URI if
350
+ `country=us` is the query string in the incoming HTTP request. If the incoming HTTP request has no query
351
+ parameters, this value renders as `lang=en&time_zone=PST`.
352
+
353
+ * **protocol={protocol}&hostname={host}** appears as `protocol=http&hostname=example.com` in the redirect
354
+ URI if the protocol is `HTTP` and the hostname is `example.com` in the incoming HTTP request.
355
+
356
+ * **port={port}&hostname={host}** appears as `port=8080&hostname=example.com` in the redirect URI if the
357
+ port is `8080` and the hostname is `example.com` in the incoming HTTP request URI.
358
+
359
+
360
+ :return: The query of this RedirectUri.
361
+ :rtype: str
362
+ """
363
+ return self._query
364
+
365
+ @query.setter
366
+ def query(self, query):
367
+ """
368
+ Sets the query of this RedirectUri.
369
+ The query string to use in the redirect URI.
370
+
371
+ When this value is null, not set, or set to `{query}`, the service preserves the original query parameters
372
+ from the incoming HTTP request URI.
373
+
374
+ All `RedirectUri` tokens are valid for this property. You can use any token more than once.
375
+
376
+ If the query string does not begin with the `{query}` token, it must begin with the question mark (?) character.
377
+
378
+ You can specify multiple query parameters as a single string. Separate each query parameter with an ampersand
379
+ (&) character. To omit all incoming query parameters from the redirect URI, set this value to an empty
380
+ string, \"\".
381
+
382
+ If the specified query string results in a redirect URI ending with `?` or `&`, the last character is truncated.
383
+ For example, if the incoming URI is `http://host.com:8080/documents` and the query property value is
384
+ `?lang=en&{query}`, the redirect URI is `http://host.com:8080/documents?lang=en`. The system
385
+ truncates the final ampersand (&) because the incoming URI included no value to replace the {query} token.
386
+
387
+ Examples:
388
+ * **lang=en&time_zone=PST** appears as `lang=en&time_zone=PST` in the redirect URI.
389
+
390
+ * **{query}** appears as `lang=en&time_zone=PST` in the redirect URI if `lang=en&time_zone=PST` is the query
391
+ string in the incoming HTTP request. If the incoming HTTP request has no query parameters, the `{query}`
392
+ token renders as an empty string.
393
+
394
+ * **lang=en&{query}&time_zone=PST** appears as `lang=en&country=us&time_zone=PST` in the redirect URI if
395
+ `country=us` is the query string in the incoming HTTP request. If the incoming HTTP request has no query
396
+ parameters, this value renders as `lang=en&time_zone=PST`.
397
+
398
+ * **protocol={protocol}&hostname={host}** appears as `protocol=http&hostname=example.com` in the redirect
399
+ URI if the protocol is `HTTP` and the hostname is `example.com` in the incoming HTTP request.
400
+
401
+ * **port={port}&hostname={host}** appears as `port=8080&hostname=example.com` in the redirect URI if the
402
+ port is `8080` and the hostname is `example.com` in the incoming HTTP request URI.
403
+
404
+
405
+ :param query: The query of this RedirectUri.
406
+ :type: str
407
+ """
408
+ self._query = query
409
+
410
+ def __repr__(self):
411
+ return formatted_flat_dict(self)
412
+
413
+ def __eq__(self, other):
414
+ if other is None:
415
+ return False
416
+
417
+ return self.__dict__ == other.__dict__
418
+
419
+ def __ne__(self, other):
420
+ return not self == other
@@ -0,0 +1,90 @@
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 RemoveHttpRequestHeaderRule(Rule):
14
+ """
15
+ An object that represents the action of removing a header from a request. This rule applies only to HTTP listeners.
16
+ If the same header appears more than once in the request, the load balancer removes all occurances of the specified header.
17
+ **Note:** The system does not distinquish between underscore and dash characters in headers. That is, it treats
18
+ `example_header_name` and `example-header-name` as identical. Oracle recommends that you do not rely on underscore
19
+ or dash characters to uniquely distinguish header names.
20
+ """
21
+
22
+ def __init__(self, **kwargs):
23
+ """
24
+ Initializes a new RemoveHttpRequestHeaderRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.RemoveHttpRequestHeaderRule.action` attribute
25
+ of this class is ``REMOVE_HTTP_REQUEST_HEADER`` and it should not be changed.
26
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
27
+
28
+ :param action:
29
+ The value to assign to the action property of this RemoveHttpRequestHeaderRule.
30
+ 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"
31
+ :type action: str
32
+
33
+ :param header:
34
+ The value to assign to the header property of this RemoveHttpRequestHeaderRule.
35
+ :type header: str
36
+
37
+ """
38
+ self.swagger_types = {
39
+ 'action': 'str',
40
+ 'header': 'str'
41
+ }
42
+
43
+ self.attribute_map = {
44
+ 'action': 'action',
45
+ 'header': 'header'
46
+ }
47
+
48
+ self._action = None
49
+ self._header = None
50
+ self._action = 'REMOVE_HTTP_REQUEST_HEADER'
51
+
52
+ @property
53
+ def header(self):
54
+ """
55
+ **[Required]** Gets the header of this RemoveHttpRequestHeaderRule.
56
+ A header name that conforms to RFC 7230.
57
+
58
+ Example: `example_header_name`
59
+
60
+
61
+ :return: The header of this RemoveHttpRequestHeaderRule.
62
+ :rtype: str
63
+ """
64
+ return self._header
65
+
66
+ @header.setter
67
+ def header(self, header):
68
+ """
69
+ Sets the header of this RemoveHttpRequestHeaderRule.
70
+ A header name that conforms to RFC 7230.
71
+
72
+ Example: `example_header_name`
73
+
74
+
75
+ :param header: The header of this RemoveHttpRequestHeaderRule.
76
+ :type: str
77
+ """
78
+ self._header = header
79
+
80
+ def __repr__(self):
81
+ return formatted_flat_dict(self)
82
+
83
+ def __eq__(self, other):
84
+ if other is None:
85
+ return False
86
+
87
+ return self.__dict__ == other.__dict__
88
+
89
+ def __ne__(self, other):
90
+ return not self == other