public class GCloudConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
P12 |
static String |
PASSWORD |
static String |
PROJECT_ID |
static String |
SERVICE_ACCOUNT |
Constructor and Description |
---|
GCloudConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForModification() |
static GCloudConfiguration |
fromFile(String propsFile)
Generate a configuration from a properties file
|
com.google.gcloud.AuthCredentials |
getAuthCredentials() |
com.google.gcloud.datastore.DatastoreOptions |
getDatastoreOptions() |
File |
getP12File() |
String |
getProjectId() |
String |
getServiceAccount() |
void |
setP12File(String file) |
void |
setPassword(String pwd) |
void |
setProjectId(String projectId) |
void |
setServiceAccount(String serviceAccount) |
public static final String PROJECT_ID
public static final String P12
public static final String PASSWORD
public static final String SERVICE_ACCOUNT
public static GCloudConfiguration fromFile(String propsFile) throws IOException
propsFile
- IOException
public String getProjectId()
public File getP12File()
public String getServiceAccount()
public void setProjectId(String projectId)
public void setP12File(String file)
public void setServiceAccount(String serviceAccount)
public void setPassword(String pwd)
public com.google.gcloud.datastore.DatastoreOptions getDatastoreOptions() throws Exception
Exception
public com.google.gcloud.AuthCredentials getAuthCredentials() throws Exception
Exception
protected void checkForModification() throws IllegalStateException
IllegalStateException
Copyright © 1995-2016 Webtide. All Rights Reserved.