ResourceFilter¶
-
class
oci.resource_scheduler.models.
ResourceFilter
(**kwargs)¶ Bases:
object
This is a generic filter used to decide which resources that the schedule be applied to.
Attributes
ATTRIBUTE_COMPARTMENT_ID
A constant which can be used with the attribute property of a ResourceFilter. ATTRIBUTE_DEFINED_TAGS
A constant which can be used with the attribute property of a ResourceFilter. ATTRIBUTE_LIFECYCLE_STATE
A constant which can be used with the attribute property of a ResourceFilter. ATTRIBUTE_RESOURCE_TYPE
A constant which can be used with the attribute property of a ResourceFilter. ATTRIBUTE_TIME_CREATED
A constant which can be used with the attribute property of a ResourceFilter. attribute
[Required] Gets the attribute of this ResourceFilter. Methods
__init__
(**kwargs)Initializes a new ResourceFilter 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'¶ A constant which can be used with the attribute property of a ResourceFilter. This constant has a value of “COMPARTMENT_ID”
-
ATTRIBUTE_DEFINED_TAGS
= 'DEFINED_TAGS'¶ A constant which can be used with the attribute property of a ResourceFilter. This constant has a value of “DEFINED_TAGS”
-
ATTRIBUTE_LIFECYCLE_STATE
= 'LIFECYCLE_STATE'¶ A constant which can be used with the attribute property of a ResourceFilter. This constant has a value of “LIFECYCLE_STATE”
-
ATTRIBUTE_RESOURCE_TYPE
= 'RESOURCE_TYPE'¶ A constant which can be used with the attribute property of a ResourceFilter. This constant has a value of “RESOURCE_TYPE”
-
ATTRIBUTE_TIME_CREATED
= 'TIME_CREATED'¶ A constant which can be used with the attribute property of a ResourceFilter. This constant has a value of “TIME_CREATED”
-
__init__
(**kwargs)¶ Initializes a new ResourceFilter object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
TimeCreatedResourceFilter
ResourceTypeResourceFilter
LifecycleStateResourceFilter
CompartmentIdResourceFilter
DefinedTagsResourceFilter
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 ResourceFilter. 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’.
-
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
-
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.
-