o
    ɶdD                     @   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d Ze	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d.d/ Zejd0d/ Zed1d2 Zejd3d2 Zd4d5 Zd6d7 Zd8d9 Zd:S );Assetz"
    Description of an asset.
    	VMWARE_VMVMACTIVEDELETEDc                 K   s   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 )a6  
        Initializes a new Asset object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
        to a service operations then you should favor using a subclass over the base class:

        * :class:`~oci.cloud_bridge.models.VmwareVmAsset`
        * :class:`~oci.cloud_bridge.models.VmAsset`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

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

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

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

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

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

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

        :param asset_source_ids:
            The value to assign to the asset_source_ids property of this Asset.
        :type asset_source_ids: list[str]

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

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

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

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

        strdatetimez	list[str]zdict(str, str)zdict(str, dict(str, object)))display_nameinventory_ididcompartment_id
source_keyexternal_asset_key
asset_typetime_createdtime_updatedasset_source_idslifecycle_statefreeform_tagsdefined_tagssystem_tagsZdisplayNameZinventoryIdr   ZcompartmentIdZ	sourceKeyZexternalAssetKey	assetTypeZtimeCreatedZtimeUpdatedZassetSourceIdsZlifecycleStateZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_display_name_inventory_id_id_compartment_id_source_key_external_asset_key_asset_type_time_created_time_updated_asset_source_ids_lifecycle_state_freeform_tags_defined_tags_system_tags)selfkwargs r,   Ausr/lib/python3.10/site-packages/oci/cloud_bridge/models/asset.py__init__"   sX   H
zAsset.__init__c                 C   s$   | d }|dkr
dS |dkrdS dS )z
        Given the hash representation of a subtype of this class,
        use the info in the hash to return the class of the subtype.
        r   r   ZVmwareVmAssetr   ZVmAssetr   r,   )Zobject_dictionarytyper,   r,   r-   get_subtype   s   zAsset.get_subtypec                 C      | j S )z
        Gets the display_name of this Asset.
        Asset display name.


        :return: The display_name of this Asset.
        :rtype: str
        r   r*   r,   r,   r-   r         
zAsset.display_namec                 C   
   || _ dS )z
        Sets the display_name of this Asset.
        Asset display name.


        :param display_name: The display_name of this Asset.
        :type: str
        Nr2   )r*   r   r,   r,   r-   r         

c                 C   r1   )z
        **[Required]** Gets the inventory_id of this Asset.
        Inventory ID to which an asset belongs to.


        :return: The inventory_id of this Asset.
        :rtype: str
        r   r3   r,   r,   r-   r      r4   zAsset.inventory_idc                 C   r5   )z
        Sets the inventory_id of this Asset.
        Inventory ID to which an asset belongs to.


        :param inventory_id: The inventory_id of this Asset.
        :type: str
        Nr7   )r*   r   r,   r,   r-   r      r6   c                 C   r1   )z
        **[Required]** Gets the id of this Asset.
        Asset OCID that is immutable on creation.


        :return: The id of this Asset.
        :rtype: str
        r   r3   r,   r,   r-   r      r4   zAsset.idc                 C   r5   )z
        Sets the id of this Asset.
        Asset OCID that is immutable on creation.


        :param id: The id of this Asset.
        :type: str
        Nr8   )r*   r   r,   r,   r-   r      r6   c                 C   r1   )z
        **[Required]** Gets the compartment_id of this Asset.
        The OCID of the compartment to which an asset belongs to.


        :return: The compartment_id of this Asset.
        :rtype: str
        r   r3   r,   r,   r-   r      r4   zAsset.compartment_idc                 C   r5   )z
        Sets the compartment_id of this Asset.
        The OCID of the compartment to which an asset belongs to.


        :param compartment_id: The compartment_id of this Asset.
        :type: str
        Nr9   )r*   r   r,   r,   r-   r      r6   c                 C   r1   )z
        **[Required]** Gets the source_key of this Asset.
        The source key that the asset belongs to.


        :return: The source_key of this Asset.
        :rtype: str
        r    r3   r,   r,   r-   r   
  r4   zAsset.source_keyc                 C   r5   )z
        Sets the source_key of this Asset.
        The source key that the asset belongs to.


        :param source_key: The source_key of this Asset.
        :type: str
        Nr:   )r*   r   r,   r,   r-   r     r6   c                 C   r1   )z
        **[Required]** Gets the external_asset_key of this Asset.
        The key of the asset from the external environment.


        :return: The external_asset_key of this Asset.
        :rtype: str
        r!   r3   r,   r,   r-   r   "  r4   zAsset.external_asset_keyc                 C   r5   )z
        Sets the external_asset_key of this Asset.
        The key of the asset from the external environment.


        :param external_asset_key: The external_asset_key of this Asset.
        :type: str
        Nr;   )r*   r   r,   r,   r-   r   .  r6   c                 C   r1   )aY  
        **[Required]** Gets the asset_type of this Asset.
        The type of asset.

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


        :return: The asset_type of this Asset.
        :rtype: str
        )r"   r3   r,   r,   r-   r   :     zAsset.asset_typec                 C       ddg}t ||sd}|| _dS )z
        Sets the asset_type of this Asset.
        The type of asset.


        :param asset_type: The asset_type of this Asset.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r"   )r*   r   allowed_valuesr,   r,   r-   r   I     


