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.



1979
1980
1981
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1979

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)


1961
1962
1963
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1961

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)


1967
1968
1969
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1967

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



1972
1973
1974
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1972

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



1977
1978
1979
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1977

def last_attempt_status
  @last_attempt_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1984
1985
1986
1987
1988
1989
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 1984

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