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

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

Overview

A property of an index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1IndexedProperty

Returns a new instance of GoogleDatastoreAdminV1IndexedProperty.

[View source]

1148
1149
1150
# File 'lib/google/apis/datastore_v1/classes.rb', line 1148

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)

1141
1142
1143
# File 'lib/google/apis/datastore_v1/classes.rb', line 1141

def direction
  @direction
end

#nameString

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

Returns:

  • (String)

1146
1147
1148
# File 'lib/google/apis/datastore_v1/classes.rb', line 1146

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1153
1154
1155
1156
# File 'lib/google/apis/datastore_v1/classes.rb', line 1153

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