Class: VSphereAutomation::Appliance::ApplianceTechpreviewMonitoringSnmpSNMPStats
- Inherits:
-
Object
- Object
- VSphereAutomation::Appliance::ApplianceTechpreviewMonitoringSnmpSNMPStats
- Defined in:
- lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb
Instance Attribute Summary collapse
-
#avgresponsetime ⇒ Object
Average response time.
-
#avgvarbinds ⇒ Object
No of ave:rage var binds.
-
#inasnparseerrs ⇒ Object
No of parse errors.
-
#inbadcommunitynames ⇒ Object
No of bad community names.
-
#inbadcommunityuses ⇒ Object
No of bad community uses.
-
#inbadvalues ⇒ Object
No of bad values.
-
#inbadversions ⇒ Object
No of bad versions.
-
#ingenerrs ⇒ Object
No of gen errors.
-
#innosuchnames ⇒ Object
No of no such names.
-
#inpkts ⇒ Object
No of input packets.
-
#intoobigs ⇒ Object
No of too bigs.
-
#maxvarbinds ⇒ Object
No of max var binds.
-
#outbadvalues ⇒ Object
No of bad values.
-
#outgenerrs ⇒ Object
No of gen errors.
-
#outnosuchnames ⇒ Object
No of no such names.
-
#outpkts ⇒ Object
No of output packets.
-
#outtoobigs ⇒ Object
No out output too bigs.
-
#outtraps ⇒ Object
No of output traps.
-
#silentdrops ⇒ Object
No of silent drops.
-
#sysuptime ⇒ Object
System uptime.
-
#usmstatsdecryptionerrors ⇒ Object
No.
-
#usmstatsnotintimewindows ⇒ Object
No of stats not in time window.
-
#usmstatsunknownengineids ⇒ Object
No of usm stats unknown engine ids.
-
#usmstatsunknownusernames ⇒ Object
No of usm stats unknown.
-
#usmstatswrongdigests ⇒ Object
No of wrogn digests.
-
#worstresponsetime ⇒ Object
Response time.
-
#worstrtimelast ⇒ Object
Last updated time.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.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 ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ApplianceTechpreviewMonitoringSnmpSNMPStats
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 = {}) ⇒ ApplianceTechpreviewMonitoringSnmpSNMPStats
Initializes the object
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 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 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 163 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'sysuptime') self.sysuptime = attributes[:'sysuptime'] end if attributes.has_key?(:'worstrtimelast') self.worstrtimelast = attributes[:'worstrtimelast'] end if attributes.has_key?(:'avgresponsetime') self.avgresponsetime = attributes[:'avgresponsetime'] end if attributes.has_key?(:'worstresponsetime') self.worstresponsetime = attributes[:'worstresponsetime'] end if attributes.has_key?(:'inpkts') self.inpkts = attributes[:'inpkts'] end if attributes.has_key?(:'outpkts') self.outpkts = attributes[:'outpkts'] end if attributes.has_key?(:'usmstatsnotintimewindows') self.usmstatsnotintimewindows = attributes[:'usmstatsnotintimewindows'] end if attributes.has_key?(:'usmstatsunknownusernames') self.usmstatsunknownusernames = attributes[:'usmstatsunknownusernames'] end if attributes.has_key?(:'usmstatsunknownengineids') self.usmstatsunknownengineids = attributes[:'usmstatsunknownengineids'] end if attributes.has_key?(:'usmstatswrongdigests') self.usmstatswrongdigests = attributes[:'usmstatswrongdigests'] end if attributes.has_key?(:'usmstatsdecryptionerrors') self.usmstatsdecryptionerrors = attributes[:'usmstatsdecryptionerrors'] end if attributes.has_key?(:'inbadversions') self.inbadversions = attributes[:'inbadversions'] end if attributes.has_key?(:'inbadcommunitynames') self.inbadcommunitynames = attributes[:'inbadcommunitynames'] end if attributes.has_key?(:'inbadcommunityuses') self.inbadcommunityuses = attributes[:'inbadcommunityuses'] end if attributes.has_key?(:'inasnparseerrs') self.inasnparseerrs = attributes[:'inasnparseerrs'] end if attributes.has_key?(:'intoobigs') self.intoobigs = attributes[:'intoobigs'] end if attributes.has_key?(:'innosuchnames') self.innosuchnames = attributes[:'innosuchnames'] end if attributes.has_key?(:'inbadvalues') self.inbadvalues = attributes[:'inbadvalues'] end if attributes.has_key?(:'ingenerrs') self.ingenerrs = attributes[:'ingenerrs'] end if attributes.has_key?(:'outtoobigs') self.outtoobigs = attributes[:'outtoobigs'] end if attributes.has_key?(:'outnosuchnames') self.outnosuchnames = attributes[:'outnosuchnames'] end if attributes.has_key?(:'outbadvalues') self.outbadvalues = attributes[:'outbadvalues'] end if attributes.has_key?(:'outgenerrs') self.outgenerrs = attributes[:'outgenerrs'] end if attributes.has_key?(:'outtraps') self.outtraps = attributes[:'outtraps'] end if attributes.has_key?(:'silentdrops') self.silentdrops = attributes[:'silentdrops'] end if attributes.has_key?(:'avgvarbinds') self.avgvarbinds = attributes[:'avgvarbinds'] end if attributes.has_key?(:'maxvarbinds') self.maxvarbinds = attributes[:'maxvarbinds'] end end |
Instance Attribute Details
#avgresponsetime ⇒ Object
Average response time
21 22 23 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 21 def avgresponsetime @avgresponsetime end |
#avgvarbinds ⇒ Object
No of ave:rage var binds
90 91 92 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 90 def avgvarbinds @avgvarbinds end |
#inasnparseerrs ⇒ Object
No of parse errors
57 58 59 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 57 def inasnparseerrs @inasnparseerrs end |
#inbadcommunitynames ⇒ Object
No of bad community names
51 52 53 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 51 def inbadcommunitynames @inbadcommunitynames end |
#inbadcommunityuses ⇒ Object
No of bad community uses
54 55 56 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 54 def inbadcommunityuses @inbadcommunityuses end |
#inbadvalues ⇒ Object
No of bad values
66 67 68 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 66 def inbadvalues @inbadvalues end |
#inbadversions ⇒ Object
No of bad versions
48 49 50 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 48 def inbadversions @inbadversions end |
#ingenerrs ⇒ Object
No of gen errors
69 70 71 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 69 def ingenerrs @ingenerrs end |
#innosuchnames ⇒ Object
No of no such names
63 64 65 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 63 def innosuchnames @innosuchnames end |
#inpkts ⇒ Object
No of input packets
27 28 29 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 27 def inpkts @inpkts end |
#intoobigs ⇒ Object
No of too bigs
60 61 62 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 60 def intoobigs @intoobigs end |
#maxvarbinds ⇒ Object
No of max var binds
93 94 95 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 93 def maxvarbinds @maxvarbinds end |
#outbadvalues ⇒ Object
No of bad values
78 79 80 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 78 def outbadvalues @outbadvalues end |
#outgenerrs ⇒ Object
No of gen errors
81 82 83 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 81 def outgenerrs @outgenerrs end |
#outnosuchnames ⇒ Object
No of no such names
75 76 77 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 75 def outnosuchnames @outnosuchnames end |
#outpkts ⇒ Object
No of output packets
30 31 32 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 30 def outpkts @outpkts end |
#outtoobigs ⇒ Object
No out output too bigs
72 73 74 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 72 def outtoobigs @outtoobigs end |
#outtraps ⇒ Object
No of output traps
84 85 86 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 84 def outtraps @outtraps end |
#silentdrops ⇒ Object
No of silent drops
87 88 89 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 87 def silentdrops @silentdrops end |
#sysuptime ⇒ Object
System uptime
15 16 17 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 15 def sysuptime @sysuptime end |
#usmstatsdecryptionerrors ⇒ Object
No. of decryption errors
45 46 47 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 45 def usmstatsdecryptionerrors @usmstatsdecryptionerrors end |
#usmstatsnotintimewindows ⇒ Object
No of stats not in time window
33 34 35 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 33 def usmstatsnotintimewindows @usmstatsnotintimewindows end |
#usmstatsunknownengineids ⇒ Object
No of usm stats unknown engine ids
39 40 41 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 39 def usmstatsunknownengineids @usmstatsunknownengineids end |
#usmstatsunknownusernames ⇒ Object
No of usm stats unknown
36 37 38 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 36 def usmstatsunknownusernames @usmstatsunknownusernames end |
#usmstatswrongdigests ⇒ Object
No of wrogn digests
42 43 44 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 42 def usmstatswrongdigests @usmstatswrongdigests end |
#worstresponsetime ⇒ Object
Response time
24 25 26 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 24 def worstresponsetime @worstresponsetime end |
#worstrtimelast ⇒ Object
Last updated time
18 19 20 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 18 def worstrtimelast @worstrtimelast end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
96 97 98 99 100 101 102 103 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/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 96 def self.attribute_map { :'sysuptime' => :'sysuptime', :'worstrtimelast' => :'worstrtimelast', :'avgresponsetime' => :'avgresponsetime', :'worstresponsetime' => :'worstresponsetime', :'inpkts' => :'inpkts', :'outpkts' => :'outpkts', :'usmstatsnotintimewindows' => :'usmstatsnotintimewindows', :'usmstatsunknownusernames' => :'usmstatsunknownusernames', :'usmstatsunknownengineids' => :'usmstatsunknownengineids', :'usmstatswrongdigests' => :'usmstatswrongdigests', :'usmstatsdecryptionerrors' => :'usmstatsdecryptionerrors', :'inbadversions' => :'inbadversions', :'inbadcommunitynames' => :'inbadcommunitynames', :'inbadcommunityuses' => :'inbadcommunityuses', :'inasnparseerrs' => :'inasnparseerrs', :'intoobigs' => :'intoobigs', :'innosuchnames' => :'innosuchnames', :'inbadvalues' => :'inbadvalues', :'ingenerrs' => :'ingenerrs', :'outtoobigs' => :'outtoobigs', :'outnosuchnames' => :'outnosuchnames', :'outbadvalues' => :'outbadvalues', :'outgenerrs' => :'outgenerrs', :'outtraps' => :'outtraps', :'silentdrops' => :'silentdrops', :'avgvarbinds' => :'avgvarbinds', :'maxvarbinds' => :'maxvarbinds' } end |
.openapi_types ⇒ Object
Attribute type mapping.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 129 def self.openapi_types { :'sysuptime' => :'String', :'worstrtimelast' => :'String', :'avgresponsetime' => :'String', :'worstresponsetime' => :'String', :'inpkts' => :'Integer', :'outpkts' => :'Integer', :'usmstatsnotintimewindows' => :'Integer', :'usmstatsunknownusernames' => :'Integer', :'usmstatsunknownengineids' => :'Integer', :'usmstatswrongdigests' => :'Integer', :'usmstatsdecryptionerrors' => :'Integer', :'inbadversions' => :'Integer', :'inbadcommunitynames' => :'Integer', :'inbadcommunityuses' => :'Integer', :'inasnparseerrs' => :'Integer', :'intoobigs' => :'Integer', :'innosuchnames' => :'Integer', :'inbadvalues' => :'Integer', :'ingenerrs' => :'Integer', :'outtoobigs' => :'Integer', :'outnosuchnames' => :'Integer', :'outbadvalues' => :'Integer', :'outgenerrs' => :'Integer', :'outtraps' => :'Integer', :'silentdrops' => :'Integer', :'avgvarbinds' => :'Integer', :'maxvarbinds' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 428 def ==(o) return true if self.equal?(o) self.class == o.class && sysuptime == o.sysuptime && worstrtimelast == o.worstrtimelast && avgresponsetime == o.avgresponsetime && worstresponsetime == o.worstresponsetime && inpkts == o.inpkts && outpkts == o.outpkts && usmstatsnotintimewindows == o.usmstatsnotintimewindows && usmstatsunknownusernames == o.usmstatsunknownusernames && usmstatsunknownengineids == o.usmstatsunknownengineids && usmstatswrongdigests == o.usmstatswrongdigests && usmstatsdecryptionerrors == o.usmstatsdecryptionerrors && inbadversions == o.inbadversions && inbadcommunitynames == o.inbadcommunitynames && inbadcommunityuses == o.inbadcommunityuses && inasnparseerrs == o.inasnparseerrs && intoobigs == o.intoobigs && innosuchnames == o.innosuchnames && inbadvalues == o.inbadvalues && ingenerrs == o.ingenerrs && outtoobigs == o.outtoobigs && outnosuchnames == o.outnosuchnames && outbadvalues == o.outbadvalues && outgenerrs == o.outgenerrs && outtraps == o.outtraps && silentdrops == o.silentdrops && avgvarbinds == o.avgvarbinds && maxvarbinds == o.maxvarbinds end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
496 497 498 499 500 501 502 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 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 496 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN, :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 temp_model = VSphereAutomation::Appliance.const_get(type).new temp_model.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
562 563 564 565 566 567 568 569 570 571 572 573 574 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 562 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
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 475 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the 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 # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
462 463 464 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 462 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
468 469 470 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 468 def hash [sysuptime, worstrtimelast, avgresponsetime, worstresponsetime, inpkts, outpkts, usmstatsnotintimewindows, usmstatsunknownusernames, usmstatsunknownengineids, usmstatswrongdigests, usmstatsdecryptionerrors, inbadversions, inbadcommunitynames, inbadcommunityuses, inasnparseerrs, intoobigs, innosuchnames, inbadvalues, ingenerrs, outtoobigs, outnosuchnames, outbadvalues, outgenerrs, outtraps, silentdrops, avgvarbinds, maxvarbinds].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 280 def list_invalid_properties invalid_properties = Array.new if @sysuptime.nil? invalid_properties.push('invalid value for "sysuptime", sysuptime cannot be nil.') end if @worstrtimelast.nil? invalid_properties.push('invalid value for "worstrtimelast", worstrtimelast cannot be nil.') end if @avgresponsetime.nil? invalid_properties.push('invalid value for "avgresponsetime", avgresponsetime cannot be nil.') end if @worstresponsetime.nil? invalid_properties.push('invalid value for "worstresponsetime", worstresponsetime cannot be nil.') end if @inpkts.nil? invalid_properties.push('invalid value for "inpkts", inpkts cannot be nil.') end if @outpkts.nil? invalid_properties.push('invalid value for "outpkts", outpkts cannot be nil.') end if @usmstatsnotintimewindows.nil? invalid_properties.push('invalid value for "usmstatsnotintimewindows", usmstatsnotintimewindows cannot be nil.') end if @usmstatsunknownusernames.nil? invalid_properties.push('invalid value for "usmstatsunknownusernames", usmstatsunknownusernames cannot be nil.') end if @usmstatsunknownengineids.nil? invalid_properties.push('invalid value for "usmstatsunknownengineids", usmstatsunknownengineids cannot be nil.') end if @usmstatswrongdigests.nil? invalid_properties.push('invalid value for "usmstatswrongdigests", usmstatswrongdigests cannot be nil.') end if @usmstatsdecryptionerrors.nil? invalid_properties.push('invalid value for "usmstatsdecryptionerrors", usmstatsdecryptionerrors cannot be nil.') end if @inbadversions.nil? invalid_properties.push('invalid value for "inbadversions", inbadversions cannot be nil.') end if @inbadcommunitynames.nil? invalid_properties.push('invalid value for "inbadcommunitynames", inbadcommunitynames cannot be nil.') end if @inbadcommunityuses.nil? invalid_properties.push('invalid value for "inbadcommunityuses", inbadcommunityuses cannot be nil.') end if @inasnparseerrs.nil? invalid_properties.push('invalid value for "inasnparseerrs", inasnparseerrs cannot be nil.') end if @intoobigs.nil? invalid_properties.push('invalid value for "intoobigs", intoobigs cannot be nil.') end if @innosuchnames.nil? invalid_properties.push('invalid value for "innosuchnames", innosuchnames cannot be nil.') end if @inbadvalues.nil? invalid_properties.push('invalid value for "inbadvalues", inbadvalues cannot be nil.') end if @ingenerrs.nil? invalid_properties.push('invalid value for "ingenerrs", ingenerrs cannot be nil.') end if @outtoobigs.nil? invalid_properties.push('invalid value for "outtoobigs", outtoobigs cannot be nil.') end if @outnosuchnames.nil? invalid_properties.push('invalid value for "outnosuchnames", outnosuchnames cannot be nil.') end if @outbadvalues.nil? invalid_properties.push('invalid value for "outbadvalues", outbadvalues cannot be nil.') end if @outgenerrs.nil? invalid_properties.push('invalid value for "outgenerrs", outgenerrs cannot be nil.') end if @outtraps.nil? invalid_properties.push('invalid value for "outtraps", outtraps cannot be nil.') end if @silentdrops.nil? invalid_properties.push('invalid value for "silentdrops", silentdrops cannot be nil.') end if @avgvarbinds.nil? invalid_properties.push('invalid value for "avgvarbinds", avgvarbinds cannot be nil.') end if @maxvarbinds.nil? invalid_properties.push('invalid value for "maxvarbinds", maxvarbinds cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
542 543 544 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 542 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
548 549 550 551 552 553 554 555 556 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 548 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
536 537 538 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 536 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
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 |
# File 'lib/vsphere-automation-appliance/models/appliance_techpreview_monitoring_snmp_snmp_stats.rb', line 395 def valid? return false if @sysuptime.nil? return false if @worstrtimelast.nil? return false if @avgresponsetime.nil? return false if @worstresponsetime.nil? return false if @inpkts.nil? return false if @outpkts.nil? return false if @usmstatsnotintimewindows.nil? return false if @usmstatsunknownusernames.nil? return false if @usmstatsunknownengineids.nil? return false if @usmstatswrongdigests.nil? return false if @usmstatsdecryptionerrors.nil? return false if @inbadversions.nil? return false if @inbadcommunitynames.nil? return false if @inbadcommunityuses.nil? return false if @inasnparseerrs.nil? return false if @intoobigs.nil? return false if @innosuchnames.nil? return false if @inbadvalues.nil? return false if @ingenerrs.nil? return false if @outtoobigs.nil? return false if @outnosuchnames.nil? return false if @outbadvalues.nil? return false if @outgenerrs.nil? return false if @outtraps.nil? return false if @silentdrops.nil? return false if @avgvarbinds.nil? return false if @maxvarbinds.nil? true end |