Added overview and usage information for the Parameter Manager integration.
1.9 KiB
The Parameter Manager integration is an extension of the Secret Manager class, offering a lightweight client designed to fetch processed parameter data from Google Cloud. This tool is ideal for agents that require configuration settings to be handled independently of the agent’s internal process. If you want to know more about all options, features or capabilities that this integration facilitates, click here.
catalog_title: Parameter Manager catalog_description: A client for interacting with Google Cloud Parameter Manager.
Parameter Manager
You can use the ParameterManagerClient to securely fetch configuration and parameters from the Google Cloud Parameter Manager.
Initialize the client
You can initialize the ParameterManagerClient in a few ways:
Using default credentials
If you are running on a Google Cloud environment with default credentials, you can initialize the client without any arguments:
from google.adk.integrations.parameter_manager.parameter_client import ParameterManagerClient
# Using default credentials
client = ParameterManagerClient()
Using a service account
You can provide a service account JSON string to authenticate:
from google.adk.integrations.parameter_manager.parameter_client import ParameterManagerClient
client = ParameterManagerClient(service_account_json="...")
Using an auth token
Alternatively, you can use an auth token:
from google.adk.integrations.parameter_manager.parameter_client import ParameterManagerClient
client = ParameterManagerClient(auth_token="...")
Retrieve a parameter
Once the client is initialized, you can retrieve a parameter by providing its full resource name:
value = client.get_parameter("projects/my-project/locations/global/parameters/my-param/versions/latest")