ruạṛ
a ���f�0 � @ 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 ZdZdZdZdZdZdZdd� Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z e dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejdd� �Ze dd� �Zejd d� �Zd!d"� Zd#d$� Zd%d&� Zd'S )(� BackendSetaw The configuration of a network load balancer backend set. For more information about backend set configuration, see `Managing Backend Sets`__. **Caution:** 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 � TWO_TUPLE�THREE_TUPLE� FIVE_TUPLE�IPV4�IPV6c K sd ddddddddd�| _ dddd d ddd d�| _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. Allowed values for this property are: "TWO_TUPLE", "THREE_TUPLE", "FIVE_TUPLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type policy: str :param is_preserve_source: The value to assign to the is_preserve_source property of this BackendSet. :type is_preserve_source: bool :param is_fail_open: The value to assign to the is_fail_open property of this BackendSet. :type is_fail_open: bool :param is_instant_failover_enabled: The value to assign to the is_instant_failover_enabled property of this BackendSet. :type is_instant_failover_enabled: bool :param ip_version: The value to assign to the ip_version property of this BackendSet. Allowed values for this property are: "IPV4", "IPV6", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type ip_version: str :param backends: The value to assign to the backends property of this BackendSet. :type backends: list[oci.network_load_balancer.models.Backend] :param health_checker: The value to assign to the health_checker property of this BackendSet. :type health_checker: oci.network_load_balancer.models.HealthChecker �str�boolz list[Backend]Z HealthChecker)�name�policy�is_preserve_source�is_fail_open�is_instant_failover_enabled� ip_version�backends�health_checkerr r ZisPreserveSourceZ isFailOpenZisInstantFailoverEnabledZ ipVersionr Z healthCheckerN) Z swagger_typesZ attribute_map�_name�_policy�_is_preserve_source� _is_fail_open�_is_instant_failover_enabled�_ip_version� _backends�_health_checker)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/network_load_balancer/models/backend_set.py�__init__, s4 +��zBackendSet.__init__c C s | j S )a� **[Required]** Gets the name of this BackendSet. A user-friendly name for the backend set that must be unique and 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 u s zBackendSet.namec C s || _ dS )a� Sets the name of this BackendSet. A user-friendly name for the backend set that must be unique and 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 � s c C s | j S )a� Gets the policy of this BackendSet. The network load balancer policy for the backend set. Example: `FIVE_TUPLE` Allowed values for this property are: "TWO_TUPLE", "THREE_TUPLE", "FIVE_TUPLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The policy of this BackendSet. :rtype: str )r r$ r r r! r � s zBackendSet.policyc C s g d�}t ||�sd}|| _dS )z� Sets the policy of this BackendSet. The network load balancer policy for the backend set. Example: `FIVE_TUPLE` :param policy: The policy of this BackendSet. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r! r � s c C s | j S )a� Gets the is_preserve_source of this BackendSet. If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. The value is true by default. :return: The is_preserve_source of this BackendSet. :rtype: bool �r r$ r r r! r � s zBackendSet.is_preserve_sourcec C s || _ dS )a Sets the is_preserve_source of this BackendSet. If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. The value is true by default. :param is_preserve_source: The is_preserve_source of this BackendSet. :type: bool Nr'