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

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

Overview

Information about an index configuration change.

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) ⇒ GoogleFirestoreAdminV1IndexConfigDelta

Returns a new instance of GoogleFirestoreAdminV1IndexConfigDelta



1187
1188
1189
# File 'generated/google/apis/firestore_v1/classes.rb', line 1187

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)


1179
1180
1181
# File 'generated/google/apis/firestore_v1/classes.rb', line 1179

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



1185
1186
1187
# File 'generated/google/apis/firestore_v1/classes.rb', line 1185

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1192
1193
1194
1195
# File 'generated/google/apis/firestore_v1/classes.rb', line 1192

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