Class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1Progress

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

Overview

Measures the progress of a particular metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDatastoreAdminV1beta1Progress

Returns a new instance of GoogleDatastoreAdminV1beta1Progress.



1223
1224
1225
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1223

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

Instance Attribute Details

#work_completedFixnum

The amount of work that has been completed. Note that this may be greater than work_estimated. Corresponds to the JSON property workCompleted

Returns:

  • (Fixnum)


1215
1216
1217
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1215

def work_completed
  @work_completed
end

#work_estimatedFixnum

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

Returns:

  • (Fixnum)


1221
1222
1223
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1221

def work_estimated
  @work_estimated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1228
1229
1230
1231
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 1228

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