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
Constructors Constructor Description GoogleSheetsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
GoogleSheetsApiName
getApiName()
String
getApplicationName()
String
getClientId()
String
getClientSecret()
String
getDelegate()
String
getKeyResource()
String
getMethodName()
String
getRefreshToken()
Collection<String>
getScopes()
void
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
setKeyResource(String keyResource)
Sets "*.json" file with credentials for 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)
Sheets scopes
-
-
-
Method Detail
-
getApiName
public GoogleSheetsApiName getApiName()
-
setApiName
public void setApiName(GoogleSheetsApiName apiName)
What kind of operation to perform
-
getMethodName
public String getMethodName()
-
setMethodName
public void setMethodName(String methodName)
What sub operation to use for the selected operation
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
Client ID of the sheets application
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
Client secret of the sheets application
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage.
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
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
public String getApplicationName()
-
setApplicationName
public void setApplicationName(String applicationName)
Google Sheets application name. Example would be "camel-google-sheets/1.0"
-
getScopes
public Collection<String> getScopes()
-
setScopes
public void setScopes(Collection<String> scopes)
Sheets scopes- See Also:
SheetsScopes
-
getKeyResource
public String getKeyResource()
-
setKeyResource
public void setKeyResource(String keyResource)
Sets "*.json" file with credentials for Service account- Parameters:
keyResource
- String file, classpath, or http url
-
getDelegate
public String getDelegate()
-
setDelegate
public void setDelegate(String delegate)
Delegate for wide-domain service account
-
-