Skip to content

Latest commit

 

History

History
124 lines (67 loc) · 3.23 KB

Filter.md

File metadata and controls

124 lines (67 loc) · 3.23 KB

Filter

Properties

Name Type Description Notes
Field string Name of the field to use as the first operand in the filter expression.
Key Pointer to string If `field` is `tag`, this field is required to specify `key` inside the tags. [optional]
Value Pointer to string Constant value to use as the second operand in the filter expression. This value is required when the relation operator is a binary operator. [optional]
Relation string Operator of a filter expression.

Methods

NewFilter

func NewFilter(field string, relation string, ) *Filter

NewFilter instantiates a new Filter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewFilterWithDefaults

func NewFilterWithDefaults() *Filter

NewFilterWithDefaults instantiates a new Filter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetField

func (o *Filter) GetField() string

GetField returns the Field field if non-nil, zero value otherwise.

GetFieldOk

func (o *Filter) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetField

func (o *Filter) SetField(v string)

SetField sets Field field to given value.

GetKey

func (o *Filter) GetKey() string

GetKey returns the Key field if non-nil, zero value otherwise.

GetKeyOk

func (o *Filter) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetKey

func (o *Filter) SetKey(v string)

SetKey sets Key field to given value.

HasKey

func (o *Filter) HasKey() bool

HasKey returns a boolean if a field has been set.

GetValue

func (o *Filter) GetValue() string

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *Filter) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValue

func (o *Filter) SetValue(v string)

SetValue sets Value field to given value.

HasValue

func (o *Filter) HasValue() bool

HasValue returns a boolean if a field has been set.

GetRelation

func (o *Filter) GetRelation() string

GetRelation returns the Relation field if non-nil, zero value otherwise.

GetRelationOk

func (o *Filter) GetRelationOk() (*string, bool)

GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRelation

func (o *Filter) SetRelation(v string)

SetRelation sets Relation field to given value.

[Back to Model list] [Back to API list] [Back to README]