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

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

Overview

An index definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1beta1Index

Returns a new instance of GoogleFirestoreAdminV1beta1Index.



1469
1470
1471
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1469

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

Instance Attribute Details

#collection_id ⇒ String

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

Returns:

  • (String)


1452
1453
1454
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1452

def collection_id
  @collection_id
end

#fields ⇒ Array<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField>

The fields to index. Corresponds to the JSON property fields



1457
1458
1459
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1457

def fields
  @fields
end

#name ⇒ String

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

Returns:

  • (String)


1462
1463
1464
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1462

def name
  @name
end

#state ⇒ String

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

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1467

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1474
1475
1476
1477
1478
1479
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1474

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