GooglecalendarClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnNewEventInCalendar': {'operation_id': 'OnNewEventInCalendar', 'path': '/{connectionId}/trigger1/calendars/{calendar_id}/events', 'method': 'get', 'required_parameters': ['calendar_id'], 'callback_payload_type': 'CalendarEventList'}, 'OnUpdatedEventInCalendar': {'operation_id': 'OnUpdatedEventInCalendar', 'path': '/{connectionId}/trigger2/calendars/{calendar_id}/events', 'method': 'get', 'required_parameters': ['calendar_id'], 'callback_payload_type': 'CalendarEventList'}, 'OnDeletedEventInCalendar': {'operation_id': 'OnDeletedEventInCalendar', 'path': '/{connectionId}/trigger3/calendars/{calendar_id}/events', 'method': 'get', 'required_parameters': ['calendar_id'], 'callback_payload_type': 'CalendarEventList'}, 'OnChangedEventInCalendar': {'operation_id': 'OnChangedEventInCalendar', 'path': '/{connectionId}/trigger4/calendars/{calendar_id}/events', 'method': 'get', 'required_parameters': ['calendar_id'], 'callback_payload_type': 'CalendarEventChangedList'}, 'OnEventStarted': {'operation_id': 'OnEventStarted', 'path': '/{connectionId}/eventstarted/calendars/{calendar_id}/events', 'method': 'get', 'required_parameters': ['calendar_id'], 'callback_payload_type': 'CalendarEventList'}}
Classes
CalendarList
dataclass
CalendarEventList
dataclass
ResponseEvent
dataclass
ResponseEvent(summary: Optional[str] = None, start: Optional[str] = None, end: Optional[str] = None, description: Optional[str] = None, location: Optional[str] = None, status: Optional[str] = None, html_link: Optional[str] = None, id: Optional[str] = None, attendees: Optional[str] = None, creator: Optional[str] = None, organizer: Optional[str] = None, created: Optional[str] = None, updated: Optional[str] = None, end_time_unspecified: Optional[bool] = None)
Response for Create an event
Attributes
start
class-attribute
instance-attribute
The (inclusive) start time of the event.
end
class-attribute
instance-attribute
The (exclusive) end time of the event.
description
class-attribute
instance-attribute
Description of the event.
location
class-attribute
instance-attribute
Geographic location of the event as free-form text.
status
class-attribute
instance-attribute
Status of the event. Possible values are "confirmed", "tentative", or "cancelled".
html_link
class-attribute
instance-attribute
Unique ID of the list.
organizer
class-attribute
instance-attribute
The organizer of the event.
created
class-attribute
instance-attribute
Creation time of the event.
updated
class-attribute
instance-attribute
Last modification time of the event.
end_time_unspecified
class-attribute
instance-attribute
end_time_unspecified: Optional[bool] = field(default=None, metadata={'wire_name': 'endTimeUnspecified'})
Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True.
ObjectEntity
dataclass
CalendarEventChangedList
dataclass
CalendarListEntry
dataclass
CalendarListEntry(id: Optional[str] = None, summary: Optional[str] = None, description: Optional[str] = None, location: Optional[str] = None, time_zone: Optional[str] = None)
Definition: CalendarListEntry
Attributes
description
class-attribute
instance-attribute
Description of the calendar.
location
class-attribute
instance-attribute
Geographic location of the calendar as free-form text.
RequestEvent
dataclass
RequestEvent(summary: Optional[str] = None, start: Optional[str] = None, end: Optional[str] = None, description: Optional[str] = None, location: Optional[str] = None, attendees: Optional[str] = None, status: Optional[str] = None, is_all_day: Optional[bool] = None)
Definition: RequestEvent
Attributes
start
class-attribute
instance-attribute
The (inclusive) start time of the event.
end
class-attribute
instance-attribute
The (exclusive) end time of the event.
description
class-attribute
instance-attribute
Description of the event.
location
class-attribute
instance-attribute
Geographic location of the event as free-form text.
attendees
class-attribute
instance-attribute
Enter a comma-separated list of attendee emails.
status
class-attribute
instance-attribute
Status of the event. Possible values are "confirmed", "tentative", or "cancelled".
PatchEvent
dataclass
PatchEvent(summary: Optional[str] = None, start: Optional[str] = None, end: Optional[str] = None, description: Optional[str] = None, location: Optional[str] = None, attendees: Optional[str] = None, status: Optional[str] = None, is_all_day: Optional[bool] = None)
Definition: PatchEvent
Attributes
start
class-attribute
instance-attribute
The (inclusive) start time of the event.
end
class-attribute
instance-attribute
The (exclusive) end time of the event.
description
class-attribute
instance-attribute
Description of the event.
location
class-attribute
instance-attribute
Geographic location of the event as free-form text.
attendees
class-attribute
instance-attribute
Enter a comma-separated list of attendee emails.
status
class-attribute
instance-attribute
Status of the event. Possible values are "confirmed", "tentative", or "cancelled.
ResponseEventWithActionType
dataclass
ResponseEventWithActionType(action_type: Optional[str] = None, summary: Optional[str] = None, start: Optional[str] = None, end: Optional[str] = None, description: Optional[str] = None, location: Optional[str] = None, status: Optional[str] = None, html_link: Optional[str] = None, id: Optional[str] = None, attendees: Optional[str] = None, creator: Optional[str] = None, organizer: Optional[str] = None, created: Optional[str] = None, updated: Optional[str] = None, end_time_unspecified: Optional[bool] = None)
Definition: ResponseEventWithActionType
Attributes
action_type
class-attribute
instance-attribute
Type of action which changed the event in change trigger.
start
class-attribute
instance-attribute
The (inclusive) start time of the event.
end
class-attribute
instance-attribute
The (exclusive) end time of the event.
description
class-attribute
instance-attribute
Description of the event.
location
class-attribute
instance-attribute
Geographic location of the event as free-form text.
status
class-attribute
instance-attribute
Status of the event. Possible values are "confirmed", "tentative", or "cancelled".
html_link
class-attribute
instance-attribute
Unique ID of the list.
organizer
class-attribute
instance-attribute
The organizer of the event.
created
class-attribute
instance-attribute
Creation time of the event.
updated
class-attribute
instance-attribute
Last modification time of the event.
end_time_unspecified
class-attribute
instance-attribute
end_time_unspecified: Optional[bool] = field(default=None, metadata={'wire_name': 'endTimeUnspecified'})
Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True.
GooglecalendarClient
GooglecalendarClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for googlecalendar connector.
Initialize a GooglecalendarClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
list_calendars_async
async
List calendars
This operation is used to list all calendars in your Google account.
list_events_async
async
list_events_async(calendar_id: str, time_min: Optional[str] = None, time_max: Optional[str] = None, q: Optional[str] = None) -> dict[str, Any] | None
List the events on a calendar
This operation is used to return the first page of arbitrarily ordered events on the selected calendar.
create_event_async
async
Create an event
This operation is used to create an event on a specific calendar.
get_event_async
async
Get an event
This operation is used to get the details of a specific event from a calendar.
delete_event_async
async
Delete an event
This operation is used to delete an event from a calendar.
update_event_async
async
Update an event
This operation is used to update an existing event on a calendar.