Class: UntitledApi::InternalTuntermsConfigResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalTuntermsConfigResponse
- Defined in:
- lib/untitled_api/models/internal_tunterms_config_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#cluster_id ⇒ Object
TODO: Write general description for this method.
-
#dpdk ⇒ Object
TODO: Write general description for this method.
-
#errors ⇒ Object
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#l2_tp_listeners ⇒ Object
TODO: Write general description for this method.
-
#l2_tp_tunnels ⇒ Object
TODO: Write general description for this method.
-
#monitored_resources ⇒ Object
TODO: Write general description for this method.
-
#mx_edge_id ⇒ String
TODO: Write general description for this method.
-
#new_id ⇒ String
TODO: Write general description for this method.
-
#org_id ⇒ String
TODO: Write general description for this method.
-
#our_ou_is ⇒ Object
TODO: Write general description for this method.
-
#routes ⇒ Object
TODO: Write general description for this method.
-
#site_id ⇒ String
TODO: Write general description for this method.
-
#stats ⇒ Object
TODO: Write general description for this method.
-
#sv_is ⇒ Object
TODO: Write general description for this method.
-
#switch_ports ⇒ Object
TODO: Write general description for this method.
-
#timestamp ⇒ Float
TODO: Write general description for this method.
-
#vlan_names ⇒ Object
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(stats = SKIP, our_ou_is = SKIP, l2_tp_tunnels = SKIP, l2_tp_listeners = SKIP, switch_ports = SKIP, vlan_names = SKIP, routes = SKIP, sv_is = SKIP, dpdk = SKIP, id = SKIP, cluster_id = SKIP, timestamp = SKIP, org_id = SKIP, site_id = SKIP, errors = SKIP, mx_edge_id = SKIP, new_id = SKIP, monitored_resources = SKIP) ⇒ InternalTuntermsConfigResponse
constructor
A new instance of InternalTuntermsConfigResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(stats = SKIP, our_ou_is = SKIP, l2_tp_tunnels = SKIP, l2_tp_listeners = SKIP, switch_ports = SKIP, vlan_names = SKIP, routes = SKIP, sv_is = SKIP, dpdk = SKIP, id = SKIP, cluster_id = SKIP, timestamp = SKIP, org_id = SKIP, site_id = SKIP, errors = SKIP, mx_edge_id = SKIP, new_id = SKIP, monitored_resources = SKIP) ⇒ InternalTuntermsConfigResponse
Returns a new instance of InternalTuntermsConfigResponse.
137 138 139 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 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 137 def initialize(stats = SKIP, our_ou_is = SKIP, l2_tp_tunnels = SKIP, l2_tp_listeners = SKIP, switch_ports = SKIP, vlan_names = SKIP, routes = SKIP, sv_is = SKIP, dpdk = SKIP, id = SKIP, cluster_id = SKIP, = SKIP, org_id = SKIP, site_id = SKIP, errors = SKIP, mx_edge_id = SKIP, new_id = SKIP, monitored_resources = SKIP) @stats = stats unless stats == SKIP @our_ou_is = our_ou_is unless our_ou_is == SKIP @l2_tp_tunnels = l2_tp_tunnels unless l2_tp_tunnels == SKIP @l2_tp_listeners = l2_tp_listeners unless l2_tp_listeners == SKIP @switch_ports = switch_ports unless switch_ports == SKIP @vlan_names = vlan_names unless vlan_names == SKIP @routes = routes unless routes == SKIP @sv_is = sv_is unless sv_is == SKIP @dpdk = dpdk unless dpdk == SKIP @id = id unless id == SKIP @cluster_id = cluster_id unless cluster_id == SKIP @timestamp = unless == SKIP @org_id = org_id unless org_id == SKIP @site_id = site_id unless site_id == SKIP @errors = errors unless errors == SKIP @mx_edge_id = mx_edge_id unless mx_edge_id == SKIP @new_id = new_id unless new_id == SKIP @monitored_resources = monitored_resources unless monitored_resources == SKIP end |
Instance Attribute Details
#cluster_id ⇒ Object
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 54 def cluster_id @cluster_id end |
#dpdk ⇒ Object
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 46 def dpdk @dpdk end |
#errors ⇒ Object
TODO: Write general description for this method
70 71 72 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 70 def errors @errors end |
#id ⇒ String
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 50 def id @id end |
#l2_tp_listeners ⇒ Object
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 26 def l2_tp_listeners @l2_tp_listeners end |
#l2_tp_tunnels ⇒ Object
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 22 def l2_tp_tunnels @l2_tp_tunnels end |
#monitored_resources ⇒ Object
TODO: Write general description for this method
82 83 84 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 82 def monitored_resources @monitored_resources end |
#mx_edge_id ⇒ String
TODO: Write general description for this method
74 75 76 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 74 def mx_edge_id @mx_edge_id end |
#new_id ⇒ String
TODO: Write general description for this method
78 79 80 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 78 def new_id @new_id end |
#org_id ⇒ String
TODO: Write general description for this method
62 63 64 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 62 def org_id @org_id end |
#our_ou_is ⇒ Object
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 18 def our_ou_is @our_ou_is end |
#routes ⇒ Object
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 38 def routes @routes end |
#site_id ⇒ String
TODO: Write general description for this method
66 67 68 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 66 def site_id @site_id end |
#stats ⇒ Object
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 14 def stats @stats end |
#sv_is ⇒ Object
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 42 def sv_is @sv_is end |
#switch_ports ⇒ Object
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 30 def switch_ports @switch_ports end |
#timestamp ⇒ Float
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 58 def @timestamp end |
#vlan_names ⇒ Object
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 34 def vlan_names @vlan_names end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 176 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. stats = hash.key?('Stats') ? hash['Stats'] : SKIP our_ou_is = hash.key?('OurOUIs') ? hash['OurOUIs'] : SKIP l2_tp_tunnels = hash.key?('L2TPTunnels') ? hash['L2TPTunnels'] : SKIP l2_tp_listeners = hash.key?('L2TPListeners') ? hash['L2TPListeners'] : SKIP switch_ports = hash.key?('SwitchPorts') ? hash['SwitchPorts'] : SKIP vlan_names = hash.key?('VLANNames') ? hash['VLANNames'] : SKIP routes = hash.key?('Routes') ? hash['Routes'] : SKIP sv_is = hash.key?('SVIs') ? hash['SVIs'] : SKIP dpdk = hash.key?('DPDK') ? hash['DPDK'] : SKIP id = hash.key?('ID') ? hash['ID'] : SKIP cluster_id = hash.key?('ClusterID') ? hash['ClusterID'] : SKIP = hash.key?('Timestamp') ? hash['Timestamp'] : SKIP org_id = hash.key?('OrgID') ? hash['OrgID'] : SKIP site_id = hash.key?('SiteID') ? hash['SiteID'] : SKIP errors = hash.key?('_errors') ? hash['_errors'] : SKIP mx_edge_id = hash.key?('MXEdgeID') ? hash['MXEdgeID'] : SKIP new_id = hash.key?('NewID') ? hash['NewID'] : SKIP monitored_resources = hash.key?('MonitoredResources') ? hash['MonitoredResources'] : SKIP # Create object from extracted values. InternalTuntermsConfigResponse.new(stats, our_ou_is, l2_tp_tunnels, l2_tp_listeners, switch_ports, vlan_names, routes, sv_is, dpdk, id, cluster_id, , org_id, site_id, errors, mx_edge_id, new_id, monitored_resources) end |
.names ⇒ Object
A mapping from model property names to API property names.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 85 def self.names @_hash = {} if @_hash.nil? @_hash['stats'] = 'Stats' @_hash['our_ou_is'] = 'OurOUIs' @_hash['l2_tp_tunnels'] = 'L2TPTunnels' @_hash['l2_tp_listeners'] = 'L2TPListeners' @_hash['switch_ports'] = 'SwitchPorts' @_hash['vlan_names'] = 'VLANNames' @_hash['routes'] = 'Routes' @_hash['sv_is'] = 'SVIs' @_hash['dpdk'] = 'DPDK' @_hash['id'] = 'ID' @_hash['cluster_id'] = 'ClusterID' @_hash['timestamp'] = 'Timestamp' @_hash['org_id'] = 'OrgID' @_hash['site_id'] = 'SiteID' @_hash['errors'] = '_errors' @_hash['mx_edge_id'] = 'MXEdgeID' @_hash['new_id'] = 'NewID' @_hash['monitored_resources'] = 'MonitoredResources' @_hash end |
.nullables ⇒ Object
An array for nullable fields
133 134 135 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 133 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/untitled_api/models/internal_tunterms_config_response.rb', line 109 def self.optionals %w[ stats our_ou_is l2_tp_tunnels l2_tp_listeners switch_ports vlan_names routes sv_is dpdk id cluster_id timestamp org_id site_id errors mx_edge_id new_id monitored_resources ] end |