Class GcpParameterProperties
java.lang.Object
com.google.cloud.spring.autoconfigure.parameter.GcpParameterProperties
- All Implemented Interfaces:
CredentialsSupplier,org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
@ConfigurationProperties("spring.cloud.gcp.parameter")
public class GcpParameterProperties
extends Object
implements CredentialsSupplier, org.springframework.context.EnvironmentAware
Configuration for
GoogleParameterPropertySourceLocator.- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSupplies credentials configuration.getName()booleanvoidsetEnabled(boolean enabled) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetLocation(String location) voidvoidsetProfile(String profile) voidsetProjectId(String projectId)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
GcpParameterProperties
public GcpParameterProperties()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
setName
-
getName
-
setProfile
-
getProfile
-
getLocation
-
setLocation
-
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
-