Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index

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 minimal index definition.

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

Returns a new instance of GoogleDatastoreAdminV1Index



731
732
733
# File 'generated/google/apis/datastore_v1/classes.rb', line 731

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

Instance Attribute Details

#ancestorString

The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. Required. Corresponds to the JSON property ancestor

Returns:

  • (String)


699
700
701
# File 'generated/google/apis/datastore_v1/classes.rb', line 699

def ancestor
  @ancestor
end

#index_idString

The resource ID of the index. Output only. Corresponds to the JSON property indexId

Returns:

  • (String)


705
706
707
# File 'generated/google/apis/datastore_v1/classes.rb', line 705

def index_id
  @index_id
end

#kindString

The entity kind to which this index applies. Required. Corresponds to the JSON property kind

Returns:

  • (String)


711
712
713
# File 'generated/google/apis/datastore_v1/classes.rb', line 711

def kind
  @kind
end

#project_idString

Project ID. Output only. Corresponds to the JSON property projectId

Returns:

  • (String)


717
718
719
# File 'generated/google/apis/datastore_v1/classes.rb', line 717

def project_id
  @project_id
end

#propertiesArray<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>

An ordered sequence of property names and their index attributes. Required. Corresponds to the JSON property properties



723
724
725
# File 'generated/google/apis/datastore_v1/classes.rb', line 723

def properties
  @properties
end

#stateString

The state of the index. Output only. Corresponds to the JSON property state

Returns:

  • (String)


729
730
731
# File 'generated/google/apis/datastore_v1/classes.rb', line 729

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



736
737
738
739
740
741
742
743
# File 'generated/google/apis/datastore_v1/classes.rb', line 736

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