c                 C   r1   )z
        **[Required]** Gets the time_created of this Asset.
        The time when the asset was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Asset.
        :rtype: datetime
        r#   r3   r,   r,   r-   r   X  r4   zAsset.time_createdc                 C   r5   )z
        Sets the time_created of this Asset.
        The time when the asset was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Asset.
        :type: datetime
        NrA   )r*   r   r,   r,   r-   r   d  r6   c                 C   r1   )z
        **[Required]** Gets the time_updated of this Asset.
        The time when the asset was updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Asset.
        :rtype: datetime
        r$   r3   r,   r,   r-   r   p  r4   zAsset.time_updatedc                 C   r5   )z
        Sets the time_updated of this Asset.
        The time when the asset was updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Asset.
        :type: datetime
        NrB   )r*   r   r,   r,   r-   r   |  r6   c                 C   r1   )z
        Gets the asset_source_ids of this Asset.
        List of asset source OCID.


        :return: The asset_source_ids of this Asset.
        :rtype: list[str]
        r%   r3   r,   r,   r-   r     r4   zAsset.asset_source_idsc                 C   r5   )z
        Sets the asset_source_ids of this Asset.
        List of asset source OCID.


        :param asset_source_ids: The asset_source_ids of this Asset.
        :type: list[str]
        NrC   )r*   r   r,   r,   r-   r     r6   c                 C   r1   )ar  
        **[Required]** Gets the lifecycle_state of this Asset.
        The current state of the asset.

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


        :return: The lifecycle_state of this Asset.
        :rtype: str
        )r&   r3   r,   r,   r-   r     r<   zAsset.lifecycle_statec                 C   r=   )z
        Sets the lifecycle_state of this Asset.
        The current state of the asset.


        :param lifecycle_state: The lifecycle_state of this Asset.
        :type: str
        r	   r
   r>   N)r   r&   )r*   r   r?   r,   r,   r-   r     r@   c                 C   r1   )a  
        Gets the freeform_tags of this Asset.
        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 Asset.
        :rtype: dict(str, str)
        r'   r3   r,   r,   r-   r        zAsset.freeform_tagsc                 C   r5   )a  
        Sets the freeform_tags of this Asset.
        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 Asset.
        :type: dict(str, str)
        NrD   )r*   r   r,   r,   r-   r        
c                 C   r1   )a  
        Gets the defined_tags of this Asset.
        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 Asset.
        :rtype: dict(str, dict(str, object))
        r(   r3   r,   r,   r-   r     rE   zAsset.defined_tagsc                 C   r5   )a  
        Sets the defined_tags of this Asset.
        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 Asset.
        :type: dict(str, dict(str, object))
        NrG   )r*   r   r,   r,   r-   r     rF   c                 C   r1   )a  
        Gets the system_tags of this Asset.
        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 Asset.
        :rtype: dict(str, dict(str, object))
        r)   r3   r,   r,   r-   r     rE   zAsset.system_tagsc                 C   r5   )a  
        Sets the system_tags of this Asset.
        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 Asset.
        :type: dict(str, dict(str, object))
        NrH   )r*   r   r,   r,   r-   r     rF   c                 C   s   t | S N)r   r3   r,   r,   r-   __repr__  s   zAsset.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r*   otherr,   r,   r-   __eq__!  s   zAsset.__eq__c                 C   s
   | |k S rI   r,   rL   r,   r,   r-   __ne__'  s   
zAsset.__ne__N)__name__
__module____qualname____doc__ZASSET_TYPE_VMWARE_VMZASSET_TYPE_VMZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETEDr.   staticmethodr0   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rJ   rN   rO   r,   r,   r,   r-   r      s    x




























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r,   r,   r,   r-   <module>   s   