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.
- checksums.yaml +4 -4
- metadata +7 -107
- data/Gemfile +0 -9
- data/README.md +0 -175
- data/Rakefile +0 -10
- data/lib/xbim_identity/api/authentication_api.rb +0 -118
- data/lib/xbim_identity/api/client_applications_api.rb +0 -315
- data/lib/xbim_identity/api/invitations_api.rb +0 -489
- data/lib/xbim_identity/api/me_api.rb +0 -148
- data/lib/xbim_identity/api/members_api.rb +0 -406
- data/lib/xbim_identity/api/registration_api.rb +0 -85
- data/lib/xbim_identity/api/tenants_api.rb +0 -709
- data/lib/xbim_identity/api/users_api.rb +0 -382
- data/lib/xbim_identity/api_client.rb +0 -390
- data/lib/xbim_identity/api_error.rb +0 -57
- data/lib/xbim_identity/configuration.rb +0 -278
- data/lib/xbim_identity/models/application_type.rb +0 -39
- data/lib/xbim_identity/models/client_app.rb +0 -351
- data/lib/xbim_identity/models/client_app_endpoint.rb +0 -239
- data/lib/xbim_identity/models/draft_invitation.rb +0 -379
- data/lib/xbim_identity/models/invitation.rb +0 -379
- data/lib/xbim_identity/models/invitation_create.rb +0 -253
- data/lib/xbim_identity/models/invitation_edit.rb +0 -239
- data/lib/xbim_identity/models/invite_status.rb +0 -41
- data/lib/xbim_identity/models/master.rb +0 -331
- data/lib/xbim_identity/models/master_base.rb +0 -243
- data/lib/xbim_identity/models/master_subscription.rb +0 -323
- data/lib/xbim_identity/models/o_data_boolean.rb +0 -230
- data/lib/xbim_identity/models/o_data_client_app_endpoint_list.rb +0 -252
- data/lib/xbim_identity/models/o_data_client_app_list.rb +0 -252
- data/lib/xbim_identity/models/o_data_invitation_list.rb +0 -252
- data/lib/xbim_identity/models/o_data_string.rb +0 -230
- data/lib/xbim_identity/models/o_data_tenant_list.rb +0 -252
- data/lib/xbim_identity/models/o_data_tenant_user_list.rb +0 -252
- data/lib/xbim_identity/models/o_data_user_list.rb +0 -252
- data/lib/xbim_identity/models/problem_details.rb +0 -259
- data/lib/xbim_identity/models/region.rb +0 -280
- data/lib/xbim_identity/models/region_info.rb +0 -256
- data/lib/xbim_identity/models/subscription.rb +0 -309
- data/lib/xbim_identity/models/team_member_create.rb +0 -229
- data/lib/xbim_identity/models/team_member_edit.rb +0 -219
- data/lib/xbim_identity/models/tenancy_type.rb +0 -38
- data/lib/xbim_identity/models/tenant.rb +0 -383
- data/lib/xbim_identity/models/tenant_create.rb +0 -267
- data/lib/xbim_identity/models/tenant_edit.rb +0 -229
- data/lib/xbim_identity/models/tenant_role.rb +0 -39
- data/lib/xbim_identity/models/tenant_user.rb +0 -299
- data/lib/xbim_identity/models/token_err_response.rb +0 -219
- data/lib/xbim_identity/models/token_response.rb +0 -259
- data/lib/xbim_identity/models/user.rb +0 -261
- data/lib/xbim_identity/models/user_create.rb +0 -247
- data/lib/xbim_identity/models/user_tenant.rb +0 -279
- data/lib/xbim_identity/version.rb +0 -15
- data/lib/xbim_identity.rb +0 -83
- data/spec/api/authentication_api_spec.rb +0 -52
- data/spec/api/client_applications_api_spec.rb +0 -101
- data/spec/api/invitations_api_spec.rb +0 -130
- data/spec/api/me_api_spec.rb +0 -61
- data/spec/api/members_api_spec.rb +0 -113
- data/spec/api/registration_api_spec.rb +0 -48
- data/spec/api/tenants_api_spec.rb +0 -176
- data/spec/api/users_api_spec.rb +0 -109
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/application_type_spec.rb +0 -28
- data/spec/models/client_app_endpoint_spec.rb +0 -46
- data/spec/models/client_app_spec.rb +0 -112
- data/spec/models/draft_invitation_spec.rb +0 -130
- data/spec/models/invitation_create_spec.rb +0 -52
- data/spec/models/invitation_edit_spec.rb +0 -46
- data/spec/models/invitation_spec.rb +0 -130
- data/spec/models/invite_status_spec.rb +0 -28
- data/spec/models/master_base_spec.rb +0 -46
- data/spec/models/master_spec.rb +0 -94
- data/spec/models/master_subscription_spec.rb +0 -94
- data/spec/models/o_data_boolean_spec.rb +0 -40
- data/spec/models/o_data_client_app_endpoint_list_spec.rb +0 -52
- data/spec/models/o_data_client_app_list_spec.rb +0 -52
- data/spec/models/o_data_invitation_list_spec.rb +0 -52
- data/spec/models/o_data_string_spec.rb +0 -40
- data/spec/models/o_data_tenant_list_spec.rb +0 -52
- data/spec/models/o_data_tenant_user_list_spec.rb +0 -52
- data/spec/models/o_data_user_list_spec.rb +0 -52
- data/spec/models/problem_details_spec.rb +0 -58
- data/spec/models/region_info_spec.rb +0 -46
- data/spec/models/region_spec.rb +0 -58
- data/spec/models/subscription_spec.rb +0 -88
- data/spec/models/team_member_create_spec.rb +0 -40
- data/spec/models/team_member_edit_spec.rb +0 -34
- data/spec/models/tenancy_type_spec.rb +0 -28
- data/spec/models/tenant_create_spec.rb +0 -58
- data/spec/models/tenant_edit_spec.rb +0 -40
- data/spec/models/tenant_role_spec.rb +0 -28
- data/spec/models/tenant_spec.rb +0 -130
- data/spec/models/tenant_user_spec.rb +0 -82
- data/spec/models/token_err_response_spec.rb +0 -34
- data/spec/models/token_response_spec.rb +0 -58
- data/spec/models/user_create_spec.rb +0 -46
- data/spec/models/user_spec.rb +0 -58
- data/spec/models/user_tenant_spec.rb +0 -70
- data/spec/spec_helper.rb +0 -111
- data/xbim_identity.gemspec +0 -38
data/spec/api/me_api_spec.rb
DELETED
@@ -1,61 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for XbimIdentity::MeApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'MeApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = XbimIdentity::MeApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of MeApi' do
|
30
|
-
it 'should create an instance of MeApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(XbimIdentity::MeApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for id20_me_get
|
36
|
-
# Gets details of the current logged in user
|
37
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets details of the current logged in user.<br/>Return Type: <b>User</b><br/><br/>
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
40
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
41
|
-
# @return [User]
|
42
|
-
describe 'id20_me_get test' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# unit tests for id20_me_regions_get
|
49
|
-
# Gets a list of regions where current user has access to any tenancy (workspace)
|
50
|
-
# <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/>
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
53
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
54
|
-
# @return [RegionInfo]
|
55
|
-
describe 'id20_me_regions_get test' do
|
56
|
-
it 'should work' do
|
57
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
@@ -1,113 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for XbimIdentity::MembersApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'MembersApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = XbimIdentity::MembersApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of MembersApi' do
|
30
|
-
it 'should create an instance of MembersApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(XbimIdentity::MembersApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for id20_tenants_tenant_id_members_get
|
36
|
-
# Team members
|
37
|
-
# <span style='font-size: 17px;'>Summary:</span>Team members.<br/>Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.<br/>Return Type: <b>ODataTenantUserList</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/>
|
38
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
41
|
-
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
|
42
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
43
|
-
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
44
|
-
# @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
|
45
|
-
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
46
|
-
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
47
|
-
# @return [ODataTenantUserList]
|
48
|
-
describe 'id20_tenants_tenant_id_members_get test' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
# unit tests for id20_tenants_tenant_id_members_post
|
55
|
-
# Creates a new Team member adding an existing user to the tenant
|
56
|
-
# <span style='font-size: 17px;'>Summary:</span>Creates a new Team member adding an existing user to the tenant.<br/>The ability to add users to a limited by tenant role.<br/>Return Type: <b>TenantUser</b><br/><br/>
|
57
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
58
|
-
# @param [Hash] opts the optional parameters
|
59
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
60
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
61
|
-
# @option opts [TeamMemberCreate] :team_member_create
|
62
|
-
# @return [TenantUser]
|
63
|
-
describe 'id20_tenants_tenant_id_members_post test' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
# unit tests for id20_tenants_tenant_id_members_user_id_delete
|
70
|
-
# Revokes a user from this Tenant. Requires the Administrator Tenant Role
|
71
|
-
# <span style='font-size: 17px;'>Summary:</span>Revokes a user from this Tenant. Requires the Administrator Tenant Role.<br/>Return Type: <b></b><br/><br/>
|
72
|
-
# @param user_id The UserId to revoke
|
73
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
74
|
-
# @param [Hash] opts the optional parameters
|
75
|
-
# @return [nil]
|
76
|
-
describe 'id20_tenants_tenant_id_members_user_id_delete test' do
|
77
|
-
it 'should work' do
|
78
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
# unit tests for id20_tenants_tenant_id_members_user_id_get
|
83
|
-
# Gets the specified Tenant Member by their userId
|
84
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets the specified Tenant Member by their userId.<br/>Return Type: <b>TenantUser</b><br/><br/>
|
85
|
-
# @param user_id The user id
|
86
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
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 [TenantUser]
|
91
|
-
describe 'id20_tenants_tenant_id_members_user_id_get test' do
|
92
|
-
it 'should work' do
|
93
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
# unit tests for id20_tenants_tenant_id_members_user_id_patch
|
98
|
-
# Amend an existing team member's team details
|
99
|
-
# <span style='font-size: 17px;'>Summary:</span>Amend an existing team member's team details.<br/>Editing users requires Admin rights on the tenant.<br/>Return Type: <b>TenantUser</b><br/><br/>
|
100
|
-
# @param user_id The User ID to patch
|
101
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
102
|
-
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
104
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
105
|
-
# @option opts [TeamMemberEdit] :team_member_edit The partial Team Member record
|
106
|
-
# @return [TenantUser]
|
107
|
-
describe 'id20_tenants_tenant_id_members_user_id_patch test' do
|
108
|
-
it 'should work' do
|
109
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
end
|
@@ -1,48 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for XbimIdentity::RegistrationApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'RegistrationApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = XbimIdentity::RegistrationApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of RegistrationApi' do
|
30
|
-
it 'should create an instance of RegistrationApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(XbimIdentity::RegistrationApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for id20_registration_acceptinvitation_post
|
36
|
-
# Accepts a user's invitation to join a Tenant
|
37
|
-
# <span style='font-size: 17px;'>Summary:</span>Accepts a user's invitation to join a Tenant.<br/>Creates or updates a User account with the granted access rights. See https://developers.google.com/recaptcha/docs/verify for details on reCAPTCA.<br/>Return Type: <b>UserTenant</b><br/><br/>
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :secret The secret supplied by email
|
40
|
-
# @option opts [String] :captcha_response The reCAPTCHA v2 'g-recaptcha-reponse' token
|
41
|
-
# @return [UserTenant]
|
42
|
-
describe 'id20_registration_acceptinvitation_post test' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
@@ -1,176 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for XbimIdentity::TenantsApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'TenantsApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = XbimIdentity::TenantsApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of TenantsApi' do
|
30
|
-
it 'should create an instance of TenantsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(XbimIdentity::TenantsApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for get_tenant_by_identifier
|
36
|
-
# Gets the specified Tenant by its unique identifier
|
37
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets the specified Tenant by its unique identifier.<br/>Return Type: <b>Tenant</b><br/><br/>
|
38
|
-
# @param identifier The Tenant identifier.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
41
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
42
|
-
# @return [Tenant]
|
43
|
-
describe 'get_tenant_by_identifier test' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
# unit tests for id20_tenants_demo_get
|
50
|
-
# Registers user in the 'Demo' tenancy
|
51
|
-
# <span style='font-size: 17px;'>Summary:</span>Registers user in the 'Demo' tenancy.<br/>Any user can request to be registered in the demo tenancy.<br/>Return Type: <b>Tenant</b><br/><br/>
|
52
|
-
# @param [Hash] opts the optional parameters
|
53
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
54
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
55
|
-
# @return [Tenant]
|
56
|
-
describe 'id20_tenants_demo_get test' do
|
57
|
-
it 'should work' do
|
58
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
# unit tests for id20_tenants_demo_tenant_id_get
|
63
|
-
# Gets publickly known demo tenant id
|
64
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets publickly known demo tenant id.<br/>Return Type: <b>ODataString</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/>
|
65
|
-
# @param [Hash] opts the optional parameters
|
66
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
67
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
68
|
-
# @return [ODataString]
|
69
|
-
describe 'id20_tenants_demo_tenant_id_get test' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
# unit tests for id20_tenants_get
|
76
|
-
# Operations to query a set of data
|
77
|
-
# <span style='font-size: 17px;'>Summary:</span>Operations to query a set of data.<br/>Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.<br/>Return Type: <b>ODataTenantList</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/>
|
78
|
-
# @param [Hash] opts the optional parameters
|
79
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
80
|
-
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
|
81
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
82
|
-
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
83
|
-
# @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
|
84
|
-
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
85
|
-
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
86
|
-
# @return [ODataTenantList]
|
87
|
-
describe 'id20_tenants_get test' do
|
88
|
-
it 'should work' do
|
89
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# unit tests for id20_tenants_is_identifier_available_idid_get
|
94
|
-
# Checks the availability of a Tenant identifier
|
95
|
-
# <span style='font-size: 17px;'>Summary:</span>Checks the availability of a Tenant identifier.<br/>.<br/>Return Type: <b>ODataBoolean</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/>
|
96
|
-
# @param id
|
97
|
-
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
99
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
100
|
-
# @return [ODataBoolean]
|
101
|
-
describe 'id20_tenants_is_identifier_available_idid_get test' do
|
102
|
-
it 'should work' do
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
# unit tests for id20_tenants_post
|
108
|
-
# Creates a new Tenant for the current user
|
109
|
-
# <span style='font-size: 17px;'>Summary:</span>Creates a new Tenant for the current user.<br/>The ability to create Tenants may be limited by Subscription level.<br/>Return Type: <b>Tenant</b><br/><br/>
|
110
|
-
# @param tenant_create
|
111
|
-
# @param [Hash] opts the optional parameters
|
112
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
113
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
114
|
-
# @return [Tenant]
|
115
|
-
describe 'id20_tenants_post test' do
|
116
|
-
it 'should work' do
|
117
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
# unit tests for id20_tenants_tenant_id_delete
|
122
|
-
# Delete the tenant
|
123
|
-
# <span style='font-size: 17px;'>Summary:</span>Delete the tenant.<br/>Return Type: <b></b><br/><br/>
|
124
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
125
|
-
# @param [Hash] opts the optional parameters
|
126
|
-
# @return [nil]
|
127
|
-
describe 'id20_tenants_tenant_id_delete test' do
|
128
|
-
it 'should work' do
|
129
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
# unit tests for id20_tenants_tenant_id_get
|
134
|
-
# Gets the specified Tenant by its key
|
135
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets the specified Tenant by its key.<br/>Return Type: <b>Tenant</b><br/><br/>
|
136
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
137
|
-
# @param [Hash] opts the optional parameters
|
138
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
139
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
140
|
-
# @return [Tenant]
|
141
|
-
describe 'id20_tenants_tenant_id_get test' do
|
142
|
-
it 'should work' do
|
143
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
# unit tests for id20_tenants_tenant_id_patch
|
148
|
-
# Patch tenant
|
149
|
-
# <span style='font-size: 17px;'>Summary:</span>Patch tenant.<br/>Return Type: <b>Tenant</b><br/><br/>
|
150
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
151
|
-
# @param tenant_edit delta changes
|
152
|
-
# @param [Hash] opts the optional parameters
|
153
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
154
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
155
|
-
# @return [Tenant]
|
156
|
-
describe 'id20_tenants_tenant_id_patch test' do
|
157
|
-
it 'should work' do
|
158
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
# unit tests for id20_tenants_tenant_id_subscription_get
|
163
|
-
# Gets Tenant Subscription Plans
|
164
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets Tenant Subscription Plans.<br/>Return Type: <b>Subscription</b><br/><br/>
|
165
|
-
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
166
|
-
# @param [Hash] opts the optional parameters
|
167
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
168
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
169
|
-
# @return [Subscription]
|
170
|
-
describe 'id20_tenants_tenant_id_subscription_get test' do
|
171
|
-
it 'should work' do
|
172
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
end
|
data/spec/api/users_api_spec.rb
DELETED
@@ -1,109 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for XbimIdentity::UsersApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'UsersApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = XbimIdentity::UsersApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of UsersApi' do
|
30
|
-
it 'should create an instance of UsersApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(XbimIdentity::UsersApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for id20_users_get
|
36
|
-
# Get Users
|
37
|
-
# <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/>
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
40
|
-
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
|
41
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
42
|
-
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
43
|
-
# @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
|
44
|
-
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
45
|
-
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
46
|
-
# @return [ODataUserList]
|
47
|
-
describe 'id20_users_get test' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
# unit tests for id20_users_get_by_external_id_external_idexternal_id_get
|
54
|
-
# Gets the specified User by their key
|
55
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
|
56
|
-
# @param external_id Optional external login ID. This can be used as an alternative key by master users
|
57
|
-
# @param [Hash] opts the optional parameters
|
58
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
59
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
60
|
-
# @return [User]
|
61
|
-
describe 'id20_users_get_by_external_id_external_idexternal_id_get test' do
|
62
|
-
it 'should work' do
|
63
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# unit tests for id20_users_post
|
68
|
-
# Post Users
|
69
|
-
# <span style='font-size: 17px;'>Summary:</span>Return Type: <b>User</b><br/><br/>
|
70
|
-
# @param user_create User to be created
|
71
|
-
# @param [Hash] opts the optional parameters
|
72
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
73
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
74
|
-
# @return [User]
|
75
|
-
describe 'id20_users_post test' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
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
|
-
# <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/>
|
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
|
-
|
95
|
-
# unit tests for id20_users_user_id_get
|
96
|
-
# Gets the specified User by their key
|
97
|
-
# <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
|
98
|
-
# @param user_id The key.
|
99
|
-
# @param [Hash] opts the optional parameters
|
100
|
-
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
101
|
-
# @option opts [String] :select Limits the properties returned in the result.
|
102
|
-
# @return [User]
|
103
|
-
describe 'id20_users_user_id_get test' do
|
104
|
-
it 'should work' do
|
105
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
end
|