Class: CloudmersiveDlpApiClient::DlpAdvancedDocumentDetectionRequest
- Inherits:
-
Object
- Object
- CloudmersiveDlpApiClient::DlpAdvancedDocumentDetectionRequest
- Defined in:
- lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb
Overview
Request object for advanced DLP document detection with 29 PII detection types including health-related data.
Instance Attribute Summary collapse
-
#allow_bank_account_number ⇒ Object
Set to true to allow bank account numbers in the document and not flag them as PII.
-
#allow_bearer_token ⇒ Object
Set to true to allow bearer tokens in the document and not flag them as PII.
-
#allow_billing_account_number ⇒ Object
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.
-
#allow_biometrics ⇒ Object
Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the document and not flag them as PII.
-
#allow_birth_date ⇒ Object
Set to true to allow birth dates in the document and not flag them as PII.
-
#allow_city ⇒ Object
Set to true to allow standalone city names (e.g. "San Francisco") in the document and not flag them as PII.
-
#allow_credentials ⇒ Object
Set to true to allow credentials (usernames/passwords) in the document and not flag them as PII.
-
#allow_credit_card_expiration_date ⇒ Object
Set to true to allow credit card expiration dates in the document and not flag them as PII.
-
#allow_credit_card_number ⇒ Object
Set to true to allow credit card numbers in the document and not flag them as PII.
-
#allow_credit_card_verification_code ⇒ Object
Set to true to allow credit card verification codes in the document and not flag them as PII.
-
#allow_deep_web_urls ⇒ Object
Set to true to allow deep web URLs (.onion) in the document and not flag them as PII.
-
#allow_device_id ⇒ Object
Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the document and not flag them as PII.
-
#allow_drivers_license ⇒ Object
Set to true to allow drivers license numbers in the document and not flag them as PII.
-
#allow_email_address ⇒ Object
Set to true to allow email addresses in the document and not flag them as PII.
-
#allow_faces ⇒ Object
Set to true to allow identifiable human faces in the document and not flag them as PII.
-
#allow_health_date_and_time_of_treatment ⇒ Object
Set to true to allow dates and times of medical treatment in the document and not flag them as PHI.
-
#allow_health_injury_or_disease ⇒ Object
Set to true to allow references to injuries or diseases in the document and not flag them as PHI.
-
#allow_health_insurance_member_id ⇒ Object
Set to true to allow health insurance member IDs in the document and not flag them as PHI.
-
#allow_health_insurance_number ⇒ Object
Set to true to allow health insurance numbers in the document and not flag them as PII.
-
#allow_health_payments_made_for_treatment ⇒ Object
Set to true to allow payments made for medical treatment in the document and not flag them as PHI.
-
#allow_health_plan_beneficiary_number ⇒ Object
Set to true to allow health plan beneficiary numbers in the document and not flag them as PHI.
-
#allow_health_type_of_treatment ⇒ Object
Set to true to allow references to types of medical treatment in the document and not flag them as PHI.
-
#allow_health_universal_record_locator ⇒ Object
Set to true to allow health universal record locators (URLs) in the document and not flag them as PHI.
-
#allow_http_cookie ⇒ Object
Set to true to allow HTTP cookies in the document and not flag them as PII.
-
#allow_iban ⇒ Object
Set to true to allow IBANs in the document and not flag them as PII.
-
#allow_ip_address ⇒ Object
Set to true to allow IP addresses in the document and not flag them as PII.
-
#allow_mac_address ⇒ Object
Set to true to allow MAC addresses in the document and not flag them as PII.
-
#allow_medical_record_number ⇒ Object
Set to true to allow medical record numbers in the document and not flag them as PHI.
-
#allow_names_of_relatives ⇒ Object
Set to true to allow names of relatives in the document and not flag them as PII.
-
#allow_passport_number ⇒ Object
Set to true to allow passport numbers in the document and not flag them as PII.
-
#allow_person_name ⇒ Object
Set to true to allow person names in the document and not flag them as PII.
-
#allow_phone_number ⇒ Object
Set to true to allow phone numbers in the document and not flag them as PII.
-
#allow_private_keys ⇒ Object
Set to true to allow private keys in the document and not flag them as PII.
-
#allow_social_security_number ⇒ Object
Set to true to allow social security numbers in the document and not flag them as PII.
-
#allow_source_code ⇒ Object
Set to true to allow source code in the document and not flag it as sensitive data.
-
#allow_street_address ⇒ Object
Set to true to allow street addresses in the document and not flag them as PII.
-
#allow_taxpayer_id ⇒ Object
Set to true to allow taxpayer IDs in the document and not flag them as PII.
-
#allow_vehicle_id ⇒ Object
Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the document and not flag them as PII.
-
#custom_policy_id ⇒ Object
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.
-
#file_name ⇒ Object
Optional.
-
#input_file ⇒ Object
Document file bytes (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, or WEBP) to scan for PII and sensitive data.
-
#provide_analysis_rationale ⇒ Object
Set to true to include a natural language rationale explaining why each detection conclusion was formed.
-
#recognition_mode ⇒ Object
Optional.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DlpAdvancedDocumentDetectionRequest
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ DlpAdvancedDocumentDetectionRequest
Initializes the object
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 247 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'InputFile') self.input_file = attributes[:'InputFile'] end if attributes.has_key?(:'FileName') self.file_name = attributes[:'FileName'] end if attributes.has_key?(:'RecognitionMode') self.recognition_mode = attributes[:'RecognitionMode'] end if attributes.has_key?(:'AllowEmailAddress') self.allow_email_address = attributes[:'AllowEmailAddress'] end if attributes.has_key?(:'AllowPhoneNumber') self.allow_phone_number = attributes[:'AllowPhoneNumber'] end if attributes.has_key?(:'AllowStreetAddress') self.allow_street_address = attributes[:'AllowStreetAddress'] end if attributes.has_key?(:'AllowCity') self.allow_city = attributes[:'AllowCity'] end if attributes.has_key?(:'AllowPersonName') self.allow_person_name = attributes[:'AllowPersonName'] end if attributes.has_key?(:'AllowBirthDate') self.allow_birth_date = attributes[:'AllowBirthDate'] end if attributes.has_key?(:'AllowPassportNumber') self.allow_passport_number = attributes[:'AllowPassportNumber'] end if attributes.has_key?(:'AllowDriversLicense') self.allow_drivers_license = attributes[:'AllowDriversLicense'] end if attributes.has_key?(:'AllowSocialSecurityNumber') self. = attributes[:'AllowSocialSecurityNumber'] end if attributes.has_key?(:'AllowTaxpayerID') self.allow_taxpayer_id = attributes[:'AllowTaxpayerID'] end if attributes.has_key?(:'AllowCreditCardNumber') self.allow_credit_card_number = attributes[:'AllowCreditCardNumber'] end if attributes.has_key?(:'AllowCreditCardExpirationDate') self.allow_credit_card_expiration_date = attributes[:'AllowCreditCardExpirationDate'] end if attributes.has_key?(:'AllowCreditCardVerificationCode') self.allow_credit_card_verification_code = attributes[:'AllowCreditCardVerificationCode'] end if attributes.has_key?(:'AllowBankAccountNumber') self.allow_bank_account_number = attributes[:'AllowBankAccountNumber'] end if attributes.has_key?(:'AllowIBAN') self.allow_iban = attributes[:'AllowIBAN'] end if attributes.has_key?(:'AllowHealthInsuranceNumber') self.allow_health_insurance_number = attributes[:'AllowHealthInsuranceNumber'] end if attributes.has_key?(:'AllowBearerToken') self.allow_bearer_token = attributes[:'AllowBearerToken'] end if attributes.has_key?(:'AllowHttpCookie') self. = attributes[:'AllowHttpCookie'] end if attributes.has_key?(:'AllowPrivateKeys') self.allow_private_keys = attributes[:'AllowPrivateKeys'] end if attributes.has_key?(:'AllowCredentials') self.allow_credentials = attributes[:'AllowCredentials'] end if attributes.has_key?(:'AllowDeepWebUrls') self.allow_deep_web_urls = attributes[:'AllowDeepWebUrls'] end if attributes.has_key?(:'AllowSourceCode') self.allow_source_code = attributes[:'AllowSourceCode'] end if attributes.has_key?(:'AllowIpAddress') self.allow_ip_address = attributes[:'AllowIpAddress'] end if attributes.has_key?(:'AllowMacAddress') self.allow_mac_address = attributes[:'AllowMacAddress'] end if attributes.has_key?(:'AllowHealthInsuranceMemberID') self.allow_health_insurance_member_id = attributes[:'AllowHealthInsuranceMemberID'] end if attributes.has_key?(:'AllowMedicalRecordNumber') self.allow_medical_record_number = attributes[:'AllowMedicalRecordNumber'] end if attributes.has_key?(:'AllowBillingAccountNumber') self.allow_billing_account_number = attributes[:'AllowBillingAccountNumber'] end if attributes.has_key?(:'AllowHealthInjuryOrDisease') self.allow_health_injury_or_disease = attributes[:'AllowHealthInjuryOrDisease'] end if attributes.has_key?(:'AllowHealthTypeOfTreatment') self.allow_health_type_of_treatment = attributes[:'AllowHealthTypeOfTreatment'] end if attributes.has_key?(:'AllowHealthDateAndTimeOfTreatment') self.allow_health_date_and_time_of_treatment = attributes[:'AllowHealthDateAndTimeOfTreatment'] end if attributes.has_key?(:'AllowHealthPlanBeneficiaryNumber') self.allow_health_plan_beneficiary_number = attributes[:'AllowHealthPlanBeneficiaryNumber'] end if attributes.has_key?(:'AllowHealthPaymentsMadeForTreatment') self.allow_health_payments_made_for_treatment = attributes[:'AllowHealthPaymentsMadeForTreatment'] end if attributes.has_key?(:'AllowFaces') self.allow_faces = attributes[:'AllowFaces'] end if attributes.has_key?(:'AllowVehicleID') self.allow_vehicle_id = attributes[:'AllowVehicleID'] end if attributes.has_key?(:'AllowDeviceID') self.allow_device_id = attributes[:'AllowDeviceID'] end if attributes.has_key?(:'AllowNamesOfRelatives') self.allow_names_of_relatives = attributes[:'AllowNamesOfRelatives'] end if attributes.has_key?(:'AllowHealthUniversalRecordLocator') self.allow_health_universal_record_locator = attributes[:'AllowHealthUniversalRecordLocator'] end if attributes.has_key?(:'AllowBiometrics') self.allow_biometrics = attributes[:'AllowBiometrics'] end if attributes.has_key?(:'ProvideAnalysisRationale') self.provide_analysis_rationale = attributes[:'ProvideAnalysisRationale'] end if attributes.has_key?(:'CustomPolicyID') self.custom_policy_id = attributes[:'CustomPolicyID'] end end |
Instance Attribute Details
#allow_bank_account_number ⇒ Object
Set to true to allow bank account numbers in the document and not flag them as PII.
67 68 69 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 67 def allow_bank_account_number @allow_bank_account_number end |
#allow_bearer_token ⇒ Object
Set to true to allow bearer tokens in the document and not flag them as PII.
76 77 78 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 76 def allow_bearer_token @allow_bearer_token end |
#allow_billing_account_number ⇒ Object
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 107 108 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 106 def allow_billing_account_number @allow_billing_account_number end |
#allow_biometrics ⇒ Object
Set to true to allow biometric data references (e.g. fingerprints, retinal scans, voiceprints) in the document and not flag them as PII.
139 140 141 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 139 def allow_biometrics @allow_biometrics end |
#allow_birth_date ⇒ Object
Set to true to allow birth dates in the document and not flag them as PII.
43 44 45 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 43 def allow_birth_date @allow_birth_date end |
#allow_city ⇒ Object
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 38 39 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 37 def allow_city @allow_city end |
#allow_credentials ⇒ Object
Set to true to allow credentials (usernames/passwords) in the document and not flag them as PII.
85 86 87 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 85 def allow_credentials @allow_credentials end |
#allow_credit_card_expiration_date ⇒ Object
Set to true to allow credit card expiration dates in the document and not flag them as PII.
61 62 63 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 61 def allow_credit_card_expiration_date @allow_credit_card_expiration_date end |
#allow_credit_card_number ⇒ Object
Set to true to allow credit card numbers in the document and not flag them as PII.
58 59 60 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 58 def allow_credit_card_number @allow_credit_card_number end |
#allow_credit_card_verification_code ⇒ Object
Set to true to allow credit card verification codes in the document and not flag them as PII.
64 65 66 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 64 def allow_credit_card_verification_code @allow_credit_card_verification_code end |
#allow_deep_web_urls ⇒ Object
Set to true to allow deep web URLs (.onion) in the document and not flag them as PII.
88 89 90 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 88 def allow_deep_web_urls @allow_deep_web_urls end |
#allow_device_id ⇒ Object
Set to true to allow device identifiers (e.g. serial numbers, IMEIs, MAC-level device IDs) in the document and not flag them as PII.
130 131 132 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 130 def allow_device_id @allow_device_id end |
#allow_drivers_license ⇒ Object
Set to true to allow drivers license numbers in the document and not flag them as PII.
49 50 51 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 49 def allow_drivers_license @allow_drivers_license end |
#allow_email_address ⇒ Object
Set to true to allow email addresses in the document and not flag them as PII.
28 29 30 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 28 def allow_email_address @allow_email_address end |
#allow_faces ⇒ Object
Set to true to allow identifiable human faces in the document and not flag them as PII.
124 125 126 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 124 def allow_faces @allow_faces end |
#allow_health_date_and_time_of_treatment ⇒ Object
Set to true to allow dates and times of medical treatment in the document and not flag them as PHI.
115 116 117 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 115 def allow_health_date_and_time_of_treatment @allow_health_date_and_time_of_treatment end |
#allow_health_injury_or_disease ⇒ Object
Set to true to allow references to injuries or diseases in the document and not flag them as PHI.
109 110 111 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 109 def allow_health_injury_or_disease @allow_health_injury_or_disease end |
#allow_health_insurance_member_id ⇒ Object
Set to true to allow health insurance member IDs in the document and not flag them as PHI.
100 101 102 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 100 def allow_health_insurance_member_id @allow_health_insurance_member_id end |
#allow_health_insurance_number ⇒ Object
Set to true to allow health insurance numbers in the document and not flag them as PII.
73 74 75 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 73 def allow_health_insurance_number @allow_health_insurance_number end |
#allow_health_payments_made_for_treatment ⇒ Object
Set to true to allow payments made for medical treatment in the document and not flag them as PHI.
121 122 123 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 121 def allow_health_payments_made_for_treatment @allow_health_payments_made_for_treatment end |
#allow_health_plan_beneficiary_number ⇒ Object
Set to true to allow health plan beneficiary numbers in the document and not flag them as PHI.
118 119 120 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 118 def allow_health_plan_beneficiary_number @allow_health_plan_beneficiary_number end |
#allow_health_type_of_treatment ⇒ Object
Set to true to allow references to types of medical treatment in the document and not flag them as PHI.
112 113 114 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 112 def allow_health_type_of_treatment @allow_health_type_of_treatment end |
#allow_health_universal_record_locator ⇒ Object
Set to true to allow health universal record locators (URLs) in the document and not flag them as PHI.
136 137 138 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 136 def allow_health_universal_record_locator @allow_health_universal_record_locator end |
#allow_http_cookie ⇒ Object
Set to true to allow HTTP cookies in the document and not flag them as PII.
79 80 81 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 79 def @allow_http_cookie end |
#allow_iban ⇒ Object
Set to true to allow IBANs in the document and not flag them as PII.
70 71 72 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 70 def allow_iban @allow_iban end |
#allow_ip_address ⇒ Object
Set to true to allow IP addresses in the document and not flag them as PII.
94 95 96 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 94 def allow_ip_address @allow_ip_address end |
#allow_mac_address ⇒ Object
Set to true to allow MAC addresses in the document and not flag them as PII.
97 98 99 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 97 def allow_mac_address @allow_mac_address end |
#allow_medical_record_number ⇒ Object
Set to true to allow medical record numbers in the document and not flag them as PHI.
103 104 105 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 103 def allow_medical_record_number @allow_medical_record_number end |
#allow_names_of_relatives ⇒ Object
Set to true to allow names of relatives in the document and not flag them as PII.
133 134 135 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 133 def allow_names_of_relatives @allow_names_of_relatives end |
#allow_passport_number ⇒ Object
Set to true to allow passport numbers in the document and not flag them as PII.
46 47 48 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 46 def allow_passport_number @allow_passport_number end |
#allow_person_name ⇒ Object
Set to true to allow person names in the document and not flag them as PII.
40 41 42 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 40 def allow_person_name @allow_person_name end |
#allow_phone_number ⇒ Object
Set to true to allow phone numbers in the document and not flag them as PII.
31 32 33 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 31 def allow_phone_number @allow_phone_number end |
#allow_private_keys ⇒ Object
Set to true to allow private keys in the document and not flag them as PII.
82 83 84 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 82 def allow_private_keys @allow_private_keys end |
#allow_social_security_number ⇒ Object
Set to true to allow social security numbers in the document and not flag them as PII.
52 53 54 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 52 def @allow_social_security_number end |
#allow_source_code ⇒ Object
Set to true to allow source code in the document and not flag it as sensitive data.
91 92 93 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 91 def allow_source_code @allow_source_code end |
#allow_street_address ⇒ Object
Set to true to allow street addresses in the document and not flag them as PII.
34 35 36 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 34 def allow_street_address @allow_street_address end |
#allow_taxpayer_id ⇒ Object
Set to true to allow taxpayer IDs in the document and not flag them as PII.
55 56 57 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 55 def allow_taxpayer_id @allow_taxpayer_id end |
#allow_vehicle_id ⇒ Object
Set to true to allow vehicle identifiers (e.g. license plates, VINs) in the document and not flag them as PII.
127 128 129 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 127 def allow_vehicle_id @allow_vehicle_id end |
#custom_policy_id ⇒ Object
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 146 147 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 145 def custom_policy_id @custom_policy_id end |
#file_name ⇒ Object
Optional. Name of the input file including extension, used for format detection. If not provided, format is detected from file contents.
22 23 24 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 22 def file_name @file_name end |
#input_file ⇒ Object
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 20 21 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 19 def input_file @input_file end |
#provide_analysis_rationale ⇒ Object
Set to true to include a natural language rationale explaining why each detection conclusion was formed.
142 143 144 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 142 def provide_analysis_rationale @provide_analysis_rationale end |
#recognition_mode ⇒ Object
Optional. Recognition mode for image processing. Options: null (default), "Normal", "Advanced", "Fast", "FastPlus", "FastMini".
25 26 27 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 25 def recognition_mode @recognition_mode end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 148 def self.attribute_map { :'input_file' => :'InputFile', :'file_name' => :'FileName', :'recognition_mode' => :'RecognitionMode', :'allow_email_address' => :'AllowEmailAddress', :'allow_phone_number' => :'AllowPhoneNumber', :'allow_street_address' => :'AllowStreetAddress', :'allow_city' => :'AllowCity', :'allow_person_name' => :'AllowPersonName', :'allow_birth_date' => :'AllowBirthDate', :'allow_passport_number' => :'AllowPassportNumber', :'allow_drivers_license' => :'AllowDriversLicense', :'allow_social_security_number' => :'AllowSocialSecurityNumber', :'allow_taxpayer_id' => :'AllowTaxpayerID', :'allow_credit_card_number' => :'AllowCreditCardNumber', :'allow_credit_card_expiration_date' => :'AllowCreditCardExpirationDate', :'allow_credit_card_verification_code' => :'AllowCreditCardVerificationCode', :'allow_bank_account_number' => :'AllowBankAccountNumber', :'allow_iban' => :'AllowIBAN', :'allow_health_insurance_number' => :'AllowHealthInsuranceNumber', :'allow_bearer_token' => :'AllowBearerToken', :'allow_http_cookie' => :'AllowHttpCookie', :'allow_private_keys' => :'AllowPrivateKeys', :'allow_credentials' => :'AllowCredentials', :'allow_deep_web_urls' => :'AllowDeepWebUrls', :'allow_source_code' => :'AllowSourceCode', :'allow_ip_address' => :'AllowIpAddress', :'allow_mac_address' => :'AllowMacAddress', :'allow_health_insurance_member_id' => :'AllowHealthInsuranceMemberID', :'allow_medical_record_number' => :'AllowMedicalRecordNumber', :'allow_billing_account_number' => :'AllowBillingAccountNumber', :'allow_health_injury_or_disease' => :'AllowHealthInjuryOrDisease', :'allow_health_type_of_treatment' => :'AllowHealthTypeOfTreatment', :'allow_health_date_and_time_of_treatment' => :'AllowHealthDateAndTimeOfTreatment', :'allow_health_plan_beneficiary_number' => :'AllowHealthPlanBeneficiaryNumber', :'allow_health_payments_made_for_treatment' => :'AllowHealthPaymentsMadeForTreatment', :'allow_faces' => :'AllowFaces', :'allow_vehicle_id' => :'AllowVehicleID', :'allow_device_id' => :'AllowDeviceID', :'allow_names_of_relatives' => :'AllowNamesOfRelatives', :'allow_health_universal_record_locator' => :'AllowHealthUniversalRecordLocator', :'allow_biometrics' => :'AllowBiometrics', :'provide_analysis_rationale' => :'ProvideAnalysisRationale', :'custom_policy_id' => :'CustomPolicyID' } end |
.swagger_types ⇒ Object
Attribute type mapping.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 197 def self.swagger_types { :'input_file' => :'String', :'file_name' => :'String', :'recognition_mode' => :'String', :'allow_email_address' => :'BOOLEAN', :'allow_phone_number' => :'BOOLEAN', :'allow_street_address' => :'BOOLEAN', :'allow_city' => :'BOOLEAN', :'allow_person_name' => :'BOOLEAN', :'allow_birth_date' => :'BOOLEAN', :'allow_passport_number' => :'BOOLEAN', :'allow_drivers_license' => :'BOOLEAN', :'allow_social_security_number' => :'BOOLEAN', :'allow_taxpayer_id' => :'BOOLEAN', :'allow_credit_card_number' => :'BOOLEAN', :'allow_credit_card_expiration_date' => :'BOOLEAN', :'allow_credit_card_verification_code' => :'BOOLEAN', :'allow_bank_account_number' => :'BOOLEAN', :'allow_iban' => :'BOOLEAN', :'allow_health_insurance_number' => :'BOOLEAN', :'allow_bearer_token' => :'BOOLEAN', :'allow_http_cookie' => :'BOOLEAN', :'allow_private_keys' => :'BOOLEAN', :'allow_credentials' => :'BOOLEAN', :'allow_deep_web_urls' => :'BOOLEAN', :'allow_source_code' => :'BOOLEAN', :'allow_ip_address' => :'BOOLEAN', :'allow_mac_address' => :'BOOLEAN', :'allow_health_insurance_member_id' => :'BOOLEAN', :'allow_medical_record_number' => :'BOOLEAN', :'allow_billing_account_number' => :'BOOLEAN', :'allow_health_injury_or_disease' => :'BOOLEAN', :'allow_health_type_of_treatment' => :'BOOLEAN', :'allow_health_date_and_time_of_treatment' => :'BOOLEAN', :'allow_health_plan_beneficiary_number' => :'BOOLEAN', :'allow_health_payments_made_for_treatment' => :'BOOLEAN', :'allow_faces' => :'BOOLEAN', :'allow_vehicle_id' => :'BOOLEAN', :'allow_device_id' => :'BOOLEAN', :'allow_names_of_relatives' => :'BOOLEAN', :'allow_health_universal_record_locator' => :'BOOLEAN', :'allow_biometrics' => :'BOOLEAN', :'provide_analysis_rationale' => :'BOOLEAN', :'custom_policy_id' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 456 def ==(o) return true if self.equal?(o) self.class == o.class && input_file == o.input_file && file_name == o.file_name && recognition_mode == o.recognition_mode && allow_email_address == o.allow_email_address && allow_phone_number == o.allow_phone_number && allow_street_address == o.allow_street_address && allow_city == o.allow_city && allow_person_name == o.allow_person_name && allow_birth_date == o.allow_birth_date && allow_passport_number == o.allow_passport_number && allow_drivers_license == o.allow_drivers_license && == o. && allow_taxpayer_id == o.allow_taxpayer_id && allow_credit_card_number == o.allow_credit_card_number && allow_credit_card_expiration_date == o.allow_credit_card_expiration_date && allow_credit_card_verification_code == o.allow_credit_card_verification_code && allow_bank_account_number == o.allow_bank_account_number && allow_iban == o.allow_iban && allow_health_insurance_number == o.allow_health_insurance_number && allow_bearer_token == o.allow_bearer_token && == o. && allow_private_keys == o.allow_private_keys && allow_credentials == o.allow_credentials && allow_deep_web_urls == o.allow_deep_web_urls && allow_source_code == o.allow_source_code && allow_ip_address == o.allow_ip_address && allow_mac_address == o.allow_mac_address && allow_health_insurance_member_id == o.allow_health_insurance_member_id && allow_medical_record_number == o.allow_medical_record_number && allow_billing_account_number == o.allow_billing_account_number && allow_health_injury_or_disease == o.allow_health_injury_or_disease && allow_health_type_of_treatment == o.allow_health_type_of_treatment && allow_health_date_and_time_of_treatment == o.allow_health_date_and_time_of_treatment && allow_health_plan_beneficiary_number == o.allow_health_plan_beneficiary_number && allow_health_payments_made_for_treatment == o.allow_health_payments_made_for_treatment && allow_faces == o.allow_faces && allow_vehicle_id == o.allow_vehicle_id && allow_device_id == o.allow_device_id && allow_names_of_relatives == o.allow_names_of_relatives && allow_health_universal_record_locator == o.allow_health_universal_record_locator && allow_biometrics == o.allow_biometrics && provide_analysis_rationale == o.provide_analysis_rationale && custom_policy_id == o.custom_policy_id end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 540 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CloudmersiveDlpApiClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
606 607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 606 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 519 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
506 507 508 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 506 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
512 513 514 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 512 def hash [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_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_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 end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
428 429 430 431 432 433 434 435 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 428 def list_invalid_properties invalid_properties = Array.new if !@input_file.nil? && @input_file !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/) invalid_properties.push('invalid value for "input_file", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
586 587 588 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 586 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
592 593 594 595 596 597 598 599 600 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 592 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
580 581 582 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 580 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
439 440 441 442 |
# File 'lib/cloudmersive-dlp-api-client/models/dlp_advanced_document_detection_request.rb', line 439 def valid? return false if !@input_file.nil? && @input_file !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/) true end |