Class: Google::Apis::PubsubliteV1::OperationMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata.



589
590
591
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 589

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

Instance Attribute Details

#create_timeString

The time the operation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 569

def create_time
  @create_time
end

#end_timeString

The time the operation finished running. Not set if the operation has not completed. Corresponds to the JSON property endTime

Returns:

  • (String)


575
576
577
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 575

def end_time
  @end_time
end

#targetString

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

Returns:

  • (String)


582
583
584
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 582

def target
  @target
end

#verbString

Name of the verb executed by the operation. Corresponds to the JSON property verb

Returns:

  • (String)


587
588
589
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 587

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



594
595
596
597
598
599
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 594

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