Class: Google::Apis::TasksV1::TaskList
- Inherits:
-
Object
- Object
- Google::Apis::TasksV1::TaskList
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tasks_v1/classes.rb,
lib/google/apis/tasks_v1/representations.rb,
lib/google/apis/tasks_v1/representations.rb
Instance Attribute Summary collapse
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
Task list identifier.
-
#kind ⇒ String
Output only.
-
#self_link ⇒ String
Output only.
-
#title ⇒ String
Title of the task list.
-
#updated ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TaskList
constructor
A new instance of TaskList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TaskList
Returns a new instance of TaskList.
318 319 320 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 318 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
290 291 292 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 290 def etag @etag end |
#id ⇒ String
Task list identifier.
Corresponds to the JSON property id
295 296 297 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 295 def id @id end |
#kind ⇒ String
Output only. Type of the resource. This is always "tasks#taskList".
Corresponds to the JSON property kind
300 301 302 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 300 def kind @kind end |
#self_link ⇒ String
Output only. URL pointing to this task list. Used to retrieve, update, or
delete this task list.
Corresponds to the JSON property selfLink
306 307 308 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 306 def self_link @self_link end |
#title ⇒ String
Title of the task list. Maximum length allowed: 1024 characters.
Corresponds to the JSON property title
311 312 313 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 311 def title @title end |
#updated ⇒ String
Output only. Last modification time of the task list (as a RFC 3339 timestamp).
Corresponds to the JSON property updated
316 317 318 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 316 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
323 324 325 326 327 328 329 330 |
# File 'lib/google/apis/tasks_v1/classes.rb', line 323 def update!(**args) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @self_link = args[:self_link] if args.key?(:self_link) @title = args[:title] if args.key?(:title) @updated = args[:updated] if args.key?(:updated) end |