Class GcpConfigProperties
java.lang.Object
com.google.cloud.spring.autoconfigure.config.GcpConfigProperties
- All Implemented Interfaces:
CredentialsSupplier,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
@ConfigurationProperties("spring.cloud.gcp.config")
public class GcpConfigProperties
extends Object
implements CredentialsSupplier, org.springframework.context.EnvironmentAware
Configuration for
GoogleConfigPropertySourceLocator.- Since:
- 1.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.getName()intbooleanvoidsetEnabled(boolean enabled) voidsetEnvironment(org.springframework.core.env.Environment environment) voidvoidsetProfile(String profile) voidsetProjectId(String projectId) voidsetTimeoutMillis(int timeoutMillis)
-
Constructor Details
-
GcpConfigProperties
public GcpConfigProperties()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
setName
-
getName
-
setProfile
-
getProfile
-
setTimeoutMillis
public void setTimeoutMillis(int timeoutMillis) -
getTimeoutMillis
public int getTimeoutMillis() -
getProjectId
-
setProjectId
-
getCredentials
Description copied from interface:CredentialsSupplierSupplies credentials configuration.- Specified by:
getCredentialsin interfaceCredentialsSupplier- Returns:
- a POJO containing Google Cloud credentials location and scopes
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-