Class: Google::Apis::DlpV2beta2::DLPService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DlpV2beta2::DLPService
- Defined in:
- generated/google/apis/dlp_v2beta2/service.rb
Overview
DLP API
The Google Data Loss Prevention API provides methods for detection of privacy- sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#analyze_project_data_source(parent, google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform repository.
-
#cancel_project_dlp_job(name, google_privacy_dlp_v2beta2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running DlpJob.
-
#create_organization_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Creates an Deidentify template for re-using frequently used configuration for Deidentifying content, images, and storage.
-
#create_organization_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Creates an inspect template for re-using frequently used configuration for inspecting content, images, and storage.
-
#create_project_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Creates an Deidentify template for re-using frequently used configuration for Deidentifying content, images, and storage.
-
#create_project_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Creates an inspect template for re-using frequently used configuration for inspecting content, images, and storage.
-
#deidentify_project_content(parent, google_privacy_dlp_v2beta2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse
De-identifies potentially sensitive info from a ContentItem.
-
#delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
-
#delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
-
#delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
-
#delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes a long-running DlpJob.
-
#delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
-
#get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Gets an inspect template.
-
#get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Gets an inspect template.
-
#get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Gets an inspect template.
-
#get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Gets the latest state of a long-running DlpJob.
-
#get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Gets an inspect template.
-
#initialize ⇒ DLPService
constructor
A new instance of DLPService.
-
#inspect_project_content(parent, google_privacy_dlp_v2beta2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse
Finds potentially sensitive info in content.
-
#inspect_project_data_source(parent, google_privacy_dlp_v2beta2_inspect_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Schedules a job scanning content in a Google Cloud Platform data repository.
-
#list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse
Returns sensitive information types DLP supports.
-
#list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
Lists inspect templates.
-
#list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
Lists inspect templates.
-
#list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
Lists inspect templates.
-
#list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse
Lists DlpJobs that match the specified filter in the request.
-
#list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
Lists inspect templates.
-
#patch_organization_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Updates the inspect template.
-
#patch_organization_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Updates the inspect template.
-
#patch_project_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Updates the inspect template.
-
#patch_project_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Updates the inspect template.
-
#redact_project_image(parent, google_privacy_dlp_v2beta2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
Redacts potentially sensitive info from an image.
-
#reidentify_project_content(parent, google_privacy_dlp_v2beta2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse
Re-identify content that has been de-identified.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ DLPService
Returns a new instance of DLPService
47 48 49 50 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 47 def initialize super('https://dlp.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#analyze_project_data_source(parent, google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform repository. [How-to guide`(/dlp/docs/compute-risk-analysis)
554 555 556 557 558 559 560 561 562 563 564 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 554 def analyze_project_data_source(parent, google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:analyze', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest::Representation command.request_object = google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_project_dlp_job(name, google_privacy_dlp_v2beta2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed.
793 794 795 796 797 798 799 800 801 802 803 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 793 def cancel_project_dlp_job(name, google_privacy_dlp_v2beta2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+name}:cancel', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CancelDlpJobRequest::Representation command.request_object = google_privacy_dlp_v2beta2_cancel_dlp_job_request_object command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_organization_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Creates an Deidentify template for re-using frequently used configuration for Deidentifying content, images, and storage.
111 112 113 114 115 116 117 118 119 120 121 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 111 def create_organization_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_organization_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Creates an inspect template for re-using frequently used configuration for inspecting content, images, and storage.
281 282 283 284 285 286 287 288 289 290 291 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 281 def create_organization_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Creates an Deidentify template for re-using frequently used configuration for Deidentifying content, images, and storage.
623 624 625 626 627 628 629 630 631 632 633 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 623 def create_project_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Creates an inspect template for re-using frequently used configuration for inspecting content, images, and storage.
983 984 985 986 987 988 989 990 991 992 993 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 983 def create_project_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#deidentify_project_content(parent, google_privacy_dlp_v2beta2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. How-to guide
451 452 453 454 455 456 457 458 459 460 461 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 451 def deidentify_project_content(parent, google_privacy_dlp_v2beta2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/content:deidentify', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentRequest::Representation command.request_object = google_privacy_dlp_v2beta2_deidentify_content_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
144 145 146 147 148 149 150 151 152 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 144 def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
314 315 316 317 318 319 320 321 322 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 314 def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
656 657 658 659 660 661 662 663 664 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 656 def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be cancelled if possible.
827 828 829 830 831 832 833 834 835 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 827 def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GoogleProtobufEmpty
Deletes inspect templates.
1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 1016 def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Gets an inspect template.
175 176 177 178 179 180 181 182 183 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 175 def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Gets an inspect template.
345 346 347 348 349 350 351 352 353 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 345 def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Gets an inspect template.
687 688 689 690 691 692 693 694 695 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 687 def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Gets the latest state of a long-running DlpJob.
857 858 859 860 861 862 863 864 865 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 857 def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Gets an inspect template.
1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 1047 def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+name}', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#inspect_project_content(parent, google_privacy_dlp_v2beta2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. How-to guide for text, How-to guide for images
487 488 489 490 491 492 493 494 495 496 497 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 487 def inspect_project_content(parent, google_privacy_dlp_v2beta2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/content:inspect', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentRequest::Representation command.request_object = google_privacy_dlp_v2beta2_inspect_content_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#inspect_project_data_source(parent, google_privacy_dlp_v2beta2_inspect_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
Schedules a job scanning content in a Google Cloud Platform data repository. How-to guide
588 589 590 591 592 593 594 595 596 597 598 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 588 def inspect_project_data_source(parent, google_privacy_dlp_v2beta2_inspect_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:inspect', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectDataSourceRequest::Representation command.request_object = google_privacy_dlp_v2beta2_inspect_data_source_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse
Returns sensitive information types DLP supports.
77 78 79 80 81 82 83 84 85 86 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 77 def list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/infoTypes', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse command.query['filter'] = filter unless filter.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
Lists inspect templates.
212 213 214 215 216 217 218 219 220 221 222 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 212 def list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
Lists inspect templates.
382 383 384 385 386 387 388 389 390 391 392 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 382 def list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
Lists inspect templates.
724 725 726 727 728 729 730 731 732 733 734 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 724 def list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse
Lists DlpJobs that match the specified filter in the request.
911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 911 def list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+parent}/dlpJobs', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
Lists inspect templates.
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 1084 def list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', ) command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_organization_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Updates the inspect template.
246 247 248 249 250 251 252 253 254 255 256 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 246 def patch_organization_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta2/{+name}', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_organization_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Updates the inspect template.
416 417 418 419 420 421 422 423 424 425 426 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 416 def patch_organization_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta2/{+name}', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
Updates the inspect template.
758 759 760 761 762 763 764 765 766 767 768 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 758 def patch_project_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta2/{+name}', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
Updates the inspect template.
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 1118 def patch_project_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta2/{+name}', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#redact_project_image(parent, google_privacy_dlp_v2beta2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. How-to guide
948 949 950 951 952 953 954 955 956 957 958 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 948 def redact_project_image(parent, google_privacy_dlp_v2beta2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/image:redact', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest::Representation command.request_object = google_privacy_dlp_v2beta2_redact_image_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reidentify_project_content(parent, google_privacy_dlp_v2beta2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse
Re-identify content that has been de-identified.
520 521 522 523 524 525 526 527 528 529 530 |
# File 'generated/google/apis/dlp_v2beta2/service.rb', line 520 def reidentify_project_content(parent, google_privacy_dlp_v2beta2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta2/{+parent}/content:reidentify', ) command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentRequest::Representation command.request_object = google_privacy_dlp_v2beta2_reidentify_content_request_object command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse::Representation command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |