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
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
-
#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.
-
#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
Fetch 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
Fetch 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
#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 get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.
136 137 138 139 140 141 142 143 144 145 146 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 136 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 get method to check whether the cancellation succeeded or whether the operation completed despite cancellation.
352 353 354 355 356 357 358 359 360 361 362 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 352 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.
168 169 170 171 172 173 174 175 176 177 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 168 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 |
#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.
199 200 201 202 203 204 205 206 207 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 199 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.
384 385 386 387 388 389 390 391 392 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 384 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.
231 232 233 234 235 236 237 238 239 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 231 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.
416 417 418 419 420 421 422 423 424 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 416 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.
72 73 74 75 76 77 78 79 80 81 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 72 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
Fetch the list of long running operations.
267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 267 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.
317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 317 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
Fetch the list of long running operations.
452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 452 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.
487 488 489 490 491 492 493 494 495 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 487 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.
521 522 523 524 525 526 527 528 529 530 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 521 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.
103 104 105 106 107 108 109 110 111 112 |
# File 'generated/google/apis/dlp_v2beta1/service.rb', line 103 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 |