Class GcpParameterManagerAutoConfiguration
java.lang.Object
com.google.cloud.spring.autoconfigure.parametermanager.GcpParameterManagerAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(GcpParameterManagerProperties.class)
@ConditionalOnClass(ParameterManagerTemplate.class)
@ConditionalOnProperty(value="spring.cloud.gcp.parametermanager.enabled",
matchIfMissing=true)
@AutoConfigureAfter(GcpContextAutoConfiguration.class)
public class GcpParameterManagerAutoConfiguration
extends Object
Autoconfiguration for GCP Parameter Manager.
-
Constructor Summary
ConstructorsConstructorDescriptionGcpParameterManagerAutoConfiguration
(com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpParameterManagerProperties properties, GcpProjectIdProvider projectIdProvider) -
Method Summary
Modifier and TypeMethodDescriptionclientFactory
(com.google.cloud.parametermanager.v1.ParameterManagerClient client) com.google.cloud.parametermanager.v1.ParameterManagerClient
parameterManagerTemplate
(com.google.cloud.parametermanager.v1.ParameterManagerClient client, org.springframework.beans.factory.ObjectProvider<ParameterManagerClientFactory> clientFactoryProvider)
-
Constructor Details
-
GcpParameterManagerAutoConfiguration
public GcpParameterManagerAutoConfiguration(com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpParameterManagerProperties properties, GcpProjectIdProvider projectIdProvider)
-
-
Method Details
-
parameterManagerClient
@Bean @ConditionalOnMissingBean public com.google.cloud.parametermanager.v1.ParameterManagerClient parameterManagerClient() throws IOException- Throws:
IOException
-
clientFactory
@Bean @ConditionalOnMissingBean public ParameterManagerClientFactory clientFactory(com.google.cloud.parametermanager.v1.ParameterManagerClient client) -
parameterManagerTemplate
@Bean @ConditionalOnMissingBean public ParameterManagerTemplate parameterManagerTemplate(com.google.cloud.parametermanager.v1.ParameterManagerClient client, org.springframework.beans.factory.ObjectProvider<ParameterManagerClientFactory> clientFactoryProvider)
-