Class: Google::Apis::TasksV1::TaskList

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskList

Returns a new instance of TaskList.



316
317
318
# File 'lib/google/apis/tasks_v1/classes.rb', line 316

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


288
289
290
# File 'lib/google/apis/tasks_v1/classes.rb', line 288

def etag
  @etag
end

#idString

Task list identifier. Corresponds to the JSON property id

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/tasks_v1/classes.rb', line 293

def id
  @id
end

#kindString

Output only. Type of the resource. This is always "tasks#taskList". Corresponds to the JSON property kind

Returns:

  • (String)


298
299
300
# File 'lib/google/apis/tasks_v1/classes.rb', line 298

def kind
  @kind
end

Output only. URL pointing to this task list. Used to retrieve, update, or delete this task list. Corresponds to the JSON property selfLink

Returns:

  • (String)


304
305
306
# File 'lib/google/apis/tasks_v1/classes.rb', line 304

def self_link
  @self_link
end

#titleString

Title of the task list. Maximum length allowed: 1024 characters. Corresponds to the JSON property title

Returns:

  • (String)


309
310
311
# File 'lib/google/apis/tasks_v1/classes.rb', line 309

def title
  @title
end

#updatedString

Output only. Last modification time of the task list (as a RFC 3339 timestamp). Corresponds to the JSON property updated

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/tasks_v1/classes.rb', line 314

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



321
322
323
324
325
326
327
328
# File 'lib/google/apis/tasks_v1/classes.rb', line 321

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