cloudmersive-dlp-api-client 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +124 -0
  4. data/Rakefile +8 -0
  5. data/cloudmersive-dlp-api-client.gemspec +45 -0
  6. data/docs/DetectApi.md +232 -0
  7. data/docs/DlpAdvancedDetectionRequest.md +43 -0
  8. data/docs/DlpAdvancedDetectionResponse.md +44 -0
  9. data/docs/DlpAdvancedDocumentDetectionRequest.md +46 -0
  10. data/docs/DlpAdvancedDocumentRedactionRequest.md +47 -0
  11. data/docs/DlpAdvancedDocumentRedactionResponse.md +46 -0
  12. data/docs/DlpAdvancedRedactionRequest.md +44 -0
  13. data/docs/DlpAdvancedRedactionResponse.md +44 -0
  14. data/docs/DlpDetectionRequest.md +31 -0
  15. data/docs/DlpDetectionResponse.md +31 -0
  16. data/docs/DlpDocumentDetectionRequest.md +33 -0
  17. data/docs/DlpDocumentRedactionRequest.md +34 -0
  18. data/docs/DlpDocumentRedactionResponse.md +33 -0
  19. data/docs/DlpRedactionRequest.md +32 -0
  20. data/docs/DlpRedactionResponse.md +32 -0
  21. data/docs/RedactApi.md +232 -0
  22. data/docs/RedactedPageInfo.md +8 -0
  23. data/git_push.sh +55 -0
  24. data/lib/cloudmersive-dlp-api-client/api/detect_api.rb +223 -0
  25. data/lib/cloudmersive-dlp-api-client/api/redact_api.rb +223 -0
  26. data/lib/cloudmersive-dlp-api-client/api_client.rb +391 -0
  27. data/lib/cloudmersive-dlp-api-client/api_error.rb +38 -0
  28. data/lib/cloudmersive-dlp-api-client/configuration.rb +209 -0
  29. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_request.rb +536 -0
  30. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_response.rb +546 -0
  31. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb +581 -0
  32. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_request.rb +591 -0
  33. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_response.rb +583 -0
  34. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_request.rb +546 -0
  35. data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_response.rb +546 -0
  36. data/lib/cloudmersive-dlp-api-client/models/dlp_detection_request.rb +416 -0
  37. data/lib/cloudmersive-dlp-api-client/models/dlp_detection_response.rb +416 -0
  38. data/lib/cloudmersive-dlp-api-client/models/dlp_document_detection_request.rb +451 -0
  39. data/lib/cloudmersive-dlp-api-client/models/dlp_document_redaction_request.rb +461 -0
  40. data/lib/cloudmersive-dlp-api-client/models/dlp_document_redaction_response.rb +453 -0
  41. data/lib/cloudmersive-dlp-api-client/models/dlp_redaction_request.rb +426 -0
  42. data/lib/cloudmersive-dlp-api-client/models/dlp_redaction_response.rb +426 -0
  43. data/lib/cloudmersive-dlp-api-client/models/redacted_page_info.rb +186 -0
  44. data/lib/cloudmersive-dlp-api-client/version.rb +15 -0
  45. data/lib/cloudmersive-dlp-api-client.rb +56 -0
  46. data/spec/api/detect_api_spec.rb +83 -0
  47. data/spec/api/redact_api_spec.rb +83 -0
  48. data/spec/api_client_spec.rb +243 -0
  49. data/spec/configuration_spec.rb +42 -0
  50. data/spec/models/dlp_advanced_detection_request_spec.rb +251 -0
  51. data/spec/models/dlp_advanced_detection_response_spec.rb +257 -0
  52. data/spec/models/dlp_advanced_document_detection_request_spec.rb +269 -0
  53. data/spec/models/dlp_advanced_document_redaction_request_spec.rb +275 -0
  54. data/spec/models/dlp_advanced_document_redaction_response_spec.rb +269 -0
  55. data/spec/models/dlp_advanced_redaction_request_spec.rb +257 -0
  56. data/spec/models/dlp_advanced_redaction_response_spec.rb +257 -0
  57. data/spec/models/dlp_detection_request_spec.rb +179 -0
  58. data/spec/models/dlp_detection_response_spec.rb +179 -0
  59. data/spec/models/dlp_document_detection_request_spec.rb +191 -0
  60. data/spec/models/dlp_document_redaction_request_spec.rb +197 -0
  61. data/spec/models/dlp_document_redaction_response_spec.rb +191 -0
  62. data/spec/models/dlp_redaction_request_spec.rb +185 -0
  63. data/spec/models/dlp_redaction_response_spec.rb +185 -0
  64. data/spec/models/redacted_page_info_spec.rb +41 -0
  65. data/spec/spec_helper.rb +111 -0
  66. metadata +290 -0
