Class: UntitledApi::ApiV1PskportalAdminPsksResponse1

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

Overview

ApiV1PskportalAdminPsksResponse1 Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(id = SKIP, ssid = SKIP, email = SKIP, name = SKIP, passphrase = SKIP, expire_time = SKIP, role = SKIP, admin_sso_id = SKIP) ⇒ ApiV1PskportalAdminPsksResponse1

Returns a new instance of ApiV1PskportalAdminPsksResponse1.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 77

def initialize(id = SKIP,
               ssid = SKIP,
               email = SKIP,
               name = SKIP,
               passphrase = SKIP,
               expire_time = SKIP,
               role = SKIP,
               admin_sso_id = SKIP)
  @id = id unless id == SKIP
  @ssid = ssid unless ssid == SKIP
  @email = email unless email == SKIP
  @name = name unless name == SKIP
  @passphrase = passphrase unless passphrase == SKIP
  @expire_time = expire_time unless expire_time == SKIP
  @role = role unless role == SKIP
  @admin_sso_id = admin_sso_id unless admin_sso_id == SKIP
end

Instance Attribute Details

#admin_sso_idString

TODO: Write general description for this method

Returns:

  • (String)


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

def admin_sso_id
  @admin_sso_id
end

#emailString

TODO: Write general description for this method

Returns:

  • (String)


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

def email
  @email
end

#expire_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

def expire_time
  @expire_time
end

#idString

TODO: Write general description for this method

Returns:

  • (String)


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

def id
  @id
end

#nameString

TODO: Write general description for this method

Returns:

  • (String)


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

def name
  @name
end

#passphraseString

TODO: Write general description for this method

Returns:

  • (String)


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

def passphrase
  @passphrase
end

#roleString

TODO: Write general description for this method

Returns:

  • (String)


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

def role
  @role
end

#ssidString

TODO: Write general description for this method

Returns:

  • (String)


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

def ssid
  @ssid
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_pskportal_admin_psks_response1.rb', line 96

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  id = hash.key?('id') ? hash['id'] : SKIP
  ssid = hash.key?('ssid') ? hash['ssid'] : SKIP
  email = hash.key?('email') ? hash['email'] : SKIP
  name = hash.key?('name') ? hash['name'] : SKIP
  passphrase = hash.key?('passphrase') ? hash['passphrase'] : SKIP
  expire_time = hash.key?('expire_time') ? hash['expire_time'] : SKIP
  role = hash.key?('role') ? hash['role'] : SKIP
  admin_sso_id = hash.key?('admin_sso_id') ? hash['admin_sso_id'] : SKIP

  # Create object from extracted values.
  ApiV1PskportalAdminPsksResponse1.new(id,
                                       ssid,
                                       email,
                                       name,
                                       passphrase,
                                       expire_time,
                                       role,
                                       admin_sso_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_pskportal_admin_psks_response1.rb', line 45

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['id'] = 'id'
  @_hash['ssid'] = 'ssid'
  @_hash['email'] = 'email'
  @_hash['name'] = 'name'
  @_hash['passphrase'] = 'passphrase'
  @_hash['expire_time'] = 'expire_time'
  @_hash['role'] = 'role'
  @_hash['admin_sso_id'] = 'admin_sso_id'
  @_hash
end

.nullablesObject

An array for nullable fields



73
74
75
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.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_pskportal_admin_psks_response1.rb', line 59

def self.optionals
  %w[
    id
    ssid
    email
    name
    passphrase
    expire_time
    role
    admin_sso_id
  ]
end