Class Gcloud.Builder

  • Enclosing class:
    Gcloud

    public static class Gcloud.Builder
    extends Object
    • 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.
      • build

        public Gcloud build()
        Build an immutable Gcloud instance.