Class: Google::Apis::DatastoreV1beta3::PropertyFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datastore_v1beta3/classes.rb,
generated/google/apis/datastore_v1beta3/representations.rb,
generated/google/apis/datastore_v1beta3/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



1327
1328
1329
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1327

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

Instance Attribute Details

#opString

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

Returns:

  • (String)


1314
1315
1316
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1314

def op
  @op
end

#propertyGoogle::Apis::DatastoreV1beta3::PropertyReference

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



1319
1320
1321
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1319

def property
  @property
end

#valueGoogle::Apis::DatastoreV1beta3::Value

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



1325
1326
1327
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1325

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1332
1333
1334
1335
1336
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1332

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