Class: UntitledApi::ApiV1PskportalAdminPsksResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1PskportalAdminPsksResponse1
- Defined in:
- lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb
Overview
ApiV1PskportalAdminPsksResponse1 Model.
Instance Attribute Summary collapse
-
#admin_sso_id ⇒ String
TODO: Write general description for this method.
-
#email ⇒ String
TODO: Write general description for this method.
-
#expire_time ⇒ Float
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
-
#passphrase ⇒ String
TODO: Write general description for this method.
-
#role ⇒ String
TODO: Write general description for this method.
-
#ssid ⇒ String
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(id = SKIP, ssid = SKIP, email = SKIP, name = SKIP, passphrase = SKIP, expire_time = SKIP, role = SKIP, admin_sso_id = SKIP) ⇒ ApiV1PskportalAdminPsksResponse1
constructor
A new instance of ApiV1PskportalAdminPsksResponse1.
Methods inherited from BaseModel
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_id ⇒ String
TODO: Write general description for this method
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 |
#email ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 22 def email @email end |
#expire_time ⇒ Float
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 34 def expire_time @expire_time end |
#id ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 14 def id @id end |
#name ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 26 def name @name end |
#passphrase ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 30 def passphrase @passphrase end |
#role ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_pskportal_admin_psks_response1.rb', line 38 def role @role end |
#ssid ⇒ String
TODO: Write general description for this method
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 |
.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_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 |
.nullables ⇒ Object
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 |
.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_pskportal_admin_psks_response1.rb', line 59 def self.optionals %w[ id ssid email name passphrase expire_time role admin_sso_id ] end |