Class: Google::Apis::DlpV2::DLPService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DlpV2::DLPService
- Defined in:
- generated/google/apis/dlp_v2/service.rb
Overview
Cloud Data Loss Prevention (DLP) API
Provides methods for detection, risk analysis, and de-identification 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
-
#cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running DlpJob.
-
#create_organization_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage.
-
#create_organization_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage.
-
#create_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Creates a pre-built stored infoType to be used for inspection.
-
#create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage.
-
#create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
Creates a new job to inspect storage or calculate risk metrics.
-
#create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage.
-
#create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule.
-
#create_project_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Creates a pre-built stored infoType to be used for inspection.
-
#deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
De-identifies potentially sensitive info from a ContentItem.
-
#delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a DeidentifyTemplate.
-
#delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes an InspectTemplate.
-
#delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a stored infoType.
-
#delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a DeidentifyTemplate.
-
#delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a long-running DlpJob.
-
#delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes an InspectTemplate.
-
#delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a job trigger.
-
#delete_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a stored infoType.
-
#get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Gets a DeidentifyTemplate.
-
#get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Gets an InspectTemplate.
-
#get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Gets a stored infoType.
-
#get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Gets a DeidentifyTemplate.
-
#get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
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::DlpV2::GooglePrivacyDlpV2InspectTemplate
Gets an InspectTemplate.
-
#get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Gets a job trigger.
-
#get_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Gets a stored infoType.
-
#initialize ⇒ DLPService
constructor
A new instance of DLPService.
-
#inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
Finds potentially sensitive info in content.
-
#list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
Returns a list of the sensitive information types that the DLP API supports.
-
#list_organization_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
Lists DeidentifyTemplates.
-
#list_organization_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
Lists InspectTemplates.
-
#list_organization_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
Lists stored infoTypes.
-
#list_project_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
Lists DeidentifyTemplates.
-
#list_project_dlp_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
Lists DlpJobs that match the specified filter in the request.
-
#list_project_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
Lists InspectTemplates.
-
#list_project_job_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
Lists job triggers.
-
#list_project_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
Lists stored infoTypes.
-
#patch_organization_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Updates the DeidentifyTemplate.
-
#patch_organization_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Updates the InspectTemplate.
-
#patch_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Updates the stored infoType by creating a new version.
-
#patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Updates the DeidentifyTemplate.
-
#patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Updates the InspectTemplate.
-
#patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Updates a job trigger.
-
#patch_project_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Updates the stored infoType by creating a new version.
-
#redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
Redacts potentially sensitive info from an image.
-
#reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
Re-identifies 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_v2/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_v2/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_v2/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1006 def cancel_project_dlp_job(name, google_privacy_dlp_v2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:cancel', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CancelDlpJobRequest::Representation command.request_object = google_privacy_dlp_v2_cancel_dlp_job_request_object command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
115 116 117 118 119 120 121 122 123 124 125 |
# File 'generated/google/apis/dlp_v2/service.rb', line 115 def create_organization_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
309 310 311 312 313 314 315 316 317 318 319 |
# File 'generated/google/apis/dlp_v2/service.rb', line 309 def create_organization_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
499 500 501 502 503 504 505 506 507 508 509 |
# File 'generated/google/apis/dlp_v2/service.rb', line 499 def create_organization_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Creates a DeidentifyTemplate for re-using frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
811 812 813 814 815 816 817 818 819 820 821 |
# File 'generated/google/apis/dlp_v2/service.rb', line 811 def create_project_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1044 def create_project_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob 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_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Creates an InspectTemplate for re-using frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1258 def create_project_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1447 def create_project_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger 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_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1656 def create_project_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
698 699 700 701 702 703 704 705 706 707 708 |
# File 'generated/google/apis/dlp_v2/service.rb', line 698 def deidentify_project_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation command.request_object = google_privacy_dlp_v2_deidentify_content_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse 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::DlpV2::GoogleProtobufEmpty
Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
151 152 153 154 155 156 157 158 159 |
# File 'generated/google/apis/dlp_v2/service.rb', line 151 def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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::DlpV2::GoogleProtobufEmpty
Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
344 345 346 347 348 349 350 351 352 |
# File 'generated/google/apis/dlp_v2/service.rb', line 344 def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
535 536 537 538 539 540 541 542 543 |
# File 'generated/google/apis/dlp_v2/service.rb', line 535 def delete_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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::DlpV2::GoogleProtobufEmpty
Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
847 848 849 850 851 852 853 854 855 |
# File 'generated/google/apis/dlp_v2/service.rb', line 847 def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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::DlpV2::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. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
1080 1081 1082 1083 1084 1085 1086 1087 1088 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1080 def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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::DlpV2::GoogleProtobufEmpty
Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1293 1294 1295 1296 1297 1298 1299 1300 1301 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1293 def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
1481 1482 1483 1484 1485 1486 1487 1488 1489 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1481 def delete_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GoogleProtobufEmpty
Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
1692 1693 1694 1695 1696 1697 1698 1699 1700 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1692 def delete_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2::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::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
185 186 187 188 189 190 191 192 193 |
# File 'generated/google/apis/dlp_v2/service.rb', line 185 def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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::DlpV2::GooglePrivacyDlpV2InspectTemplate
Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
377 378 379 380 381 382 383 384 385 |
# File 'generated/google/apis/dlp_v2/service.rb', line 377 def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
569 570 571 572 573 574 575 576 577 |
# File 'generated/google/apis/dlp_v2/service.rb', line 569 def get_organization_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
881 882 883 884 885 886 887 888 889 |
# File 'generated/google/apis/dlp_v2/service.rb', line 881 def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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::DlpV2::GooglePrivacyDlpV2DlpJob
Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
1112 1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1112 def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob 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::DlpV2::GooglePrivacyDlpV2InspectTemplate
Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1326 1327 1328 1329 1330 1331 1332 1333 1334 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1326 def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_job_trigger(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
1513 1514 1515 1516 1517 1518 1519 1520 1521 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1513 def get_project_job_trigger(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger 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_stored_info_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1726 def get_project_stored_info_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text,
737 738 739 740 741 742 743 744 745 746 747 |
# File 'generated/google/apis/dlp_v2/service.rb', line 737 def inspect_project_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/content:inspect', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation command.request_object = google_privacy_dlp_v2_inspect_content_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse 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::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more.
79 80 81 82 83 84 85 86 87 88 |
# File 'generated/google/apis/dlp_v2/service.rb', line 79 def list_info_types(filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/infoTypes', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse 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, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'generated/google/apis/dlp_v2/service.rb', line 235 def list_organization_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
426 427 428 429 430 431 432 433 434 435 436 437 |
# File 'generated/google/apis/dlp_v2/service.rb', line 426 def list_organization_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'generated/google/apis/dlp_v2/service.rb', line 620 def list_organization_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
931 932 933 934 935 936 937 938 939 940 941 942 |
# File 'generated/google/apis/dlp_v2/service.rb', line 931 def list_project_deidentify_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1180 def list_project_dlp_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1375 def list_project_inspect_templates(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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_job_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1583 def list_project_job_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1777 def list_project_stored_info_types(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', ) command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse command.params['parent'] = parent unless parent.nil? command.query['orderBy'] = order_by unless order_by.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_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
273 274 275 276 277 278 279 280 281 282 283 |
# File 'generated/google/apis/dlp_v2/service.rb', line 273 def patch_organization_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
463 464 465 466 467 468 469 470 471 472 473 |
# File 'generated/google/apis/dlp_v2/service.rb', line 463 def patch_organization_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
659 660 661 662 663 664 665 666 667 668 669 |
# File 'generated/google/apis/dlp_v2/service.rb', line 659 def patch_organization_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more.
969 970 971 972 973 974 975 976 977 978 979 |
# File 'generated/google/apis/dlp_v2/service.rb', line 969 def patch_project_deidentify_template(name, google_privacy_dlp_v2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_update_deidentify_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate 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_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1412 def patch_project_inspect_template(name, google_privacy_dlp_v2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateInspectTemplateRequest::Representation command.request_object = google_privacy_dlp_v2_update_inspect_template_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate 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_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1620 def patch_project_job_trigger(name, google_privacy_dlp_v2_update_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateJobTriggerRequest::Representation command.request_object = google_privacy_dlp_v2_update_job_trigger_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger 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_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more.
1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1816 def patch_project_stored_info_type(name, google_privacy_dlp_v2_update_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateStoredInfoTypeRequest::Representation command.request_object = google_privacy_dlp_v2_update_stored_info_type_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType 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_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 |
# File 'generated/google/apis/dlp_v2/service.rb', line 1222 def redact_project_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/image:redact', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation command.request_object = google_privacy_dlp_v2_redact_image_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse 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_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re- identification_in_free_text_code_example to learn more.
774 775 776 777 778 779 780 781 782 783 784 |
# File 'generated/google/apis/dlp_v2/service.rb', line 774 def reidentify_project_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', ) command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation command.request_object = google_privacy_dlp_v2_reidentify_content_request_object command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse 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 |