Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Progress

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

Overview

Measures the progress of a particular metric.

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

Returns a new instance of GoogleFirestoreAdminV1beta1Progress



1099
1100
1101
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1099

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

Instance Attribute Details

#work_completedFixnum

An estimate of how much work has been completed. Note that this may be greater than work_estimated. Corresponds to the JSON property workCompleted

Returns:

  • (Fixnum)


1091
1092
1093
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1091

def work_completed
  @work_completed
end

#work_estimatedFixnum

An estimate of how much work needs to be performed. Zero if the work estimate is unavailable. May change as work progresses. Corresponds to the JSON property workEstimated

Returns:

  • (Fixnum)


1097
1098
1099
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1097

def work_estimated
  @work_estimated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1104
1105
1106
1107
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1104

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