Filter¶
-
class
oci.usage_api.models.Filter(**kwargs)¶ Bases:
objectThe filter object for query usage.
Attributes
OPERATOR_ANDA constant which can be used with the operator property of a Filter. OPERATOR_NOTA constant which can be used with the operator property of a Filter. OPERATOR_ORA constant which can be used with the operator property of a Filter. dimensionsGets the dimensions of this Filter. filtersGets the filters of this Filter. operatorGets the operator of this Filter. tagsGets the tags of this Filter. Methods
__init__(**kwargs)Initializes a new Filter object with values from keyword arguments. -
OPERATOR_AND= 'AND'¶ A constant which can be used with the operator property of a Filter. This constant has a value of “AND”
-
OPERATOR_NOT= 'NOT'¶ A constant which can be used with the operator property of a Filter. This constant has a value of “NOT”
-
OPERATOR_OR= 'OR'¶ A constant which can be used with the operator property of a Filter. This constant has a value of “OR”
-
__init__(**kwargs)¶ Initializes a new Filter object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - operator (str) – The value to assign to the operator property of this Filter. Allowed values for this property are: “AND”, “NOT”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- dimensions (list[oci.usage_api.models.Dimension]) – The value to assign to the dimensions property of this Filter.
- tags (list[oci.usage_api.models.Tag]) – The value to assign to the tags property of this Filter.
- filters (list[oci.usage_api.models.Filter]) – The value to assign to the filters property of this Filter.
-
dimensions¶ Gets the dimensions of this Filter. The dimensions to filter on.
Returns: The dimensions of this Filter. Return type: list[oci.usage_api.models.Dimension]
-
filters¶ Gets the filters of this Filter. The nested filter object.
Returns: The filters of this Filter. Return type: list[oci.usage_api.models.Filter]
-
operator¶ Gets the operator of this Filter. The filter operator. Example: ‘AND’, ‘OR’, ‘NOT’.
Allowed values for this property are: “AND”, “NOT”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operator of this Filter. Return type: str
Gets the tags of this Filter. The tags to filter on.
Returns: The tags of this Filter. Return type: list[oci.usage_api.models.Tag]
-