Class: Google::Apis::PubsubliteV1::OperationMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::OperationMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb
Overview
Metadata for long running operations.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time the operation was created.
-
#end_time ⇒ String
The time the operation finished running.
-
#target ⇒ String
Resource path for the target of the operation.
-
#verb ⇒ String
Name of the verb executed by the operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OperationMetadata
constructor
A new instance of OperationMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OperationMetadata
Returns a new instance of OperationMetadata.
644 645 646 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time the operation was created.
Corresponds to the JSON property createTime
624 625 626 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 624 def create_time @create_time end |
#end_time ⇒ String
The time the operation finished running. Not set if the operation has not
completed.
Corresponds to the JSON property endTime
630 631 632 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 630 def end_time @end_time end |
#target ⇒ String
Resource path for the target of the operation. For example, targets of seeks
are subscription resources, structured like: projects/project_number/
locations/location/subscriptions/subscription_id
Corresponds to the JSON property target
637 638 639 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 637 def target @target end |
#verb ⇒ String
Name of the verb executed by the operation.
Corresponds to the JSON property verb
642 643 644 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 642 def verb @verb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
649 650 651 652 653 654 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 649 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @end_time = args[:end_time] if args.key?(:end_time) @target = args[:target] if args.key?(:target) @verb = args[:verb] if args.key?(:verb) end |