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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TaskList

Returns a new instance of TaskList



206
207
208
# File 'generated/google/apis/tasks_v1/classes.rb', line 206

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/tasks_v1/classes.rb', line 178

def etag
  @etag
end

#idString

Task list identifier. Corresponds to the JSON property id

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/tasks_v1/classes.rb', line 183

def id
  @id
end

#kindString

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

Returns:

  • (String)


188
189
190
# File 'generated/google/apis/tasks_v1/classes.rb', line 188

def kind
  @kind
end

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

Returns:

  • (String)


194
195
196
# File 'generated/google/apis/tasks_v1/classes.rb', line 194

def self_link
  @self_link
end

#titleString

Title of the task list. Corresponds to the JSON property title

Returns:

  • (String)


199
200
201
# File 'generated/google/apis/tasks_v1/classes.rb', line 199

def title
  @title
end

#updatedDateTime

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

Returns:

  • (DateTime)


204
205
206
# File 'generated/google/apis/tasks_v1/classes.rb', line 204

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
216
217
218
# File 'generated/google/apis/tasks_v1/classes.rb', line 211

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