rbac-api-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +175 -0
  4. data/Rakefile +10 -0
  5. data/client-meta.json +8 -0
  6. data/docs/Access.md +19 -0
  7. data/docs/AccessApi.md +68 -0
  8. data/docs/AccessPagination.md +21 -0
  9. data/docs/AccessPaginationAllOf.md +17 -0
  10. data/docs/AdditionalGroup.md +19 -0
  11. data/docs/Error.md +17 -0
  12. data/docs/Error403.md +17 -0
  13. data/docs/Group.md +19 -0
  14. data/docs/GroupApi.md +623 -0
  15. data/docs/GroupOut.md +33 -0
  16. data/docs/GroupPagination.md +21 -0
  17. data/docs/GroupPaginationAllOf.md +17 -0
  18. data/docs/GroupPrincipalIn.md +17 -0
  19. data/docs/GroupRoleIn.md +17 -0
  20. data/docs/GroupRolesPagination.md +21 -0
  21. data/docs/GroupWithPrincipals.md +27 -0
  22. data/docs/GroupWithPrincipalsAllOf.md +17 -0
  23. data/docs/GroupWithPrincipalsAndRoles.md +29 -0
  24. data/docs/GroupWithPrincipalsAndRolesAllOf.md +19 -0
  25. data/docs/InlineResponse200.md +17 -0
  26. data/docs/ListPagination.md +19 -0
  27. data/docs/PaginationLinks.md +23 -0
  28. data/docs/PaginationMeta.md +17 -0
  29. data/docs/Policy.md +19 -0
  30. data/docs/PolicyApi.md +283 -0
  31. data/docs/PolicyExtended.md +29 -0
  32. data/docs/PolicyExtendedAllOf.md +19 -0
  33. data/docs/PolicyIn.md +23 -0
  34. data/docs/PolicyInAllOf.md +19 -0
  35. data/docs/PolicyPagination.md +21 -0
  36. data/docs/PolicyPaginationAllOf.md +17 -0
  37. data/docs/Principal.md +25 -0
  38. data/docs/PrincipalApi.md +68 -0
  39. data/docs/PrincipalIn.md +17 -0
  40. data/docs/PrincipalOut.md +27 -0
  41. data/docs/PrincipalPagination.md +21 -0
  42. data/docs/PrincipalPaginationAllOf.md +17 -0
  43. data/docs/ResourceDefinition.md +17 -0
  44. data/docs/ResourceDefinitionFilter.md +21 -0
  45. data/docs/Role.md +19 -0
  46. data/docs/RoleApi.md +340 -0
  47. data/docs/RoleIn.md +21 -0
  48. data/docs/RoleInAllOf.md +17 -0
  49. data/docs/RoleOut.md +35 -0
  50. data/docs/RoleOutDynamic.md +39 -0
  51. data/docs/RoleOutDynamicAllOf.md +29 -0
  52. data/docs/RolePagination.md +21 -0
  53. data/docs/RolePaginationDynamic.md +21 -0
  54. data/docs/RolePaginationDynamicAllOf.md +17 -0
  55. data/docs/RoleWithAccess.md +37 -0
  56. data/docs/Status.md +27 -0
  57. data/docs/StatusApi.md +56 -0
  58. data/docs/Timestamped.md +19 -0
  59. data/docs/UUID.md +17 -0
  60. data/generate.sh +7 -0
  61. data/git_push.sh +58 -0
  62. data/lib/rbac-api-client.rb +93 -0
  63. data/lib/rbac-api-client/api/access_api.rb +104 -0
  64. data/lib/rbac-api-client/api/group_api.rb +800 -0
  65. data/lib/rbac-api-client/api/policy_api.rb +363 -0
  66. data/lib/rbac-api-client/api/principal_api.rb +104 -0
  67. data/lib/rbac-api-client/api/role_api.rb +445 -0
  68. data/lib/rbac-api-client/api/status_api.rb +76 -0
  69. data/lib/rbac-api-client/api_client.rb +386 -0
  70. data/lib/rbac-api-client/api_error.rb +57 -0
  71. data/lib/rbac-api-client/configuration.rb +248 -0
  72. data/lib/rbac-api-client/models/access.rb +227 -0
  73. data/lib/rbac-api-client/models/access_pagination.rb +239 -0
  74. data/lib/rbac-api-client/models/access_pagination_all_of.rb +213 -0
  75. data/lib/rbac-api-client/models/additional_group.rb +215 -0
  76. data/lib/rbac-api-client/models/error.rb +213 -0
  77. data/lib/rbac-api-client/models/error403.rb +213 -0
  78. data/lib/rbac-api-client/models/group.rb +220 -0
  79. data/lib/rbac-api-client/models/group_out.rb +341 -0
  80. data/lib/rbac-api-client/models/group_pagination.rb +239 -0
  81. data/lib/rbac-api-client/models/group_pagination_all_of.rb +213 -0
  82. data/lib/rbac-api-client/models/group_principal_in.rb +213 -0
  83. data/lib/rbac-api-client/models/group_role_in.rb +213 -0
  84. data/lib/rbac-api-client/models/group_roles_pagination.rb +239 -0
  85. data/lib/rbac-api-client/models/group_with_principals.rb +288 -0
  86. data/lib/rbac-api-client/models/group_with_principals_all_of.rb +213 -0
  87. data/lib/rbac-api-client/models/group_with_principals_and_roles.rb +304 -0
  88. data/lib/rbac-api-client/models/group_with_principals_and_roles_all_of.rb +229 -0
  89. data/lib/rbac-api-client/models/inline_response200.rb +213 -0
  90. data/lib/rbac-api-client/models/list_pagination.rb +215 -0
  91. data/lib/rbac-api-client/models/pagination_links.rb +233 -0
  92. data/lib/rbac-api-client/models/pagination_meta.rb +206 -0
  93. data/lib/rbac-api-client/models/policy.rb +220 -0
  94. data/lib/rbac-api-client/models/policy_extended.rb +302 -0
  95. data/lib/rbac-api-client/models/policy_extended_all_of.rb +227 -0
  96. data/lib/rbac-api-client/models/policy_in.rb +258 -0
  97. data/lib/rbac-api-client/models/policy_in_all_of.rb +227 -0
  98. data/lib/rbac-api-client/models/policy_pagination.rb +239 -0
  99. data/lib/rbac-api-client/models/policy_pagination_all_of.rb +213 -0
  100. data/lib/rbac-api-client/models/principal.rb +252 -0
  101. data/lib/rbac-api-client/models/principal_in.rb +211 -0
  102. data/lib/rbac-api-client/models/principal_out.rb +274 -0
  103. data/lib/rbac-api-client/models/principal_pagination.rb +239 -0
  104. data/lib/rbac-api-client/models/principal_pagination_all_of.rb +213 -0
  105. data/lib/rbac-api-client/models/resource_definition.rb +211 -0
  106. data/lib/rbac-api-client/models/resource_definition_filter.rb +273 -0
  107. data/lib/rbac-api-client/models/role.rb +220 -0
  108. data/lib/rbac-api-client/models/role_in.rb +244 -0
  109. data/lib/rbac-api-client/models/role_in_all_of.rb +213 -0
  110. data/lib/rbac-api-client/models/role_out.rb +352 -0
  111. data/lib/rbac-api-client/models/role_out_dynamic.rb +421 -0
  112. data/lib/rbac-api-client/models/role_out_dynamic_all_of.rb +346 -0
  113. data/lib/rbac-api-client/models/role_pagination.rb +239 -0
  114. data/lib/rbac-api-client/models/role_pagination_dynamic.rb +239 -0
  115. data/lib/rbac-api-client/models/role_pagination_dynamic_all_of.rb +213 -0
  116. data/lib/rbac-api-client/models/role_with_access.rb +367 -0
  117. data/lib/rbac-api-client/models/status.rb +256 -0
  118. data/lib/rbac-api-client/models/timestamped.rb +225 -0
  119. data/lib/rbac-api-client/models/uuid.rb +211 -0
  120. data/lib/rbac-api-client/version.rb +15 -0
  121. data/openapi.json +2613 -0
  122. data/rbac-api-client.gemspec +39 -0
  123. data/spec/api/access_api_spec.rb +49 -0
  124. data/spec/api/group_api_spec.rb +176 -0
  125. data/spec/api/policy_api_spec.rb +97 -0
  126. data/spec/api/principal_api_spec.rb +49 -0
  127. data/spec/api/role_api_spec.rb +110 -0
  128. data/spec/api/status_api_spec.rb +45 -0
  129. data/spec/api_client_spec.rb +226 -0
  130. data/spec/configuration_spec.rb +42 -0
  131. data/spec/models/access_pagination_all_of_spec.rb +41 -0
  132. data/spec/models/access_pagination_spec.rb +53 -0
  133. data/spec/models/access_spec.rb +47 -0
  134. data/spec/models/additional_group_spec.rb +47 -0
  135. data/spec/models/error403_spec.rb +41 -0
  136. data/spec/models/error_spec.rb +41 -0
  137. data/spec/models/group_out_spec.rb +89 -0
  138. data/spec/models/group_pagination_all_of_spec.rb +41 -0
  139. data/spec/models/group_pagination_spec.rb +53 -0
  140. data/spec/models/group_principal_in_spec.rb +41 -0
  141. data/spec/models/group_role_in_spec.rb +41 -0
  142. data/spec/models/group_roles_pagination_spec.rb +53 -0
  143. data/spec/models/group_spec.rb +47 -0
  144. data/spec/models/group_with_principals_all_of_spec.rb +41 -0
  145. data/spec/models/group_with_principals_and_roles_all_of_spec.rb +47 -0
  146. data/spec/models/group_with_principals_and_roles_spec.rb +77 -0
  147. data/spec/models/group_with_principals_spec.rb +71 -0
  148. data/spec/models/inline_response200_spec.rb +41 -0
  149. data/spec/models/list_pagination_spec.rb +47 -0
  150. data/spec/models/pagination_links_spec.rb +59 -0
  151. data/spec/models/pagination_meta_spec.rb +41 -0
  152. data/spec/models/policy_extended_all_of_spec.rb +47 -0
  153. data/spec/models/policy_extended_spec.rb +77 -0
  154. data/spec/models/policy_in_all_of_spec.rb +47 -0
  155. data/spec/models/policy_in_spec.rb +59 -0
  156. data/spec/models/policy_pagination_all_of_spec.rb +41 -0
  157. data/spec/models/policy_pagination_spec.rb +53 -0
  158. data/spec/models/policy_spec.rb +47 -0
  159. data/spec/models/principal_in_spec.rb +41 -0
  160. data/spec/models/principal_out_spec.rb +71 -0
  161. data/spec/models/principal_pagination_all_of_spec.rb +41 -0
  162. data/spec/models/principal_pagination_spec.rb +53 -0
  163. data/spec/models/principal_spec.rb +65 -0
  164. data/spec/models/resource_definition_filter_spec.rb +57 -0
  165. data/spec/models/resource_definition_spec.rb +41 -0
  166. data/spec/models/role_in_all_of_spec.rb +41 -0
  167. data/spec/models/role_in_spec.rb +53 -0
  168. data/spec/models/role_out_dynamic_all_of_spec.rb +77 -0
  169. data/spec/models/role_out_dynamic_spec.rb +107 -0
  170. data/spec/models/role_out_spec.rb +95 -0
  171. data/spec/models/role_pagination_dynamic_all_of_spec.rb +41 -0
  172. data/spec/models/role_pagination_dynamic_spec.rb +53 -0
  173. data/spec/models/role_pagination_spec.rb +53 -0
  174. data/spec/models/role_spec.rb +47 -0
  175. data/spec/models/role_with_access_spec.rb +101 -0
  176. data/spec/models/status_spec.rb +71 -0
  177. data/spec/models/timestamped_spec.rb +47 -0
  178. data/spec/models/uuid_spec.rb +41 -0
  179. data/spec/spec_helper.rb +111 -0
  180. metadata +338 -0
