Class GoogleDriveConfiguration
- java.lang.Object
-
- org.apache.camel.component.google.drive.GoogleDriveConfiguration
-
- Direct Known Subclasses:
DriveAboutEndpointConfiguration,DriveAppsEndpointConfiguration,DriveChangesEndpointConfiguration,DriveChannelsEndpointConfiguration,DriveChildrenEndpointConfiguration,DriveCommentsEndpointConfiguration,DriveDrivesEndpointConfiguration,DriveFilesEndpointConfiguration,DriveParentsEndpointConfiguration,DrivePermissionsEndpointConfiguration,DrivePropertiesEndpointConfiguration,DriveRepliesEndpointConfiguration,DriveRevisionsEndpointConfiguration,DriveTeamdrivesEndpointConfiguration
@UriParams @Configurer(extended=true) public class GoogleDriveConfiguration extends Object
Component configuration for GoogleDrive component.
-
-
Constructor Summary
Constructors Constructor Description GoogleDriveConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccessToken()GoogleDriveApiNamegetApiName()StringgetApplicationName()StringgetClientId()StringgetClientSecret()StringgetDelegate()StringgetMethodName()StringgetRefreshToken()List<String>getScopes()StringgetServiceAccountKey()voidsetAccessToken(String accessToken)OAuth 2 access token.voidsetApiName(GoogleDriveApiName apiName)What kind of operation to performvoidsetApplicationName(String applicationName)Google drive application name.voidsetClientId(String clientId)Client ID of the drive applicationvoidsetClientSecret(String clientSecret)Client secret of the drive applicationvoidsetDelegate(String delegate)Delegate for wide-domain service accountvoidsetMethodName(String methodName)What sub operation to use for the selected operationvoidsetRefreshToken(String refreshToken)OAuth 2 refresh token.voidsetScopes(List<String> scopes)Specifies the level of permissions you want a drive application to have to a user account.voidsetServiceAccountKey(String serviceAccountKey)Service account key in json format to authenticate an application as a service account.
-
-
-
Method Detail
-
getApiName
public GoogleDriveApiName getApiName()
-
setApiName
public void setApiName(GoogleDriveApiName 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 drive application
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
Client secret of the drive 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 Calendar 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 drive application name. Example would be "camel-google-drive/1.0"
-
setScopes
public void setScopes(List<String> scopes)
Specifies the level of permissions you want a drive application to have to a user account. See https://developers.google.com/drive/web/scopes for more info.
-
getServiceAccountKey
public String getServiceAccountKey()
-
setServiceAccountKey
public void setServiceAccountKey(String serviceAccountKey)
Service account key in json format to authenticate an application as a service account. Accept base64 adding the prefix "base64:"- Parameters:
serviceAccountKey- String file, classpath, base64, or http url
-
getDelegate
public String getDelegate()
-
setDelegate
public void setDelegate(String delegate)
Delegate for wide-domain service account
-
-