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                   @   sF  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
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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d0d1 Zejd2d1 Zed3d4 Zejd5d4 Zed6d7 Zejd8d7 Zed9d: Z e jd;d: Z ed<d= Z!e!jd>d= Z!ed?d@ Z"e"jdAd@ Z"edBdC Z#e#jdDdC Z#dEdF Z$dGdH Z%dIdJ Z&dKS )LAgentz
    Description of Agent.
    	APPLIANCEHEALTHY	UNHEALTHYFAILEDINACTIVECREATINGACTIVEDELETEDc                 K   sb  i dddddddddddddd	d
d	dd	dddddddd	ddddddddddd| _ i ddddddddddddddd
ddddd dd!dd"dd#dd$dd%dd&d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 )+aB  
        Initializes a new Agent object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

        :param agent_type:
            The value to assign to the agent_type property of this Agent.
            Allowed values for this property are: "APPLIANCE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type agent_type: str

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

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

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

        :param time_updated:
            The value to assign to the time_updated property of this Agent.
        :type time_updated: datetime

        :param time_last_sync_received:
            The value to assign to the time_last_sync_received property of this Agent.
        :type time_last_sync_received: datetime

        :param heart_beat_status:
            The value to assign to the heart_beat_status property of this Agent.
            Allowed values for this property are: "HEALTHY", "UNHEALTHY", "FAILED", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type heart_beat_status: str

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

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

        :param time_expire_agent_key_in_ms:
            The value to assign to the time_expire_agent_key_in_ms property of this Agent.
        :type time_expire_agent_key_in_ms: datetime

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

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

        :param plugin_list:
            The value to assign to the plugin_list property of this Agent.
        :type plugin_list: list[oci.cloud_bridge.models.PluginSummary]

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Agent.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Agent.
        :type defined_tags: dict(str, dict(str, object))

        :param system_tags:
            The value to assign to the system_tags property of this Agent.
        :type system_tags: dict(str, dict(str, object))

        idstrdisplay_namecompartment_id
agent_typeagent_version
os_versiontime_createddatetimetime_updatedtime_last_sync_receivedheart_beat_statusenvironment_idagent_pub_keytime_expire_agent_key_in_mslifecycle_statelifecycle_detailsplugin_listzlist[PluginSummary]freeform_tagszdict(str, str)zdict(str, dict(str, object)))defined_tagssystem_tagsZdisplayNameZcompartmentIdZ	agentTypeZagentVersionZ	osVersionZtimeCreatedZtimeUpdatedZtimeLastSyncReceivedZheartBeatStatusZenvironmentIdZagentPubKeyZtimeExpireAgentKeyInMsZlifecycleStateZlifecycleDetailsZ
pluginListZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_display_name_compartment_id_agent_type_agent_version_os_version_time_created_time_updated_time_last_sync_received_heart_beat_status_environment_id_agent_pub_key_time_expire_agent_key_in_ms_lifecycle_state_lifecycle_details_plugin_list_freeform_tags_defined_tags_system_tags)selfkwargs r9   Ausr/lib/python3.10/site-packages/oci/cloud_bridge/models/agent.py__init__:   s   X	

	


zAgent.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Agent.
        Unique identifier that is immutable on creation.


        :return: The id of this Agent.
        :rtype: str
        r$   r7   r9   r9   r:   r         
zAgent.idc                 C   
   || _ dS )z
        Sets the id of this Agent.
        Unique identifier that is immutable on creation.


        :param id: The id of this Agent.
        :type: str
        Nr=   )r7   r   r9   r9   r:   r         

c                 C   r<   )z
        **[Required]** Gets the display_name of this Agent.
        Agent identifier, can be renamed.


        :return: The display_name of this Agent.
        :rtype: str
        r%   r>   r9   r9   r:   r      r?   zAgent.display_namec                 C   r@   )z
        Sets the display_name of this Agent.
        Agent identifier, can be renamed.


        :param display_name: The display_name of this Agent.
        :type: str
        NrB   )r7   r   r9   r9   r:   r      rA   c                 C   r<   )z
        **[Required]** Gets the compartment_id of this Agent.
        Compartment identifier.


        :return: The compartment_id of this Agent.
        :rtype: str
        r&   r>   r9   r9   r:   r     r?   zAgent.compartment_idc                 C   r@   )z
        Sets the compartment_id of this Agent.
        Compartment identifier.


        :param compartment_id: The compartment_id of this Agent.
        :type: str
        NrC   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )aS  
        **[Required]** Gets the agent_type of this Agent.
        Type of the Agent.

        Allowed values for this property are: "APPLIANCE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The agent_type of this Agent.
        :rtype: str
        )r'   r>   r9   r9   r:   r        zAgent.agent_typec                 C   s   dg}t ||s
