DefinedTagsResourceFilter

class oci.resource_scheduler.models.DefinedTagsResourceFilter(**kwargs)

Bases: oci.resource_scheduler.models.resource_filter.ResourceFilter

This is a resource filter for filtering resource based on a defined tag.

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
attribute [Required] Gets the attribute of this ResourceFilter.
value Gets the value of this DefinedTagsResourceFilter.

Methods

__init__(**kwargs) Initializes a new DefinedTagsResourceFilter 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'
__init__(**kwargs)

Initializes a new DefinedTagsResourceFilter object with values from keyword arguments. The default value of the attribute attribute of this class is DEFINED_TAGS 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 DefinedTagsResourceFilter. Allowed values for this property are: “COMPARTMENT_ID”, “RESOURCE_TYPE”, “DEFINED_TAGS”, “TIME_CREATED”, “LIFECYCLE_STATE”
  • value (list[oci.resource_scheduler.models.DefinedTagFilterValue]) – The value to assign to the value property of this DefinedTagsResourceFilter.
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.

value

Gets the value of this DefinedTagsResourceFilter. This is a defined tag filter value.

Returns:The value of this DefinedTagsResourceFilter.
Return type:list[oci.resource_scheduler.models.DefinedTagFilterValue]