Class: Falcon::PatterndispositionPatternDisposition
- Inherits:
-
Object
- Object
- Falcon::PatterndispositionPatternDisposition
- Defined in:
- lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb
Instance Attribute Summary collapse
-
#blocking_unsupported_or_disabled ⇒ Object
Returns the value of attribute blocking_unsupported_or_disabled.
-
#bootup_safeguard_enabled ⇒ Object
Returns the value of attribute bootup_safeguard_enabled.
-
#critical_process_disabled ⇒ Object
Returns the value of attribute critical_process_disabled.
-
#detect ⇒ Object
Returns the value of attribute detect.
-
#fs_operation_blocked ⇒ Object
Returns the value of attribute fs_operation_blocked.
-
#handle_operation_downgraded ⇒ Object
Returns the value of attribute handle_operation_downgraded.
-
#inddet_mask ⇒ Object
Returns the value of attribute inddet_mask.
-
#indicator ⇒ Object
Returns the value of attribute indicator.
-
#kill_action_failed ⇒ Object
Returns the value of attribute kill_action_failed.
-
#kill_parent ⇒ Object
Returns the value of attribute kill_parent.
-
#kill_process ⇒ Object
Returns the value of attribute kill_process.
-
#kill_subprocess ⇒ Object
Returns the value of attribute kill_subprocess.
-
#operation_blocked ⇒ Object
Returns the value of attribute operation_blocked.
-
#policy_disabled ⇒ Object
Returns the value of attribute policy_disabled.
-
#process_blocked ⇒ Object
Returns the value of attribute process_blocked.
-
#quarantine_file ⇒ Object
Returns the value of attribute quarantine_file.
-
#quarantine_machine ⇒ Object
Returns the value of attribute quarantine_machine.
-
#registry_operation_blocked ⇒ Object
Returns the value of attribute registry_operation_blocked.
-
#rooting ⇒ Object
Returns the value of attribute rooting.
-
#sensor_only ⇒ Object
Returns the value of attribute sensor_only.
-
#suspend_parent ⇒ Object
Returns the value of attribute suspend_parent.
-
#suspend_process ⇒ Object
Returns the value of attribute suspend_process.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_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 ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PatterndispositionPatternDisposition
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 = {}) ⇒ PatterndispositionPatternDisposition
Initializes the object
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 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 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 148 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::PatterndispositionPatternDisposition` 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::PatterndispositionPatternDisposition`. 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?(:'blocking_unsupported_or_disabled') self.blocking_unsupported_or_disabled = attributes[:'blocking_unsupported_or_disabled'] end if attributes.key?(:'bootup_safeguard_enabled') self.bootup_safeguard_enabled = attributes[:'bootup_safeguard_enabled'] end if attributes.key?(:'critical_process_disabled') self.critical_process_disabled = attributes[:'critical_process_disabled'] end if attributes.key?(:'detect') self.detect = attributes[:'detect'] end if attributes.key?(:'fs_operation_blocked') self.fs_operation_blocked = attributes[:'fs_operation_blocked'] end if attributes.key?(:'handle_operation_downgraded') self.handle_operation_downgraded = attributes[:'handle_operation_downgraded'] end if attributes.key?(:'inddet_mask') self.inddet_mask = attributes[:'inddet_mask'] end if attributes.key?(:'indicator') self.indicator = attributes[:'indicator'] end if attributes.key?(:'kill_action_failed') self.kill_action_failed = attributes[:'kill_action_failed'] end if attributes.key?(:'kill_parent') self.kill_parent = attributes[:'kill_parent'] end if attributes.key?(:'kill_process') self.kill_process = attributes[:'kill_process'] end if attributes.key?(:'kill_subprocess') self.kill_subprocess = attributes[:'kill_subprocess'] end if attributes.key?(:'operation_blocked') self.operation_blocked = attributes[:'operation_blocked'] end if attributes.key?(:'policy_disabled') self.policy_disabled = attributes[:'policy_disabled'] end if attributes.key?(:'process_blocked') self.process_blocked = attributes[:'process_blocked'] end if attributes.key?(:'quarantine_file') self.quarantine_file = attributes[:'quarantine_file'] end if attributes.key?(:'quarantine_machine') self.quarantine_machine = attributes[:'quarantine_machine'] end if attributes.key?(:'registry_operation_blocked') self.registry_operation_blocked = attributes[:'registry_operation_blocked'] end if attributes.key?(:'rooting') self.rooting = attributes[:'rooting'] end if attributes.key?(:'sensor_only') self.sensor_only = attributes[:'sensor_only'] end if attributes.key?(:'suspend_parent') self.suspend_parent = attributes[:'suspend_parent'] end if attributes.key?(:'suspend_process') self.suspend_process = attributes[:'suspend_process'] end end |
Instance Attribute Details
#blocking_unsupported_or_disabled ⇒ Object
Returns the value of attribute blocking_unsupported_or_disabled.
35 36 37 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 35 def blocking_unsupported_or_disabled @blocking_unsupported_or_disabled end |
#bootup_safeguard_enabled ⇒ Object
Returns the value of attribute bootup_safeguard_enabled.
37 38 39 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 37 def bootup_safeguard_enabled @bootup_safeguard_enabled end |
#critical_process_disabled ⇒ Object
Returns the value of attribute critical_process_disabled.
39 40 41 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 39 def critical_process_disabled @critical_process_disabled end |
#detect ⇒ Object
Returns the value of attribute detect.
41 42 43 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 41 def detect @detect end |
#fs_operation_blocked ⇒ Object
Returns the value of attribute fs_operation_blocked.
43 44 45 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 43 def fs_operation_blocked @fs_operation_blocked end |
#handle_operation_downgraded ⇒ Object
Returns the value of attribute handle_operation_downgraded.
45 46 47 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 45 def handle_operation_downgraded @handle_operation_downgraded end |
#inddet_mask ⇒ Object
Returns the value of attribute inddet_mask.
47 48 49 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 47 def inddet_mask @inddet_mask end |
#indicator ⇒ Object
Returns the value of attribute indicator.
49 50 51 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 49 def indicator @indicator end |
#kill_action_failed ⇒ Object
Returns the value of attribute kill_action_failed.
51 52 53 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 51 def kill_action_failed @kill_action_failed end |
#kill_parent ⇒ Object
Returns the value of attribute kill_parent.
53 54 55 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 53 def kill_parent @kill_parent end |
#kill_process ⇒ Object
Returns the value of attribute kill_process.
55 56 57 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 55 def kill_process @kill_process end |
#kill_subprocess ⇒ Object
Returns the value of attribute kill_subprocess.
57 58 59 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 57 def kill_subprocess @kill_subprocess end |
#operation_blocked ⇒ Object
Returns the value of attribute operation_blocked.
59 60 61 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 59 def operation_blocked @operation_blocked end |
#policy_disabled ⇒ Object
Returns the value of attribute policy_disabled.
61 62 63 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 61 def policy_disabled @policy_disabled end |
#process_blocked ⇒ Object
Returns the value of attribute process_blocked.
63 64 65 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 63 def process_blocked @process_blocked end |
#quarantine_file ⇒ Object
Returns the value of attribute quarantine_file.
65 66 67 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 65 def quarantine_file @quarantine_file end |
#quarantine_machine ⇒ Object
Returns the value of attribute quarantine_machine.
67 68 69 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 67 def quarantine_machine @quarantine_machine end |
#registry_operation_blocked ⇒ Object
Returns the value of attribute registry_operation_blocked.
69 70 71 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 69 def registry_operation_blocked @registry_operation_blocked end |
#rooting ⇒ Object
Returns the value of attribute rooting.
71 72 73 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 71 def rooting @rooting end |
#sensor_only ⇒ Object
Returns the value of attribute sensor_only.
73 74 75 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 73 def sensor_only @sensor_only end |
#suspend_parent ⇒ Object
Returns the value of attribute suspend_parent.
75 76 77 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 75 def suspend_parent @suspend_parent end |
#suspend_process ⇒ Object
Returns the value of attribute suspend_process.
77 78 79 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 77 def suspend_process @suspend_process end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
108 109 110 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 108 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 80 def self.attribute_map { :'blocking_unsupported_or_disabled' => :'blocking_unsupported_or_disabled', :'bootup_safeguard_enabled' => :'bootup_safeguard_enabled', :'critical_process_disabled' => :'critical_process_disabled', :'detect' => :'detect', :'fs_operation_blocked' => :'fs_operation_blocked', :'handle_operation_downgraded' => :'handle_operation_downgraded', :'inddet_mask' => :'inddet_mask', :'indicator' => :'indicator', :'kill_action_failed' => :'kill_action_failed', :'kill_parent' => :'kill_parent', :'kill_process' => :'kill_process', :'kill_subprocess' => :'kill_subprocess', :'operation_blocked' => :'operation_blocked', :'policy_disabled' => :'policy_disabled', :'process_blocked' => :'process_blocked', :'quarantine_file' => :'quarantine_file', :'quarantine_machine' => :'quarantine_machine', :'registry_operation_blocked' => :'registry_operation_blocked', :'rooting' => :'rooting', :'sensor_only' => :'sensor_only', :'suspend_parent' => :'suspend_parent', :'suspend_process' => :'suspend_process' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
417 418 419 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 417 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
141 142 143 144 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 141 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 113 def self.openapi_types { :'blocking_unsupported_or_disabled' => :'Boolean', :'bootup_safeguard_enabled' => :'Boolean', :'critical_process_disabled' => :'Boolean', :'detect' => :'Boolean', :'fs_operation_blocked' => :'Boolean', :'handle_operation_downgraded' => :'Boolean', :'inddet_mask' => :'Boolean', :'indicator' => :'Boolean', :'kill_action_failed' => :'Boolean', :'kill_parent' => :'Boolean', :'kill_process' => :'Boolean', :'kill_subprocess' => :'Boolean', :'operation_blocked' => :'Boolean', :'policy_disabled' => :'Boolean', :'process_blocked' => :'Boolean', :'quarantine_file' => :'Boolean', :'quarantine_machine' => :'Boolean', :'registry_operation_blocked' => :'Boolean', :'rooting' => :'Boolean', :'sensor_only' => :'Boolean', :'suspend_parent' => :'Boolean', :'suspend_process' => :'Boolean' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 375 def ==(o) return true if self.equal?(o) self.class == o.class && blocking_unsupported_or_disabled == o.blocking_unsupported_or_disabled && bootup_safeguard_enabled == o.bootup_safeguard_enabled && critical_process_disabled == o.critical_process_disabled && detect == o.detect && fs_operation_blocked == o.fs_operation_blocked && handle_operation_downgraded == o.handle_operation_downgraded && inddet_mask == o.inddet_mask && indicator == o.indicator && kill_action_failed == o.kill_action_failed && kill_parent == o.kill_parent && kill_process == o.kill_process && kill_subprocess == o.kill_subprocess && operation_blocked == o.operation_blocked && policy_disabled == o.policy_disabled && process_blocked == o.process_blocked && quarantine_file == o.quarantine_file && quarantine_machine == o.quarantine_machine && registry_operation_blocked == o.registry_operation_blocked && rooting == o.rooting && sensor_only == o.sensor_only && suspend_parent == o.suspend_parent && suspend_process == o.suspend_process end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 482 483 484 485 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 448 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
519 520 521 522 523 524 525 526 527 528 529 530 531 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 519 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
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 424 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
404 405 406 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 404 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
410 411 412 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 410 def hash [blocking_unsupported_or_disabled, bootup_safeguard_enabled, critical_process_disabled, detect, fs_operation_blocked, handle_operation_downgraded, inddet_mask, indicator, kill_action_failed, kill_parent, kill_process, kill_subprocess, operation_blocked, policy_disabled, process_blocked, quarantine_file, quarantine_machine, registry_operation_blocked, rooting, sensor_only, suspend_parent, suspend_process].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 252 def list_invalid_properties invalid_properties = Array.new if @blocking_unsupported_or_disabled.nil? invalid_properties.push('invalid value for "blocking_unsupported_or_disabled", blocking_unsupported_or_disabled cannot be nil.') end if @bootup_safeguard_enabled.nil? invalid_properties.push('invalid value for "bootup_safeguard_enabled", bootup_safeguard_enabled cannot be nil.') end if @critical_process_disabled.nil? invalid_properties.push('invalid value for "critical_process_disabled", critical_process_disabled cannot be nil.') end if @detect.nil? invalid_properties.push('invalid value for "detect", detect cannot be nil.') end if @fs_operation_blocked.nil? invalid_properties.push('invalid value for "fs_operation_blocked", fs_operation_blocked cannot be nil.') end if @handle_operation_downgraded.nil? invalid_properties.push('invalid value for "handle_operation_downgraded", handle_operation_downgraded cannot be nil.') end if @inddet_mask.nil? invalid_properties.push('invalid value for "inddet_mask", inddet_mask cannot be nil.') end if @indicator.nil? invalid_properties.push('invalid value for "indicator", indicator cannot be nil.') end if @kill_action_failed.nil? invalid_properties.push('invalid value for "kill_action_failed", kill_action_failed cannot be nil.') end if @kill_parent.nil? invalid_properties.push('invalid value for "kill_parent", kill_parent cannot be nil.') end if @kill_process.nil? invalid_properties.push('invalid value for "kill_process", kill_process cannot be nil.') end if @kill_subprocess.nil? invalid_properties.push('invalid value for "kill_subprocess", kill_subprocess cannot be nil.') end if @operation_blocked.nil? invalid_properties.push('invalid value for "operation_blocked", operation_blocked cannot be nil.') end if @policy_disabled.nil? invalid_properties.push('invalid value for "policy_disabled", policy_disabled cannot be nil.') end if @process_blocked.nil? invalid_properties.push('invalid value for "process_blocked", process_blocked cannot be nil.') end if @quarantine_file.nil? invalid_properties.push('invalid value for "quarantine_file", quarantine_file cannot be nil.') end if @quarantine_machine.nil? invalid_properties.push('invalid value for "quarantine_machine", quarantine_machine cannot be nil.') end if @registry_operation_blocked.nil? invalid_properties.push('invalid value for "registry_operation_blocked", registry_operation_blocked cannot be nil.') end if @rooting.nil? invalid_properties.push('invalid value for "rooting", rooting cannot be nil.') end if @sensor_only.nil? invalid_properties.push('invalid value for "sensor_only", sensor_only cannot be nil.') end if @suspend_parent.nil? invalid_properties.push('invalid value for "suspend_parent", suspend_parent cannot be nil.') end if @suspend_process.nil? invalid_properties.push('invalid value for "suspend_process", suspend_process cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
495 496 497 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 495 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 501 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_s ⇒ String
Returns the string representation of the object
489 490 491 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 489 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
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 |
# File 'lib/crimson-falcon/models/patterndisposition_pattern_disposition.rb', line 347 def valid? return false if @blocking_unsupported_or_disabled.nil? return false if @bootup_safeguard_enabled.nil? return false if @critical_process_disabled.nil? return false if @detect.nil? return false if @fs_operation_blocked.nil? return false if @handle_operation_downgraded.nil? return false if @inddet_mask.nil? return false if @indicator.nil? return false if @kill_action_failed.nil? return false if @kill_parent.nil? return false if @kill_process.nil? return false if @kill_subprocess.nil? return false if @operation_blocked.nil? return false if @policy_disabled.nil? return false if @process_blocked.nil? return false if @quarantine_file.nil? return false if @quarantine_machine.nil? return false if @registry_operation_blocked.nil? return false if @rooting.nil? return false if @sensor_only.nil? return false if @suspend_parent.nil? return false if @suspend_process.nil? true end |