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,423 @@
|
|
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 LBCookieSessionPersistenceConfigurationDetails(object):
|
14
|
+
"""
|
15
|
+
The configuration details for implementing load balancer cookie session persistence (LB cookie stickiness).
|
16
|
+
|
17
|
+
Session persistence enables the Load Balancing service to direct all requests that originate from a single logical
|
18
|
+
client to a single backend web server. For more information, see
|
19
|
+
`Session Persistence`__.
|
20
|
+
|
21
|
+
When you configure LB cookie stickiness, the load balancer inserts a cookie into the response. The parameters configured
|
22
|
+
in the cookie enable session stickiness. This method is useful when you have applications and Web backend services
|
23
|
+
that cannot generate their own cookies.
|
24
|
+
|
25
|
+
Path route rules take precedence to determine the target backend server. The load balancer verifies that session stickiness
|
26
|
+
is enabled for the backend server and that the cookie configuration (domain, path, and cookie hash) is valid for the
|
27
|
+
target. The system ignores invalid cookies.
|
28
|
+
|
29
|
+
To disable LB cookie stickiness on a running load balancer, use the
|
30
|
+
:func:`update_backend_set` operation and specify `null` for the
|
31
|
+
`LBCookieSessionPersistenceConfigurationDetails` object.
|
32
|
+
|
33
|
+
Example: `LBCookieSessionPersistenceConfigurationDetails: null`
|
34
|
+
|
35
|
+
**Note:** `SessionPersistenceConfigurationDetails` (application cookie stickiness) and `LBCookieSessionPersistenceConfigurationDetails`
|
36
|
+
(LB cookie stickiness) are mutually exclusive. An error results if you try to enable both types of session persistence.
|
37
|
+
|
38
|
+
**Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
39
|
+
|
40
|
+
__ https://docs.cloud.oracle.com/Content/Balance/Reference/sessionpersistence.htm
|
41
|
+
"""
|
42
|
+
|
43
|
+
def __init__(self, **kwargs):
|
44
|
+
"""
|
45
|
+
Initializes a new LBCookieSessionPersistenceConfigurationDetails object with values from keyword arguments.
|
46
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
47
|
+
|
48
|
+
:param cookie_name:
|
49
|
+
The value to assign to the cookie_name property of this LBCookieSessionPersistenceConfigurationDetails.
|
50
|
+
:type cookie_name: str
|
51
|
+
|
52
|
+
:param disable_fallback:
|
53
|
+
The value to assign to the disable_fallback property of this LBCookieSessionPersistenceConfigurationDetails.
|
54
|
+
:type disable_fallback: bool
|
55
|
+
|
56
|
+
:param domain:
|
57
|
+
The value to assign to the domain property of this LBCookieSessionPersistenceConfigurationDetails.
|
58
|
+
:type domain: str
|
59
|
+
|
60
|
+
:param path:
|
61
|
+
The value to assign to the path property of this LBCookieSessionPersistenceConfigurationDetails.
|
62
|
+
:type path: str
|
63
|
+
|
64
|
+
:param max_age_in_seconds:
|
65
|
+
The value to assign to the max_age_in_seconds property of this LBCookieSessionPersistenceConfigurationDetails.
|
66
|
+
:type max_age_in_seconds: int
|
67
|
+
|
68
|
+
:param is_secure:
|
69
|
+
The value to assign to the is_secure property of this LBCookieSessionPersistenceConfigurationDetails.
|
70
|
+
:type is_secure: bool
|
71
|
+
|
72
|
+
:param is_http_only:
|
73
|
+
The value to assign to the is_http_only property of this LBCookieSessionPersistenceConfigurationDetails.
|
74
|
+
:type is_http_only: bool
|
75
|
+
|
76
|
+
"""
|
77
|
+
self.swagger_types = {
|
78
|
+
'cookie_name': 'str',
|
79
|
+
'disable_fallback': 'bool',
|
80
|
+
'domain': 'str',
|
81
|
+
'path': 'str',
|
82
|
+
'max_age_in_seconds': 'int',
|
83
|
+
'is_secure': 'bool',
|
84
|
+
'is_http_only': 'bool'
|
85
|
+
}
|
86
|
+
|
87
|
+
self.attribute_map = {
|
88
|
+
'cookie_name': 'cookieName',
|
89
|
+
'disable_fallback': 'disableFallback',
|
90
|
+
'domain': 'domain',
|
91
|
+
'path': 'path',
|
92
|
+
'max_age_in_seconds': 'maxAgeInSeconds',
|
93
|
+
'is_secure': 'isSecure',
|
94
|
+
'is_http_only': 'isHttpOnly'
|
95
|
+
}
|
96
|
+
|
97
|
+
self._cookie_name = None
|
98
|
+
self._disable_fallback = None
|
99
|
+
self._domain = None
|
100
|
+
self._path = None
|
101
|
+
self._max_age_in_seconds = None
|
102
|
+
self._is_secure = None
|
103
|
+
self._is_http_only = None
|
104
|
+
|
105
|
+
@property
|
106
|
+
def cookie_name(self):
|
107
|
+
"""
|
108
|
+
Gets the cookie_name of this LBCookieSessionPersistenceConfigurationDetails.
|
109
|
+
The name of the cookie inserted by the load balancer. If this field is not configured, the cookie name defaults
|
110
|
+
to \"X-Oracle-BMC-LBS-Route\".
|
111
|
+
|
112
|
+
Example: `example_cookie`
|
113
|
+
|
114
|
+
**Notes:**
|
115
|
+
|
116
|
+
* Ensure that the cookie name used at the backend application servers is different from the cookie name used
|
117
|
+
at the load balancer. To minimize the chance of name collision, Oracle recommends that you use a prefix
|
118
|
+
such as \"X-Oracle-OCI-\" for this field.
|
119
|
+
|
120
|
+
* If a backend server and the load balancer both insert cookies with the same name, the client or browser
|
121
|
+
behavior can vary depending on the domain and path values associated with the cookie. If the name, domain,
|
122
|
+
and path values of the `Set-cookie` generated by a backend server and the `Set-cookie` generated by the
|
123
|
+
load balancer are all the same, the client or browser treats them as one cookie and returns only one of
|
124
|
+
the cookie values in subsequent requests. If both `Set-cookie` names are the same, but the domain and path
|
125
|
+
names are different, the client or browser treats them as two different cookies.
|
126
|
+
|
127
|
+
|
128
|
+
:return: The cookie_name of this LBCookieSessionPersistenceConfigurationDetails.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._cookie_name
|
132
|
+
|
133
|
+
@cookie_name.setter
|
134
|
+
def cookie_name(self, cookie_name):
|
135
|
+
"""
|
136
|
+
Sets the cookie_name of this LBCookieSessionPersistenceConfigurationDetails.
|
137
|
+
The name of the cookie inserted by the load balancer. If this field is not configured, the cookie name defaults
|
138
|
+
to \"X-Oracle-BMC-LBS-Route\".
|
139
|
+
|
140
|
+
Example: `example_cookie`
|
141
|
+
|
142
|
+
**Notes:**
|
143
|
+
|
144
|
+
* Ensure that the cookie name used at the backend application servers is different from the cookie name used
|
145
|
+
at the load balancer. To minimize the chance of name collision, Oracle recommends that you use a prefix
|
146
|
+
such as \"X-Oracle-OCI-\" for this field.
|
147
|
+
|
148
|
+
* If a backend server and the load balancer both insert cookies with the same name, the client or browser
|
149
|
+
behavior can vary depending on the domain and path values associated with the cookie. If the name, domain,
|
150
|
+
and path values of the `Set-cookie` generated by a backend server and the `Set-cookie` generated by the
|
151
|
+
load balancer are all the same, the client or browser treats them as one cookie and returns only one of
|
152
|
+
the cookie values in subsequent requests. If both `Set-cookie` names are the same, but the domain and path
|
153
|
+
names are different, the client or browser treats them as two different cookies.
|
154
|
+
|
155
|
+
|
156
|
+
:param cookie_name: The cookie_name of this LBCookieSessionPersistenceConfigurationDetails.
|
157
|
+
:type: str
|
158
|
+
"""
|
159
|
+
self._cookie_name = cookie_name
|
160
|
+
|
161
|
+
@property
|
162
|
+
def disable_fallback(self):
|
163
|
+
"""
|
164
|
+
Gets the disable_fallback of this LBCookieSessionPersistenceConfigurationDetails.
|
165
|
+
Whether the load balancer is prevented from directing traffic from a persistent session client to
|
166
|
+
a different backend server if the original server is unavailable. Defaults to false.
|
167
|
+
|
168
|
+
Example: `false`
|
169
|
+
|
170
|
+
|
171
|
+
:return: The disable_fallback of this LBCookieSessionPersistenceConfigurationDetails.
|
172
|
+
:rtype: bool
|
173
|
+
"""
|
174
|
+
return self._disable_fallback
|
175
|
+
|
176
|
+
@disable_fallback.setter
|
177
|
+
def disable_fallback(self, disable_fallback):
|
178
|
+
"""
|
179
|
+
Sets the disable_fallback of this LBCookieSessionPersistenceConfigurationDetails.
|
180
|
+
Whether the load balancer is prevented from directing traffic from a persistent session client to
|
181
|
+
a different backend server if the original server is unavailable. Defaults to false.
|
182
|
+
|
183
|
+
Example: `false`
|
184
|
+
|
185
|
+
|
186
|
+
:param disable_fallback: The disable_fallback of this LBCookieSessionPersistenceConfigurationDetails.
|
187
|
+
:type: bool
|
188
|
+
"""
|
189
|
+
self._disable_fallback = disable_fallback
|
190
|
+
|
191
|
+
@property
|
192
|
+
def domain(self):
|
193
|
+
"""
|
194
|
+
Gets the domain of this LBCookieSessionPersistenceConfigurationDetails.
|
195
|
+
The domain in which the cookie is valid. The `Set-cookie` header inserted by the load balancer contains a
|
196
|
+
domain attribute with the specified value.
|
197
|
+
|
198
|
+
This attribute has no default value. If you do not specify a value, the load balancer does not insert the domain
|
199
|
+
attribute into the `Set-cookie` header.
|
200
|
+
|
201
|
+
**Notes:**
|
202
|
+
|
203
|
+
* `RFC 6265 - HTTP State Management Mechanism`__ describes client and
|
204
|
+
browser behavior when the domain attribute is present or not present in the `Set-cookie` header.
|
205
|
+
|
206
|
+
If the value of the `Domain` attribute is `example.com` in the `Set-cookie` header, the client includes
|
207
|
+
the same cookie in the `Cookie` header when making HTTP requests to `example.com`, `www.example.com`, and
|
208
|
+
`www.abc.example.com`. If the `Domain` attribute is not present, the client returns the cookie only for
|
209
|
+
the domain to which the original request was made.
|
210
|
+
|
211
|
+
* Ensure that this attribute specifies the correct domain value. If the `Domain` attribute in the `Set-cookie`
|
212
|
+
header does not include the domain to which the original request was made, the client or browser might reject
|
213
|
+
the cookie. As specified in RFC 6265, the client accepts a cookie with the `Domain` attribute value `example.com`
|
214
|
+
or `www.example.com` sent from `www.example.com`. It does not accept a cookie with the `Domain` attribute
|
215
|
+
`abc.example.com` or `www.abc.example.com` sent from `www.example.com`.
|
216
|
+
|
217
|
+
Example: `example.com`
|
218
|
+
|
219
|
+
__ https://www.ietf.org/rfc/rfc6265.txt
|
220
|
+
|
221
|
+
|
222
|
+
:return: The domain of this LBCookieSessionPersistenceConfigurationDetails.
|
223
|
+
:rtype: str
|
224
|
+
"""
|
225
|
+
return self._domain
|
226
|
+
|
227
|
+
@domain.setter
|
228
|
+
def domain(self, domain):
|
229
|
+
"""
|
230
|
+
Sets the domain of this LBCookieSessionPersistenceConfigurationDetails.
|
231
|
+
The domain in which the cookie is valid. The `Set-cookie` header inserted by the load balancer contains a
|
232
|
+
domain attribute with the specified value.
|
233
|
+
|
234
|
+
This attribute has no default value. If you do not specify a value, the load balancer does not insert the domain
|
235
|
+
attribute into the `Set-cookie` header.
|
236
|
+
|
237
|
+
**Notes:**
|
238
|
+
|
239
|
+
* `RFC 6265 - HTTP State Management Mechanism`__ describes client and
|
240
|
+
browser behavior when the domain attribute is present or not present in the `Set-cookie` header.
|
241
|
+
|
242
|
+
If the value of the `Domain` attribute is `example.com` in the `Set-cookie` header, the client includes
|
243
|
+
the same cookie in the `Cookie` header when making HTTP requests to `example.com`, `www.example.com`, and
|
244
|
+
`www.abc.example.com`. If the `Domain` attribute is not present, the client returns the cookie only for
|
245
|
+
the domain to which the original request was made.
|
246
|
+
|
247
|
+
* Ensure that this attribute specifies the correct domain value. If the `Domain` attribute in the `Set-cookie`
|
248
|
+
header does not include the domain to which the original request was made, the client or browser might reject
|
249
|
+
the cookie. As specified in RFC 6265, the client accepts a cookie with the `Domain` attribute value `example.com`
|
250
|
+
or `www.example.com` sent from `www.example.com`. It does not accept a cookie with the `Domain` attribute
|
251
|
+
`abc.example.com` or `www.abc.example.com` sent from `www.example.com`.
|
252
|
+
|
253
|
+
Example: `example.com`
|
254
|
+
|
255
|
+
__ https://www.ietf.org/rfc/rfc6265.txt
|
256
|
+
|
257
|
+
|
258
|
+
:param domain: The domain of this LBCookieSessionPersistenceConfigurationDetails.
|
259
|
+
:type: str
|
260
|
+
"""
|
261
|
+
self._domain = domain
|
262
|
+
|
263
|
+
@property
|
264
|
+
def path(self):
|
265
|
+
"""
|
266
|
+
Gets the path of this LBCookieSessionPersistenceConfigurationDetails.
|
267
|
+
The path in which the cookie is valid. The `Set-cookie header` inserted by the load balancer contains a `Path`
|
268
|
+
attribute with the specified value.
|
269
|
+
|
270
|
+
Clients include the cookie in an HTTP request only if the path portion of the request-uri matches, or is a
|
271
|
+
subdirectory of, the cookie's `Path` attribute.
|
272
|
+
|
273
|
+
The default value is `/`.
|
274
|
+
|
275
|
+
Example: `/example`
|
276
|
+
|
277
|
+
|
278
|
+
:return: The path of this LBCookieSessionPersistenceConfigurationDetails.
|
279
|
+
:rtype: str
|
280
|
+
"""
|
281
|
+
return self._path
|
282
|
+
|
283
|
+
@path.setter
|
284
|
+
def path(self, path):
|
285
|
+
"""
|
286
|
+
Sets the path of this LBCookieSessionPersistenceConfigurationDetails.
|
287
|
+
The path in which the cookie is valid. The `Set-cookie header` inserted by the load balancer contains a `Path`
|
288
|
+
attribute with the specified value.
|
289
|
+
|
290
|
+
Clients include the cookie in an HTTP request only if the path portion of the request-uri matches, or is a
|
291
|
+
subdirectory of, the cookie's `Path` attribute.
|
292
|
+
|
293
|
+
The default value is `/`.
|
294
|
+
|
295
|
+
Example: `/example`
|
296
|
+
|
297
|
+
|
298
|
+
:param path: The path of this LBCookieSessionPersistenceConfigurationDetails.
|
299
|
+
:type: str
|
300
|
+
"""
|
301
|
+
self._path = path
|
302
|
+
|
303
|
+
@property
|
304
|
+
def max_age_in_seconds(self):
|
305
|
+
"""
|
306
|
+
Gets the max_age_in_seconds of this LBCookieSessionPersistenceConfigurationDetails.
|
307
|
+
The amount of time the cookie remains valid. The `Set-cookie` header inserted by the load balancer contains
|
308
|
+
a `Max-Age` attribute with the specified value.
|
309
|
+
|
310
|
+
The specified value must be at least one second. There is no default value for this attribute. If you do not
|
311
|
+
specify a value, the load balancer does not include the `Max-Age` attribute in the `Set-cookie` header. In
|
312
|
+
most cases, the client or browser retains the cookie until the current session ends, as defined by the client.
|
313
|
+
|
314
|
+
Example: `3600`
|
315
|
+
|
316
|
+
|
317
|
+
:return: The max_age_in_seconds of this LBCookieSessionPersistenceConfigurationDetails.
|
318
|
+
:rtype: int
|
319
|
+
"""
|
320
|
+
return self._max_age_in_seconds
|
321
|
+
|
322
|
+
@max_age_in_seconds.setter
|
323
|
+
def max_age_in_seconds(self, max_age_in_seconds):
|
324
|
+
"""
|
325
|
+
Sets the max_age_in_seconds of this LBCookieSessionPersistenceConfigurationDetails.
|
326
|
+
The amount of time the cookie remains valid. The `Set-cookie` header inserted by the load balancer contains
|
327
|
+
a `Max-Age` attribute with the specified value.
|
328
|
+
|
329
|
+
The specified value must be at least one second. There is no default value for this attribute. If you do not
|
330
|
+
specify a value, the load balancer does not include the `Max-Age` attribute in the `Set-cookie` header. In
|
331
|
+
most cases, the client or browser retains the cookie until the current session ends, as defined by the client.
|
332
|
+
|
333
|
+
Example: `3600`
|
334
|
+
|
335
|
+
|
336
|
+
:param max_age_in_seconds: The max_age_in_seconds of this LBCookieSessionPersistenceConfigurationDetails.
|
337
|
+
:type: int
|
338
|
+
"""
|
339
|
+
self._max_age_in_seconds = max_age_in_seconds
|
340
|
+
|
341
|
+
@property
|
342
|
+
def is_secure(self):
|
343
|
+
"""
|
344
|
+
Gets the is_secure of this LBCookieSessionPersistenceConfigurationDetails.
|
345
|
+
Whether the `Set-cookie` header should contain the `Secure` attribute. If `true`, the `Set-cookie` header
|
346
|
+
inserted by the load balancer contains the `Secure` attribute, which directs the client or browser to send the
|
347
|
+
cookie only using a secure protocol.
|
348
|
+
|
349
|
+
**Note:** If you set this field to `true`, you cannot associate the corresponding backend set with an HTTP
|
350
|
+
listener.
|
351
|
+
|
352
|
+
Example: `true`
|
353
|
+
|
354
|
+
|
355
|
+
:return: The is_secure of this LBCookieSessionPersistenceConfigurationDetails.
|
356
|
+
:rtype: bool
|
357
|
+
"""
|
358
|
+
return self._is_secure
|
359
|
+
|
360
|
+
@is_secure.setter
|
361
|
+
def is_secure(self, is_secure):
|
362
|
+
"""
|
363
|
+
Sets the is_secure of this LBCookieSessionPersistenceConfigurationDetails.
|
364
|
+
Whether the `Set-cookie` header should contain the `Secure` attribute. If `true`, the `Set-cookie` header
|
365
|
+
inserted by the load balancer contains the `Secure` attribute, which directs the client or browser to send the
|
366
|
+
cookie only using a secure protocol.
|
367
|
+
|
368
|
+
**Note:** If you set this field to `true`, you cannot associate the corresponding backend set with an HTTP
|
369
|
+
listener.
|
370
|
+
|
371
|
+
Example: `true`
|
372
|
+
|
373
|
+
|
374
|
+
:param is_secure: The is_secure of this LBCookieSessionPersistenceConfigurationDetails.
|
375
|
+
:type: bool
|
376
|
+
"""
|
377
|
+
self._is_secure = is_secure
|
378
|
+
|
379
|
+
@property
|
380
|
+
def is_http_only(self):
|
381
|
+
"""
|
382
|
+
Gets the is_http_only of this LBCookieSessionPersistenceConfigurationDetails.
|
383
|
+
Whether the `Set-cookie` header should contain the `HttpOnly` attribute. If `true`, the `Set-cookie` header
|
384
|
+
inserted by the load balancer contains the `HttpOnly` attribute, which limits the scope of the cookie to HTTP
|
385
|
+
requests. This attribute directs the client or browser to omit the cookie when providing access to cookies
|
386
|
+
through non-HTTP APIs. For example, it restricts the cookie from JavaScript channels.
|
387
|
+
|
388
|
+
Example: `true`
|
389
|
+
|
390
|
+
|
391
|
+
:return: The is_http_only of this LBCookieSessionPersistenceConfigurationDetails.
|
392
|
+
:rtype: bool
|
393
|
+
"""
|
394
|
+
return self._is_http_only
|
395
|
+
|
396
|
+
@is_http_only.setter
|
397
|
+
def is_http_only(self, is_http_only):
|
398
|
+
"""
|
399
|
+
Sets the is_http_only of this LBCookieSessionPersistenceConfigurationDetails.
|
400
|
+
Whether the `Set-cookie` header should contain the `HttpOnly` attribute. If `true`, the `Set-cookie` header
|
401
|
+
inserted by the load balancer contains the `HttpOnly` attribute, which limits the scope of the cookie to HTTP
|
402
|
+
requests. This attribute directs the client or browser to omit the cookie when providing access to cookies
|
403
|
+
through non-HTTP APIs. For example, it restricts the cookie from JavaScript channels.
|
404
|
+
|
405
|
+
Example: `true`
|
406
|
+
|
407
|
+
|
408
|
+
:param is_http_only: The is_http_only of this LBCookieSessionPersistenceConfigurationDetails.
|
409
|
+
:type: bool
|
410
|
+
"""
|
411
|
+
self._is_http_only = is_http_only
|
412
|
+
|
413
|
+
def __repr__(self):
|
414
|
+
return formatted_flat_dict(self)
|
415
|
+
|
416
|
+
def __eq__(self, other):
|
417
|
+
if other is None:
|
418
|
+
return False
|
419
|
+
|
420
|
+
return self.__dict__ == other.__dict__
|
421
|
+
|
422
|
+
def __ne__(self, other):
|
423
|
+
return not self == other
|