xbim_identity 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. metadata +7 -107
  3. data/Gemfile +0 -9
  4. data/README.md +0 -175
  5. data/Rakefile +0 -10
  6. data/lib/xbim_identity/api/authentication_api.rb +0 -118
  7. data/lib/xbim_identity/api/client_applications_api.rb +0 -315
  8. data/lib/xbim_identity/api/invitations_api.rb +0 -489
  9. data/lib/xbim_identity/api/me_api.rb +0 -148
  10. data/lib/xbim_identity/api/members_api.rb +0 -406
  11. data/lib/xbim_identity/api/registration_api.rb +0 -85
  12. data/lib/xbim_identity/api/tenants_api.rb +0 -709
  13. data/lib/xbim_identity/api/users_api.rb +0 -382
  14. data/lib/xbim_identity/api_client.rb +0 -390
  15. data/lib/xbim_identity/api_error.rb +0 -57
  16. data/lib/xbim_identity/configuration.rb +0 -278
  17. data/lib/xbim_identity/models/application_type.rb +0 -39
  18. data/lib/xbim_identity/models/client_app.rb +0 -351
  19. data/lib/xbim_identity/models/client_app_endpoint.rb +0 -239
  20. data/lib/xbim_identity/models/draft_invitation.rb +0 -379
  21. data/lib/xbim_identity/models/invitation.rb +0 -379
  22. data/lib/xbim_identity/models/invitation_create.rb +0 -253
  23. data/lib/xbim_identity/models/invitation_edit.rb +0 -239
  24. data/lib/xbim_identity/models/invite_status.rb +0 -41
  25. data/lib/xbim_identity/models/master.rb +0 -331
  26. data/lib/xbim_identity/models/master_base.rb +0 -243
  27. data/lib/xbim_identity/models/master_subscription.rb +0 -323
  28. data/lib/xbim_identity/models/o_data_boolean.rb +0 -230
  29. data/lib/xbim_identity/models/o_data_client_app_endpoint_list.rb +0 -252
  30. data/lib/xbim_identity/models/o_data_client_app_list.rb +0 -252
  31. data/lib/xbim_identity/models/o_data_invitation_list.rb +0 -252
  32. data/lib/xbim_identity/models/o_data_string.rb +0 -230
  33. data/lib/xbim_identity/models/o_data_tenant_list.rb +0 -252
  34. data/lib/xbim_identity/models/o_data_tenant_user_list.rb +0 -252
  35. data/lib/xbim_identity/models/o_data_user_list.rb +0 -252
  36. data/lib/xbim_identity/models/problem_details.rb +0 -259
  37. data/lib/xbim_identity/models/region.rb +0 -280
  38. data/lib/xbim_identity/models/region_info.rb +0 -256
  39. data/lib/xbim_identity/models/subscription.rb +0 -309
  40. data/lib/xbim_identity/models/team_member_create.rb +0 -229
  41. data/lib/xbim_identity/models/team_member_edit.rb +0 -219
  42. data/lib/xbim_identity/models/tenancy_type.rb +0 -38
  43. data/lib/xbim_identity/models/tenant.rb +0 -383
  44. data/lib/xbim_identity/models/tenant_create.rb +0 -267
  45. data/lib/xbim_identity/models/tenant_edit.rb +0 -229
  46. data/lib/xbim_identity/models/tenant_role.rb +0 -39
  47. data/lib/xbim_identity/models/tenant_user.rb +0 -299
  48. data/lib/xbim_identity/models/token_err_response.rb +0 -219
  49. data/lib/xbim_identity/models/token_response.rb +0 -259
  50. data/lib/xbim_identity/models/user.rb +0 -261
  51. data/lib/xbim_identity/models/user_create.rb +0 -247
  52. data/lib/xbim_identity/models/user_tenant.rb +0 -279
  53. data/lib/xbim_identity/version.rb +0 -15
  54. data/lib/xbim_identity.rb +0 -83
  55. data/spec/api/authentication_api_spec.rb +0 -52
  56. data/spec/api/client_applications_api_spec.rb +0 -101
  57. data/spec/api/invitations_api_spec.rb +0 -130
  58. data/spec/api/me_api_spec.rb +0 -61
  59. data/spec/api/members_api_spec.rb +0 -113
  60. data/spec/api/registration_api_spec.rb +0 -48
  61. data/spec/api/tenants_api_spec.rb +0 -176
  62. data/spec/api/users_api_spec.rb +0 -109
  63. data/spec/api_client_spec.rb +0 -226
  64. data/spec/configuration_spec.rb +0 -42
  65. data/spec/models/application_type_spec.rb +0 -28
  66. data/spec/models/client_app_endpoint_spec.rb +0 -46
  67. data/spec/models/client_app_spec.rb +0 -112
  68. data/spec/models/draft_invitation_spec.rb +0 -130
  69. data/spec/models/invitation_create_spec.rb +0 -52
  70. data/spec/models/invitation_edit_spec.rb +0 -46
  71. data/spec/models/invitation_spec.rb +0 -130
  72. data/spec/models/invite_status_spec.rb +0 -28
  73. data/spec/models/master_base_spec.rb +0 -46
  74. data/spec/models/master_spec.rb +0 -94
  75. data/spec/models/master_subscription_spec.rb +0 -94
  76. data/spec/models/o_data_boolean_spec.rb +0 -40
  77. data/spec/models/o_data_client_app_endpoint_list_spec.rb +0 -52
  78. data/spec/models/o_data_client_app_list_spec.rb +0 -52
  79. data/spec/models/o_data_invitation_list_spec.rb +0 -52
  80. data/spec/models/o_data_string_spec.rb +0 -40
  81. data/spec/models/o_data_tenant_list_spec.rb +0 -52
  82. data/spec/models/o_data_tenant_user_list_spec.rb +0 -52
  83. data/spec/models/o_data_user_list_spec.rb +0 -52
  84. data/spec/models/problem_details_spec.rb +0 -58
  85. data/spec/models/region_info_spec.rb +0 -46
  86. data/spec/models/region_spec.rb +0 -58
  87. data/spec/models/subscription_spec.rb +0 -88
  88. data/spec/models/team_member_create_spec.rb +0 -40
  89. data/spec/models/team_member_edit_spec.rb +0 -34
  90. data/spec/models/tenancy_type_spec.rb +0 -28
  91. data/spec/models/tenant_create_spec.rb +0 -58
  92. data/spec/models/tenant_edit_spec.rb +0 -40
  93. data/spec/models/tenant_role_spec.rb +0 -28
  94. data/spec/models/tenant_spec.rb +0 -130
  95. data/spec/models/tenant_user_spec.rb +0 -82
  96. data/spec/models/token_err_response_spec.rb +0 -34
  97. data/spec/models/token_response_spec.rb +0 -58
  98. data/spec/models/user_create_spec.rb +0 -46
  99. data/spec/models/user_spec.rb +0 -58
  100. data/spec/models/user_tenant_spec.rb +0 -70
  101. data/spec/spec_helper.rb +0 -111
  102. data/xbim_identity.gemspec +0 -38
