Class: Google::Apis::AppengineV1alpha::OperationMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1alpha/classes.rb,
generated/google/apis/appengine_v1alpha/representations.rb,
generated/google/apis/appengine_v1alpha/representations.rb

Overview

Metadata for the given google.longrunning.Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata



644
645
646
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 644

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

Instance Attribute Details

#end_timeString

Timestamp that this operation completed.@OutputOnly Corresponds to the JSON property endTime

Returns:

  • (String)


614
615
616
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 614

def end_time
  @end_time
end

#insert_timeString

Timestamp that this operation was created.@OutputOnly Corresponds to the JSON property insertTime

Returns:

  • (String)


619
620
621
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 619

def insert_time
  @insert_time
end

#method_propString

API method that initiated this operation. Example: google.appengine.v1beta4. Version.CreateVersion.@OutputOnly Corresponds to the JSON property method

Returns:

  • (String)


625
626
627
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 625

def method_prop
  @method_prop
end

#operation_typeString

Type of this operation. Deprecated, use method field instead. Example: " create_version".@OutputOnly Corresponds to the JSON property operationType

Returns:

  • (String)


631
632
633
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 631

def operation_type
  @operation_type
end

#targetString

Name of the resource that this operation is acting on. Example: apps/myapp/ modules/default.@OutputOnly Corresponds to the JSON property target

Returns:

  • (String)


637
638
639
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 637

def target
  @target
end

#userString

User who requested this operation.@OutputOnly Corresponds to the JSON property user

Returns:

  • (String)


642
643
644
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 642

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



649
650
651
652
653
654
655
656
# File 'generated/google/apis/appengine_v1alpha/classes.rb', line 649

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @target = args[:target] if args.key?(:target)
  @user = args[:user] if args.key?(:user)
end