class Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index

An index definition.

Attributes

collection_id[RW]

The collection ID to which this index applies. Required. Corresponds to the JSON property `collectionId` @return [String]

fields[RW]

The fields to index. Corresponds to the JSON property `fields` @return [Array<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField>]

name[RW]

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

state[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1beta1/classes.rb, line 999
def update!(**args)
  @collection_id = args[:collection_id] if args.key?(:collection_id)
  @fields = args[:fields] if args.key?(:fields)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end