Class: Google::Apis::BigtableadminV2::TableProgress

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

Progress info for copying a table's data to the new cluster.

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

Returns a new instance of TableProgress.


2066
2067
2068
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 2066

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

Instance Attribute Details

#estimated_copied_bytesFixnum

Estimate of the number of bytes copied so far for this table. This will eventually reach 'estimated_size_bytes' unless the table copy is CANCELLED. Corresponds to the JSON property estimatedCopiedBytes

Returns:

  • (Fixnum)

2054
2055
2056
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 2054

def estimated_copied_bytes
  @estimated_copied_bytes
end

#estimated_size_bytesFixnum

Estimate of the size of the table to be copied. Corresponds to the JSON property estimatedSizeBytes

Returns:

  • (Fixnum)

2059
2060
2061
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 2059

def estimated_size_bytes
  @estimated_size_bytes
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)

2064
2065
2066
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 2064

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2071
2072
2073
2074
2075
# File 'generated/google/apis/bigtableadmin_v2/classes.rb', line 2071

def update!(**args)
  @estimated_copied_bytes = args[:estimated_copied_bytes] if args.key?(:estimated_copied_bytes)
  @estimated_size_bytes = args[:estimated_size_bytes] if args.key?(:estimated_size_bytes)
  @state = args[:state] if args.key?(:state)
end