Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb

Overview

An 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) ⇒ GoogleFirestoreAdminV1beta1Index

Returns a new instance of GoogleFirestoreAdminV1beta1Index



949
950
951
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 949

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

Instance Attribute Details

#collection_idString

The collection ID to which this index applies. Required. Corresponds to the JSON property collectionId

Returns:

  • (String)


930
931
932
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 930

def collection_id
  @collection_id
end

#fieldsArray<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField>

The fields to index. Corresponds to the JSON property fields



935
936
937
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 935

def fields
  @fields
end

#nameString

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

Returns:

  • (String)


941
942
943
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 941

def name
  @name
end

#stateString

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

Returns:

  • (String)


947
948
949
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 947

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



954
955
956
957
958
959
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 954

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