Class: Google::Apis::DatastoreV1::PropertyFilter

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

Overview

A filter on a specific property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PropertyFilter

Returns a new instance of PropertyFilter.



1537
1538
1539
# File 'generated/google/apis/datastore_v1/classes.rb', line 1537

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

Instance Attribute Details

#opString

The operator to filter by. Corresponds to the JSON property op

Returns:

  • (String)


1524
1525
1526
# File 'generated/google/apis/datastore_v1/classes.rb', line 1524

def op
  @op
end

#propertyGoogle::Apis::DatastoreV1::PropertyReference

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



1529
1530
1531
# File 'generated/google/apis/datastore_v1/classes.rb', line 1529

def property
  @property
end

#valueGoogle::Apis::DatastoreV1::Value

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



1535
1536
1537
# File 'generated/google/apis/datastore_v1/classes.rb', line 1535

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1542
1543
1544
1545
1546
# File 'generated/google/apis/datastore_v1/classes.rb', line 1542

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