Class: Google::Apis::CloudtasksV2beta2::AttemptStatus

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

Overview

The status of a task attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttemptStatus

Returns a new instance of AttemptStatus.



316
317
318
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 316

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

Instance Attribute Details

#dispatch_timeString

Output only. The time that this attempt was dispatched. dispatch_time will be truncated to the nearest microsecond. Corresponds to the JSON property dispatchTime

Returns:

  • (String)


292
293
294
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 292

def dispatch_time
  @dispatch_time
end

#response_statusGoogle::Apis::CloudtasksV2beta2::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property responseStatus



302
303
304
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 302

def response_status
  @response_status
end

#response_timeString

Output only. The time that this attempt response was received. response_time will be truncated to the nearest microsecond. Corresponds to the JSON property responseTime

Returns:

  • (String)


308
309
310
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 308

def response_time
  @response_time
end

#schedule_timeString

Output only. The time that this attempt was scheduled. schedule_time will be truncated to the nearest microsecond. Corresponds to the JSON property scheduleTime

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 314

def schedule_time
  @schedule_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time)
  @response_status = args[:response_status] if args.key?(:response_status)
  @response_time = args[:response_time] if args.key?(:response_time)
  @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
end