Class: UntitledApi::ApiV1OrgsPskportalsRequest

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

Overview

Request parameters

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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

#authString

TODO: Write general description for this method

Returns:

  • (String)


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

def auth
  @auth
end

#expire_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

def expire_time
  @expire_time
end

#max_usageFloat

TODO: Write general description for this method

Returns:

  • (Float)


38
39
40
# File 'lib/untitled_api/models/api_v1_orgs_pskportals_request.rb', line 38

def max_usage
  @max_usage
end

#nameString

TODO: Write general description for this method

Returns:

  • (String)


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

def name
  @name
end

#ssidString

TODO: Write general description for this method

Returns:

  • (String)


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

def ssid
  @ssid
end

#ssoObject

TODO: Write general description for this method

Returns:

  • (Object)


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

def sso
  @sso
end

#typeString

TODO: Write general description for this method

Returns:

  • (String)


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

def type
  @type
end

#vlan_idFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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