Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

docs: Fix formatting of request arg in docstring #497

Merged
merged 3 commits into from Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 11 additions & 15 deletions google/cloud/dlp_v2/services/dlp_service/async_client.py
Expand Up @@ -383,8 +383,8 @@ async def sample_redact_image():
Args:
request (Optional[Union[google.cloud.dlp_v2.types.RedactImageRequest, dict]]):
The request object. Request to search for potentially
sensitive info in an image and redact it by covering it
with a colored rectangle.
sensitive info in an image and redact it
by covering it with a colored rectangle.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -479,8 +479,7 @@ async def sample_deidentify_content():

Args:
request (Optional[Union[google.cloud.dlp_v2.types.DeidentifyContentRequest, dict]]):
The request object. Request to de-identify a
ContentItem.
The request object. Request to de-identify a ContentItem.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2070,8 +2069,7 @@ async def sample_create_job_trigger():

Args:
request (Optional[Union[google.cloud.dlp_v2.types.CreateJobTriggerRequest, dict]]):
The request object. Request message for
CreateJobTrigger.
The request object. Request message for CreateJobTrigger.
parent (:class:`str`):
Required. Parent resource name.

Expand Down Expand Up @@ -2203,8 +2201,7 @@ async def sample_update_job_trigger():

Args:
request (Optional[Union[google.cloud.dlp_v2.types.UpdateJobTriggerRequest, dict]]):
The request object. Request message for
UpdateJobTrigger.
The request object. Request message for UpdateJobTrigger.
name (:class:`str`):
Required. Resource name of the project and the
triggeredJob, for example
Expand Down Expand Up @@ -2690,8 +2687,7 @@ async def sample_delete_job_trigger():

Args:
request (Optional[Union[google.cloud.dlp_v2.types.DeleteJobTriggerRequest, dict]]):
The request object. Request message for
DeleteJobTrigger.
The request object. Request message for DeleteJobTrigger.
name (:class:`str`):
Required. Resource name of the project and the
triggeredJob, for example
Expand Down Expand Up @@ -2887,9 +2883,10 @@ async def sample_create_dlp_job():
Args:
request (Optional[Union[google.cloud.dlp_v2.types.CreateDlpJobRequest, dict]]):
The request object. Request message for
CreateDlpJobRequest. Used to initiate long running jobs
such as calculating risk metrics or inspecting Google
Cloud Storage.
CreateDlpJobRequest. Used to initiate
long running jobs such as calculating
risk metrics or inspecting Google Cloud
Storage.
parent (:class:`str`):
Required. Parent resource name.

Expand Down Expand Up @@ -3176,8 +3173,7 @@ async def sample_get_dlp_job():

Args:
request (Optional[Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]]):
The request object. The request message for
[DlpJobs.GetDlpJob][].
The request object. The request message for [DlpJobs.GetDlpJob][].
name (:class:`str`):
Required. The name of the DlpJob
resource.
Expand Down
26 changes: 11 additions & 15 deletions google/cloud/dlp_v2/services/dlp_service/client.py
Expand Up @@ -702,8 +702,8 @@ def sample_redact_image():
Args:
request (Union[google.cloud.dlp_v2.types.RedactImageRequest, dict]):
The request object. Request to search for potentially
sensitive info in an image and redact it by covering it
with a colored rectangle.
sensitive info in an image and redact it
by covering it with a colored rectangle.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -789,8 +789,7 @@ def sample_deidentify_content():

Args:
request (Union[google.cloud.dlp_v2.types.DeidentifyContentRequest, dict]):
The request object. Request to de-identify a
ContentItem.
The request object. Request to de-identify a ContentItem.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2300,8 +2299,7 @@ def sample_create_job_trigger():

Args:
request (Union[google.cloud.dlp_v2.types.CreateJobTriggerRequest, dict]):
The request object. Request message for
CreateJobTrigger.
The request object. Request message for CreateJobTrigger.
parent (str):
Required. Parent resource name.

Expand Down Expand Up @@ -2433,8 +2431,7 @@ def sample_update_job_trigger():

Args:
request (Union[google.cloud.dlp_v2.types.UpdateJobTriggerRequest, dict]):
The request object. Request message for
UpdateJobTrigger.
The request object. Request message for UpdateJobTrigger.
name (str):
Required. Resource name of the project and the
triggeredJob, for example
Expand Down Expand Up @@ -2902,8 +2899,7 @@ def sample_delete_job_trigger():

Args:
request (Union[google.cloud.dlp_v2.types.DeleteJobTriggerRequest, dict]):
The request object. Request message for
DeleteJobTrigger.
The request object. Request message for DeleteJobTrigger.
name (str):
Required. Resource name of the project and the
triggeredJob, for example
Expand Down Expand Up @@ -3090,9 +3086,10 @@ def sample_create_dlp_job():
Args:
request (Union[google.cloud.dlp_v2.types.CreateDlpJobRequest, dict]):
The request object. Request message for
CreateDlpJobRequest. Used to initiate long running jobs
such as calculating risk metrics or inspecting Google
Cloud Storage.
CreateDlpJobRequest. Used to initiate
long running jobs such as calculating
risk metrics or inspecting Google Cloud
Storage.
parent (str):
Required. Parent resource name.

