ruạṛ
a N��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 @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�InstanceAvailabilityConfigz Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware. �RESTORE_INSTANCE� STOP_INSTANCEc K s( ddd�| _ ddd�| _d| _d| _dS )a Initializes a new InstanceAvailabilityConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_live_migration_preferred: The value to assign to the is_live_migration_preferred property of this InstanceAvailabilityConfig. :type is_live_migration_preferred: bool :param recovery_action: The value to assign to the recovery_action property of this InstanceAvailabilityConfig. Allowed values for this property are: "RESTORE_INSTANCE", "STOP_INSTANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type recovery_action: str �bool�str)�is_live_migration_preferred�recovery_action�isLiveMigrationPreferred�recoveryActionN)� swagger_types� attribute_map�_is_live_migration_preferred�_recovery_action)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/instance_availability_config.py�__init__ s ��z#InstanceAvailabilityConfig.__init__c C s | j S )a� Gets the is_live_migration_preferred of this InstanceAvailabilityConfig. Whether to live migrate supported VM instances to a healthy physical VM host without disrupting running instances during infrastructure maintenance events. If null, Oracle chooses the best option for migrating the VM during infrastructure maintenance events. :return: The is_live_migration_preferred of this InstanceAvailabilityConfig. :rtype: bool �r �r r r r r 5 s z6InstanceAvailabilityConfig.is_live_migration_preferredc C s || _ dS )a� Sets the is_live_migration_preferred of this InstanceAvailabilityConfig. Whether to live migrate supported VM instances to a healthy physical VM host without disrupting running instances during infrastructure maintenance events. If null, Oracle chooses the best option for migrating the VM during infrastructure maintenance events. :param is_live_migration_preferred: The is_live_migration_preferred of this InstanceAvailabilityConfig. :type: bool Nr )r r r r r r C s c C s | j S )a Gets the recovery_action of this InstanceAvailabilityConfig. The lifecycle state for an instance when it is recovered after infrastructure maintenance. * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. * `STOP_INSTANCE` - The instance is recovered in the stopped state. Allowed values for this property are: "RESTORE_INSTANCE", "STOP_INSTANCE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The recovery_action of this InstanceAvailabilityConfig. :rtype: str )r r r r r r Q s z*InstanceAvailabilityConfig.recovery_actionc C s ddg}t ||�sd}|| _dS )aX Sets the recovery_action of this InstanceAvailabilityConfig. The lifecycle state for an instance when it is recovered after infrastructure maintenance. * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. If the instance was running, it is automatically rebooted. This is the default action when a value is not set. * `STOP_INSTANCE` - The instance is recovered in the stopped state. :param recovery_action: The recovery_action of this InstanceAvailabilityConfig. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r c s c C s t | �S �N)r r r r r �__repr__u s z#InstanceAvailabilityConfig.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__x s z!InstanceAvailabilityConfig.__eq__c C s | |k S r r r r r r �__ne__~ s z!InstanceAvailabilityConfig.__ne__N)�__name__� __module__�__qualname__�__doc__� RECOVERY_ACTION_RESTORE_INSTANCE�RECOVERY_ACTION_STOP_INSTANCEr �propertyr �setterr r r! r"