xbim_identity 2.0.0

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 +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +174 -0
  4. data/Rakefile +10 -0
  5. data/lib/xbim_identity/api/authentication_api.rb +118 -0
  6. data/lib/xbim_identity/api/client_applications_api.rb +315 -0
  7. data/lib/xbim_identity/api/invitations_api.rb +489 -0
  8. data/lib/xbim_identity/api/me_api.rb +148 -0
  9. data/lib/xbim_identity/api/members_api.rb +406 -0
  10. data/lib/xbim_identity/api/registration_api.rb +85 -0
  11. data/lib/xbim_identity/api/tenants_api.rb +709 -0
  12. data/lib/xbim_identity/api/users_api.rb +308 -0
  13. data/lib/xbim_identity/api_client.rb +390 -0
  14. data/lib/xbim_identity/api_error.rb +57 -0
  15. data/lib/xbim_identity/configuration.rb +278 -0
  16. data/lib/xbim_identity/models/application_type.rb +39 -0
  17. data/lib/xbim_identity/models/client_app.rb +351 -0
  18. data/lib/xbim_identity/models/client_app_endpoint.rb +239 -0
  19. data/lib/xbim_identity/models/draft_invitation.rb +379 -0
  20. data/lib/xbim_identity/models/invitation.rb +379 -0
  21. data/lib/xbim_identity/models/invitation_create.rb +253 -0
  22. data/lib/xbim_identity/models/invitation_edit.rb +239 -0
  23. data/lib/xbim_identity/models/invite_status.rb +41 -0
  24. data/lib/xbim_identity/models/master.rb +331 -0
  25. data/lib/xbim_identity/models/master_base.rb +243 -0
  26. data/lib/xbim_identity/models/master_subscription.rb +323 -0
  27. data/lib/xbim_identity/models/o_data_boolean.rb +230 -0
  28. data/lib/xbim_identity/models/o_data_client_app_endpoint_list.rb +252 -0
  29. data/lib/xbim_identity/models/o_data_client_app_list.rb +252 -0
  30. data/lib/xbim_identity/models/o_data_invitation_list.rb +252 -0
  31. data/lib/xbim_identity/models/o_data_string.rb +230 -0
  32. data/lib/xbim_identity/models/o_data_tenant_list.rb +252 -0
  33. data/lib/xbim_identity/models/o_data_tenant_user_list.rb +252 -0
  34. data/lib/xbim_identity/models/o_data_user_list.rb +252 -0
  35. data/lib/xbim_identity/models/problem_details.rb +259 -0
  36. data/lib/xbim_identity/models/region.rb +280 -0
  37. data/lib/xbim_identity/models/region_info.rb +256 -0
  38. data/lib/xbim_identity/models/subscription.rb +309 -0
  39. data/lib/xbim_identity/models/team_member_create.rb +229 -0
  40. data/lib/xbim_identity/models/team_member_edit.rb +219 -0
  41. data/lib/xbim_identity/models/tenancy_type.rb +38 -0
  42. data/lib/xbim_identity/models/tenant.rb +383 -0
  43. data/lib/xbim_identity/models/tenant_create.rb +267 -0
  44. data/lib/xbim_identity/models/tenant_edit.rb +229 -0
  45. data/lib/xbim_identity/models/tenant_role.rb +39 -0
  46. data/lib/xbim_identity/models/tenant_user.rb +299 -0
  47. data/lib/xbim_identity/models/token_err_response.rb +219 -0
  48. data/lib/xbim_identity/models/token_response.rb +259 -0
  49. data/lib/xbim_identity/models/user.rb +261 -0
  50. data/lib/xbim_identity/models/user_create.rb +247 -0
  51. data/lib/xbim_identity/models/user_tenant.rb +279 -0
  52. data/lib/xbim_identity/version.rb +15 -0
  53. data/lib/xbim_identity.rb +83 -0
  54. data/spec/api/authentication_api_spec.rb +52 -0
  55. data/spec/api/client_applications_api_spec.rb +101 -0
  56. data/spec/api/invitations_api_spec.rb +130 -0
  57. data/spec/api/me_api_spec.rb +61 -0
  58. data/spec/api/members_api_spec.rb +113 -0
  59. data/spec/api/registration_api_spec.rb +48 -0
  60. data/spec/api/tenants_api_spec.rb +176 -0
  61. data/spec/api/users_api_spec.rb +95 -0
  62. data/spec/api_client_spec.rb +226 -0
  63. data/spec/configuration_spec.rb +42 -0
  64. data/spec/models/application_type_spec.rb +28 -0
  65. data/spec/models/client_app_endpoint_spec.rb +46 -0
  66. data/spec/models/client_app_spec.rb +112 -0
  67. data/spec/models/draft_invitation_spec.rb +130 -0
  68. data/spec/models/invitation_create_spec.rb +52 -0
  69. data/spec/models/invitation_edit_spec.rb +46 -0
  70. data/spec/models/invitation_spec.rb +130 -0
  71. data/spec/models/invite_status_spec.rb +28 -0
  72. data/spec/models/master_base_spec.rb +46 -0
  73. data/spec/models/master_spec.rb +94 -0
  74. data/spec/models/master_subscription_spec.rb +94 -0
  75. data/spec/models/o_data_boolean_spec.rb +40 -0
  76. data/spec/models/o_data_client_app_endpoint_list_spec.rb +52 -0
  77. data/spec/models/o_data_client_app_list_spec.rb +52 -0
  78. data/spec/models/o_data_invitation_list_spec.rb +52 -0
  79. data/spec/models/o_data_string_spec.rb +40 -0
  80. data/spec/models/o_data_tenant_list_spec.rb +52 -0
  81. data/spec/models/o_data_tenant_user_list_spec.rb +52 -0
  82. data/spec/models/o_data_user_list_spec.rb +52 -0
  83. data/spec/models/problem_details_spec.rb +58 -0
  84. data/spec/models/region_info_spec.rb +46 -0
  85. data/spec/models/region_spec.rb +58 -0
  86. data/spec/models/subscription_spec.rb +88 -0
  87. data/spec/models/team_member_create_spec.rb +40 -0
  88. data/spec/models/team_member_edit_spec.rb +34 -0
  89. data/spec/models/tenancy_type_spec.rb +28 -0
  90. data/spec/models/tenant_create_spec.rb +58 -0
  91. data/spec/models/tenant_edit_spec.rb +40 -0
  92. data/spec/models/tenant_role_spec.rb +28 -0
  93. data/spec/models/tenant_spec.rb +130 -0
  94. data/spec/models/tenant_user_spec.rb +82 -0
  95. data/spec/models/token_err_response_spec.rb +34 -0
  96. data/spec/models/token_response_spec.rb +58 -0
  97. data/spec/models/user_create_spec.rb +46 -0
  98. data/spec/models/user_spec.rb +58 -0
  99. data/spec/models/user_tenant_spec.rb +70 -0
  100. data/spec/spec_helper.rb +111 -0
  101. data/xbim_identity-1.0.0.gem +0 -0
  102. data/xbim_identity.gemspec +38 -0
  103. metadata +184 -0
@@ -0,0 +1,61 @@
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
@@ -0,0 +1,113 @@
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
@@ -0,0 +1,48 @@
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
@@ -0,0 +1,176 @@
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
@@ -0,0 +1,95 @@
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_user_id_get
82
+ # Gets the specified User by their key
83
+ # <span style='font-size: 17px;'>Summary:</span>Gets the specified User by their key.<br/>Return Type: <b>User</b><br/><br/>
84
+ # @param user_id The key.
85
+ # @param [Hash] opts the optional parameters
86
+ # @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
87
+ # @option opts [String] :select Limits the properties returned in the result.
88
+ # @return [User]
89
+ describe 'id20_users_user_id_get 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
+ end