126.3. Spring Boot Auto-Configuration
组件支持 16 个选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.google-sheets-stream.client-factory | 使用 GoogleSheetsClientFactory 作为创建客户端的工厂。默认情况下,将使用 BatchGoogleSheetsClientFactory。选项是 org.apache.camel.component.google.sheets.GoogleSheetsClientFactory 类型。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.access-token | OAuth 2 访问令牌。这通常在一小时后过期,因此建议使用 refreshToken 进行长期使用。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.api-name | 设置 apiName。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.application-name | Google sheets 应用程序名称。示例为 camel-google-sheets/1.0 | 字符串 | |
| camel.component.google-sheets-stream.configuration.client-id | sheets 应用程序的客户端 ID | 字符串 | |
| camel.component.google-sheets-stream.configuration.client-secret | sheets 应用程序的客户端 secret | 字符串 | |
| camel.component.google-sheets-stream.configuration.include-grid-data | 如果应该返回网格数据,则为 true。 | false | 布尔值 |
| camel.component.google-sheets-stream.configuration.major-dimension | 指定结果应使用的主要维度。 | ROWS | 字符串 |
| camel.component.google-sheets-stream.configuration.max-results | 指定返回的结果的最大数量。这将限制返回值范围数据集中的行数或批处理请求中返回的值范围的数量。 | 0 | 整数 |
| camel.component.google-sheets-stream.configuration.range | 指定表中要从中获取数据的行和列范围。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.refresh-token | OAuth 2 刷新令牌。使用这个,Google Calendar 组件可以在当前过期时获取新的 accessToken - 如果应用程序长期到期,则需要获得新的 accessToken。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.scopes | 指定您希望 sheets 应用程序具有用户帐户的权限级别。如需更多信息,请参阅 https://developers.google.com/identity/protocols/googlescopes。 | list | |
| camel.component.google-sheets-stream.configuration.spreadsheet-id | 指定用于标识要获取的目标的电子表格标识符。 | 字符串 | |
| camel.component.google-sheets-stream.configuration.value-render-option | 决定在输出中如何呈现值。 | FORMATTED_VALUE | 字符串 |
| camel.component.google-sheets-stream.enabled | 是否启用 google-sheets-stream 组件的自动配置。这默认是启用的。 | 布尔值 | |
| camel.component.google-sheets-stream.resolve-property-placeholders | 组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。 | true | 布尔值 |