Class: Google::Apis::TasksV1::Task
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::Task
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tasks_v1/classes.rb,
generated/google/apis/tasks_v1/representations.rb,
generated/google/apis/tasks_v1/representations.rb
Overview
LINT.IfChange
Defined Under Namespace
Classes: Link
Instance Attribute Summary collapse
-
#completed ⇒ String
Completion date of the task (as a RFC 3339 timestamp).
-
#deleted ⇒ Boolean
(also: #deleted?)
Flag indicating whether the task has been deleted.
-
#due ⇒ String
Due date of the task (as a RFC 3339 timestamp).
-
#etag ⇒ String
ETag of the resource.
-
#hidden ⇒ Boolean
(also: #hidden?)
Flag indicating whether the task is hidden.
-
#id ⇒ String
Task identifier.
-
#kind ⇒ String
Type of the resource.
-
#links ⇒ Array<Google::Apis::TasksV1::Task::Link>
Collection of links.
-
#notes ⇒ String
Notes describing the task.
-
#parent ⇒ String
Parent task identifier.
-
#position ⇒ String
String indicating the position of the task among its sibling tasks under the same parent task or at the top level.
-
#self_link ⇒ String
URL pointing to this task.
-
#status ⇒ String
Status of the task.
-
#title ⇒ String
Title of the task.
-
#updated ⇒ String
Last modification time of the task (as a RFC 3339 timestamp).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Task
constructor
A new instance of Task.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Task
Returns a new instance of Task.
119 120 121 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 119 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completed ⇒ String
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
33 34 35 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 33 def completed @completed end |
#deleted ⇒ Boolean Also known as: deleted?
Flag indicating whether the task has been deleted. The default is False.
Corresponds to the JSON property deleted
38 39 40 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 38 def deleted @deleted end |
#due ⇒ String
Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
records date information; the time portion of the timestamp is discarded when
setting the due date. It isn't possible to read or write the time that a task
is due via the API.
Corresponds to the JSON property due
47 48 49 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 47 def due @due end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
52 53 54 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 52 def etag @etag end |
#hidden ⇒ Boolean Also known as:
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
59 60 61 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 59 def hidden @hidden end |
#id ⇒ String
Task identifier.
Corresponds to the JSON property id
65 66 67 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 65 def id @id end |
#kind ⇒ String
Type of the resource. This is always "tasks#task".
Corresponds to the JSON property kind
70 71 72 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 70 def kind @kind end |
#links ⇒ Array<Google::Apis::TasksV1::Task::Link>
Collection of links. This collection is read-only.
Corresponds to the JSON property links
75 76 77 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 75 def links @links end |
#notes ⇒ String
Notes describing the task. Optional.
Corresponds to the JSON property notes
80 81 82 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 80 def notes @notes end |
#parent ⇒ String
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
87 88 89 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 87 def parent @parent end |
#position ⇒ String
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
97 98 99 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 97 def position @position end |
#self_link ⇒ String
URL pointing to this task. Used to retrieve, update, or delete this task.
Corresponds to the JSON property selfLink
102 103 104 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 102 def self_link @self_link end |
#status ⇒ String
Status of the task. This is either "needsAction" or "completed".
Corresponds to the JSON property status
107 108 109 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 107 def status @status end |
#title ⇒ String
Title of the task.
Corresponds to the JSON property title
112 113 114 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 112 def title @title end |
#updated ⇒ String
Last modification time of the task (as a RFC 3339 timestamp).
Corresponds to the JSON property updated
117 118 119 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 117 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'generated/google/apis/tasks_v1/classes.rb', line 124 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 |