Class: Google::Apis::CalendarV3::CalendarList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/calendar_v3/classes.rb,
lib/google/apis/calendar_v3/representations.rb,
lib/google/apis/calendar_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CalendarList

Returns a new instance of CalendarList.



250
251
252
# File 'lib/google/apis/calendar_v3/classes.rb', line 250

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

Instance Attribute Details

#etagString

ETag of the collection. Corresponds to the JSON property etag

Returns:

  • (String)


225
226
227
# File 'lib/google/apis/calendar_v3/classes.rb', line 225

def etag
  @etag
end

#itemsArray<Google::Apis::CalendarV3::CalendarListEntry>

Calendars that are present on the user's calendar list. Corresponds to the JSON property items



230
231
232
# File 'lib/google/apis/calendar_v3/classes.rb', line 230

def items
  @items
end

#kindString

Type of the collection ("calendar#calendarList"). Corresponds to the JSON property kind

Returns:

  • (String)


235
236
237
# File 'lib/google/apis/calendar_v3/classes.rb', line 235

def kind
  @kind
end

#next_page_tokenString

Token used to access the next page of this result. Omitted if no further results are available, in which case nextSyncToken is provided. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/calendar_v3/classes.rb', line 241

def next_page_token
  @next_page_token
end

#next_sync_tokenString

Token used at a later point in time to retrieve only the entries that have changed since this result was returned. Omitted if further results are available, in which case nextPageToken is provided. Corresponds to the JSON property nextSyncToken

Returns:

  • (String)


248
249
250
# File 'lib/google/apis/calendar_v3/classes.rb', line 248

def next_sync_token
  @next_sync_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



255
256
257
258
259
260
261
# File 'lib/google/apis/calendar_v3/classes.rb', line 255

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token)
end