Class: Google::Apis::CalendarV3::CalendarListEntry
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::CalendarListEntry
- Defined in:
- generated/google/apis/calendar_v3/classes.rb,
generated/google/apis/calendar_v3/representations.rb,
generated/google/apis/calendar_v3/representations.rb
Defined Under Namespace
Classes: NotificationSettings
Instance Attribute Summary collapse
-
#access_role ⇒ String
The effective access role that the authenticated user has on the calendar.
-
#background_color ⇒ String
The main color of the calendar in the hexadecimal format "#0088aa".
-
#color_id ⇒ String
The color of the calendar.
-
#default_reminders ⇒ Array<Google::Apis::CalendarV3::EventReminder>
The default reminders that the authenticated user has for this calendar.
-
#deleted ⇒ Boolean
(also: #deleted?)
Whether this calendar list entry has been deleted from the calendar list.
-
#description ⇒ String
Description of the calendar.
-
#etag ⇒ String
ETag of the resource.
-
#foreground_color ⇒ String
The foreground color of the calendar in the hexadecimal format "#ffffff".
-
#hidden ⇒ Boolean
(also: #hidden?)
Whether the calendar has been hidden from the list.
-
#id ⇒ String
Identifier of the calendar.
-
#kind ⇒ String
Type of the resource ("calendar#calendarListEntry").
-
#location ⇒ String
Geographic location of the calendar as free-form text.
-
#notification_settings ⇒ Google::Apis::CalendarV3::CalendarListEntry::NotificationSettings
The notifications that the authenticated user is receiving for this calendar.
-
#primary ⇒ Boolean
(also: #primary?)
Whether the calendar is the primary calendar of the authenticated user.
-
#selected ⇒ Boolean
(also: #selected?)
Whether the calendar content shows up in the calendar UI.
-
#summary ⇒ String
Title of the calendar.
-
#summary_override ⇒ String
The summary that the authenticated user has set for this calendar.
-
#time_zone ⇒ String
The time zone of the calendar.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CalendarListEntry
constructor
A new instance of CalendarListEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CalendarListEntry
Returns a new instance of CalendarListEntry.
377 378 379 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_role ⇒ String
The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- "freeBusyReader" - Provides read access to free/busy information.
- "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- "owner" - Provides ownership of the calendar. This role has all of the
permissions of the writer role with the additional ability to see and
manipulate ACLs.
Corresponds to the JSON property
accessRole
273 274 275 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 273 def access_role @access_role end |
#background_color ⇒ String
The main color of the calendar in the hexadecimal format "#0088aa". This
property supersedes the index-based colorId property. To set or change this
property, you need to specify colorRgbFormat=true in the parameters of the
insert, update and patch methods. Optional.
Corresponds to the JSON property backgroundColor
281 282 283 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 281 def background_color @background_color end |
#color_id ⇒ String
The color of the calendar. This is an ID referring to an entry in the calendar
section of the colors definition (see the colors endpoint). This property is
superseded by the backgroundColor and foregroundColor properties and can be
ignored when using these properties. Optional.
Corresponds to the JSON property colorId
289 290 291 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 289 def color_id @color_id end |
#default_reminders ⇒ Array<Google::Apis::CalendarV3::EventReminder>
The default reminders that the authenticated user has for this calendar.
Corresponds to the JSON property defaultReminders
294 295 296 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 294 def default_reminders @default_reminders end |
#deleted ⇒ Boolean Also known as: deleted?
Whether this calendar list entry has been deleted from the calendar list. Read-
only. Optional. The default is False.
Corresponds to the JSON property deleted
300 301 302 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 300 def deleted @deleted end |
#description ⇒ String
Description of the calendar. Optional. Read-only.
Corresponds to the JSON property description
306 307 308 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 306 def description @description end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
311 312 313 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 311 def etag @etag end |
#foreground_color ⇒ String
The foreground color of the calendar in the hexadecimal format "#ffffff". This
property supersedes the index-based colorId property. To set or change this
property, you need to specify colorRgbFormat=true in the parameters of the
insert, update and patch methods. Optional.
Corresponds to the JSON property foregroundColor
319 320 321 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 319 def foreground_color @foreground_color end |
#hidden ⇒ Boolean Also known as:
Whether the calendar has been hidden from the list. Optional. The default is
False.
Corresponds to the JSON property hidden
325 326 327 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 325 def hidden @hidden end |
#id ⇒ String
Identifier of the calendar.
Corresponds to the JSON property id
331 332 333 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 331 def id @id end |
#kind ⇒ String
Type of the resource ("calendar#calendarListEntry").
Corresponds to the JSON property kind
336 337 338 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 336 def kind @kind end |
#location ⇒ String
Geographic location of the calendar as free-form text. Optional. Read-only.
Corresponds to the JSON property location
341 342 343 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 341 def location @location end |
#notification_settings ⇒ Google::Apis::CalendarV3::CalendarListEntry::NotificationSettings
The notifications that the authenticated user is receiving for this calendar.
Corresponds to the JSON property notificationSettings
346 347 348 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 346 def notification_settings @notification_settings end |
#primary ⇒ Boolean Also known as: primary?
Whether the calendar is the primary calendar of the authenticated user. Read-
only. Optional. The default is False.
Corresponds to the JSON property primary
352 353 354 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 352 def primary @primary end |
#selected ⇒ Boolean Also known as: selected?
Whether the calendar content shows up in the calendar UI. Optional. The
default is False.
Corresponds to the JSON property selected
359 360 361 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 359 def selected @selected end |
#summary ⇒ String
Title of the calendar. Read-only.
Corresponds to the JSON property summary
365 366 367 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 365 def summary @summary end |
#summary_override ⇒ String
The summary that the authenticated user has set for this calendar. Optional.
Corresponds to the JSON property summaryOverride
370 371 372 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 370 def summary_override @summary_override end |
#time_zone ⇒ String
The time zone of the calendar. Optional. Read-only.
Corresponds to the JSON property timeZone
375 376 377 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 375 def time_zone @time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 382 def update!(**args) @access_role = args[:access_role] if args.key?(:access_role) @background_color = args[:background_color] if args.key?(:background_color) @color_id = args[:color_id] if args.key?(:color_id) @default_reminders = args[:default_reminders] if args.key?(:default_reminders) @deleted = args[:deleted] if args.key?(:deleted) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @foreground_color = args[:foreground_color] if args.key?(:foreground_color) @hidden = args[:hidden] if args.key?(:hidden) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @location = args[:location] if args.key?(:location) @notification_settings = args[:notification_settings] if args.key?(:notification_settings) @primary = args[:primary] if args.key?(:primary) @selected = args[:selected] if args.key?(:selected) @summary = args[:summary] if args.key?(:summary) @summary_override = args[:summary_override] if args.key?(:summary_override) @time_zone = args[:time_zone] if args.key?(:time_zone) end |