ruạṛ
a ���fM- � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z edd� �Zejdd� �Zdd� Zdd� Zd d!� Zd"S )#� BackendSeta� The configuration of a load balancer backend set. For more information on backend set configuration, see `Managing Backend Sets`__. **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two attributes per backend set. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. __ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm c K sd ddddddddd�| _ d d ddd dddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ dS )a� Initializes a new BackendSet object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this BackendSet. :type name: str :param policy: The value to assign to the policy property of this BackendSet. :type policy: str :param backends: The value to assign to the backends property of this BackendSet. :type backends: list[oci.load_balancer.models.Backend] :param backend_max_connections: The value to assign to the backend_max_connections property of this BackendSet. :type backend_max_connections: int :param health_checker: The value to assign to the health_checker property of this BackendSet. :type health_checker: oci.load_balancer.models.HealthChecker :param ssl_configuration: The value to assign to the ssl_configuration property of this BackendSet. :type ssl_configuration: oci.load_balancer.models.SSLConfiguration :param session_persistence_configuration: The value to assign to the session_persistence_configuration property of this BackendSet. :type session_persistence_configuration: oci.load_balancer.models.SessionPersistenceConfigurationDetails :param lb_cookie_session_persistence_configuration: The value to assign to the lb_cookie_session_persistence_configuration property of this BackendSet. :type lb_cookie_session_persistence_configuration: oci.load_balancer.models.LBCookieSessionPersistenceConfigurationDetails �strz list[Backend]�intZ HealthCheckerZSSLConfigurationZ&SessionPersistenceConfigurationDetailsZ.LBCookieSessionPersistenceConfigurationDetails)�name�policy�backends�backend_max_connections�health_checker�ssl_configuration�!session_persistence_configuration�+lb_cookie_session_persistence_configurationr r r ZbackendMaxConnectionsZ healthCheckerZsslConfigurationZsessionPersistenceConfigurationZ'lbCookieSessionPersistenceConfigurationN) Z swagger_typesZ attribute_map�_name�_policy� _backends�_backend_max_connections�_health_checker�_ssl_configuration�"_session_persistence_configuration�,_lb_cookie_session_persistence_configuration)�self�kwargs� r �H/usr/lib/python3.9/site-packages/oci/load_balancer/models/backend_set.py�__init__ s4 '��zBackendSet.__init__c C s | j S )a� **[Required]** Gets the name of this BackendSet. A friendly name for the backend set. It must be unique and it cannot be changed. Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot contain spaces. Avoid entering confidential information. Example: `example_backend_set` :return: The name of this BackendSet. :rtype: str �r �r r r r r a s zBackendSet.namec C s || _ dS )a� Sets the name of this BackendSet. A friendly name for the backend set. It must be unique and it cannot be changed. Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot contain spaces. Avoid entering confidential information. Example: `example_backend_set` :param name: The name of this BackendSet. :type: str Nr )r r r r r r r s c C s | j S )a< **[Required]** Gets the policy of this BackendSet. The load balancer policy for the backend set. To get a list of available policies, use the :func:`list_policies` operation. Example: `LEAST_CONNECTIONS` :return: The policy of this BackendSet. :rtype: str �r r r r r r � s zBackendSet.policyc C s || _ dS )a2 Sets the policy of this BackendSet. The load balancer policy for the backend set. To get a list of available policies, use the :func:`list_policies` operation. Example: `LEAST_CONNECTIONS` :param policy: The policy of this BackendSet. :type: str Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the backends of this BackendSet. :return: The backends of this BackendSet. :rtype: list[oci.load_balancer.models.Backend] �r r r r r r � s zBackendSet.backendsc C s || _ dS )z� Sets the backends of this BackendSet. :param backends: The backends of this BackendSet. :type: list[oci.load_balancer.models.Backend] Nr! )r r r r r r � s c C s | j S )a8 Gets the backend_max_connections of this BackendSet. The maximum number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting. If this is not set then the number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting is unlimited. Example: `300` :return: The backend_max_connections of this BackendSet. :rtype: int �r r r r r r � s z"BackendSet.backend_max_connectionsc C s || _ dS )aN Sets the backend_max_connections of this BackendSet. The maximum number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting. If this is not set then the number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting is unlimited. Example: `300` :param backend_max_connections: The backend_max_connections of this BackendSet. :type: int Nr"