Class: Falcon::DeviceMappedDevicePolicies
- Inherits:
-
Object
- Object
- Falcon::DeviceMappedDevicePolicies
- Defined in:
- lib/crimson-falcon/models/device_mapped_device_policies.rb
Instance Attribute Summary collapse
-
#airlock ⇒ Object
Returns the value of attribute airlock.
-
#automox ⇒ Object
Returns the value of attribute automox.
-
#aws_verified_access ⇒ Object
Returns the value of attribute aws_verified_access.
-
#data_protection ⇒ Object
Returns the value of attribute data_protection.
-
#device_control ⇒ Object
Returns the value of attribute device_control.
-
#fim ⇒ Object
Returns the value of attribute fim.
-
#firewall ⇒ Object
Returns the value of attribute firewall.
-
#global_config ⇒ Object
Returns the value of attribute global_config.
-
#host_retention ⇒ Object
Returns the value of attribute host_retention.
-
#identity_protection ⇒ Object
Returns the value of attribute identity_protection.
-
#jumpcloud ⇒ Object
Returns the value of attribute jumpcloud.
-
#kubernetes_admission_control ⇒ Object
Returns the value of attribute kubernetes_admission_control.
-
#mobile ⇒ Object
Returns the value of attribute mobile.
-
#netskope ⇒ Object
Returns the value of attribute netskope.
-
#prevention ⇒ Object
Returns the value of attribute prevention.
-
#remote_response ⇒ Object
Returns the value of attribute remote_response.
-
#sca ⇒ Object
Returns the value of attribute sca.
-
#sensor_update ⇒ Object
Returns the value of attribute sensor_update.
-
#system_tray ⇒ Object
Returns the value of attribute system_tray.
-
#ztl ⇒ Object
Returns the value of attribute ztl.
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 = {}) ⇒ DeviceMappedDevicePolicies
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 = {}) ⇒ DeviceMappedDevicePolicies
Initializes the object
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/device_mapped_device_policies.rb', line 140 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::DeviceMappedDevicePolicies` 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::DeviceMappedDevicePolicies`. 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?(:'airlock') self.airlock = attributes[:'airlock'] end if attributes.key?(:'automox') self.automox = attributes[:'automox'] end if attributes.key?(:'aws_verified_access') self.aws_verified_access = attributes[:'aws_verified_access'] end if attributes.key?(:'data_protection') self.data_protection = attributes[:'data_protection'] end if attributes.key?(:'device_control') self.device_control = attributes[:'device_control'] end if attributes.key?(:'fim') self.fim = attributes[:'fim'] end if attributes.key?(:'firewall') self.firewall = attributes[:'firewall'] end if attributes.key?(:'global_config') self.global_config = attributes[:'global_config'] end if attributes.key?(:'host_retention') self.host_retention = attributes[:'host_retention'] end if attributes.key?(:'identity_protection') self.identity_protection = attributes[:'identity_protection'] end if attributes.key?(:'jumpcloud') self.jumpcloud = attributes[:'jumpcloud'] end if attributes.key?(:'kubernetes_admission_control') self.kubernetes_admission_control = attributes[:'kubernetes_admission_control'] end if attributes.key?(:'mobile') self.mobile = attributes[:'mobile'] end if attributes.key?(:'netskope') self.netskope = attributes[:'netskope'] end if attributes.key?(:'prevention') self.prevention = attributes[:'prevention'] end if attributes.key?(:'remote_response') self.remote_response = attributes[:'remote_response'] end if attributes.key?(:'sca') self.sca = attributes[:'sca'] end if attributes.key?(:'sensor_update') self.sensor_update = attributes[:'sensor_update'] end if attributes.key?(:'system_tray') self.system_tray = attributes[:'system_tray'] end if attributes.key?(:'ztl') self.ztl = attributes[:'ztl'] end end |
Instance Attribute Details
#airlock ⇒ Object
Returns the value of attribute airlock.
35 36 37 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 35 def airlock @airlock end |
#automox ⇒ Object
Returns the value of attribute automox.
37 38 39 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 37 def automox @automox end |
#aws_verified_access ⇒ Object
Returns the value of attribute aws_verified_access.
39 40 41 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 39 def aws_verified_access @aws_verified_access end |
#data_protection ⇒ Object
Returns the value of attribute data_protection.
41 42 43 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 41 def data_protection @data_protection end |
#device_control ⇒ Object
Returns the value of attribute device_control.
43 44 45 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 43 def device_control @device_control end |
#fim ⇒ Object
Returns the value of attribute fim.
45 46 47 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 45 def fim @fim end |
#firewall ⇒ Object
Returns the value of attribute firewall.
47 48 49 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 47 def firewall @firewall end |
#global_config ⇒ Object
Returns the value of attribute global_config.
49 50 51 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 49 def global_config @global_config end |
#host_retention ⇒ Object
Returns the value of attribute host_retention.
51 52 53 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 51 def host_retention @host_retention end |
#identity_protection ⇒ Object
Returns the value of attribute identity_protection.
53 54 55 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 53 def identity_protection @identity_protection end |
#jumpcloud ⇒ Object
Returns the value of attribute jumpcloud.
55 56 57 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 55 def jumpcloud @jumpcloud end |
#kubernetes_admission_control ⇒ Object
Returns the value of attribute kubernetes_admission_control.
57 58 59 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 57 def kubernetes_admission_control @kubernetes_admission_control end |
#mobile ⇒ Object
Returns the value of attribute mobile.
59 60 61 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 59 def mobile @mobile end |
#netskope ⇒ Object
Returns the value of attribute netskope.
61 62 63 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 61 def netskope @netskope end |
#prevention ⇒ Object
Returns the value of attribute prevention.
63 64 65 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 63 def prevention @prevention end |
#remote_response ⇒ Object
Returns the value of attribute remote_response.
65 66 67 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 65 def remote_response @remote_response end |
#sca ⇒ Object
Returns the value of attribute sca.
67 68 69 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 67 def sca @sca end |
#sensor_update ⇒ Object
Returns the value of attribute sensor_update.
69 70 71 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 69 def sensor_update @sensor_update end |
#system_tray ⇒ Object
Returns the value of attribute system_tray.
71 72 73 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 71 def system_tray @system_tray end |
#ztl ⇒ Object
Returns the value of attribute ztl.
73 74 75 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 73 def ztl @ztl end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
102 103 104 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 102 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 76 def self.attribute_map { :'airlock' => :'airlock', :'automox' => :'automox', :'aws_verified_access' => :'aws-verified-access', :'data_protection' => :'data-protection', :'device_control' => :'device_control', :'fim' => :'fim', :'firewall' => :'firewall', :'global_config' => :'global_config', :'host_retention' => :'host-retention', :'identity_protection' => :'identity-protection', :'jumpcloud' => :'jumpcloud', :'kubernetes_admission_control' => :'kubernetes-admission-control', :'mobile' => :'mobile', :'netskope' => :'netskope', :'prevention' => :'prevention', :'remote_response' => :'remote_response', :'sca' => :'sca', :'sensor_update' => :'sensor_update', :'system_tray' => :'system-tray', :'ztl' => :'ztl' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
289 290 291 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 289 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
133 134 135 136 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 133 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 107 def self.openapi_types { :'airlock' => :'DeviceDevicePolicy', :'automox' => :'DeviceDevicePolicy', :'aws_verified_access' => :'DeviceDevicePolicy', :'data_protection' => :'DeviceDevicePolicy', :'device_control' => :'DeviceDevicePolicy', :'fim' => :'DeviceDevicePolicy', :'firewall' => :'DeviceDevicePolicy', :'global_config' => :'DeviceDevicePolicy', :'host_retention' => :'DeviceDevicePolicy', :'identity_protection' => :'DeviceDevicePolicy', :'jumpcloud' => :'DeviceDevicePolicy', :'kubernetes_admission_control' => :'DeviceDevicePolicy', :'mobile' => :'DeviceDevicePolicy', :'netskope' => :'DeviceDevicePolicy', :'prevention' => :'DeviceDevicePolicy', :'remote_response' => :'DeviceDevicePolicy', :'sca' => :'DeviceDevicePolicy', :'sensor_update' => :'DeviceDevicePolicy', :'system_tray' => :'DeviceDevicePolicy', :'ztl' => :'DeviceDevicePolicy' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 249 def ==(o) return true if self.equal?(o) self.class == o.class && airlock == o.airlock && automox == o.automox && aws_verified_access == o.aws_verified_access && data_protection == o.data_protection && device_control == o.device_control && fim == o.fim && firewall == o.firewall && global_config == o.global_config && host_retention == o.host_retention && identity_protection == o.identity_protection && jumpcloud == o.jumpcloud && kubernetes_admission_control == o.kubernetes_admission_control && mobile == o.mobile && netskope == o.netskope && prevention == o.prevention && remote_response == o.remote_response && sca == o.sca && sensor_update == o.sensor_update && system_tray == o.system_tray && ztl == o.ztl end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 320 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
391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 391 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
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 296 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
276 277 278 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 276 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
282 283 284 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 282 def hash [airlock, automox, aws_verified_access, data_protection, device_control, fim, firewall, global_config, host_retention, identity_protection, jumpcloud, kubernetes_admission_control, mobile, netskope, prevention, remote_response, sca, sensor_update, system_tray, ztl].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
236 237 238 239 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 236 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
367 368 369 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 367 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
373 374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 373 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
361 362 363 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 361 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
243 244 245 |
# File 'lib/crimson-falcon/models/device_mapped_device_policies.rb', line 243 def valid? true end |