Class: Google::Apis::VpcaccessV1::OperationMetadata

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

Overview

Metadata for google.longrunning.Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OperationMetadata

Returns a new instance of OperationMetadata.



315
316
317
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 315

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

Instance Attribute Details

#create_timeString

Output only. Time when the operation was created. Corresponds to the JSON property createTime

Returns:

  • (String)


296
297
298
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 296

def create_time
  @create_time
end

#end_timeString

Output only. Time when the operation completed. Corresponds to the JSON property endTime

Returns:

  • (String)


301
302
303
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 301

def end_time
  @end_time
end

#method_propString

Output only. Method that initiated the operation e.g. google.cloud.vpcaccess. v1.Connectors.CreateConnector. Corresponds to the JSON property method

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 307

def method_prop
  @method_prop
end

#targetString

Output only. Name of the resource that this operation is acting on e.g. projects/my-project/locations/us-central1/connectors/v1. Corresponds to the JSON property target

Returns:

  • (String)


313
314
315
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 313

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



320
321
322
323
324
325
# File 'lib/google/apis/vpcaccess_v1/classes.rb', line 320

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