Class Gcloud.Builder
- java.lang.Object
-
- com.google.cloud.tools.appengine.operations.Gcloud.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Gcloud
build()
Build an immutable Gcloud instance.Gcloud.Builder
setCredentialFile(Path credentialFile)
Set the credential file override.Gcloud.Builder
setFlagsFiles(List<Path> flagsFiles)
Allow use of flags file for gcloud commands.Gcloud.Builder
setMetricsEnvironment(String metricsEnvironment, String metricsEnvironmentVersion)
Set metrics environment and version.Gcloud.Builder
setOutputFormat(String outputFormat)
Sets the format for printing command output resources.Gcloud.Builder
setShowStructuredLogs(String showStructuredLogs)
Sets structured JSON logs for the stderr output.Gcloud.Builder
setVerbosity(String verbosity)
Sets the verbosity of output for gcloud.
-
-
-
Method Detail
-
setMetricsEnvironment
public Gcloud.Builder setMetricsEnvironment(String metricsEnvironment, String metricsEnvironmentVersion)
Set metrics environment and version.
-
setOutputFormat
public Gcloud.Builder setOutputFormat(String outputFormat)
Sets the format for printing command output resources. The default is a command-specific human-friendly output format. The supported formats are: csv, default, flattened, JSON, list, multi, none, table, text, value, yaml. For more details run $ gcloud topic formats.
-
setCredentialFile
public Gcloud.Builder setCredentialFile(Path credentialFile)
Set the credential file override.
-
setFlagsFiles
public Gcloud.Builder setFlagsFiles(List<Path> flagsFiles)
Allow use of flags file for gcloud commands.
-
setShowStructuredLogs
public Gcloud.Builder setShowStructuredLogs(String showStructuredLogs)
Sets structured JSON logs for the stderr output. Supported values include 'never' (default), 'always', 'terminal', etc.
-
setVerbosity
public Gcloud.Builder setVerbosity(String verbosity)
Sets the verbosity of output for gcloud. @see gcloud docs
-
build
public Gcloud build()
Build an immutable Gcloud instance.
-
-