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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d*d)„ ƒZd+d,„ Zd-d.„ Zd/d0„ Zd1S )2ÚLibraryUsagez7
    Library usage during a specified time period.
    c                 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S )a=	  
        Initializes a new LibraryUsage object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

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

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

        :param cvss_score:
            The value to assign to the cvss_score property of this LibraryUsage.
        :type cvss_score: float

        :param approximate_application_count:
            The value to assign to the approximate_application_count property of this LibraryUsage.
        :type approximate_application_count: int

        :param approximate_java_server_instance_count:
            The value to assign to the approximate_java_server_instance_count property of this LibraryUsage.
        :type approximate_java_server_instance_count: int

        :param approximate_deployed_application_count:
            The value to assign to the approximate_deployed_application_count property of this LibraryUsage.
        :type approximate_deployed_application_count: int

        :param approximate_managed_instance_count:
            The value to assign to the approximate_managed_instance_count property of this LibraryUsage.
        :type approximate_managed_instance_count: int

        :param time_start:
            The value to assign to the time_start property of this LibraryUsage.
        :type time_start: datetime

        :param time_end:
            The value to assign to the time_end property of this LibraryUsage.
        :type time_end: datetime

        :param time_first_seen:
            The value to assign to the time_first_seen property of this LibraryUsage.
        :type time_first_seen: datetime

        :param time_last_seen:
            The value to assign to the time_last_seen property of this LibraryUsage.
        :type time_last_seen: datetime

        ÚstrÚfloatÚintÚdatetime)Úlibrary_keyÚfleet_idÚlibrary_nameÚlibrary_versionÚ
