o
    lqi=                     @   sh   d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZdS )z,
This module provides a model class for CA.
c                           e Zd ZdZ fddZ  ZS )Instancez,
    This class defines the Tag object.
    c                    s   t t|   || d< dS )zP
        :param instance_id: Instance Id
        :type instance_id: str
        
instanceIdN)superr   __init__)selfinstance_id	__class__ d/home/app/PaddleOCR-VL/.venv_paddleocr/lib/python3.10/site-packages/baidubce/services/ca/ca_model.pyr   
   s   zInstance.__init____name__
__module____qualname____doc__r   __classcell__r
   r
   r   r   r          r   c                       r   )Commandz0
    This class defines the Command object.
    c                    sJ   t t|   || d< || d< || d< || d< || d< || d< || d< dS )	a  
        :param type: Command type
        :type type: str
        :param content: Command content
        :type content: str
        :param scope: Command scope
        :type scope: str
        :param enable_parameter: Enable parameter flag
        :type enable_parameter: bool
        :param user: User
        :type user: str
        :param work_dir: Working directory
        :type work_dir: str
        typecontentscopeZenableParameter
parametersuserZworkDirN)r   r   r   )r   r   r   r   Zenable_parameterr   r   Zwork_dirr   r
   r   r      s   zCommand.__init__r   r
   r
   r   r   r      r   r   c                       s"   e Zd ZdZd fdd	Z  ZS )Actionz/
    This class defines the Action object.
    Nc                    sB   t t|   || d< || d< || d< || d< || d< || d< dS )a  
        :param ref: Action ref
        :ref type: str
        :param ref: Action id
        :id type: str
        :param type: Action type
        :type type: str
        :param name: Action name
        :type name: str
        :param timeout_second: Timeout in seconds
        :type timeout_second: int
        :param command: Command object
        :type command: Command
        refidr   nameZtimeoutSecondcommandN)r   r   r   )r   r   r   r   r   Ztimeout_secondr   r   r
   r   r   6   s   zAction.__init__)NNNNNNr   r
   r
   r   r   r   1   s    r   c                       r   )Target/
    This class defines the Target object.
    c                    "   t t|   || d< || d< dS )z
        :param instance_type: Instance type
        :type instance_type: str
        :param instance_id: Instance Id
        :type instance_id: str
        instanceTyper   N)r   r   r   )r   instance_typer   r   r
   r   r   S      zTarget.__init__r   r
   r
   r   r   r   N   r   r   c                       r   )TargetSelectorr   c                    r    )z
        :param instance_type: Instance type
        :type instance_type: str
        :param tags: tags
        :type tags: list
        r!   tagsN)r   r$   r   )r   r"   r%   r   r
   r   r   d   r#   zTargetSelector.__init__r   r
   r
   r   r   r$   _   r   r$   c                       r   )	Executionz2
    This class defines the Execution object.
    c                    s*   t t|   || d< || d< || d< dS )z
        :param execution: Execution type
        :type execution: str
        :param action: Action object
        :type action: Action
        :param targets: List of Target objects
        :type targets: list
        	executionactiontargetsN)r   r&   r   )r   r'   r(   r)   r   r
   r   r   u   s   	zExecution.__init__r   r
   r
   r   r   r&   p   r   r&   N)r   dictr   r   r   r   r$   r&   r
   r
   r
   r   <module>   s    