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 @ s~ e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )�BatchingBasedPatchingConfigszf Configuration that applies the patch in batches, the batch size is a user defined parameter. c K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a Initializes a new BatchingBasedPatchingConfigs object with values from keyword arguments. The default value of the :py:attr:`~oci.bds.models.BatchingBasedPatchingConfigs.patching_config_strategy` attribute of this class is ``BATCHING_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 BatchingBasedPatchingConfigs. Allowed values for this property are: "DOWNTIME_BASED", "BATCHING_BASED", "DOMAIN_BASED" :type patching_config_strategy: str :param batch_size: The value to assign to the batch_size property of this BatchingBasedPatchingConfigs. :type batch_size: int :param wait_time_between_batch_in_seconds: The value to assign to the wait_time_between_batch_in_seconds property of this BatchingBasedPatchingConfigs. :type wait_time_between_batch_in_seconds: int :param tolerance_threshold_per_batch: The value to assign to the tolerance_threshold_per_batch property of this BatchingBasedPatchingConfigs. :type tolerance_threshold_per_batch: int �str�int)Zpatching_config_strategy� batch_size�"wait_time_between_batch_in_seconds�tolerance_threshold_per_batchZpatchingConfigStrategyZ batchSizeZwaitTimeBetweenBatchInSecondsZtoleranceThresholdPerBatchNZBATCHING_BASED)Z swagger_typesZ attribute_mapZ_patching_config_strategy�_batch_size�#_wait_time_between_batch_in_seconds�_tolerance_threshold_per_batch)�self�kwargs� r �R/usr/lib/python3.9/site-packages/oci/bds/models/batching_based_patching_configs.py�__init__ s ��z%BatchingBasedPatchingConfigs.__init__c C s | j S )z� **[Required]** Gets the batch_size of this BatchingBasedPatchingConfigs. How many nodes to be patched and rebooted in each iteration. :return: The batch_size of this BatchingBasedPatchingConfigs. :rtype: int �r �r r r r r >