Class: UntitledApi::InternalDevicesBssidResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalDevicesBssidResponse
- Defined in:
- lib/untitled_api/models/internal_devices_bssid_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#created_time ⇒ Float
TODO: Write general description for this method.
-
#deviceprofile_id ⇒ Object
TODO: Write general description for this method.
-
#evpn_scope ⇒ Object
TODO: Write general description for this method.
-
#evpntopo_id ⇒ Object
TODO: Write general description for this method.
-
#hw_rev ⇒ String
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#mac ⇒ String
TODO: Write general description for this method.
-
#map_id ⇒ String
TODO: Write general description for this method.
-
#model ⇒ String
TODO: Write general description for this method.
-
#modified_time ⇒ Float
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
-
#org_id ⇒ String
TODO: Write general description for this method.
-
#serial ⇒ String
TODO: Write general description for this method.
-
#site_id ⇒ String
TODO: Write general description for this method.
-
#st_ip_base ⇒ String
TODO: Write general description for this method.
-
#tag_id ⇒ Float
TODO: Write general description for this method.
-
#tag_uuid ⇒ String
TODO: Write general description for this method.
-
#type ⇒ String
TODO: Write general description for this method.
-
#x ⇒ Float
TODO: Write general description for this method.
-
#x_m ⇒ Float
TODO: Write general description for this method.
-
#y ⇒ Float
TODO: Write general description for this method.
-
#y_m ⇒ Float
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(x = SKIP, y = SKIP, x_m = SKIP, y_m = SKIP, id = SKIP, name = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, map_id = SKIP, mac = SKIP, serial = SKIP, model = SKIP, hw_rev = SKIP, type = SKIP, tag_uuid = SKIP, tag_id = SKIP, evpn_scope = SKIP, evpntopo_id = SKIP, st_ip_base = SKIP, deviceprofile_id = SKIP) ⇒ InternalDevicesBssidResponse
constructor
A new instance of InternalDevicesBssidResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(x = SKIP, y = SKIP, x_m = SKIP, y_m = SKIP, id = SKIP, name = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, map_id = SKIP, mac = SKIP, serial = SKIP, model = SKIP, hw_rev = SKIP, type = SKIP, tag_uuid = SKIP, tag_id = SKIP, evpn_scope = SKIP, evpntopo_id = SKIP, st_ip_base = SKIP, deviceprofile_id = SKIP) ⇒ InternalDevicesBssidResponse
Returns a new instance of InternalDevicesBssidResponse.
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 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 161 def initialize(x = SKIP, y = SKIP, x_m = SKIP, y_m = SKIP, id = SKIP, name = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, map_id = SKIP, mac = SKIP, serial = SKIP, model = SKIP, hw_rev = SKIP, type = SKIP, tag_uuid = SKIP, tag_id = SKIP, evpn_scope = SKIP, evpntopo_id = SKIP, st_ip_base = SKIP, deviceprofile_id = SKIP) @x = x unless x == SKIP @y = y unless y == SKIP @x_m = x_m unless x_m == SKIP @y_m = y_m unless y_m == SKIP @id = id unless id == SKIP @name = name unless name == SKIP @site_id = site_id unless site_id == SKIP @org_id = org_id unless org_id == SKIP @created_time = created_time unless created_time == SKIP @modified_time = modified_time unless modified_time == SKIP @map_id = map_id unless map_id == SKIP @mac = mac unless mac == SKIP @serial = serial unless serial == SKIP @model = model unless model == SKIP @hw_rev = hw_rev unless hw_rev == SKIP @type = type unless type == SKIP @tag_uuid = tag_uuid unless tag_uuid == SKIP @tag_id = tag_id unless tag_id == SKIP @evpn_scope = evpn_scope unless evpn_scope == SKIP @evpntopo_id = evpntopo_id unless evpntopo_id == SKIP @st_ip_base = st_ip_base unless st_ip_base == SKIP @deviceprofile_id = deviceprofile_id unless deviceprofile_id == SKIP end |
Instance Attribute Details
#created_time ⇒ Float
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 46 def created_time @created_time end |
#deviceprofile_id ⇒ Object
TODO: Write general description for this method
98 99 100 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 98 def deviceprofile_id @deviceprofile_id end |
#evpn_scope ⇒ Object
TODO: Write general description for this method
86 87 88 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 86 def evpn_scope @evpn_scope end |
#evpntopo_id ⇒ Object
TODO: Write general description for this method
90 91 92 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 90 def evpntopo_id @evpntopo_id end |
#hw_rev ⇒ String
TODO: Write general description for this method
70 71 72 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 70 def hw_rev @hw_rev end |
#id ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 30 def id @id end |
#mac ⇒ String
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 58 def mac @mac end |
#map_id ⇒ String
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 54 def map_id @map_id end |
#model ⇒ String
TODO: Write general description for this method
66 67 68 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 66 def model @model end |
#modified_time ⇒ Float
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 50 def modified_time @modified_time end |
#name ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 34 def name @name end |
#org_id ⇒ String
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 42 def org_id @org_id end |
#serial ⇒ String
TODO: Write general description for this method
62 63 64 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 62 def serial @serial end |
#site_id ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 38 def site_id @site_id end |
#st_ip_base ⇒ String
TODO: Write general description for this method
94 95 96 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 94 def st_ip_base @st_ip_base end |
#tag_id ⇒ Float
TODO: Write general description for this method
82 83 84 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 82 def tag_id @tag_id end |
#tag_uuid ⇒ String
TODO: Write general description for this method
78 79 80 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 78 def tag_uuid @tag_uuid end |
#type ⇒ String
TODO: Write general description for this method
74 75 76 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 74 def type @type end |
#x ⇒ Float
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 14 def x @x end |
#x_m ⇒ Float
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 22 def x_m @x_m end |
#y ⇒ Float
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 18 def y @y end |
#y_m ⇒ Float
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 26 def y_m @y_m end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 208 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. x = hash.key?('x') ? hash['x'] : SKIP y = hash.key?('y') ? hash['y'] : SKIP x_m = hash.key?('x_m') ? hash['x_m'] : SKIP y_m = hash.key?('y_m') ? hash['y_m'] : SKIP id = hash.key?('id') ? hash['id'] : SKIP name = hash.key?('name') ? hash['name'] : SKIP site_id = hash.key?('site_id') ? hash['site_id'] : SKIP org_id = hash.key?('org_id') ? hash['org_id'] : SKIP created_time = hash.key?('created_time') ? hash['created_time'] : SKIP modified_time = hash.key?('modified_time') ? hash['modified_time'] : SKIP map_id = hash.key?('map_id') ? hash['map_id'] : SKIP mac = hash.key?('mac') ? hash['mac'] : SKIP serial = hash.key?('serial') ? hash['serial'] : SKIP model = hash.key?('model') ? hash['model'] : SKIP hw_rev = hash.key?('hw_rev') ? hash['hw_rev'] : SKIP type = hash.key?('type') ? hash['type'] : SKIP tag_uuid = hash.key?('tag_uuid') ? hash['tag_uuid'] : SKIP tag_id = hash.key?('tag_id') ? hash['tag_id'] : SKIP evpn_scope = hash.key?('evpn_scope') ? hash['evpn_scope'] : SKIP evpntopo_id = hash.key?('evpntopo_id') ? hash['evpntopo_id'] : SKIP st_ip_base = hash.key?('st_ip_base') ? hash['st_ip_base'] : SKIP deviceprofile_id = hash.key?('deviceprofile_id') ? hash['deviceprofile_id'] : SKIP # Create object from extracted values. InternalDevicesBssidResponse.new(x, y, x_m, y_m, id, name, site_id, org_id, created_time, modified_time, map_id, mac, serial, model, hw_rev, type, tag_uuid, tag_id, evpn_scope, evpntopo_id, st_ip_base, deviceprofile_id) end |
.names ⇒ Object
A mapping from model property names to API property names.
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/untitled_api/models/internal_devices_bssid_response.rb', line 101 def self.names @_hash = {} if @_hash.nil? @_hash['x'] = 'x' @_hash['y'] = 'y' @_hash['x_m'] = 'x_m' @_hash['y_m'] = 'y_m' @_hash['id'] = 'id' @_hash['name'] = 'name' @_hash['site_id'] = 'site_id' @_hash['org_id'] = 'org_id' @_hash['created_time'] = 'created_time' @_hash['modified_time'] = 'modified_time' @_hash['map_id'] = 'map_id' @_hash['mac'] = 'mac' @_hash['serial'] = 'serial' @_hash['model'] = 'model' @_hash['hw_rev'] = 'hw_rev' @_hash['type'] = 'type' @_hash['tag_uuid'] = 'tag_uuid' @_hash['tag_id'] = 'tag_id' @_hash['evpn_scope'] = 'evpn_scope' @_hash['evpntopo_id'] = 'evpntopo_id' @_hash['st_ip_base'] = 'st_ip_base' @_hash['deviceprofile_id'] = 'deviceprofile_id' @_hash end |
.nullables ⇒ Object
An array for nullable fields
157 158 159 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 157 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
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 |
# File 'lib/untitled_api/models/internal_devices_bssid_response.rb', line 129 def self.optionals %w[ x y x_m y_m id name site_id org_id created_time modified_time map_id mac serial model hw_rev type tag_uuid tag_id evpn_scope evpntopo_id st_ip_base deviceprofile_id ] end |