a f-E@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 d3d2Zd4d5Zd6d7Zd8d9Zd:S); RuleSummaryz] A generic rule summary object - represents an ingest time rule or a scheduled task. ACTIVEDELETED INGEST_TIME SAVED_SEARCHFAILED SUCCEEDEDcKsddddddddddddddd|_ddd d d d d dddddddd|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_dS)a* Initializes a new RuleSummary 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 RuleSummary. :type id: str :param description: The value to assign to the description property of this RuleSummary. :type description: str :param compartment_id: The value to assign to the compartment_id property of this RuleSummary. :type compartment_id: str :param time_created: The value to assign to the time_created property of this RuleSummary. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this RuleSummary. :type time_updated: datetime :param freeform_tags: The value to assign to the freeform_tags property of this RuleSummary. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this RuleSummary. :type defined_tags: dict(str, dict(str, object)) :param lifecycle_state: The value to assign to the lifecycle_state property of this RuleSummary. 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 kind: The value to assign to the kind property of this RuleSummary. Allowed values for this property are: "INGEST_TIME", "SAVED_SEARCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type kind: str :param target_service: The value to assign to the target_service property of this RuleSummary. :type target_service: str :param display_name: The value to assign to the display_name property of this RuleSummary. :type display_name: str :param is_enabled: The value to assign to the is_enabled property of this RuleSummary. :type is_enabled: bool :param last_execution_status: The value to assign to the last_execution_status property of this RuleSummary. Allowed values for this property are: "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type last_execution_status: str :param time_last_executed: The value to assign to the time_last_executed property of this RuleSummary. :type time_last_executed: datetime strZdatetimezdict(str, str)zdict(str, dict(str, object))bool)id descriptioncompartment_id time_created time_updated freeform_tags defined_tagslifecycle_statekindtarget_service display_name is_enabledlast_execution_statustime_last_executedrrZ compartmentIdZ timeCreatedZ timeUpdatedZ freeformTagsZ definedTagsZlifecycleStaterZ targetServiceZ displayNameZ isEnabledZlastExecutionStatusZtimeLastExecutedN)Z swagger_typesZ attribute_map_id _description_compartment_id _time_created _time_updated_freeform_tags _defined_tags_lifecycle_state_kind_target_service _display_name _is_enabled_last_execution_status_time_last_executed)selfkwargsr-I/usr/lib/python3.9/site-packages/oci/log_analytics/models/rule_summary.py__init__*sXEzRuleSummary.__init__cCs|jS)aY **[Required]** Gets the id of this RuleSummary. The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud. :return: The id of this RuleSummary. :rtype: str rr+r-r-r.rs zRuleSummary.idcCs ||_dS)aK Sets the id of this RuleSummary. The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud. :param id: The id of this RuleSummary. :type: str Nr0)r+rr-r-r.rs cCs|jS)z Gets the description of this RuleSummary. Description for this resource. :return: The description of this RuleSummary. :rtype: str rr1r-r-r.rs zRuleSummary.descriptioncCs ||_dS)z Sets the description of this RuleSummary. Description for this resource. :param description: The description of this RuleSummary. :type: str Nr2)r+rr-r-r.rs cCs|jS)a **[Required]** Gets the compartment_id of this RuleSummary. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this RuleSummary. :rtype: str rr1r-r-r.rs zRuleSummary.compartment_idcCs ||_dS)a Sets the compartment_id of this RuleSummary. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this RuleSummary. :type: str Nr3)r+rr-r-r.rs cCs|jS)z Gets the time_created of this RuleSummary. The date and time the resource was created, in the format defined by RFC3339. :return: The time_created of this RuleSummary. :rtype: datetime r r1r-r-r.rs zRuleSummary.time_createdcCs ||_dS)z Sets the time_created of this RuleSummary. The date and time the resource was created, in the format defined by RFC3339. :param time_created: The time_created of this RuleSummary. :type: datetime Nr4)r+rr-r-r.rs cCs|jS)z Gets the time_updated of this RuleSummary. The date and time the resource was last updated, in the format defined by RFC3339. :return: The time_updated of this RuleSummary. :rtype: datetime r!r1r-r-r.rs zRuleSummary.time_updatedcCs ||_dS)z Sets the time_updated of this RuleSummary. The date and time the resource was last updated, in the format defined by RFC3339. :param time_updated: The time_updated of this RuleSummary. :type: datetime Nr5)r+rr-r-r.rs cCs|jS)a= Gets the freeform_tags of this RuleSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :return: The freeform_tags of this RuleSummary. :rtype: dict(str, str) r"r1r-r-r.rs zRuleSummary.freeform_tagscCs ||_dS)aI Sets the freeform_tags of this RuleSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :param freeform_tags: The freeform_tags of this RuleSummary. :type: dict(str, str) Nr6)r+rr-r-r.r*s cCs|jS)a7 Gets the defined_tags of this RuleSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :return: The defined_tags of this RuleSummary. :rtype: dict(str, dict(str, object)) r#r1r-r-r.r7s zRuleSummary.defined_tagscCs ||_dS)aB Sets the defined_tags of this RuleSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :param defined_tags: The defined_tags of this RuleSummary. :type: dict(str, dict(str, object)) Nr7)r+rr-r-r.rDs cCs|jS)a Gets the lifecycle_state of this RuleSummary. The current state of the logging analytics rule. 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 RuleSummary. :rtype: str )r$r1r-r-r.rQs zRuleSummary.lifecycle_statecCs ddg}t||sd}||_dS)z Sets the lifecycle_state of this RuleSummary. The current state of the logging analytics rule. :param lifecycle_state: The lifecycle_state of this RuleSummary. :type: str rrUNKNOWN_ENUM_VALUEN)rr$)r+rallowed_valuesr-r-r.r`s  cCs|jS)a **[Required]** Gets the kind of this RuleSummary. The kind of rule - either an ingest time rule or a scheduled task. Allowed values for this property are: "INGEST_TIME", "SAVED_SEARCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The kind of this RuleSummary. :rtype: str )r%r1r-r-r.ros zRuleSummary.kindcCs ddg}t||sd}||_dS)z Sets the kind of this RuleSummary. The kind of rule - either an ingest time rule or a scheduled task. :param kind: The kind of this RuleSummary. :type: str r r r8N)rr%)r+rr9r-r-r.r~s  cCs|jS)z Gets the target_service of this RuleSummary. The target service. :return: The target_service of this RuleSummary. :rtype: str r&r1r-r-r.rs zRuleSummary.target_servicecCs ||_dS)z Sets the target_service of this RuleSummary. The target service. :param target_service: The target_service of this RuleSummary. :type: str Nr:)r+rr-r-r.rs cCs|jS)z **[Required]** Gets the display_name of this RuleSummary. The ingest time rule or scheduled task display name. :return: The display_name of this RuleSummary. :rtype: str r'r1r-r-r.rs zRuleSummary.display_namecCs ||_dS)z Sets the display_name of this RuleSummary. The ingest time rule or scheduled task display name. :param display_name: The display_name of this RuleSummary. :type: str Nr;)r+rr-r-r.rs cCs|jS)z Gets the is_enabled of this RuleSummary. A flag indicating whether or not the ingest time rule or scheduled task is enabled. :return: The is_enabled of this RuleSummary. :rtype: bool r(r1r-r-r.rs zRuleSummary.is_enabledcCs ||_dS)z Sets the is_enabled of this RuleSummary. A flag indicating whether or not the ingest time rule or scheduled task is enabled. :param is_enabled: The is_enabled of this RuleSummary. :type: bool Nr<)r+rr-r-r.rs cCs|jS)a Gets the last_execution_status of this RuleSummary. The most recent task execution status. Allowed values for this property are: "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The last_execution_status of this RuleSummary. :rtype: str )r)r1r-r-r.rs z!RuleSummary.last_execution_statuscCs ddg}t||sd}||_dS)z Sets the last_execution_status of this RuleSummary. The most recent task execution status. :param last_execution_status: The last_execution_status of this RuleSummary. :type: str r r r8N)rr))r+rr9r-r-r.rs  cCs|jS)z Gets the time_last_executed of this RuleSummary. The date and time the scheduled task last executed, in the format defined by RFC3339. :return: The time_last_executed of this RuleSummary. :rtype: datetime r*r1r-r-r.rs zRuleSummary.time_last_executedcCs ||_dS)a  Sets the time_last_executed of this RuleSummary. The date and time the scheduled task last executed, in the format defined by RFC3339. :param time_last_executed: The time_last_executed of this RuleSummary. :type: datetime Nr=)r+rr-r-r.rs cCst|SN)rr1r-r-r.__repr__ szRuleSummary.__repr__cCs|dur dS|j|jkS)NF)__dict__r+otherr-r-r.__eq__szRuleSummary.__eq__cCs ||k Sr>r-rAr-r-r.__ne__szRuleSummary.__ne__N)__name__ __module__ __qualname____doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETEDZKIND_INGEST_TIMEZKIND_SAVED_SEARCHZLAST_EXECUTION_STATUS_FAILEDZLAST_EXECUTION_STATUS_SUCCEEDEDr/propertyrsetterrrrrrrrrrrrrrr?rCrDr-r-r-r.r su                            rN)Zoci.utilrrrZoci.decoratorsrobjectrr-r-r-r.s