class Google::Apis::CloudtasksV2::Attempt

The status of a task attempt.

Attributes

dispatch_time[RW]

Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond. Corresponds to the JSON property `dispatchTime` @return [String]

response_status[RW]

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](github.com/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](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `responseStatus` @return [Google::Apis::CloudtasksV2::Status]

response_time[RW]

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` @return [String]

schedule_time[RW]

Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond. Corresponds to the JSON property `scheduleTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudtasks_v2/classes.rb, line 248
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudtasks_v2/classes.rb, line 253
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