119.3. Spring Boot Auto-Configuration
组件支持 15 个选项,它们如下所列。
名称 | 描述 | 默认 | 类型 |
---|---|---|---|
camel.component.google-calendar-stream.client-factory | 客户端工厂.选项是一个 org.apache.camel.component.google.calendar.GoogleCalendarClientFactory 类型。 | 字符串 | |
camel.component.google-calendar-stream.configuration.access-token | OAuth 2 访问令牌。这通常在一小时后过期,因此建议长期使用 refreshToken。 | 字符串 | |
camel.component.google-calendar-stream.configuration.application-name | Google Calendar 应用程序名称。示例应为 camel-google-calendar/1.0 | 字符串 | |
camel.component.google-calendar-stream.configuration.calendar-id | 要使用的 calendarId | 主要 | 字符串 |
camel.component.google-calendar-stream.configuration.client-id | 日历应用程序的客户端 ID | 字符串 | |
camel.component.google-calendar-stream.configuration.client-secret | 日历应用程序的客户端机密 | 字符串 | |
camel.component.google-calendar-stream.configuration.consider-last-update | 考虑到最后一次轮询事件的最后一个更新,作为下一次轮询的开始日期 | false | 布尔值 |
camel.component.google-calendar-stream.configuration.consume-from-now | 现在就消耗所选日历中的事件 | true | 布尔值 |
camel.component.google-calendar-stream.configuration.index | 为端点指定索引 | 字符串 | |
camel.component.google-calendar-stream.configuration.max-results | 要返回的最大结果 | 10 | 整数 |
camel.component.google-calendar-stream.configuration.query | 对日历执行的查询 | 字符串 | |
camel.component.google-calendar-stream.configuration.refresh-token | OAuth 2 刷新令牌。使用这个方法,Google Calendar 组件可在当前过期时获得新的 accessToken - 应用程序长期需要。 | 字符串 | |
camel.component.google-calendar-stream.configuration.scopes | 指定您希望日历应用程序对用户帐户的权限级别。如需更多信息,请参阅 https://developers.google.com/calendar/auth。 | list | |
camel.component.google-calendar-stream.enabled | 是否启用 google-calendar-stream 组件自动配置。默认启用。 | 布尔值 | |
camel.component.google-calendar-stream.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |