xbim_identity 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 112705db62b705ebe866f2c899affad313dd4aac363480cb2012e580387e2544
4
- data.tar.gz: b878ba1c57d098f9d6ecc70f4b250800d999595e1fe85b699c78cc55ebef33fa
3
+ metadata.gz: 2c1c7d9f6ad034432f7b1d8b7448ddc410909b42db879ac804638df383ed5d17
4
+ data.tar.gz: b0017573d20e122e495665679a5cf85cfff9b1c84852415dd1497fc4629a5c2d
5
5
  SHA512:
6
- metadata.gz: 64fda6cdee34215b67fd15ab756415fff0060a1de6a35a5ec55f28e1631bd0aaebdadbf6f5355f1b519c62b23f0f07ef5b63da6e125a1dbbc979bf3c4a4cb39f
7
- data.tar.gz: a1723f61c4abcfe57c87dfe23c0f8c5d70df43b9830f44f14c3283cf18b6a629b626a56bb8d066f86608046f70ff815461871cad8b4cc3de828d2642f516ca77
6
+ metadata.gz: d61eade8f49e47d91c318c3d138452cabdcf7304525e326bb1c7978a142bbf07781a48c73d2382c27c68217c1949e296cc658e0ed69338892721d2daaace717b
7
+ data.tar.gz: 97ccabff7103e4f63602b2185c89426b324844dc55bee65f404a4d5f305e75b6adb770972f50097e74382eff57bd70f90527d7e0289143b40546f5d77e9bc894
data/README.md CHANGED
@@ -115,6 +115,7 @@ Class | Method | HTTP request | Description
115
115
  *XbimIdentity::UsersApi* | [**id20_users_get**](docs/UsersApi.md#id20_users_get) | **GET** /id/2.0/Users | Get Users
116
116
  *XbimIdentity::UsersApi* | [**id20_users_get_by_external_id_external_idexternal_id_get**](docs/UsersApi.md#id20_users_get_by_external_id_external_idexternal_id_get) | **GET** /id/2.0/Users/GetByExternalId(externalId='{externalId}') | Gets the specified User by their key
117
117
  *XbimIdentity::UsersApi* | [**id20_users_post**](docs/UsersApi.md#id20_users_post) | **POST** /id/2.0/Users | Post Users
118
+ *XbimIdentity::UsersApi* | [**id20_users_put**](docs/UsersApi.md#id20_users_put) | **PUT** /id/2.0/Users | Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call.
118
119
  *XbimIdentity::UsersApi* | [**id20_users_user_id_get**](docs/UsersApi.md#id20_users_user_id_get) | **GET** /id/2.0/Users({userId}) | Gets the specified User by their key
119
120
 
120
121
 
@@ -53,7 +53,7 @@ module XbimIdentity
53
53
  @api_client.config.logger.debug 'Calling API: ClientApplicationsApi.id20_client_applications_client_id_endpoints_get ...'
54
54
  end
55
55
  # resource path
56
- local_var_path = '/id/2.0/ClientApplications({clientId})/Endpoints'.sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
56
+ local_var_path = "/id/2.0/ClientApplications('{clientId}')/Endpoints".sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
57
57
 
58
58
  # query parameters
59
59
  query_params = opts[:query_params] || {}
@@ -125,7 +125,7 @@ module XbimIdentity
125
125
  @api_client.config.logger.debug 'Calling API: ClientApplicationsApi.id20_client_applications_client_id_endpoints_post ...'
126
126
  end
127
127
  # resource path
128
- local_var_path = '/id/2.0/ClientApplications({clientId})/Endpoints'.sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
128
+ local_var_path = "/id/2.0/ClientApplications('{clientId}')/Endpoints".sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
129
129
 
130
130
  # query parameters
131
131
  query_params = opts[:query_params] || {}
@@ -193,7 +193,7 @@ module XbimIdentity
193
193
  @api_client.config.logger.debug 'Calling API: ClientApplicationsApi.id20_client_applications_client_id_get ...'
194
194
  end
195
195
  # resource path
196
- local_var_path = '/id/2.0/ClientApplications({clientId})'.sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
196
+ local_var_path = "/id/2.0/ClientApplications('{clientId}')".sub('{' + 'clientId' + '}', CGI.escape(client_id.to_s))
197
197
 
198
198
  # query parameters
199
199
  query_params = opts[:query_params] || {}
@@ -43,7 +43,7 @@ module XbimIdentity
43
43
  @api_client.config.logger.debug 'Calling API: TenantsApi.get_tenant_by_identifier ...'
44
44
  end
45
45
  # resource path
46
- local_var_path = '/id/2.0/Tenants/GetById(identifier={identifier})'.sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
46
+ local_var_path = "/id/2.0/Tenants/GetById(identifier='{identifier}')".sub('{' + 'identifier' + '}', CGI.escape(identifier.to_s))
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}
@@ -312,7 +312,7 @@ module XbimIdentity
312
312
  @api_client.config.logger.debug 'Calling API: TenantsApi.id20_tenants_is_identifier_available_idid_get ...'
313
313
  end
314
314
  # resource path
315
- local_var_path = '/id/2.0/Tenants/IsIdentifierAvailable(id={id})'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
315
+ local_var_path = "/id/2.0/Tenants/IsIdentifierAvailable(id='{id}')".sub('{' + 'id' + '}', CGI.escape(id.to_s))
316
316
 
317
317
  # query parameters
318
318
  query_params = opts[:query_params] || {}
@@ -121,7 +121,7 @@ module XbimIdentity
121
121
  @api_client.config.logger.debug 'Calling API: UsersApi.id20_users_get_by_external_id_external_idexternal_id_get ...'
122
122
  end
123
123
  # resource path
124
- local_var_path = '/id/2.0/Users/GetByExternalId(externalId={externalId})'.sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))
124
+ local_var_path = "/id/2.0/Users/GetByExternalId(externalId='{externalId}')".sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))
125
125
 