@@ -0,0 +1,29 @@
1
+ # RBACApiClient::PolicyExtended
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **uuid** | **String** | |
10
+ **created** | **DateTime** | |
11
+ **modified** | **DateTime** | |
12
+ **group** | [**GroupOut**](GroupOut.md) | |
13
+ **roles** | [**Array<RoleOut>**](RoleOut.md) | |
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'RBACApiClient'
19
+
20
+ instance = RBACApiClient::PolicyExtended.new(name: PolicyA,
21
+ description: A description of PolicyA,
22
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
23
+ created: 2019-01-21T17:32:28Z,
24
+ modified: 2019-03-04T07:25:58Z,
25
+ group: null,
26
+ roles: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::PolicyExtendedAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **group** | [**GroupOut**](GroupOut.md) | |
8
+ **roles** | [**Array<RoleOut>**](RoleOut.md) | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::PolicyExtendedAllOf.new(group: null,
16
+ roles: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,23 @@
1
+ # RBACApiClient::PolicyIn
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **group** | **String** | |
10
+ **roles** | **Array<String>** | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'RBACApiClient'
16
+
17
+ instance = RBACApiClient::PolicyIn.new(name: PolicyA,
18
+ description: A description of PolicyA,
19
+ group: 83ee048e-3c1d-43ef-b945-108225ae52f4,
20
+ roles: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::PolicyInAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **group** | **String** | |
8
+ **roles** | **Array<String>** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::PolicyInAllOf.new(group: 83ee048e-3c1d-43ef-b945-108225ae52f4,
16
+ roles: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::PolicyPagination
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
+ **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
+ **data** | [**Array<PolicyExtended>**](PolicyExtended.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::PolicyPagination.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::PolicyPaginationAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**Array<PolicyExtended>**](PolicyExtended.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::PolicyPaginationAllOf.new(data: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,25 @@
1
+ # RBACApiClient::Principal
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **username** | **String** | |
8
+ **email** | **String** | |
9
+ **first_name** | **String** | | [optional]
10
+ **last_name** | **String** | | [optional]
11
+ **is_active** | **Boolean** | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'RBACApiClient'
17
+
18
+ instance = RBACApiClient::Principal.new(username: smithj,
19
+ email: smithj@mytechco.com,
20
+ first_name: John,
21
+ last_name: Smith,
22
+ is_active: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,68 @@
1
+ # RBACApiClient::PrincipalApi
2
+
3
+ All URIs are relative to *http://localhost/api/rbac/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_principals**](PrincipalApi.md#list_principals) | **GET** /principals/ | List the principals for a tenant
8
+
9
+
10
+
11
+ ## list_principals
12
+
13
+ > PrincipalPagination list_principals(opts)
14
+
15
+ List the principals for a tenant
16
+
17
+ ### Example
18
+
19
+ ```ruby
20
+ # load the gem
21
+ require 'rbac-api-client'
22
+ # setup authorization
23
+ RBACApiClient.configure do |config|
24
+ # Configure HTTP basic authorization: basic_auth
25
+ config.username = 'YOUR USERNAME'
26
+ config.password = 'YOUR PASSWORD'
27
+ end
28
+
29
+ api_instance = RBACApiClient::PrincipalApi.new
30
+ opts = {
31
+ limit: 10, # Integer | Parameter for selecting the amount of data returned.
32
+ offset: 0, # Integer | Parameter for selecting the offset of data.
33
+ usernames: 'usernames_example', # String | Usernames of principals to get
34
+ sort_order: 'sort_order_example' # String | The sort order of the query, either ascending or descending
35
+ }
36
+
37
+ begin
38
+ #List the principals for a tenant
39
+ result = api_instance.list_principals(opts)
40
+ p result
41
+ rescue RBACApiClient::ApiError => e
42
+ puts "Exception when calling PrincipalApi->list_principals: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **limit** | **Integer**| Parameter for selecting the amount of data returned. | [optional] [default to 10]
52
+ **offset** | **Integer**| Parameter for selecting the offset of data. | [optional] [default to 0]
53
+ **usernames** | **String**| Usernames of principals to get | [optional]
54
+ **sort_order** | **String**| The sort order of the query, either ascending or descending | [optional]
55
+
56
+ ### Return type
57
+
58
+ [**PrincipalPagination**](PrincipalPagination.md)
59
+
60
+ ### Authorization
61
+
62
+ [basic_auth](../README.md#basic_auth)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: Not defined
67
+ - **Accept**: application/json
68
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::PrincipalIn
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **username** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::PrincipalIn.new(username: smithj)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # RBACApiClient::PrincipalOut
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **username** | **String** | |
8
+ **email** | **String** | |
9
+ **first_name** | **String** | | [optional]
10
+ **last_name** | **String** | | [optional]
11
+ **is_active** | **Boolean** | | [optional]
12
+ **uuid** | **String** | |
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'RBACApiClient'
18
+
19
+ instance = RBACApiClient::PrincipalOut.new(username: smithj,
20
+ email: smithj@mytechco.com,
21
+ first_name: John,
22
+ last_name: Smith,
23
+ is_active: null,
24
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c)
25
+ ```
26
+
27
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::PrincipalPagination
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
+ **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
+ **data** | [**Array<Principal>**](Principal.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::PrincipalPagination.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::PrincipalPaginationAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**Array<Principal>**](Principal.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::PrincipalPaginationAllOf.new(data: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::ResourceDefinition
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **attribute_filter** | [**ResourceDefinitionFilter**](ResourceDefinitionFilter.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::ResourceDefinition.new(attribute_filter: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::ResourceDefinitionFilter
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **operation** | **String** | |
9
+ **value** | **String** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::ResourceDefinitionFilter.new(key: cost-management.aws.account,
17
+ operation: null,
18
+ value: 123456)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::Role
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | |
8
+ **description** | **String** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::Role.new(name: RoleA,
16
+ description: A description of RoleA)
17
+ ```
18
+
19
+
@@ -0,0 +1,340 @@
1
+ # RBACApiClient::RoleApi
2
+
3
+ All URIs are relative to *http://localhost/api/rbac/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_roles**](RoleApi.md#create_roles) | **POST** /roles/ | Create a roles for a tenant
8
+ [**delete_role**](RoleApi.md#delete_role) | **DELETE** /roles/{uuid}/ | Delete a role in the tenant
9
+ [**get_role**](RoleApi.md#get_role) | **GET** /roles/{uuid}/ | Get a role in the tenant
10
+ [**get_role_access**](RoleApi.md#get_role_access) | **GET** /roles/{uuid}/access/ | Get access for a role in the tenant
11
+ [**list_roles**](RoleApi.md#list_roles) | **GET** /roles/ | List the roles for a tenant
12
+ [**update_role**](RoleApi.md#update_role) | **PUT** /roles/{uuid}/ | Update a Role in the tenant
13
+
14
+
15
+
16
+ ## create_roles
17
+
18
+ > RoleWithAccess create_roles(role_in)
19
+
20
+ Create a roles for a tenant
21
+
22
+ ### Example
23
+
24
+ ```ruby
25
+ # load the gem
26
+ require 'rbac-api-client'
27
+ # setup authorization
28
+ RBACApiClient.configure do |config|
29
+ # Configure HTTP basic authorization: basic_auth
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = RBACApiClient::RoleApi.new
35
+ role_in = RBACApiClient::RoleIn.new # RoleIn | Role to create
36
+
37
+ begin
38
+ #Create a roles for a tenant
39
+ result = api_instance.create_roles(role_in)
40
+ p result
41
+ rescue RBACApiClient::ApiError => e
42
+ puts "Exception when calling RoleApi->create_roles: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **role_in** | [**RoleIn**](RoleIn.md)| Role to create |
52
+
53
+ ### Return type
54
+
55
+ [**RoleWithAccess**](RoleWithAccess.md)
56
+
57
+ ### Authorization
58
+
59
+ [basic_auth](../README.md#basic_auth)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+ ## delete_role
68
+
69
+ > delete_role(uuid)
70
+
71
+ Delete a role in the tenant
72
+
73
+ ### Example
74
+
75
+ ```ruby
76
+ # load the gem
77
+ require 'rbac-api-client'
78
+ # setup authorization
79
+ RBACApiClient.configure do |config|
80
+ # Configure HTTP basic authorization: basic_auth
81
+ config.username = 'YOUR USERNAME'
82
+ config.password = 'YOUR PASSWORD'
83
+ end
84
+
85
+ api_instance = RBACApiClient::RoleApi.new
86
+ uuid = 'uuid_example' # String | ID of role to delete
87
+
88
+ begin
89
+ #Delete a role in the tenant
90
+ api_instance.delete_role(uuid)
91
+ rescue RBACApiClient::ApiError => e
92
+ puts "Exception when calling RoleApi->delete_role: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+
99
+ Name | Type | Description | Notes
100
+ ------------- | ------------- | ------------- | -------------
101
+ **uuid** | [**String**](.md)| ID of role to delete |
102
+
103
+ ### Return type
104
+
105
+ nil (empty response body)
106
+
107
+ ### Authorization
108
+
109
+ [basic_auth](../README.md#basic_auth)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+ ## get_role
118
+
119
+ > RoleWithAccess get_role(uuid)
120
+
121
+ Get a role in the tenant
122
+
123
+ ### Example
124
+
125
+ ```ruby
126
+ # load the gem
127
+ require 'rbac-api-client'
128
+ # setup authorization
129
+ RBACApiClient.configure do |config|
130
+ # Configure HTTP basic authorization: basic_auth
131
+ config.username = 'YOUR USERNAME'
132
+ config.password = 'YOUR PASSWORD'
133
+ end
134
+
135
+ api_instance = RBACApiClient::RoleApi.new
136
+ uuid = 'uuid_example' # String | ID of role to get
137
+
138
+ begin
139
+ #Get a role in the tenant
140
+ result = api_instance.get_role(uuid)
141
+ p result
142
+ rescue RBACApiClient::ApiError => e
143
+ puts "Exception when calling RoleApi->get_role: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+
150
+ Name | Type | Description | Notes
151
+ ------------- | ------------- | ------------- | -------------
152
+ **uuid** | [**String**](.md)| ID of role to get |
153
+
154
+ ### Return type
155
+
156
+ [**RoleWithAccess**](RoleWithAccess.md)
157
+
158
+ ### Authorization
159
+
160
+ [basic_auth](../README.md#basic_auth)
161
+
162
+ ### HTTP request headers
163
+
164
+ - **Content-Type**: Not defined
165
+ - **Accept**: application/json
166
+
167
+
168
+ ## get_role_access
169
+
170
+ > AccessPagination get_role_access(uuid, opts)
171
+
172
+ Get access for a role in the tenant
173
+
174
+ ### Example
175
+
176
+ ```ruby
177
+ # load the gem
178
+ require 'rbac-api-client'
179
+ # setup authorization
180
+ RBACApiClient.configure do |config|
181
+ # Configure HTTP basic authorization: basic_auth
182
+ config.username = 'YOUR USERNAME'
183
+ config.password = 'YOUR PASSWORD'
184
+ end
185
+
186
+ api_instance = RBACApiClient::RoleApi.new
187
+ uuid = 'uuid_example' # String | ID of the role
188
+ opts = {
189
+ limit: 10, # Integer | Parameter for selecting the amount of data returned.
190
+ offset: 0 # Integer | Parameter for selecting the offset of data.
191
+ }
192
+
193
+ begin
194
+ #Get access for a role in the tenant
195
+ result = api_instance.get_role_access(uuid, opts)
196
+ p result
197
+ rescue RBACApiClient::ApiError => e
198
+ puts "Exception when calling RoleApi->get_role_access: #{e}"
199
+ end
200
+ ```
201
+
202
+ ### Parameters
203
+
204
+
205
+ Name | Type | Description | Notes
206
+ ------------- | ------------- | ------------- | -------------
207
+ **uuid** | [**String**](.md)| ID of the role |
208
+ **limit** | **Integer**| Parameter for selecting the amount of data returned. | [optional] [default to 10]
209
+ **offset** | **Integer**| Parameter for selecting the offset of data. | [optional] [default to 0]
210
+
211
+ ### Return type
212
+
213
+ [**AccessPagination**](AccessPagination.md)
214
+
215
+ ### Authorization
216
+
217
+ [basic_auth](../README.md#basic_auth)
218
+
219
+ ### HTTP request headers
220
+
221
+ - **Content-Type**: Not defined
222
+ - **Accept**: application/json
223
+
224
+
225
+ ## list_roles
226
+
227
+ > RolePaginationDynamic list_roles(opts)
228
+
229
+ List the roles for a tenant
230
+
231
+ ### Example
232
+
233
+ ```ruby
234
+ # load the gem
235
+ require 'rbac-api-client'
236
+ # setup authorization
237
+ RBACApiClient.configure do |config|
238
+ # Configure HTTP basic authorization: basic_auth
239
+ config.username = 'YOUR USERNAME'
240
+ config.password = 'YOUR PASSWORD'
241
+ end
242
+
243
+ api_instance = RBACApiClient::RoleApi.new
244
+ opts = {
245
+ limit: 10, # Integer | Parameter for selecting the amount of data returned.
246
+ offset: 0, # Integer | Parameter for selecting the offset of data.
247
+ name: 'name_example', # String | Parameter for filtering resource by name using string contains search.
248
+ scope: 'account', # String | Parameter for filtering resource by scope.
249
+ order_by: 'order_by_example', # String | Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
250
+ add_fields: ['add_fields_example'], # Array<String> | Parameter for add list of fields to display for roles.
251
+ username: 'username_example' # String | Unique username of the principal to obtain roles for (only available for admins, and if supplied, takes precedence over the identity header).
252
+ }
253
+
254
+ begin
255
+ #List the roles for a tenant
256
+ result = api_instance.list_roles(opts)
257
+ p result
258
+ rescue RBACApiClient::ApiError => e
259
+ puts "Exception when calling RoleApi->list_roles: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **limit** | **Integer**| Parameter for selecting the amount of data returned. | [optional] [default to 10]
269
+ **offset** | **Integer**| Parameter for selecting the offset of data. | [optional] [default to 0]
270
+ **name** | **String**| Parameter for filtering resource by name using string contains search. | [optional]
271
+ **scope** | **String**| Parameter for filtering resource by scope. | [optional] [default to &#39;account&#39;]
272
+ **order_by** | **String**| Parameter for ordering resource by value. For inverse ordering, supply &#39;-&#39; before the param value, such as: ?order_by&#x3D;-name | [optional]
273
+ **add_fields** | [**Array&lt;String&gt;**](String.md)| Parameter for add list of fields to display for roles. | [optional]
274
+ **username** | **String**| Unique username of the principal to obtain roles for (only available for admins, and if supplied, takes precedence over the identity header). | [optional]
275
+
276
+ ### Return type
277
+
278
+ [**RolePaginationDynamic**](RolePaginationDynamic.md)
279
+
280
+ ### Authorization
281
+
282
+ [basic_auth](../README.md#basic_auth)
283
+
284
+ ### HTTP request headers
285
+
286
+ - **Content-Type**: Not defined
287
+ - **Accept**: application/json
288
+
289
+
290
+ ## update_role
291
+
292
+ > update_role(uuid, role_with_access)
293
+
294
+ Update a Role in the tenant
295
+
296
+ ### Example
297
+
298
+ ```ruby
299
+ # load the gem
300
+ require 'rbac-api-client'
301
+ # setup authorization
302
+ RBACApiClient.configure do |config|
303
+ # Configure HTTP basic authorization: basic_auth
304
+ config.username = 'YOUR USERNAME'
305
+ config.password = 'YOUR PASSWORD'
306
+ end
307
+
308
+ api_instance = RBACApiClient::RoleApi.new
309
+ uuid = 'uuid_example' # String | ID of role to update
310
+ role_with_access = RBACApiClient::RoleWithAccess.new # RoleWithAccess | Update to a Role
311
+
312
+ begin
313
+ #Update a Role in the tenant
314
+ api_instance.update_role(uuid, role_with_access)
315
+ rescue RBACApiClient::ApiError => e
316
+ puts "Exception when calling RoleApi->update_role: #{e}"
317
+ end
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+
323
+ Name | Type | Description | Notes
324
+ ------------- | ------------- | ------------- | -------------
325
+ **uuid** | [**String**](.md)| ID of role to update |
326
+ **role_with_access** | [**RoleWithAccess**](RoleWithAccess.md)| Update to a Role |
327
+
328
+ ### Return type
329
+
330
+ nil (empty response body)
331
+
332
+ ### Authorization
333
+
334
+ [basic_auth](../README.md#basic_auth)
335
+
336
+ ### HTTP request headers
337
+
338
+ - **Content-Type**: application/json
339
+ - **Accept**: application/json
340
+