d}|| _dS )z
        Sets the agent_type of this Agent.
        Type of the Agent.


        :param agent_type: The agent_type of this Agent.
        :type: str
        r   UNKNOWN_ENUM_VALUEN)r   r'   )r7   r   allowed_valuesr9   r9   r:   r   )  s   


c                 C   r<   )z
        **[Required]** Gets the agent_version of this Agent.
        Agent identifier.


        :return: The agent_version of this Agent.
        :rtype: str
        r(   r>   r9   r9   r:   r   8  r?   zAgent.agent_versionc                 C   r@   )z
        Sets the agent_version of this Agent.
        Agent identifier.


        :param agent_version: The agent_version of this Agent.
        :type: str
        NrG   )r7   r   r9   r9   r:   r   D  rA   c                 C   r<   )z
        **[Required]** Gets the os_version of this Agent.
        OS version.


        :return: The os_version of this Agent.
        :rtype: str
        r)   r>   r9   r9   r:   r   P  r?   zAgent.os_versionc                 C   r@   )z
        Sets the os_version of this Agent.
        OS version.


        :param os_version: The os_version of this Agent.
        :type: str
        NrH   )r7   r   r9   r9   r:   r   \  rA   c                 C   r<   )z
        **[Required]** Gets the time_created of this Agent.
        The time when the Agent was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Agent.
        :rtype: datetime
        r*   r>   r9   r9   r:   r   h  r?   zAgent.time_createdc                 C   r@   )z
        Sets the time_created of this Agent.
        The time when the Agent was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Agent.
        :type: datetime
        NrI   )r7   r   r9   r9   r:   r   t  rA   c                 C   r<   )z
        Gets the time_updated of this Agent.
        The time when the Agent was updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Agent.
        :rtype: datetime
        r+   r>   r9   r9   r:   r     r?   zAgent.time_updatedc                 C   r@   )z
        Sets the time_updated of this Agent.
        The time when the Agent was updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Agent.
        :type: datetime
        NrJ   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        Gets the time_last_sync_received of this Agent.
        The time when the last heartbeat of the Agent was noted. An RFC3339 formatted datetime string.


        :return: The time_last_sync_received of this Agent.
        :rtype: datetime
        r,   r>   r9   r9   r:   r     r?   zAgent.time_last_sync_receivedc                 C   r@   )a  
        Sets the time_last_sync_received of this Agent.
        The time when the last heartbeat of the Agent was noted. An RFC3339 formatted datetime string.


        :param time_last_sync_received: The time_last_sync_received of this Agent.
        :type: datetime
        NrK   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )a  
        Gets the heart_beat_status of this Agent.
        The current heartbeat status of the Agent based on its timeLastSyncReceived value.

        Allowed values for this property are: "HEALTHY", "UNHEALTHY", "FAILED", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The heart_beat_status of this Agent.
        :rtype: str
        )r-   r>   r9   r9   r:   r     rD   zAgent.heart_beat_statusc                 C       g d}t ||sd}|| _dS )z
        Sets the heart_beat_status of this Agent.
        The current heartbeat status of the Agent based on its timeLastSyncReceived value.


        :param heart_beat_status: The heart_beat_status of this Agent.
        :type: str
        )r   r	   r
   r   rE   N)r   r-   )r7   r   rF   r9   r9   r:   r        