126
126
  # query parameters
127
127
  query_params = opts[:query_params] || {}
@@ -236,6 +236,80 @@ module XbimIdentity
236
236
  return data, status_code, headers
237
237
  end
238
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
+
239
313
  # Gets the specified User by their key
240
314
  # <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
241
315
  # @param user_id [String] The key.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module XbimIdentity
14
- VERSION = '2.0.0'
14
+ VERSION = '2.0.1'
15
15
  end
@@ -78,6 +78,20 @@ describe 'UsersApi' do
78
78
  end
79
79
  end
80
80
 
81
+ # unit tests for id20_users_put
82
+ # Gets or creates the user based on the external identity. Only usable by master users. User.ExternalIdentity is required for this call.
83
+ # &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;
84
+ # @param user_create User to get or create based on the User.ExternalIdentity
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
87
+ # @option opts [String] :select Limits the properties returned in the result.
88
+ # @return [User]
89
+ describe 'id20_users_put test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
81
95
  # unit tests for id20_users_user_id_get
82
96
  # Gets the specified User by their key
83
97
  # &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;
@@ -1,38 +1,38 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- =begin
4
- #Xbim Flex Identity API 2.0
5
-
6
- #Communication centralised around construction data
7
-
8
- The version of the OpenAPI document: 2.0
9
- Contact: info@xbim.net
10
- Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.4.0
12
-
13
- =end
14
-
15
- $:.push File.expand_path("../lib", __FILE__)
16
- require "xbim_identity/version"
17
-
18
- Gem::Specification.new do |s|
19
- s.name = "xbim_identity"
20
- s.version = XbimIdentity::VERSION
21
- s.platform = Gem::Platform::RUBY
22
- s.authors = ["XBIM.LTD"]
23
- s.email = ["info@xbim.net"]
24
- s.homepage = "https://openapi-generator.tech"
25
- s.summary = "Xbim Flex Identity API 2.0 Ruby Gem"
26
- s.description = "Communication centralised around construction data"
27
- s.license = "MIT"
28
- s.required_ruby_version = ">= 2.4"
29
-
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
-
32
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
-
34
- s.files = Dir['./**/*']
35
- s.test_files = `find spec/*`.split("\n")
36
- s.executables = []
37
- s.require_paths = ["lib"]
38
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Xbim Flex Identity API 2.0
5
+
6
+ #Communication centralised around construction data
7
+
8
+ The version of the OpenAPI document: 2.0
9
+ Contact: info@xbim.net
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.4.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "xbim_identity/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "xbim_identity"
20
+ s.version = XbimIdentity::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["XBIM.LTD"]
23
+ s.email = ["info@xbim.net"]
24
+ s.homepage = "https://xbim.net"
25
+ s.summary = "Xbim Flex Identity API 2.0 Ruby Gem"
26
+ s.description = "Communication centralised around construction data"
27
+ s.license = "MIT"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = Dir['./**/*']
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xbim_identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - XBIM.LTD
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -156,9 +156,8 @@ files:
156
156
  - "./spec/models/user_spec.rb"
157
157
  - "./spec/models/user_tenant_spec.rb"
158
158
  - "./spec/spec_helper.rb"
159
- - "./xbim_identity-1.0.0.gem"
160
159
  - "./xbim_identity.gemspec"
161
- homepage: https://openapi-generator.tech
160
+ homepage: https://xbim.net
162
161
  licenses:
163
162
  - MIT
164
163
  metadata: {}
Binary file