public interface GcpOptions extends PipelineOptions
These options configure which of the following 4 different mechanisms for obtaining a credential are used:
| Modifier and Type | Interface and Description |
|---|---|
static class |
GcpOptions.CredentialDirFactory
Returns the default credential directory of ${user.home}/.store/data-flow.
|
static class |
GcpOptions.GcpUserCredentialsFactory
Attempts to load the user credentials.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCredentialDir()
Directory for storing dataflow credentials.
|
java.lang.String |
getCredentialId() |
java.lang.String |
getGCloudPath() |
com.google.api.client.auth.oauth2.Credential |
getGcpCredential()
Alternative Google Cloud Platform Credential.
|
java.lang.String |
getProject()
Project id to use when launching jobs.
|
java.lang.String |
getSecretsFile()
This option controls which file to use when attempting to create the credentials using the
OAuth 2 webflow.
|
java.lang.String |
getServiceAccountKeyfile()
This option controls which file to use when attempting to create the credentials using the
service account method.
|
java.lang.String |
getServiceAccountName()
This option controls which service account to use when attempting to create the credentials
using the service account method.
|
void |
setCredentialDir(java.lang.String value) |
void |
setCredentialId(java.lang.String value) |
void |
setGCloudPath(java.lang.String value) |
void |
setGcpCredential(com.google.api.client.auth.oauth2.Credential value) |
void |
setProject(java.lang.String value) |
void |
setSecretsFile(java.lang.String value) |
void |
setServiceAccountKeyfile(java.lang.String value) |
void |
setServiceAccountName(java.lang.String value) |
as, getRunner, setRunnerjava.lang.String getProject()
void setProject(java.lang.String value)
java.lang.String getSecretsFile()
void setSecretsFile(java.lang.String value)
java.lang.String getServiceAccountKeyfile()
This option if specified, needs be combined with the
serviceAccountName.
void setServiceAccountKeyfile(java.lang.String value)
java.lang.String getServiceAccountName()
This option if specified, needs be combined with the
serviceAccountKeyfile.
void setServiceAccountName(java.lang.String value)
java.lang.String getGCloudPath()
void setGCloudPath(java.lang.String value)
java.lang.String getCredentialDir()
void setCredentialDir(java.lang.String value)
java.lang.String getCredentialId()
void setCredentialId(java.lang.String value)
com.google.api.client.auth.oauth2.Credential getGcpCredential()
void setGcpCredential(com.google.api.client.auth.oauth2.Credential value)