Class: Google::Apis::CalendarV3::Colors

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Colors

Returns a new instance of Colors



589
590
591
# File 'generated/google/apis/calendar_v3/classes.rb', line 589

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

Instance Attribute Details

#calendarHash<String,Google::Apis::CalendarV3::ColorDefinition>

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



569
570
571
# File 'generated/google/apis/calendar_v3/classes.rb', line 569

def calendar
  @calendar
end

#eventHash<String,Google::Apis::CalendarV3::ColorDefinition>

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



576
577
578
# File 'generated/google/apis/calendar_v3/classes.rb', line 576

def event
  @event
end

#kindString

Type of the resource ("calendar#colors"). Corresponds to the JSON property kind

Returns:

  • (String)


581
582
583
# File 'generated/google/apis/calendar_v3/classes.rb', line 581

def kind
  @kind
end

#updatedDateTime

Last modification time of the color palette (as a RFC3339 timestamp). Read- only. Corresponds to the JSON property updated

Returns:

  • (DateTime)


587
588
589
# File 'generated/google/apis/calendar_v3/classes.rb', line 587

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



594
595
596
597
598
599
# File 'generated/google/apis/calendar_v3/classes.rb', line 594

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