ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�PatchingConfigs� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )�DomainBasedPatchingConfigszK This patching config will patch all nodes in one AD/FD at a time. c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS ) aq Initializes a new DomainBasedPatchingConfigs object with values from keyword arguments. The default value of the :py:attr:`~oci.bds.models.DomainBasedPatchingConfigs.patching_config_strategy` attribute of this class is ``DOMAIN_BASED`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param patching_config_strategy: The value to assign to the patching_config_strategy property of this DomainBasedPatchingConfigs. Allowed values for this property are: "DOWNTIME_BASED", "BATCHING_BASED", "DOMAIN_BASED" :type patching_config_strategy: str :param wait_time_between_domain_in_seconds: The value to assign to the wait_time_between_domain_in_seconds property of this DomainBasedPatchingConfigs. :type wait_time_between_domain_in_seconds: int :param tolerance_threshold_per_domain: The value to assign to the tolerance_threshold_per_domain property of this DomainBasedPatchingConfigs. :type tolerance_threshold_per_domain: int �str�int)Zpatching_config_strategy�#wait_time_between_domain_in_seconds�tolerance_threshold_per_domainZpatchingConfigStrategyZwaitTimeBetweenDomainInSecondsZtoleranceThresholdPerDomainNZDOMAIN_BASED)Z swagger_typesZ attribute_mapZ_patching_config_strategy�$_wait_time_between_domain_in_seconds�_tolerance_threshold_per_domain)�self�kwargs� r �P/usr/lib/python3.9/site-packages/oci/bds/models/domain_based_patching_configs.py�__init__ s ��z#DomainBasedPatchingConfigs.__init__c C s | j S )a **[Required]** Gets the wait_time_between_domain_in_seconds of this DomainBasedPatchingConfigs. The wait time between AD/FD in seconds. :return: The wait_time_between_domain_in_seconds of this DomainBasedPatchingConfigs. :rtype: int �r �r r r r r 7 s z>DomainBasedPatchingConfigs.wait_time_between_domain_in_secondsc C s || _ dS )a' Sets the wait_time_between_domain_in_seconds of this DomainBasedPatchingConfigs. The wait time between AD/FD in seconds. :param wait_time_between_domain_in_seconds: The wait_time_between_domain_in_seconds of this DomainBasedPatchingConfigs. :type: int Nr )r r r r r r C s c C s | j S )ax **[Required]** Gets the tolerance_threshold_per_domain of this DomainBasedPatchingConfigs. Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of failed-to-patch nodes cannot exceed 20% of the number of nodes. :return: The tolerance_threshold_per_domain of this DomainBasedPatchingConfigs. :rtype: int �r r r r r r O s z9DomainBasedPatchingConfigs.tolerance_threshold_per_domainc C s || _ dS )a� Sets the tolerance_threshold_per_domain of this DomainBasedPatchingConfigs. Acceptable number of failed-to-be-patched nodes in each domain. The maximum number of failed-to-patch nodes cannot exceed 20% of the number of nodes. :param tolerance_threshold_per_domain: The tolerance_threshold_per_domain of this DomainBasedPatchingConfigs. :type: int Nr )r r r r r r [ s c C s t | �S �N)r r r r r �__repr__g s z#DomainBasedPatchingConfigs.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__j s z!DomainBasedPatchingConfigs.__eq__c C s | |k S r r r r r r �__ne__p s z!DomainBasedPatchingConfigs.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s % r N) Zpatching_configsr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn