Class: UntitledApi::ApiV1OrgsSsosResponse3

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

Overview

ApiV1OrgsSsosResponse3 Model.

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, idp_type = SKIP, ldap_type = SKIP, ldap_server_hosts = SKIP, ldap_base_dn = SKIP, ldap_user_filter = SKIP, ldap_group_attr = SKIP, ldap_group_dn = SKIP, ldap_group_filter = SKIP, ldap_bind_dn = SKIP, id = SKIP, msp_id = SKIP, org_id = SKIP, domain = SKIP, created_time = SKIP, modified_time = SKIP) ⇒ ApiV1OrgsSsosResponse3

Returns a new instance of ApiV1OrgsSsosResponse3.



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/untitled_api/models/api_v1_orgs_ssos_response3.rb', line 125

def initialize(name = SKIP,
               idp_type = SKIP,
               ldap_type = SKIP,
               ldap_server_hosts = SKIP,
               ldap_base_dn = SKIP,
               ldap_user_filter = SKIP,
               ldap_group_attr = SKIP,
               ldap_group_dn = SKIP,
               ldap_group_filter = SKIP,
               ldap_bind_dn = SKIP,
               id = SKIP,
               msp_id = SKIP,
               org_id = SKIP,
               domain = SKIP,
               created_time = SKIP,
               modified_time = SKIP)
  @name = name unless name == SKIP
  @idp_type = idp_type unless idp_type == SKIP
  @ldap_type = ldap_type unless ldap_type == SKIP
  @ldap_server_hosts = ldap_server_hosts unless ldap_server_hosts == SKIP
  @ldap_base_dn = ldap_base_dn unless ldap_base_dn == SKIP
  @ldap_user_filter = ldap_user_filter unless ldap_user_filter == SKIP
  @ldap_group_attr = ldap_group_attr unless ldap_group_attr == SKIP
  @ldap_group_dn = ldap_group_dn unless ldap_group_dn == SKIP
  @ldap_group_filter = ldap_group_filter unless ldap_group_filter == SKIP
  @ldap_bind_dn = ldap_bind_dn unless ldap_bind_dn == SKIP
  @id = id unless id == SKIP
  @msp_id = msp_id unless msp_id == SKIP
  @org_id = org_id unless org_id == SKIP
  @domain = domain unless domain == SKIP
  @created_time = created_time unless created_time == SKIP
  @modified_time = modified_time unless modified_time == SKIP
end

Instance Attribute Details

#created_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

def created_time
  @created_time
end

#domainString

TODO: Write general description for this method

Returns:

  • (String)


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

def domain
  @domain
end

#idString

TODO: Write general description for this method

Returns:

  • (String)


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

def id
  @id
end

#idp_typeString

TODO: Write general description for this method

Returns:

  • (String)


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

def idp_type
  @idp_type
end

#ldap_base_dnString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_base_dn
  @ldap_base_dn
end

#ldap_bind_dnString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_bind_dn
  @ldap_bind_dn
end

#ldap_group_attrString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_group_attr
  @ldap_group_attr
end

#ldap_group_dnString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_group_dn
  @ldap_group_dn
end

#ldap_group_filterString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_group_filter
  @ldap_group_filter
end

#ldap_server_hostsObject

TODO: Write general description for this method

Returns:

  • (Object)


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

def ldap_server_hosts
  @ldap_server_hosts
end

#ldap_typeString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_type
  @ldap_type
end

#ldap_user_filterString

TODO: Write general description for this method

Returns:

  • (String)


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

def ldap_user_filter
  @ldap_user_filter
end

#modified_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

def modified_time
  @modified_time
end

#msp_idString

TODO: Write general description for this method

Returns:

  • (String)


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

def msp_id
  @msp_id
end

#nameString

TODO: Write general description for this method

Returns:

  • (String)


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

def name
  @name
end

#org_idString

TODO: Write general description for this method

Returns:

  • (String)


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

def org_id
  @org_id
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/untitled_api/models/api_v1_orgs_ssos_response3.rb', line 160

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  name = hash.key?('name') ? hash['name'] : SKIP
  idp_type = hash.key?('idp_type') ? hash['idp_type'] : SKIP
  ldap_type = hash.key?('ldap_type') ? hash['ldap_type'] : SKIP
  ldap_server_hosts =
    hash.key?('ldap_server_hosts') ? hash['ldap_server_hosts'] : SKIP
  ldap_base_dn = hash.key?('ldap_base_dn') ? hash['ldap_base_dn'] : SKIP
  ldap_user_filter =
    hash.key?('ldap_user_filter') ? hash['ldap_user_filter'] : SKIP
  ldap_group_attr =
    hash.key?('ldap_group_attr') ? hash['ldap_group_attr'] : SKIP
  ldap_group_dn = hash.key?('ldap_group_dn') ? hash['ldap_group_dn'] : SKIP
  ldap_group_filter =
    hash.key?('ldap_group_filter') ? hash['ldap_group_filter'] : SKIP
  ldap_bind_dn = hash.key?('ldap_bind_dn') ? hash['ldap_bind_dn'] : SKIP
  id = hash.key?('id') ? hash['id'] : SKIP
  msp_id = hash.key?('msp_id') ? hash['msp_id'] : SKIP
  org_id = hash.key?('org_id') ? hash['org_id'] : SKIP
  domain = hash.key?('domain') ? hash['domain'] : SKIP
  created_time = hash.key?('created_time') ? hash['created_time'] : SKIP
  modified_time = hash.key?('modified_time') ? hash['modified_time'] : SKIP

  # Create object from extracted values.
  ApiV1OrgsSsosResponse3.new(name,
                             idp_type,
                             ldap_type,
                             ldap_server_hosts,
                             ldap_base_dn,
                             ldap_user_filter,
                             ldap_group_attr,
                             ldap_group_dn,
                             ldap_group_filter,
                             ldap_bind_dn,
                             id,
                             msp_id,
                             org_id,
                             domain,
                             created_time,
                             modified_time)
end

.namesObject

A mapping from model property names to API property names.



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

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['name'] = 'name'
  @_hash['idp_type'] = 'idp_type'
  @_hash['ldap_type'] = 'ldap_type'
  @_hash['ldap_server_hosts'] = 'ldap_server_hosts'
  @_hash['ldap_base_dn'] = 'ldap_base_dn'
  @_hash['ldap_user_filter'] = 'ldap_user_filter'
  @_hash['ldap_group_attr'] = 'ldap_group_attr'
  @_hash['ldap_group_dn'] = 'ldap_group_dn'
  @_hash['ldap_group_filter'] = 'ldap_group_filter'
  @_hash['ldap_bind_dn'] = 'ldap_bind_dn'
  @_hash['id'] = 'id'
  @_hash['msp_id'] = 'msp_id'
  @_hash['org_id'] = 'org_id'
  @_hash['domain'] = 'domain'
  @_hash['created_time'] = 'created_time'
  @_hash['modified_time'] = 'modified_time'
  @_hash
end

.nullablesObject

An array for nullable fields



121
122
123
# File 'lib/untitled_api/models/api_v1_orgs_ssos_response3.rb', line 121

def self.nullables
  []
end

.optionalsObject

An array for optional fields



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_ssos_response3.rb', line 99

def self.optionals
  %w[
    name
    idp_type
    ldap_type
    ldap_server_hosts
    ldap_base_dn
    ldap_user_filter
    ldap_group_attr
    ldap_group_dn
    ldap_group_filter
    ldap_bind_dn
    id
    msp_id
    org_id
    domain
    created_time
    modified_time
  ]
end