ruạṛ
a ���f$R � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zed4d5� �Zej d6d5� �Zd7d8� Zd9d:� Zd;d<� Zd=S )>�ManagedInstanceUsagear Managed instance usage during a specified time period. An entity that emits usage events to Java Management Service (JMS) is represented as a managed instance. A managed instance has a unique identity which is used by JMS to distinguish it from other managed instances. Currently, JMS supports only one kind of managed instance, a Management Agent. �ORACLE_MANAGEMENT_AGENT�ORACLE_CLOUD_AGENT�PRESENT�ABSENT�MISMATCH�NOT_CONFIGUREDc K s� dddddddddddddddd�| _ ddd d ddd ddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )as Initializes a new ManagedInstanceUsage object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param managed_instance_id: The value to assign to the managed_instance_id property of this ManagedInstanceUsage. :type managed_instance_id: str :param managed_instance_type: The value to assign to the managed_instance_type property of this ManagedInstanceUsage. Allowed values for this property are: "ORACLE_MANAGEMENT_AGENT", "ORACLE_CLOUD_AGENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type managed_instance_type: str :param hostname: The value to assign to the hostname property of this ManagedInstanceUsage. :type hostname: str :param host_id: The value to assign to the host_id property of this ManagedInstanceUsage. :type host_id: str :param operating_system: The value to assign to the operating_system property of this ManagedInstanceUsage. :type operating_system: oci.jms.models.OperatingSystem :param agent: The value to assign to the agent property of this ManagedInstanceUsage. :type agent: oci.jms.models.Agent :param approximate_application_count: The value to assign to the approximate_application_count property of this ManagedInstanceUsage. :type approximate_application_count: int :param approximate_installation_count: The value to assign to the approximate_installation_count property of this ManagedInstanceUsage. :type approximate_installation_count: int :param approximate_jre_count: The value to assign to the approximate_jre_count property of this ManagedInstanceUsage. :type approximate_jre_count: int :param drs_file_status: The value to assign to the drs_file_status property of this ManagedInstanceUsage. Allowed values for this property are: "PRESENT", "ABSENT", "MISMATCH", "NOT_CONFIGURED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type drs_file_status: str :param application_invoked_by: The value to assign to the application_invoked_by property of this ManagedInstanceUsage. :type application_invoked_by: str :param time_start: The value to assign to the time_start property of this ManagedInstanceUsage. :type time_start: datetime :param time_end: The value to assign to the time_end property of this ManagedInstanceUsage. :type time_end: datetime :param time_first_seen: The value to assign to the time_first_seen property of this ManagedInstanceUsage. :type time_first_seen: datetime :param time_last_seen: The value to assign to the time_last_seen property of this ManagedInstanceUsage. :type time_last_seen: datetime �strZOperatingSystemZAgent�intZdatetime)�managed_instance_id�managed_instance_type�hostname�host_id�operating_system�agent�approximate_application_count�approximate_installation_count�approximate_jre_count�drs_file_status�application_invoked_by� time_start�time_end�time_first_seen�time_last_seenZmanagedInstanceIdZmanagedInstanceTyper ZhostIdZoperatingSystemr ZapproximateApplicationCountZapproximateInstallationCountZapproximateJreCountZ drsFileStatusZapplicationInvokedByZ timeStartZtimeEndZ timeFirstSeenZtimeLastSeenN)Z swagger_typesZ attribute_map�_managed_instance_id�_managed_instance_type� _hostname�_host_id�_operating_system�_agent�_approximate_application_count�_approximate_installation_count�_approximate_jre_count�_drs_file_status�_application_invoked_by�_time_start� _time_end�_time_first_seen�_time_last_seen)�self�kwargs� r/ �I/usr/lib/python3.9/site-packages/oci/jms/models/managed_instance_usage.py�__init__- s^ G��zManagedInstanceUsage.__init__c C s | j S )aA **[Required]** Gets the managed_instance_id of this ManagedInstanceUsage. The `OCID`__ of the related managed instance. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The managed_instance_id of this ManagedInstanceUsage. :rtype: str �r �r- r/ r/ r0 r � s z(ManagedInstanceUsage.managed_instance_idc C s || _ dS )aD Sets the managed_instance_id of this ManagedInstanceUsage. The `OCID`__ of the related managed instance. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param managed_instance_id: The managed_instance_id of this ManagedInstanceUsage. :type: str Nr2 )r- r r/ r/ r0 r � s c C s | j S )a� **[Required]** Gets the managed_instance_type of this ManagedInstanceUsage. The type of the source of events. Allowed values for this property are: "ORACLE_MANAGEMENT_AGENT", "ORACLE_CLOUD_AGENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The managed_instance_type of this ManagedInstanceUsage. :rtype: str )r r3 r/ r/ r0 r � s z*ManagedInstanceUsage.managed_instance_typec C s ddg}t ||�sd}|| _dS )z� Sets the managed_instance_type of this ManagedInstanceUsage. The type of the source of events. :param managed_instance_type: The managed_instance_type of this ManagedInstanceUsage. :type: str r r �UNKNOWN_ENUM_VALUEN)r r )r- r �allowed_valuesr/ r/ r0 r � s c C s | j S )z� Gets the hostname of this ManagedInstanceUsage. The hostname of the managed instance (if applicable). :return: The hostname of this ManagedInstanceUsage. :rtype: str �r r3 r/ r/ r0 r � s zManagedInstanceUsage.hostnamec C s || _ dS )z� Sets the hostname of this ManagedInstanceUsage. The hostname of the managed instance (if applicable). :param hostname: The hostname of this ManagedInstanceUsage. :type: str Nr6 )r- r r/ r/ r0 r � s c C s | j S )a Gets the host_id of this ManagedInstanceUsage. The host `OCID`__ of the related managed instance. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The host_id of this ManagedInstanceUsage. :rtype: str �r! r3 r/ r/ r0 r � s zManagedInstanceUsage.host_idc C s || _ dS )a% Sets the host_id of this ManagedInstanceUsage. The host `OCID`__ of the related managed instance. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param host_id: The host_id of this ManagedInstanceUsage. :type: str Nr7 )r- r r/ r/ r0 r s c C s | j S )z� Gets the operating_system of this ManagedInstanceUsage. :return: The operating_system of this ManagedInstanceUsage. :rtype: oci.jms.models.OperatingSystem �r"