Class: Falcon::ApiNotificationExposedDataRecordV1

Inherits:
Object
  • Object
show all
Defined in:
lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ApiNotificationExposedDataRecordV1

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



241
242
243
244
245
246
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
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 241

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::ApiNotificationExposedDataRecordV1` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Falcon::ApiNotificationExposedDataRecordV1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'author')
    self.author = attributes[:'author']
  end

  if attributes.key?(:'author_id')
    self.author_id = attributes[:'author_id']
  end

  if attributes.key?(:'bot')
    self.bot = attributes[:'bot']
  end

  if attributes.key?(:'cid')
    self.cid = attributes[:'cid']
  end

  if attributes.key?(:'company')
    self.company = attributes[:'company']
  end

  if attributes.key?(:'created_date')
    self.created_date = attributes[:'created_date']
  end

  if attributes.key?(:'credential_status')
    self.credential_status = attributes[:'credential_status']
  end

  if attributes.key?(:'credentials_domain')
    self.credentials_domain = attributes[:'credentials_domain']
  end

  if attributes.key?(:'credentials_ip')
    self.credentials_ip = attributes[:'credentials_ip']
  end

  if attributes.key?(:'credentials_url')
    self.credentials_url = attributes[:'credentials_url']
  end

  if attributes.key?(:'display_name')
    self.display_name = attributes[:'display_name']
  end

  if attributes.key?(:'domain')
    self.domain = attributes[:'domain']
  end

  if attributes.key?(:'email')
    self.email = attributes[:'email']
  end

  if attributes.key?(:'event_date')
    self.event_date = attributes[:'event_date']
  end

  if attributes.key?(:'exposure_date')
    self.exposure_date = attributes[:'exposure_date']
  end

  if attributes.key?(:'file')
    self.file = attributes[:'file']
  end

  if attributes.key?(:'financial')
    self.financial = attributes[:'financial']
  end

  if attributes.key?(:'full_name')
    self.full_name = attributes[:'full_name']
  end

  if attributes.key?(:'hash_type')
    self.hash_type = attributes[:'hash_type']
  end

  if attributes.key?(:'id')
    self.id = attributes[:'id']
  end

  if attributes.key?(:'job_position')
    self.job_position = attributes[:'job_position']
  end

  if attributes.key?(:'location')
    self.location = attributes[:'location']
  end

  if attributes.key?(:'login_id')
    self. = attributes[:'login_id']
  end

  if attributes.key?(:'malware_family')
    self.malware_family = attributes[:'malware_family']
  end

  if attributes.key?(:'notification_id')
    self.notification_id = attributes[:'notification_id']
  end

  if attributes.key?(:'password')
    self.password = attributes[:'password']
  end

  if attributes.key?(:'password_hash')
    self.password_hash = attributes[:'password_hash']
  end

  if attributes.key?(:'password_salt')
    self.password_salt = attributes[:'password_salt']
  end

  if attributes.key?(:'phone_number')
    self.phone_number = attributes[:'phone_number']
  end

  if attributes.key?(:'raw_intel_id')
    self.raw_intel_id = attributes[:'raw_intel_id']
  end

  if attributes.key?(:'rule')
    self.rule = attributes[:'rule']
  end

  if attributes.key?(:'site')
    self.site = attributes[:'site']
  end

  if attributes.key?(:'site_id')
    self.site_id = attributes[:'site_id']
  end

  if attributes.key?(:'social')
    self.social = attributes[:'social']
  end

  if attributes.key?(:'source_category')
    self.source_category = attributes[:'source_category']
  end

  if attributes.key?(:'user_id')
    self.user_id = attributes[:'user_id']
  end

  if attributes.key?(:'user_ip')
    self.user_ip = attributes[:'user_ip']
  end

  if attributes.key?(:'user_uuid')
    self.user_uuid = attributes[:'user_uuid']
  end
end

Instance Attribute Details

#authorObject

The individual or group who exposed the data



36
37
38
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 36

def author
  @author
end

#author_idObject

The ID of the author within Recon



39
40
41
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 39

def author_id
  @author_id
end

#botObject

Returns the value of attribute bot.



41
42
43
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 41

def bot
  @bot
end

#cidObject

The customer ID



44
45
46
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 44

def cid
  @cid
end

#companyObject

The company of the user



47
48
49
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 47

def company
  @company
end

#created_dateObject

The date when this entity was created in Recon



50
51
52
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 50

def created_date
  @created_date
end

#credential_statusObject

The status set after deduplication. Possible values: ‘newly_detected’, ‘previously_reported’, ‘other’



53
54
55
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 53

def credential_status
  @credential_status
end

#credentials_domainObject

The domain where the credentials are valid



56
57
58
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 56

def credentials_domain
  @credentials_domain
end

#credentials_ipObject

The IP where the credentials are valid



59
60
61
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 59

def credentials_ip
  @credentials_ip
end

#credentials_urlObject

The URL where the credentials are valid



62
63
64
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 62

def credentials_url
  @credentials_url
end

#display_nameObject

The nickname of the user on the impacted site



65
66
67
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 65

def display_name
  @display_name
end

#domainObject

The domain of the email linked to the impacted site



68
69
70
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 68

def domain
  @domain
end

#emailObject

The email linked to the impacted site



71
72
73
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 71

def email
  @email
end

#event_dateObject

The approximate date when the event occurred



74
75
76
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 74

def event_date
  @event_date
end

#exposure_dateObject

The date when the exposed data was posted online



77
78
79
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 77

def exposure_date
  @exposure_date
end

#fileObject

Returns the value of attribute file.



79
80
81
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 79

def file
  @file
end

#financialObject

Returns the value of attribute financial.



81
82
83
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 81

def financial
  @financial
end

#full_nameObject

The full name of the user on the impacted site



84
85
86
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 84

def full_name
  @full_name
end

#hash_typeObject

The algorithm used to hash the password



87
88
89
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 87

def hash_type
  @hash_type
end

#idObject

The ID of this entity



90
91
92
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 90

def id
  @id
end

#job_positionObject

The users job at the company



93
94
95
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 93

def job_position
  @job_position
end

#locationObject

Returns the value of attribute location.



95
96
97
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 95

def location
  @location
end

#login_idObject

Returns the value of attribute login_id.



97
98
99
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 97

def 
  @login_id
end

#malware_familyObject

Information of the bot malware family



100
101
102
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 100

def malware_family
  @malware_family
end

#notification_idObject

The ID of the parent notification associated with this entity



103
104
105
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 103

def notification_id
  @notification_id
end

#passwordObject

The password used for login



106
107
108
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 106

def password
  @password
end

#password_hashObject

The password hash



109
110
111
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 109

def password_hash
  @password_hash
end

#password_saltObject

The password salt



112
113
114
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 112

def password_salt
  @password_salt
end

#phone_numberObject

The phone number of the user on the impacted site



115
116
117
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 115

def phone_number
  @phone_number
end

#raw_intel_idObject

Returns the value of attribute raw_intel_id.



117
118
119
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 117

def raw_intel_id
  @raw_intel_id
end

#ruleObject

Returns the value of attribute rule.



119
120
121
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 119

def rule
  @rule
end

#siteObject

The source where this entity was found



122
123
124
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 122

def site
  @site
end

#site_idObject

The ID of the site within Recon



125
126
127
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 125

def site_id
  @site_id
end

#socialObject

Returns the value of attribute social.



127
128
129
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 127

def social
  @social
end

#source_categoryObject

The category of the source where this entity was found



130
131
132
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 130

def source_category
  @source_category
end

#user_idObject

The ID of the user on the impacted site



133
134
135
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 133

def user_id
  @user_id
end

#user_ipObject

The IP of the user on the impacted site



136
137
138
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 136

def user_ip
  @user_ip
end

#user_uuidObject

Returns the value of attribute user_uuid.



138
139
140
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 138

def user_uuid
  @user_uuid
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



185
186
187
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 185

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



141
142
143
144
145
146
147
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
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 141

def self.attribute_map
  {
    :'author' => :'author',
    :'author_id' => :'author_id',
    :'bot' => :'bot',
    :'cid' => :'cid',
    :'company' => :'company',
    :'created_date' => :'created_date',
    :'credential_status' => :'credential_status',
    :'credentials_domain' => :'credentials_domain',
    :'credentials_ip' => :'credentials_ip',
    :'credentials_url' => :'credentials_url',
    :'display_name' => :'display_name',
    :'domain' => :'domain',
    :'email' => :'email',
    :'event_date' => :'event_date',
    :'exposure_date' => :'exposure_date',
    :'file' => :'file',
    :'financial' => :'financial',
    :'full_name' => :'full_name',
    :'hash_type' => :'hash_type',
    :'id' => :'id',
    :'job_position' => :'job_position',
    :'location' => :'location',
    :'login_id' => :'login_id',
    :'malware_family' => :'malware_family',
    :'notification_id' => :'notification_id',
    :'password' => :'password',
    :'password_hash' => :'password_hash',
    :'password_salt' => :'password_salt',
    :'phone_number' => :'phone_number',
    :'raw_intel_id' => :'raw_intel_id',
    :'rule' => :'rule',
    :'site' => :'site',
    :'site_id' => :'site_id',
    :'social' => :'social',
    :'source_category' => :'source_category',
    :'user_id' => :'user_id',
    :'user_ip' => :'user_ip',
    :'user_uuid' => :'user_uuid'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



540
541
542
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 540

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



234
235
236
237
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 234

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



190
191
192
193
194
195
196
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
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 190

def self.openapi_types
  {
    :'author' => :'String',
    :'author_id' => :'String',
    :'bot' => :'ApiExposedDataRecordBotV1',
    :'cid' => :'String',
    :'company' => :'String',
    :'created_date' => :'Time',
    :'credential_status' => :'String',
    :'credentials_domain' => :'String',
    :'credentials_ip' => :'String',
    :'credentials_url' => :'String',
    :'display_name' => :'String',
    :'domain' => :'String',
    :'email' => :'String',
    :'event_date' => :'String',
    :'exposure_date' => :'Time',
    :'file' => :'ApiExposedDataFileDetailsV1',
    :'financial' => :'ApiExposedDataRecordFinancialV1',
    :'full_name' => :'String',
    :'hash_type' => :'String',
    :'id' => :'String',
    :'job_position' => :'String',
    :'location' => :'ApiExposedDataRecordLocationV1',
    :'login_id' => :'String',
    :'malware_family' => :'String',
    :'notification_id' => :'String',
    :'password' => :'String',
    :'password_hash' => :'String',
    :'password_salt' => :'String',
    :'phone_number' => :'String',
    :'raw_intel_id' => :'String',
    :'rule' => :'ApiRuleDetailsV1',
    :'site' => :'String',
    :'site_id' => :'String',
    :'social' => :'ApiExposedDataRecordSocialV1',
    :'source_category' => :'String',
    :'user_id' => :'String',
    :'user_ip' => :'String',
    :'user_uuid' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 482

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      author == o.author &&
      author_id == o.author_id &&
      bot == o.bot &&
      cid == o.cid &&
      company == o.company &&
      created_date == o.created_date &&
      credential_status == o.credential_status &&
      credentials_domain == o.credentials_domain &&
      credentials_ip == o.credentials_ip &&
      credentials_url == o.credentials_url &&
      display_name == o.display_name &&
      domain == o.domain &&
      email == o.email &&
      event_date == o.event_date &&
      exposure_date == o.exposure_date &&
      file == o.file &&
      financial == o.financial &&
      full_name == o.full_name &&
      hash_type == o.hash_type &&
      id == o.id &&
      job_position == o.job_position &&
      location == o.location &&
       == o. &&
      malware_family == o.malware_family &&
      notification_id == o.notification_id &&
      password == o.password &&
      password_hash == o.password_hash &&
      password_salt == o.password_salt &&
      phone_number == o.phone_number &&
      raw_intel_id == o.raw_intel_id &&
      rule == o.rule &&
      site == o.site &&
      site_id == o.site_id &&
      social == o.social &&
      source_category == o.source_category &&
      user_id == o.user_id &&
      user_ip == o.user_ip &&
      user_uuid == o.user_uuid
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 571

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.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
    # models (e.g. Pet) or oneOf
    klass = Falcon.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



642
643
644
645
646
647
648
649
650
651
652
653
654
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 642

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 547

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif 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
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


527
528
529
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 527

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



533
534
535
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 533

def hash
  [author, author_id, bot, cid, company, created_date, credential_status, credentials_domain, credentials_ip, credentials_url, display_name, domain, email, event_date, exposure_date, file, financial, full_name, hash_type, id, job_position, location, , malware_family, notification_id, password, password_hash, password_salt, phone_number, raw_intel_id, rule, site, site_id, social, source_category, user_id, user_ip, user_uuid].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 409

def list_invalid_properties
  invalid_properties = Array.new
  if @author.nil?
    invalid_properties.push('invalid value for "author", author cannot be nil.')
  end

  if @cid.nil?
    invalid_properties.push('invalid value for "cid", cid cannot be nil.')
  end

  if @created_date.nil?
    invalid_properties.push('invalid value for "created_date", created_date cannot be nil.')
  end

  if @event_date.nil?
    invalid_properties.push('invalid value for "event_date", event_date cannot be nil.')
  end

  if @exposure_date.nil?
    invalid_properties.push('invalid value for "exposure_date", exposure_date cannot be nil.')
  end

  if @id.nil?
    invalid_properties.push('invalid value for "id", id cannot be nil.')
  end

  if @notification_id.nil?
    invalid_properties.push('invalid value for "notification_id", notification_id cannot be nil.')
  end

  if @raw_intel_id.nil?
    invalid_properties.push('invalid value for "raw_intel_id", raw_intel_id cannot be nil.')
  end

  if @rule.nil?
    invalid_properties.push('invalid value for "rule", rule cannot be nil.')
  end

  if @site.nil?
    invalid_properties.push('invalid value for "site", site cannot be nil.')
  end

  if @source_category.nil?
    invalid_properties.push('invalid value for "source_category", source_category cannot be nil.')
  end

  if @user_uuid.nil?
    invalid_properties.push('invalid value for "user_uuid", user_uuid cannot be nil.')
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



618
619
620
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 618

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



624
625
626
627
628
629
630
631
632
633
634
635
636
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 624

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



612
613
614
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 612

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
# File 'lib/crimson-falcon/models/api_notification_exposed_data_record_v1.rb', line 464

def valid?
  return false if @author.nil?
  return false if @cid.nil?
  return false if @created_date.nil?
  return false if @event_date.nil?
  return false if @exposure_date.nil?
  return false if @id.nil?
  return false if @notification_id.nil?
  return false if @raw_intel_id.nil?
  return false if @rule.nil?
  return false if @site.nil?
  return false if @source_category.nil?
  return false if @user_uuid.nil?
  true
end