a f$R@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dd Z e d d Z e j d d Z e d dZej ddZe ddZej ddZe ddZej ddZe ddZej ddZe ddZej ddZe ddZej ddZe dd Zej d!d Ze d"d#Zej d$d#Ze d%d&Zej d'd&Ze d(d)Zej d*d)Ze d+d,Zej d-d,Ze d.d/Zej d0d/Ze d1d2Zej d3d2Ze d4d5Zej d6d5Zd7d8Zd9d: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_AGENTORACLE_CLOUD_AGENTPRESENTABSENTMISMATCHNOT_CONFIGUREDcKsdddddddddddddddd|_ddd d d d d 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 strZOperatingSystemZAgentintZdatetime)managed_instance_idmanaged_instance_typehostnamehost_idoperating_systemagentapproximate_application_countapproximate_installation_countapproximate_jre_countdrs_file_statusapplication_invoked_by time_starttime_endtime_first_seentime_last_seenZmanagedInstanceIdZmanagedInstanceTyperZhostIdZoperatingSystemrZapproximateApplicationCountZapproximateInstallationCountZapproximateJreCountZ drsFileStatusZapplicationInvokedByZ timeStartZtimeEndZ timeFirstSeenZ timeLastSeenN)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)selfkwargsr/I/usr/lib/python3.9/site-packages/oci/jms/models/managed_instance_usage.py__init__-s^GzManagedInstanceUsage.__init__cCs|jS)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 rr-r/r/r0rs z(ManagedInstanceUsage.managed_instance_idcCs ||_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-rr/r/r0rs cCs|jS)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 )rr3r/r/r0rs z*ManagedInstanceUsage.managed_instance_typecCs 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 rrUNKNOWN_ENUM_VALUEN)rr)r-rallowed_valuesr/r/r0rs  cCs|jS)z Gets the hostname of this ManagedInstanceUsage. The hostname of the managed instance (if applicable). :return: The hostname of this ManagedInstanceUsage. :rtype: str r r3r/r/r0rs zManagedInstanceUsage.hostnamecCs ||_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-rr/r/r0rs cCs|jS)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!r3r/r/r0rs zManagedInstanceUsage.host_idcCs ||_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-rr/r/r0rs cCs|jS)z Gets the operating_system of this ManagedInstanceUsage. :return: The operating_system of this ManagedInstanceUsage. :rtype: oci.jms.models.OperatingSystem r"r3r/r/r0rsz%ManagedInstanceUsage.operating_systemcCs ||_dS)z Sets the operating_system of this ManagedInstanceUsage. :param operating_system: The operating_system of this ManagedInstanceUsage. :type: oci.jms.models.OperatingSystem Nr8)r-rr/r/r0rscCs|jS)z Gets the agent of this ManagedInstanceUsage. :return: The agent of this ManagedInstanceUsage. :rtype: oci.jms.models.Agent r#r3r/r/r0r)szManagedInstanceUsage.agentcCs ||_dS)z Sets the agent of this ManagedInstanceUsage. :param agent: The agent of this ManagedInstanceUsage. :type: oci.jms.models.Agent Nr9)r-rr/r/r0r3scCs|jS)a Gets the approximate_application_count of this ManagedInstanceUsage. The approximate count of applications reported by this managed instance. :return: The approximate_application_count of this ManagedInstanceUsage. :rtype: int r$r3r/r/r0r=s z2ManagedInstanceUsage.approximate_application_countcCs ||_dS)a* Sets the approximate_application_count of this ManagedInstanceUsage. The approximate count of applications reported by this managed instance. :param approximate_application_count: The approximate_application_count of this ManagedInstanceUsage. :type: int Nr:)r-rr/r/r0rIs cCs|jS)a Gets the approximate_installation_count of this ManagedInstanceUsage. The approximate count of installations reported by this managed instance. :return: The approximate_installation_count of this ManagedInstanceUsage. :rtype: int r%r3r/r/r0rUs z3ManagedInstanceUsage.approximate_installation_countcCs ||_dS)a. Sets the approximate_installation_count of this ManagedInstanceUsage. The approximate count of installations reported by this managed instance. :param approximate_installation_count: The approximate_installation_count of this ManagedInstanceUsage. :type: int Nr;)r-rr/r/r0ras cCs|jS)z Gets the approximate_jre_count of this ManagedInstanceUsage. The approximate count of Java Runtimes reported by this managed instance. :return: The approximate_jre_count of this ManagedInstanceUsage. :rtype: int r&r3r/r/r0rms z*ManagedInstanceUsage.approximate_jre_countcCs ||_dS)a Sets the approximate_jre_count of this ManagedInstanceUsage. The approximate count of Java Runtimes reported by this managed instance. :param approximate_jre_count: The approximate_jre_count of this ManagedInstanceUsage. :type: int Nr<)r-rr/r/r0rys cCs|jS)a Gets the drs_file_status of this ManagedInstanceUsage. DRS file status 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'. :return: The drs_file_status of this ManagedInstanceUsage. :rtype: str )r'r3r/r/r0rs z$ManagedInstanceUsage.drs_file_statuscCs gd}t||sd}||_dS)z Sets the drs_file_status of this ManagedInstanceUsage. DRS file status :param drs_file_status: The drs_file_status of this ManagedInstanceUsage. :type: str )r r r r r4N)rr')r-rr5r/r/r0rs  cCs|jS)a Gets the application_invoked_by of this ManagedInstanceUsage. Comma separated list of user names that invoked applications within this managed instance. :return: The application_invoked_by of this ManagedInstanceUsage. :rtype: str r(r3r/r/r0rs z+ManagedInstanceUsage.application_invoked_bycCs ||_dS)a' Sets the application_invoked_by of this ManagedInstanceUsage. Comma separated list of user names that invoked applications within this managed instance. :param application_invoked_by: The application_invoked_by of this ManagedInstanceUsage. :type: str Nr=)r-rr/r/r0rs cCs|jS)a? Gets the time_start of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :rtype: datetime r)r3r/r/r0rs zManagedInstanceUsage.time_startcCs ||_dS)aH Sets the time_start of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :type: datetime Nr>)r-rr/r/r0rs cCs|jS)a; Gets the time_end of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :rtype: datetime r*r3r/r/r0rs zManagedInstanceUsage.time_endcCs ||_dS)aB Sets the time_end of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :type: datetime Nr?)r-rr/r/r0rs cCs|jS)a Gets the time_first_seen of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :rtype: datetime r+r3r/r/r0rs z$ManagedInstanceUsage.time_first_seencCs ||_dS)a Sets the time_first_seen of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :type: datetime Nr@)r-rr/r/r0rs cCs|jS)a Gets the time_last_seen of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :rtype: datetime r,r3r/r/r0r s z#ManagedInstanceUsage.time_last_seencCs ||_dS)a Sets the time_last_seen of this ManagedInstanceUsage. 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 ManagedInstanceUsage. :type: datetime NrA)r-rr/r/r0rs cCst|SN)rr3r/r/r0__repr__'szManagedInstanceUsage.__repr__cCs|dur dS|j|jkS)NF)__dict__r-otherr/r/r0__eq__*szManagedInstanceUsage.__eq__cCs ||k SrBr/rEr/r/r0__ne__0szManagedInstanceUsage.__ne__N)__name__ __module__ __qualname____doc__Z-MANAGED_INSTANCE_TYPE_ORACLE_MANAGEMENT_AGENTZ(MANAGED_INSTANCE_TYPE_ORACLE_CLOUD_AGENTZDRS_FILE_STATUS_PRESENTZDRS_FILE_STATUS_ABSENTZDRS_FILE_STATUS_MISMATCHZDRS_FILE_STATUS_NOT_CONFIGUREDr1propertyrsetterrrrrrrrrrrrrrrrCrGrHr/r/r/r0r s z                              rN)Zoci.utilrrrZoci.decoratorsrobjectrr/r/r/r0s