| 1 | package Net::Google::CalendarV3::Calendar; | ||
| 2 | $Net::Google::CalendarV3::Calendar::VERSION = '0.16'; | ||
| 3 | use Moose; | ||
| 4 | use Kavorka; | ||
| 5 | use Try::Tiny; | ||
| 6 | use Types::Standard qw( Str Int ArrayRef HashRef ); | ||
| 7 | use Net::Google::CalendarV3::Types qw( CBool DefaultReminder ListOfNotificationSettings); | ||
| 8 | use Net::Google::CalendarV3::DefaultReminder; | ||
| 9 | use Net::Google::CalendarV3::NotificationSettings; | ||
| 10 | |||
| 11 | has [ qw( kind etag id accessRole deleted description location primary summary timeZone ) ], is => 'ro'; | ||
| 12 | has [ qw( summaryOverride | ||
| 13 | colorId backgroundColor foregroundColor | ||
| 14 | hidden selected | ||
| 15 | defaultReminders notificationSettings | ||
| 16 | )], is => 'rw'; | ||
| 17 | |||
| 18 | has '+kind' => default => 'calendar#calendarListEntry'; | ||
| 19 | has '+defaultReminders' => isa => ArrayRef[DefaultReminder], coerce => 1; | ||
| 20 | has '+notificationSettings' => isa => ListOfNotificationSettings, coerce => 1; | ||
| 21 | |||
| 22 | has [qw( +deleted +primary +hidden +selected )], isa => CBool, coerce => 1; | ||
| 23 | |||
| 24 | =pod | ||
| 25 | { | ||
| 26 | "kind": "calendar#calendarListEntry", | ||
| 27 | "etag": etag, | ||
| 28 | "id": string, | ||
| 29 | "summary": string, | ||
| 30 | "description": string, | ||
| 31 | "location": string, | ||
| 32 | "timeZone": string, | ||
| 33 | "summaryOverride": string, | ||
| 34 | "colorId": string, | ||
| 35 | "backgroundColor": string, | ||
| 36 | "foregroundColor": string, | ||
| 37 | "hidden": boolean, | ||
| 38 | "selected": boolean, | ||
| 39 | "accessRole": string, | ||
| 40 | "defaultReminders": [ | ||
| 41 | { | ||
| 42 | "method": string, | ||
| 43 | "minutes": integer | ||
| 44 | } | ||
| 45 | ], | ||
| 46 | "notificationSettings": { | ||
| 47 | "notifications": [ | ||
| 48 | { | ||
| 49 | "type": string, | ||
| 50 | "method": string | ||
| 51 | } | ||
| 52 | ] | ||
| 53 | }, | ||
| 54 | "primary": boolean, | ||
| 55 | "deleted": boolean | ||
| 56 | } | ||
| 57 | =cut | ||
| 58 | |||
| 59 | 1; | ||
| 60 |