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,33 @@
1
+ # RBACApiClient::GroupOut
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
+ **principal_count** | **Integer** | | [optional]
13
+ **role_count** | **Integer** | | [optional]
14
+ **system** | **Boolean** | | [optional] [default to false]
15
+ **platform_default** | **Boolean** | | [optional] [default to false]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'RBACApiClient'
21
+
22
+ instance = RBACApiClient::GroupOut.new(name: GroupA,
23
+ description: A description of GroupA,
24
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
25
+ created: 2019-01-21T17:32:28Z,
26
+ modified: 2019-03-04T07:25:58Z,
27
+ principal_count: null,
28
+ role_count: null,
29
+ system: null,
30
+ platform_default: null)
31
+ ```
32
+
33
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::GroupPagination
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<GroupOut>**](GroupOut.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::GroupPagination.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::GroupPaginationAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**Array<GroupOut>**](GroupOut.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::GroupPaginationAllOf.new(data: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::GroupPrincipalIn
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **principals** | [**Array<PrincipalIn>**](PrincipalIn.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::GroupPrincipalIn.new(principals: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::GroupRoleIn
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **roles** | **Array<String>** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::GroupRoleIn.new(roles: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # RBACApiClient::GroupRolesPagination
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<RoleOut>**](RoleOut.md) | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'RBACApiClient'
15
+
16
+ instance = RBACApiClient::GroupRolesPagination.new(meta: null,
17
+ links: null,
18
+ data: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,27 @@
1
+ # RBACApiClient::GroupWithPrincipals
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
+ **principals** | [**Array<Principal>**](Principal.md) | |
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'RBACApiClient'
18
+
19
+ instance = RBACApiClient::GroupWithPrincipals.new(name: GroupA,
20
+ description: A description of GroupA,
21
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
22
+ created: 2019-01-21T17:32:28Z,
23
+ modified: 2019-03-04T07:25:58Z,
24
+ principals: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::GroupWithPrincipalsAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **principals** | [**Array<Principal>**](Principal.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::GroupWithPrincipalsAllOf.new(principals: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,29 @@
1
+ # RBACApiClient::GroupWithPrincipalsAndRoles
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
+ **principals** | [**Array<Principal>**](Principal.md) | |
13
+ **roles** | [**Array<RoleOut>**](RoleOut.md) | |
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'RBACApiClient'
19
+
20
+ instance = RBACApiClient::GroupWithPrincipalsAndRoles.new(name: GroupA,
21
+ description: A description of GroupA,
22
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
23
+ created: 2019-01-21T17:32:28Z,
24
+ modified: 2019-03-04T07:25:58Z,
25
+ principals: null,
26
+ roles: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::GroupWithPrincipalsAndRolesAllOf
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **principals** | [**Array<Principal>**](Principal.md) | |
8
+ **roles** | [**Array<RoleOut>**](RoleOut.md) | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::GroupWithPrincipalsAndRolesAllOf.new(principals: null,
16
+ roles: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::InlineResponse200
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **data** | [**Array<RoleOut>**](RoleOut.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::InlineResponse200.new(data: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::ListPagination
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
+ **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'RBACApiClient'
14
+
15
+ instance = RBACApiClient::ListPagination.new(meta: null,
16
+ links: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,23 @@
1
+ # RBACApiClient::PaginationLinks
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **first** | **String** | | [optional]
8
+ **previous** | **String** | | [optional]
9
+ **_next** | **String** | | [optional]
10
+ **last** | **String** | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'RBACApiClient'
16
+
17
+ instance = RBACApiClient::PaginationLinks.new(first: /api/v1/(resources)/?offset=0&limit=10,
18
+ previous: /api/v1/(resources)/?offset=20&limit=10,
19
+ _next: /api/v1/(resources)/?offset=40&limit=10,
20
+ last: /api/v1/(resources)/?offset=90&limit=10)
21
+ ```
22
+
23
+
@@ -0,0 +1,17 @@
1
+ # RBACApiClient::PaginationMeta
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'RBACApiClient'
13
+
14
+ instance = RBACApiClient::PaginationMeta.new(count: 30)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # RBACApiClient::Policy
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::Policy.new(name: PolicyA,
16
+ description: A description of PolicyA)
17
+ ```
18
+
19
+
@@ -0,0 +1,283 @@
1
+ # RBACApiClient::PolicyApi
2
+
3
+ All URIs are relative to *http://localhost/api/rbac/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_policies**](PolicyApi.md#create_policies) | **POST** /policies/ | Create a policy in a tenant
8
+ [**delete_policy**](PolicyApi.md#delete_policy) | **DELETE** /policies/{uuid}/ | Delete a policy in the tenant
9
+ [**get_policy**](PolicyApi.md#get_policy) | **GET** /policies/{uuid}/ | Get a policy in the tenant
10
+ [**list_policies**](PolicyApi.md#list_policies) | **GET** /policies/ | List the policies in the tenant
11
+ [**update_policy**](PolicyApi.md#update_policy) | **PUT** /policies/{uuid}/ | Update a policy in the tenant
12
+
13
+
14
+
15
+ ## create_policies
16
+
17
+ > PolicyExtended create_policies(policy_in)
18
+
19
+ Create a policy in a tenant
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'rbac-api-client'
26
+ # setup authorization
27
+ RBACApiClient.configure do |config|
28
+ # Configure HTTP basic authorization: basic_auth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = RBACApiClient::PolicyApi.new
34
+ policy_in = RBACApiClient::PolicyIn.new # PolicyIn | Policy to create
35
+
36
+ begin
37
+ #Create a policy in a tenant
38
+ result = api_instance.create_policies(policy_in)
39
+ p result
40
+ rescue RBACApiClient::ApiError => e
41
+ puts "Exception when calling PolicyApi->create_policies: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **policy_in** | [**PolicyIn**](PolicyIn.md)| Policy to create |
51
+
52
+ ### Return type
53
+
54
+ [**PolicyExtended**](PolicyExtended.md)
55
+
56
+ ### Authorization
57
+
58
+ [basic_auth](../README.md#basic_auth)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/json
64
+
65
+
66
+ ## delete_policy
67
+
68
+ > delete_policy(uuid)
69
+
70
+ Delete a policy in the tenant
71
+
72
+ ### Example
73
+
74
+ ```ruby
75
+ # load the gem
76
+ require 'rbac-api-client'
77
+ # setup authorization
78
+ RBACApiClient.configure do |config|
79
+ # Configure HTTP basic authorization: basic_auth
80
+ config.username = 'YOUR USERNAME'
81
+ config.password = 'YOUR PASSWORD'
82
+ end
83
+
84
+ api_instance = RBACApiClient::PolicyApi.new
85
+ uuid = 'uuid_example' # String | ID of policy to delete
86
+
87
+ begin
88
+ #Delete a policy in the tenant
89
+ api_instance.delete_policy(uuid)
90
+ rescue RBACApiClient::ApiError => e
91
+ puts "Exception when calling PolicyApi->delete_policy: #{e}"
92
+ end
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+
98
+ Name | Type | Description | Notes
99
+ ------------- | ------------- | ------------- | -------------
100
+ **uuid** | [**String**](.md)| ID of policy to delete |
101
+
102
+ ### Return type
103
+
104
+ nil (empty response body)
105
+
106
+ ### Authorization
107
+
108
+ [basic_auth](../README.md#basic_auth)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: Not defined
113
+ - **Accept**: application/json
114
+
115
+
116
+ ## get_policy
117
+
118
+ > PolicyExtended get_policy(uuid)
119
+
120
+ Get a policy in the tenant
121
+
122
+ ### Example
123
+
124
+ ```ruby
125
+ # load the gem
126
+ require 'rbac-api-client'
127
+ # setup authorization
128
+ RBACApiClient.configure do |config|
129
+ # Configure HTTP basic authorization: basic_auth
130
+ config.username = 'YOUR USERNAME'
131
+ config.password = 'YOUR PASSWORD'
132
+ end
133
+
134
+ api_instance = RBACApiClient::PolicyApi.new
135
+ uuid = 'uuid_example' # String | ID of policy to get
136
+
137
+ begin
138
+ #Get a policy in the tenant
139
+ result = api_instance.get_policy(uuid)
140
+ p result
141
+ rescue RBACApiClient::ApiError => e
142
+ puts "Exception when calling PolicyApi->get_policy: #{e}"
143
+ end
144
+ ```
145
+
146
+ ### Parameters
147
+
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **uuid** | [**String**](.md)| ID of policy to get |
152
+
153
+ ### Return type
154
+
155
+ [**PolicyExtended**](PolicyExtended.md)
156
+
157
+ ### Authorization
158
+
159
+ [basic_auth](../README.md#basic_auth)
160
+
161
+ ### HTTP request headers
162
+
163
+ - **Content-Type**: Not defined
164
+ - **Accept**: application/json
165
+
166
+
167
+ ## list_policies
168
+
169
+ > PolicyPagination list_policies(opts)
170
+
171
+ List the policies in the tenant
172
+
173
+ ### Example
174
+
175
+ ```ruby
176
+ # load the gem
177
+ require 'rbac-api-client'
178
+ # setup authorization
179
+ RBACApiClient.configure do |config|
180
+ # Configure HTTP basic authorization: basic_auth
181
+ config.username = 'YOUR USERNAME'
182
+ config.password = 'YOUR PASSWORD'
183
+ end
184
+
185
+ api_instance = RBACApiClient::PolicyApi.new
186
+ opts = {
187
+ limit: 10, # Integer | Parameter for selecting the amount of data returned.
188
+ offset: 0, # Integer | Parameter for selecting the offset of data.
189
+ name: 'name_example', # String | Parameter for filtering resource by name using string contains search.
190
+ scope: 'account', # String | Parameter for filtering resource by scope.
191
+ group_name: 'group_name_example', # String | Parameter for filtering resource by group name using string contains search.
192
+ group_uuid: 'group_uuid_example', # String | Parameter for filtering resource by group uuid using UUID exact match.
193
+ 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
194
+ }
195
+
196
+ begin
197
+ #List the policies in the tenant
198
+ result = api_instance.list_policies(opts)
199
+ p result
200
+ rescue RBACApiClient::ApiError => e
201
+ puts "Exception when calling PolicyApi->list_policies: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+
208
+ Name | Type | Description | Notes
209
+ ------------- | ------------- | ------------- | -------------
210
+ **limit** | **Integer**| Parameter for selecting the amount of data returned. | [optional] [default to 10]
211
+ **offset** | **Integer**| Parameter for selecting the offset of data. | [optional] [default to 0]
212
+ **name** | **String**| Parameter for filtering resource by name using string contains search. | [optional]
213
+ **scope** | **String**| Parameter for filtering resource by scope. | [optional] [default to 'account']
214
+ **group_name** | **String**| Parameter for filtering resource by group name using string contains search. | [optional]
215
+ **group_uuid** | [**String**](.md)| Parameter for filtering resource by group uuid using UUID exact match. | [optional]
216
+ **order_by** | **String**| Parameter for ordering resource by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name | [optional]
217
+
218
+ ### Return type
219
+
220
+ [**PolicyPagination**](PolicyPagination.md)
221
+
222
+ ### Authorization
223
+
224
+ [basic_auth](../README.md#basic_auth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ## update_policy
233
+
234
+ > PolicyExtended update_policy(uuid, policy_in)
235
+
236
+ Update a policy in the tenant
237
+
238
+ ### Example
239
+
240
+ ```ruby
241
+ # load the gem
242
+ require 'rbac-api-client'
243
+ # setup authorization
244
+ RBACApiClient.configure do |config|
245
+ # Configure HTTP basic authorization: basic_auth
246
+ config.username = 'YOUR USERNAME'
247
+ config.password = 'YOUR PASSWORD'
248
+ end
249
+
250
+ api_instance = RBACApiClient::PolicyApi.new
251
+ uuid = 'uuid_example' # String | ID of policy to update
252
+ policy_in = RBACApiClient::PolicyIn.new # PolicyIn | Policy to update
253
+
254
+ begin
255
+ #Update a policy in the tenant
256
+ result = api_instance.update_policy(uuid, policy_in)
257
+ p result
258
+ rescue RBACApiClient::ApiError => e
259
+ puts "Exception when calling PolicyApi->update_policy: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **uuid** | [**String**](.md)| ID of policy to update |
269
+ **policy_in** | [**PolicyIn**](PolicyIn.md)| Policy to update |
270
+
271
+ ### Return type
272
+
273
+ [**PolicyExtended**](PolicyExtended.md)
274
+
275
+ ### Authorization
276
+
277
+ [basic_auth](../README.md#basic_auth)
278
+
279
+ ### HTTP request headers
280
+
281
+ - **Content-Type**: application/json
282
+ - **Accept**: application/json
283
+