Class: UntitledApi::ApiV1SitesSettingDerivedResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/api_v1_sites_setting_derived_response.rb

Overview

Response data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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,
               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)
  @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 = acl_tags unless acl_tags == 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 = tags unless tags == SKIP
  @gateway_mgmt = gateway_mgmt unless gateway_mgmt == SKIP
end

Instance Attribute Details

#acl_tagsObject

TODO: Write general description for this method

Returns:

  • (Object)


46
47
48
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 46

def acl_tags
  @acl_tags
end

#auto_upgradeObject

TODO: Write general description for this method

Returns:

  • (Object)


30
31
32
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 30

def auto_upgrade
  @auto_upgrade
end

#country_codeString

TODO: Write general description for this method

Returns:

  • (String)


34
35
36
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 34

def country_code
  @country_code
end

#created_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


74
75
76
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 74

def created_time
  @created_time
end

#for_siteObject

TODO: Write general description for this method

Returns:

  • (Object)


62
63
64
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 62

def for_site
  @for_site
end

#gateway_mgmtObject

TODO: Write general description for this method

Returns:

  • (Object)


86
87
88
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 86

def gateway_mgmt
  @gateway_mgmt
end

#idString

TODO: Write general description for this method

Returns:

  • (String)


58
59
60
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 58

def id
  @id
end

#modified_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


78
79
80
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 78

def modified_time
  @modified_time
end

#networksObject

TODO: Write general description for this method

Returns:

  • (Object)


18
19
20
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 18

def networks
  @networks
end

#networktemplate_idString

TODO: Write general description for this method

Returns:

  • (String)


50
51
52
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 50

def networktemplate_id
  @networktemplate_id
end

#networktemplate_nameString

TODO: Write general description for this method

Returns:

  • (String)


54
55
56
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 54

def networktemplate_name
  @networktemplate_name
end

#org_idString

TODO: Write general description for this method

Returns:

  • (String)


70
71
72
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 70

def org_id
  @org_id
end

#port_usagesObject

TODO: Write general description for this method

Returns:

  • (Object)


14
15
16
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 14

def port_usages
  @port_usages
end

#radius_configObject

TODO: Write general description for this method

Returns:

  • (Object)


22
23
24
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 22

def radius_config
  @radius_config
end

#site_idString

TODO: Write general description for this method

Returns:

  • (String)


66
67
68
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 66

def site_id
  @site_id
end

#switch_matchingObject

TODO: Write general description for this method

Returns:

  • (Object)


26
27
28
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 26

def switch_matching
  @switch_matching
end

#switch_mgmtObject

TODO: Write general description for this method

Returns:

  • (Object)


42
43
44
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 42

def switch_mgmt
  @switch_mgmt
end

#tagsObject

TODO: Write general description for this method

Returns:

  • (Object)


82
83
84
# File 'lib/untitled_api/models/api_v1_sites_setting_derived_response.rb', line 82

def tags
  @tags
end

#vrf_instancesObject

TODO: Write general description for this method

Returns:

  • (Object)


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
  acl_tags = 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
  tags = 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,
                                       acl_tags,
                                       networktemplate_id,
                                       networktemplate_name,
                                       id,
                                       for_site,
                                       site_id,
                                       org_id,
                                       created_time,
                                       modified_time,
                                       tags,
                                       gateway_mgmt)
end

.namesObject

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

.nullablesObject

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

.optionalsObject

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