ruạṛ
a ���f� � @ 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 @ sb e Zd ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Zdd � Z dd� Zdd� ZdS )�PatchingConfigsz� Detailed configurations for defining the behavior when installing os patches. If not provided, nodes will be patched and rebooted AD/FD by AD/FD for regular patches or will be patched with down time if the patch is an emergent patch. �DOWNTIME_BASED�BATCHING_BASED�DOMAIN_BASEDc K s ddi| _ ddi| _d| _dS )aU Initializes a new PatchingConfigs object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.bds.models.BatchingBasedPatchingConfigs` * :class:`~oci.bds.models.DowntimeBasedPatchingConfigs` * :class:`~oci.bds.models.DomainBasedPatchingConfigs` 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 PatchingConfigs. Allowed values for this property are: "DOWNTIME_BASED", "BATCHING_BASED", "DOMAIN_BASED" :type patching_config_strategy: str �patching_config_strategy�str�patchingConfigStrategyN)Z swagger_typesZ attribute_map�_patching_config_strategy)�self�kwargs� r �C/usr/lib/python3.9/site-packages/oci/bds/models/patching_configs.py�__init__ s ��zPatchingConfigs.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZBatchingBasedPatchingConfigsr ZDowntimeBasedPatchingConfigsr ZDomainBasedPatchingConfigsr Nr )Zobject_dictionary�typer r r �get_subtype9 s zPatchingConfigs.get_subtypec C s | j S )a\ **[Required]** Gets the patching_config_strategy of this PatchingConfigs. Type of strategy used for detailed patching configuration Allowed values for this property are: "DOWNTIME_BASED", "BATCHING_BASED", "DOMAIN_BASED" :return: The patching_config_strategy of this PatchingConfigs. :rtype: str )r �r r r r r L s z(PatchingConfigs.patching_config_strategyc C s* g d�}t ||�s td|� ���|| _dS )a Sets the patching_config_strategy of this PatchingConfigs. Type of strategy used for detailed patching configuration :param patching_config_strategy: The patching_config_strategy of this PatchingConfigs. :type: str )r r r zEInvalid value for `patching_config_strategy`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r Z s �c C s t | �S �N)r r r r r �__repr__k s zPatchingConfigs.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__n s zPatchingConfigs.__eq__c C s | |k S r r r r r r �__ne__t s zPatchingConfigs.__ne__N)�__name__� __module__�__qualname__�__doc__Z'PATCHING_CONFIG_STRATEGY_DOWNTIME_BASEDZ'PATCHING_CONFIG_STRATEGY_BATCHING_BASEDZ%PATCHING_CONFIG_STRATEGY_DOMAIN_BASEDr �staticmethodr �propertyr �setterr 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