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()
boolean
void
setEnabled
(boolean enabled) void
setEnvironment
(org.springframework.core.env.Environment environment) void
setLocation
(String location) void
void
setProfile
(String profile) void
setProjectId
(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: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
-