c                 C   r<   )z
        **[Required]** Gets the environment_id of this Agent.
        Environment identifier.


        :return: The environment_id of this Agent.
        :rtype: str
        r.   r>   r9   r9   r:   r     r?   zAgent.environment_idc                 C   r@   )z
        Sets the environment_id of this Agent.
        Environment identifier.


        :param environment_id: The environment_id of this Agent.
        :type: str
        NrN   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )z
        Gets the agent_pub_key of this Agent.
        Resource principal public key.


        :return: The agent_pub_key of this Agent.
        :rtype: str
        r/   r>   r9   r9   r:   r     r?   zAgent.agent_pub_keyc                 C   r@   )z
        Sets the agent_pub_key of this Agent.
        Resource principal public key.


        :param agent_pub_key: The agent_pub_key of this Agent.
        :type: str
        NrO   )r7   r   r9   r9   r:   r     rA   c                 C   r<   )a  
        Gets the time_expire_agent_key_in_ms of this Agent.
        The time since epoch for when the public key will expire. An RFC3339 formatted datetime string.


        :return: The time_expire_agent_key_in_ms of this Agent.
        :rtype: datetime
        r0   r>   r9   r9   r:   r     r?   z!Agent.time_expire_agent_key_in_msc                 C   r@   )a"  
        Sets the time_expire_agent_key_in_ms of this Agent.
        The time since epoch for when the public key will expire. An RFC3339 formatted datetime string.


        :param time_expire_agent_key_in_ms: The time_expire_agent_key_in_ms of this Agent.
        :type: datetime
        NrP   )r7   r   r9   r9   r:   r   
  rA   c                 C   r<   )a  
        **[Required]** Gets the lifecycle_state of this Agent.
        The current state of the Agent.

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


        :return: The lifecycle_state of this Agent.
        :rtype: str
        )r1   r>   r9   r9   r:   r     rD   zAgent.lifecycle_statec                 C   rL   )z
        Sets the lifecycle_state of this Agent.
        The current state of the Agent.


        :param lifecycle_state: The lifecycle_state of this Agent.
        :type: str
        )r   r   r   r   r
   rE   N)r   r1   )r7   r   rF   r9   r9   r:   r   %  rM   c                 C   r<   )a1  
        Gets the lifecycle_details of this Agent.
        A message describing the current state of the Agent in more detail. For example, it can be used to provide actionable information for a resource in Failed state.


        :return: The lifecycle_details of this Agent.
        :rtype: str
        r2   r>   r9   r9   r:   r   4  r?   zAgent.lifecycle_detailsc                 C   r@   )aA  
        Sets the lifecycle_details of this Agent.
        A message describing the current state of the Agent in more detail. For example, it can be used to provide actionable information for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this Agent.
        :type: str
        NrQ   )r7   r   r9   r9   r:   r   @  rA   c                 C   r<   )z
        Gets the plugin_list of this Agent.
        List of plugins associated with the agent.


        :return: The plugin_list of this Agent.
        :rtype: list[oci.cloud_bridge.models.PluginSummary]
        r3   r>   r9   r9   r:   r    L  r?   zAgent.plugin_listc                 C   r@   )z
        Sets the plugin_list of this Agent.
        List of plugins associated with the agent.


        :param plugin_list: The plugin_list of this Agent.
        :type: list[oci.cloud_bridge.models.PluginSummary]
        NrR   )r7   r    r9   r9   r:   r    X  rA   c                 C   r<   )a  
        **[Required]** Gets the freeform_tags of this Agent.
        The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no
        predefined name, type, or namespace/scope. For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Agent.
        :rtype: dict(str, str)
        r4   r>   r9   r9   r:   r!   d     zAgent.freeform_tagsc                 C   r@   )a  
        Sets the freeform_tags of this Agent.
        The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no
        predefined name, type, or namespace/scope. For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Agent.
        :type: dict(str, str)
        NrS   )r7   r!   r9   r9   r:   r!   t     
c                 C   r<   )a  
        **[Required]** Gets the defined_tags of this Agent.
        The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Agent.
        :rtype: dict(str, dict(str, object))
        r5   r>   r9   r9   r:   r"     rT   zAgent.defined_tagsc                 C   r@   )a  
        Sets the defined_tags of this Agent.
        The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces.
        For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Agent.
        :type: dict(str, dict(str, object))
        NrV   )r7   r"   r9   r9   r:   r"     rU   c                 C   r<   )a  
        Gets the system_tags of this Agent.
        The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces.
        For more information, see `Resource Tags`__.
        Example: `{orcl-cloud: {free-tier-retain: true}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The system_tags of this Agent.
        :rtype: dict(str, dict(str, object))
        r6   r>   r9   r9   r:   r#     rT   zAgent.system_tagsc                 C   r@   )a  
        Sets the system_tags of this Agent.
        The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces.
        For more information, see `Resource Tags`__.
        Example: `{orcl-cloud: {free-tier-retain: true}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param system_tags: The system_tags of this Agent.
        :type: dict(str, dict(str, object))
        NrW   )r7   r#   r9   r9   r:   r#     rU   c                 C   s   t | S N)r   r>   r9   r9   r:   __repr__  s   zAgent.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r7   otherr9   r9   r:   __eq__  s   zAgent.__eq__c                 C   s
   | |k S rX   r9   r[   r9   r9   r:   __ne__  s   
zAgent.__ne__N)'__name__
__module____qualname____doc__ZAGENT_TYPE_APPLIANCEZHEART_BEAT_STATUS_HEALTHYZHEART_BEAT_STATUS_UNHEALTHYZHEART_BEAT_STATUS_FAILEDZHEART_BEAT_STATUS_INACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr;   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   rY   r]   r^   r9   r9   r9   r:   r      s     





































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r9   r9   r9   r:   <module>   s   