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.



635
636
637
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 635

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)


615
616
617
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 615

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)


621
622
623
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 621

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)


628
629
630
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 628

def target
  @target
end

#verbString

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

Returns:

  • (String)


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