Class: Google::Apis::CloudtasksV2beta2::TaskStatus

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

Status of the task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskStatus

Returns a new instance of TaskStatus.



2039
2040
2041
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2039

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

Instance Attribute Details

#attempt_dispatch_countFixnum

Output only. The number of attempts dispatched. This count includes attempts which have been dispatched but haven't received a response. Corresponds to the JSON property attemptDispatchCount

Returns:

  • (Fixnum)


2021
2022
2023
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2021

def attempt_dispatch_count
  @attempt_dispatch_count
end

#attempt_response_countFixnum

Output only. The number of attempts which have received a response. This field is not calculated for pull tasks. Corresponds to the JSON property attemptResponseCount

Returns:

  • (Fixnum)


2027
2028
2029
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2027

def attempt_response_count
  @attempt_response_count
end

#first_attempt_statusGoogle::Apis::CloudtasksV2beta2::AttemptStatus

The status of a task attempt. Corresponds to the JSON property firstAttemptStatus



2032
2033
2034
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2032

def first_attempt_status
  @first_attempt_status
end

#last_attempt_statusGoogle::Apis::CloudtasksV2beta2::AttemptStatus

The status of a task attempt. Corresponds to the JSON property lastAttemptStatus



2037
2038
2039
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2037

def last_attempt_status
  @last_attempt_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2044
2045
2046
2047
2048
2049
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 2044

def update!(**args)
  @attempt_dispatch_count = args[:attempt_dispatch_count] if args.key?(:attempt_dispatch_count)
  @attempt_response_count = args[:attempt_response_count] if args.key?(:attempt_response_count)
  @first_attempt_status = args[:first_attempt_status] if args.key?(:first_attempt_status)
  @last_attempt_status = args[:last_attempt_status] if args.key?(:last_attempt_status)
end