Class: Falcon::RegistrationIOAEvent

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ RegistrationIOAEvent

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
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
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 212

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::RegistrationIOAEvent` 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::RegistrationIOAEvent`. 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?(:'additional_event_data')
    self.additional_event_data = attributes[:'additional_event_data']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:'resources')
    if (value = attributes[:'resources']).is_a?(Array)
      self.resources = value
    end
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#additional_event_dataObject

Returns the value of attribute additional_event_data.



35
36
37
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 35

def additional_event_data
  @additional_event_data
end

#aggregateObject

Returns the value of attribute aggregate.



37
38
39
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 37

def aggregate
  @aggregate
end

#api_versionObject

Returns the value of attribute api_version.



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

def api_version
  @api_version
end

#cidObject

Returns the value of attribute cid.



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

def cid
  @cid
end

#cloud_account_idObject

Returns the value of attribute cloud_account_id.



43
44
45
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 43

def 
  @cloud_account_id
end

#cloud_providerObject

Returns the value of attribute cloud_provider.



45
46
47
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 45

def cloud_provider
  @cloud_provider
end

#cloud_regionObject

Returns the value of attribute cloud_region.



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

def cloud_region
  @cloud_region
end

#enrichmentsObject

Returns the value of attribute enrichments.



49
50
51
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 49

def enrichments
  @enrichments
end

#error_codeObject

Returns the value of attribute error_code.



51
52
53
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 51

def error_code
  @error_code
end

#error_messageObject

Returns the value of attribute error_message.



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

def error_message
  @error_message
end

#event_categoryObject

Returns the value of attribute event_category.



55
56
57
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 55

def event_category
  @event_category
end

#event_createdObject

Returns the value of attribute event_created.



57
58
59
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 57

def event_created
  @event_created
end

#event_idObject

Returns the value of attribute event_id.



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

def event_id
  @event_id
end

#event_nameObject

Returns the value of attribute event_name.



61
62
63
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 61

def event_name
  @event_name
end

#event_sourceObject

Returns the value of attribute event_source.



63
64
65
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 63

def event_source
  @event_source
end

#event_typeObject

Returns the value of attribute event_type.



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

def event_type
  @event_type
end

#group_idObject

Returns the value of attribute group_id.



67
68
69
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 67

def group_id
  @group_id
end

#management_eventObject

Returns the value of attribute management_event.



69
70
71
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 69

def management_event
  @management_event
end

#policy_idObject

Returns the value of attribute policy_id.



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

def policy_id
  @policy_id
end

#policy_statementObject

Returns the value of attribute policy_statement.



73
74
75
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 73

def policy_statement
  @policy_statement
end

#read_onlyObject

Returns the value of attribute read_only.



75
76
77
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 75

def read_only
  @read_only
end

#recipient_account_idObject

Returns the value of attribute recipient_account_id.



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

def 
  @recipient_account_id
end

#request_idObject

Returns the value of attribute request_id.



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

def request_id
  @request_id
end

#request_parametersObject

Returns the value of attribute request_parameters.



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

def request_parameters
  @request_parameters
end

#resourcesObject

Returns the value of attribute resources.



83
84
85
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 83

def resources
  @resources
end

#response_elementsObject

Returns the value of attribute response_elements.



85
86
87
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 85

def response_elements
  @response_elements
end

#serviceObject

Returns the value of attribute service.



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

def service
  @service
end

#service_event_detailsObject

Returns the value of attribute service_event_details.



89
90
91
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 89

def service_event_details
  @service_event_details
end

#severityObject

Returns the value of attribute severity.



91
92
93
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 91

def severity
  @severity
end

#shared_event_idObject

Returns the value of attribute shared_event_id.



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

def shared_event_id
  @shared_event_id
end

#source_ip_addressObject

Returns the value of attribute source_ip_address.



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

def source_ip_address
  @source_ip_address
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

#user_agentObject

Returns the value of attribute user_agent.



99
100
101
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 99

def user_agent
  @user_agent
end

#user_idObject

Returns the value of attribute user_id.



101
102
103
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 101

def user_id
  @user_id
end

#user_identityObject

Returns the value of attribute user_identity.



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

def user_identity
  @user_identity
end

#vertex_idObject

Returns the value of attribute vertex_id.



105
106
107
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 105

def vertex_id
  @vertex_id
end

#vertex_typeObject

Returns the value of attribute vertex_type.



107
108
109
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 107

def vertex_type
  @vertex_type
end

#vpc_endpoint_idObject

Returns the value of attribute vpc_endpoint_id.



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

def vpc_endpoint_id
  @vpc_endpoint_id
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



156
157
158
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 156

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 112

