a f@sDddlmZddlmZmZmZddlmZeGdddeZdS))Action)formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZddZeddZej ddZed d Z e j d d Z ed d Z e j dd Z eddZ e j ddZ eddZ e j ddZ ddZddZddZdS) PurgeActionz* Purge action for scheduled task. LOGLOOKUPcKsVddddddd|_dddddd d|_d |_d |_d |_d |_d |_d |_d |_d S) a^ Initializes a new PurgeAction object with values from keyword arguments. The default value of the :py:attr:`~oci.log_analytics.models.PurgeAction.type` attribute of this class is ``PURGE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this PurgeAction. Allowed values for this property are: "STREAM", "PURGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param query_string: The value to assign to the query_string property of this PurgeAction. :type query_string: str :param data_type: The value to assign to the data_type property of this PurgeAction. Allowed values for this property are: "LOG", "LOOKUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type data_type: str :param purge_duration: The value to assign to the purge_duration property of this PurgeAction. :type purge_duration: str :param purge_compartment_id: The value to assign to the purge_compartment_id property of this PurgeAction. :type purge_compartment_id: str :param compartment_id_in_subtree: The value to assign to the compartment_id_in_subtree property of this PurgeAction. :type compartment_id_in_subtree: bool strbool)type query_string data_typepurge_durationpurge_compartment_idcompartment_id_in_subtreer Z queryStringZdataTypeZ purgeDurationZpurgeCompartmentIdZcompartmentIdInSubtreeNZPURGE)Z swagger_typesZ attribute_mapZ_type _query_string _data_type_purge_duration_purge_compartment_id_compartment_id_in_subtree)selfkwargsrI/usr/lib/python3.9/site-packages/oci/log_analytics/models/purge_action.py__init__s*$  zPurgeAction.__init__cCs|jS)z **[Required]** Gets the query_string of this PurgeAction. Purge query string. :return: The query_string of this PurgeAction. :rtype: str rrrrrrWs zPurgeAction.query_stringcCs ||_dS)z Sets the query_string of this PurgeAction. Purge query string. :param query_string: The query_string of this PurgeAction. :type: str Nr)rrrrrrcs cCs|jS)at **[Required]** Gets the data_type of this PurgeAction. the type of the log data to be purged Allowed values for this property are: "LOG", "LOOKUP", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The data_type of this PurgeAction. :rtype: str )rrrrrros zPurgeAction.data_typecCs ddg}t||sd}||_dS)z Sets the data_type of this PurgeAction. the type of the log data to be purged :param data_type: The data_type of this PurgeAction. :type: str r r ZUNKNOWN_ENUM_VALUEN)rr)rrZallowed_valuesrrrr~s  cCs|jS)a  **[Required]** Gets the purge_duration of this PurgeAction. The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W). :return: The purge_duration of this PurgeAction. :rtype: str rrrrrrszPurgeAction.purge_durationcCs ||_dS)a  Sets the purge_duration of this PurgeAction. The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W). :param purge_duration: The purge_duration of this PurgeAction. :type: str Nr)rrrrrrscCs|jS)z **[Required]** Gets the purge_compartment_id of this PurgeAction. the compartment OCID under which the data will be purged :return: The purge_compartment_id of this PurgeAction. :rtype: str rrrrrrs z PurgeAction.purge_compartment_idcCs ||_dS)z Sets the purge_compartment_id of this PurgeAction. the compartment OCID under which the data will be purged :param purge_compartment_id: The purge_compartment_id of this PurgeAction. :type: str Nr )rrrrrrs cCs|jS)z Gets the compartment_id_in_subtree of this PurgeAction. if true, purge child compartments data :return: The compartment_id_in_subtree of this PurgeAction. :rtype: bool rrrrrrs z%PurgeAction.compartment_id_in_subtreecCs ||_dS)z Sets the compartment_id_in_subtree of this PurgeAction. if true, purge child compartments data :param compartment_id_in_subtree: The compartment_id_in_subtree of this PurgeAction. :type: bool Nr!)rrrrrrs cCst|SN)rrrrr__repr__szPurgeAction.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherrrr__eq__szPurgeAction.__eq__cCs ||k Sr"rr%rrr__ne__szPurgeAction.__ne__N)__name__ __module__ __qualname____doc__Z DATA_TYPE_LOGZDATA_TYPE_LOOKUPrpropertyrsetterrrrrr#r'r(rrrrr s6=          rN) actionrZoci.utilrrrZoci.decoratorsrrrrrrs