InsertEvent
InsertEvent
yaml
type: "io.kestra.plugin.googleworkspace.calendar.InsertEvent"
Insert event into Google Calendar.
Examples
yaml
id: googleworkspace_calendar_insert_event
namespace: company.team
tasks:
- id: insert_event
type: io.kestra.plugin.googleworkspace.calendar.InsertEvent
serviceAccount: "{{ secret('GCP_SERVICE_ACCOUNT_JSON') }}"
calendarId: primary
summary: Sample Event
description: This is a sample event from Kestra
location: Thane, Mumbai
startTime:
dateTime: "2024-11-28T09:00:00+05:30"
timeZone: "Asia/Calcutta"
endTime:
dateTime: "2024-11-28T10:00:00+05:30"
timeZone: "Asia/Calcutta"
creator:
email: [email protected]
Properties
calendarId
- Type: string
- Dynamic: ✔️
- Required: ✔️
Calendar ID.
endTime
- Type: AbstractInsertEvent-CalendarTime
- Dynamic: ❌
- Required: ✔️
End time of the event.
startTime
- Type: AbstractInsertEvent-CalendarTime
- Dynamic: ❌
- Required: ✔️
Start time of the event.
summary
- Type: string
- Dynamic: ✔️
- Required: ✔️
Title of the event.
attendees
- Type: array
- SubType: AbstractInsertEvent-Attendee
- Dynamic: ❌
- Required: ❌
List of attendees in the event.
creator
- Type: AbstractInsertEvent-Attendee
- Dynamic: ❌
- Required: ❌
Creator of the event.
description
- Type: string
- Dynamic: ✔️
- Required: ❌
Description of the event.
location
- Type: string
- Dynamic: ✔️
- Required: ❌
Geographic location of the event as free-form text.
readTimeout
- Type: integer
- Dynamic: ✔️
- Required: ❌
- Default:
120
The read timeout for the request (in seconds)
scopes
- Type: array
- SubType: string
- Dynamic: ✔️
- Required: ❌
- Default:
[https://www.googleapis.com/auth/calendar]
The GCP scopes to used
serviceAccount
- Type: string
- Dynamic: ✔️
- Required: ❌
The GCP service account key
Outputs
event
- Type: Event
- Required: ❌
Event ID of the inserted event.
Definitions
io.kestra.plugin.googleworkspace.calendar.models.Event
Properties
id
- Type: string
- Dynamic: ❓
- Required: ❓
io.kestra.plugin.googleworkspace.calendar.AbstractInsertEvent-Attendee
Properties
displayName
- Type: string
- Dynamic: ✔️
- Required: ❌
Display name of the attendee.
email
- Type: string
- Dynamic: ✔️
- Required: ❌
Email of the attendee.
io.kestra.plugin.googleworkspace.calendar.AbstractInsertEvent-CalendarTime
Properties
dateTime
- Type: string
- Dynamic: ✔️
- Required: ❌
Time of the event in the ISO 8601 Datetime format, for example, 2024-11-28T09:00:00-07:00
.
timeZone
- Type: string
- Dynamic: ✔️
- Required: ❌
Timezone associated with the dateTime, for example, America/Los_Angeles
.
Was this page helpful?