Class: Google::Apis::BigtableadminV2::OperationProgress
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV2::OperationProgress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb
Overview
Encapsulates progress related information for a Cloud Bigtable long running operation.
Instance Attribute Summary collapse
-
#end_time ⇒ String
If set, the time at which this operation failed or was completed successfully.
-
#progress_percent ⇒ Fixnum
Percent completion of the operation.
-
#start_time ⇒ String
Time the request was received.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OperationProgress
constructor
A new instance of OperationProgress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OperationProgress
Returns a new instance of OperationProgress.
1639 1640 1641 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1639 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
If set, the time at which this operation failed or was completed successfully.
Corresponds to the JSON property endTime
1627 1628 1629 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1627 def end_time @end_time end |
#progress_percent ⇒ Fixnum
Percent completion of the operation. Values are between 0 and 100 inclusive.
Corresponds to the JSON property progressPercent
1632 1633 1634 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1632 def progress_percent @progress_percent end |
#start_time ⇒ String
Time the request was received.
Corresponds to the JSON property startTime
1637 1638 1639 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1637 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1644 1645 1646 1647 1648 |
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1644 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 |