ruạṛ
a ���fQ � @ 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 @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )� DpdConfigz� These configuration details are used for dead peer detection (DPD). DPD periodically checks the stability of the connection to the customer premises (CPE), and may be used to detect that the link to the CPE has gone down. �INITIATE_AND_RESPOND�RESPOND_ONLYc K s( ddd�| _ ddd�| _d| _d| _dS )a@ Initializes a new DpdConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param dpd_mode: The value to assign to the dpd_mode property of this DpdConfig. Allowed values for this property are: "INITIATE_AND_RESPOND", "RESPOND_ONLY" :type dpd_mode: str :param dpd_timeout_in_sec: The value to assign to the dpd_timeout_in_sec property of this DpdConfig. :type dpd_timeout_in_sec: int �str�int)�dpd_mode�dpd_timeout_in_secZdpdModeZdpdTimeoutInSecN)Z swagger_typesZ attribute_map� _dpd_mode�_dpd_timeout_in_sec)�self�kwargs� r �>/usr/lib/python3.9/site-packages/oci/core/models/dpd_config.py�__init__ s ��zDpdConfig.__init__c C s | j S )a4 Gets the dpd_mode of this DpdConfig. This option defines whether DPD can be initiated from the Oracle side of the connection. Allowed values for this property are: "INITIATE_AND_RESPOND", "RESPOND_ONLY" :return: The dpd_mode of this DpdConfig. :rtype: str )r �r r r r r 6 s zDpdConfig.dpd_modec C s* ddg}t ||�s td|� ���|| _dS )z� Sets the dpd_mode of this DpdConfig. This option defines whether DPD can be initiated from the Oracle side of the connection. :param dpd_mode: The dpd_mode of this DpdConfig. :type: str r r z5Invalid value for `dpd_mode`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r D s �c C s | j S )aV Gets the dpd_timeout_in_sec of this DpdConfig. DPD timeout in seconds. This sets the longest interval between CPE device health messages before the IPSec connection indicates it has lost contact with the CPE. The default is 20 seconds. :return: The dpd_timeout_in_sec of this DpdConfig. :rtype: int �r r r r r r U s zDpdConfig.dpd_timeout_in_secc C s || _ dS )ag Sets the dpd_timeout_in_sec of this DpdConfig. DPD timeout in seconds. This sets the longest interval between CPE device health messages before the IPSec connection indicates it has lost contact with the CPE. The default is 20 seconds. :param dpd_timeout_in_sec: The dpd_timeout_in_sec of this DpdConfig. :type: int Nr )r r r r r r a s c C s t | �S �N)r r r r r �__repr__m s zDpdConfig.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__p s zDpdConfig.__eq__c C s | |k S r r r r r r �__ne__v s zDpdConfig.__ne__N)�__name__� __module__�__qualname__�__doc__ZDPD_MODE_INITIATE_AND_RESPONDZDPD_MODE_RESPOND_ONLYr �propertyr �setterr r r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn