Class: Falcon::EntitiesODSScheduleScanRequest
- Inherits:
-
Object
- Object
- Falcon::EntitiesODSScheduleScanRequest
- Defined in:
- lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb
Instance Attribute Summary collapse
-
#cloud_ml_level_detection ⇒ Object
Returns the value of attribute cloud_ml_level_detection.
-
#cloud_ml_level_prevention ⇒ Object
Returns the value of attribute cloud_ml_level_prevention.
-
#cloud_pup_adware_level_detection ⇒ Object
Returns the value of attribute cloud_pup_adware_level_detection.
-
#cloud_pup_adware_level_prevention ⇒ Object
Returns the value of attribute cloud_pup_adware_level_prevention.
-
#cpu_priority ⇒ Object
Returns the value of attribute cpu_priority.
-
#description ⇒ Object
Returns the value of attribute description.
-
#endpoint_notification ⇒ Object
Returns the value of attribute endpoint_notification.
-
#file_paths ⇒ Object
Returns the value of attribute file_paths.
-
#host_groups ⇒ Object
Returns the value of attribute host_groups.
-
#initiated_from ⇒ Object
Returns the value of attribute initiated_from.
-
#max_duration ⇒ Object
Returns the value of attribute max_duration.
-
#max_file_size ⇒ Object
Returns the value of attribute max_file_size.
-
#pause_duration ⇒ Object
Returns the value of attribute pause_duration.
-
#quarantine ⇒ Object
Returns the value of attribute quarantine.
-
#scan_exclusions ⇒ Object
Returns the value of attribute scan_exclusions.
-
#scan_inclusions ⇒ Object
Returns the value of attribute scan_inclusions.
-
#schedule ⇒ Object
Returns the value of attribute schedule.
-
#sensor_ml_level_detection ⇒ Object
Returns the value of attribute sensor_ml_level_detection.
-
#sensor_ml_level_prevention ⇒ Object
Returns the value of attribute sensor_ml_level_prevention.
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 = {}) ⇒ EntitiesODSScheduleScanRequest
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 = {}) ⇒ EntitiesODSScheduleScanRequest
Initializes the object
136 137 138 139 140 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 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 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 136 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::EntitiesODSScheduleScanRequest` 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::EntitiesODSScheduleScanRequest`. 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?(:'cloud_ml_level_detection') self.cloud_ml_level_detection = attributes[:'cloud_ml_level_detection'] end if attributes.key?(:'cloud_ml_level_prevention') self.cloud_ml_level_prevention = attributes[:'cloud_ml_level_prevention'] end if attributes.key?(:'cloud_pup_adware_level_detection') self.cloud_pup_adware_level_detection = attributes[:'cloud_pup_adware_level_detection'] end if attributes.key?(:'cloud_pup_adware_level_prevention') self.cloud_pup_adware_level_prevention = attributes[:'cloud_pup_adware_level_prevention'] end if attributes.key?(:'cpu_priority') self.cpu_priority = attributes[:'cpu_priority'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'endpoint_notification') self.endpoint_notification = attributes[:'endpoint_notification'] end if attributes.key?(:'file_paths') if (value = attributes[:'file_paths']).is_a?(Array) self.file_paths = value end end if attributes.key?(:'host_groups') if (value = attributes[:'host_groups']).is_a?(Array) self.host_groups = value end end if attributes.key?(:'initiated_from') self.initiated_from = attributes[:'initiated_from'] end if attributes.key?(:'max_duration') self.max_duration = attributes[:'max_duration'] end if attributes.key?(:'max_file_size') self.max_file_size = attributes[:'max_file_size'] end if attributes.key?(:'pause_duration') self.pause_duration = attributes[:'pause_duration'] end if attributes.key?(:'quarantine') self.quarantine = attributes[:'quarantine'] end if attributes.key?(:'scan_exclusions') if (value = attributes[:'scan_exclusions']).is_a?(Array) self.scan_exclusions = value end end if attributes.key?(:'scan_inclusions') if (value = attributes[:'scan_inclusions']).is_a?(Array) self.scan_inclusions = value end end if attributes.key?(:'schedule') self.schedule = attributes[:'schedule'] end if attributes.key?(:'sensor_ml_level_detection') self.sensor_ml_level_detection = attributes[:'sensor_ml_level_detection'] end if attributes.key?(:'sensor_ml_level_prevention') self.sensor_ml_level_prevention = attributes[:'sensor_ml_level_prevention'] end end |
Instance Attribute Details
#cloud_ml_level_detection ⇒ Object
Returns the value of attribute cloud_ml_level_detection.
35 36 37 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 35 def cloud_ml_level_detection @cloud_ml_level_detection end |
#cloud_ml_level_prevention ⇒ Object
Returns the value of attribute cloud_ml_level_prevention.
37 38 39 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 37 def cloud_ml_level_prevention @cloud_ml_level_prevention end |
#cloud_pup_adware_level_detection ⇒ Object
Returns the value of attribute cloud_pup_adware_level_detection.
39 40 41 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 39 def cloud_pup_adware_level_detection @cloud_pup_adware_level_detection end |
#cloud_pup_adware_level_prevention ⇒ Object
Returns the value of attribute cloud_pup_adware_level_prevention.
41 42 43 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 41 def cloud_pup_adware_level_prevention @cloud_pup_adware_level_prevention end |
#cpu_priority ⇒ Object
Returns the value of attribute cpu_priority.
43 44 45 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 43 def cpu_priority @cpu_priority end |
#description ⇒ Object
Returns the value of attribute description.
45 46 47 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 45 def description @description end |
#endpoint_notification ⇒ Object
Returns the value of attribute endpoint_notification.
47 48 49 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 47 def endpoint_notification @endpoint_notification end |
#file_paths ⇒ Object
Returns the value of attribute file_paths.
49 50 51 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 49 def file_paths @file_paths end |
#host_groups ⇒ Object
Returns the value of attribute host_groups.
51 52 53 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 51 def host_groups @host_groups end |
#initiated_from ⇒ Object
Returns the value of attribute initiated_from.
53 54 55 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 53 def initiated_from @initiated_from end |
#max_duration ⇒ Object
Returns the value of attribute max_duration.
55 56 57 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 55 def max_duration @max_duration end |
#max_file_size ⇒ Object
Returns the value of attribute max_file_size.
57 58 59 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 57 def max_file_size @max_file_size end |
#pause_duration ⇒ Object
Returns the value of attribute pause_duration.
59 60 61 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 59 def pause_duration @pause_duration end |
#quarantine ⇒ Object
Returns the value of attribute quarantine.
61 62 63 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 61 def quarantine @quarantine end |
#scan_exclusions ⇒ Object
Returns the value of attribute scan_exclusions.
63 64 65 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 63 def scan_exclusions @scan_exclusions end |
#scan_inclusions ⇒ Object
Returns the value of attribute scan_inclusions.
65 66 67 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 65 def scan_inclusions @scan_inclusions end |
#schedule ⇒ Object
Returns the value of attribute schedule.
67 68 69 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 67 def schedule @schedule end |
#sensor_ml_level_detection ⇒ Object
Returns the value of attribute sensor_ml_level_detection.
69 70 71 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 69 def sensor_ml_level_detection @sensor_ml_level_detection end |
#sensor_ml_level_prevention ⇒ Object
Returns the value of attribute sensor_ml_level_prevention.
71 72 73 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 71 def sensor_ml_level_prevention @sensor_ml_level_prevention end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
99 100 101 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 99 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 74 def self.attribute_map { :'cloud_ml_level_detection' => :'cloud_ml_level_detection', :'cloud_ml_level_prevention' => :'cloud_ml_level_prevention', :'cloud_pup_adware_level_detection' => :'cloud_pup_adware_level_detection', :'cloud_pup_adware_level_prevention' => :'cloud_pup_adware_level_prevention', :'cpu_priority' => :'cpu_priority', :'description' => :'description', :'endpoint_notification' => :'endpoint_notification', :'file_paths' => :'file_paths', :'host_groups' => :'host_groups', :'initiated_from' => :'initiated_from', :'max_duration' => :'max_duration', :'max_file_size' => :'max_file_size', :'pause_duration' => :'pause_duration', :'quarantine' => :'quarantine', :'scan_exclusions' => :'scan_exclusions', :'scan_inclusions' => :'scan_inclusions', :'schedule' => :'schedule', :'sensor_ml_level_detection' => :'sensor_ml_level_detection', :'sensor_ml_level_prevention' => :'sensor_ml_level_prevention' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
383 384 385 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 383 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
129 130 131 132 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 129 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 104 def self.openapi_types { :'cloud_ml_level_detection' => :'Integer', :'cloud_ml_level_prevention' => :'Integer', :'cloud_pup_adware_level_detection' => :'Integer', :'cloud_pup_adware_level_prevention' => :'Integer', :'cpu_priority' => :'Integer', :'description' => :'String', :'endpoint_notification' => :'Boolean', :'file_paths' => :'Array<String>', :'host_groups' => :'Array<String>', :'initiated_from' => :'String', :'max_duration' => :'Integer', :'max_file_size' => :'Integer', :'pause_duration' => :'Integer', :'quarantine' => :'Boolean', :'scan_exclusions' => :'Array<String>', :'scan_inclusions' => :'Array<String>', :'schedule' => :'DomainSchedule', :'sensor_ml_level_detection' => :'Integer', :'sensor_ml_level_prevention' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 344 def ==(o) return true if self.equal?(o) self.class == o.class && cloud_ml_level_detection == o.cloud_ml_level_detection && cloud_ml_level_prevention == o.cloud_ml_level_prevention && cloud_pup_adware_level_detection == o.cloud_pup_adware_level_detection && cloud_pup_adware_level_prevention == o.cloud_pup_adware_level_prevention && cpu_priority == o.cpu_priority && description == o.description && endpoint_notification == o.endpoint_notification && file_paths == o.file_paths && host_groups == o.host_groups && initiated_from == o.initiated_from && max_duration == o.max_duration && max_file_size == o.max_file_size && pause_duration == o.pause_duration && quarantine == o.quarantine && scan_exclusions == o.scan_exclusions && scan_inclusions == o.scan_inclusions && schedule == o.schedule && sensor_ml_level_detection == o.sensor_ml_level_detection && sensor_ml_level_prevention == o.sensor_ml_level_prevention end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 414 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
485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 485 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
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 390 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
370 371 372 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 370 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
376 377 378 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 376 def hash [cloud_ml_level_detection, cloud_ml_level_prevention, cloud_pup_adware_level_detection, cloud_pup_adware_level_prevention, cpu_priority, description, endpoint_notification, file_paths, host_groups, initiated_from, max_duration, max_file_size, pause_duration, quarantine, scan_exclusions, scan_inclusions, schedule, sensor_ml_level_detection, sensor_ml_level_prevention].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 236 def list_invalid_properties invalid_properties = Array.new if @cloud_ml_level_detection.nil? invalid_properties.push('invalid value for "cloud_ml_level_detection", cloud_ml_level_detection cannot be nil.') end if @cloud_ml_level_prevention.nil? invalid_properties.push('invalid value for "cloud_ml_level_prevention", cloud_ml_level_prevention cannot be nil.') end if @cloud_pup_adware_level_detection.nil? invalid_properties.push('invalid value for "cloud_pup_adware_level_detection", cloud_pup_adware_level_detection cannot be nil.') end if @cloud_pup_adware_level_prevention.nil? invalid_properties.push('invalid value for "cloud_pup_adware_level_prevention", cloud_pup_adware_level_prevention cannot be nil.') end if @cpu_priority.nil? invalid_properties.push('invalid value for "cpu_priority", cpu_priority cannot be nil.') end if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end if @endpoint_notification.nil? invalid_properties.push('invalid value for "endpoint_notification", endpoint_notification cannot be nil.') end if @file_paths.nil? invalid_properties.push('invalid value for "file_paths", file_paths cannot be nil.') end if @host_groups.nil? invalid_properties.push('invalid value for "host_groups", host_groups cannot be nil.') end if @initiated_from.nil? invalid_properties.push('invalid value for "initiated_from", initiated_from cannot be nil.') end if @max_duration.nil? invalid_properties.push('invalid value for "max_duration", max_duration cannot be nil.') end if @max_file_size.nil? invalid_properties.push('invalid value for "max_file_size", max_file_size cannot be nil.') end if @pause_duration.nil? invalid_properties.push('invalid value for "pause_duration", pause_duration cannot be nil.') end if @quarantine.nil? invalid_properties.push('invalid value for "quarantine", quarantine cannot be nil.') end if @scan_exclusions.nil? invalid_properties.push('invalid value for "scan_exclusions", scan_exclusions cannot be nil.') end if @scan_inclusions.nil? invalid_properties.push('invalid value for "scan_inclusions", scan_inclusions cannot be nil.') end if @schedule.nil? invalid_properties.push('invalid value for "schedule", schedule cannot be nil.') end if @sensor_ml_level_detection.nil? invalid_properties.push('invalid value for "sensor_ml_level_detection", sensor_ml_level_detection cannot be nil.') end if @sensor_ml_level_prevention.nil? invalid_properties.push('invalid value for "sensor_ml_level_prevention", sensor_ml_level_prevention cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
461 462 463 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 461 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 467 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
455 456 457 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 455 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# File 'lib/crimson-falcon/models/entities_ods_schedule_scan_request.rb', line 319 def valid? return false if @cloud_ml_level_detection.nil? return false if @cloud_ml_level_prevention.nil? return false if @cloud_pup_adware_level_detection.nil? return false if @cloud_pup_adware_level_prevention.nil? return false if @cpu_priority.nil? return false if @description.nil? return false if @endpoint_notification.nil? return false if @file_paths.nil? return false if @host_groups.nil? return false if @initiated_from.nil? return false if @max_duration.nil? return false if @max_file_size.nil? return false if @pause_duration.nil? return false if @quarantine.nil? return false if @scan_exclusions.nil? return false if @scan_inclusions.nil? return false if @schedule.nil? return false if @sensor_ml_level_detection.nil? return false if @sensor_ml_level_prevention.nil? true end |