Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexOperationMetadata

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

Metadata for index operations. This metadata populates the metadata field of google.longrunning.Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1beta1IndexOperationMetadata

Returns a new instance of GoogleFirestoreAdminV1beta1IndexOperationMetadata.



1308
1309
1310
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1308

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

Instance Attribute Details

#cancelledBoolean Also known as: cancelled?

True if the [google.longrunning.Operation] was cancelled. If the cancellation is in progress, cancelled will be true but google.longrunning.Operation.done will be false. Corresponds to the JSON property cancelled

Returns:

  • (Boolean)


1278
1279
1280
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1278

def cancelled
  @cancelled
end

#document_progressGoogle::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress

Measures the progress of a particular metric. Corresponds to the JSON property documentProgress



1284
1285
1286
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1284

def document_progress
  @document_progress
end

#end_timeString

The time the operation ended, either successfully or otherwise. Unset if the operation is still active. Corresponds to the JSON property endTime

Returns:

  • (String)


1290
1291
1292
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1290

def end_time
  @end_time
end

#indexString

The index resource that this operation is acting on. For example: projects/ project_id/databases/database_id/indexes/index_id` Corresponds to the JSON propertyindex`

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1296

def index
  @index
end

#operation_typeString

The type of index operation. Corresponds to the JSON property operationType

Returns:

  • (String)


1301
1302
1303
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1301

def operation_type
  @operation_type
end

#start_timeString

The time that work began on the operation. Corresponds to the JSON property startTime

Returns:

  • (String)


1306
1307
1308
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1306

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1313
1314
1315
1316
1317
1318
1319
1320
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1313

def update!(**args)
  @cancelled = args[:cancelled] if args.key?(:cancelled)
  @document_progress = args[:document_progress] if args.key?(:document_progress)
  @end_time = args[:end_time] if args.key?(:end_time)
  @index = args[:index] if args.key?(:index)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @start_time = args[:start_time] if args.key?(:start_time)
end