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
-
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.getName()
int
boolean
void
setEnabled
(boolean enabled) void
setEnvironment
(org.springframework.core.env.Environment environment) void
void
setProfile
(String profile) void
setProjectId
(String projectId) void
setTimeoutMillis
(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:CredentialsSupplier
Supplies credentials configuration.- Specified by:
getCredentials
in interfaceCredentialsSupplier
- Returns:
- a POJO containing Google Cloud credentials location and scopes
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-