Class: UntitledApi::InternalOrgsOpenconfigJoinedApsResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalOrgsOpenconfigJoinedApsResponse
- Defined in:
- lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#cc ⇒ String
TODO: Write general description for this method.
-
#enabled ⇒ Object
TODO: Write general description for this method.
-
#hostname ⇒ String
TODO: Write general description for this method.
-
#ipv4 ⇒ String
TODO: Write general description for this method.
-
#ipv6 ⇒ String
TODO: Write general description for this method.
-
#mac ⇒ String
TODO: Write general description for this method.
-
#model ⇒ String
TODO: Write general description for this method.
-
#opstate ⇒ String
TODO: Write general description for this method.
-
#power_src ⇒ String
TODO: Write general description for this method.
-
#serial ⇒ String
TODO: Write general description for this method.
-
#uptime ⇒ Float
TODO: Write general description for this method.
-
#version ⇒ String
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(mac = SKIP, hostname = SKIP, cc = SKIP, opstate = SKIP, uptime = SKIP, enabled = SKIP, serial = SKIP, model = SKIP, version = SKIP, power_src = SKIP, ipv4 = SKIP, ipv6 = SKIP) ⇒ InternalOrgsOpenconfigJoinedApsResponse
constructor
A new instance of InternalOrgsOpenconfigJoinedApsResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(mac = SKIP, hostname = SKIP, cc = SKIP, opstate = SKIP, uptime = SKIP, enabled = SKIP, serial = SKIP, model = SKIP, version = SKIP, power_src = SKIP, ipv4 = SKIP, ipv6 = SKIP) ⇒ InternalOrgsOpenconfigJoinedApsResponse
Returns a new instance of InternalOrgsOpenconfigJoinedApsResponse.
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 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 101 def initialize(mac = SKIP, hostname = SKIP, cc = SKIP, opstate = SKIP, uptime = SKIP, enabled = SKIP, serial = SKIP, model = SKIP, version = SKIP, power_src = SKIP, ipv4 = SKIP, ipv6 = SKIP) @mac = mac unless mac == SKIP @hostname = hostname unless hostname == SKIP @cc = cc unless cc == SKIP @opstate = opstate unless opstate == SKIP @uptime = uptime unless uptime == SKIP @enabled = enabled unless enabled == SKIP @serial = serial unless serial == SKIP @model = model unless model == SKIP @version = version unless version == SKIP @power_src = power_src unless power_src == SKIP @ipv4 = ipv4 unless ipv4 == SKIP @ipv6 = ipv6 unless ipv6 == SKIP end |
Instance Attribute Details
#cc ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 22 def cc @cc end |
#enabled ⇒ Object
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 34 def enabled @enabled end |
#hostname ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 18 def hostname @hostname end |
#ipv4 ⇒ String
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 54 def ipv4 @ipv4 end |
#ipv6 ⇒ String
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 58 def ipv6 @ipv6 end |
#mac ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 14 def mac @mac end |
#model ⇒ String
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 42 def model @model end |
#opstate ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 26 def opstate @opstate end |
#power_src ⇒ String
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 50 def power_src @power_src end |
#serial ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 38 def serial @serial end |
#uptime ⇒ Float
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 30 def uptime @uptime end |
#version ⇒ String
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 46 def version @version end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
128 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 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 128 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. mac = hash.key?('mac') ? hash['mac'] : SKIP hostname = hash.key?('hostname') ? hash['hostname'] : SKIP cc = hash.key?('cc') ? hash['cc'] : SKIP opstate = hash.key?('opstate') ? hash['opstate'] : SKIP uptime = hash.key?('uptime') ? hash['uptime'] : SKIP enabled = hash.key?('enabled') ? hash['enabled'] : SKIP serial = hash.key?('serial') ? hash['serial'] : SKIP model = hash.key?('model') ? hash['model'] : SKIP version = hash.key?('version') ? hash['version'] : SKIP power_src = hash.key?('power_src') ? hash['power_src'] : SKIP ipv4 = hash.key?('ipv4') ? hash['ipv4'] : SKIP ipv6 = hash.key?('ipv6') ? hash['ipv6'] : SKIP # Create object from extracted values. InternalOrgsOpenconfigJoinedApsResponse.new(mac, hostname, cc, opstate, uptime, enabled, serial, model, version, power_src, ipv4, ipv6) end |
.names ⇒ Object
A mapping from model property names to API property names.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 61 def self.names @_hash = {} if @_hash.nil? @_hash['mac'] = 'mac' @_hash['hostname'] = 'hostname' @_hash['cc'] = 'cc' @_hash['opstate'] = 'opstate' @_hash['uptime'] = 'uptime' @_hash['enabled'] = 'enabled' @_hash['serial'] = 'serial' @_hash['model'] = 'model' @_hash['version'] = 'version' @_hash['power_src'] = 'power_src' @_hash['ipv4'] = 'ipv4' @_hash['ipv6'] = 'ipv6' @_hash end |
.nullables ⇒ Object
An array for nullable fields
97 98 99 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 97 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/untitled_api/models/internal_orgs_openconfig_joined_aps_response.rb', line 79 def self.optionals %w[ mac hostname cc opstate uptime enabled serial model version power_src ipv4 ipv6 ] end |