Class: Google::Apis::BigtableadminV2::OperationProgress

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

Overview

Encapsulates progress related information for a Cloud Bigtable long running operation.

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

Returns a new instance of OperationProgress.


1507
1508
1509
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1507

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

Instance Attribute Details

#end_timeString

If set, the time at which this operation failed or was completed successfully. Corresponds to the JSON property endTime

Returns:

  • (String)

1494
1495
1496
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1494

def end_time
  @end_time
end

#progress_percentFixnum

Percent completion of the operation. Values are between 0 and 100 inclusive. Corresponds to the JSON property progressPercent

Returns:

  • (Fixnum)

1500
1501
1502
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1500

def progress_percent
  @progress_percent
end

#start_timeString

Time the request was received. Corresponds to the JSON property startTime

Returns:

  • (String)

1505
1506
1507
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1505

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1512
1513
1514
1515
1516
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 1512

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @progress_percent = args[:progress_percent] if args.key?(:progress_percent)
  @start_time = args[:start_time] if args.key?(:start_time)
end