Class: Google::Apis::DlpV2beta1::DLPService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DlpV2beta1::DLPService
- Defined in:
- generated/google/apis/dlp_v2beta1/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
-
#analyze_data_source(google_privacy_dlp_v2beta1_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform repository.
-
#cancel_inspect_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
Cancels an operation.
-
#cancel_risk_analysis_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
Cancels an operation.
-
#create_inspect_operation(google_privacy_dlp_v2beta1_create_inspect_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Schedules a job scanning content in a Google Cloud Platform data repository.
-
#deidentify_content(google_privacy_dlp_v2beta1_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentResponse
De-identifies potentially sensitive info from a list of strings.
-
#delete_inspect_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
This method is not supported and the server returns
UNIMPLEMENTED
. -
#delete_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
This method is not supported and the server returns
UNIMPLEMENTED
. -
#get_inspect_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#initialize ⇒ DLPService
constructor
A new instance of DLPService.
-
#inspect_content(google_privacy_dlp_v2beta1_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentResponse
Finds potentially sensitive info in a list of strings.
-
#list_inspect_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse
Fetches the list of long running operations.
-
#list_inspect_result_findings(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInspectFindingsResponse
Returns list of results for given inspect operation result set id.
-
#list_risk_analysis_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse
Fetches the list of long running operations.
-
#list_root_categories(language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListRootCategoriesResponse
Returns the list of root categories of sensitive information.
-
#list_root_category_info_types(category, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInfoTypesResponse
Returns sensitive information types for given category.
-
#redact_content(google_privacy_dlp_v2beta1_redact_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentResponse
Redacts potentially sensitive info from a list of strings.
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_v2beta1/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_v2beta1/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_v2beta1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#analyze_data_source(google_privacy_dlp_v2beta1_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform repository.
165 166 167 168 169 170 171 172 173 174 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 165 def analyze_data_source(google_privacy_dlp_v2beta1_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/dataSource:analyze', ) command.request_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest::Representation command.request_object = google_privacy_dlp_v2beta1_analyze_data_source_risk_request_object command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_inspect_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
Cancels an operation. Use the inspect.operations.get
to check whether the
cancellation succeeded or the operation completed despite cancellation.
198 199 200 201 202 203 204 205 206 207 208 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 198 def cancel_inspect_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/{+name}:cancel', ) command.request_representation = Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest::Representation command.request_object = google_longrunning_cancel_operation_request_object command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta1::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 |
#cancel_risk_analysis_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
Cancels an operation. Use the inspect.operations.get
to check whether the
cancellation succeeded or the operation completed despite cancellation.
414 415 416 417 418 419 420 421 422 423 424 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 414 def cancel_risk_analysis_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/{+name}:cancel', ) command.request_representation = Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest::Representation command.request_object = google_longrunning_cancel_operation_request_object command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta1::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_inspect_operation(google_privacy_dlp_v2beta1_create_inspect_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Schedules a job scanning content in a Google Cloud Platform data repository.
230 231 232 233 234 235 236 237 238 239 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 230 def create_inspect_operation(google_privacy_dlp_v2beta1_create_inspect_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/inspect/operations', ) command.request_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CreateInspectOperationRequest::Representation command.request_object = google_privacy_dlp_v2beta1_create_inspect_operation_request_object command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#deidentify_content(google_privacy_dlp_v2beta1_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentResponse
De-identifies potentially sensitive info from a list of strings. This method has limits on input size and output size.
72 73 74 75 76 77 78 79 80 81 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 72 def deidentify_content(google_privacy_dlp_v2beta1_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/content:deidentify', ) command.request_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentRequest::Representation command.request_object = google_privacy_dlp_v2beta1_deidentify_content_request_object command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1DeidentifyContentResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_inspect_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
This method is not supported and the server returns UNIMPLEMENTED
.
261 262 263 264 265 266 267 268 269 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 261 def delete_inspect_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta1::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_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleProtobufEmpty
This method is not supported and the server returns UNIMPLEMENTED
.
446 447 448 449 450 451 452 453 454 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 446 def delete_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::DlpV2beta1::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_inspect_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
293 294 295 296 297 298 299 300 301 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 293 def get_inspect_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation 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_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
478 479 480 481 482 483 484 485 486 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 478 def get_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation 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_content(google_privacy_dlp_v2beta1_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentResponse
Finds potentially sensitive info in a list of strings. This method has limits on input size, processing time, and output size.
103 104 105 106 107 108 109 110 111 112 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 103 def inspect_content(google_privacy_dlp_v2beta1_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/content:inspect', ) command.request_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentRequest::Representation command.request_object = google_privacy_dlp_v2beta1_inspect_content_request_object command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InspectContentResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_inspect_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse
Fetches the list of long running operations.
329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 329 def list_inspect_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_inspect_result_findings(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInspectFindingsResponse
Returns list of results for given inspect operation result set id.
379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 379 def list_inspect_result_findings(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}/findings', ) command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInspectFindingsResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInspectFindingsResponse command.params['name'] = name unless name.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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_risk_analysis_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse
Fetches the list of long running operations.
514 515 516 517 518 519 520 521 522 523 524 525 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 514 def list_risk_analysis_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/{+name}', ) command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_root_categories(language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListRootCategoriesResponse
Returns the list of root categories of sensitive information.
549 550 551 552 553 554 555 556 557 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 549 def list_root_categories(language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/rootCategories', ) command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListRootCategoriesResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListRootCategoriesResponse 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_root_category_info_types(category, language_code: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInfoTypesResponse
Returns sensitive information types for given category.
583 584 585 586 587 588 589 590 591 592 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 583 def list_root_category_info_types(category, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta1/rootCategories/{+category}/infoTypes', ) command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInfoTypesResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ListInfoTypesResponse command.params['category'] = category unless category.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 |
#redact_content(google_privacy_dlp_v2beta1_redact_content_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentResponse
Redacts potentially sensitive info from a list of strings. This method has limits on input size, processing time, and output size.
134 135 136 137 138 139 140 141 142 143 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 134 def redact_content(google_privacy_dlp_v2beta1_redact_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta1/content:redact', ) command.request_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentRequest::Representation command.request_object = google_privacy_dlp_v2beta1_redact_content_request_object command.response_representation = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentResponse::Representation command.response_class = Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1RedactContentResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |