Class: Falcon::FwmgrFirewallMatchEventResponse
- Inherits:
-
Object
- Object
- Falcon::FwmgrFirewallMatchEventResponse
- Defined in:
- lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb
Instance Attribute Summary collapse
-
#aid ⇒ Object
Returns the value of attribute aid.
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#command_line ⇒ Object
Returns the value of attribute command_line.
-
#connection_direction ⇒ Object
Returns the value of attribute connection_direction.
-
#domain_name_list ⇒ Object
Returns the value of attribute domain_name_list.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#hidden ⇒ Object
Returns the value of attribute hidden.
-
#host_name ⇒ Object
Returns the value of attribute host_name.
-
#icmp_code ⇒ Object
Returns the value of attribute icmp_code.
-
#icmp_type ⇒ Object
Returns the value of attribute icmp_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image_file_name ⇒ Object
Returns the value of attribute image_file_name.
-
#ipv ⇒ Object
Returns the value of attribute ipv.
-
#local_address ⇒ Object
Returns the value of attribute local_address.
-
#local_port ⇒ Object
Returns the value of attribute local_port.
-
#match_count ⇒ Object
Returns the value of attribute match_count.
-
#match_count_since_last_event ⇒ Object
Returns the value of attribute match_count_since_last_event.
-
#network_profile ⇒ Object
Returns the value of attribute network_profile.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#policy_id ⇒ Object
Returns the value of attribute policy_id.
-
#policy_name ⇒ Object
Returns the value of attribute policy_name.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#remote_address ⇒ Object
Returns the value of attribute remote_address.
-
#remote_port ⇒ Object
Returns the value of attribute remote_port.
-
#rule_action ⇒ Object
Returns the value of attribute rule_action.
-
#rule_description ⇒ Object
Returns the value of attribute rule_description.
-
#rule_family_id ⇒ Object
Returns the value of attribute rule_family_id.
-
#rule_group_name ⇒ Object
Returns the value of attribute rule_group_name.
-
#rule_id ⇒ Object
Returns the value of attribute rule_id.
-
#rule_name ⇒ Object
Returns the value of attribute rule_name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#tree_id ⇒ Object
Returns the value of attribute tree_id.
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 = {}) ⇒ FwmgrFirewallMatchEventResponse
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 = {}) ⇒ FwmgrFirewallMatchEventResponse
Initializes the object
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 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 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 200 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::FwmgrFirewallMatchEventResponse` 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::FwmgrFirewallMatchEventResponse`. 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?(:'aid') self.aid = attributes[:'aid'] end if attributes.key?(:'cid') self.cid = attributes[:'cid'] end if attributes.key?(:'command_line') self.command_line = attributes[:'command_line'] end if attributes.key?(:'connection_direction') self.connection_direction = attributes[:'connection_direction'] end if attributes.key?(:'domain_name_list') self.domain_name_list = attributes[:'domain_name_list'] end if attributes.key?(:'event_type') self.event_type = attributes[:'event_type'] end if attributes.key?(:'flags') self.flags = attributes[:'flags'] end if attributes.key?(:'hidden') self.hidden = attributes[:'hidden'] end if attributes.key?(:'host_name') self.host_name = attributes[:'host_name'] end if attributes.key?(:'icmp_code') self.icmp_code = attributes[:'icmp_code'] end if attributes.key?(:'icmp_type') self.icmp_type = attributes[:'icmp_type'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'image_file_name') self.image_file_name = attributes[:'image_file_name'] end if attributes.key?(:'ipv') self.ipv = attributes[:'ipv'] end if attributes.key?(:'local_address') self.local_address = attributes[:'local_address'] end if attributes.key?(:'local_port') self.local_port = attributes[:'local_port'] end if attributes.key?(:'match_count') self.match_count = attributes[:'match_count'] end if attributes.key?(:'match_count_since_last_event') self.match_count_since_last_event = attributes[:'match_count_since_last_event'] end if attributes.key?(:'network_profile') self.network_profile = attributes[:'network_profile'] end if attributes.key?(:'pid') self.pid = attributes[:'pid'] end if attributes.key?(:'platform') self.platform = attributes[:'platform'] end if attributes.key?(:'policy_id') self.policy_id = attributes[:'policy_id'] end if attributes.key?(:'policy_name') self.policy_name = attributes[:'policy_name'] end if attributes.key?(:'protocol') self.protocol = attributes[:'protocol'] end if attributes.key?(:'remote_address') self.remote_address = attributes[:'remote_address'] end if attributes.key?(:'remote_port') self.remote_port = attributes[:'remote_port'] end if attributes.key?(:'rule_action') self.rule_action = attributes[:'rule_action'] end if attributes.key?(:'rule_description') self.rule_description = attributes[:'rule_description'] end if attributes.key?(:'rule_family_id') self.rule_family_id = attributes[:'rule_family_id'] end if attributes.key?(:'rule_group_name') self.rule_group_name = attributes[:'rule_group_name'] end if attributes.key?(:'rule_id') self.rule_id = attributes[:'rule_id'] end if attributes.key?(:'rule_name') self.rule_name = attributes[:'rule_name'] end if attributes.key?(:'status') self.status = attributes[:'status'] end if attributes.key?(:'timestamp') self. = attributes[:'timestamp'] end if attributes.key?(:'tree_id') self.tree_id = attributes[:'tree_id'] end end |
Instance Attribute Details
#aid ⇒ Object
Returns the value of attribute aid.
35 36 37 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 35 def aid @aid end |
#cid ⇒ Object
Returns the value of attribute cid.
37 38 39 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 37 def cid @cid end |
#command_line ⇒ Object
Returns the value of attribute command_line.
39 40 41 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 39 def command_line @command_line end |
#connection_direction ⇒ Object
Returns the value of attribute connection_direction.
41 42 43 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 41 def connection_direction @connection_direction end |
#domain_name_list ⇒ Object
Returns the value of attribute domain_name_list.
43 44 45 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 43 def domain_name_list @domain_name_list end |
#event_type ⇒ Object
Returns the value of attribute event_type.
45 46 47 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 45 def event_type @event_type end |
#flags ⇒ Object
Returns the value of attribute flags.
47 48 49 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 47 def flags @flags end |
#hidden ⇒ Object
Returns the value of attribute hidden.
49 50 51 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 49 def hidden @hidden end |
#host_name ⇒ Object
Returns the value of attribute host_name.
51 52 53 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 51 def host_name @host_name end |
#icmp_code ⇒ Object
Returns the value of attribute icmp_code.
53 54 55 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 53 def icmp_code @icmp_code end |
#icmp_type ⇒ Object
Returns the value of attribute icmp_type.
55 56 57 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 55 def icmp_type @icmp_type end |
#id ⇒ Object
Returns the value of attribute id.
57 58 59 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 57 def id @id end |
#image_file_name ⇒ Object
Returns the value of attribute image_file_name.
59 60 61 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 59 def image_file_name @image_file_name end |
#ipv ⇒ Object
Returns the value of attribute ipv.
61 62 63 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 61 def ipv @ipv end |
#local_address ⇒ Object
Returns the value of attribute local_address.
63 64 65 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 63 def local_address @local_address end |
#local_port ⇒ Object
Returns the value of attribute local_port.
65 66 67 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 65 def local_port @local_port end |
#match_count ⇒ Object
Returns the value of attribute match_count.
67 68 69 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 67 def match_count @match_count end |
#match_count_since_last_event ⇒ Object
Returns the value of attribute match_count_since_last_event.
69 70 71 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 69 def match_count_since_last_event @match_count_since_last_event end |
#network_profile ⇒ Object
Returns the value of attribute network_profile.
71 72 73 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 71 def network_profile @network_profile end |
#pid ⇒ Object
Returns the value of attribute pid.
73 74 75 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 73 def pid @pid end |
#platform ⇒ Object
Returns the value of attribute platform.
75 76 77 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 75 def platform @platform end |
#policy_id ⇒ Object
Returns the value of attribute policy_id.
77 78 79 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 77 def policy_id @policy_id end |
#policy_name ⇒ Object
Returns the value of attribute policy_name.
79 80 81 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 79 def policy_name @policy_name end |
#protocol ⇒ Object
Returns the value of attribute protocol.
81 82 83 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 81 def protocol @protocol end |
#remote_address ⇒ Object
Returns the value of attribute remote_address.
83 84 85 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 83 def remote_address @remote_address end |
#remote_port ⇒ Object
Returns the value of attribute remote_port.
85 86 87 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 85 def remote_port @remote_port end |
#rule_action ⇒ Object
Returns the value of attribute rule_action.
87 88 89 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 87 def rule_action @rule_action end |
#rule_description ⇒ Object
Returns the value of attribute rule_description.
89 90 91 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 89 def rule_description @rule_description end |
#rule_family_id ⇒ Object
Returns the value of attribute rule_family_id.
91 92 93 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 91 def rule_family_id @rule_family_id end |
#rule_group_name ⇒ Object
Returns the value of attribute rule_group_name.
93 94 95 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 93 def rule_group_name @rule_group_name end |
#rule_id ⇒ Object
Returns the value of attribute rule_id.
95 96 97 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 95 def rule_id @rule_id end |
#rule_name ⇒ Object
Returns the value of attribute rule_name.
97 98 99 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 97 def rule_name @rule_name end |
#status ⇒ Object
Returns the value of attribute status.
99 100 101 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 99 def status @status end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
101 102 103 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 101 def @timestamp end |
#tree_id ⇒ Object
Returns the value of attribute tree_id.
103 104 105 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 103 def tree_id @tree_id end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
147 148 149 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 147 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
106 107 108 109 110 111 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 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 106 def self.attribute_map { :'aid' => :'aid', :'cid' => :'cid', :'command_line' => :'command_line', :'connection_direction' => :'connection_direction', :'domain_name_list' => :'domain_name_list', :'event_type' => :'event_type', :'flags' => :'flags', :'hidden' => :'hidden', :'host_name' => :'host_name', :'icmp_code' => :'icmp_code', :'icmp_type' => :'icmp_type', :'id' => :'id', :'image_file_name' => :'image_file_name', :'ipv' => :'ipv', :'local_address' => :'local_address', :'local_port' => :'local_port', :'match_count' => :'match_count', :'match_count_since_last_event' => :'match_count_since_last_event', :'network_profile' => :'network_profile', :'pid' => :'pid', :'platform' => :'platform', :'policy_id' => :'policy_id', :'policy_name' => :'policy_name', :'protocol' => :'protocol', :'remote_address' => :'remote_address', :'remote_port' => :'remote_port', :'rule_action' => :'rule_action', :'rule_description' => :'rule_description', :'rule_family_id' => :'rule_family_id', :'rule_group_name' => :'rule_group_name', :'rule_id' => :'rule_id', :'rule_name' => :'rule_name', :'status' => :'status', :'timestamp' => :'timestamp', :'tree_id' => :'tree_id' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
599 600 601 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 599 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
193 194 195 196 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 193 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 152 def self.openapi_types { :'aid' => :'String', :'cid' => :'String', :'command_line' => :'String', :'connection_direction' => :'String', :'domain_name_list' => :'String', :'event_type' => :'String', :'flags' => :'FwmgrFirewallFlags', :'hidden' => :'Boolean', :'host_name' => :'String', :'icmp_code' => :'String', :'icmp_type' => :'String', :'id' => :'String', :'image_file_name' => :'String', :'ipv' => :'String', :'local_address' => :'String', :'local_port' => :'String', :'match_count' => :'String', :'match_count_since_last_event' => :'String', :'network_profile' => :'String', :'pid' => :'String', :'platform' => :'String', :'policy_id' => :'String', :'policy_name' => :'String', :'protocol' => :'String', :'remote_address' => :'String', :'remote_port' => :'String', :'rule_action' => :'String', :'rule_description' => :'String', :'rule_family_id' => :'String', :'rule_group_name' => :'String', :'rule_id' => :'String', :'rule_name' => :'String', :'status' => :'String', :'timestamp' => :'String', :'tree_id' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 544 def ==(o) return true if self.equal?(o) self.class == o.class && aid == o.aid && cid == o.cid && command_line == o.command_line && connection_direction == o.connection_direction && domain_name_list == o.domain_name_list && event_type == o.event_type && flags == o.flags && hidden == o.hidden && host_name == o.host_name && icmp_code == o.icmp_code && icmp_type == o.icmp_type && id == o.id && image_file_name == o.image_file_name && ipv == o.ipv && local_address == o.local_address && local_port == o.local_port && match_count == o.match_count && match_count_since_last_event == o.match_count_since_last_event && network_profile == o.network_profile && pid == o.pid && platform == o.platform && policy_id == o.policy_id && policy_name == o.policy_name && protocol == o.protocol && remote_address == o.remote_address && remote_port == o.remote_port && rule_action == o.rule_action && rule_description == o.rule_description && rule_family_id == o.rule_family_id && rule_group_name == o.rule_group_name && rule_id == o.rule_id && rule_name == o.rule_name && status == o.status && == o. && tree_id == o.tree_id end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 630 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
701 702 703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 701 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
606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 606 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
586 587 588 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 586 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
592 593 594 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 592 def hash [aid, cid, command_line, connection_direction, domain_name_list, event_type, flags, hidden, host_name, icmp_code, icmp_type, id, image_file_name, ipv, local_address, local_port, match_count, match_count_since_last_event, network_profile, pid, platform, policy_id, policy_name, protocol, remote_address, remote_port, rule_action, rule_description, rule_family_id, rule_group_name, rule_id, rule_name, status, , tree_id].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 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 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 356 def list_invalid_properties invalid_properties = Array.new if @aid.nil? invalid_properties.push('invalid value for "aid", aid cannot be nil.') end if @cid.nil? invalid_properties.push('invalid value for "cid", cid cannot be nil.') end if @command_line.nil? invalid_properties.push('invalid value for "command_line", command_line cannot be nil.') end if @connection_direction.nil? invalid_properties.push('invalid value for "connection_direction", connection_direction cannot be nil.') end if @domain_name_list.nil? invalid_properties.push('invalid value for "domain_name_list", domain_name_list cannot be nil.') end if @event_type.nil? invalid_properties.push('invalid value for "event_type", event_type cannot be nil.') end if @flags.nil? invalid_properties.push('invalid value for "flags", flags cannot be nil.') end if @hidden.nil? invalid_properties.push('invalid value for "hidden", hidden cannot be nil.') end if @host_name.nil? invalid_properties.push('invalid value for "host_name", host_name cannot be nil.') end if @icmp_code.nil? invalid_properties.push('invalid value for "icmp_code", icmp_code cannot be nil.') end if @icmp_type.nil? invalid_properties.push('invalid value for "icmp_type", icmp_type cannot be nil.') end if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @image_file_name.nil? invalid_properties.push('invalid value for "image_file_name", image_file_name cannot be nil.') end if @ipv.nil? invalid_properties.push('invalid value for "ipv", ipv cannot be nil.') end if @local_address.nil? invalid_properties.push('invalid value for "local_address", local_address cannot be nil.') end if @local_port.nil? invalid_properties.push('invalid value for "local_port", local_port cannot be nil.') end if @match_count.nil? invalid_properties.push('invalid value for "match_count", match_count cannot be nil.') end if @match_count_since_last_event.nil? invalid_properties.push('invalid value for "match_count_since_last_event", match_count_since_last_event cannot be nil.') end if @network_profile.nil? invalid_properties.push('invalid value for "network_profile", network_profile cannot be nil.') end if @pid.nil? invalid_properties.push('invalid value for "pid", pid cannot be nil.') end if @platform.nil? invalid_properties.push('invalid value for "platform", platform cannot be nil.') end if @policy_id.nil? invalid_properties.push('invalid value for "policy_id", policy_id cannot be nil.') end if @policy_name.nil? invalid_properties.push('invalid value for "policy_name", policy_name cannot be nil.') end if @protocol.nil? invalid_properties.push('invalid value for "protocol", protocol cannot be nil.') end if @remote_address.nil? invalid_properties.push('invalid value for "remote_address", remote_address cannot be nil.') end if @remote_port.nil? invalid_properties.push('invalid value for "remote_port", remote_port cannot be nil.') end if @rule_action.nil? invalid_properties.push('invalid value for "rule_action", rule_action cannot be nil.') end if @rule_description.nil? invalid_properties.push('invalid value for "rule_description", rule_description cannot be nil.') end if @rule_family_id.nil? invalid_properties.push('invalid value for "rule_family_id", rule_family_id cannot be nil.') end if @rule_group_name.nil? invalid_properties.push('invalid value for "rule_group_name", rule_group_name cannot be nil.') end if @rule_id.nil? invalid_properties.push('invalid value for "rule_id", rule_id cannot be nil.') end if @rule_name.nil? invalid_properties.push('invalid value for "rule_name", rule_name cannot be nil.') end if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') end if @timestamp.nil? invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.') end if @tree_id.nil? invalid_properties.push('invalid value for "tree_id", tree_id cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
677 678 679 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 677 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
683 684 685 686 687 688 689 690 691 692 693 694 695 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 683 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
671 672 673 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 671 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/crimson-falcon/models/fwmgr_firewall_match_event_response.rb', line 503 def valid? return false if @aid.nil? return false if @cid.nil? return false if @command_line.nil? return false if @connection_direction.nil? return false if @domain_name_list.nil? return false if @event_type.nil? return false if @flags.nil? return false if @hidden.nil? return false if @host_name.nil? return false if @icmp_code.nil? return false if @icmp_type.nil? return false if @id.nil? return false if @image_file_name.nil? return false if @ipv.nil? return false if @local_address.nil? return false if @local_port.nil? return false if @match_count.nil? return false if @match_count_since_last_event.nil? return false if @network_profile.nil? return false if @pid.nil? return false if @platform.nil? return false if @policy_id.nil? return false if @policy_name.nil? return false if @protocol.nil? return false if @remote_address.nil? return false if @remote_port.nil? return false if @rule_action.nil? return false if @rule_description.nil? return false if @rule_family_id.nil? return false if @rule_group_name.nil? return false if @rule_id.nil? return false if @rule_name.nil? return false if @status.nil? return false if @timestamp.nil? return false if @tree_id.nil? true end |