Class: Google::Apis::AppengineV1beta4::OperationMetadata

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

Overview

Metadata for the given google.longrunning.Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata.



1523
1524
1525
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1523

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

Instance Attribute Details

#end_timeString

Timestamp that this operation was completed. (Not present if the operation is still in progress.) @OutputOnly Corresponds to the JSON property endTime

Returns:

  • (String)


1504
1505
1506
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1504

def end_time
  @end_time
end

#insert_timeString

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

Returns:

  • (String)


1498
1499
1500
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1498

def insert_time
  @insert_time
end

#method_propString

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

Returns:

  • (String)


1521
1522
1523
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1521

def method_prop
  @method_prop
end

#operation_typeString

The type of the operation (deprecated, use method field instead). Example: " create_version". @OutputOnly Corresponds to the JSON property operationType

Returns:

  • (String)


1493
1494
1495
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1493

def operation_type
  @operation_type
end

#targetString

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

Returns:

  • (String)


1515
1516
1517
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1515

def target
  @target
end

#userString

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

Returns:

  • (String)


1509
1510
1511
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1509

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
1532
1533
1534
1535
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1528

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