class Google::Apis::CalendarV3::Colors

Attributes

calendar[RW]

A global palette of calendar colors, mapping from the color ID to its definition. A calendarListEntry resource refers to one of these color IDs in its color field. Read-only. Corresponds to the JSON property `calendar` @return [Hash<String,Google::Apis::CalendarV3::ColorDefinition>]

event[RW]

A global palette of event colors, mapping from the color ID to its definition. An event resource may refer to one of these color IDs in its color field. Read- only. Corresponds to the JSON property `event` @return [Hash<String,Google::Apis::CalendarV3::ColorDefinition>]

kind[RW]

Type of the resource (“calendar#colors”). Corresponds to the JSON property `kind` @return [String]

updated[RW]

Last modification time of the color palette (as a RFC3339 timestamp). Read- only. Corresponds to the JSON property `updated` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/calendar_v3/classes.rb, line 590
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/calendar_v3/classes.rb, line 595
def update!(**args)
  @calendar = args[:calendar] if args.key?(:calendar)
  @event = args[:event] if args.key?(:event)
  @kind = args[:kind] if args.key?(:kind)
  @updated = args[:updated] if args.key?(:updated)
end