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
|
@@ -30,6 +30,9 @@ module CloudmersiveDlpApiClient
|
|
|
30
30
|
# True if the document contains street addresses.
|
|
31
31
|
attr_accessor :contains_street_address
|
|
32
32
|
|
|
33
|
+
# True if the document contains standalone city names (e.g. \"San Francisco\") outside of a full street address.
|
|
34
|
+
attr_accessor :contains_city
|
|
35
|
+
|
|
33
36
|
# True if the document contains person names.
|
|
34
37
|
attr_accessor :contains_person_name
|
|
35
38
|
|
|
@@ -93,6 +96,12 @@ module CloudmersiveDlpApiClient
|
|
|
93
96
|
# True if the document contains health insurance member IDs.
|
|
94
97
|
attr_accessor :contains_health_insurance_member_id
|
|
95
98
|
|
|
99
|
+
# True if the document contains medical record numbers.
|
|
100
|
+
attr_accessor :contains_medical_record_number
|
|
101
|
+
|
|
102
|
+
# True if the document contains billing account numbers (provider/customer billing account IDs, distinct from bank account numbers).
|
|
103
|
+
attr_accessor :contains_billing_account_number
|
|
104
|
+
|
|
96
105
|
# True if the document contains references to injuries or diseases.
|
|
97
106
|
attr_accessor :contains_health_injury_or_disease
|
|
98
107
|
|
|
@@ -140,6 +149,7 @@ module CloudmersiveDlpApiClient
|
|
|
140
149
|
:'contains_email_address' => :'ContainsEmailAddress',
|
|
141
150
|
:'contains_phone_number' => :'ContainsPhoneNumber',
|
|
142
151
|
:'contains_street_address' => :'ContainsStreetAddress',
|
|
152
|
+
:'contains_city' => :'ContainsCity',
|
|
143
153
|
:'contains_person_name' => :'ContainsPersonName',
|
|
144
154
|
:'contains_birth_date' => :'ContainsBirthDate',
|
|
145
155
|
:'contains_passport_number' => :'ContainsPassportNumber',
|
|
@@ -161,6 +171,8 @@ module CloudmersiveDlpApiClient
|
|
|
161
171
|
:'contains_ip_address' => :'ContainsIpAddress',
|
|
162
172
|
:'contains_mac_address' => :'ContainsMacAddress',
|
|
163
173
|
:'contains_health_insurance_member_id' => :'ContainsHealthInsuranceMemberID',
|
|
174
|
+
:'contains_medical_record_number' => :'ContainsMedicalRecordNumber',
|
|
175
|
+
:'contains_billing_account_number' => :'ContainsBillingAccountNumber',
|
|
164
176
|
:'contains_health_injury_or_disease' => :'ContainsHealthInjuryOrDisease',
|
|
165
177
|
:'contains_health_type_of_treatment' => :'ContainsHealthTypeOfTreatment',
|
|
166
178
|
:'contains_health_date_and_time_of_treatment' => :'ContainsHealthDateAndTimeOfTreatment',
|
|
@@ -185,6 +197,7 @@ module CloudmersiveDlpApiClient
|
|
|
185
197
|
:'contains_email_address' => :'BOOLEAN',
|
|
186
198
|
:'contains_phone_number' => :'BOOLEAN',
|
|
187
199
|
:'contains_street_address' => :'BOOLEAN',
|
|
200
|
+
:'contains_city' => :'BOOLEAN',
|
|
188
201
|
:'contains_person_name' => :'BOOLEAN',
|
|
189
202
|
:'contains_birth_date' => :'BOOLEAN',
|
|
190
203
|
:'contains_passport_number' => :'BOOLEAN',
|
|
@@ -206,6 +219,8 @@ module CloudmersiveDlpApiClient
|
|
|
206
219
|
:'contains_ip_address' => :'BOOLEAN',
|
|
207
220
|
:'contains_mac_address' => :'BOOLEAN',
|
|
208
221
|
:'contains_health_insurance_member_id' => :'BOOLEAN',
|
|
222
|
+
:'contains_medical_record_number' => :'BOOLEAN',
|
|
223
|
+
:'contains_billing_account_number' => :'BOOLEAN',
|
|
209
224
|
:'contains_health_injury_or_disease' => :'BOOLEAN',
|
|
210
225
|
:'contains_health_type_of_treatment' => :'BOOLEAN',
|
|
211
226
|
:'contains_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -250,6 +265,10 @@ module CloudmersiveDlpApiClient
|
|
|
250
265
|
self.contains_street_address = attributes[:'ContainsStreetAddress']
|
|
251
266
|
end
|
|
252
267
|
|
|
268
|
+
if attributes.has_key?(:'ContainsCity')
|
|
269
|
+
self.contains_city = attributes[:'ContainsCity']
|
|
270
|
+
end
|
|
271
|
+
|
|
253
272
|
if attributes.has_key?(:'ContainsPersonName')
|
|
254
273
|
self.contains_person_name = attributes[:'ContainsPersonName']
|
|
255
274
|
end
|
|
@@ -334,6 +353,14 @@ module CloudmersiveDlpApiClient
|
|
|
334
353
|
self.contains_health_insurance_member_id = attributes[:'ContainsHealthInsuranceMemberID']
|
|
335
354
|
end
|
|
336
355
|
|
|
356
|
+
if attributes.has_key?(:'ContainsMedicalRecordNumber')
|
|
357
|
+
self.contains_medical_record_number = attributes[:'ContainsMedicalRecordNumber']
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if attributes.has_key?(:'ContainsBillingAccountNumber')
|
|
361
|
+
self.contains_billing_account_number = attributes[:'ContainsBillingAccountNumber']
|
|
362
|
+
end
|
|
363
|
+
|
|
337
364
|
if attributes.has_key?(:'ContainsHealthInjuryOrDisease')
|
|
338
365
|
self.contains_health_injury_or_disease = attributes[:'ContainsHealthInjuryOrDisease']
|
|
339
366
|
end
|
|
@@ -427,6 +454,7 @@ module CloudmersiveDlpApiClient
|
|
|
427
454
|
contains_email_address == o.contains_email_address &&
|
|
428
455
|
contains_phone_number == o.contains_phone_number &&
|
|
429
456
|
contains_street_address == o.contains_street_address &&
|
|
457
|
+
contains_city == o.contains_city &&
|
|
430
458
|
contains_person_name == o.contains_person_name &&
|
|
431
459
|
contains_birth_date == o.contains_birth_date &&
|
|
432
460
|
contains_passport_number == o.contains_passport_number &&
|
|
@@ -448,6 +476,8 @@ module CloudmersiveDlpApiClient
|
|
|
448
476
|
contains_ip_address == o.contains_ip_address &&
|
|
449
477
|
contains_mac_address == o.contains_mac_address &&
|
|
450
478
|
contains_health_insurance_member_id == o.contains_health_insurance_member_id &&
|
|
479
|
+
contains_medical_record_number == o.contains_medical_record_number &&
|
|
480
|
+
contains_billing_account_number == o.contains_billing_account_number &&
|
|
451
481
|
contains_health_injury_or_disease == o.contains_health_injury_or_disease &&
|
|
452
482
|
contains_health_type_of_treatment == o.contains_health_type_of_treatment &&
|
|
453
483
|
contains_health_date_and_time_of_treatment == o.contains_health_date_and_time_of_treatment &&
|
|
@@ -472,7 +502,7 @@ module CloudmersiveDlpApiClient
|
|
|
472
502
|
# Calculates hash code according to all attributes.
|
|
473
503
|
# @return [Fixnum] Hash code
|
|
474
504
|
def hash
|
|
475
|
-
[redacted_document, 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, pages_redacted, analysis_rationale].hash
|
|
505
|
+
[redacted_document, 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, pages_redacted, analysis_rationale].hash
|
|
476
506
|
end
|
|
477
507
|
|
|
478
508
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module CloudmersiveDlpApiClient
|
|
|
27
27
|
# Set to true to allow street addresses in the input text and not redact them.
|
|
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 redact them. 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 redact them.
|
|
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 redact them.
|
|
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 redact them.
|
|
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 redact them.
|
|
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 redact them.
|
|
94
103
|
attr_accessor :allow_health_injury_or_disease
|
|
95
104
|
|
|
@@ -120,12 +129,18 @@ module CloudmersiveDlpApiClient
|
|
|
120
129
|
# Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the input text and not redact them.
|
|
121
130
|
attr_accessor :allow_biometrics
|
|
122
131
|
|
|
123
|
-
# Redaction mode: \"
|
|
132
|
+
# Redaction mode: \"SemanticTag\" (default) replaces PII with a semantic tag in square brackets (e.g. [PHONE-NUMBER]), \"Delete\" removes PII entirely, or \"ReplaceWithAsterisk\" replaces PII characters with asterisks (*).
|
|
124
133
|
attr_accessor :redaction_mode
|
|
125
134
|
|
|
126
135
|
# Set to true to include a natural language rationale explaining why each detection conclusion was formed.
|
|
127
136
|
attr_accessor :provide_analysis_rationale
|
|
128
137
|
|
|
138
|
+
# 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
|
|
139
|
+
attr_accessor :custom_policy_id
|
|
140
|
+
|
|
141
|
+
# 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.
|
|
142
|
+
attr_accessor :custom_fields
|
|
143
|
+
|
|
129
144
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
130
145
|
def self.attribute_map
|
|
131
146
|
{
|
|
@@ -133,6 +148,7 @@ module CloudmersiveDlpApiClient
|
|
|
133
148
|
:'allow_email_address' => :'AllowEmailAddress',
|
|
134
149
|
:'allow_phone_number' => :'AllowPhoneNumber',
|
|
135
150
|
:'allow_street_address' => :'AllowStreetAddress',
|
|
151
|
+
:'allow_city' => :'AllowCity',
|
|
136
152
|
:'allow_person_name' => :'AllowPersonName',
|
|
137
153
|
:'allow_birth_date' => :'AllowBirthDate',
|
|
138
154
|
:'allow_passport_number' => :'AllowPassportNumber',
|
|
@@ -154,6 +170,8 @@ module CloudmersiveDlpApiClient
|
|
|
154
170
|
:'allow_ip_address' => :'AllowIpAddress',
|
|
155
171
|
:'allow_mac_address' => :'AllowMacAddress',
|
|
156
172
|
:'allow_health_insurance_member_id' => :'AllowHealthInsuranceMemberID',
|
|
173
|
+
:'allow_medical_record_number' => :'AllowMedicalRecordNumber',
|
|
174
|
+
:'allow_billing_account_number' => :'AllowBillingAccountNumber',
|
|
157
175
|
:'allow_health_injury_or_disease' => :'AllowHealthInjuryOrDisease',
|
|
158
176
|
:'allow_health_type_of_treatment' => :'AllowHealthTypeOfTreatment',
|
|
159
177
|
:'allow_health_date_and_time_of_treatment' => :'AllowHealthDateAndTimeOfTreatment',
|
|
@@ -165,7 +183,9 @@ module CloudmersiveDlpApiClient
|
|
|
165
183
|
:'allow_health_universal_record_locator' => :'AllowHealthUniversalRecordLocator',
|
|
166
184
|
:'allow_biometrics' => :'AllowBiometrics',
|
|
167
185
|
:'redaction_mode' => :'RedactionMode',
|
|
168
|
-
:'provide_analysis_rationale' => :'ProvideAnalysisRationale'
|
|
186
|
+
:'provide_analysis_rationale' => :'ProvideAnalysisRationale',
|
|
187
|
+
:'custom_policy_id' => :'CustomPolicyID',
|
|
188
|
+
:'custom_fields' => :'CustomFields'
|
|
169
189
|
}
|
|
170
190
|
end
|
|
171
191
|
|
|
@@ -176,6 +196,7 @@ module CloudmersiveDlpApiClient
|
|
|
176
196
|
:'allow_email_address' => :'BOOLEAN',
|
|
177
197
|
:'allow_phone_number' => :'BOOLEAN',
|
|
178
198
|
:'allow_street_address' => :'BOOLEAN',
|
|
199
|
+
:'allow_city' => :'BOOLEAN',
|
|
179
200
|
:'allow_person_name' => :'BOOLEAN',
|
|
180
201
|
:'allow_birth_date' => :'BOOLEAN',
|
|
181
202
|
:'allow_passport_number' => :'BOOLEAN',
|
|
@@ -197,6 +218,8 @@ module CloudmersiveDlpApiClient
|
|
|
197
218
|
:'allow_ip_address' => :'BOOLEAN',
|
|
198
219
|
:'allow_mac_address' => :'BOOLEAN',
|
|
199
220
|
:'allow_health_insurance_member_id' => :'BOOLEAN',
|
|
221
|
+
:'allow_medical_record_number' => :'BOOLEAN',
|
|
222
|
+
:'allow_billing_account_number' => :'BOOLEAN',
|
|
200
223
|
:'allow_health_injury_or_disease' => :'BOOLEAN',
|
|
201
224
|
:'allow_health_type_of_treatment' => :'BOOLEAN',
|
|
202
225
|
:'allow_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -208,7 +231,9 @@ module CloudmersiveDlpApiClient
|
|
|
208
231
|
:'allow_health_universal_record_locator' => :'BOOLEAN',
|
|
209
232
|
:'allow_biometrics' => :'BOOLEAN',
|
|
210
233
|
:'redaction_mode' => :'String',
|
|
211
|
-
:'provide_analysis_rationale' => :'BOOLEAN'
|
|
234
|
+
:'provide_analysis_rationale' => :'BOOLEAN',
|
|
235
|
+
:'custom_policy_id' => :'String',
|
|
236
|
+
:'custom_fields' => :'Array<CustomPiiField>'
|
|
212
237
|
}
|
|
213
238
|
end
|
|
214
239
|
|
|
@@ -236,6 +261,10 @@ module CloudmersiveDlpApiClient
|
|
|
236
261
|
self.allow_street_address = attributes[:'AllowStreetAddress']
|
|
237
262
|
end
|
|
238
263
|
|
|
264
|
+
if attributes.has_key?(:'AllowCity')
|
|
265
|
+
self.allow_city = attributes[:'AllowCity']
|
|
266
|
+
end
|
|
267
|
+
|
|
239
268
|
if attributes.has_key?(:'AllowPersonName')
|
|
240
269
|
self.allow_person_name = attributes[:'AllowPersonName']
|
|
241
270
|
end
|
|
@@ -320,6 +349,14 @@ module CloudmersiveDlpApiClient
|
|
|
320
349
|
self.allow_health_insurance_member_id = attributes[:'AllowHealthInsuranceMemberID']
|
|
321
350
|
end
|
|
322
351
|
|
|
352
|
+
if attributes.has_key?(:'AllowMedicalRecordNumber')
|
|
353
|
+
self.allow_medical_record_number = attributes[:'AllowMedicalRecordNumber']
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if attributes.has_key?(:'AllowBillingAccountNumber')
|
|
357
|
+
self.allow_billing_account_number = attributes[:'AllowBillingAccountNumber']
|
|
358
|
+
end
|
|
359
|
+
|
|
323
360
|
if attributes.has_key?(:'AllowHealthInjuryOrDisease')
|
|
324
361
|
self.allow_health_injury_or_disease = attributes[:'AllowHealthInjuryOrDisease']
|
|
325
362
|
end
|
|
@@ -367,6 +404,16 @@ module CloudmersiveDlpApiClient
|
|
|
367
404
|
if attributes.has_key?(:'ProvideAnalysisRationale')
|
|
368
405
|
self.provide_analysis_rationale = attributes[:'ProvideAnalysisRationale']
|
|
369
406
|
end
|
|
407
|
+
|
|
408
|
+
if attributes.has_key?(:'CustomPolicyID')
|
|
409
|
+
self.custom_policy_id = attributes[:'CustomPolicyID']
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.has_key?(:'CustomFields')
|
|
413
|
+
if (value = attributes[:'CustomFields']).is_a?(Array)
|
|
414
|
+
self.custom_fields = value
|
|
415
|
+
end
|
|
416
|
+
end
|
|
370
417
|
end
|
|
371
418
|
|
|
372
419
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -391,6 +438,7 @@ module CloudmersiveDlpApiClient
|
|
|
391
438
|
allow_email_address == o.allow_email_address &&
|
|
392
439
|
allow_phone_number == o.allow_phone_number &&
|
|
393
440
|
allow_street_address == o.allow_street_address &&
|
|
441
|
+
allow_city == o.allow_city &&
|
|
394
442
|
allow_person_name == o.allow_person_name &&
|
|
395
443
|
allow_birth_date == o.allow_birth_date &&
|
|
396
444
|
allow_passport_number == o.allow_passport_number &&
|
|
@@ -412,6 +460,8 @@ module CloudmersiveDlpApiClient
|
|
|
412
460
|
allow_ip_address == o.allow_ip_address &&
|
|
413
461
|
allow_mac_address == o.allow_mac_address &&
|
|
414
462
|
allow_health_insurance_member_id == o.allow_health_insurance_member_id &&
|
|
463
|
+
allow_medical_record_number == o.allow_medical_record_number &&
|
|
464
|
+
allow_billing_account_number == o.allow_billing_account_number &&
|
|
415
465
|
allow_health_injury_or_disease == o.allow_health_injury_or_disease &&
|
|
416
466
|
allow_health_type_of_treatment == o.allow_health_type_of_treatment &&
|
|
417
467
|
allow_health_date_and_time_of_treatment == o.allow_health_date_and_time_of_treatment &&
|
|
@@ -423,7 +473,9 @@ module CloudmersiveDlpApiClient
|
|
|
423
473
|
allow_health_universal_record_locator == o.allow_health_universal_record_locator &&
|
|
424
474
|
allow_biometrics == o.allow_biometrics &&
|
|
425
475
|
redaction_mode == o.redaction_mode &&
|
|
426
|
-
provide_analysis_rationale == o.provide_analysis_rationale
|
|
476
|
+
provide_analysis_rationale == o.provide_analysis_rationale &&
|
|
477
|
+
custom_policy_id == o.custom_policy_id &&
|
|
478
|
+
custom_fields == o.custom_fields
|
|
427
479
|
end
|
|
428
480
|
|
|
429
481
|
# @see the `==` method
|
|
@@ -435,7 +487,7 @@ module CloudmersiveDlpApiClient
|
|
|
435
487
|
# Calculates hash code according to all attributes.
|
|
436
488
|
# @return [Fixnum] Hash code
|
|
437
489
|
def hash
|
|
438
|
-
[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, redaction_mode, provide_analysis_rationale].hash
|
|
490
|
+
[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, redaction_mode, provide_analysis_rationale, custom_policy_id, custom_fields].hash
|
|
439
491
|
end
|
|
440
492
|
|
|
441
493
|
# Builds the object from hash
|
|
@@ -30,6 +30,9 @@ module CloudmersiveDlpApiClient
|
|
|
30
30
|
# True if the input contains street addresses.
|
|
31
31
|
attr_accessor :contains_street_address
|
|
32
32
|
|
|
33
|
+
# True if the input contains standalone city names (e.g. \"San Francisco\") outside of a full street address.
|
|
34
|
+
attr_accessor :contains_city
|
|
35
|
+
|
|
33
36
|
# True if the input contains person names.
|
|
34
37
|
attr_accessor :contains_person_name
|
|
35
38
|
|
|
@@ -93,6 +96,12 @@ module CloudmersiveDlpApiClient
|
|
|
93
96
|
# True if the input contains health insurance member IDs.
|
|
94
97
|
attr_accessor :contains_health_insurance_member_id
|
|
95
98
|
|
|
99
|
+
# True if the input contains medical record numbers.
|
|
100
|
+
attr_accessor :contains_medical_record_number
|
|
101
|
+
|
|
102
|
+
# True if the input contains billing account numbers (provider/customer billing account IDs, distinct from bank account numbers).
|
|
103
|
+
attr_accessor :contains_billing_account_number
|
|
104
|
+
|
|
96
105
|
# True if the input contains references to injuries or diseases.
|
|
97
106
|
attr_accessor :contains_health_injury_or_disease
|
|
98
107
|
|
|
@@ -134,6 +143,7 @@ module CloudmersiveDlpApiClient
|
|
|
134
143
|
:'contains_email_address' => :'ContainsEmailAddress',
|
|
135
144
|
:'contains_phone_number' => :'ContainsPhoneNumber',
|
|
136
145
|
:'contains_street_address' => :'ContainsStreetAddress',
|
|
146
|
+
:'contains_city' => :'ContainsCity',
|
|
137
147
|
:'contains_person_name' => :'ContainsPersonName',
|
|
138
148
|
:'contains_birth_date' => :'ContainsBirthDate',
|
|
139
149
|
:'contains_passport_number' => :'ContainsPassportNumber',
|
|
@@ -155,6 +165,8 @@ module CloudmersiveDlpApiClient
|
|
|
155
165
|
:'contains_ip_address' => :'ContainsIpAddress',
|
|
156
166
|
:'contains_mac_address' => :'ContainsMacAddress',
|
|
157
167
|
:'contains_health_insurance_member_id' => :'ContainsHealthInsuranceMemberID',
|
|
168
|
+
:'contains_medical_record_number' => :'ContainsMedicalRecordNumber',
|
|
169
|
+
:'contains_billing_account_number' => :'ContainsBillingAccountNumber',
|
|
158
170
|
:'contains_health_injury_or_disease' => :'ContainsHealthInjuryOrDisease',
|
|
159
171
|
:'contains_health_type_of_treatment' => :'ContainsHealthTypeOfTreatment',
|
|
160
172
|
:'contains_health_date_and_time_of_treatment' => :'ContainsHealthDateAndTimeOfTreatment',
|
|
@@ -177,6 +189,7 @@ module CloudmersiveDlpApiClient
|
|
|
177
189
|
:'contains_email_address' => :'BOOLEAN',
|
|
178
190
|
:'contains_phone_number' => :'BOOLEAN',
|
|
179
191
|
:'contains_street_address' => :'BOOLEAN',
|
|
192
|
+
:'contains_city' => :'BOOLEAN',
|
|
180
193
|
:'contains_person_name' => :'BOOLEAN',
|
|
181
194
|
:'contains_birth_date' => :'BOOLEAN',
|
|
182
195
|
:'contains_passport_number' => :'BOOLEAN',
|
|
@@ -198,6 +211,8 @@ module CloudmersiveDlpApiClient
|
|
|
198
211
|
:'contains_ip_address' => :'BOOLEAN',
|
|
199
212
|
:'contains_mac_address' => :'BOOLEAN',
|
|
200
213
|
:'contains_health_insurance_member_id' => :'BOOLEAN',
|
|
214
|
+
:'contains_medical_record_number' => :'BOOLEAN',
|
|
215
|
+
:'contains_billing_account_number' => :'BOOLEAN',
|
|
201
216
|
:'contains_health_injury_or_disease' => :'BOOLEAN',
|
|
202
217
|
:'contains_health_type_of_treatment' => :'BOOLEAN',
|
|
203
218
|
:'contains_health_date_and_time_of_treatment' => :'BOOLEAN',
|
|
@@ -240,6 +255,10 @@ module CloudmersiveDlpApiClient
|
|
|
240
255
|
self.contains_street_address = attributes[:'ContainsStreetAddress']
|
|
241
256
|
end
|
|
242
257
|
|
|
258
|
+
if attributes.has_key?(:'ContainsCity')
|
|
259
|
+
self.contains_city = attributes[:'ContainsCity']
|
|
260
|
+
end
|
|
261
|
+
|
|
243
262
|
if attributes.has_key?(:'ContainsPersonName')
|
|
244
263
|
self.contains_person_name = attributes[:'ContainsPersonName']
|
|
245
264
|
end
|
|
@@ -324,6 +343,14 @@ module CloudmersiveDlpApiClient
|
|
|
324
343
|
self.contains_health_insurance_member_id = attributes[:'ContainsHealthInsuranceMemberID']
|
|
325
344
|
end
|
|
326
345
|
|
|
346
|
+
if attributes.has_key?(:'ContainsMedicalRecordNumber')
|
|
347
|
+
self.contains_medical_record_number = attributes[:'ContainsMedicalRecordNumber']
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
if attributes.has_key?(:'ContainsBillingAccountNumber')
|
|
351
|
+
self.contains_billing_account_number = attributes[:'ContainsBillingAccountNumber']
|
|
352
|
+
end
|
|
353
|
+
|
|
327
354
|
if attributes.has_key?(:'ContainsHealthInjuryOrDisease')
|
|
328
355
|
self.contains_health_injury_or_disease = attributes[:'ContainsHealthInjuryOrDisease']
|
|
329
356
|
end
|
|
@@ -392,6 +419,7 @@ module CloudmersiveDlpApiClient
|
|
|
392
419
|
contains_email_address == o.contains_email_address &&
|
|
393
420
|
contains_phone_number == o.contains_phone_number &&
|
|
394
421
|
contains_street_address == o.contains_street_address &&
|
|
422
|
+
contains_city == o.contains_city &&
|
|
395
423
|
contains_person_name == o.contains_person_name &&
|
|
396
424
|
contains_birth_date == o.contains_birth_date &&
|
|
397
425
|
contains_passport_number == o.contains_passport_number &&
|
|
@@ -413,6 +441,8 @@ module CloudmersiveDlpApiClient
|
|
|
413
441
|
contains_ip_address == o.contains_ip_address &&
|
|
414
442
|
contains_mac_address == o.contains_mac_address &&
|
|
415
443
|
contains_health_insurance_member_id == o.contains_health_insurance_member_id &&
|
|
444
|
+
contains_medical_record_number == o.contains_medical_record_number &&
|
|
445
|
+
contains_billing_account_number == o.contains_billing_account_number &&
|
|
416
446
|
contains_health_injury_or_disease == o.contains_health_injury_or_disease &&
|
|
417
447
|
contains_health_type_of_treatment == o.contains_health_type_of_treatment &&
|
|
418
448
|
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
|
-
[redacted_text, 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_vehicle_id, contains_device_id, contains_names_of_relatives, contains_health_universal_record_locator, contains_biometrics, analysis_rationale].hash
|
|
468
|
+
[redacted_text, 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_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
|