@@ -1,382 +0,0 @@
1
- =begin
2
- #Xbim Flex Identity API 2.0
3
-
4
- #Communication centralised around construction data
5
-
6
- The version of the OpenAPI document: 2.0
7
- Contact: info@xbim.net
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module XbimIdentity
16
- class UsersApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Get Users
23
- # <span style='font-size: 17px;'>Summary:</span>Return Type: <b>ODataUserList</b><br/>For more information about OData responses <a href='https://www.odata.org/getting-started/understand-odata-in-6-steps/'>link</a>.<br/><br/>
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
26
- # @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
27
- # @option opts [String] :select Limits the properties returned in the result.
28
- # @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
29
- # @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
30
- # @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
31
- # @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
32
- # @return [ODataUserList]
33
- def id20_users_get(opts = {})
34
- data, _status_code, _headers = id20_users_get_with_http_info(opts)
35
- data
36
- end
37
-
38
- # Get Users
39
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Return Type: &lt;b&gt;ODataUserList&lt;/b&gt;&lt;br/&gt;For more information about OData responses &lt;a href&#x3D;&#39;https://www.odata.org/getting-started/understand-odata-in-6-steps/&#39;&gt;link&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;
40
- # @param [Hash] opts the optional parameters
41
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
42
- # @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
43
- # @option opts [String] :select Limits the properties returned in the result.
44
- # @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
45
- # @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
46
- # @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
47
- # @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
48
- # @return [Array<(ODataUserList, Integer, Hash)>] ODataUserList data, response status code and response headers
49
- def id20_users_get_with_http_info(opts = {})
50
- if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_get ...'
52
- end
53
- # resource path
54
- local_var_path = '/id/2.0/Users'
55
-
56
- # query parameters
57
- query_params = opts[:query_params] || {}
58
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
59
- query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
60
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
61
- query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
62
- query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
63
- query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
64
- query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
65
-
66
- # header parameters
67
- header_params = opts[:header_params] || {}
68
- # HTTP header 'Accept' (if needed)
69
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
70
-
71
- # form parameters
72
- form_params = opts[:form_params] || {}
73
-
74
- # http body (model)
75
- post_body = opts[:debug_body]
76
-
77
- # return_type
78
- return_type = opts[:debug_return_type] || 'ODataUserList'
79
-
80
- # auth_names
81
- auth_names = opts[:debug_auth_names] || ['oauth2']
82
-
83
- new_options = opts.merge(
84
- :operation => :"UsersApi.id20_users_get",
85
- :header_params => header_params,
86
- :query_params => query_params,
87
- :form_params => form_params,
88
- :body => post_body,
89
- :auth_names => auth_names,
90
- :return_type => return_type
91
- )
92
-
93
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
94
- if @api_client.config.debugging
95
- @api_client.config.logger.debug "API called: UsersApi#id20_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
- end
97
- return data, status_code, headers
98
- end
99
-
100
- # Gets the specified User by their key
101
- # <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
102
- # @param external_id [String] Optional external login ID. This can be used as an alternative key by master users
103
- # @param [Hash] opts the optional parameters
104
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
105
- # @option opts [String] :select Limits the properties returned in the result.
106
- # @return [User]
107
- def id20_users_get_by_external_id_external_idexternal_id_get(external_id, opts = {})
108
- data, _status_code, _headers = id20_users_get_by_external_id_external_idexternal_id_get_with_http_info(external_id, opts)
109
- data
110
- end
111
-
112
- # Gets the specified User by their key
113
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets the specified User by their key.&lt;br/&gt;Return Type: &lt;b&gt;User&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
114
- # @param external_id [String] Optional external login ID. This can be used as an alternative key by master users
115
- # @param [Hash] opts the optional parameters
116
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
117
- # @option opts [String] :select Limits the properties returned in the result.
118
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
119
- def id20_users_get_by_external_id_external_idexternal_id_get_with_http_info(external_id, opts = {})
120
- if @api_client.config.debugging
121
- @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_get_by_external_id_external_idexternal_id_get ...'
122
- end
123
- # resource path
124
- local_var_path = "/id/2.0/Users/GetByExternalId(externalId='{externalId}')".sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))
125
-
126
- # query parameters
127
- query_params = opts[:query_params] || {}
128
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
129
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
130
-
131
- # header parameters
132
- header_params = opts[:header_params] || {}
133
- # HTTP header 'Accept' (if needed)
134
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
135
-
136
- # form parameters
137
- form_params = opts[:form_params] || {}
138
-
139
- # http body (model)
140
- post_body = opts[:debug_body]
141
-
142
- # return_type
143
- return_type = opts[:debug_return_type] || 'User'
144
-
145
- # auth_names
146
- auth_names = opts[:debug_auth_names] || ['oauth2']
147
-
148
- new_options = opts.merge(
149
- :operation => :"UsersApi.id20_users_get_by_external_id_external_idexternal_id_get",
150
- :header_params => header_params,
151
- :query_params => query_params,
152
- :form_params => form_params,
153
- :body => post_body,
154
- :auth_names => auth_names,
155
- :return_type => return_type
156
- )
157
-
158
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
159
- if @api_client.config.debugging
160
- @api_client.config.logger.debug "API called: UsersApi#id20_users_get_by_external_id_external_idexternal_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
161
- end
162
- return data, status_code, headers
163
- end
164
-
165
- # Post Users
166
- # <span style='font-size: 17px;'>Summary:</span>Return Type: <b>User</b><br/><br/>
167
- # @param user_create [UserCreate] User to be created
168
- # @param [Hash] opts the optional parameters
169
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
170
- # @option opts [String] :select Limits the properties returned in the result.
171
- # @return [User]
172
- def id20_users_post(user_create, opts = {})
173
- data, _status_code, _headers = id20_users_post_with_http_info(user_create, opts)
174
- data
175
- end
176
-
177
- # Post Users
178
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Return Type: &lt;b&gt;User&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
179
- # @param user_create [UserCreate] User to be created
180
- # @param [Hash] opts the optional parameters
181
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
182
- # @option opts [String] :select Limits the properties returned in the result.
183
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
184
- def id20_users_post_with_http_info(user_create, opts = {})
185
- if @api_client.config.debugging
186
- @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_post ...'
187
- end
188
- # verify the required parameter 'user_create' is set
189
- if @api_client.config.client_side_validation && user_create.nil?
190
- fail ArgumentError, "Missing the required parameter 'user_create' when calling UsersApi.id20_users_post"
191
- end
192
- # resource path
193
- local_var_path = '/id/2.0/Users'
194
-
195
- # query parameters
196
- query_params = opts[:query_params] || {}
197
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
198
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
199
-
200
- # header parameters
201
- header_params = opts[:header_params] || {}
202
- # HTTP header 'Accept' (if needed)
203
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
204
- # HTTP header 'Content-Type'
205
- content_type = @api_client.select_header_content_type(['application/json', 'application/xml', 'text/json', 'application/*+json'])
206
- if !content_type.nil?
207
- header_params['Content-Type'] = content_type
208
- end
209
-
210
- # form parameters
211
- form_params = opts[:form_params] || {}
212
-
213
- # http body (model)
214
- post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create)
215
-
216
- # return_type
217
- return_type = opts[:debug_return_type] || 'User'
218
-
219
- # auth_names
220
- auth_names = opts[:debug_auth_names] || ['oauth2']
221
-
222
- new_options = opts.merge(
223
- :operation => :"UsersApi.id20_users_post",
224
- :header_params => header_params,
225
- :query_params => query_params,
226
- :form_params => form_params,
227
- :body => post_body,
228
- :auth_names => auth_names,
229
- :return_type => return_type
230
- )
231
-
232
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
233
- if @api_client.config.debugging
234
- @api_client.config.logger.debug "API called: UsersApi#id20_users_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
- end
236
- return data, status_code, headers
237
- end
238
-
239
- # Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call.
240
- # <span style='font-size: 17px;'>Summary:</span>Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call..<br/>Return Type: <b>User</b><br/><br/>
241
- # @param user_create [UserCreate] User to get or create based on the User.ExternalIdentity
242
- # @param [Hash] opts the optional parameters
243
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
244
- # @option opts [String] :select Limits the properties returned in the result.
245
- # @return [User]
246
- def id20_users_put(user_create, opts = {})
247
- data, _status_code, _headers = id20_users_put_with_http_info(user_create, opts)
248
- data
249
- end
250
-
251
- # Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call.
252
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call..&lt;br/&gt;Return Type: &lt;b&gt;User&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
253
- # @param user_create [UserCreate] User to get or create based on the User.ExternalIdentity
254
- # @param [Hash] opts the optional parameters
255
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
256
- # @option opts [String] :select Limits the properties returned in the result.
257
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
258
- def id20_users_put_with_http_info(user_create, opts = {})
259
- if @api_client.config.debugging
260
- @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_put ...'
261
- end
262
- # verify the required parameter 'user_create' is set
263
- if @api_client.config.client_side_validation && user_create.nil?
264
- fail ArgumentError, "Missing the required parameter 'user_create' when calling UsersApi.id20_users_put"
265
- end
266
- # resource path
267
- local_var_path = '/id/2.0/Users'
268
-
269
- # query parameters
270
- query_params = opts[:query_params] || {}
271
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
272
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
273
-
274
- # header parameters
275
- header_params = opts[:header_params] || {}
276
- # HTTP header 'Accept' (if needed)
277
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
278
- # HTTP header 'Content-Type'
279
- content_type = @api_client.select_header_content_type(['application/json', 'application/xml', 'text/json', 'application/*+json'])
280
- if !content_type.nil?
281
- header_params['Content-Type'] = content_type
282
- end
283
-
284
- # form parameters
285
- form_params = opts[:form_params] || {}
286
-
287
- # http body (model)
288
- post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create)
289
-
290
- # return_type
291
- return_type = opts[:debug_return_type] || 'User'
292
-
293
- # auth_names
294
- auth_names = opts[:debug_auth_names] || ['oauth2']
295
-
296
- new_options = opts.merge(
297
- :operation => :"UsersApi.id20_users_put",
298
- :header_params => header_params,
299
- :query_params => query_params,
300
- :form_params => form_params,
301
- :body => post_body,
302
- :auth_names => auth_names,
303
- :return_type => return_type
304
- )
305
-
306
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
307
- if @api_client.config.debugging
308
- @api_client.config.logger.debug "API called: UsersApi#id20_users_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
- end
310
- return data, status_code, headers
311
- end
312
-
313
- # Gets the specified User by their key
314
- # <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
315
- # @param user_id [String] The key.
316
- # @param [Hash] opts the optional parameters
317
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
318
- # @option opts [String] :select Limits the properties returned in the result.
319
- # @return [User]
320
- def id20_users_user_id_get(user_id, opts = {})
321
- data, _status_code, _headers = id20_users_user_id_get_with_http_info(user_id, opts)
322
- data
323
- end
324
-
325
- # Gets the specified User by their key
326
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets the specified User by their key.&lt;br/&gt;Return Type: &lt;b&gt;User&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
327
- # @param user_id [String] The key.
328
- # @param [Hash] opts the optional parameters
329
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
330
- # @option opts [String] :select Limits the properties returned in the result.
331
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
332
- def id20_users_user_id_get_with_http_info(user_id, opts = {})
333
- if @api_client.config.debugging
334
- @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_user_id_get ...'
335
- end
336
- # verify the required parameter 'user_id' is set
337
- if @api_client.config.client_side_validation && user_id.nil?
338
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.id20_users_user_id_get"
339
- end
340
- # resource path
341
- local_var_path = '/id/2.0/Users({userId})'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
342
-
343
- # query parameters
344
- query_params = opts[:query_params] || {}
345
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
346
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
347
-
348
- # header parameters
349
- header_params = opts[:header_params] || {}
350
- # HTTP header 'Accept' (if needed)
351
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
352
-
353
- # form parameters
354
- form_params = opts[:form_params] || {}
355
-
356
- # http body (model)
357
- post_body = opts[:debug_body]
358
-
359
- # return_type
360
- return_type = opts[:debug_return_type] || 'User'
361
-
362
- # auth_names
363
- auth_names = opts[:debug_auth_names] || ['oauth2']
364
-
365
- new_options = opts.merge(
366
- :operation => :"UsersApi.id20_users_user_id_get",
367
- :header_params => header_params,
368
- :query_params => query_params,
369
- :form_params => form_params,
370
- :body => post_body,
371
- :auth_names => auth_names,
372
- :return_type => return_type
373
- )
374
-
375
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
376
- if @api_client.config.debugging
377
- @api_client.config.logger.debug "API called: UsersApi#id20_users_user_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
378
- end
379
- return data, status_code, headers
380
- end
381
- end
382
- end