Class: UntitledApi::ApiV1OrgsPskportalsRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1OrgsPskportalsRequest
- Defined in:
- lib/untitled_api/models/api_v1_orgs_pskportals_request.rb
Overview
Request parameters
Instance Attribute Summary collapse
-
#auth ⇒ String
TODO: Write general description for this method.
-
#expire_time ⇒ Float
TODO: Write general description for this method.
-
#max_usage ⇒ Float
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
-
#ssid ⇒ String
TODO: Write general description for this method.
-
#sso ⇒ Object
TODO: Write general description for this method.
-
#type ⇒ String
TODO: Write general description for this method.
-
#vlan_id ⇒ 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(name = SKIP, ssid = SKIP, type = SKIP, auth = SKIP, sso = SKIP, expire_time = SKIP, max_usage = SKIP, vlan_id = SKIP) ⇒ ApiV1OrgsPskportalsRequest
constructor
A new instance of ApiV1OrgsPskportalsRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(name = SKIP, ssid = SKIP, type = SKIP, auth = SKIP, sso = SKIP, expire_time = SKIP, max_usage = SKIP, vlan_id = SKIP) ⇒ ApiV1OrgsPskportalsRequest
Returns a new instance of ApiV1OrgsPskportalsRequest.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 77 def initialize(name = SKIP, ssid = SKIP, type = SKIP, auth = SKIP, sso = SKIP, expire_time = SKIP, max_usage = SKIP, vlan_id = SKIP) @name = name unless name == SKIP @ssid = ssid unless ssid == SKIP @type = type unless type == SKIP @auth = auth unless auth == SKIP @sso = sso unless sso == SKIP @expire_time = expire_time unless expire_time == SKIP @max_usage = max_usage unless max_usage == SKIP @vlan_id = vlan_id unless vlan_id == SKIP end |
Instance Attribute Details
#auth ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 26 def auth @auth end |
#expire_time ⇒ Float
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 34 def expire_time @expire_time end |
#max_usage ⇒ Float
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 38 def max_usage @max_usage end |
#name ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 14 def name @name end |
#ssid ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 18 def ssid @ssid end |
#sso ⇒ Object
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 30 def sso @sso end |
#type ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 22 def type @type end |
#vlan_id ⇒ Float
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 42 def vlan_id @vlan_id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 96 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. name = hash.key?('name') ? hash['name'] : SKIP ssid = hash.key?('ssid') ? hash['ssid'] : SKIP type = hash.key?('type') ? hash['type'] : SKIP auth = hash.key?('auth') ? hash['auth'] : SKIP sso = hash.key?('sso') ? hash['sso'] : SKIP expire_time = hash.key?('expire_time') ? hash['expire_time'] : SKIP max_usage = hash.key?('max_usage') ? hash['max_usage'] : SKIP vlan_id = hash.key?('vlan_id') ? hash['vlan_id'] : SKIP # Create object from extracted values. ApiV1OrgsPskportalsRequest.new(name, ssid, type, auth, sso, expire_time, max_usage, vlan_id) end |
.names ⇒ Object
A mapping from model property names to API property names.
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 45 def self.names @_hash = {} if @_hash.nil? @_hash['name'] = 'name' @_hash['ssid'] = 'ssid' @_hash['type'] = 'type' @_hash['auth'] = 'auth' @_hash['sso'] = 'sso' @_hash['expire_time'] = 'expire_time' @_hash['max_usage'] = 'max_usage' @_hash['vlan_id'] = 'vlan_id' @_hash end |
.nullables ⇒ Object
An array for nullable fields
73 74 75 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 73 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 59 def self.optionals %w[ name ssid type auth sso expire_time max_usage vlan_id ] end |