xbim_identity 2.0.0 → 2.0.3

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 (103) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -107
  3. data/Gemfile +0 -9
  4. data/README.md +0 -174
  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 -308
  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 -95
  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-1.0.0.gem +0 -0
  103. data/xbim_identity.gemspec +0 -38
@@ -1,489 +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 InvitationsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Operations to query the invitations
23
- # <span style='font-size: 17px;'>Summary:</span>Operations to query the invitations.<br/>Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.<br/>Return Type: <b>ODataInvitationList</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 tenant_id [String] The unique Tenant ID (UUID or Identifier string)
25
- # @param [Hash] opts the optional parameters
26
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
27
- # @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
28
- # @option opts [String] :select Limits the properties returned in the result.
29
- # @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
30
- # @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
31
- # @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
32
- # @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
33
- # @return [ODataInvitationList]
34
- def id20_tenants_tenant_id_invitations_get(tenant_id, opts = {})
35
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_get_with_http_info(tenant_id, opts)
36
- data
37
- end
38
-
39
- # Operations to query the invitations
40
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Operations to query the invitations.&lt;br/&gt;Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.&lt;br/&gt;Return Type: &lt;b&gt;ODataInvitationList&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;
41
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
42
- # @param [Hash] opts the optional parameters
43
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
44
- # @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
45
- # @option opts [String] :select Limits the properties returned in the result.
46
- # @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
47
- # @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
48
- # @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
49
- # @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
50
- # @return [Array<(ODataInvitationList, Integer, Hash)>] ODataInvitationList data, response status code and response headers
51
- def id20_tenants_tenant_id_invitations_get_with_http_info(tenant_id, opts = {})
52
- if @api_client.config.debugging
53
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_get ...'
54
- end
55
- # verify the required parameter 'tenant_id' is set
56
- if @api_client.config.client_side_validation && tenant_id.nil?
57
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_get"
58
- end
59
- # resource path
60
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
61
-
62
- # query parameters
63
- query_params = opts[:query_params] || {}
64
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
65
- query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
66
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
67
- query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
68
- query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
69
- query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
70
- query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
71
-
72
- # header parameters
73
- header_params = opts[:header_params] || {}
74
- # HTTP header 'Accept' (if needed)
75
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
76
-
77
- # form parameters
78
- form_params = opts[:form_params] || {}
79
-
80
- # http body (model)
81
- post_body = opts[:debug_body]
82
-
83
- # return_type
84
- return_type = opts[:debug_return_type] || 'ODataInvitationList'
85
-
86
- # auth_names
87
- auth_names = opts[:debug_auth_names] || ['oauth2']
88
-
89
- new_options = opts.merge(
90
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_get",
91
- :header_params => header_params,
92
- :query_params => query_params,
93
- :form_params => form_params,
94
- :body => post_body,
95
- :auth_names => auth_names,
96
- :return_type => return_type
97
- )
98
-
99
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
100
- if @api_client.config.debugging
101
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
- end
103
- return data, status_code, headers
104
- end
105
-
106
- # Sends or Resends an Invitation Email.
107
- # <span style='font-size: 17px;'>Summary:</span>Sends or Resends an Invitation Email..<br/>Return Type: <b>Invitation</b><br/><br/>
108
- # @param invitation_id [String] The Invitation Guid
109
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
110
- # @param [Hash] opts the optional parameters
111
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
112
- # @option opts [String] :select Limits the properties returned in the result.
113
- # @return [Invitation]
114
- def id20_tenants_tenant_id_invitations_invitation_id_despatch_post(invitation_id, tenant_id, opts = {})
115
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_invitation_id_despatch_post_with_http_info(invitation_id, tenant_id, opts)
116
- data
117
- end
118
-
119
- # Sends or Resends an Invitation Email.
120
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Sends or Resends an Invitation Email..&lt;br/&gt;Return Type: &lt;b&gt;Invitation&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
121
- # @param invitation_id [String] The Invitation Guid
122
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
123
- # @param [Hash] opts the optional parameters
124
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
125
- # @option opts [String] :select Limits the properties returned in the result.
126
- # @return [Array<(Invitation, Integer, Hash)>] Invitation data, response status code and response headers
127
- def id20_tenants_tenant_id_invitations_invitation_id_despatch_post_with_http_info(invitation_id, tenant_id, opts = {})
128
- if @api_client.config.debugging
129
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_despatch_post ...'
130
- end
131
- # verify the required parameter 'invitation_id' is set
132
- if @api_client.config.client_side_validation && invitation_id.nil?
133
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_despatch_post"
134
- end
135
- # verify the required parameter 'tenant_id' is set
136
- if @api_client.config.client_side_validation && tenant_id.nil?
137
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_despatch_post"
138
- end
139
- # resource path
140
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations({invitationId})/Despatch'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
141
-
142
- # query parameters
143
- query_params = opts[:query_params] || {}
144
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
145
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
146
-
147
- # header parameters
148
- header_params = opts[:header_params] || {}
149
- # HTTP header 'Accept' (if needed)
150
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
151
-
152
- # form parameters
153
- form_params = opts[:form_params] || {}
154
-
155
- # http body (model)
156
- post_body = opts[:debug_body]
157
-
158
- # return_type
159
- return_type = opts[:debug_return_type] || 'Invitation'
160
-
161
- # auth_names
162
- auth_names = opts[:debug_auth_names] || ['oauth2']
163
-
164
- new_options = opts.merge(
165
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_despatch_post",
166
- :header_params => header_params,
167
- :query_params => query_params,
168
- :form_params => form_params,
169
- :body => post_body,
170
- :auth_names => auth_names,
171
- :return_type => return_type
172
- )
173
-
174
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
175
- if @api_client.config.debugging
176
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_invitation_id_despatch_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
- end
178
- return data, status_code, headers
179
- end
180
-
181
- # Gets the specified Invitation by its key
182
- # <span style='font-size: 17px;'>Summary:</span>Gets the specified Invitation by its key.<br/>Return Type: <b>Invitation</b><br/><br/>
183
- # @param invitation_id [String]
184
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
185
- # @param [Hash] opts the optional parameters
186
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
187
- # @option opts [String] :select Limits the properties returned in the result.
188
- # @return [Invitation]
189
- def id20_tenants_tenant_id_invitations_invitation_id_get(invitation_id, tenant_id, opts = {})
190
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_invitation_id_get_with_http_info(invitation_id, tenant_id, opts)
191
- data
192
- end
193
-
194
- # Gets the specified Invitation by its key
195
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets the specified Invitation by its key.&lt;br/&gt;Return Type: &lt;b&gt;Invitation&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
196
- # @param invitation_id [String]
197
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
198
- # @param [Hash] opts the optional parameters
199
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
200
- # @option opts [String] :select Limits the properties returned in the result.
201
- # @return [Array<(Invitation, Integer, Hash)>] Invitation data, response status code and response headers
202
- def id20_tenants_tenant_id_invitations_invitation_id_get_with_http_info(invitation_id, tenant_id, opts = {})
203
- if @api_client.config.debugging
204
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_get ...'
205
- end
206
- # verify the required parameter 'invitation_id' is set
207
- if @api_client.config.client_side_validation && invitation_id.nil?
208
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_get"
209
- end
210
- # verify the required parameter 'tenant_id' is set
211
- if @api_client.config.client_side_validation && tenant_id.nil?
212
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_get"
213
- end
214
- # resource path
215
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations({invitationId})'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
216
-
217
- # query parameters
218
- query_params = opts[:query_params] || {}
219
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
220
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
221
-
222
- # header parameters
223
- header_params = opts[:header_params] || {}
224
- # HTTP header 'Accept' (if needed)
225
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
226
-
227
- # form parameters
228
- form_params = opts[:form_params] || {}
229
-
230
- # http body (model)
231
- post_body = opts[:debug_body]
232
-
233
- # return_type
234
- return_type = opts[:debug_return_type] || 'Invitation'
235
-
236
- # auth_names
237
- auth_names = opts[:debug_auth_names] || ['oauth2']
238
-
239
- new_options = opts.merge(
240
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_get",
241
- :header_params => header_params,
242
- :query_params => query_params,
243
- :form_params => form_params,
244
- :body => post_body,
245
- :auth_names => auth_names,
246
- :return_type => return_type
247
- )
248
-
249
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
250
- if @api_client.config.debugging
251
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_invitation_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
252
- end
253
- return data, status_code, headers
254
- end
255
-
256
- # Amend an existing invitation and send an email
257
- # <span style='font-size: 17px;'>Summary:</span>Amend an existing invitation and send an email.<br/>Open invitation can be amended by authorised users.<br/>Return Type: <b>Invitation</b><br/><br/>
258
- # @param invitation_id [String] The Invitation ID to patch
259
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
260
- # @param [Hash] opts the optional parameters
261
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
262
- # @option opts [String] :select Limits the properties returned in the result.
263
- # @option opts [InvitationEdit] :invitation_edit The partial Invitation record
264
- # @return [Invitation]
265
- def id20_tenants_tenant_id_invitations_invitation_id_patch(invitation_id, tenant_id, opts = {})
266
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_invitation_id_patch_with_http_info(invitation_id, tenant_id, opts)
267
- data
268
- end
269
-
270
- # Amend an existing invitation and send an email
271
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Amend an existing invitation and send an email.&lt;br/&gt;Open invitation can be amended by authorised users.&lt;br/&gt;Return Type: &lt;b&gt;Invitation&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
272
- # @param invitation_id [String] The Invitation ID to patch
273
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
274
- # @param [Hash] opts the optional parameters
275
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
276
- # @option opts [String] :select Limits the properties returned in the result.
277
- # @option opts [InvitationEdit] :invitation_edit The partial Invitation record
278
- # @return [Array<(Invitation, Integer, Hash)>] Invitation data, response status code and response headers
279
- def id20_tenants_tenant_id_invitations_invitation_id_patch_with_http_info(invitation_id, tenant_id, opts = {})
280
- if @api_client.config.debugging
281
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_patch ...'
282
- end
283
- # verify the required parameter 'invitation_id' is set
284
- if @api_client.config.client_side_validation && invitation_id.nil?
285
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_patch"
286
- end
287
- # verify the required parameter 'tenant_id' is set
288
- if @api_client.config.client_side_validation && tenant_id.nil?
289
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_patch"
290
- end
291
- # resource path
292
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations({invitationId})'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
293
-
294
- # query parameters
295
- query_params = opts[:query_params] || {}
296
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
297
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
298
-
299
- # header parameters
300
- header_params = opts[:header_params] || {}
301
- # HTTP header 'Accept' (if needed)
302
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
303
- # HTTP header 'Content-Type'
304
- content_type = @api_client.select_header_content_type(['application/json', 'application/xml', 'text/json', 'application/*+json'])
305
- if !content_type.nil?
306
- header_params['Content-Type'] = content_type
307
- end
308
-
309
- # form parameters
310
- form_params = opts[:form_params] || {}
311
-
312
- # http body (model)
313
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'invitation_edit'])
314
-
315
- # return_type
316
- return_type = opts[:debug_return_type] || 'Invitation'
317
-
318
- # auth_names
319
- auth_names = opts[:debug_auth_names] || ['oauth2']
320
-
321
- new_options = opts.merge(
322
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_patch",
323
- :header_params => header_params,
324
- :query_params => query_params,
325
- :form_params => form_params,
326
- :body => post_body,
327
- :auth_names => auth_names,
328
- :return_type => return_type
329
- )
330
-
331
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
332
- if @api_client.config.debugging
333
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_invitation_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
334
- end
335
- return data, status_code, headers
336
- end
337
-
338
- # Revokes an Invitation.
339
- # <span style='font-size: 17px;'>Summary:</span>Revokes an Invitation..<br/>Return Type: <b>Invitation</b><br/><br/>
340
- # @param invitation_id [String] The Invitation Guid
341
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
342
- # @param [Hash] opts the optional parameters
343
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
344
- # @option opts [String] :select Limits the properties returned in the result.
345
- # @return [Invitation]
346
- def id20_tenants_tenant_id_invitations_invitation_id_revoke_post(invitation_id, tenant_id, opts = {})
347
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_invitation_id_revoke_post_with_http_info(invitation_id, tenant_id, opts)
348
- data
349
- end
350
-
351
- # Revokes an Invitation.
352
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Revokes an Invitation..&lt;br/&gt;Return Type: &lt;b&gt;Invitation&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
353
- # @param invitation_id [String] The Invitation Guid
354
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
355
- # @param [Hash] opts the optional parameters
356
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
357
- # @option opts [String] :select Limits the properties returned in the result.
358
- # @return [Array<(Invitation, Integer, Hash)>] Invitation data, response status code and response headers
359
- def id20_tenants_tenant_id_invitations_invitation_id_revoke_post_with_http_info(invitation_id, tenant_id, opts = {})
360
- if @api_client.config.debugging
361
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_revoke_post ...'
362
- end
363
- # verify the required parameter 'invitation_id' is set
364
- if @api_client.config.client_side_validation && invitation_id.nil?
365
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_revoke_post"
366
- end
367
- # verify the required parameter 'tenant_id' is set
368
- if @api_client.config.client_side_validation && tenant_id.nil?
369
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_revoke_post"
370
- end
371
- # resource path
372
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations({invitationId})/Revoke'.sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
373
-
374
- # query parameters
375
- query_params = opts[:query_params] || {}
376
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
377
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
378
-
379
- # header parameters
380
- header_params = opts[:header_params] || {}
381
- # HTTP header 'Accept' (if needed)
382
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
383
-
384
- # form parameters
385
- form_params = opts[:form_params] || {}
386
-
387
- # http body (model)
388
- post_body = opts[:debug_body]
389
-
390
- # return_type
391
- return_type = opts[:debug_return_type] || 'Invitation'
392
-
393
- # auth_names
394
- auth_names = opts[:debug_auth_names] || ['oauth2']
395
-
396
- new_options = opts.merge(
397
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_invitation_id_revoke_post",
398
- :header_params => header_params,
399
- :query_params => query_params,
400
- :form_params => form_params,
401
- :body => post_body,
402
- :auth_names => auth_names,
403
- :return_type => return_type
404
- )
405
-
406
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
407
- if @api_client.config.debugging
408
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_invitation_id_revoke_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
- end
410
- return data, status_code, headers
411
- end
412
-
413
- # Creates a new Invitation. The Invitation will only be sent if 'DraftOnly' is false
414
- # <span style='font-size: 17px;'>Summary:</span>Creates a new Invitation. The Invitation will only be sent if 'DraftOnly' is false.<br/>The ability to create Tenants is limited by tenant role.<br/>Return Type: <b>DraftInvitation</b><br/><br/>
415
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
416
- # @param [Hash] opts the optional parameters
417
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
418
- # @option opts [String] :select Limits the properties returned in the result.
419
- # @option opts [InvitationCreate] :invitation_create
420
- # @return [DraftInvitation]
421
- def id20_tenants_tenant_id_invitations_post(tenant_id, opts = {})
422
- data, _status_code, _headers = id20_tenants_tenant_id_invitations_post_with_http_info(tenant_id, opts)
423
- data
424
- end
425
-
426
- # Creates a new Invitation. The Invitation will only be sent if &#39;DraftOnly&#39; is false
427
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Creates a new Invitation. The Invitation will only be sent if &#39;DraftOnly&#39; is false.&lt;br/&gt;The ability to create Tenants is limited by tenant role.&lt;br/&gt;Return Type: &lt;b&gt;DraftInvitation&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
428
- # @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
429
- # @param [Hash] opts the optional parameters
430
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
431
- # @option opts [String] :select Limits the properties returned in the result.
432
- # @option opts [InvitationCreate] :invitation_create
433
- # @return [Array<(DraftInvitation, Integer, Hash)>] DraftInvitation data, response status code and response headers
434
- def id20_tenants_tenant_id_invitations_post_with_http_info(tenant_id, opts = {})
435
- if @api_client.config.debugging
436
- @api_client.config.logger.debug 'Calling API: InvitationsApi.id20_tenants_tenant_id_invitations_post ...'
437
- end
438
- # verify the required parameter 'tenant_id' is set
439
- if @api_client.config.client_side_validation && tenant_id.nil?
440
- fail ArgumentError, "Missing the required parameter 'tenant_id' when calling InvitationsApi.id20_tenants_tenant_id_invitations_post"
441
- end
442
- # resource path
443
- local_var_path = '/id/2.0/Tenants({tenantId})/Invitations'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s))
444
-
445
- # query parameters
446
- query_params = opts[:query_params] || {}
447
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
448
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
449
-
450
- # header parameters
451
- header_params = opts[:header_params] || {}
452
- # HTTP header 'Accept' (if needed)
453
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
454
- # HTTP header 'Content-Type'
455
- content_type = @api_client.select_header_content_type(['application/json', 'application/xml', 'text/json', 'application/*+json'])
456
- if !content_type.nil?
457
- header_params['Content-Type'] = content_type
458
- end
459
-
460
- # form parameters
461
- form_params = opts[:form_params] || {}
462
-
463
- # http body (model)
464
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'invitation_create'])
465
-
466
- # return_type
467
- return_type = opts[:debug_return_type] || 'DraftInvitation'
468
-
469
- # auth_names
470
- auth_names = opts[:debug_auth_names] || ['oauth2']
471
-
472
- new_options = opts.merge(
473
- :operation => :"InvitationsApi.id20_tenants_tenant_id_invitations_post",
474
- :header_params => header_params,
475
- :query_params => query_params,
476
- :form_params => form_params,
477
- :body => post_body,
478
- :auth_names => auth_names,
479
- :return_type => return_type
480
- )
481
-
482
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
483
- if @api_client.config.debugging
484
- @api_client.config.logger.debug "API called: InvitationsApi#id20_tenants_tenant_id_invitations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
- end
486
- return data, status_code, headers
487
- end
488
- end
489
- end
@@ -1,148 +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 MeApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Gets details of the current logged in user
23
- # <span style='font-size: 17px;'>Summary:</span>Gets details of the current logged in user.<br/>Return Type: <b>User</b><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 2.
26
- # @option opts [String] :select Limits the properties returned in the result.
27
- # @return [User]
28
- def id20_me_get(opts = {})
29
- data, _status_code, _headers = id20_me_get_with_http_info(opts)
30
- data
31
- end
32
-
33
- # Gets details of the current logged in user
34
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets details of the current logged in user.&lt;br/&gt;Return Type: &lt;b&gt;User&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
35
- # @param [Hash] opts the optional parameters
36
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
37
- # @option opts [String] :select Limits the properties returned in the result.
38
- # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
39
- def id20_me_get_with_http_info(opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: MeApi.id20_me_get ...'
42
- end
43
- # resource path
44
- local_var_path = '/id/2.0/Me'
45
-
46
- # query parameters
47
- query_params = opts[:query_params] || {}
48
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
49
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
50
-
51
- # header parameters
52
- header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
-
56
- # form parameters
57
- form_params = opts[:form_params] || {}
58
-
59
- # http body (model)
60
- post_body = opts[:debug_body]
61
-
62
- # return_type
63
- return_type = opts[:debug_return_type] || 'User'
64
-
65
- # auth_names
66
- auth_names = opts[:debug_auth_names] || ['oauth2']
67
-
68
- new_options = opts.merge(
69
- :operation => :"MeApi.id20_me_get",
70
- :header_params => header_params,
71
- :query_params => query_params,
72
- :form_params => form_params,
73
- :body => post_body,
74
- :auth_names => auth_names,
75
- :return_type => return_type
76
- )
77
-
78
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
79
- if @api_client.config.debugging
80
- @api_client.config.logger.debug "API called: MeApi#id20_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
- end
82
- return data, status_code, headers
83
- end
84
-
85
- # Gets a list of regions where current user has access to any tenancy (workspace)
86
- # <span style='font-size: 17px;'>Summary:</span>Gets a list of regions where current user has access to any tenancy (workspace).<br/>Return Type: <b>RegionInfo</b><br/><br/>
87
- # @param [Hash] opts the optional parameters
88
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
89
- # @option opts [String] :select Limits the properties returned in the result.
90
- # @return [RegionInfo]
91
- def id20_me_regions_get(opts = {})
92
- data, _status_code, _headers = id20_me_regions_get_with_http_info(opts)
93
- data
94
- end
95
-
96
- # Gets a list of regions where current user has access to any tenancy (workspace)
97
- # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Gets a list of regions where current user has access to any tenancy (workspace).&lt;br/&gt;Return Type: &lt;b&gt;RegionInfo&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
98
- # @param [Hash] opts the optional parameters
99
- # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
100
- # @option opts [String] :select Limits the properties returned in the result.
101
- # @return [Array<(RegionInfo, Integer, Hash)>] RegionInfo data, response status code and response headers
102
- def id20_me_regions_get_with_http_info(opts = {})
103
- if @api_client.config.debugging
104
- @api_client.config.logger.debug 'Calling API: MeApi.id20_me_regions_get ...'
105
- end
106
- # resource path
107
- local_var_path = '/id/2.0/Me/Regions'
108
-
109
- # query parameters
110
- query_params = opts[:query_params] || {}
111
- query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
112
- query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
113
-
114
- # header parameters
115
- header_params = opts[:header_params] || {}
116
- # HTTP header 'Accept' (if needed)
117
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
118
-
119
- # form parameters
120
- form_params = opts[:form_params] || {}
121
-
122
- # http body (model)
123
- post_body = opts[:debug_body]
124
-
125
- # return_type
126
- return_type = opts[:debug_return_type] || 'RegionInfo'
127
-
128
- # auth_names
129
- auth_names = opts[:debug_auth_names] || ['oauth2']
130
-
131
- new_options = opts.merge(
132
- :operation => :"MeApi.id20_me_regions_get",
133
- :header_params => header_params,
134
- :query_params => query_params,
135
- :form_params => form_params,
136
- :body => post_body,
137
- :auth_names => auth_names,
138
- :return_type => return_type
139
- )
140
-
141
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
142
- if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: MeApi#id20_me_regions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
- end
145
- return data, status_code, headers
146
- end
147
- end
148
- end