Class GcpProperties

java.lang.Object
com.google.cloud.spring.autoconfigure.core.GcpProperties
All Implemented Interfaces:
CredentialsSupplier

@ConfigurationProperties("spring.cloud.gcp") public class GcpProperties extends Object implements CredentialsSupplier
Top-level auto-config settings.
  • Constructor Details

    • GcpProperties

      public GcpProperties()
  • Method Details

    • getProjectId

      public String getProjectId()
    • setProjectId

      public void setProjectId(String projectId)
    • getCredentials

      public Credentials getCredentials()
      Description copied from interface: CredentialsSupplier
      Supplies credentials configuration.
      Specified by:
      getCredentials in interface CredentialsSupplier
      Returns:
      a POJO containing Google Cloud credentials location and scopes