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

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

Overview

Status of the task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TaskStatus

Returns a new instance of TaskStatus



1710
1711
1712
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1710

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

Instance Attribute Details

#attempt_dispatch_countFixnum

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

Returns:

  • (Fixnum)


1692
1693
1694
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1692

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)


1698
1699
1700
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1698

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



1703
1704
1705
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1703

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



1708
1709
1710
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1708

def last_attempt_status
  @last_attempt_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1715
1716
1717
1718
1719
1720
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 1715

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