Class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2IndexConfigDelta

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

Overview

Information about an index configuration change.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1beta2IndexConfigDelta

Returns a new instance of GoogleFirestoreAdminV1beta2IndexConfigDelta.



459
460
461
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 459

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

Instance Attribute Details

#change_typeString

Specifies how the index is changing. Corresponds to the JSON property changeType

Returns:

  • (String)


451
452
453
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 451

def change_type
  @change_type
end

#indexGoogle::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index

Cloud Firestore indexes enable simple and complex queries against documents in a database. Corresponds to the JSON property index



457
458
459
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 457

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
# File 'generated/google/apis/firestore_v1beta2/classes.rb', line 464

def update!(**args)
  @change_type = args[:change_type] if args.key?(:change_type)
  @index = args[:index] if args.key?(:index)
end