From 96024d890077fe56b8186314b4f5fe35f9f109e6 Mon Sep 17 00:00:00 2001 From: Lim-jooyoung Date: Thu, 12 Nov 2026 12:51:44 +0900 Subject: [PATCH] docs(dlp): fix argument names in list_dlp_jobs docstring The Args section documented `filter` and `type`, but the function parameters are `filter_string` and `job_type`. Passing the documented names as keyword arguments raises TypeError. Also clarify that INSPECT_JOB is the API default when `job_type` is not set; 'INSPECT' is not one of the accepted values. --- dlp/snippets/Jobs/list_jobs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlp/snippets/Jobs/list_jobs.py b/dlp/snippets/Jobs/list_jobs.py index 95191bbb702..8c971f98924 100644 --- a/dlp/snippets/Jobs/list_jobs.py +++ b/dlp/snippets/Jobs/list_jobs.py @@ -33,7 +33,7 @@ def list_dlp_jobs( specified filter in the request. Args: project: The project id to use as a parent resource. - filter: (Optional) Allows filtering. + filter_string: (Optional) Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by 'AND' or 'OR' logical operators. @@ -52,7 +52,8 @@ def list_dlp_jobs( * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) - type: (Optional) The type of job. Defaults to 'INSPECT'. + job_type: (Optional) The type of job. If not set, the API defaults to + INSPECT_JOB. Choices: DLP_JOB_TYPE_UNSPECIFIED INSPECT_JOB: The job inspected content for sensitive data.