Class: Google::Apis::CalendarV3::Colors
- Inherits:
-
Object
- Object
- Google::Apis::CalendarV3::Colors
- 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
-
#calendar ⇒ Hash<String,Google::Apis::CalendarV3::ColorDefinition>
A global palette of calendar colors, mapping from the color ID to its definition.
-
#event ⇒ Hash<String,Google::Apis::CalendarV3::ColorDefinition>
A global palette of event colors, mapping from the color ID to its definition.
-
#kind ⇒ String
Type of the resource ("calendar#colors").
-
#updated ⇒ DateTime
Last modification time of the color palette (as a RFC3339 timestamp).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Colors
constructor
A new instance of Colors.
-
#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) ⇒ Colors
Returns a new instance of Colors.
590 591 592 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 590 def initialize(**args) update!(**args) end |
Instance Attribute Details
#calendar ⇒ Hash<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
570 571 572 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 570 def calendar @calendar end |
#event ⇒ Hash<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
577 578 579 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 577 def event @event end |
#kind ⇒ String
Type of the resource ("calendar#colors").
Corresponds to the JSON property kind
582 583 584 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 582 def kind @kind end |
#updated ⇒ DateTime
Last modification time of the color palette (as a RFC3339 timestamp). Read-
only.
Corresponds to the JSON property updated
588 589 590 |
# File 'generated/google/apis/calendar_v3/classes.rb', line 588 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
595 596 597 598 599 600 |
# 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 |