Class: UntitledApi::ApiV1SitesSettingDerivedResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1SitesSettingDerivedResponse
- Defined in:
- lib/untitled_api/models/api_v1_sites_setting_derived_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#acl_tags ⇒ Object
TODO: Write general description for this method.
-
#auto_upgrade ⇒ Object
TODO: Write general description for this method.
-
#country_code ⇒ String
TODO: Write general description for this method.
-
#created_time ⇒ Float
TODO: Write general description for this method.
-
#for_site ⇒ Object
TODO: Write general description for this method.
-
#gateway_mgmt ⇒ Object
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#modified_time ⇒ Float
TODO: Write general description for this method.
-
#networks ⇒ Object
TODO: Write general description for this method.
-
#networktemplate_id ⇒ String
TODO: Write general description for this method.
-
#networktemplate_name ⇒ String
TODO: Write general description for this method.
-
#org_id ⇒ String
TODO: Write general description for this method.
-
#port_usages ⇒ Object
TODO: Write general description for this method.
-
#radius_config ⇒ Object
TODO: Write general description for this method.
-
#site_id ⇒ String
TODO: Write general description for this method.
-
#switch_matching ⇒ Object
TODO: Write general description for this method.
-
#switch_mgmt ⇒ Object
TODO: Write general description for this method.
-
#tags ⇒ Object
TODO: Write general description for this method.
-
#vrf_instances ⇒ 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(port_usages = SKIP, networks = SKIP, radius_config = SKIP, switch_matching = SKIP, auto_upgrade = SKIP, country_code = SKIP, vrf_instances = SKIP, switch_mgmt = SKIP, acl_tags = SKIP, networktemplate_id = SKIP, networktemplate_name = SKIP, id = SKIP, for_site = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, tags = SKIP, gateway_mgmt = SKIP) ⇒ ApiV1SitesSettingDerivedResponse
constructor
A new instance of ApiV1SitesSettingDerivedResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(port_usages = SKIP, networks = SKIP, radius_config = SKIP, switch_matching = SKIP, auto_upgrade = SKIP, country_code = SKIP, vrf_instances = SKIP, switch_mgmt = SKIP, acl_tags = SKIP, networktemplate_id = SKIP, networktemplate_name = SKIP, id = SKIP, for_site = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, tags = SKIP, gateway_mgmt = SKIP) ⇒ ApiV1SitesSettingDerivedResponse
Returns a new instance of ApiV1SitesSettingDerivedResponse.
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 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 143 def initialize(port_usages = SKIP, networks = SKIP, radius_config = SKIP, switch_matching = SKIP, auto_upgrade = SKIP, country_code = SKIP, vrf_instances = SKIP, switch_mgmt = SKIP, = SKIP, networktemplate_id = SKIP, networktemplate_name = SKIP, id = SKIP, for_site = SKIP, site_id = SKIP, org_id = SKIP, created_time = SKIP, modified_time = SKIP, = SKIP, gateway_mgmt = SKIP) @port_usages = port_usages unless port_usages == SKIP @networks = networks unless networks == SKIP @radius_config = radius_config unless radius_config == SKIP @switch_matching = switch_matching unless switch_matching == SKIP @auto_upgrade = auto_upgrade unless auto_upgrade == SKIP @country_code = country_code unless country_code == SKIP @vrf_instances = vrf_instances unless vrf_instances == SKIP @switch_mgmt = switch_mgmt unless switch_mgmt == SKIP @acl_tags = unless == SKIP @networktemplate_id = networktemplate_id unless networktemplate_id == SKIP @networktemplate_name = networktemplate_name unless networktemplate_name == SKIP @id = id unless id == SKIP @for_site = for_site unless for_site == 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 @tags = unless == SKIP @gateway_mgmt = gateway_mgmt unless gateway_mgmt == SKIP end |
Instance Attribute Details
#acl_tags ⇒ Object
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 46 def @acl_tags end |
#auto_upgrade ⇒ Object
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 30 def auto_upgrade @auto_upgrade end |
#country_code ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 34 def country_code @country_code end |
#created_time ⇒ Float
TODO: Write general description for this method
74 75 76 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 74 def created_time @created_time end |
#for_site ⇒ Object
TODO: Write general description for this method
62 63 64 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 62 def for_site @for_site end |
#gateway_mgmt ⇒ Object
TODO: Write general description for this method
86 87 88 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 86 def gateway_mgmt @gateway_mgmt end |
#id ⇒ String
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 58 def id @id end |
#modified_time ⇒ Float
TODO: Write general description for this method
78 79 80 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 78 def modified_time @modified_time end |
#networks ⇒ Object
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 18 def networks @networks end |
#networktemplate_id ⇒ String
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 50 def networktemplate_id @networktemplate_id end |
#networktemplate_name ⇒ String
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 54 def networktemplate_name @networktemplate_name end |
#org_id ⇒ String
TODO: Write general description for this method
70 71 72 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 70 def org_id @org_id end |
#port_usages ⇒ Object
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 14 def port_usages @port_usages end |
#radius_config ⇒ Object
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 22 def radius_config @radius_config end |
#site_id ⇒ String
TODO: Write general description for this method
66 67 68 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 66 def site_id @site_id end |
#switch_matching ⇒ Object
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 26 def switch_matching @switch_matching end |
#switch_mgmt ⇒ Object
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 42 def switch_mgmt @switch_mgmt end |
#tags ⇒ Object
TODO: Write general description for this method
82 83 84 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 82 def @tags end |
#vrf_instances ⇒ Object
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 38 def vrf_instances @vrf_instances end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 184 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. port_usages = hash.key?('port_usages') ? hash['port_usages'] : SKIP networks = hash.key?('networks') ? hash['networks'] : SKIP radius_config = hash.key?('radius_config') ? hash['radius_config'] : SKIP switch_matching = hash.key?('switch_matching') ? hash['switch_matching'] : SKIP auto_upgrade = hash.key?('auto_upgrade') ? hash['auto_upgrade'] : SKIP country_code = hash.key?('country_code') ? hash['country_code'] : SKIP vrf_instances = hash.key?('vrf_instances') ? hash['vrf_instances'] : SKIP switch_mgmt = hash.key?('switch_mgmt') ? hash['switch_mgmt'] : SKIP = hash.key?('acl_tags') ? hash['acl_tags'] : SKIP networktemplate_id = hash.key?('networktemplate_id') ? hash['networktemplate_id'] : SKIP networktemplate_name = hash.key?('networktemplate_name') ? hash['networktemplate_name'] : SKIP id = hash.key?('id') ? hash['id'] : SKIP for_site = hash.key?('for_site') ? hash['for_site'] : 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 = hash.key?('tags') ? hash['tags'] : SKIP gateway_mgmt = hash.key?('gateway_mgmt') ? hash['gateway_mgmt'] : SKIP # Create object from extracted values. ApiV1SitesSettingDerivedResponse.new(port_usages, networks, radius_config, switch_matching, auto_upgrade, country_code, vrf_instances, switch_mgmt, , networktemplate_id, networktemplate_name, id, for_site, site_id, org_id, created_time, modified_time, , gateway_mgmt) end |
.names ⇒ Object
A mapping from model property names to API property names.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 89 def self.names @_hash = {} if @_hash.nil? @_hash['port_usages'] = 'port_usages' @_hash['networks'] = 'networks' @_hash['radius_config'] = 'radius_config' @_hash['switch_matching'] = 'switch_matching' @_hash['auto_upgrade'] = 'auto_upgrade' @_hash['country_code'] = 'country_code' @_hash['vrf_instances'] = 'vrf_instances' @_hash['switch_mgmt'] = 'switch_mgmt' @_hash['acl_tags'] = 'acl_tags' @_hash['networktemplate_id'] = 'networktemplate_id' @_hash['networktemplate_name'] = 'networktemplate_name' @_hash['id'] = 'id' @_hash['for_site'] = 'for_site' @_hash['site_id'] = 'site_id' @_hash['org_id'] = 'org_id' @_hash['created_time'] = 'created_time' @_hash['modified_time'] = 'modified_time' @_hash['tags'] = 'tags' @_hash['gateway_mgmt'] = 'gateway_mgmt' @_hash end |
.nullables ⇒ Object
An array for nullable fields
139 140 141 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 139 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 114 def self.optionals %w[ port_usages networks radius_config switch_matching auto_upgrade country_code vrf_instances switch_mgmt acl_tags networktemplate_id networktemplate_name id for_site site_id org_id created_time modified_time tags gateway_mgmt ] end |