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.
635 636 637 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 635 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time the operation was created.
Corresponds to the JSON property createTime
615 616 617 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 615 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
621 622 623 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 621 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
628 629 630 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 628 def target @target end |
#verb ⇒ String
Name of the verb executed by the operation.
Corresponds to the JSON property verb
633 634 635 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 633 def verb @verb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
640 641 642 643 644 645 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 640 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 |