Google Calendar
Manage calendars, events and access control rules in Google Calendar through the Google Calendar API.
What’s inside
-
Google Calendar component, URI syntax:
google-calendar:apiName/methodName -
Google Calendar Stream component, URI syntax:
google-calendar-stream:index
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-google-calendar-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 41 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.google-calendar-stream.access-token | The OAuth 2.0 access token. It typically expires after an hour, so set refreshToken for long-term use. | String | |
camel.component.google-calendar-stream.application-name | The name of the application, sent in the User-Agent header of the requests, for example camel-google-calendar/1.0. | String | |
camel.component.google-calendar-stream.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.google-calendar-stream.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.google-calendar-stream.calendar-id | The id of the calendar to read the events from. The keyword primary selects the primary calendar of the user. | primary | String |
camel.component.google-calendar-stream.client-factory | The factory that creates the Google Calendar client of each endpoint. The default is BatchGoogleCalendarClientFactory. The option is a org.apache.camel.component.google.calendar.GoogleCalendarClientFactory type. | GoogleCalendarClientFactory | |
camel.component.google-calendar-stream.client-id | The client ID of the OAuth 2.0 application. | String | |
camel.component.google-calendar-stream.client-secret | The client secret of the OAuth 2.0 application. | String | |
camel.component.google-calendar-stream.configuration | Shared configuration, whose options are the defaults of every endpoint of this component. The option is a org.apache.camel.component.google.calendar.stream.GoogleCalendarStreamConfiguration type. | GoogleCalendarStreamConfiguration | |
camel.component.google-calendar-stream.consider-last-update | Whether each poll only reads the events modified since the newest last modification time of the events delivered so far (the updatedMin filter, which also returns the events deleted since then). Cannot be used with syncFlow. | false | Boolean |
camel.component.google-calendar-stream.consume-from-now | Whether to only read the events that end after the current time: each poll sets the timeMin filter to the time of the poll. With syncFlow it is set only on the full sync. | true | Boolean |
camel.component.google-calendar-stream.delegate | The email address of the user to impersonate with the domain-wide delegation of the service account. | String | |
camel.component.google-calendar-stream.email-address | The email address of the Google service account. | String | |
camel.component.google-calendar-stream.enabled | Whether to enable auto configuration of the google-calendar-stream component. This is enabled by default. | Boolean | |
camel.component.google-calendar-stream.health-check-consumer-enabled | Used for enabling or disabling all consumer based health checks from this component | true | Boolean |
camel.component.google-calendar-stream.health-check-producer-enabled | Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer checks globally by setting camel.health.producersEnabled=true. | true | Boolean |
camel.component.google-calendar-stream.max-results | Maximum number of events returned per Google Calendar API page. With syncFlow=false and considerLastUpdate=true, each poll reads all pages; otherwise each poll reads one page. | 10 | Integer |
camel.component.google-calendar-stream.p12-file-name | The path of the P12 file with the private key of the Google service account. | String | |
camel.component.google-calendar-stream.query | Free text search terms: only the events that match them are read (the q parameter of events.list). Cannot be used with syncFlow. | String | |
camel.component.google-calendar-stream.refresh-token | The OAuth 2.0 refresh token, with which the component obtains a new access token whenever the current one expires. A long-lived application needs it. | String | |
camel.component.google-calendar-stream.scopes | The OAuth 2.0 scopes, which set the permissions of the application on the user account, separated by comma. See https://developers.google.com/identity/protocols/googlescopes. | String | |
camel.component.google-calendar-stream.service-account-key | The service account key in JSON format, to authenticate the application as a service account. Accepts base64 with the prefix base64:. | String | |
camel.component.google-calendar-stream.sync-flow | Whether to use the incremental synchronization of the Calendar API with sync tokens: the first poll starts a full sync, and later polls read only the events changed since the previous sync, one page per poll. Cannot be used with query or considerLastUpdate. See https://developers.google.com/calendar/v3/sync. | false | Boolean |
camel.component.google-calendar-stream.user | The email address of the user to impersonate in the service account flow. | String | |
camel.component.google-calendar.access-token | The OAuth 2.0 access token. It typically expires after an hour, so set refreshToken for long-term use. | String | |
camel.component.google-calendar.application-name | The name of the application, sent in the User-Agent header of the requests, for example camel-google-calendar/1.0. | String | |
camel.component.google-calendar.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.google-calendar.bridge-error-handler | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | Boolean |
camel.component.google-calendar.client-factory | The factory that creates the Google Calendar client of each endpoint. The default is BatchGoogleCalendarClientFactory. The option is a org.apache.camel.component.google.calendar.GoogleCalendarClientFactory type. | GoogleCalendarClientFactory | |
camel.component.google-calendar.client-id | The client ID of the OAuth 2.0 application. | String | |
camel.component.google-calendar.client-secret | The client secret of the OAuth 2.0 application. | String | |
camel.component.google-calendar.configuration | Shared configuration, whose options are the defaults of every endpoint of this component. The option is a org.apache.camel.component.google.calendar.GoogleCalendarConfiguration type. | GoogleCalendarConfiguration | |
camel.component.google-calendar.delegate | The email address of the user to impersonate with the domain-wide delegation of the service account. | String | |
camel.component.google-calendar.email-address | The email address of the Google service account. | String | |
camel.component.google-calendar.enabled | Whether to enable auto configuration of the google-calendar component. This is enabled by default. | Boolean | |
camel.component.google-calendar.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.google-calendar.p12-file-name | The path of the P12 file with the private key of the Google service account. | String | |
camel.component.google-calendar.refresh-token | The OAuth 2.0 refresh token, with which the component obtains a new access token whenever the current one expires. A long-lived application needs it. | String | |
camel.component.google-calendar.scopes | The OAuth 2.0 scopes, which set the permissions of the application on the user account, separated by comma. See https://developers.google.com/identity/protocols/googlescopes. | String | |
camel.component.google-calendar.service-account-key | The service account key in JSON format, to authenticate the application as a service account. Accepts base64 with the prefix base64:. | String | |
camel.component.google-calendar.user | The email address of the user to impersonate in the service account flow. | String |