Class: Google::Apis::DatastoreV1beta2::PropertyFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb

Overview

A filter on a specific property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PropertyFilter

Returns a new instance of PropertyFilter



761
762
763
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 761

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#operatorString

The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor. Corresponds to the JSON property operator

Returns:

  • (String)


748
749
750
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 748

def operator
  @operator
end

#propertyGoogle::Apis::DatastoreV1beta2::PropertyReference

A reference to a property relative to the kind expressions. Corresponds to the JSON property property



753
754
755
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 753

def property
  @property
end

#valueGoogle::Apis::DatastoreV1beta2::Value

A message that can hold any of the supported value types and associated metadata. Corresponds to the JSON property value



759
760
761
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 759

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



766
767
768
769
770
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 766

def update!(**args)
  @operator = args[:operator] if args.key?(:operator)
  @property = args[:property] if args.key?(:property)
  @value = args[:value] if args.key?(:value)
end