TimeCreatedResourceFilter¶
-
class
oci.resource_scheduler.models.
TimeCreatedResourceFilter
(**kwargs)¶ Bases:
oci.resource_scheduler.models.resource_filter.ResourceFilter
This is a resource filter for filtering resources based on their creation time.
Attributes
ATTRIBUTE_COMPARTMENT_ID
str(object=’’) -> str ATTRIBUTE_DEFINED_TAGS
str(object=’’) -> str ATTRIBUTE_LIFECYCLE_STATE
str(object=’’) -> str ATTRIBUTE_RESOURCE_TYPE
str(object=’’) -> str ATTRIBUTE_TIME_CREATED
str(object=’’) -> str CONDITION_AFTER
A constant which can be used with the condition property of a TimeCreatedResourceFilter. CONDITION_BEFORE
A constant which can be used with the condition property of a TimeCreatedResourceFilter. CONDITION_EQUAL
A constant which can be used with the condition property of a TimeCreatedResourceFilter. attribute
[Required] Gets the attribute of this ResourceFilter. condition
Gets the condition of this TimeCreatedResourceFilter. value
Gets the value of this TimeCreatedResourceFilter. Methods
__init__
(**kwargs)Initializes a new TimeCreatedResourceFilter object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
ATTRIBUTE_COMPARTMENT_ID
= 'COMPARTMENT_ID'¶
-
ATTRIBUTE_DEFINED_TAGS
= 'DEFINED_TAGS'¶
-
ATTRIBUTE_LIFECYCLE_STATE
= 'LIFECYCLE_STATE'¶
-
ATTRIBUTE_RESOURCE_TYPE
= 'RESOURCE_TYPE'¶
-
ATTRIBUTE_TIME_CREATED
= 'TIME_CREATED'¶
-
CONDITION_AFTER
= 'AFTER'¶ A constant which can be used with the condition property of a TimeCreatedResourceFilter. This constant has a value of “AFTER”
-
CONDITION_BEFORE
= 'BEFORE'¶ A constant which can be used with the condition property of a TimeCreatedResourceFilter. This constant has a value of “BEFORE”
-
CONDITION_EQUAL
= 'EQUAL'¶ A constant which can be used with the condition property of a TimeCreatedResourceFilter. This constant has a value of “EQUAL”
-
__init__
(**kwargs)¶ Initializes a new TimeCreatedResourceFilter object with values from keyword arguments. The default value of the
attribute
attribute of this class isTIME_CREATED
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - attribute (str) – The value to assign to the attribute property of this TimeCreatedResourceFilter. Allowed values for this property are: “COMPARTMENT_ID”, “RESOURCE_TYPE”, “DEFINED_TAGS”, “TIME_CREATED”, “LIFECYCLE_STATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- condition (str) – The value to assign to the condition property of this TimeCreatedResourceFilter. Allowed values for this property are: “EQUAL”, “BEFORE”, “AFTER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- value (str) – The value to assign to the value property of this TimeCreatedResourceFilter.
-
attribute
¶ [Required] Gets the attribute of this ResourceFilter. This is the resource attribute on which the threshold is defined.
Allowed values for this property are: “COMPARTMENT_ID”, “RESOURCE_TYPE”, “DEFINED_TAGS”, “TIME_CREATED”, “LIFECYCLE_STATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The attribute of this ResourceFilter. Return type: str
-
condition
¶ Gets the condition of this TimeCreatedResourceFilter. This is the condition for the filter in comparison to its creation time.
Allowed values for this property are: “EQUAL”, “BEFORE”, “AFTER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The condition of this TimeCreatedResourceFilter. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
value
¶ Gets the value of this TimeCreatedResourceFilter. This is the date and time as the value of the filter.
Returns: The value of this TimeCreatedResourceFilter. Return type: str
-