cloudmersive-dlp-api-client 2.2.0 → 2.2.1
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.
- checksums.yaml +4 -4
- data/README.md +30 -8
- data/docs/AudioTimestamp.md +12 -0
- data/docs/CustomPiiField.md +9 -0
- data/docs/DetectApi.md +114 -2
- data/docs/DlpAdvancedAudioDetectionRequest.md +48 -0
- data/docs/DlpAdvancedAudioDetectionResponse.md +48 -0
- data/docs/DlpAdvancedAudioRedactionRequest.md +54 -0
- data/docs/DlpAdvancedAudioRedactionResponse.md +51 -0
- data/docs/DlpAdvancedDetectionRequest.md +4 -0
- data/docs/DlpAdvancedDetectionResponse.md +3 -0
- data/docs/DlpAdvancedDocumentDetectionRequest.md +6 -2
- data/docs/DlpAdvancedDocumentRedactionRequest.md +7 -2
- data/docs/DlpAdvancedDocumentRedactionResponse.md +3 -0
- data/docs/DlpAdvancedRedactionRequest.md +6 -1
- data/docs/DlpAdvancedRedactionResponse.md +3 -0
- data/docs/DlpAudioDetectionRequest.md +32 -0
- data/docs/DlpAudioDetectionResponse.md +33 -0
- data/docs/DlpAudioRedactionRequest.md +35 -0
- data/docs/DlpAudioRedactionResponse.md +36 -0
- data/docs/DlpBatchJobResult.md +9 -0
- data/docs/DlpBatchJobStatusResult.md +15 -0
- data/docs/DlpDocumentDetectionRequest.md +2 -2
- data/docs/DlpDocumentRedactionRequest.md +2 -2
- data/docs/DlpRedactionRequest.md +1 -1
- data/docs/RedactApi.md +114 -2
- data/docs/RedactedAudioSegment.md +10 -0
- data/docs/TasksBatchJobApi.md +288 -0
- data/lib/cloudmersive-dlp-api-client/api/detect_api.rb +104 -4
- data/lib/cloudmersive-dlp-api-client/api/redact_api.rb +104 -4
- data/lib/cloudmersive-dlp-api-client/api/tasks_batch_job_api.rb +272 -0
- data/lib/cloudmersive-dlp-api-client/models/audio_timestamp.rb +226 -0
- data/lib/cloudmersive-dlp-api-client/models/custom_pii_field.rb +196 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_audio_detection_request.rb +601 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_audio_detection_response.rb +588 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_audio_redaction_request.rb +663 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_audio_redaction_response.rb +635 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_request.rb +44 -4
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_detection_response.rb +31 -1
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb +46 -6
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_request.rb +58 -6
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_redaction_response.rb +31 -1
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_request.rb +57 -5
- data/lib/cloudmersive-dlp-api-client/models/dlp_advanced_redaction_response.rb +31 -1
- data/lib/cloudmersive-dlp-api-client/models/dlp_audio_detection_request.rb +441 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_audio_detection_response.rb +438 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_audio_redaction_request.rb +471 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_audio_redaction_response.rb +485 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_batch_job_result.rb +196 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_batch_job_status_result.rb +252 -0
- data/lib/cloudmersive-dlp-api-client/models/dlp_document_detection_request.rb +2 -2
- data/lib/cloudmersive-dlp-api-client/models/dlp_document_redaction_request.rb +2 -2
- data/lib/cloudmersive-dlp-api-client/models/dlp_redaction_request.rb +1 -1
- data/lib/cloudmersive-dlp-api-client/models/redacted_audio_segment.rb +206 -0
- data/lib/cloudmersive-dlp-api-client/version.rb +1 -1
- data/lib/cloudmersive-dlp-api-client.rb +14 -0
- data/spec/api/detect_api_spec.rb +26 -2
- data/spec/api/redact_api_spec.rb +26 -2
- data/spec/api/tasks_batch_job_api_spec.rb +95 -0
- data/spec/models/audio_timestamp_spec.rb +65 -0
- data/spec/models/custom_pii_field_spec.rb +47 -0
- data/spec/models/dlp_advanced_audio_detection_request_spec.rb +281 -0
- data/spec/models/dlp_advanced_audio_detection_response_spec.rb +281 -0
- data/spec/models/dlp_advanced_audio_redaction_request_spec.rb +317 -0
- data/spec/models/dlp_advanced_audio_redaction_response_spec.rb +299 -0
- data/spec/models/dlp_advanced_detection_request_spec.rb +24 -0
- data/spec/models/dlp_advanced_detection_response_spec.rb +18 -0
- data/spec/models/dlp_advanced_document_detection_request_spec.rb +24 -0
- data/spec/models/dlp_advanced_document_redaction_request_spec.rb +30 -0
- data/spec/models/dlp_advanced_document_redaction_response_spec.rb +18 -0
- data/spec/models/dlp_advanced_redaction_request_spec.rb +30 -0
- data/spec/models/dlp_advanced_redaction_response_spec.rb +18 -0
- data/spec/models/dlp_audio_detection_request_spec.rb +185 -0
- data/spec/models/dlp_audio_detection_response_spec.rb +191 -0
- data/spec/models/dlp_audio_redaction_request_spec.rb +203 -0
- data/spec/models/dlp_audio_redaction_response_spec.rb +209 -0
- data/spec/models/dlp_batch_job_result_spec.rb +47 -0
- data/spec/models/dlp_batch_job_status_result_spec.rb +83 -0
- data/spec/models/redacted_audio_segment_spec.rb +53 -0
- metadata +44 -2
|
@@ -27,6 +27,9 @@ module CloudmersiveDlpApiClient
|
|
|
27
27
|
# Set to true to allow street addresses in the input text and not flag them as PII.
|
|
28
28
|
attr_accessor :allow_street_address
|
|
29
29
|
|
|
30
|
+
# Set to true to allow standalone city names (e.g. \"San Francisco\") in the input text and not flag them as PII. Applies to city names mentioned outside of a full street address.
|
|
31
|
+
attr_accessor :allow_city
|
|
32
|
+
|
|
30
33
|
# Set to true to allow person names in the input text and not flag them as PII.
|
|
31
34
|
attr_accessor :allow_person_name
|
|
32
35
|
|
|
@@ -90,6 +93,12 @@ module CloudmersiveDlpApiClient
|
|
|
90
93
|
# Set to true to allow health insurance member IDs in the input text and not flag them as PHI.
|
|
91
94
|
attr_accessor :allow_health_insurance_member_id
|
|
92
95
|
|
|
96
|
+
# Set to true to allow medical record numbers in the input text and not flag them as PHI.
|
|
97
|
+
attr_accessor :allow_medical_record_number
|
|
98
|
+
|
|
99
|
+
# Set to true to allow billing account numbers (e.g. provider/customer billing account IDs, distinct from bank account numbers) in the input text and not flag them as PII.
|
|
100
|
+
attr_accessor :allow_billing_account_number
|
|
101
|
+
|
|
93
102
|
# Set to true to allow references to injuries or diseases in the input text and not flag them as PHI.
|
|
94
103
|
attr_accessor :allow_health_injury_or_disease
|
|
95
104
|
|
|
@@ -123,6 +132,9 @@ module CloudmersiveDlpApiClient
|
|
|
123
132
|
# Set to true to include a natural language rationale explaining why each detection conclusion was formed.
|
|
124
133
|
attr_accessor :provide_analysis_rationale
|
|
125
134
|
|
|
135
|
+
# Apply a Custom Policy for DLP Enforcement by providing the ID; to create a Custom Policy, navigate to the Cloudmersive Management Portal and select Custom Policies. Requires Managed Instance or Private Cloud
|
|
136
|
+
attr_accessor :custom_policy_id
|
|
137
|
+
|
|
126
138
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
127
139
|
def self.attribute_map
|
|
128
140
|
{
|
|
@@ -130,6 +142,7 @@ module CloudmersiveDlpApiClient
|
|
|
130
142
|
:'allow_email_address' => :'AllowEmailAddress',
|
|
131
143
|
:'allow_phone_number' => :'AllowPhoneNumber',
|
|
132
144
|
:'allow_street_address' => :'AllowStreetAddress',
|
|
145
|
+
:'allow_city' => :'AllowCity',
|
|
133
146
|
:'allow_person_name' => :'AllowPersonName',
|
|
134
147
|
:'allow_birth_date' => :'AllowBirthDate',
|
|
135
148
|
:'allow_passport_number' => :'AllowPassportNumber',
|
|
@@ -151,6 +164,8 @@ module CloudmersiveDlpApiClient
|
|
|
151
164
|
:'allow_ip_address' => :'AllowIpAddress',
|
|
152
165
|
:'allow_mac_address' => :'AllowMacAddress',
|
|
153
166
|
:'allow_health_insurance_member_id' => :'AllowHealthInsuranceMemberID',
|
|
167
|
+
:'allow_medical_record_number' => :'AllowMedicalRecordNumber',
|
|
168
|
+
:'allow_billing_account_number' => :'AllowBillingAccountNumber',
|
|
154
169
|
:'allow_health_injury_or_disease' => :'AllowHealthInjuryOrDisease',
|
|
155
170
|
:'allow_health_type_of_treatment' => :'AllowHealthTypeOfTreatment',
|
|
156
171
|
:'allow_health_date_and_time_of_treatment' => :'AllowHealthDateAndTimeOfTreatment',
|
|
@@ -161,7 +176,8 @@ module CloudmersiveDlpApiClient
|
|
|
161
176
|
:'allow_names_of_relatives' => :'AllowNamesOfRelatives',
|
|
162
177
|
:'allow_health_universal_record_locator' => :'AllowHealthUniversalRecordLocator',
|
|
163
178
|
:'allow_biometrics' => :'AllowBiometrics',
|
|
164
|
-
:'provide_analysis_rationale' => :'ProvideAnalysisRationale'
|
|
179
|
+
:'provide_analysis_rationale' => :'ProvideAnalysisRationale',
|
|
180
|
+
:'custom_policy_id' => :'CustomPolicyID'
|
|
165
181
|
}
|
|
166
182
|
end
|
|
167
183
|
|
|
@@ -172,6 +188,7 @@ module CloudmersiveDlpApiClient
|
|
|
172
188
|
:'allow_email_address' => :'BOOLEAN',
|
|
173
189
|
:'allow_phone_number' => :'BOOLEAN',
|
|
174
190
|
:'allow_street_address' => :'BOOLEAN',
|
|
191
|
+
:'allow_city' => :'BOOLEAN',
|
|
175
192
|
:'allow_person_name' => :'BOOLEAN',
|
|
176
193
|
:'allow_birth_date' => :'BOOLEAN',
|
|
177
194
|
:'allow_passport_number' => :'BOOLEAN',
|
|
@@ -193,6 +210,8 @@ module CloudmersiveDlpApiClient
|
|
|
193
210
|
:'allow_ip_address' => :'BOOLEAN',
|
|
194
211
|
:'allow_mac_address' => :'BOOLEAN',
|
|
195
212
|
:'allow_health_insurance_member_id' => :'BOOLEAN',
|
|
213
|
+
:'allow_medical_record_number' => :'BOOLEAN',
|
|
214
|
+
:'allow_billing_account_number' => :'BOOLEAN',
|
|
196
215
|
:'allow_health_injury_or_disease' => :'BOOLEAN',
|
|
197
216
|
:'allow_health_type_of_treatment' => :'BOOLEAN',
|
|
198
217
|
:'allow_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -203,7 +222,8 @@ module CloudmersiveDlpApiClient
|
|
|
203
222
|
:'allow_names_of_relatives' => :'BOOLEAN',
|
|
204
223
|
:'allow_health_universal_record_locator' => :'BOOLEAN',
|
|
205
224
|
:'allow_biometrics' => :'BOOLEAN',
|
|
206
|
-
:'provide_analysis_rationale' => :'BOOLEAN'
|
|
225
|
+
:'provide_analysis_rationale' => :'BOOLEAN',
|
|
226
|
+
:'custom_policy_id' => :'String'
|
|
207
227
|
}
|
|
208
228
|
end
|
|
209
229
|
|
|
@@ -231,6 +251,10 @@ module CloudmersiveDlpApiClient
|
|
|
231
251
|
self.allow_street_address = attributes[:'AllowStreetAddress']
|
|
232
252
|
end
|
|
233
253
|
|
|
254
|
+
if attributes.has_key?(:'AllowCity')
|
|
255
|
+
self.allow_city = attributes[:'AllowCity']
|
|
256
|
+
end
|
|
257
|
+
|
|
234
258
|
if attributes.has_key?(:'AllowPersonName')
|
|
235
259
|
self.allow_person_name = attributes[:'AllowPersonName']
|
|
236
260
|
end
|
|
@@ -315,6 +339,14 @@ module CloudmersiveDlpApiClient
|
|
|
315
339
|
self.allow_health_insurance_member_id = attributes[:'AllowHealthInsuranceMemberID']
|
|
316
340
|
end
|
|
317
341
|
|
|
342
|
+
if attributes.has_key?(:'AllowMedicalRecordNumber')
|
|
343
|
+
self.allow_medical_record_number = attributes[:'AllowMedicalRecordNumber']
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
if attributes.has_key?(:'AllowBillingAccountNumber')
|
|
347
|
+
self.allow_billing_account_number = attributes[:'AllowBillingAccountNumber']
|
|
348
|
+
end
|
|
349
|
+
|
|
318
350
|
if attributes.has_key?(:'AllowHealthInjuryOrDisease')
|
|
319
351
|
self.allow_health_injury_or_disease = attributes[:'AllowHealthInjuryOrDisease']
|
|
320
352
|
end
|
|
@@ -358,6 +390,10 @@ module CloudmersiveDlpApiClient
|
|
|
358
390
|
if attributes.has_key?(:'ProvideAnalysisRationale')
|
|
359
391
|
self.provide_analysis_rationale = attributes[:'ProvideAnalysisRationale']
|
|
360
392
|
end
|
|
393
|
+
|
|
394
|
+
if attributes.has_key?(:'CustomPolicyID')
|
|
395
|
+
self.custom_policy_id = attributes[:'CustomPolicyID']
|
|
396
|
+
end
|
|
361
397
|
end
|
|
362
398
|
|
|
363
399
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -382,6 +418,7 @@ module CloudmersiveDlpApiClient
|
|
|
382
418
|
allow_email_address == o.allow_email_address &&
|
|
383
419
|
allow_phone_number == o.allow_phone_number &&
|
|
384
420
|
allow_street_address == o.allow_street_address &&
|
|
421
|
+
allow_city == o.allow_city &&
|
|
385
422
|
allow_person_name == o.allow_person_name &&
|
|
386
423
|
allow_birth_date == o.allow_birth_date &&
|
|
387
424
|
allow_passport_number == o.allow_passport_number &&
|
|
@@ -403,6 +440,8 @@ module CloudmersiveDlpApiClient
|
|
|
403
440
|
allow_ip_address == o.allow_ip_address &&
|
|
404
441
|
allow_mac_address == o.allow_mac_address &&
|
|
405
442
|
allow_health_insurance_member_id == o.allow_health_insurance_member_id &&
|
|
443
|
+
allow_medical_record_number == o.allow_medical_record_number &&
|
|
444
|
+
allow_billing_account_number == o.allow_billing_account_number &&
|
|
406
445
|
allow_health_injury_or_disease == o.allow_health_injury_or_disease &&
|
|
407
446
|
allow_health_type_of_treatment == o.allow_health_type_of_treatment &&
|
|
408
447
|
allow_health_date_and_time_of_treatment == o.allow_health_date_and_time_of_treatment &&
|
|
@@ -413,7 +452,8 @@ module CloudmersiveDlpApiClient
|
|
|
413
452
|
allow_names_of_relatives == o.allow_names_of_relatives &&
|
|
414
453
|
allow_health_universal_record_locator == o.allow_health_universal_record_locator &&
|
|
415
454
|
allow_biometrics == o.allow_biometrics &&
|
|
416
|
-
provide_analysis_rationale == o.provide_analysis_rationale
|
|
455
|
+
provide_analysis_rationale == o.provide_analysis_rationale &&
|
|
456
|
+
custom_policy_id == o.custom_policy_id
|
|
417
457
|
end
|
|
418
458
|
|
|
419
459
|
# @see the `==` method
|
|
@@ -425,7 +465,7 @@ module CloudmersiveDlpApiClient
|
|
|
425
465
|
# Calculates hash code according to all attributes.
|
|
426
466
|
# @return [Fixnum] Hash code
|
|
427
467
|
def hash
|
|
428
|
-
[input_text, allow_email_address, allow_phone_number, allow_street_address, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale].hash
|
|
468
|
+
[input_text, allow_email_address, allow_phone_number, allow_street_address, allow_city, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_medical_record_number, allow_billing_account_number, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale, custom_policy_id].hash
|
|
429
469
|
end
|
|
430
470
|
|
|
431
471
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module CloudmersiveDlpApiClient
|
|
|
27
27
|
# True if the input text contains street addresses.
|
|
28
28
|
attr_accessor :contains_street_address
|
|
29
29
|
|
|
30
|
+
# True if the input text contains standalone city names (e.g. \"San Francisco\") outside of a full street address.
|
|
31
|
+
attr_accessor :contains_city
|
|
32
|
+
|
|
30
33
|
# True if the input text contains person names.
|
|
31
34
|
attr_accessor :contains_person_name
|
|
32
35
|
|
|
@@ -90,6 +93,12 @@ module CloudmersiveDlpApiClient
|
|
|
90
93
|
# True if the input text contains health insurance member IDs.
|
|
91
94
|
attr_accessor :contains_health_insurance_member_id
|
|
92
95
|
|
|
96
|
+
# True if the input text contains medical record numbers.
|
|
97
|
+
attr_accessor :contains_medical_record_number
|
|
98
|
+
|
|
99
|
+
# True if the input text contains billing account numbers (provider/customer billing account IDs, distinct from bank account numbers).
|
|
100
|
+
attr_accessor :contains_billing_account_number
|
|
101
|
+
|
|
93
102
|
# True if the input text contains references to injuries or diseases.
|
|
94
103
|
attr_accessor :contains_health_injury_or_disease
|
|
95
104
|
|
|
@@ -133,6 +142,7 @@ module CloudmersiveDlpApiClient
|
|
|
133
142
|
:'contains_email_address' => :'ContainsEmailAddress',
|
|
134
143
|
:'contains_phone_number' => :'ContainsPhoneNumber',
|
|
135
144
|
:'contains_street_address' => :'ContainsStreetAddress',
|
|
145
|
+
:'contains_city' => :'ContainsCity',
|
|
136
146
|
:'contains_person_name' => :'ContainsPersonName',
|
|
137
147
|
:'contains_birth_date' => :'ContainsBirthDate',
|
|
138
148
|
:'contains_passport_number' => :'ContainsPassportNumber',
|
|
@@ -154,6 +164,8 @@ module CloudmersiveDlpApiClient
|
|
|
154
164
|
:'contains_ip_address' => :'ContainsIpAddress',
|
|
155
165
|
:'contains_mac_address' => :'ContainsMacAddress',
|
|
156
166
|
:'contains_health_insurance_member_id' => :'ContainsHealthInsuranceMemberID',
|
|
167
|
+
:'contains_medical_record_number' => :'ContainsMedicalRecordNumber',
|
|
168
|
+
:'contains_billing_account_number' => :'ContainsBillingAccountNumber',
|
|
157
169
|
:'contains_health_injury_or_disease' => :'ContainsHealthInjuryOrDisease',
|
|
158
170
|
:'contains_health_type_of_treatment' => :'ContainsHealthTypeOfTreatment',
|
|
159
171
|
:'contains_health_date_and_time_of_treatment' => :'ContainsHealthDateAndTimeOfTreatment',
|
|
@@ -176,6 +188,7 @@ module CloudmersiveDlpApiClient
|
|
|
176
188
|
:'contains_email_address' => :'BOOLEAN',
|
|
177
189
|
:'contains_phone_number' => :'BOOLEAN',
|
|
178
190
|
:'contains_street_address' => :'BOOLEAN',
|
|
191
|
+
:'contains_city' => :'BOOLEAN',
|
|
179
192
|
:'contains_person_name' => :'BOOLEAN',
|
|
180
193
|
:'contains_birth_date' => :'BOOLEAN',
|
|
181
194
|
:'contains_passport_number' => :'BOOLEAN',
|
|
@@ -197,6 +210,8 @@ module CloudmersiveDlpApiClient
|
|
|
197
210
|
:'contains_ip_address' => :'BOOLEAN',
|
|
198
211
|
:'contains_mac_address' => :'BOOLEAN',
|
|
199
212
|
:'contains_health_insurance_member_id' => :'BOOLEAN',
|
|
213
|
+
:'contains_medical_record_number' => :'BOOLEAN',
|
|
214
|
+
:'contains_billing_account_number' => :'BOOLEAN',
|
|
200
215
|
:'contains_health_injury_or_disease' => :'BOOLEAN',
|
|
201
216
|
:'contains_health_type_of_treatment' => :'BOOLEAN',
|
|
202
217
|
:'contains_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -236,6 +251,10 @@ module CloudmersiveDlpApiClient
|
|
|
236
251
|
self.contains_street_address = attributes[:'ContainsStreetAddress']
|
|
237
252
|
end
|
|
238
253
|
|
|
254
|
+
if attributes.has_key?(:'ContainsCity')
|
|
255
|
+
self.contains_city = attributes[:'ContainsCity']
|
|
256
|
+
end
|
|
257
|
+
|
|
239
258
|
if attributes.has_key?(:'ContainsPersonName')
|
|
240
259
|
self.contains_person_name = attributes[:'ContainsPersonName']
|
|
241
260
|
end
|
|
@@ -320,6 +339,14 @@ module CloudmersiveDlpApiClient
|
|
|
320
339
|
self.contains_health_insurance_member_id = attributes[:'ContainsHealthInsuranceMemberID']
|
|
321
340
|
end
|
|
322
341
|
|
|
342
|
+
if attributes.has_key?(:'ContainsMedicalRecordNumber')
|
|
343
|
+
self.contains_medical_record_number = attributes[:'ContainsMedicalRecordNumber']
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
if attributes.has_key?(:'ContainsBillingAccountNumber')
|
|
347
|
+
self.contains_billing_account_number = attributes[:'ContainsBillingAccountNumber']
|
|
348
|
+
end
|
|
349
|
+
|
|
323
350
|
if attributes.has_key?(:'ContainsHealthInjuryOrDisease')
|
|
324
351
|
self.contains_health_injury_or_disease = attributes[:'ContainsHealthInjuryOrDisease']
|
|
325
352
|
end
|
|
@@ -391,6 +418,7 @@ module CloudmersiveDlpApiClient
|
|
|
391
418
|
contains_email_address == o.contains_email_address &&
|
|
392
419
|
contains_phone_number == o.contains_phone_number &&
|
|
393
420
|
contains_street_address == o.contains_street_address &&
|
|
421
|
+
contains_city == o.contains_city &&
|
|
394
422
|
contains_person_name == o.contains_person_name &&
|
|
395
423
|
contains_birth_date == o.contains_birth_date &&
|
|
396
424
|
contains_passport_number == o.contains_passport_number &&
|
|
@@ -412,6 +440,8 @@ module CloudmersiveDlpApiClient
|
|
|
412
440
|
contains_ip_address == o.contains_ip_address &&
|
|
413
441
|
contains_mac_address == o.contains_mac_address &&
|
|
414
442
|
contains_health_insurance_member_id == o.contains_health_insurance_member_id &&
|
|
443
|
+
contains_medical_record_number == o.contains_medical_record_number &&
|
|
444
|
+
contains_billing_account_number == o.contains_billing_account_number &&
|
|
415
445
|
contains_health_injury_or_disease == o.contains_health_injury_or_disease &&
|
|
416
446
|
contains_health_type_of_treatment == o.contains_health_type_of_treatment &&
|
|
417
447
|
contains_health_date_and_time_of_treatment == o.contains_health_date_and_time_of_treatment &&
|
|
@@ -435,7 +465,7 @@ module CloudmersiveDlpApiClient
|
|
|
435
465
|
# Calculates hash code according to all attributes.
|
|
436
466
|
# @return [Fixnum] Hash code
|
|
437
467
|
def hash
|
|
438
|
-
[clean_result, contains_email_address, contains_phone_number, contains_street_address, contains_person_name, contains_birth_date, contains_passport_number, contains_drivers_license, contains_social_security_number, contains_taxpayer_id, contains_credit_card_number, contains_credit_card_expiration_date, contains_credit_card_verification_code, contains_bank_account_number, contains_iban, contains_health_insurance_number, contains_bearer_token, contains_http_cookie, contains_private_keys, contains_credentials, contains_deep_web_urls, contains_source_code, contains_ip_address, contains_mac_address, contains_health_insurance_member_id, contains_health_injury_or_disease, contains_health_type_of_treatment, contains_health_date_and_time_of_treatment, contains_health_plan_beneficiary_number, contains_health_payments_made_for_treatment, contains_faces, contains_vehicle_id, contains_device_id, contains_names_of_relatives, contains_health_universal_record_locator, contains_biometrics, analysis_rationale].hash
|
|
468
|
+
[clean_result, contains_email_address, contains_phone_number, contains_street_address, contains_city, contains_person_name, contains_birth_date, contains_passport_number, contains_drivers_license, contains_social_security_number, contains_taxpayer_id, contains_credit_card_number, contains_credit_card_expiration_date, contains_credit_card_verification_code, contains_bank_account_number, contains_iban, contains_health_insurance_number, contains_bearer_token, contains_http_cookie, contains_private_keys, contains_credentials, contains_deep_web_urls, contains_source_code, contains_ip_address, contains_mac_address, contains_health_insurance_member_id, contains_medical_record_number, contains_billing_account_number, contains_health_injury_or_disease, contains_health_type_of_treatment, contains_health_date_and_time_of_treatment, contains_health_plan_beneficiary_number, contains_health_payments_made_for_treatment, contains_faces, contains_vehicle_id, contains_device_id, contains_names_of_relatives, contains_health_universal_record_locator, contains_biometrics, analysis_rationale].hash
|
|
439
469
|
end
|
|
440
470
|
|
|
441
471
|
# Builds the object from hash
|
|
@@ -15,13 +15,13 @@ require 'date'
|
|
|
15
15
|
module CloudmersiveDlpApiClient
|
|
16
16
|
# Request object for advanced DLP document detection with 29 PII detection types including health-related data.
|
|
17
17
|
class DlpAdvancedDocumentDetectionRequest
|
|
18
|
-
# Document file bytes (PDF, DOCX, PNG, or
|
|
18
|
+
# Document file bytes (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, or WEBP) to scan for PII and sensitive data.
|
|
19
19
|
attr_accessor :input_file
|
|
20
20
|
|
|
21
21
|
# Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents.
|
|
22
22
|
attr_accessor :file_name
|
|
23
23
|
|
|
24
|
-
# Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\".
|
|
24
|
+
# Optional. Recognition mode for image processing. Options: null (default), \"Normal\", \"Advanced\", \"Fast\", \"FastPlus\", \"FastMini\".
|
|
25
25
|
attr_accessor :recognition_mode
|
|
26
26
|
|
|
27
27
|
# Set to true to allow email addresses in the document and not flag them as PII.
|
|
@@ -33,6 +33,9 @@ module CloudmersiveDlpApiClient
|
|
|
33
33
|
# Set to true to allow street addresses in the document and not flag them as PII.
|
|
34
34
|
attr_accessor :allow_street_address
|
|
35
35
|
|
|
36
|
+
# Set to true to allow standalone city names (e.g. \"San Francisco\") in the document and not flag them as PII. Applies to city names mentioned outside of a full street address.
|
|
37
|
+
attr_accessor :allow_city
|
|
38
|
+
|
|
36
39
|
# Set to true to allow person names in the document and not flag them as PII.
|
|
37
40
|
attr_accessor :allow_person_name
|
|
38
41
|
|
|
@@ -96,6 +99,12 @@ module CloudmersiveDlpApiClient
|
|
|
96
99
|
# Set to true to allow health insurance member IDs in the document and not flag them as PHI.
|
|
97
100
|
attr_accessor :allow_health_insurance_member_id
|
|
98
101
|
|
|
102
|
+
# Set to true to allow medical record numbers in the document and not flag them as PHI.
|
|
103
|
+
attr_accessor :allow_medical_record_number
|
|
104
|
+
|
|
105
|
+
# Set to true to allow billing account numbers (e.g. provider/customer billing account IDs, distinct from bank account numbers) in the document and not flag them as PII.
|
|
106
|
+
attr_accessor :allow_billing_account_number
|
|
107
|
+
|
|
99
108
|
# Set to true to allow references to injuries or diseases in the document and not flag them as PHI.
|
|
100
109
|
attr_accessor :allow_health_injury_or_disease
|
|
101
110
|
|
|
@@ -132,6 +141,9 @@ module CloudmersiveDlpApiClient
|
|
|
132
141
|
# Set to true to include a natural language rationale explaining why each detection conclusion was formed.
|
|
133
142
|
attr_accessor :provide_analysis_rationale
|
|
134
143
|
|
|
144
|
+
# Apply a Custom Policy for DLP Enforcement by providing the ID; to create a Custom Policy, navigate to the Cloudmersive Management Portal and select Custom Policies. Requires Managed Instance or Private Cloud
|
|
145
|
+
attr_accessor :custom_policy_id
|
|
146
|
+
|
|
135
147
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
136
148
|
def self.attribute_map
|
|
137
149
|
{
|
|
@@ -141,6 +153,7 @@ module CloudmersiveDlpApiClient
|
|
|
141
153
|
:'allow_email_address' => :'AllowEmailAddress',
|
|
142
154
|
:'allow_phone_number' => :'AllowPhoneNumber',
|
|
143
155
|
:'allow_street_address' => :'AllowStreetAddress',
|
|
156
|
+
:'allow_city' => :'AllowCity',
|
|
144
157
|
:'allow_person_name' => :'AllowPersonName',
|
|
145
158
|
:'allow_birth_date' => :'AllowBirthDate',
|
|
146
159
|
:'allow_passport_number' => :'AllowPassportNumber',
|
|
@@ -162,6 +175,8 @@ module CloudmersiveDlpApiClient
|
|
|
162
175
|
:'allow_ip_address' => :'AllowIpAddress',
|
|
163
176
|
:'allow_mac_address' => :'AllowMacAddress',
|
|
164
177
|
:'allow_health_insurance_member_id' => :'AllowHealthInsuranceMemberID',
|
|
178
|
+
:'allow_medical_record_number' => :'AllowMedicalRecordNumber',
|
|
179
|
+
:'allow_billing_account_number' => :'AllowBillingAccountNumber',
|
|
165
180
|
:'allow_health_injury_or_disease' => :'AllowHealthInjuryOrDisease',
|
|
166
181
|
:'allow_health_type_of_treatment' => :'AllowHealthTypeOfTreatment',
|
|
167
182
|
:'allow_health_date_and_time_of_treatment' => :'AllowHealthDateAndTimeOfTreatment',
|
|
@@ -173,7 +188,8 @@ module CloudmersiveDlpApiClient
|
|
|
173
188
|
:'allow_names_of_relatives' => :'AllowNamesOfRelatives',
|
|
174
189
|
:'allow_health_universal_record_locator' => :'AllowHealthUniversalRecordLocator',
|
|
175
190
|
:'allow_biometrics' => :'AllowBiometrics',
|
|
176
|
-
:'provide_analysis_rationale' => :'ProvideAnalysisRationale'
|
|
191
|
+
:'provide_analysis_rationale' => :'ProvideAnalysisRationale',
|
|
192
|
+
:'custom_policy_id' => :'CustomPolicyID'
|
|
177
193
|
}
|
|
178
194
|
end
|
|
179
195
|
|
|
@@ -186,6 +202,7 @@ module CloudmersiveDlpApiClient
|
|
|
186
202
|
:'allow_email_address' => :'BOOLEAN',
|
|
187
203
|
:'allow_phone_number' => :'BOOLEAN',
|
|
188
204
|
:'allow_street_address' => :'BOOLEAN',
|
|
205
|
+
:'allow_city' => :'BOOLEAN',
|
|
189
206
|
:'allow_person_name' => :'BOOLEAN',
|
|
190
207
|
:'allow_birth_date' => :'BOOLEAN',
|
|
191
208
|
:'allow_passport_number' => :'BOOLEAN',
|
|
@@ -207,6 +224,8 @@ module CloudmersiveDlpApiClient
|
|
|
207
224
|
:'allow_ip_address' => :'BOOLEAN',
|
|
208
225
|
:'allow_mac_address' => :'BOOLEAN',
|
|
209
226
|
:'allow_health_insurance_member_id' => :'BOOLEAN',
|
|
227
|
+
:'allow_medical_record_number' => :'BOOLEAN',
|
|
228
|
+
:'allow_billing_account_number' => :'BOOLEAN',
|
|
210
229
|
:'allow_health_injury_or_disease' => :'BOOLEAN',
|
|
211
230
|
:'allow_health_type_of_treatment' => :'BOOLEAN',
|
|
212
231
|
:'allow_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -218,7 +237,8 @@ module CloudmersiveDlpApiClient
|
|
|
218
237
|
:'allow_names_of_relatives' => :'BOOLEAN',
|
|
219
238
|
:'allow_health_universal_record_locator' => :'BOOLEAN',
|
|
220
239
|
:'allow_biometrics' => :'BOOLEAN',
|
|
221
|
-
:'provide_analysis_rationale' => :'BOOLEAN'
|
|
240
|
+
:'provide_analysis_rationale' => :'BOOLEAN',
|
|
241
|
+
:'custom_policy_id' => :'String'
|
|
222
242
|
}
|
|
223
243
|
end
|
|
224
244
|
|
|
@@ -254,6 +274,10 @@ module CloudmersiveDlpApiClient
|
|
|
254
274
|
self.allow_street_address = attributes[:'AllowStreetAddress']
|
|
255
275
|
end
|
|
256
276
|
|
|
277
|
+
if attributes.has_key?(:'AllowCity')
|
|
278
|
+
self.allow_city = attributes[:'AllowCity']
|
|
279
|
+
end
|
|
280
|
+
|
|
257
281
|
if attributes.has_key?(:'AllowPersonName')
|
|
258
282
|
self.allow_person_name = attributes[:'AllowPersonName']
|
|
259
283
|
end
|
|
@@ -338,6 +362,14 @@ module CloudmersiveDlpApiClient
|
|
|
338
362
|
self.allow_health_insurance_member_id = attributes[:'AllowHealthInsuranceMemberID']
|
|
339
363
|
end
|
|
340
364
|
|
|
365
|
+
if attributes.has_key?(:'AllowMedicalRecordNumber')
|
|
366
|
+
self.allow_medical_record_number = attributes[:'AllowMedicalRecordNumber']
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if attributes.has_key?(:'AllowBillingAccountNumber')
|
|
370
|
+
self.allow_billing_account_number = attributes[:'AllowBillingAccountNumber']
|
|
371
|
+
end
|
|
372
|
+
|
|
341
373
|
if attributes.has_key?(:'AllowHealthInjuryOrDisease')
|
|
342
374
|
self.allow_health_injury_or_disease = attributes[:'AllowHealthInjuryOrDisease']
|
|
343
375
|
end
|
|
@@ -385,6 +417,10 @@ module CloudmersiveDlpApiClient
|
|
|
385
417
|
if attributes.has_key?(:'ProvideAnalysisRationale')
|
|
386
418
|
self.provide_analysis_rationale = attributes[:'ProvideAnalysisRationale']
|
|
387
419
|
end
|
|
420
|
+
|
|
421
|
+
if attributes.has_key?(:'CustomPolicyID')
|
|
422
|
+
self.custom_policy_id = attributes[:'CustomPolicyID']
|
|
423
|
+
end
|
|
388
424
|
end
|
|
389
425
|
|
|
390
426
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -426,6 +462,7 @@ module CloudmersiveDlpApiClient
|
|
|
426
462
|
allow_email_address == o.allow_email_address &&
|
|
427
463
|
allow_phone_number == o.allow_phone_number &&
|
|
428
464
|
allow_street_address == o.allow_street_address &&
|
|
465
|
+
allow_city == o.allow_city &&
|
|
429
466
|
allow_person_name == o.allow_person_name &&
|
|
430
467
|
allow_birth_date == o.allow_birth_date &&
|
|
431
468
|
allow_passport_number == o.allow_passport_number &&
|
|
@@ -447,6 +484,8 @@ module CloudmersiveDlpApiClient
|
|
|
447
484
|
allow_ip_address == o.allow_ip_address &&
|
|
448
485
|
allow_mac_address == o.allow_mac_address &&
|
|
449
486
|
allow_health_insurance_member_id == o.allow_health_insurance_member_id &&
|
|
487
|
+
allow_medical_record_number == o.allow_medical_record_number &&
|
|
488
|
+
allow_billing_account_number == o.allow_billing_account_number &&
|
|
450
489
|
allow_health_injury_or_disease == o.allow_health_injury_or_disease &&
|
|
451
490
|
allow_health_type_of_treatment == o.allow_health_type_of_treatment &&
|
|
452
491
|
allow_health_date_and_time_of_treatment == o.allow_health_date_and_time_of_treatment &&
|
|
@@ -458,7 +497,8 @@ module CloudmersiveDlpApiClient
|
|
|
458
497
|
allow_names_of_relatives == o.allow_names_of_relatives &&
|
|
459
498
|
allow_health_universal_record_locator == o.allow_health_universal_record_locator &&
|
|
460
499
|
allow_biometrics == o.allow_biometrics &&
|
|
461
|
-
provide_analysis_rationale == o.provide_analysis_rationale
|
|
500
|
+
provide_analysis_rationale == o.provide_analysis_rationale &&
|
|
501
|
+
custom_policy_id == o.custom_policy_id
|
|
462
502
|
end
|
|
463
503
|
|
|
464
504
|
# @see the `==` method
|
|
@@ -470,7 +510,7 @@ module CloudmersiveDlpApiClient
|
|
|
470
510
|
# Calculates hash code according to all attributes.
|
|
471
511
|
# @return [Fixnum] Hash code
|
|
472
512
|
def hash
|
|
473
|
-
[input_file, file_name, recognition_mode, allow_email_address, allow_phone_number, allow_street_address, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_faces, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale].hash
|
|
513
|
+
[input_file, file_name, recognition_mode, allow_email_address, allow_phone_number, allow_street_address, allow_city, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_medical_record_number, allow_billing_account_number, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_faces, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale, custom_policy_id].hash
|
|
474
514
|
end
|
|
475
515
|
|
|
476
516
|
# Builds the object from hash
|
|
@@ -15,13 +15,13 @@ require 'date'
|
|
|
15
15
|
module CloudmersiveDlpApiClient
|
|
16
16
|
# Request object for advanced DLP document redaction with 35 PII detection types including health-related data.
|
|
17
17
|
class DlpAdvancedDocumentRedactionRequest
|
|
18
|
-
# Document file bytes (PDF, DOCX, PNG, or
|
|
18
|
+
# Document file bytes (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, or WEBP) to scan for PII and redact.
|
|
19
19
|
attr_accessor :input_file
|
|
20
20
|
|
|
21
21
|
# Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents.
|
|
22
22
|
attr_accessor :file_name
|
|
23
23
|
|
|
24
|
-
# Optional. Recognition mode for image processing. Options: null (default), \"Fast\", \"FastPlus\", \"FastMini\".
|
|
24
|
+
# Optional. Recognition mode for image processing. Options: null (default), \"Normal\", \"Advanced\", \"Fast\", \"FastPlus\", \"FastMini\".
|
|
25
25
|
attr_accessor :recognition_mode
|
|
26
26
|
|
|
27
27
|
# 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.
|
|
@@ -36,6 +36,9 @@ module CloudmersiveDlpApiClient
|
|
|
36
36
|
# Set to true to allow street addresses in the document and not redact them.
|
|
37
37
|
attr_accessor :allow_street_address
|
|
38
38
|
|
|
39
|
+
# Set to true to allow standalone city names (e.g. \"San Francisco\") in the document and not redact them. Applies to city names mentioned outside of a full street address.
|
|
40
|
+
attr_accessor :allow_city
|
|
41
|
+
|
|
39
42
|
# Set to true to allow person names in the document and not redact them.
|
|
40
43
|
attr_accessor :allow_person_name
|
|
41
44
|
|
|
@@ -99,6 +102,12 @@ module CloudmersiveDlpApiClient
|
|
|
99
102
|
# Set to true to allow health insurance member IDs in the document and not redact them.
|
|
100
103
|
attr_accessor :allow_health_insurance_member_id
|
|
101
104
|
|
|
105
|
+
# Set to true to allow medical record numbers in the document and not redact them.
|
|
106
|
+
attr_accessor :allow_medical_record_number
|
|
107
|
+
|
|
108
|
+
# Set to true to allow billing account numbers (e.g. provider/customer billing account IDs, distinct from bank account numbers) in the document and not redact them.
|
|
109
|
+
attr_accessor :allow_billing_account_number
|
|
110
|
+
|
|
102
111
|
# Set to true to allow references to injuries or diseases in the document and not redact them.
|
|
103
112
|
attr_accessor :allow_health_injury_or_disease
|
|
104
113
|
|
|
@@ -135,6 +144,12 @@ module CloudmersiveDlpApiClient
|
|
|
135
144
|
# Set to true to include a natural language rationale explaining why each detection conclusion was formed.
|
|
136
145
|
attr_accessor :provide_analysis_rationale
|
|
137
146
|
|
|
147
|
+
# Apply a Custom Policy for DLP Enforcement by providing the ID; to create a Custom Policy, navigate to the Cloudmersive Management Portal and select Custom Policies. Requires Managed Instance or Private Cloud
|
|
148
|
+
attr_accessor :custom_policy_id
|
|
149
|
+
|
|
150
|
+
# Optional list of caller-defined custom PII fields to detect and redact in addition to the built-in categories. Each entry has a Title (used to derive the redaction tag, e.g. \"internal participant code\" → [INTERNAL-PARTICIPANT-CODE]) and a Description telling the redaction LLM what the field looks like. Default null.
|
|
151
|
+
attr_accessor :custom_fields
|
|
152
|
+
|
|
138
153
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
139
154
|
def self.attribute_map
|
|
140
155
|
{
|
|
@@ -145,6 +160,7 @@ module CloudmersiveDlpApiClient
|
|
|
145
160
|
:'allow_email_address' => :'AllowEmailAddress',
|
|
146
161
|
:'allow_phone_number' => :'AllowPhoneNumber',
|
|
147
162
|
:'allow_street_address' => :'AllowStreetAddress',
|
|
163
|
+
:'allow_city' => :'AllowCity',
|
|
148
164
|
:'allow_person_name' => :'AllowPersonName',
|
|
149
165
|
:'allow_birth_date' => :'AllowBirthDate',
|
|
150
166
|
:'allow_passport_number' => :'AllowPassportNumber',
|
|
@@ -166,6 +182,8 @@ module CloudmersiveDlpApiClient
|
|
|
166
182
|
:'allow_ip_address' => :'AllowIpAddress',
|
|
167
183
|
:'allow_mac_address' => :'AllowMacAddress',
|
|
168
184
|
:'allow_health_insurance_member_id' => :'AllowHealthInsuranceMemberID',
|
|
185
|
+
:'allow_medical_record_number' => :'AllowMedicalRecordNumber',
|
|
186
|
+
:'allow_billing_account_number' => :'AllowBillingAccountNumber',
|
|
169
187
|
:'allow_health_injury_or_disease' => :'AllowHealthInjuryOrDisease',
|
|
170
188
|
:'allow_health_type_of_treatment' => :'AllowHealthTypeOfTreatment',
|
|
171
189
|
:'allow_health_date_and_time_of_treatment' => :'AllowHealthDateAndTimeOfTreatment',
|
|
@@ -177,7 +195,9 @@ module CloudmersiveDlpApiClient
|
|
|
177
195
|
:'allow_names_of_relatives' => :'AllowNamesOfRelatives',
|
|
178
196
|
:'allow_health_universal_record_locator' => :'AllowHealthUniversalRecordLocator',
|
|
179
197
|
:'allow_biometrics' => :'AllowBiometrics',
|
|
180
|
-
:'provide_analysis_rationale' => :'ProvideAnalysisRationale'
|
|
198
|
+
:'provide_analysis_rationale' => :'ProvideAnalysisRationale',
|
|
199
|
+
:'custom_policy_id' => :'CustomPolicyID',
|
|
200
|
+
:'custom_fields' => :'CustomFields'
|
|
181
201
|
}
|
|
182
202
|
end
|
|
183
203
|
|
|
@@ -191,6 +211,7 @@ module CloudmersiveDlpApiClient
|
|
|
191
211
|
:'allow_email_address' => :'BOOLEAN',
|
|
192
212
|
:'allow_phone_number' => :'BOOLEAN',
|
|
193
213
|
:'allow_street_address' => :'BOOLEAN',
|
|
214
|
+
:'allow_city' => :'BOOLEAN',
|
|
194
215
|
:'allow_person_name' => :'BOOLEAN',
|
|
195
216
|
:'allow_birth_date' => :'BOOLEAN',
|
|
196
217
|
:'allow_passport_number' => :'BOOLEAN',
|
|
@@ -212,6 +233,8 @@ module CloudmersiveDlpApiClient
|
|
|
212
233
|
:'allow_ip_address' => :'BOOLEAN',
|
|
213
234
|
:'allow_mac_address' => :'BOOLEAN',
|
|
214
235
|
:'allow_health_insurance_member_id' => :'BOOLEAN',
|
|
236
|
+
:'allow_medical_record_number' => :'BOOLEAN',
|
|
237
|
+
:'allow_billing_account_number' => :'BOOLEAN',
|
|
215
238
|
:'allow_health_injury_or_disease' => :'BOOLEAN',
|
|
216
239
|
:'allow_health_type_of_treatment' => :'BOOLEAN',
|
|
217
240
|
:'allow_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -223,7 +246,9 @@ module CloudmersiveDlpApiClient
|
|
|
223
246
|
:'allow_names_of_relatives' => :'BOOLEAN',
|
|
224
247
|
:'allow_health_universal_record_locator' => :'BOOLEAN',
|
|
225
248
|
:'allow_biometrics' => :'BOOLEAN',
|
|
226
|
-
:'provide_analysis_rationale' => :'BOOLEAN'
|
|
249
|
+
:'provide_analysis_rationale' => :'BOOLEAN',
|
|
250
|
+
:'custom_policy_id' => :'String',
|
|
251
|
+
:'custom_fields' => :'Array<CustomPiiField>'
|
|
227
252
|
}
|
|
228
253
|
end
|
|
229
254
|
|
|
@@ -263,6 +288,10 @@ module CloudmersiveDlpApiClient
|
|
|
263
288
|
self.allow_street_address = attributes[:'AllowStreetAddress']
|
|
264
289
|
end
|
|
265
290
|
|
|
291
|
+
if attributes.has_key?(:'AllowCity')
|
|
292
|
+
self.allow_city = attributes[:'AllowCity']
|
|
293
|
+
end
|
|
294
|
+
|
|
266
295
|
if attributes.has_key?(:'AllowPersonName')
|
|
267
296
|
self.allow_person_name = attributes[:'AllowPersonName']
|
|
268
297
|
end
|
|
@@ -347,6 +376,14 @@ module CloudmersiveDlpApiClient
|
|
|
347
376
|
self.allow_health_insurance_member_id = attributes[:'AllowHealthInsuranceMemberID']
|
|
348
377
|
end
|
|
349
378
|
|
|
379
|
+
if attributes.has_key?(:'AllowMedicalRecordNumber')
|
|
380
|
+
self.allow_medical_record_number = attributes[:'AllowMedicalRecordNumber']
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
if attributes.has_key?(:'AllowBillingAccountNumber')
|
|
384
|
+
self.allow_billing_account_number = attributes[:'AllowBillingAccountNumber']
|
|
385
|
+
end
|
|
386
|
+
|
|
350
387
|
if attributes.has_key?(:'AllowHealthInjuryOrDisease')
|
|
351
388
|
self.allow_health_injury_or_disease = attributes[:'AllowHealthInjuryOrDisease']
|
|
352
389
|
end
|
|
@@ -394,6 +431,16 @@ module CloudmersiveDlpApiClient
|
|
|
394
431
|
if attributes.has_key?(:'ProvideAnalysisRationale')
|
|
395
432
|
self.provide_analysis_rationale = attributes[:'ProvideAnalysisRationale']
|
|
396
433
|
end
|
|
434
|
+
|
|
435
|
+
if attributes.has_key?(:'CustomPolicyID')
|
|
436
|
+
self.custom_policy_id = attributes[:'CustomPolicyID']
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
if attributes.has_key?(:'CustomFields')
|
|
440
|
+
if (value = attributes[:'CustomFields']).is_a?(Array)
|
|
441
|
+
self.custom_fields = value
|
|
442
|
+
end
|
|
443
|
+
end
|
|
397
444
|
end
|
|
398
445
|
|
|
399
446
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -436,6 +483,7 @@ module CloudmersiveDlpApiClient
|
|
|
436
483
|
allow_email_address == o.allow_email_address &&
|
|
437
484
|
allow_phone_number == o.allow_phone_number &&
|
|
438
485
|
allow_street_address == o.allow_street_address &&
|
|
486
|
+
allow_city == o.allow_city &&
|
|
439
487
|
allow_person_name == o.allow_person_name &&
|
|
440
488
|
allow_birth_date == o.allow_birth_date &&
|
|
441
489
|
allow_passport_number == o.allow_passport_number &&
|
|
@@ -457,6 +505,8 @@ module CloudmersiveDlpApiClient
|
|
|
457
505
|
allow_ip_address == o.allow_ip_address &&
|
|
458
506
|
allow_mac_address == o.allow_mac_address &&
|
|
459
507
|
allow_health_insurance_member_id == o.allow_health_insurance_member_id &&
|
|
508
|
+
allow_medical_record_number == o.allow_medical_record_number &&
|
|
509
|
+
allow_billing_account_number == o.allow_billing_account_number &&
|
|
460
510
|
allow_health_injury_or_disease == o.allow_health_injury_or_disease &&
|
|
461
511
|
allow_health_type_of_treatment == o.allow_health_type_of_treatment &&
|
|
462
512
|
allow_health_date_and_time_of_treatment == o.allow_health_date_and_time_of_treatment &&
|
|
@@ -468,7 +518,9 @@ module CloudmersiveDlpApiClient
|
|
|
468
518
|
allow_names_of_relatives == o.allow_names_of_relatives &&
|
|
469
519
|
allow_health_universal_record_locator == o.allow_health_universal_record_locator &&
|
|
470
520
|
allow_biometrics == o.allow_biometrics &&
|
|
471
|
-
provide_analysis_rationale == o.provide_analysis_rationale
|
|
521
|
+
provide_analysis_rationale == o.provide_analysis_rationale &&
|
|
522
|
+
custom_policy_id == o.custom_policy_id &&
|
|
523
|
+
custom_fields == o.custom_fields
|
|
472
524
|
end
|
|
473
525
|
|
|
474
526
|
# @see the `==` method
|
|
@@ -480,7 +532,7 @@ module CloudmersiveDlpApiClient
|
|
|
480
532
|
# Calculates hash code according to all attributes.
|
|
481
533
|
# @return [Fixnum] Hash code
|
|
482
534
|
def hash
|
|
483
|
-
[input_file, file_name, recognition_mode, redaction_mode, allow_email_address, allow_phone_number, allow_street_address, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_faces, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale].hash
|
|
535
|
+
[input_file, file_name, recognition_mode, redaction_mode, allow_email_address, allow_phone_number, allow_street_address, allow_city, allow_person_name, allow_birth_date, allow_passport_number, allow_drivers_license, allow_social_security_number, allow_taxpayer_id, allow_credit_card_number, allow_credit_card_expiration_date, allow_credit_card_verification_code, allow_bank_account_number, allow_iban, allow_health_insurance_number, allow_bearer_token, allow_http_cookie, allow_private_keys, allow_credentials, allow_deep_web_urls, allow_source_code, allow_ip_address, allow_mac_address, allow_health_insurance_member_id, allow_medical_record_number, allow_billing_account_number, allow_health_injury_or_disease, allow_health_type_of_treatment, allow_health_date_and_time_of_treatment, allow_health_plan_beneficiary_number, allow_health_payments_made_for_treatment, allow_faces, allow_vehicle_id, allow_device_id, allow_names_of_relatives, allow_health_universal_record_locator, allow_biometrics, provide_analysis_rationale, custom_policy_id, custom_fields].hash
|
|
484
536
|
end
|
|
485
537
|
|
|
486
538
|
# Builds the object from hash
|