def self.attribute_map
  {
    :'additional_event_data' => :'additional_event_data',
    :'aggregate' => :'aggregate',
    :'api_version' => :'api_version',
    :'cid' => :'cid',
    :'cloud_account_id' => :'cloud_account_id',
    :'cloud_provider' => :'cloud_provider',
    :'cloud_region' => :'cloud_region',
    :'enrichments' => :'enrichments',
    :'error_code' => :'error_code',
    :'error_message' => :'error_message',
    :'event_category' => :'event_category',
    :'event_created' => :'event_created',
    :'event_id' => :'event_id',
    :'event_name' => :'event_name',
    :'event_source' => :'event_source',
    :'event_type' => :'event_type',
    :'group_id' => :'group_id',
    :'management_event' => :'management_event',
    :'policy_id' => :'policy_id',
    :'policy_statement' => :'policy_statement',
    :'read_only' => :'read_only',
    :'recipient_account_id' => :'recipient_account_id',
    :'request_id' => :'request_id',
    :'request_parameters' => :'request_parameters',
    :'resources' => :'resources',
    :'response_elements' => :'response_elements',
    :'service' => :'service',
    :'service_event_details' => :'service_event_details',
    :'severity' => :'severity',
    :'shared_event_id' => :'shared_event_id',
    :'source_ip_address' => :'source_ip_address',
    :'state' => :'state',
    :'user_agent' => :'user_agent',
    :'user_id' => :'user_id',
    :'user_identity' => :'user_identity',
    :'vertex_id' => :'vertex_id',
    :'vertex_type' => :'vertex_type',
    :'vpc_endpoint_id' => :'vpc_endpoint_id'
  }
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



498
499
500
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 498

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

.openapi_nullableObject

List of attributes with nullable: true



205
206
207
208
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 205

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

.openapi_typesObject

Attribute type mapping.



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
195
196
197
198
199
200
201
202
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 161

def self.openapi_types
  {
    :'additional_event_data' => :'String',
    :'aggregate' => :'IoaEventAggregate',
    :'api_version' => :'String',
    :'cid' => :'String',
    :'cloud_account_id' => :'IoaCloudAccountID',
    :'cloud_provider' => :'String',
    :'cloud_region' => :'String',
    :'enrichments' => :'IoaEnrichments',
    :'error_code' => :'String',
    :'error_message' => :'String',
    :'event_category' => :'String',
    :'event_created' => :'String',
    :'event_id' => :'String',
    :'event_name' => :'String',
    :'event_source' => :'String',
    :'event_type' => :'String',
    :'group_id' => :'String',
    :'management_event' => :'Boolean',
    :'policy_id' => :'Integer',
    :'policy_statement' => :'String',
    :'read_only' => :'Boolean',
    :'recipient_account_id' => :'String',
    :'request_id' => :'String',
    :'request_parameters' => :'Object',
    :'resources' => :'Array<Object>',
    :'response_elements' => :'Object',
    :'service' => :'String',
    :'service_event_details' => :'String',
    :'severity' => :'String',
    :'shared_event_id' => :'String',
    :'source_ip_address' => :'String',
    :'state' => :'String',
    :'user_agent' => :'String',
    :'user_id' => :'String',
    :'user_identity' => :'Object',
    :'vertex_id' => :'String',
    :'vertex_type' => :'String',
    :'vpc_endpoint_id' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
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
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 440

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      additional_event_data == o.additional_event_data &&
      aggregate == o.aggregate &&
      api_version == o.api_version &&
      cid == o.cid &&
       == o. &&
      cloud_provider == o.cloud_provider &&
      cloud_region == o.cloud_region &&
      enrichments == o.enrichments &&
      error_code == o.error_code &&
      error_message == o.error_message &&
      event_category == o.event_category &&
      event_created == o.event_created &&
      event_id == o.event_id &&
      event_name == o.event_name &&
      event_source == o.event_source &&
      event_type == o.event_type &&
      group_id == o.group_id &&
      management_event == o.management_event &&
      policy_id == o.policy_id &&
      policy_statement == o.policy_statement &&
      read_only == o.read_only &&
       == o. &&
      request_id == o.request_id &&
      request_parameters == o.request_parameters &&
      resources == o.resources &&
      response_elements == o.response_elements &&
      service == o.service &&
      service_event_details == o.service_event_details &&
      severity == o.severity &&
      shared_event_id == o.shared_event_id &&
      source_ip_address == o.source_ip_address &&
      state == o.state &&
      user_agent == o.user_agent &&
      user_id == o.user_id &&
      user_identity == o.user_identity &&
      vertex_id == o.vertex_id &&
      vertex_type == o.vertex_type &&
      vpc_endpoint_id == o.vpc_endpoint_id
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



529
530
531
532
533
534
535
536
537
538
539
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
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 529

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



600
601
602
603
604
605
606
607
608
609
610
611
612
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 600

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



505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 505

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


485
486
487
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 485

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



491
492
493
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 491

def hash
  [additional_event_data, aggregate, api_version, cid, , cloud_provider, cloud_region, enrichments, error_code, error_message, event_category, event_created, event_id, event_name, event_source, event_type, group_id, management_event, policy_id, policy_statement, read_only, , request_id, request_parameters, resources, response_elements, service, service_event_details, severity, shared_event_id, source_ip_address, state, user_agent, user_id, user_identity, vertex_id, vertex_type, vpc_endpoint_id].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



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
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 382

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

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

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

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

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

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

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

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

  if @vertex_type.nil?
    invalid_properties.push('invalid value for "vertex_type", vertex_type 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



576
577
578
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 576

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



582
583
584
585
586
587
588
589
590
591
592
593
594
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 582

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



570
571
572
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 570

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



425
426
427
428
429
430
431
432
433
434
435
436
# File 'lib/crimson-falcon/models/registration_ioa_event.rb', line 425

def valid?
  return false if @cid.nil?
  return false if @cloud_provider.nil?
  return false if @policy_id.nil?
  return false if @policy_statement.nil?
  return false if @service.nil?
  return false if @severity.nil?
  return false if @state.nil?
  return false if @vertex_id.nil?
  return false if @vertex_type.nil?
  true
end