Class: Google::Apis::DataflowV1b3::ApproximateProgress

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

Overview

Obsolete in favor of ApproximateReportedProgress and ApproximateSplitRequest.

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

Returns a new instance of ApproximateProgress.



2238
2239
2240
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2238

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

Instance Attribute Details

#percent_completeFloat

Obsolete. Corresponds to the JSON property percentComplete

Returns:

  • (Float)


2231
2232
2233
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2231

def percent_complete
  @percent_complete
end

#positionGoogle::Apis::DataflowV1b3::Position

Position defines a position within a collection of data. The value can be either the end position, a key (used with ordered collections), a byte offset, or a record index. Corresponds to the JSON property position



2226
2227
2228
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2226

def position
  @position
end

#remaining_timeString

Obsolete. Corresponds to the JSON property remainingTime

Returns:

  • (String)


2236
2237
2238
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2236

def remaining_time
  @remaining_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2243
2244
2245
2246
2247
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2243

def update!(**args)
  @position = args[:position] if args.key?(:position)
  @percent_complete = args[:percent_complete] if args.key?(:percent_complete)
  @remaining_time = args[:remaining_time] if args.key?(:remaining_time)
end