class Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index

Datastore composite index definition.

Attributes

ancestor[RW]

Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. Corresponds to the JSON property `ancestor` @return [String]

index_id[RW]

Output only. The resource ID of the index. Corresponds to the JSON property `indexId` @return [String]

kind[RW]

Required. The entity kind to which this index applies. Corresponds to the JSON property `kind` @return [String]

project_id[RW]

Output only. Project ID. Corresponds to the JSON property `projectId` @return [String]

properties[RW]

Required. An ordered sequence of property names and their index attributes. Corresponds to the JSON property `properties` @return [Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>]

state[RW]

Output only. The state of the index. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1/classes.rb, line 666
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastore_v1/classes.rb, line 671
def update!(**args)
  @ancestor = args[:ancestor] if args.key?(:ancestor)
  @index_id = args[:index_id] if args.key?(:index_id)
  @kind = args[:kind] if args.key?(:kind)
  @project_id = args[:project_id] if args.key?(:project_id)
  @properties = args[:properties] if args.key?(:properties)
  @state = args[:state] if args.key?(:state)
end