From 237f1a8eecac19cc9bfd7a58467f1f028eb619d5 Mon Sep 17 00:00:00 2001 From: adk-bot Date: Fri, 17 Apr 2026 18:32:33 +0000 Subject: [PATCH] feat: Add documentation for Parameter Manager integration --- docs/integrations/parameter-manager.md | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/integrations/parameter-manager.md diff --git a/docs/integrations/parameter-manager.md b/docs/integrations/parameter-manager.md new file mode 100644 index 0000000000..ac48385882 --- /dev/null +++ b/docs/integrations/parameter-manager.md @@ -0,0 +1,51 @@ +--- +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: + +```python +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: + +```python +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: + +```python +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: + +```python +value = client.get_parameter("projects/my-project/locations/global/parameters/my-param/versions/latest") +```