cvss_scoreÚapproximate_application_countÚ&approximate_java_server_instance_countÚ&approximate_deployed_application_countÚ"approximate_managed_instance_countÚ
time_startÚtime_endÚtime_first_seenÚtime_last_seenZ
libraryKeyZfleetIdZlibraryNameZlibraryVersionZ	cvssScoreZapproximateApplicationCountZ"approximateJavaServerInstanceCountZ#approximateDeployedApplicationCountZapproximateManagedInstanceCountZ	timeStartZtimeEndZtimeFirstSeenZtimeLastSeenN)Zswagger_typesZattribute_mapÚ_library_keyÚ	_fleet_idÚ_library_nameÚ_library_versionÚ_cvss_scoreÚ_approximate_application_countÚ'_approximate_java_server_instance_countÚ'_approximate_deployed_application_countÚ#_approximate_managed_instance_countÚ_time_startÚ	_time_endÚ_time_first_seenÚ_time_last_seen)ÚselfÚkwargs© r'   ú@usr/lib/python3.10/site-packages/oci/jms/models/library_usage.pyÚ__init__   sR   ;óó
zLibraryUsage.__init__c                 C   ó   | j S )zÈ
        **[Required]** Gets the library_key of this LibraryUsage.
        The internal identifier of the library.


        :return: The library_key of this LibraryUsage.
        :rtype: str
        ©r   ©r%   r'   r'   r(   r   z   ó   
zLibraryUsage.library_keyc                 C   ó
   || _ dS )zÃ
        Sets the library_key of this LibraryUsage.
        The internal identifier of the library.


        :param library_key: The library_key of this LibraryUsage.
        :type: str
        Nr+   )r%   r   r'   r'   r(   r   †   ó   

c                 C   r*   )a  
        **[Required]** Gets the fleet_id of this LibraryUsage.
        The `OCID`__ of the related fleet.

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


        :return: The fleet_id of this LibraryUsage.
        :rtype: str
        ©r   r,   r'   r'   r(   r   ’   s   zLibraryUsage.fleet_idc                 C   r.   )a  
        Sets the fleet_id of this LibraryUsage.
        The `OCID`__ of the related fleet.

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


        :param fleet_id: The fleet_id of this LibraryUsage.
        :type: str
        Nr0   )r%   r   r'   r'   r(   r       s   
c                 C   r*   )z»
        **[Required]** Gets the library_name of this LibraryUsage.
        The name of the library.


        :return: The library_name of this LibraryUsage.
        :rtype: str
        ©r   r,   r'   r'   r(   r   ®   r-   zLibraryUsage.library_namec                 C   r.   )z·
        Sets the library_name of this LibraryUsage.
        The name of the library.


        :param library_name: The library_name of this LibraryUsage.
        :type: str
        Nr1   )r%   r   r'   r'   r(   r   º   r/   c                 C   r*   )zµ
        Gets the library_version of this LibraryUsage.
        The version of the library.


        :return: The library_version of this LibraryUsage.
        :rtype: str
        ©r   r,   r'   r'   r(   r   Æ   r-   zLibraryUsage.library_versionc                 C   r.   )zÃ
        Sets the library_version of this LibraryUsage.
        The version of the library.


        :param library_version: The library_version of this LibraryUsage.
        :type: str
        Nr2   )r%   r   r'   r'   r(   r   Ò   r/   c                 C   r*   )zÇ
        Gets the cvss_score of this LibraryUsage.
        The Common Vulnerability Scoring System (CVSS) score.


        :return: The cvss_score of this LibraryUsage.
        :rtype: float
        ©r   r,   r'   r'   r(   r   Þ   r-   zLibraryUsage.cvss_scorec                 C   r.   )zÐ
        Sets the cvss_score of this LibraryUsage.
        The Common Vulnerability Scoring System (CVSS) score.


        :param cvss_score: The cvss_score of this LibraryUsage.
        :type: float
        Nr3   )r%   r   r'   r'   r(   r   ê   r/   c                 C   r*   )zî
        Gets the approximate_application_count of this LibraryUsage.
        The approximate count of applications using the library.


        :return: The approximate_application_count of this LibraryUsage.
        :rtype: int
        ©r   r,   r'   r'   r(   r   ö   r-   z*LibraryUsage.approximate_application_countc                 C   r.   )a
  
        Sets the approximate_application_count of this LibraryUsage.
        The approximate count of applications using the library.


        :param approximate_application_count: The approximate_application_count of this LibraryUsage.
        :type: int
        Nr4   )r%   r   r'   r'   r(   r     r/   c                 C   r*   )a	  
        Gets the approximate_java_server_instance_count of this LibraryUsage.
        The approximate count of Java Server instances using the library.


        :return: The approximate_java_server_instance_count of this LibraryUsage.
        :rtype: int
        ©r   r,   r'   r'   r(   r     r-   z3LibraryUsage.approximate_java_server_instance_countc                 C   r.   )a.  
        Sets the approximate_java_server_instance_count of this LibraryUsage.
        The approximate count of Java Server instances using the library.


        :param approximate_java_server_instance_count: The approximate_java_server_instance_count of this LibraryUsage.
        :type: int
        Nr5   )r%   r   r'   r'   r(   r     r/   c                 C   r*   )a	  
        Gets the approximate_deployed_application_count of this LibraryUsage.
        The approximate count of deployed applications using the library.


        :return: The approximate_deployed_application_count of this LibraryUsage.
        :rtype: int
        ©r   r,   r'   r'   r(   r   &  r-   z3LibraryUsage.approximate_deployed_application_countc                 C   r.   )a.  
        Sets the approximate_deployed_application_count of this LibraryUsage.
        The approximate count of deployed applications using the library.


        :param approximate_deployed_application_count: The approximate_deployed_application_count of this LibraryUsage.
        :type: int
        Nr6   )r%   r   r'   r'   r(   r   2  r/   c                 C   r*   )zý
        Gets the approximate_managed_instance_count of this LibraryUsage.
        The approximate count of managed instances using the library.


        :return: The approximate_managed_instance_count of this LibraryUsage.
        :rtype: int
        ©r    r,   r'   r'   r(   r   >  r-   z/LibraryUsage.approximate_managed_instance_countc                 C   r.   )a  
        Sets the approximate_managed_instance_count of this LibraryUsage.
        The approximate count of managed instances using the library.


        :param approximate_managed_instance_count: The approximate_managed_instance_count of this LibraryUsage.
        :type: int
        Nr7   )r%   r   r'   r'   r(   r   J  r/   c                 C   r*   )a/  
        Gets the time_start of this LibraryUsage.
        Lower bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.


        :return: The time_start of this LibraryUsage.
        :rtype: datetime
        ©r!   r,   r'   r'   r(   r   V  r-   zLibraryUsage.time_startc                 C   r.   )a8  
        Sets the time_start of this LibraryUsage.
        Lower bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.


        :param time_start: The time_start of this LibraryUsage.
        :type: datetime
        Nr8   )r%   r   r'   r'   r(   r   b  r/   c                 C   r*   )a+  
        Gets the time_end of this LibraryUsage.
        Upper bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.


        :return: The time_end of this LibraryUsage.
        :rtype: datetime
        ©r"   r,   r'   r'   r(   r   n  r-   zLibraryUsage.time_endc                 C   r.   )a2  
        Sets the time_end of this LibraryUsage.
        Upper bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.


        :param time_end: The time_end of this LibraryUsage.
        :type: datetime
        Nr9   )r%   r   r'   r'   r(   r   z  r/   c                 C   r*   )aÓ  
        Gets the time_first_seen of this LibraryUsage.
        The date and time the resource was _first_ reported to JMS.
        This is potentially _before_ the specified time period provided by the filters.
        For example, a resource can be first reported to JMS before the start of a specified time period,
        if it is also reported during the time period.


        :return: The time_first_seen of this LibraryUsage.
        :rtype: datetime
        ©r#   r,   r'   r'   r(   r   †  ó   zLibraryUsage.time_first_seenc                 C   r.   )aá  
        Sets the time_first_seen of this LibraryUsage.
        The date and time the resource was _first_ reported to JMS.
        This is potentially _before_ the specified time period provided by the filters.
        For example, a resource can be first reported to JMS before the start of a specified time period,
        if it is also reported during the time period.


        :param time_first_seen: The time_first_seen of this LibraryUsage.
        :type: datetime
        Nr:   )r%   r   r'   r'   r(   r   •  ó   
c                 C   r*   )aÎ  
        Gets the time_last_seen of this LibraryUsage.
        The date and time the resource was _last_ reported to JMS.
        This is potentially _after_ the specified time period provided by the filters.
        For example, a resource can be last reported to JMS before the start of a specified time period,
        if it is also reported during the time period.


        :return: The time_last_seen of this LibraryUsage.
        :rtype: datetime
        ©r$   r,   r'   r'   r(   r   ¤  r;   zLibraryUsage.time_last_seenc                 C   r.   )aÛ  
        Sets the time_last_seen of this LibraryUsage.
        The date and time the resource was _last_ reported to JMS.
        This is potentially _after_ the specified time period provided by the filters.
        For example, a resource can be last reported to JMS before the start of a specified time period,
        if it is also reported during the time period.


        :param time_last_seen: The time_last_seen of this LibraryUsage.
        :type: datetime
        Nr=   )r%   r   r'   r'   r(   r   ³  r<   c                 C   s   t | ƒS ©N)r   r,   r'   r'   r(   Ú__repr__Â  s   zLibraryUsage.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r%   Úotherr'   r'   r(   Ú__eq__Å  s   zLibraryUsage.__eq__c                 C   s
   | |k S r>   r'   rA   r'   r'   r(   Ú__ne__Ë  s   
zLibraryUsage.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r)   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r?   rC   rD   r'   r'   r'   r(   r      st    h

























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r'   r'   r'   r(   Ú<module>   s   