class Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index
Datastore composite index definition.
Attributes
Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED. Corresponds to the JSON property `ancestor` @return [String]
Output only. The resource ID of the index. Corresponds to the JSON property `indexId` @return [String]
Required. The entity kind to which this index applies. Corresponds to the JSON property `kind` @return [String]
Output only. Project ID. Corresponds to the JSON property `projectId` @return [String]
Required. An ordered sequence of property names and their index attributes. Corresponds to the JSON property `properties` @return [Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>]
Output only. The state of the index. Corresponds to the JSON property `state` @return [String]
Public Class Methods
# File lib/google/apis/datastore_v1/classes.rb, line 666 def initialize(**args) update!(**args) end
Public Instance Methods
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