CompartmentIdResourceFilter¶
-
class
oci.resource_scheduler.models.CompartmentIdResourceFilter(**kwargs)¶ Bases:
oci.resource_scheduler.models.resource_filter.ResourceFilterThis is a resource filter for filtering resource based on compartment OCID.
Attributes
ATTRIBUTE_COMPARTMENT_IDstr(object=’’) -> str ATTRIBUTE_DEFINED_TAGSstr(object=’’) -> str ATTRIBUTE_LIFECYCLE_STATEstr(object=’’) -> str ATTRIBUTE_RESOURCE_TYPEstr(object=’’) -> str ATTRIBUTE_TIME_CREATEDstr(object=’’) -> str attribute[Required] Gets the attribute of this ResourceFilter. should_include_child_compartmentsGets the should_include_child_compartments of this CompartmentIdResourceFilter. valueGets the value of this CompartmentIdResourceFilter. Methods
__init__(**kwargs)Initializes a new CompartmentIdResourceFilter 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 CompartmentIdResourceFilter object with values from keyword arguments. The default value of the
attributeattribute of this class isCOMPARTMENT_IDand 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 CompartmentIdResourceFilter. Allowed values for this property are: “COMPARTMENT_ID”, “RESOURCE_TYPE”, “DEFINED_TAGS”, “TIME_CREATED”, “LIFECYCLE_STATE”
- value (str) – The value to assign to the value property of this CompartmentIdResourceFilter.
- should_include_child_compartments (bool) – The value to assign to the should_include_child_compartments property of this CompartmentIdResourceFilter.
-
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.
-
should_include_child_compartments¶ Gets the should_include_child_compartments of this CompartmentIdResourceFilter. This sets whether to include child compartments.
Returns: The should_include_child_compartments of this CompartmentIdResourceFilter. Return type: bool
-
value¶ Gets the value of this CompartmentIdResourceFilter. This is the compartment used for filtering.
Returns: The value of this CompartmentIdResourceFilter. Return type: str
-