Expand Down Expand Up @@ -3369,8 +3366,7 @@ def sample_get_dlp_job():

Args:
request (Union[google.cloud.dlp_v2.types.GetDlpJobRequest, dict]):
The request object. The request message for
[DlpJobs.GetDlpJob][].
The request object. The request message for [DlpJobs.GetDlpJob][].
name (str):
Required. The name of the DlpJob
resource.
Expand Down
25 changes: 0 additions & 25 deletions google/cloud/dlp_v2/services/dlp_service/transports/rest.py
Expand Up @@ -1109,7 +1109,6 @@ def __call__(
request (~.dlp.ActivateJobTriggerRequest):
The request object. Request message for
ActivateJobTrigger.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1215,7 +1214,6 @@ def __call__(
request (~.dlp.CancelDlpJobRequest):
The request object. The request message for canceling a
DLP job.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1306,7 +1304,6 @@ def __call__(
request (~.dlp.CreateDeidentifyTemplateRequest):
The request object. Request message for
CreateDeidentifyTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1428,7 +1425,6 @@ def __call__(
long running jobs such as calculating
risk metrics or inspecting Google Cloud
Storage.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1532,7 +1528,6 @@ def __call__(
request (~.dlp.CreateInspectTemplateRequest):
The request object. Request message for
CreateInspectTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1764,7 +1759,6 @@ def __call__(
request (~.dlp.CreateStoredInfoTypeRequest):
The request object. Request message for
CreateStoredInfoType.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1975,7 +1969,6 @@ def __call__(
request (~.dlp.DeleteDeidentifyTemplateRequest):
The request object. Request message for
DeleteDeidentifyTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2065,7 +2058,6 @@ def __call__(
request (~.dlp.DeleteDlpJobRequest):
The request object. The request message for deleting a
DLP job.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2145,7 +2137,6 @@ def __call__(
request (~.dlp.DeleteInspectTemplateRequest):
The request object. Request message for
DeleteInspectTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2319,7 +2310,6 @@ def __call__(
request (~.dlp.DeleteStoredInfoTypeRequest):
The request object. Request message for
DeleteStoredInfoType.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2409,7 +2399,6 @@ def __call__(
request (~.dlp.FinishDlpJobRequest):
The request object. The request message for finishing a
DLP hybrid job.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2494,7 +2483,6 @@ def __call__(
request (~.dlp.GetDeidentifyTemplateRequest):
The request object. Request message for
GetDeidentifyTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2693,7 +2681,6 @@ def __call__(
request (~.dlp.GetInspectTemplateRequest):
The request object. Request message for
GetInspectTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2900,7 +2887,6 @@ def __call__(
request (~.dlp.GetStoredInfoTypeRequest):
The request object. Request message for
GetStoredInfoType.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3005,7 +2991,6 @@ def __call__(
request (~.dlp.HybridInspectDlpJobRequest):
The request object. Request to search for potentially
sensitive info in a custom location.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3107,7 +3092,6 @@ def __call__(
request (~.dlp.HybridInspectJobTriggerRequest):
The request object. Request to search for potentially
sensitive info in a custom location.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3198,7 +3182,6 @@ def __call__(
request (~.dlp.InspectContentRequest):
The request object. Request to search for potentially
sensitive info in a ContentItem.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3299,7 +3282,6 @@ def __call__(
request (~.dlp.ListDeidentifyTemplatesRequest):
The request object. Request message for
ListDeidentifyTemplates.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3403,7 +3385,6 @@ def __call__(
request (~.dlp.ListDlpJobsRequest):
The request object. The request message for listing DLP
jobs.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3582,7 +3563,6 @@ def __call__(
request (~.dlp.ListInspectTemplatesRequest):
The request object. Request message for
ListInspectTemplates.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3782,7 +3762,6 @@ def __call__(
request (~.dlp.ListStoredInfoTypesRequest):
The request object. Request message for
ListStoredInfoTypes.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3877,7 +3856,6 @@ def __call__(
The request object. Request to search for potentially
sensitive info in an image and redact it
by covering it with a colored rectangle.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -4081,7 +4059,6 @@ def __call__(
request (~.dlp.UpdateDeidentifyTemplateRequest):
The request object. Request message for
UpdateDeidentifyTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -4200,7 +4177,6 @@ def __call__(
request (~.dlp.UpdateInspectTemplateRequest):
The request object. Request message for
UpdateInspectTemplate.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -4432,7 +4408,6 @@ def __call__(
request (~.dlp.UpdateStoredInfoTypeRequest):
The request object. Request message for
UpdateStoredInfoType.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down