@@ -0,0 +1,46 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedDocumentRedactionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **redacted_document** | **String** | The redacted document as a rasterized PDF with PII regions redacted, or the original file if no disallowed PII was found. | [optional]
7
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected; false if any disallowed type was found and redacted. | [optional]
8
+ **contains_email_address** | **BOOLEAN** | True if the document contains email addresses. | [optional]
9
+ **contains_phone_number** | **BOOLEAN** | True if the document contains phone numbers. | [optional]
10
+ **contains_street_address** | **BOOLEAN** | True if the document contains street addresses. | [optional]
11
+ **contains_person_name** | **BOOLEAN** | True if the document contains person names. | [optional]
12
+ **contains_birth_date** | **BOOLEAN** | True if the document contains birth dates. | [optional]
13
+ **contains_passport_number** | **BOOLEAN** | True if the document contains passport numbers. | [optional]
14
+ **contains_drivers_license** | **BOOLEAN** | True if the document contains drivers license numbers. | [optional]
15
+ **contains_social_security_number** | **BOOLEAN** | True if the document contains social security numbers. | [optional]
16
+ **contains_taxpayer_id** | **BOOLEAN** | True if the document contains taxpayer IDs. | [optional]
17
+ **contains_credit_card_number** | **BOOLEAN** | True if the document contains credit card numbers. | [optional]
18
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the document contains credit card expiration dates. | [optional]
19
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the document contains credit card verification codes. | [optional]
20
+ **contains_bank_account_number** | **BOOLEAN** | True if the document contains bank account numbers. | [optional]
21
+ **contains_iban** | **BOOLEAN** | True if the document contains IBANs. | [optional]
22
+ **contains_health_insurance_number** | **BOOLEAN** | True if the document contains health insurance numbers. | [optional]
23
+ **contains_bearer_token** | **BOOLEAN** | True if the document contains bearer tokens. | [optional]
24
+ **contains_http_cookie** | **BOOLEAN** | True if the document contains HTTP cookies. | [optional]
25
+ **contains_private_keys** | **BOOLEAN** | True if the document contains private keys. | [optional]
26
+ **contains_credentials** | **BOOLEAN** | True if the document contains credentials (usernames/passwords). | [optional]
27
+ **contains_deep_web_urls** | **BOOLEAN** | True if the document contains deep web URLs (.onion). | [optional]
28
+ **contains_source_code** | **BOOLEAN** | True if the document contains source code. | [optional]
29
+ **contains_ip_address** | **BOOLEAN** | True if the document contains IP addresses. | [optional]
30
+ **contains_mac_address** | **BOOLEAN** | True if the document contains MAC addresses. | [optional]
31
+ **contains_health_insurance_member_id** | **BOOLEAN** | True if the document contains health insurance member IDs. | [optional]
32
+ **contains_health_injury_or_disease** | **BOOLEAN** | True if the document contains references to injuries or diseases. | [optional]
33
+ **contains_health_type_of_treatment** | **BOOLEAN** | True if the document contains references to types of medical treatment. | [optional]
34
+ **contains_health_date_and_time_of_treatment** | **BOOLEAN** | True if the document contains dates and times of medical treatment. | [optional]
35
+ **contains_health_plan_beneficiary_number** | **BOOLEAN** | True if the document contains health plan beneficiary numbers. | [optional]
36
+ **contains_health_payments_made_for_treatment** | **BOOLEAN** | True if the document contains payments made for medical treatment. | [optional]
37
+ **contains_faces** | **BOOLEAN** | True if the document contains identifiable human faces. | [optional]
38
+ **contains_vehicle_id** | **BOOLEAN** | True if the document contains vehicle identifiers (e.g. license plates, VINs). | [optional]
39
+ **contains_device_id** | **BOOLEAN** | True if the document contains device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs). | [optional]
40
+ **contains_names_of_relatives** | **BOOLEAN** | True if the document contains names of relatives. | [optional]
41
+ **contains_health_universal_record_locator** | **BOOLEAN** | True if the document contains health universal record locators (URLs). | [optional]
42
+ **contains_biometrics** | **BOOLEAN** | True if the document contains biometric data references (e.g. fingerprints, retinal scans, voiceprints). | [optional]
43
+ **pages_redacted** | [**Array<RedactedPageInfo>**](RedactedPageInfo.md) | List of pages that were redacted (had PII regions redacted). | [optional]
44
+ **analysis_rationale** | **String** | Rationale for why the conclusion was formed. Only populated when ProvideAnalysisRationale is set to true in the request. | [optional]
45
+
46
+
@@ -0,0 +1,44 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedRedactionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_text** | **String** | Text to scan for PII and redact sensitive data from. | [optional]
7
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the input text and not redact them. | [optional]
8
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the input text and not redact them. | [optional]
9
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the input text and not redact them. | [optional]
10
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the input text and not redact them. | [optional]
11
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the input text and not redact them. | [optional]
12
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the input text and not redact them. | [optional]
13
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the input text and not redact them. | [optional]
14
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the input text and not redact them. | [optional]
15
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the input text and not redact them. | [optional]
16
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the input text and not redact them. | [optional]
17
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the input text and not redact them. | [optional]
18
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the input text and not redact them. | [optional]
19
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the input text and not redact them. | [optional]
20
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the input text and not redact them. | [optional]
21
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the input text and not redact them. | [optional]
22
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the input text and not redact them. | [optional]
23
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the input text and not redact them. | [optional]
24
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the input text and not redact them. | [optional]
25
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the input text and not redact them. | [optional]
26
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the input text and not redact them. | [optional]
27
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the input text and not redact it. | [optional]
28
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the input text and not redact them. | [optional]
29
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the input text and not redact them. | [optional]
30
+ **allow_health_insurance_member_id** | **BOOLEAN** | Set to true to allow health insurance member IDs in the input text and not redact them. | [optional]
31
+ **allow_health_injury_or_disease** | **BOOLEAN** | Set to true to allow references to injuries or diseases in the input text and not redact them. | [optional]
32
+ **allow_health_type_of_treatment** | **BOOLEAN** | Set to true to allow references to types of medical treatment in the input text and not redact them. | [optional]
33
+ **allow_health_date_and_time_of_treatment** | **BOOLEAN** | Set to true to allow dates and times of medical treatment in the input text and not redact them. | [optional]
34
+ **allow_health_plan_beneficiary_number** | **BOOLEAN** | Set to true to allow health plan beneficiary numbers in the input text and not redact them. | [optional]
35
+ **allow_health_payments_made_for_treatment** | **BOOLEAN** | Set to true to allow payments made for medical treatment in the input text and not redact them. | [optional]
36
+ **allow_vehicle_id** | **BOOLEAN** | Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the input text and not redact them. | [optional]
37
+ **allow_device_id** | **BOOLEAN** | Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the input text and not redact them. | [optional]
38
+ **allow_names_of_relatives** | **BOOLEAN** | Set to true to allow names of relatives in the input text and not redact them. | [optional]
39
+ **allow_health_universal_record_locator** | **BOOLEAN** | Set to true to allow health universal record locators (URLs) in the input text and not redact them. | [optional]
40
+ **allow_biometrics** | **BOOLEAN** | Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the input text and not redact them. | [optional]
41
+ **redaction_mode** | **String** | Redaction mode: \"Delete\" to remove PII entirely, or \"ReplaceWithAsterisk\" to replace PII characters with asterisks (*). | [optional]
42
+ **provide_analysis_rationale** | **BOOLEAN** | Set to true to include a natural language rationale explaining why each detection conclusion was formed. | [optional]
43
+
44
+
@@ -0,0 +1,44 @@
1
+ # CloudmersiveDlpApiClient::DlpAdvancedRedactionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **redacted_text** | **String** | The redacted text with PII removed or replaced, or the original text if no disallowed PII was found. | [optional]
7
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected; false if any disallowed type was found and redacted. | [optional]
8
+ **contains_email_address** | **BOOLEAN** | True if the input contains email addresses. | [optional]
9
+ **contains_phone_number** | **BOOLEAN** | True if the input contains phone numbers. | [optional]
10
+ **contains_street_address** | **BOOLEAN** | True if the input contains street addresses. | [optional]
11
+ **contains_person_name** | **BOOLEAN** | True if the input contains person names. | [optional]
12
+ **contains_birth_date** | **BOOLEAN** | True if the input contains birth dates. | [optional]
13
+ **contains_passport_number** | **BOOLEAN** | True if the input contains passport numbers. | [optional]
14
+ **contains_drivers_license** | **BOOLEAN** | True if the input contains drivers license numbers. | [optional]
15
+ **contains_social_security_number** | **BOOLEAN** | True if the input contains social security numbers. | [optional]
16
+ **contains_taxpayer_id** | **BOOLEAN** | True if the input contains taxpayer IDs. | [optional]
17
+ **contains_credit_card_number** | **BOOLEAN** | True if the input contains credit card numbers. | [optional]
18
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the input contains credit card expiration dates. | [optional]
19
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the input contains credit card verification codes. | [optional]
20
+ **contains_bank_account_number** | **BOOLEAN** | True if the input contains bank account numbers. | [optional]
21
+ **contains_iban** | **BOOLEAN** | True if the input contains IBANs. | [optional]
22
+ **contains_health_insurance_number** | **BOOLEAN** | True if the input contains health insurance numbers. | [optional]
23
+ **contains_bearer_token** | **BOOLEAN** | True if the input contains bearer tokens. | [optional]
24
+ **contains_http_cookie** | **BOOLEAN** | True if the input contains HTTP cookies. | [optional]
25
+ **contains_private_keys** | **BOOLEAN** | True if the input contains private keys. | [optional]
26
+ **contains_credentials** | **BOOLEAN** | True if the input contains credentials (usernames/passwords). | [optional]
27
+ **contains_deep_web_urls** | **BOOLEAN** | True if the input contains deep web URLs (.onion). | [optional]
28
+ **contains_source_code** | **BOOLEAN** | True if the input contains source code. | [optional]
29
+ **contains_ip_address** | **BOOLEAN** | True if the input contains IP addresses. | [optional]
30
+ **contains_mac_address** | **BOOLEAN** | True if the input contains MAC addresses. | [optional]
31
+ **contains_health_insurance_member_id** | **BOOLEAN** | True if the input contains health insurance member IDs. | [optional]
32
+ **contains_health_injury_or_disease** | **BOOLEAN** | True if the input contains references to injuries or diseases. | [optional]
33
+ **contains_health_type_of_treatment** | **BOOLEAN** | True if the input contains references to types of medical treatment. | [optional]
34
+ **contains_health_date_and_time_of_treatment** | **BOOLEAN** | True if the input contains dates and times of medical treatment. | [optional]
35
+ **contains_health_plan_beneficiary_number** | **BOOLEAN** | True if the input contains health plan beneficiary numbers. | [optional]
36
+ **contains_health_payments_made_for_treatment** | **BOOLEAN** | True if the input contains payments made for medical treatment. | [optional]
37
+ **contains_vehicle_id** | **BOOLEAN** | True if the input contains vehicle identifiers (e.g. license plates, VINs). | [optional]
38
+ **contains_device_id** | **BOOLEAN** | True if the input contains device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs). | [optional]
39
+ **contains_names_of_relatives** | **BOOLEAN** | True if the input contains names of relatives. | [optional]
40
+ **contains_health_universal_record_locator** | **BOOLEAN** | True if the input contains health universal record locators (URLs). | [optional]
41
+ **contains_biometrics** | **BOOLEAN** | True if the input contains biometric data references (e.g. fingerprints, retinal scans, voiceprints). | [optional]
42
+ **analysis_rationale** | **String** | Rationale for why the conclusion was formed. Only populated when ProvideAnalysisRationale is set to true in the request. | [optional]
43
+
44
+
@@ -0,0 +1,31 @@
1
+ # CloudmersiveDlpApiClient::DlpDetectionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_text** | **String** | Text to scan for PII and sensitive data. | [optional]
7
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the input text and not flag them as PII. | [optional]
8
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the input text and not flag them as PII. | [optional]
9
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the input text and not flag them as PII. | [optional]
10
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the input text and not flag them as PII. | [optional]
11
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the input text and not flag them as PII. | [optional]
12
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the input text and not flag them as PII. | [optional]
13
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the input text and not flag them as PII. | [optional]
14
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the input text and not flag them as PII. | [optional]
15
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the input text and not flag them as PII. | [optional]
16
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the input text and not flag them as PII. | [optional]
17
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the input text and not flag them as PII. | [optional]
18
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the input text and not flag them as PII. | [optional]
19
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the input text and not flag them as PII. | [optional]
20
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the input text and not flag them as PII. | [optional]
21
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the input text and not flag them as PII. | [optional]
22
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the input text and not flag them as PII. | [optional]
23
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the input text and not flag them as PII. | [optional]
24
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the input text and not flag them as PII. | [optional]
25
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the input text and not flag them as PII. | [optional]
26
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the input text and not flag them as PII. | [optional]
27
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the input text and not flag it as sensitive data. | [optional]
28
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the input text and not flag them as PII. | [optional]
29
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the input text and not flag them as PII. | [optional]
30
+
31
+
@@ -0,0 +1,31 @@
1
+ # CloudmersiveDlpApiClient::DlpDetectionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected; false if any disallowed type was found. | [optional]
7
+ **contains_email_address** | **BOOLEAN** | True if the input contains email addresses. | [optional]
8
+ **contains_phone_number** | **BOOLEAN** | True if the input contains phone numbers. | [optional]
9
+ **contains_street_address** | **BOOLEAN** | True if the input contains street addresses. | [optional]
10
+ **contains_person_name** | **BOOLEAN** | True if the input contains person names. | [optional]
11
+ **contains_birth_date** | **BOOLEAN** | True if the input contains birth dates. | [optional]
12
+ **contains_passport_number** | **BOOLEAN** | True if the input contains passport numbers. | [optional]
13
+ **contains_drivers_license** | **BOOLEAN** | True if the input contains drivers license numbers. | [optional]
14
+ **contains_social_security_number** | **BOOLEAN** | True if the input contains social security numbers. | [optional]
15
+ **contains_taxpayer_id** | **BOOLEAN** | True if the input contains taxpayer IDs. | [optional]
16
+ **contains_credit_card_number** | **BOOLEAN** | True if the input contains credit card numbers. | [optional]
17
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the input contains credit card expiration dates. | [optional]
18
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the input contains credit card verification codes. | [optional]
19
+ **contains_bank_account_number** | **BOOLEAN** | True if the input contains bank account numbers. | [optional]
20
+ **contains_iban** | **BOOLEAN** | True if the input contains IBANs. | [optional]
21
+ **contains_health_insurance_number** | **BOOLEAN** | True if the input contains health insurance numbers. | [optional]
22
+ **contains_bearer_token** | **BOOLEAN** | True if the input contains bearer tokens. | [optional]
23
+ **contains_http_cookie** | **BOOLEAN** | True if the input contains HTTP cookies. | [optional]
24
+ **contains_private_keys** | **BOOLEAN** | True if the input contains private keys. | [optional]
25
+ **contains_credentials** | **BOOLEAN** | True if the input contains credentials (usernames/passwords). | [optional]
26
+ **contains_deep_web_urls** | **BOOLEAN** | True if the input contains deep web URLs (.onion). | [optional]
27
+ **contains_source_code** | **BOOLEAN** | True if the input contains source code. | [optional]
28
+ **contains_ip_address** | **BOOLEAN** | True if the input contains IP addresses. | [optional]
29
+ **contains_mac_address** | **BOOLEAN** | True if the input contains MAC addresses. | [optional]
30
+
31
+
@@ -0,0 +1,33 @@
1
+ # CloudmersiveDlpApiClient::DlpDocumentDetectionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_file** | **String** | Document file bytes (PDF, DOCX, PNG, or JPG) to scan for PII and sensitive data. | [optional]
7
+ **file_name** | **String** | Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents. | [optional]
8
+ **recognition_mode** | **String** | Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\". | [optional]
9
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the document and not flag them as PII. | [optional]
10
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the document and not flag them as PII. | [optional]
11
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the document and not flag them as PII. | [optional]
12
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the document and not flag them as PII. | [optional]
13
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the document and not flag them as PII. | [optional]
14
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the document and not flag them as PII. | [optional]
15
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the document and not flag them as PII. | [optional]
16
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the document and not flag them as PII. | [optional]
17
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the document and not flag them as PII. | [optional]
18
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the document and not flag them as PII. | [optional]
19
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the document and not flag them as PII. | [optional]
20
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the document and not flag them as PII. | [optional]
21
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the document and not flag them as PII. | [optional]
22
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the document and not flag them as PII. | [optional]
23
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the document and not flag them as PII. | [optional]
24
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the document and not flag them as PII. | [optional]
25
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the document and not flag them as PII. | [optional]
26
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the document and not flag them as PII. | [optional]
27
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the document and not flag them as PII. | [optional]
28
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the document and not flag them as PII. | [optional]
29
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the document and not flag it as sensitive data. | [optional]
30
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the document and not flag them as PII. | [optional]
31
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the document and not flag them as PII. | [optional]
32
+
33
+
@@ -0,0 +1,34 @@
1
+ # CloudmersiveDlpApiClient::DlpDocumentRedactionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_file** | **String** | Document file bytes (PDF, DOCX, PNG, or JPG) to scan for PII and redact. | [optional]
7
+ **file_name** | **String** | Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents. | [optional]
8
+ **recognition_mode** | **String** | Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\". | [optional]
9
+ **redaction_mode** | **String** | Redaction mode for PII regions. Options: \"BlackOut\" (default) draws black rectangles over PII rows, \"Blur\" applies Gaussian blur to PII rows, \"BlackOutEntirePage\" blacks out entire dirty pages, \"BlurEntirePage\" blurs entire dirty pages. | [optional]
10
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the document and not redact them. | [optional]
11
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the document and not redact them. | [optional]
12
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the document and not redact them. | [optional]
13
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the document and not redact them. | [optional]
14
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the document and not redact them. | [optional]
15
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the document and not redact them. | [optional]
16
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the document and not redact them. | [optional]
17
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the document and not redact them. | [optional]
18
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the document and not redact them. | [optional]
19
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the document and not redact them. | [optional]
20
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the document and not redact them. | [optional]
21
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the document and not redact them. | [optional]
22
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the document and not redact them. | [optional]
23
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the document and not redact them. | [optional]
24
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the document and not redact them. | [optional]
25
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the document and not redact them. | [optional]
26
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the document and not redact them. | [optional]
27
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the document and not redact them. | [optional]
28
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the document and not redact them. | [optional]
29
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the document and not redact them. | [optional]
30
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the document and not redact it. | [optional]
31
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the document and not redact them. | [optional]
32
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the document and not redact them. | [optional]
33
+
34
+
@@ -0,0 +1,33 @@
1
+ # CloudmersiveDlpApiClient::DlpDocumentRedactionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **redacted_document** | **String** | The redacted document as a rasterized PDF with PII regions blurred, or the original file if no disallowed PII was found. | [optional]
7
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected; false if any disallowed type was found and redacted. | [optional]
8
+ **contains_email_address** | **BOOLEAN** | True if the document contains email addresses. | [optional]
9
+ **contains_phone_number** | **BOOLEAN** | True if the document contains phone numbers. | [optional]
10
+ **contains_street_address** | **BOOLEAN** | True if the document contains street addresses. | [optional]
11
+ **contains_person_name** | **BOOLEAN** | True if the document contains person names. | [optional]
12
+ **contains_birth_date** | **BOOLEAN** | True if the document contains birth dates. | [optional]
13
+ **contains_passport_number** | **BOOLEAN** | True if the document contains passport numbers. | [optional]
14
+ **contains_drivers_license** | **BOOLEAN** | True if the document contains drivers license numbers. | [optional]
15
+ **contains_social_security_number** | **BOOLEAN** | True if the document contains social security numbers. | [optional]
16
+ **contains_taxpayer_id** | **BOOLEAN** | True if the document contains taxpayer IDs. | [optional]
17
+ **contains_credit_card_number** | **BOOLEAN** | True if the document contains credit card numbers. | [optional]
18
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the document contains credit card expiration dates. | [optional]
19
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the document contains credit card verification codes. | [optional]
20
+ **contains_bank_account_number** | **BOOLEAN** | True if the document contains bank account numbers. | [optional]
21
+ **contains_iban** | **BOOLEAN** | True if the document contains IBANs. | [optional]
22
+ **contains_health_insurance_number** | **BOOLEAN** | True if the document contains health insurance numbers. | [optional]
23
+ **contains_bearer_token** | **BOOLEAN** | True if the document contains bearer tokens. | [optional]
24
+ **contains_http_cookie** | **BOOLEAN** | True if the document contains HTTP cookies. | [optional]
25
+ **contains_private_keys** | **BOOLEAN** | True if the document contains private keys. | [optional]
26
+ **contains_credentials** | **BOOLEAN** | True if the document contains credentials (usernames/passwords). | [optional]
27
+ **contains_deep_web_urls** | **BOOLEAN** | True if the document contains deep web URLs (.onion). | [optional]
28
+ **contains_source_code** | **BOOLEAN** | True if the document contains source code. | [optional]
29
+ **contains_ip_address** | **BOOLEAN** | True if the document contains IP addresses. | [optional]
30
+ **contains_mac_address** | **BOOLEAN** | True if the document contains MAC addresses. | [optional]
31
+ **pages_redacted** | [**Array<RedactedPageInfo>**](RedactedPageInfo.md) | List of pages that were redacted (had PII regions blurred). | [optional]
32
+
33
+
@@ -0,0 +1,32 @@
1
+ # CloudmersiveDlpApiClient::DlpRedactionRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input_text** | **String** | Text to scan for PII and redact sensitive data from. | [optional]
7
+ **allow_email_address** | **BOOLEAN** | Set to true to allow email addresses in the input text and not redact them. | [optional]
8
+ **allow_phone_number** | **BOOLEAN** | Set to true to allow phone numbers in the input text and not redact them. | [optional]
9
+ **allow_street_address** | **BOOLEAN** | Set to true to allow street addresses in the input text and not redact them. | [optional]
10
+ **allow_person_name** | **BOOLEAN** | Set to true to allow person names in the input text and not redact them. | [optional]
11
+ **allow_birth_date** | **BOOLEAN** | Set to true to allow birth dates in the input text and not redact them. | [optional]
12
+ **allow_passport_number** | **BOOLEAN** | Set to true to allow passport numbers in the input text and not redact them. | [optional]
13
+ **allow_drivers_license** | **BOOLEAN** | Set to true to allow drivers license numbers in the input text and not redact them. | [optional]
14
+ **allow_social_security_number** | **BOOLEAN** | Set to true to allow social security numbers in the input text and not redact them. | [optional]
15
+ **allow_taxpayer_id** | **BOOLEAN** | Set to true to allow taxpayer IDs in the input text and not redact them. | [optional]
16
+ **allow_credit_card_number** | **BOOLEAN** | Set to true to allow credit card numbers in the input text and not redact them. | [optional]
17
+ **allow_credit_card_expiration_date** | **BOOLEAN** | Set to true to allow credit card expiration dates in the input text and not redact them. | [optional]
18
+ **allow_credit_card_verification_code** | **BOOLEAN** | Set to true to allow credit card verification codes in the input text and not redact them. | [optional]
19
+ **allow_bank_account_number** | **BOOLEAN** | Set to true to allow bank account numbers in the input text and not redact them. | [optional]
20
+ **allow_iban** | **BOOLEAN** | Set to true to allow IBANs in the input text and not redact them. | [optional]
21
+ **allow_health_insurance_number** | **BOOLEAN** | Set to true to allow health insurance numbers in the input text and not redact them. | [optional]
22
+ **allow_bearer_token** | **BOOLEAN** | Set to true to allow bearer tokens in the input text and not redact them. | [optional]
23
+ **allow_http_cookie** | **BOOLEAN** | Set to true to allow HTTP cookies in the input text and not redact them. | [optional]
24
+ **allow_private_keys** | **BOOLEAN** | Set to true to allow private keys in the input text and not redact them. | [optional]
25
+ **allow_credentials** | **BOOLEAN** | Set to true to allow credentials (usernames/passwords) in the input text and not redact them. | [optional]
26
+ **allow_deep_web_urls** | **BOOLEAN** | Set to true to allow deep web URLs (.onion) in the input text and not redact them. | [optional]
27
+ **allow_source_code** | **BOOLEAN** | Set to true to allow source code in the input text and not redact it. | [optional]
28
+ **allow_ip_address** | **BOOLEAN** | Set to true to allow IP addresses in the input text and not redact them. | [optional]
29
+ **allow_mac_address** | **BOOLEAN** | Set to true to allow MAC addresses in the input text and not redact them. | [optional]
30
+ **redaction_mode** | **String** | Redaction mode: \"Delete\" to remove PII entirely, or \"ReplaceWithAsterisk\" to replace PII characters with asterisks (*). | [optional]
31
+
32
+
@@ -0,0 +1,32 @@
1
+ # CloudmersiveDlpApiClient::DlpRedactionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **redacted_text** | **String** | The redacted text with PII removed or replaced, or the original text if no disallowed PII was found. | [optional]
7
+ **clean_result** | **BOOLEAN** | True if no disallowed PII or sensitive data types were detected; false if any disallowed type was found and redacted. | [optional]
8
+ **contains_email_address** | **BOOLEAN** | True if the input contains email addresses. | [optional]
9
+ **contains_phone_number** | **BOOLEAN** | True if the input contains phone numbers. | [optional]
10
+ **contains_street_address** | **BOOLEAN** | True if the input contains street addresses. | [optional]
11
+ **contains_person_name** | **BOOLEAN** | True if the input contains person names. | [optional]
12
+ **contains_birth_date** | **BOOLEAN** | True if the input contains birth dates. | [optional]
13
+ **contains_passport_number** | **BOOLEAN** | True if the input contains passport numbers. | [optional]
14
+ **contains_drivers_license** | **BOOLEAN** | True if the input contains drivers license numbers. | [optional]
15
+ **contains_social_security_number** | **BOOLEAN** | True if the input contains social security numbers. | [optional]
16
+ **contains_taxpayer_id** | **BOOLEAN** | True if the input contains taxpayer IDs. | [optional]
17
+ **contains_credit_card_number** | **BOOLEAN** | True if the input contains credit card numbers. | [optional]
18
+ **contains_credit_card_expiration_date** | **BOOLEAN** | True if the input contains credit card expiration dates. | [optional]
19
+ **contains_credit_card_verification_code** | **BOOLEAN** | True if the input contains credit card verification codes. | [optional]
20
+ **contains_bank_account_number** | **BOOLEAN** | True if the input contains bank account numbers. | [optional]
21
+ **contains_iban** | **BOOLEAN** | True if the input contains IBANs. | [optional]
22
+ **contains_health_insurance_number** | **BOOLEAN** | True if the input contains health insurance numbers. | [optional]
23
+ **contains_bearer_token** | **BOOLEAN** | True if the input contains bearer tokens. | [optional]
24
+ **contains_http_cookie** | **BOOLEAN** | True if the input contains HTTP cookies. | [optional]
25
+ **contains_private_keys** | **BOOLEAN** | True if the input contains private keys. | [optional]
26
+ **contains_credentials** | **BOOLEAN** | True if the input contains credentials (usernames/passwords). | [optional]
27
+ **contains_deep_web_urls** | **BOOLEAN** | True if the input contains deep web URLs (.onion). | [optional]
28
+ **contains_source_code** | **BOOLEAN** | True if the input contains source code. | [optional]
29
+ **contains_ip_address** | **BOOLEAN** | True if the input contains IP addresses. | [optional]
30
+ **contains_mac_address** | **BOOLEAN** | True if the input contains MAC addresses. | [optional]
31
+
32
+
data/docs/RedactApi.md ADDED
@@ -0,0 +1,232 @@
1
+ # CloudmersiveDlpApiClient::RedactApi
2
+
3
+ All URIs are relative to *https://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**redact_document**](RedactApi.md#redact_document) | **POST** /dlp/redact/document | Redact User Data in Document
8
+ [**redact_document_advanced**](RedactApi.md#redact_document_advanced) | **POST** /dlp/redact/document/advanced | Redact User Data in Document (Advanced)
9
+ [**redact_text**](RedactApi.md#redact_text) | **POST** /dlp/redact/text | Redact User Data in Input Text
10
+ [**redact_text_advanced**](RedactApi.md#redact_text_advanced) | **POST** /dlp/redact/text/advanced | Redact User Data in Input Text (Advanced)
11
+
12
+
13
+ # **redact_document**
14
+ > DlpDocumentRedactionResponse redact_document(opts)
15
+
16
+ Redact User Data in Document
17
+
18
+ Detects and redacts configurable types of user data in a document (PDF, DOCX, PNG, JPG) using Advanced AI. Rasterizes document pages, detects PII regions using a grid-overlay approach, blurs those regions, and returns a rasterized PDF.
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'cloudmersive-dlp-api-client'
24
+ # setup authorization
25
+ CloudmersiveDlpApiClient.configure do |config|
26
+ # Configure API key authorization: Apikey
27
+ config.api_key['Apikey'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ #config.api_key_prefix['Apikey'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = CloudmersiveDlpApiClient::RedactApi.new
33
+
34
+ opts = {
35
+ body: CloudmersiveDlpApiClient::DlpDocumentRedactionRequest.new # DlpDocumentRedactionRequest | Input request
36
+ }
37
+
38
+ begin
39
+ #Redact User Data in Document
40
+ result = api_instance.redact_document(opts)
41
+ p result
42
+ rescue CloudmersiveDlpApiClient::ApiError => e
43
+ puts "Exception when calling RedactApi->redact_document: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **body** | [**DlpDocumentRedactionRequest**](DlpDocumentRedactionRequest.md)| Input request | [optional]
52
+
53
+ ### Return type
54
+
55
+ [**DlpDocumentRedactionResponse**](DlpDocumentRedactionResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [Apikey](../README.md#Apikey)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json, text/json, application/*+json
64
+ - **Accept**: text/plain, application/json, text/json
65
+
66
+
67
+
68
+ # **redact_document_advanced**
69
+ > DlpAdvancedDocumentRedactionResponse redact_document_advanced(opts)
70
+
71
+ Redact User Data in Document (Advanced)
72
+
73
+ Detects and redacts 35 configurable types of user data including health-related PHI in a document (PDF, DOCX, PNG, JPG) using Advanced AI. Rasterizes document pages, detects PII regions using a row-overlay approach, redacts those regions, and returns a rasterized PDF.
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'cloudmersive-dlp-api-client'
79
+ # setup authorization
80
+ CloudmersiveDlpApiClient.configure do |config|
81
+ # Configure API key authorization: Apikey
82
+ config.api_key['Apikey'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['Apikey'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = CloudmersiveDlpApiClient::RedactApi.new
88
+
89
+ opts = {
90
+ body: CloudmersiveDlpApiClient::DlpAdvancedDocumentRedactionRequest.new # DlpAdvancedDocumentRedactionRequest | Input request
91
+ }
92
+
93
+ begin
94
+ #Redact User Data in Document (Advanced)
95
+ result = api_instance.redact_document_advanced(opts)
96
+ p result
97
+ rescue CloudmersiveDlpApiClient::ApiError => e
98
+ puts "Exception when calling RedactApi->redact_document_advanced: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **body** | [**DlpAdvancedDocumentRedactionRequest**](DlpAdvancedDocumentRedactionRequest.md)| Input request | [optional]
107
+
108
+ ### Return type
109
+
110
+ [**DlpAdvancedDocumentRedactionResponse**](DlpAdvancedDocumentRedactionResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Apikey](../README.md#Apikey)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: application/json, text/json, application/*+json
119
+ - **Accept**: text/plain, application/json, text/json
120
+
121
+
122
+
123
+ # **redact_text**
124
+ > DlpRedactionResponse redact_text(opts)
125
+
126
+ Redact User Data in Input Text
127
+
128
+ Detects and redacts configurable types of user data in an input text string using Advanced AI. First detects PII, then redacts disallowed types by either deleting them or replacing them with asterisks.
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'cloudmersive-dlp-api-client'
134
+ # setup authorization
135
+ CloudmersiveDlpApiClient.configure do |config|
136
+ # Configure API key authorization: Apikey
137
+ config.api_key['Apikey'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Apikey'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = CloudmersiveDlpApiClient::RedactApi.new
143
+
144
+ opts = {
145
+ body: CloudmersiveDlpApiClient::DlpRedactionRequest.new # DlpRedactionRequest | Input request
146
+ }
147
+
148
+ begin
149
+ #Redact User Data in Input Text
150
+ result = api_instance.redact_text(opts)
151
+ p result
152
+ rescue CloudmersiveDlpApiClient::ApiError => e
153
+ puts "Exception when calling RedactApi->redact_text: #{e}"
154
+ end
155
+ ```
156
+
157
+ ### Parameters
158
+
159
+ Name | Type | Description | Notes
160
+ ------------- | ------------- | ------------- | -------------
161
+ **body** | [**DlpRedactionRequest**](DlpRedactionRequest.md)| Input request | [optional]
162
+
163
+ ### Return type
164
+
165
+ [**DlpRedactionResponse**](DlpRedactionResponse.md)
166
+
167
+ ### Authorization
168
+
169
+ [Apikey](../README.md#Apikey)
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: application/json, text/json, application/*+json
174
+ - **Accept**: text/plain, application/json, text/json
175
+
176
+
177
+
178
+ # **redact_text_advanced**
179
+ > DlpAdvancedRedactionResponse redact_text_advanced(opts)
180
+
181
+ Redact User Data in Input Text (Advanced)
182
+
183
+ Detects and redacts 34 configurable types of user data including health-related PHI in an input text string using Advanced AI. First detects PII, then redacts disallowed types by either deleting them or replacing them with asterisks.
184
+
185
+ ### Example
186
+ ```ruby
187
+ # load the gem
188
+ require 'cloudmersive-dlp-api-client'
189
+ # setup authorization
190
+ CloudmersiveDlpApiClient.configure do |config|
191
+ # Configure API key authorization: Apikey
192
+ config.api_key['Apikey'] = 'YOUR API KEY'
193
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
194
+ #config.api_key_prefix['Apikey'] = 'Bearer'
195
+ end
196
+
197
+ api_instance = CloudmersiveDlpApiClient::RedactApi.new
198
+
199
+ opts = {
200
+ body: CloudmersiveDlpApiClient::DlpAdvancedRedactionRequest.new # DlpAdvancedRedactionRequest | Input request
201
+ }
202
+
203
+ begin
204
+ #Redact User Data in Input Text (Advanced)
205
+ result = api_instance.redact_text_advanced(opts)
206
+ p result
207
+ rescue CloudmersiveDlpApiClient::ApiError => e
208
+ puts "Exception when calling RedactApi->redact_text_advanced: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ Name | Type | Description | Notes
215
+ ------------- | ------------- | ------------- | -------------
216
+ **body** | [**DlpAdvancedRedactionRequest**](DlpAdvancedRedactionRequest.md)| Input request | [optional]
217
+
218
+ ### Return type
219
+
220
+ [**DlpAdvancedRedactionResponse**](DlpAdvancedRedactionResponse.md)
221
+
222
+ ### Authorization
223
+
224
+ [Apikey](../README.md#Apikey)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: application/json, text/json, application/*+json
229
+ - **Accept**: text/plain, application/json, text/json
230
+
231
+
232
+
@@ -0,0 +1,8 @@
1
+ # CloudmersiveDlpApiClient::RedactedPageInfo
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **page_number** | **Integer** | 1-based page number that was redacted. | [optional]
7
+
8
+