o
    ɶdy$                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s  e Zd ZdZdZdZdZdZdZdZ	dZ
d	d
 Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zd d! Zd"d# Zd$d% Zd&S )'Addonz.
    The properties that define an addon.
    CREATINGACTIVEDELETINGDELETEDUPDATINGNEEDS_ATTENTIONFAILEDc                 K   sZ   dddddddd| _ dddd	d
ddd| _d| _d| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new Addon object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this Addon.
        :type name: str

        :param version:
            The value to assign to the version property of this Addon.
        :type version: str

        :param current_installed_version:
            The value to assign to the current_installed_version property of this Addon.
        :type current_installed_version: str

        :param time_created:
            The value to assign to the time_created property of this Addon.
        :type time_created: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Addon.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "UPDATING", "NEEDS_ATTENTION", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param configurations:
            The value to assign to the configurations property of this Addon.
        :type configurations: list[oci.container_engine.models.AddonConfiguration]

        :param addon_error:
            The value to assign to the addon_error property of this Addon.
        :type addon_error: oci.container_engine.models.AddonError

        strdatetimezlist[AddonConfiguration]Z
AddonError)nameversioncurrent_installed_versiontime_createdlifecycle_stateconfigurationsaddon_errorr   r   ZcurrentInstalledVersionZtimeCreatedZlifecycleStater   Z
addonErrorN)	Zswagger_typesZattribute_map_name_version_current_installed_version_time_created_lifecycle_state_configurations_addon_error)selfkwargs r    Eusr/lib/python3.10/site-packages/oci/container_engine/models/addon.py__init__.   s.   %

zAddon.__init__c                 C      | j S )z
        **[Required]** Gets the name of this Addon.
        The name of the addon.


        :return: The name of this Addon.
        :rtype: str
        r   r   r    r    r!   r   n      
z
Addon.namec                 C   
   || _ dS )z
        Sets the name of this Addon.
        The name of the addon.


        :param name: The name of this Addon.
        :type: str
        Nr$   )r   r   r    r    r!   r   z      

c                 C   r#   )z
        Gets the version of this Addon.
        selected addon version, or null indicates autoUpdate


        :return: The version of this Addon.
        :rtype: str
        r   r%   r    r    r!   r      r&   zAddon.versionc                 C   r'   )z
        Sets the version of this Addon.
        selected addon version, or null indicates autoUpdate


        :param version: The version of this Addon.
        :type: str
        Nr)   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the current_installed_version of this Addon.
        current installed version of the addon


        :return: The current_installed_version of this Addon.
        :rtype: str
        r   r%   r    r    r!   r      r&   zAddon.current_installed_versionc                 C   r'   )z
        Sets the current_installed_version of this Addon.
        current installed version of the addon


        :param current_installed_version: The current_installed_version of this Addon.
        :type: str
        Nr*   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the time_created of this Addon.
        The time the cluster was created.


        :return: The time_created of this Addon.
        :rtype: datetime
        r   r%   r    r    r!   r      r&   zAddon.time_createdc                 C   r'   )z
        Sets the time_created of this Addon.
        The time the cluster was created.


        :param time_created: The time_created of this Addon.
        :type: datetime
        Nr+   )r   r   r    r    r!   r      r(   c                 C   r#   )a  
        **[Required]** Gets the lifecycle_state of this Addon.
        The state of the addon.

        Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "UPDATING", "NEEDS_ATTENTION", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Addon.
        :rtype: str
        )r   r%   r    r    r!   r      s   zAddon.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Addon.
        The state of the addon.


        :param lifecycle_state: The lifecycle_state of this Addon.
        :type: str
        )r   r   r	   r
   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r   r   Zallowed_valuesr    r    r!   r      s   


c                 C   r#   )z
        Gets the configurations of this Addon.
        Addon configuration details.


        :return: The configurations of this Addon.
        :rtype: list[oci.container_engine.models.AddonConfiguration]
        r   r%   r    r    r!   r      r&   zAddon.configurationsc                 C   r'   )z
        Sets the configurations of this Addon.
        Addon configuration details.


        :param configurations: The configurations of this Addon.
        :type: list[oci.container_engine.models.AddonConfiguration]
        Nr,   )r   r   r    r    r!   r      r(   c                 C   r#   )z
        Gets the addon_error of this Addon.
        The error info of the addon.


        :return: The addon_error of this Addon.
        :rtype: oci.container_engine.models.AddonError
        r   r%   r    r    r!   r     r&   zAddon.addon_errorc                 C   r'   )z
        Sets the addon_error of this Addon.
        The error info of the addon.


        :param addon_error: The addon_error of this Addon.
        :type: oci.container_engine.models.AddonError
        Nr-   )r   r   r    r    r!   r     r(   c                 C   s   t | S N)r   r%   r    r    r!   __repr__  s   zAddon.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr    r    r!   __eq__  s   zAddon.__eq__c                 C   s
   | |k S r.   r    r1   r    r    r!   __ne__%  s   
zAddon.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_NEEDS_ATTENTIONZLIFECYCLE_STATE_FAILEDr"   propertyr   setterr   r   r   r   r   r   r/   r3   r4   r    r    r    r!   r      sR    @













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r    r    r    r!   <module>   s   