diff --git a/google/cloud/dlp_v2/services/dlp_service/async_client.py b/google/cloud/dlp_v2/services/dlp_service/async_client.py index 7b891db2..54191deb 100644 --- a/google/cloud/dlp_v2/services/dlp_service/async_client.py +++ b/google/cloud/dlp_v2/services/dlp_service/async_client.py @@ -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. @@ -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. @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. diff --git a/google/cloud/dlp_v2/services/dlp_service/client.py b/google/cloud/dlp_v2/services/dlp_service/client.py index 9afd953c..6005e8d8 100644 --- a/google/cloud/dlp_v2/services/dlp_service/client.py +++ b/google/cloud/dlp_v2/services/dlp_service/client.py @@ -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. @@ -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. @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. diff --git a/google/cloud/dlp_v2/services/dlp_service/transports/rest.py b/google/cloud/dlp_v2/services/dlp_service/transports/rest.py index 99ca1aae..c9917483 100644 --- a/google/cloud/dlp_v2/services/dlp_service/transports/rest.py +++ b/google/cloud/dlp_v2/services/dlp_service/transports/rest.py @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/google/cloud/dlp_v2/types/storage.py b/google/cloud/dlp_v2/types/storage.py index 1d8ac35d..96e83e5e 100644 --- a/google/cloud/dlp_v2/types/storage.py +++ b/google/cloud/dlp_v2/types/storage.py @@ -94,46 +94,71 @@ class FileType(proto.Enum): storage scan. TEXT_FILE (2): Included file extensions: - asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, - cxx, c++, cs, css, dart, dat, dot, eml,, - epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, - htm, mkd, markdown, m, ml, mli, perl, pl, - plist, pm, php, phtml, pht, properties, py, - pyw, rb, rbw, rs, rss, rc, scala, sh, sql, - swift, tex, shtml, shtm, xhtml, lhs, ics, ini, - java, js, json, kix, kml, ocaml, md, txt, - text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, - xsl, xsd, yml, yaml. + + :: + + asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, + dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, + mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, + properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, + shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, + txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. IMAGE (3): - Included file extensions: bmp, gif, jpg, jpeg, jpe, png. + Included file extensions: + + :: + + bmp, gif, jpg, jpeg, jpe, png. + bytes_limit_per_file has no effect on image files. Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. WORD (5): - Word files >30 MB will be scanned as binary - files. Included file extensions: - docx, dotx, docm, dotm + Word files >30 MB will be scanned as binary files. Included + file extensions: + + :: + + docx, dotx, docm, dotm PDF (6): - PDF files >30 MB will be scanned as binary - files. Included file extensions: - pdf + PDF files >30 MB will be scanned as binary files. Included + file extensions: + + :: + + pdf AVRO (7): Included file extensions: - avro + + :: + + avro CSV (8): Included file extensions: - csv + + :: + + csv TSV (9): Included file extensions: - tsv + + :: + + tsv POWERPOINT (11): - Powerpoint files >30 MB will be scanned as - binary files. Included file extensions: - pptx, pptm, potx, potm, pot + Powerpoint files >30 MB will be scanned as binary files. + Included file extensions: + + :: + + pptx, pptm, potx, potm, pot EXCEL (12): - Excel files >30 MB will be scanned as binary - files. Included file extensions: - xlsx, xlsm, xltx, xltm + Excel files >30 MB will be scanned as binary files. Included + file extensions: + + :: + + xlsx, xlsm, xltx, xltm """ FILE_TYPE_UNSPECIFIED = 0 BINARY_FILE = 1 diff --git a/samples/generated_samples/snippet_metadata_google.privacy.dlp.v2.json b/samples/generated_samples/snippet_metadata_google.privacy.dlp.v2.json index 17fb6177..956f9eab 100644 --- a/samples/generated_samples/snippet_metadata_google.privacy.dlp.v2.json +++ b/samples/generated_samples/snippet_metadata_google.privacy.dlp.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dlp", - "version": "3.12.0" + "version": "0.1.0" }, "snippets": [ {