118.2. Spring Boot Auto-Configuration

组件支持 14 个选项,它们如下所列。

名称描述默认类型

camel.component.google-calendar.client-factory

使用 GoogleCalendarClientFactory 作为创建客户端的工厂。默认情况下,将使用批处理GoogleCalendarClientFactory。选项是一个 org.apache.camel.component.google.calendar.GoogleCalendarClientFactory 类型。

 

字符串

camel.component.google-calendar.configuration.access-token

OAuth 2 访问令牌。这通常在一小时后过期,因此建议长期使用 refreshToken。

 

字符串

camel.component.google-calendar.configuration.api-name

要执行的操作种类

 

GoogleCalendarApiName

camel.component.google-calendar.configuration.application-name

Google calendar 应用名称。示例应为 camel-google-calendar/1.0

 

字符串

camel.component.google-calendar.configuration.client-id

日历应用程序的客户端 ID

 

字符串

camel.component.google-calendar.configuration.client-secret

日历应用程序的客户端机密

 

字符串

camel.component.google-calendar.configuration.email-address

Google 服务帐户的电子邮件地址。

 

字符串

camel.component.google-calendar.configuration.method-name

用于所选操作的子操作

 

字符串

camel.component.google-calendar.configuration.p12-file-name

带有用于 Google Service Account 的私钥的 p12 文件的名称。

 

字符串

camel.component.google-calendar.configuration.refresh-token

OAuth 2 刷新令牌。使用这个方法,Google Calendar 组件可在当前过期时获得新的 accessToken - 应用程序长期需要。

 

字符串

camel.component.google-calendar.configuration.scopes

指定您希望日历应用程序对用户帐户的权限级别。您可以用逗号分隔多个范围。如需更多信息,请参阅 https://developers.google.com/google-apps/calendar/auth

https://www.googleapis.com/auth/calendar

字符串

camel.component.google-calendar.configuration.user

应用程序试图在服务帐户流中模拟用户的电子邮件地址

 

字符串

camel.component.google-calendar.enabled

启用 google-calendar 组件

true

布尔值

camel.component.google-calendar.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值