From 695fd4b35544aa8877100d80721fe57d58ffa5f3 Mon Sep 17 00:00:00 2001 From: durgesh-ninave-crest Date: Mon, 19 May 2025 18:15:57 +0530 Subject: [PATCH] update documentation of module and lookup --- plugins/lookup/gcp_secret_manager.py | 3 ++- plugins/modules/gcp_secret_manager.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/lookup/gcp_secret_manager.py b/plugins/lookup/gcp_secret_manager.py index 19114faf..754f4af0 100644 --- a/plugins/lookup/gcp_secret_manager.py +++ b/plugins/lookup/gcp_secret_manager.py @@ -65,7 +65,7 @@ DOCUMENTATION = ''' description: - JSON Object representing the contents of a service_account_file obtained from Google Cloud - defaults to OS env variable GCP_SERVICE_ACCOUNT_INFO if not present - type: jsonarg + type: str required: False access_token: description: @@ -90,6 +90,7 @@ DOCUMENTATION = ''' description: - Authenticaiton scopes for Google Secret Manager type: list + elements: str default: ["https://www.googleapis.com/auth/cloud-platform"] ''' diff --git a/plugins/modules/gcp_secret_manager.py b/plugins/modules/gcp_secret_manager.py index a6d150b0..6883d703 100644 --- a/plugins/modules/gcp_secret_manager.py +++ b/plugins/modules/gcp_secret_manager.py @@ -45,6 +45,7 @@ options: - application - machineaccount - serviceaccount + - accesstoken service_account_contents: description: - The contents of a Service Account JSON file, either in a dictionary or as a @@ -59,11 +60,21 @@ options: - An optional service account email address if machineaccount is selected and the user does not wish to use the default email. type: str + access_token: + description: + - An OAuth2 access token if credential type is accesstoken. + type: str scopes: description: - Array of scopes to be used type: list elements: str + env_type: + description: + - Specifies which Ansible environment you're running this module within. + - This should not be set unless you know what you're doing. + - This only alters the User Agent string for any API requests. + type: str name: description: - Name of the secret to be used