Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1IndexConfigDelta

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

Overview

Information about an index configuration change.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1IndexConfigDelta

Returns a new instance of GoogleFirestoreAdminV1IndexConfigDelta.



1415
1416
1417
# File 'lib/google/apis/firestore_v1/classes.rb', line 1415

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)


1407
1408
1409
# File 'lib/google/apis/firestore_v1/classes.rb', line 1407

def change_type
  @change_type
end

#indexGoogle::Apis::FirestoreV1::GoogleFirestoreAdminV1Index

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



1413
1414
1415
# File 'lib/google/apis/firestore_v1/classes.rb', line 1413

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1420
1421
1422
1423
# File 'lib/google/apis/firestore_v1/classes.rb', line 1420

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