class Google::Apis::TasksV1::Task

Attributes

completed[RW]

Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed. Corresponds to the JSON property `completed` @return [DateTime]

deleted[RW]

Flag indicating whether the task has been deleted. The default if False. Corresponds to the JSON property `deleted` @return [Boolean]

deleted?[RW]

Flag indicating whether the task has been deleted. The default if False. Corresponds to the JSON property `deleted` @return [Boolean]

due[RW]

Due date of the task (as a RFC 3339 timestamp). Optional. Corresponds to the JSON property `due` @return [DateTime]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

hidden[RW]

Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only. Corresponds to the JSON property `hidden` @return [Boolean]

hidden?[RW]

Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only. Corresponds to the JSON property `hidden` @return [Boolean]

id[RW]

Task identifier. Corresponds to the JSON property `id` @return [String]

kind[RW]

Type of the resource. This is always “tasks#task”. Corresponds to the JSON property `kind` @return [String]

notes[RW]

Notes describing the task. Optional. Corresponds to the JSON property `notes` @return [String]

parent[RW]

Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the “move” method to move the task under a different parent or to the top level. Corresponds to the JSON property `parent` @return [String]

position[RW]

String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the “move” method to move the task to another position. Corresponds to the JSON property `position` @return [String]

status[RW]

Status of the task. This is either “needsAction” or “completed”. Corresponds to the JSON property `status` @return [String]

title[RW]

Title of the task. Corresponds to the JSON property `title` @return [String]

updated[RW]

Last modification time of the task (as a RFC 3339 timestamp). Corresponds to the JSON property `updated` @return [DateTime]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/tasks_v1/classes.rb, line 121
def update!(**args)
  @completed = args[:completed] if args.key?(:completed)
  @deleted = args[:deleted] if args.key?(:deleted)
  @due = args[:due] if args.key?(:due)
  @etag = args[:etag] if args.key?(:etag)
  @hidden = args[:hidden] if args.key?(:hidden)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @links = args[:links] if args.key?(:links)
  @notes = args[:notes] if args.key?(:notes)
  @parent = args[:parent] if args.key?(:parent)
  @position = args[:position] if args.key?(:position)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
  @title = args[:title] if args.key?(:title)
  @updated = args[:updated] if args.key?(:updated)
end