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. 
- 
  
    
      #conference_properties  ⇒ Google::Apis::CalendarV3::ConferenceProperties 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Conferencing properties for this calendar, for example what types of conferences are allowed. 
- 
  
    
      #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
| 390 391 392 | # File 'generated/google/apis/calendar_v3/classes.rb', line 390 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
| 280 281 282 | # File 'generated/google/apis/calendar_v3/classes.rb', line 280 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
| 288 289 290 | # File 'generated/google/apis/calendar_v3/classes.rb', line 288 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
| 296 297 298 | # File 'generated/google/apis/calendar_v3/classes.rb', line 296 def color_id @color_id end | 
#conference_properties ⇒ Google::Apis::CalendarV3::ConferenceProperties
Conferencing properties for this calendar, for example what types of
conferences are allowed.
Corresponds to the JSON property conferenceProperties
| 302 303 304 | # File 'generated/google/apis/calendar_v3/classes.rb', line 302 def conference_properties @conference_properties 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
| 307 308 309 | # File 'generated/google/apis/calendar_v3/classes.rb', line 307 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
| 313 314 315 | # File 'generated/google/apis/calendar_v3/classes.rb', line 313 def deleted @deleted end | 
#description ⇒ String
Description of the calendar. Optional. Read-only.
Corresponds to the JSON property description
| 319 320 321 | # File 'generated/google/apis/calendar_v3/classes.rb', line 319 def description @description end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 324 325 326 | # File 'generated/google/apis/calendar_v3/classes.rb', line 324 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
| 332 333 334 | # File 'generated/google/apis/calendar_v3/classes.rb', line 332 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
| 338 339 340 | # File 'generated/google/apis/calendar_v3/classes.rb', line 338 def hidden @hidden end | 
#id ⇒ String
Identifier of the calendar.
Corresponds to the JSON property id
| 344 345 346 | # File 'generated/google/apis/calendar_v3/classes.rb', line 344 def id @id end | 
#kind ⇒ String
Type of the resource ("calendar#calendarListEntry").
Corresponds to the JSON property kind
| 349 350 351 | # File 'generated/google/apis/calendar_v3/classes.rb', line 349 def kind @kind end | 
#location ⇒ String
Geographic location of the calendar as free-form text. Optional. Read-only.
Corresponds to the JSON property location
| 354 355 356 | # File 'generated/google/apis/calendar_v3/classes.rb', line 354 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
| 359 360 361 | # File 'generated/google/apis/calendar_v3/classes.rb', line 359 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
| 365 366 367 | # File 'generated/google/apis/calendar_v3/classes.rb', line 365 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
| 372 373 374 | # File 'generated/google/apis/calendar_v3/classes.rb', line 372 def selected @selected end | 
#summary ⇒ String
Title of the calendar. Read-only.
Corresponds to the JSON property summary
| 378 379 380 | # File 'generated/google/apis/calendar_v3/classes.rb', line 378 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
| 383 384 385 | # File 'generated/google/apis/calendar_v3/classes.rb', line 383 def summary_override @summary_override end | 
#time_zone ⇒ String
The time zone of the calendar. Optional. Read-only.
Corresponds to the JSON property timeZone
| 388 389 390 | # File 'generated/google/apis/calendar_v3/classes.rb', line 388 def time_zone @time_zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | # File 'generated/google/apis/calendar_v3/classes.rb', line 395 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) @conference_properties = args[:conference_properties] if args.key?(:conference_properties) @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 |