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

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

Overview

Datastore composite index definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1Index

Returns a new instance of GoogleDatastoreAdminV1Index.



727
728
729
# File 'lib/google/apis/datastore_v1/classes.rb', line 727

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

Instance Attribute Details

#ancestorString

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

Returns:

  • (String)


700
701
702
# File 'lib/google/apis/datastore_v1/classes.rb', line 700

def ancestor
  @ancestor
end

#index_idString

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

Returns:

  • (String)


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

def index_id
  @index_id
end

#kindString

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

Returns:

  • (String)


710
711
712
# File 'lib/google/apis/datastore_v1/classes.rb', line 710

def kind
  @kind
end

#project_idString

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

Returns:

  • (String)


715
716
717
# File 'lib/google/apis/datastore_v1/classes.rb', line 715

def project_id
  @project_id
end

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

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



720
721
722
# File 'lib/google/apis/datastore_v1/classes.rb', line 720

def properties
  @properties
end

#stateString

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

Returns:

  • (String)


725
726
727
# File 'lib/google/apis/datastore_v1/classes.rb', line 725

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



732
733
734
735
736
737
738
739
# File 'lib/google/apis/datastore_v1/classes.rb', line 732

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