Class GoogleSheetsConfiguration
java.lang.Object
org.apache.camel.support.component.AbstractApiConfiguration
org.apache.camel.component.google.sheets.GoogleSheetsConfiguration
- Direct Known Subclasses:
SheetsSpreadsheetsEndpointConfiguration
,SheetsSpreadsheetsValuesEndpointConfiguration
@UriParams
@Configurer(extended=true)
public class GoogleSheetsConfiguration
extends org.apache.camel.support.component.AbstractApiConfiguration
Component configuration for GoogleSheets component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAccessToken
(String accessToken) OAuth 2 access token.void
setApiName
(GoogleSheetsApiName apiName) What kind of operation to performvoid
setApplicationName
(String applicationName) Google Sheets application name.void
setClientId
(String clientId) Client ID of the sheets applicationvoid
setClientSecret
(String clientSecret) Client secret of the sheets applicationvoid
setDelegate
(String delegate) Delegate for wide-domain service accountvoid
setMethodName
(String methodName) What sub operation to use for the selected operationvoid
setRefreshToken
(String refreshToken) OAuth 2 refresh token.void
setScopes
(Collection<String> scopes) Specifies the level of permissions you want a sheets application to have to a user account.void
setServiceAccountKey
(String serviceAccountKey) Sets "*.json" file with credentials for Service accountMethods inherited from class org.apache.camel.support.component.AbstractApiConfiguration
isSplitResult, setSplitResult
-
Constructor Details
-
GoogleSheetsConfiguration
public GoogleSheetsConfiguration()
-
-
Method Details
-
getApiName
-
setApiName
What kind of operation to perform -
getMethodName
-
setMethodName
What sub operation to use for the selected operation -
getClientId
-
setClientId
Client ID of the sheets application -
getClientSecret
-
setClientSecret
Client secret of the sheets application -
getAccessToken
-
setAccessToken
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage. -
getRefreshToken
-
setRefreshToken
OAuth 2 refresh token. Using this, the Google Sheets component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived. -
getApplicationName
-
setApplicationName
Google Sheets application name. Example would be "camel-google-sheets/1.0" -
getScopes
-
setScopes
Specifies the level of permissions you want a sheets application to have to a user account. See https://developers.google.com/identity/protocols/googlescopes for more info.- See Also:
-
SheetsScopes
-
getServiceAccountKey
-
setServiceAccountKey
Sets "*.json" file with credentials for Service account- Parameters:
serviceAccountKey
- String file, classpath, or http url
-
getDelegate
-
setDelegate
Delegate for wide-domain service account
-