Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty

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 property of an index.

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) ⇒ GoogleDatastoreAdminV1IndexedProperty

Returns a new instance of GoogleDatastoreAdminV1IndexedProperty.



786
787
788
# File 'generated/google/apis/datastore_v1/classes.rb', line 786

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

Instance Attribute Details

#directionString

Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. Corresponds to the JSON property direction

Returns:

  • (String)


779
780
781
# File 'generated/google/apis/datastore_v1/classes.rb', line 779

def direction
  @direction
end

#nameString

Required. The property name to index. Corresponds to the JSON property name

Returns:

  • (String)


784
785
786
# File 'generated/google/apis/datastore_v1/classes.rb', line 784

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



791
792
793
794
# File 'generated/google/apis/datastore_v1/classes.rb', line 791

def update!(**args)
  @direction = args[:direction] if args.key?(:direction)
  @name = args[:name] if args.key?(:name)
end