rbac-api-client 1.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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +175 -0
- data/Rakefile +10 -0
- data/client-meta.json +8 -0
- data/docs/Access.md +19 -0
- data/docs/AccessApi.md +68 -0
- data/docs/AccessPagination.md +21 -0
- data/docs/AccessPaginationAllOf.md +17 -0
- data/docs/AdditionalGroup.md +19 -0
- data/docs/Error.md +17 -0
- data/docs/Error403.md +17 -0
- data/docs/Group.md +19 -0
- data/docs/GroupApi.md +623 -0
- data/docs/GroupOut.md +33 -0
- data/docs/GroupPagination.md +21 -0
- data/docs/GroupPaginationAllOf.md +17 -0
- data/docs/GroupPrincipalIn.md +17 -0
- data/docs/GroupRoleIn.md +17 -0
- data/docs/GroupRolesPagination.md +21 -0
- data/docs/GroupWithPrincipals.md +27 -0
- data/docs/GroupWithPrincipalsAllOf.md +17 -0
- data/docs/GroupWithPrincipalsAndRoles.md +29 -0
- data/docs/GroupWithPrincipalsAndRolesAllOf.md +19 -0
- data/docs/InlineResponse200.md +17 -0
- data/docs/ListPagination.md +19 -0
- data/docs/PaginationLinks.md +23 -0
- data/docs/PaginationMeta.md +17 -0
- data/docs/Policy.md +19 -0
- data/docs/PolicyApi.md +283 -0
- data/docs/PolicyExtended.md +29 -0
- data/docs/PolicyExtendedAllOf.md +19 -0
- data/docs/PolicyIn.md +23 -0
- data/docs/PolicyInAllOf.md +19 -0
- data/docs/PolicyPagination.md +21 -0
- data/docs/PolicyPaginationAllOf.md +17 -0
- data/docs/Principal.md +25 -0
- data/docs/PrincipalApi.md +68 -0
- data/docs/PrincipalIn.md +17 -0
- data/docs/PrincipalOut.md +27 -0
- data/docs/PrincipalPagination.md +21 -0
- data/docs/PrincipalPaginationAllOf.md +17 -0
- data/docs/ResourceDefinition.md +17 -0
- data/docs/ResourceDefinitionFilter.md +21 -0
- data/docs/Role.md +19 -0
- data/docs/RoleApi.md +340 -0
- data/docs/RoleIn.md +21 -0
- data/docs/RoleInAllOf.md +17 -0
- data/docs/RoleOut.md +35 -0
- data/docs/RoleOutDynamic.md +39 -0
- data/docs/RoleOutDynamicAllOf.md +29 -0
- data/docs/RolePagination.md +21 -0
- data/docs/RolePaginationDynamic.md +21 -0
- data/docs/RolePaginationDynamicAllOf.md +17 -0
- data/docs/RoleWithAccess.md +37 -0
- data/docs/Status.md +27 -0
- data/docs/StatusApi.md +56 -0
- data/docs/Timestamped.md +19 -0
- data/docs/UUID.md +17 -0
- data/generate.sh +7 -0
- data/git_push.sh +58 -0
- data/lib/rbac-api-client.rb +93 -0
- data/lib/rbac-api-client/api/access_api.rb +104 -0
- data/lib/rbac-api-client/api/group_api.rb +800 -0
- data/lib/rbac-api-client/api/policy_api.rb +363 -0
- data/lib/rbac-api-client/api/principal_api.rb +104 -0
- data/lib/rbac-api-client/api/role_api.rb +445 -0
- data/lib/rbac-api-client/api/status_api.rb +76 -0
- data/lib/rbac-api-client/api_client.rb +386 -0
- data/lib/rbac-api-client/api_error.rb +57 -0
- data/lib/rbac-api-client/configuration.rb +248 -0
- data/lib/rbac-api-client/models/access.rb +227 -0
- data/lib/rbac-api-client/models/access_pagination.rb +239 -0
- data/lib/rbac-api-client/models/access_pagination_all_of.rb +213 -0
- data/lib/rbac-api-client/models/additional_group.rb +215 -0
- data/lib/rbac-api-client/models/error.rb +213 -0
- data/lib/rbac-api-client/models/error403.rb +213 -0
- data/lib/rbac-api-client/models/group.rb +220 -0
- data/lib/rbac-api-client/models/group_out.rb +341 -0
- data/lib/rbac-api-client/models/group_pagination.rb +239 -0
- data/lib/rbac-api-client/models/group_pagination_all_of.rb +213 -0
- data/lib/rbac-api-client/models/group_principal_in.rb +213 -0
- data/lib/rbac-api-client/models/group_role_in.rb +213 -0
- data/lib/rbac-api-client/models/group_roles_pagination.rb +239 -0
- data/lib/rbac-api-client/models/group_with_principals.rb +288 -0
- data/lib/rbac-api-client/models/group_with_principals_all_of.rb +213 -0
- data/lib/rbac-api-client/models/group_with_principals_and_roles.rb +304 -0
- data/lib/rbac-api-client/models/group_with_principals_and_roles_all_of.rb +229 -0
- data/lib/rbac-api-client/models/inline_response200.rb +213 -0
- data/lib/rbac-api-client/models/list_pagination.rb +215 -0
- data/lib/rbac-api-client/models/pagination_links.rb +233 -0
- data/lib/rbac-api-client/models/pagination_meta.rb +206 -0
- data/lib/rbac-api-client/models/policy.rb +220 -0
- data/lib/rbac-api-client/models/policy_extended.rb +302 -0
- data/lib/rbac-api-client/models/policy_extended_all_of.rb +227 -0
- data/lib/rbac-api-client/models/policy_in.rb +258 -0
- data/lib/rbac-api-client/models/policy_in_all_of.rb +227 -0
- data/lib/rbac-api-client/models/policy_pagination.rb +239 -0
- data/lib/rbac-api-client/models/policy_pagination_all_of.rb +213 -0
- data/lib/rbac-api-client/models/principal.rb +252 -0
- data/lib/rbac-api-client/models/principal_in.rb +211 -0
- data/lib/rbac-api-client/models/principal_out.rb +274 -0
- data/lib/rbac-api-client/models/principal_pagination.rb +239 -0
- data/lib/rbac-api-client/models/principal_pagination_all_of.rb +213 -0
- data/lib/rbac-api-client/models/resource_definition.rb +211 -0
- data/lib/rbac-api-client/models/resource_definition_filter.rb +273 -0
- data/lib/rbac-api-client/models/role.rb +220 -0
- data/lib/rbac-api-client/models/role_in.rb +244 -0
- data/lib/rbac-api-client/models/role_in_all_of.rb +213 -0
- data/lib/rbac-api-client/models/role_out.rb +352 -0
- data/lib/rbac-api-client/models/role_out_dynamic.rb +421 -0
- data/lib/rbac-api-client/models/role_out_dynamic_all_of.rb +346 -0
- data/lib/rbac-api-client/models/role_pagination.rb +239 -0
- data/lib/rbac-api-client/models/role_pagination_dynamic.rb +239 -0
- data/lib/rbac-api-client/models/role_pagination_dynamic_all_of.rb +213 -0
- data/lib/rbac-api-client/models/role_with_access.rb +367 -0
- data/lib/rbac-api-client/models/status.rb +256 -0
- data/lib/rbac-api-client/models/timestamped.rb +225 -0
- data/lib/rbac-api-client/models/uuid.rb +211 -0
- data/lib/rbac-api-client/version.rb +15 -0
- data/openapi.json +2613 -0
- data/rbac-api-client.gemspec +39 -0
- data/spec/api/access_api_spec.rb +49 -0
- data/spec/api/group_api_spec.rb +176 -0
- data/spec/api/policy_api_spec.rb +97 -0
- data/spec/api/principal_api_spec.rb +49 -0
- data/spec/api/role_api_spec.rb +110 -0
- data/spec/api/status_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/access_pagination_all_of_spec.rb +41 -0
- data/spec/models/access_pagination_spec.rb +53 -0
- data/spec/models/access_spec.rb +47 -0
- data/spec/models/additional_group_spec.rb +47 -0
- data/spec/models/error403_spec.rb +41 -0
- data/spec/models/error_spec.rb +41 -0
- data/spec/models/group_out_spec.rb +89 -0
- data/spec/models/group_pagination_all_of_spec.rb +41 -0
- data/spec/models/group_pagination_spec.rb +53 -0
- data/spec/models/group_principal_in_spec.rb +41 -0
- data/spec/models/group_role_in_spec.rb +41 -0
- data/spec/models/group_roles_pagination_spec.rb +53 -0
- data/spec/models/group_spec.rb +47 -0
- data/spec/models/group_with_principals_all_of_spec.rb +41 -0
- data/spec/models/group_with_principals_and_roles_all_of_spec.rb +47 -0
- data/spec/models/group_with_principals_and_roles_spec.rb +77 -0
- data/spec/models/group_with_principals_spec.rb +71 -0
- data/spec/models/inline_response200_spec.rb +41 -0
- data/spec/models/list_pagination_spec.rb +47 -0
- data/spec/models/pagination_links_spec.rb +59 -0
- data/spec/models/pagination_meta_spec.rb +41 -0
- data/spec/models/policy_extended_all_of_spec.rb +47 -0
- data/spec/models/policy_extended_spec.rb +77 -0
- data/spec/models/policy_in_all_of_spec.rb +47 -0
- data/spec/models/policy_in_spec.rb +59 -0
- data/spec/models/policy_pagination_all_of_spec.rb +41 -0
- data/spec/models/policy_pagination_spec.rb +53 -0
- data/spec/models/policy_spec.rb +47 -0
- data/spec/models/principal_in_spec.rb +41 -0
- data/spec/models/principal_out_spec.rb +71 -0
- data/spec/models/principal_pagination_all_of_spec.rb +41 -0
- data/spec/models/principal_pagination_spec.rb +53 -0
- data/spec/models/principal_spec.rb +65 -0
- data/spec/models/resource_definition_filter_spec.rb +57 -0
- data/spec/models/resource_definition_spec.rb +41 -0
- data/spec/models/role_in_all_of_spec.rb +41 -0
- data/spec/models/role_in_spec.rb +53 -0
- data/spec/models/role_out_dynamic_all_of_spec.rb +77 -0
- data/spec/models/role_out_dynamic_spec.rb +107 -0
- data/spec/models/role_out_spec.rb +95 -0
- data/spec/models/role_pagination_dynamic_all_of_spec.rb +41 -0
- data/spec/models/role_pagination_dynamic_spec.rb +53 -0
- data/spec/models/role_pagination_spec.rb +53 -0
- data/spec/models/role_spec.rb +47 -0
- data/spec/models/role_with_access_spec.rb +101 -0
- data/spec/models/status_spec.rb +71 -0
- data/spec/models/timestamped_spec.rb +47 -0
- data/spec/models/uuid_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +338 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
=begin
|
|
4
|
+
#Role Based Access Control
|
|
5
|
+
|
|
6
|
+
#The API for Role Based Access Control.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
OpenAPI Generator version: 4.2.2
|
|
12
|
+
|
|
13
|
+
=end
|
|
14
|
+
|
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
16
|
+
require "rbac-api-client/version"
|
|
17
|
+
|
|
18
|
+
Gem::Specification.new do |s|
|
|
19
|
+
s.name = "rbac-api-client"
|
|
20
|
+
s.version = RBACApiClient::VERSION
|
|
21
|
+
s.platform = Gem::Platform::RUBY
|
|
22
|
+
s.authors = ["ManageIQ Authors"]
|
|
23
|
+
s.email = [""]
|
|
24
|
+
s.homepage = "https://github.com/ManageIQ/insights-rbac-api-client-ruby"
|
|
25
|
+
s.summary = "Role Based Access Control Ruby Gem"
|
|
26
|
+
s.description = "Ruby client gem to connect to Insights RBAC Service"
|
|
27
|
+
s.license = 'Apache-2.0'
|
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
|
29
|
+
|
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
32
|
+
|
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
|
+
|
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
|
37
|
+
s.executables = []
|
|
38
|
+
s.require_paths = ["lib"]
|
|
39
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Role Based Access Control
|
|
3
|
+
|
|
4
|
+
#The API for Role Based Access Control.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RBACApiClient::AccessApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AccessApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RBACApiClient::AccessApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AccessApi' do
|
|
30
|
+
it 'should create an instance of AccessApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RBACApiClient::AccessApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_principal_access
|
|
36
|
+
# Get the permitted access for a principal in the tenant (defaults to principal from the identity header)
|
|
37
|
+
# @param application The application name to obtain access for the principal
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :username Unique username of the principal to obtain access for (only available for admins, and if supplied, takes precedence over the identity header).
|
|
40
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
41
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
42
|
+
# @return [AccessPagination]
|
|
43
|
+
describe 'get_principal_access 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
|
+
end
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Role Based Access Control
|
|
3
|
+
|
|
4
|
+
#The API for Role Based Access Control.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RBACApiClient::GroupApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'GroupApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RBACApiClient::GroupApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of GroupApi' do
|
|
30
|
+
it 'should create an instance of GroupApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RBACApiClient::GroupApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_principal_to_group
|
|
36
|
+
# Add a principal to a group in the tenant
|
|
37
|
+
# @param uuid ID of group to update
|
|
38
|
+
# @param group_principal_in Principal to add to a group
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [GroupWithPrincipalsAndRoles]
|
|
41
|
+
describe 'add_principal_to_group test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for add_role_to_group
|
|
48
|
+
# Add a role to a group in the tenant
|
|
49
|
+
# @param uuid ID of group to update
|
|
50
|
+
# @param group_role_in Role to add to a group
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [InlineResponse200]
|
|
53
|
+
describe 'add_role_to_group test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for create_group
|
|
60
|
+
# Create a group in a tenant
|
|
61
|
+
# @param group Group to create in tenant
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @return [GroupOut]
|
|
64
|
+
describe 'create_group test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for delete_group
|
|
71
|
+
# Delete a group in the tenant
|
|
72
|
+
# @param uuid ID of group to delete
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @return [nil]
|
|
75
|
+
describe 'delete_group 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 delete_principal_from_group
|
|
82
|
+
# Remove a principal from a group in the tenant
|
|
83
|
+
# @param uuid ID of group to update
|
|
84
|
+
# @param usernames A comma separated list of usernames for principals to remove from the group
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @return [nil]
|
|
87
|
+
describe 'delete_principal_from_group 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 delete_role_from_group
|
|
94
|
+
# Remove a role from a group in the tenant
|
|
95
|
+
# @param uuid ID of group to update
|
|
96
|
+
# @param roles A comma separated list of role UUIDs for roles to remove from the group
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [nil]
|
|
99
|
+
describe 'delete_role_from_group test' do
|
|
100
|
+
it 'should work' do
|
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# unit tests for get_group
|
|
106
|
+
# Get a group in the tenant
|
|
107
|
+
# @param uuid ID of group to get
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @return [GroupWithPrincipalsAndRoles]
|
|
110
|
+
describe 'get_group test' do
|
|
111
|
+
it 'should work' do
|
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# unit tests for get_principals_from_group
|
|
117
|
+
# Get a list of principals from a group in the tenant
|
|
118
|
+
# @param uuid ID of group from which to get principals
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [String] :principal_username Parameter for filtering group principals by principal `username` using string contains search.
|
|
121
|
+
# @return [PrincipalPagination]
|
|
122
|
+
describe 'get_principals_from_group test' do
|
|
123
|
+
it 'should work' do
|
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# unit tests for list_groups
|
|
129
|
+
# List the groups for a tenant
|
|
130
|
+
# @param [Hash] opts the optional parameters
|
|
131
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
132
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
133
|
+
# @option opts [String] :name Parameter for filtering resource by name using string contains search.
|
|
134
|
+
# @option opts [String] :scope Parameter for filtering resource by scope.
|
|
135
|
+
# @option opts [String] :username A username for a principal to filter for groups
|
|
136
|
+
# @option opts [Array<String>] :uuid A list of UUIDs to filter listed groups.
|
|
137
|
+
# @option opts [Array<String>] :role_names List of role name to filter for groups. It is exact match but case-insensitive
|
|
138
|
+
# @option opts [String] :role_discriminator Discriminator that works with role_names to indicate matching all/any of the role names
|
|
139
|
+
# @option opts [String] :order_by Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
|
140
|
+
# @return [GroupPagination]
|
|
141
|
+
describe 'list_groups 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 list_roles_for_group
|
|
148
|
+
# List the roles for a group in the tenant
|
|
149
|
+
# @param uuid ID of group
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [Boolean] :exclude If this is set to true, the result would be roles excluding the ones in the group
|
|
152
|
+
# @option opts [String] :role_name Parameter for filtering group roles by role `name` using string contains search.
|
|
153
|
+
# @option opts [String] :role_description Parameter for filtering group roles by role `description` using string contains search.
|
|
154
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
155
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
156
|
+
# @option opts [String] :order_by Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
|
157
|
+
# @return [GroupRolesPagination]
|
|
158
|
+
describe 'list_roles_for_group test' do
|
|
159
|
+
it 'should work' do
|
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# unit tests for update_group
|
|
165
|
+
# Udate a group in the tenant
|
|
166
|
+
# @param uuid ID of group to update
|
|
167
|
+
# @param group Group to update in tenant
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [GroupOut]
|
|
170
|
+
describe 'update_group 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,97 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Role Based Access Control
|
|
3
|
+
|
|
4
|
+
#The API for Role Based Access Control.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RBACApiClient::PolicyApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PolicyApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RBACApiClient::PolicyApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PolicyApi' do
|
|
30
|
+
it 'should create an instance of PolicyApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RBACApiClient::PolicyApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_policies
|
|
36
|
+
# Create a policy in a tenant
|
|
37
|
+
# @param policy_in Policy to create
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [PolicyExtended]
|
|
40
|
+
describe 'create_policies test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for delete_policy
|
|
47
|
+
# Delete a policy in the tenant
|
|
48
|
+
# @param uuid ID of policy to delete
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [nil]
|
|
51
|
+
describe 'delete_policy test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# unit tests for get_policy
|
|
58
|
+
# Get a policy in the tenant
|
|
59
|
+
# @param uuid ID of policy to get
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @return [PolicyExtended]
|
|
62
|
+
describe 'get_policy test' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# unit tests for list_policies
|
|
69
|
+
# List the policies in the tenant
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
72
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
73
|
+
# @option opts [String] :name Parameter for filtering resource by name using string contains search.
|
|
74
|
+
# @option opts [String] :scope Parameter for filtering resource by scope.
|
|
75
|
+
# @option opts [String] :group_name Parameter for filtering resource by group name using string contains search.
|
|
76
|
+
# @option opts [String] :group_uuid Parameter for filtering resource by group uuid using UUID exact match.
|
|
77
|
+
# @option opts [String] :order_by Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
|
78
|
+
# @return [PolicyPagination]
|
|
79
|
+
describe 'list_policies test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for update_policy
|
|
86
|
+
# Update a policy in the tenant
|
|
87
|
+
# @param uuid ID of policy to update
|
|
88
|
+
# @param policy_in Policy to update
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [PolicyExtended]
|
|
91
|
+
describe 'update_policy 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
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Role Based Access Control
|
|
3
|
+
|
|
4
|
+
#The API for Role Based Access Control.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RBACApiClient::PrincipalApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PrincipalApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RBACApiClient::PrincipalApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PrincipalApi' do
|
|
30
|
+
it 'should create an instance of PrincipalApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RBACApiClient::PrincipalApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for list_principals
|
|
36
|
+
# List the principals for a tenant
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
39
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
40
|
+
# @option opts [String] :usernames Usernames of principals to get
|
|
41
|
+
# @option opts [String] :sort_order The sort order of the query, either ascending or descending
|
|
42
|
+
# @return [PrincipalPagination]
|
|
43
|
+
describe 'list_principals 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
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Role Based Access Control
|
|
3
|
+
|
|
4
|
+
#The API for Role Based Access Control.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for RBACApiClient::RoleApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RoleApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = RBACApiClient::RoleApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RoleApi' do
|
|
30
|
+
it 'should create an instance of RoleApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(RBACApiClient::RoleApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_roles
|
|
36
|
+
# Create a roles for a tenant
|
|
37
|
+
# @param role_in Role to create
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [RoleWithAccess]
|
|
40
|
+
describe 'create_roles test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for delete_role
|
|
47
|
+
# Delete a role in the tenant
|
|
48
|
+
# @param uuid ID of role to delete
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [nil]
|
|
51
|
+
describe 'delete_role test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# unit tests for get_role
|
|
58
|
+
# Get a role in the tenant
|
|
59
|
+
# @param uuid ID of role to get
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @return [RoleWithAccess]
|
|
62
|
+
describe 'get_role test' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# unit tests for get_role_access
|
|
69
|
+
# Get access for a role in the tenant
|
|
70
|
+
# @param uuid ID of the role
|
|
71
|
+
# @param [Hash] opts the optional parameters
|
|
72
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
73
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
74
|
+
# @return [AccessPagination]
|
|
75
|
+
describe 'get_role_access 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 list_roles
|
|
82
|
+
# List the roles for a tenant
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
|
85
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
|
86
|
+
# @option opts [String] :name Parameter for filtering resource by name using string contains search.
|
|
87
|
+
# @option opts [String] :scope Parameter for filtering resource by scope.
|
|
88
|
+
# @option opts [String] :order_by Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
|
89
|
+
# @option opts [Array<String>] :add_fields Parameter for add list of fields to display for roles.
|
|
90
|
+
# @option opts [String] :username Unique username of the principal to obtain roles for (only available for admins, and if supplied, takes precedence over the identity header).
|
|
91
|
+
# @return [RolePaginationDynamic]
|
|
92
|
+
describe 'list_roles test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# unit tests for update_role
|
|
99
|
+
# Update a Role in the tenant
|
|
100
|
+
# @param uuid ID of role to update
|
|
101
|
+
# @param role_with_access Update to a Role
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @return [nil]
|
|
104
|
+
describe 'update_role test' do
|
|
105
|
+
it 'should work' do
|
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
end
|