o
    ɶd#                     @   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	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d"d# Zd$d% Zd&d' Zd(S ))	Parameterz#
    Metadata for a Parameter.
    STRINGINTEGERFLOATBOOLEANSECURECREATINGUPDATINGACTIVEINACTIVEDELETINGDELETEDFAILEDc                 K   sP   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 Parameter 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 Parameter.
        :type name: str

        :param display_name:
            The value to assign to the display_name property of this Parameter.
        :type display_name: str

        :param description:
            The value to assign to the description property of this Parameter.
        :type description: str

        :param type:
            The value to assign to the type property of this Parameter.
            Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE"
        :type type: str

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Parameter.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
        :type lifecycle_state: str

        str)namedisplay_namedescriptiontypevaluelifecycle_stater   ZdisplayNamer   r   r   ZlifecycleStateN)Zswagger_typesZattribute_map_name_display_name_description_type_value_lifecycle_state)selfkwargs r"   <usr/lib/python3.10/site-packages/oci/oda/models/parameter.py__init__B   s(   !
	
zParameter.__init__c                 C      | j S )z
        **[Required]** Gets the name of this Parameter.
        The Parameter name.  This must be unique within the parent resource.


        :return: The name of this Parameter.
        :rtype: str
        r   r    r"   r"   r#   r   {      
zParameter.namec                 C   
   || _ dS )z
        Sets the name of this Parameter.
        The Parameter name.  This must be unique within the parent resource.


        :param name: The name of this Parameter.
        :type: str
        Nr&   )r    r   r"   r"   r#   r         

c                 C   r%   )z
        **[Required]** Gets the display_name of this Parameter.
        The display name for the Parameter.


        :return: The display_name of this Parameter.
        :rtype: str
        r   r'   r"   r"   r#   r      r(   zParameter.display_namec                 C   r)   )z
        Sets the display_name of this Parameter.
        The display name for the Parameter.


        :param display_name: The display_name of this Parameter.
        :type: str
        Nr+   )r    r   r"   r"   r#   r      r*   c                 C   r%   )z
        Gets the description of this Parameter.
        A description of the Parameter.


        :return: The description of this Parameter.
        :rtype: str
        r   r'   r"   r"   r#   r      r(   zParameter.descriptionc                 C   r)   )z
        Sets the description of this Parameter.
        A description of the Parameter.


        :param description: The description of this Parameter.
        :type: str
        Nr,   )r    r   r"   r"   r#   r      r*   c                 C   r%   )z
        **[Required]** Gets the type of this Parameter.
        The value type.

        Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE"


        :return: The type of this Parameter.
        :rtype: str
        )r   r'   r"   r"   r#   r         zParameter.typec                 C   *   g d}t ||std||| _dS )z
        Sets the type of this Parameter.
        The value type.


        :param type: The type of this Parameter.
        :type: str
        )r   r   r	   r
   r   z4Invalid value for `type`, must be None or one of {0}N)r   
ValueErrorformatr   )r    r   allowed_valuesr"   r"   r#   r         


c                 C   r%   )z
        **[Required]** Gets the value of this Parameter.
        The current value.  The value will be interpreted based on the `type`.


        :return: The value of this Parameter.
        :rtype: str
        r   r'   r"   r"   r#   r      r(   zParameter.valuec                 C   r)   )z
        Sets the value of this Parameter.
        The current value.  The value will be interpreted based on the `type`.


        :param value: The value of this Parameter.
        :type: str
        Nr3   )r    r   r"   r"   r#   r      r*   c                 C   r%   )a>  
        **[Required]** Gets the lifecycle_state of this Parameter.
        The Parameter's current state.

        Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"


        :return: The lifecycle_state of this Parameter.
        :rtype: str
        )r   r'   r"   r"   r#   r      r-   zParameter.lifecycle_statec                 C   r.   )z
        Sets the lifecycle_state of this Parameter.
        The Parameter's current state.


        :param lifecycle_state: The lifecycle_state of this Parameter.
        :type: str
        )r   r   r   r   r   r   r   z?Invalid value for `lifecycle_state`, must be None or one of {0}N)r   r/   r0   r   )r    r   r1   r"   r"   r#   r   	  r2   c                 C   s   t | S N)r   r'   r"   r"   r#   __repr__  s   zParameter.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r    otherr"   r"   r#   __eq__  s   zParameter.__eq__c                 C   s
   | |k S r4   r"   r7   r"   r"   r#   __ne__$  s   
zParameter.__ne__N)__name__
__module____qualname____doc__ZTYPE_STRINGZTYPE_INTEGERZ
TYPE_FLOATZTYPE_BOOLEANZTYPE_SECUREZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr$   propertyr   setterr   r   r   r   r   r5   r9   r:   r"   r"   r"   r#   r      sT    9











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r"   r"   r"   r#   <module>   s   