Filter

class oci.usage_api.models.Filter(**kwargs)

Bases: object

The filter object for query usage.

Attributes:

OPERATOR_AND

A constant which can be used with the operator property of a Filter.

OPERATOR_NOT

A constant which can be used with the operator property of a Filter.

OPERATOR_OR

A constant which can be used with the operator property of a Filter.

dimensions

Gets the dimensions of this Filter.

filters

Gets the filters of this Filter.

operator

Gets the operator of this Filter.

tags

Gets 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.

property 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]

property 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]

property 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

property tags

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]