insights-rbac-api-client 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +49 -22
  4. data/client-meta.json +1 -1
  5. data/docs/Access.md +10 -9
  6. data/docs/AccessApi.md +39 -19
  7. data/docs/AccessPagination.md +12 -11
  8. data/docs/AddRoleToGroup200Response.md +18 -0
  9. data/docs/AdditionalGroup.md +12 -11
  10. data/docs/CrossAccountRequest.md +30 -0
  11. data/docs/CrossAccountRequestApi.md +386 -0
  12. data/docs/CrossAccountRequestByAccount.md +36 -0
  13. data/docs/CrossAccountRequestByUserId.md +32 -0
  14. data/docs/CrossAccountRequestDetail.md +49 -0
  15. data/docs/CrossAccountRequestDetailByAccount.md +38 -0
  16. data/docs/CrossAccountRequestDetailByUseId.md +34 -0
  17. data/docs/CrossAccountRequestIn.md +26 -0
  18. data/docs/CrossAccountRequestOut.md +34 -0
  19. data/docs/CrossAccountRequestPagination.md +22 -0
  20. data/docs/CrossAccountRequestPaginationAllOfDataInner.md +49 -0
  21. data/docs/CrossAccountRequestPatch.md +24 -0
  22. data/docs/CrossAccountRequestUpdateIn.md +22 -0
  23. data/docs/CrossAccountRequestWithRoles.md +32 -0
  24. data/docs/CrossAccountRequestWithRolesRolesInner.md +22 -0
  25. data/docs/Error.md +8 -7
  26. data/docs/Error403.md +8 -7
  27. data/docs/Error403ErrorsInner.md +22 -0
  28. data/docs/ErrorErrorsInner.md +20 -0
  29. data/docs/ErrorNotFound.md +18 -0
  30. data/docs/ErrorNotFoundErrorsInner.md +22 -0
  31. data/docs/Group.md +10 -9
  32. data/docs/GroupApi.md +369 -163
  33. data/docs/GroupOut.md +26 -23
  34. data/docs/GroupPagination.md +12 -11
  35. data/docs/GroupPrincipalIn.md +8 -7
  36. data/docs/GroupRoleIn.md +8 -7
  37. data/docs/GroupRolesPagination.md +12 -11
  38. data/docs/GroupWithPrincipals.md +18 -17
  39. data/docs/GroupWithPrincipalsAndRoles.md +20 -19
  40. data/docs/ListPagination.md +10 -9
  41. data/docs/PaginationLinks.md +14 -13
  42. data/docs/PaginationMeta.md +8 -7
  43. data/docs/Permission.md +26 -0
  44. data/docs/PermissionApi.md +185 -0
  45. data/docs/PermissionOptionsPagination.md +22 -0
  46. data/docs/PermissionPagination.md +22 -0
  47. data/docs/Policy.md +10 -9
  48. data/docs/PolicyApi.md +153 -69
  49. data/docs/PolicyExtended.md +20 -19
  50. data/docs/PolicyIn.md +14 -13
  51. data/docs/PolicyPagination.md +12 -11
  52. data/docs/Principal.md +20 -15
  53. data/docs/PrincipalApi.md +49 -23
  54. data/docs/PrincipalExternalSourceId.md +49 -0
  55. data/docs/PrincipalIn.md +8 -7
  56. data/docs/PrincipalMinimal.md +18 -0
  57. data/docs/PrincipalOut.md +22 -17
  58. data/docs/PrincipalPagination.md +12 -11
  59. data/docs/PrincipalPaginationAllOfDataInner.md +49 -0
  60. data/docs/ResourceDefinition.md +8 -7
  61. data/docs/ResourceDefinitionFilter.md +12 -11
  62. data/docs/ResourceDefinitionFilterValue.md +49 -0
  63. data/docs/ResourceDefinitionFilterValueOneOfInner.md +47 -0
  64. data/docs/Role.md +12 -9
  65. data/docs/RoleApi.md +279 -89
  66. data/docs/RoleIn.md +14 -11
  67. data/docs/RoleOut.md +34 -25
  68. data/docs/RoleOutDynamic.md +40 -29
  69. data/docs/RolePagination.md +12 -11
  70. data/docs/RolePaginationDynamic.md +12 -11
  71. data/docs/RolePatch.md +22 -0
  72. data/docs/RoleWithAccess.md +36 -27
  73. data/docs/Status.md +10 -17
  74. data/docs/StatusApi.md +27 -10
  75. data/docs/Timestamped.md +10 -9
  76. data/docs/UUID.md +8 -7
  77. data/git_push.sh +3 -4
  78. data/insights-rbac-api-client.gemspec +3 -4
  79. data/lib/insights-rbac-api-client/api/access_api.rb +21 -6
  80. data/lib/insights-rbac-api-client/api/cross_account_request_api.rb +423 -0
  81. data/lib/insights-rbac-api-client/api/group_api.rb +120 -55
  82. data/lib/insights-rbac-api-client/api/permission_api.rb +243 -0
  83. data/lib/insights-rbac-api-client/api/policy_api.rb +38 -23
  84. data/lib/insights-rbac-api-client/api/principal_api.rb +44 -12
  85. data/lib/insights-rbac-api-client/api/role_api.rb +154 -41
  86. data/lib/insights-rbac-api-client/api/status_api.rb +5 -4
  87. data/lib/insights-rbac-api-client/api_client.rb +57 -51
  88. data/lib/insights-rbac-api-client/api_error.rb +2 -1
  89. data/lib/insights-rbac-api-client/configuration.rb +62 -13
  90. data/lib/insights-rbac-api-client/models/access.rb +34 -22
  91. data/lib/insights-rbac-api-client/models/access_pagination.rb +32 -23
  92. data/lib/insights-rbac-api-client/models/{inline_response200.rb → add_role_to_group200_response.rb} +35 -25
  93. data/lib/insights-rbac-api-client/models/additional_group.rb +30 -22
  94. data/lib/insights-rbac-api-client/models/cross_account_request.rb +270 -0
  95. data/lib/insights-rbac-api-client/models/cross_account_request_by_account.rb +304 -0
  96. data/lib/insights-rbac-api-client/models/cross_account_request_by_user_id.rb +286 -0
  97. data/lib/insights-rbac-api-client/models/cross_account_request_detail.rb +105 -0
  98. data/lib/insights-rbac-api-client/models/cross_account_request_detail_by_account.rb +316 -0
  99. data/lib/insights-rbac-api-client/models/cross_account_request_detail_by_use_id.rb +296 -0
  100. data/lib/insights-rbac-api-client/models/cross_account_request_in.rb +280 -0
  101. data/lib/insights-rbac-api-client/models/cross_account_request_out.rb +295 -0
  102. data/lib/insights-rbac-api-client/models/cross_account_request_pagination.rb +248 -0
  103. data/lib/insights-rbac-api-client/models/cross_account_request_pagination_all_of_data_inner.rb +105 -0
  104. data/lib/insights-rbac-api-client/models/cross_account_request_patch.rb +277 -0
  105. data/lib/insights-rbac-api-client/models/cross_account_request_update_in.rb +255 -0
  106. data/lib/insights-rbac-api-client/models/cross_account_request_with_roles.rb +279 -0
  107. data/lib/insights-rbac-api-client/models/cross_account_request_with_roles_roles_inner.rb +234 -0
  108. data/lib/insights-rbac-api-client/models/error.rb +33 -23
  109. data/lib/insights-rbac-api-client/models/error403.rb +33 -23
  110. data/lib/insights-rbac-api-client/models/{policy_extended_all_of.rb → error403_errors_inner.rb} +55 -50
  111. data/lib/insights-rbac-api-client/models/{group_with_principals_all_of.rb → error_errors_inner.rb} +49 -39
  112. data/lib/insights-rbac-api-client/models/{policy_in_all_of.rb → error_not_found.rb} +47 -50
  113. data/lib/insights-rbac-api-client/models/{principal_pagination_all_of.rb → error_not_found_errors_inner.rb} +61 -39
  114. data/lib/insights-rbac-api-client/models/group.rb +32 -22
  115. data/lib/insights-rbac-api-client/models/group_out.rb +65 -30
  116. data/lib/insights-rbac-api-client/models/group_pagination.rb +32 -23
  117. data/lib/insights-rbac-api-client/models/group_principal_in.rb +32 -22
  118. data/lib/insights-rbac-api-client/models/group_role_in.rb +32 -22
  119. data/lib/insights-rbac-api-client/models/group_roles_pagination.rb +32 -23
  120. data/lib/insights-rbac-api-client/models/group_with_principals.rb +42 -25
  121. data/lib/insights-rbac-api-client/models/group_with_principals_and_roles.rb +44 -25
  122. data/lib/insights-rbac-api-client/models/list_pagination.rb +30 -22
  123. data/lib/insights-rbac-api-client/models/pagination_links.rb +30 -22
  124. data/lib/insights-rbac-api-client/models/pagination_meta.rb +30 -22
  125. data/lib/insights-rbac-api-client/models/permission.rb +250 -0
  126. data/lib/insights-rbac-api-client/models/{policy_pagination_all_of.rb → permission_options_pagination.rb} +62 -27
  127. data/lib/insights-rbac-api-client/models/{group_pagination_all_of.rb → permission_pagination.rb} +62 -27
  128. data/lib/insights-rbac-api-client/models/policy.rb +32 -22
  129. data/lib/insights-rbac-api-client/models/policy_extended.rb +44 -25
  130. data/lib/insights-rbac-api-client/models/policy_in.rb +37 -24
  131. data/lib/insights-rbac-api-client/models/policy_pagination.rb +33 -24
  132. data/lib/insights-rbac-api-client/models/principal.rb +56 -26
  133. data/lib/insights-rbac-api-client/models/principal_external_source_id.rb +105 -0
  134. data/lib/insights-rbac-api-client/models/principal_in.rb +32 -22
  135. data/lib/insights-rbac-api-client/models/{access_pagination_all_of.rb → principal_minimal.rb} +45 -37
  136. data/lib/insights-rbac-api-client/models/principal_out.rb +55 -23
  137. data/lib/insights-rbac-api-client/models/principal_pagination.rb +34 -25
  138. data/lib/insights-rbac-api-client/models/principal_pagination_all_of_data_inner.rb +105 -0
  139. data/lib/insights-rbac-api-client/models/resource_definition.rb +32 -22
  140. data/lib/insights-rbac-api-client/models/resource_definition_filter.rb +37 -23
  141. data/lib/insights-rbac-api-client/models/resource_definition_filter_value.rb +105 -0
  142. data/lib/insights-rbac-api-client/models/resource_definition_filter_value_one_of_inner.rb +104 -0
  143. data/lib/insights-rbac-api-client/models/role.rb +42 -23
  144. data/lib/insights-rbac-api-client/models/role_in.rb +45 -25
  145. data/lib/insights-rbac-api-client/models/role_out.rb +92 -30
  146. data/lib/insights-rbac-api-client/models/role_out_dynamic.rb +109 -30
  147. data/lib/insights-rbac-api-client/models/role_pagination.rb +32 -23
  148. data/lib/insights-rbac-api-client/models/role_pagination_dynamic.rb +33 -24
  149. data/lib/insights-rbac-api-client/models/{group_with_principals_and_roles_all_of.rb → role_patch.rb} +55 -52
  150. data/lib/insights-rbac-api-client/models/role_with_access.rb +91 -28
  151. data/lib/insights-rbac-api-client/models/status.rb +36 -62
  152. data/lib/insights-rbac-api-client/models/timestamped.rb +36 -24
  153. data/lib/insights-rbac-api-client/models/uuid.rb +32 -22
  154. data/lib/insights-rbac-api-client/version.rb +2 -2
  155. data/lib/insights-rbac-api-client.rb +31 -13
  156. data/openapi.json +1741 -162
  157. data/spec/api/access_api_spec.rb +4 -2
  158. data/spec/api/cross_account_request_api_spec.rb +105 -0
  159. data/spec/api/group_api_spec.rb +26 -16
  160. data/spec/api/permission_api_spec.rb +75 -0
  161. data/spec/api/policy_api_spec.rb +7 -7
  162. data/spec/api/principal_api_spec.rb +10 -5
  163. data/spec/api/role_api_spec.rb +32 -13
  164. data/spec/api/status_api_spec.rb +2 -2
  165. data/spec/api_client_spec.rb +6 -4
  166. data/spec/configuration_spec.rb +4 -4
  167. data/spec/models/access_pagination_spec.rb +9 -14
  168. data/spec/models/access_spec.rb +8 -13
  169. data/spec/models/add_role_to_group200_response_spec.rb +36 -0
  170. data/spec/models/additional_group_spec.rb +9 -14
  171. data/spec/models/cross_account_request_by_account_spec.rb +90 -0
  172. data/spec/models/cross_account_request_by_user_id_spec.rb +78 -0
  173. data/spec/models/cross_account_request_detail_by_account_spec.rb +96 -0
  174. data/spec/models/cross_account_request_detail_by_use_id_spec.rb +84 -0
  175. data/spec/models/cross_account_request_detail_spec.rb +32 -0
  176. data/spec/models/cross_account_request_in_spec.rb +60 -0
  177. data/spec/models/cross_account_request_out_spec.rb +84 -0
  178. data/spec/models/cross_account_request_pagination_all_of_data_inner_spec.rb +32 -0
  179. data/spec/models/cross_account_request_pagination_spec.rb +48 -0
  180. data/spec/models/cross_account_request_patch_spec.rb +58 -0
  181. data/spec/models/cross_account_request_spec.rb +72 -0
  182. data/spec/models/cross_account_request_update_in_spec.rb +48 -0
  183. data/spec/models/cross_account_request_with_roles_roles_inner_spec.rb +48 -0
  184. data/spec/models/cross_account_request_with_roles_spec.rb +78 -0
  185. data/spec/models/error403_errors_inner_spec.rb +48 -0
  186. data/spec/models/error403_spec.rb +7 -12
  187. data/spec/models/error_errors_inner_spec.rb +42 -0
  188. data/spec/models/error_not_found_errors_inner_spec.rb +48 -0
  189. data/spec/models/error_not_found_spec.rb +36 -0
  190. data/spec/models/error_spec.rb +7 -12
  191. data/spec/models/group_out_spec.rb +21 -20
  192. data/spec/models/group_pagination_spec.rb +9 -14
  193. data/spec/models/group_principal_in_spec.rb +7 -12
  194. data/spec/models/group_role_in_spec.rb +7 -12
  195. data/spec/models/group_roles_pagination_spec.rb +9 -14
  196. data/spec/models/group_spec.rb +8 -13
  197. data/spec/models/group_with_principals_and_roles_spec.rb +13 -18
  198. data/spec/models/group_with_principals_spec.rb +12 -17
  199. data/spec/models/list_pagination_spec.rb +8 -13
  200. data/spec/models/pagination_links_spec.rb +10 -15
  201. data/spec/models/pagination_meta_spec.rb +7 -12
  202. data/spec/models/permission_options_pagination_spec.rb +48 -0
  203. data/spec/models/permission_pagination_spec.rb +48 -0
  204. data/spec/models/permission_spec.rb +60 -0
  205. data/spec/models/policy_extended_spec.rb +13 -18
  206. data/spec/models/policy_in_spec.rb +10 -15
  207. data/spec/models/policy_pagination_spec.rb +9 -14
  208. data/spec/models/policy_spec.rb +8 -13
  209. data/spec/models/principal_external_source_id_spec.rb +32 -0
  210. data/spec/models/principal_in_spec.rb +7 -12
  211. data/spec/models/principal_minimal_spec.rb +36 -0
  212. data/spec/models/principal_out_spec.rb +24 -17
  213. data/spec/models/principal_pagination_all_of_data_inner_spec.rb +32 -0
  214. data/spec/models/principal_pagination_spec.rb +9 -14
  215. data/spec/models/principal_spec.rb +23 -16
  216. data/spec/models/resource_definition_filter_spec.rb +10 -15
  217. data/spec/models/resource_definition_filter_value_one_of_inner_spec.rb +32 -0
  218. data/spec/models/resource_definition_filter_value_spec.rb +32 -0
  219. data/spec/models/resource_definition_spec.rb +7 -12
  220. data/spec/models/role_in_spec.rb +15 -14
  221. data/spec/models/role_out_dynamic_spec.rb +48 -23
  222. data/spec/models/role_out_spec.rb +40 -21
  223. data/spec/models/role_pagination_dynamic_spec.rb +9 -14
  224. data/spec/models/role_pagination_spec.rb +9 -14
  225. data/spec/models/role_patch_spec.rb +48 -0
  226. data/spec/models/role_spec.rb +14 -13
  227. data/spec/models/role_with_access_spec.rb +41 -22
  228. data/spec/models/status_spec.rb +8 -37
  229. data/spec/models/timestamped_spec.rb +8 -13
  230. data/spec/models/uuid_spec.rb +7 -12
  231. data/spec/spec_helper.rb +1 -1
  232. metadata +161 -109
  233. data/docs/AccessPaginationAllOf.md +0 -17
  234. data/docs/GroupPaginationAllOf.md +0 -17
  235. data/docs/GroupWithPrincipalsAllOf.md +0 -17
  236. data/docs/GroupWithPrincipalsAndRolesAllOf.md +0 -19
  237. data/docs/InlineResponse200.md +0 -17
  238. data/docs/PolicyExtendedAllOf.md +0 -19
  239. data/docs/PolicyInAllOf.md +0 -19
  240. data/docs/PolicyPaginationAllOf.md +0 -17
  241. data/docs/PrincipalPaginationAllOf.md +0 -17
  242. data/docs/RoleInAllOf.md +0 -17
  243. data/docs/RoleOutDynamicAllOf.md +0 -29
  244. data/docs/RolePaginationDynamicAllOf.md +0 -17
  245. data/lib/insights-rbac-api-client/models/role_in_all_of.rb +0 -213
  246. data/lib/insights-rbac-api-client/models/role_out_dynamic_all_of.rb +0 -346
  247. data/lib/insights-rbac-api-client/models/role_pagination_dynamic_all_of.rb +0 -213
  248. data/spec/models/access_pagination_all_of_spec.rb +0 -41
  249. data/spec/models/group_pagination_all_of_spec.rb +0 -41
  250. data/spec/models/group_with_principals_all_of_spec.rb +0 -41
  251. data/spec/models/group_with_principals_and_roles_all_of_spec.rb +0 -47
  252. data/spec/models/inline_response200_spec.rb +0 -41
  253. data/spec/models/policy_extended_all_of_spec.rb +0 -47
  254. data/spec/models/policy_in_all_of_spec.rb +0 -47
  255. data/spec/models/policy_pagination_all_of_spec.rb +0 -41
  256. data/spec/models/principal_pagination_all_of_spec.rb +0 -41
  257. data/spec/models/role_in_all_of_spec.rb +0 -41
  258. data/spec/models/role_out_dynamic_all_of_spec.rb +0 -77
  259. data/spec/models/role_pagination_dynamic_all_of_spec.rb +0 -41
@@ -2,38 +2,49 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | |
8
- **description** | **String** | | [optional]
9
- **uuid** | **String** | |
10
- **created** | **DateTime** | |
11
- **modified** | **DateTime** | |
12
- **policy_count** | **Integer** | |
13
- **access_count** | **Integer** | |
14
- **applications** | **Array<String>** | |
15
- **system** | **Boolean** | | [default to false]
16
- **platform_default** | **Boolean** | | [default to false]
17
- **groups_in_count** | **Integer** | | [optional]
18
- **groups_in** | [**Array<AdditionalGroup>**](AdditionalGroup.md) | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **display_name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **uuid** | **String** | | |
11
+ | **created** | **Time** | | |
12
+ | **modified** | **Time** | | |
13
+ | **policy_count** | **Integer** | | |
14
+ | **access_count** | **Integer** | | |
15
+ | **applications** | **Array<String>** | | |
16
+ | **system** | **Boolean** | | [default to false] |
17
+ | **platform_default** | **Boolean** | | [default to false] |
18
+ | **admin_default** | **Boolean** | | [default to false] |
19
+ | **groups_in_count** | **Integer** | | [optional] |
20
+ | **groups_in** | [**Array<AdditionalGroup>**](AdditionalGroup.md) | | [optional] |
21
+ | **external_role_id** | **String** | | [optional] |
22
+ | **external_tenant** | **String** | | [optional] |
23
+ | **access** | [**Array<Access>**](Access.md) | | [optional] |
19
24
 
20
- ## Code Sample
25
+ ## Example
21
26
 
22
27
  ```ruby
23
- require 'RBACApiClient'
28
+ require 'insights-rbac-api-client'
24
29
 
25
- instance = RBACApiClient::RoleOutDynamic.new(name: RoleA,
26
- description: A description of RoleA,
27
- uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
28
- created: 2019-01-21T17:32:28Z,
29
- modified: 2019-03-04T07:25:58Z,
30
- policy_count: null,
31
- access_count: null,
32
- applications: null,
33
- system: null,
34
- platform_default: null,
35
- groups_in_count: null,
36
- groups_in: null)
30
+ instance = RBACApiClient::RoleOutDynamic.new(
31
+ name: RoleA,
32
+ display_name: ARoleName,
33
+ description: A description of RoleA,
34
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
35
+ created: 2019-01-21T17:32:28Z,
36
+ modified: 2019-03-04T07:25:58Z,
37
+ policy_count: null,
38
+ access_count: null,
39
+ applications: null,
40
+ system: null,
41
+ platform_default: null,
42
+ admin_default: null,
43
+ groups_in_count: null,
44
+ groups_in: null,
45
+ external_role_id: ExternalRoleId,
46
+ external_tenant: ExternalTenant,
47
+ access: null
48
+ )
37
49
  ```
38
50
 
39
-
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
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) | |
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
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'RBACApiClient'
14
+ require 'insights-rbac-api-client'
15
15
 
16
- instance = RBACApiClient::RolePagination.new(meta: null,
17
- links: null,
18
- data: null)
16
+ instance = RBACApiClient::RolePagination.new(
17
+ meta: null,
18
+ links: null,
19
+ data: null
20
+ )
19
21
  ```
20
22
 
21
-
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional]
8
- **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional]
9
- **data** | [**Array<RoleOutDynamic>**](RoleOutDynamic.md) | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] |
8
+ | **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
9
+ | **data** | [**Array<RoleOutDynamic>**](RoleOutDynamic.md) | | |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'RBACApiClient'
14
+ require 'insights-rbac-api-client'
15
15
 
16
- instance = RBACApiClient::RolePaginationDynamic.new(meta: null,
17
- links: null,
18
- data: null)
16
+ instance = RBACApiClient::RolePaginationDynamic.new(
17
+ meta: null,
18
+ links: null,
19
+ data: null
20
+ )
19
21
  ```
20
22
 
21
-
data/docs/RolePatch.md ADDED
@@ -0,0 +1,22 @@
1
+ # RBACApiClient::RolePatch
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **display_name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'insights-rbac-api-client'
15
+
16
+ instance = RBACApiClient::RolePatch.new(
17
+ name: RoleA,
18
+ display_name: ARoleName,
19
+ description: A description of RoleA
20
+ )
21
+ ```
22
+
@@ -2,36 +2,45 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | |
8
- **description** | **String** | | [optional]
9
- **uuid** | **String** | |
10
- **created** | **DateTime** | |
11
- **modified** | **DateTime** | |
12
- **policy_count** | **Integer** | | [optional]
13
- **access_count** | **Integer** | | [optional]
14
- **applications** | **Array<String>** | | [optional]
15
- **system** | **Boolean** | | [optional] [default to false]
16
- **platform_default** | **Boolean** | | [optional] [default to false]
17
- **access** | [**Array<Access>**](Access.md) | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **display_name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **uuid** | **String** | | |
11
+ | **created** | **Time** | | |
12
+ | **modified** | **Time** | | |
13
+ | **policy_count** | **Integer** | | [optional] |
14
+ | **access_count** | **Integer** | | [optional] |
15
+ | **applications** | **Array<String>** | | [optional] |
16
+ | **system** | **Boolean** | | [optional][default to false] |
17
+ | **platform_default** | **Boolean** | | [optional][default to false] |
18
+ | **admin_default** | **Boolean** | | [optional][default to false] |
19
+ | **external_role_id** | **String** | | [optional] |
20
+ | **external_tenant** | **String** | | [optional] |
21
+ | **access** | [**Array<Access>**](Access.md) | | |
18
22
 
19
- ## Code Sample
23
+ ## Example
20
24
 
21
25
  ```ruby
22
- require 'RBACApiClient'
26
+ require 'insights-rbac-api-client'
23
27
 
24
- instance = RBACApiClient::RoleWithAccess.new(name: RoleA,
25
- description: A description of RoleA,
26
- uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
27
- created: 2019-01-21T17:32:28Z,
28
- modified: 2019-03-04T07:25:58Z,
29
- policy_count: null,
30
- access_count: null,
31
- applications: null,
32
- system: null,
33
- platform_default: null,
34
- access: null)
28
+ instance = RBACApiClient::RoleWithAccess.new(
29
+ name: RoleA,
30
+ display_name: ARoleName,
31
+ description: A description of RoleA,
32
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c,
33
+ created: 2019-01-21T17:32:28Z,
34
+ modified: 2019-03-04T07:25:58Z,
35
+ policy_count: null,
36
+ access_count: null,
37
+ applications: null,
38
+ system: null,
39
+ platform_default: null,
40
+ admin_default: null,
41
+ external_role_id: ExternalRoleId,
42
+ external_tenant: ExternalTenant,
43
+ access: null
44
+ )
35
45
  ```
36
46
 
37
-
data/docs/Status.md CHANGED
@@ -2,26 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **api_version** | **Integer** | |
8
- **commit** | **String** | | [optional]
9
- **server_address** | **String** | | [optional]
10
- **platform_info** | [**Object**](.md) | | [optional]
11
- **python_version** | **String** | | [optional]
12
- **modules** | [**Object**](.md) | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **api_version** | **Integer** | | |
8
+ | **commit** | **String** | | [optional] |
13
9
 
14
- ## Code Sample
10
+ ## Example
15
11
 
16
12
  ```ruby
17
- require 'RBACApiClient'
13
+ require 'insights-rbac-api-client'
18
14
 
19
- instance = RBACApiClient::Status.new(api_version: 1,
20
- commit: 178d2ea,
21
- server_address: 127.0.0.1:8000,
22
- platform_info: {"system":"Darwin","node":"node-1.example.com","release":"17.5.0","version":"Darwin Kernel Version 17.5.0","machine":"x86_64","processor":"i386"},
23
- python_version: 3.6.1,
24
- modules: {"coverage":"4.5.1","coverage.version":"4.5.1","coverage.xmlreport":"4.5.1","cryptography":"2.0.3","ctypes":"1.1.0","ctypes.macholib":"1.0","decimal":"1.70","django":"1.11.5","django.utils.six":"1.10.0","django_filters":"1.0.4","http.server":"0.6"})
15
+ instance = RBACApiClient::Status.new(
16
+ api_version: 1,
17
+ commit: 178d2ea
18
+ )
25
19
  ```
26
20
 
27
-
data/docs/StatusApi.md CHANGED
@@ -1,23 +1,22 @@
1
1
  # RBACApiClient::StatusApi
2
2
 
3
- All URIs are relative to *http://localhost/api/rbac/v1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_status**](StatusApi.md#get_status) | **GET** /status/ | Obtain server status
3
+ All URIs are relative to */api/rbac/v1*
8
4
 
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_status**](StatusApi.md#get_status) | **GET** /status/ | Obtain server status |
9
8
 
10
9
 
11
10
  ## get_status
12
11
 
13
- > Status get_status
12
+ > <Status> get_status
14
13
 
15
14
  Obtain server status
16
15
 
17
- ### Example
16
+ ### Examples
18
17
 
19
18
  ```ruby
20
- # load the gem
19
+ require 'time'
21
20
  require 'insights-rbac-api-client'
22
21
  # setup authorization
23
22
  RBACApiClient.configure do |config|
@@ -29,11 +28,29 @@ end
29
28
  api_instance = RBACApiClient::StatusApi.new
30
29
 
31
30
  begin
32
- #Obtain server status
31
+ # Obtain server status
33
32
  result = api_instance.get_status
34
33
  p result
35
34
  rescue RBACApiClient::ApiError => e
36
- puts "Exception when calling StatusApi->get_status: #{e}"
35
+ puts "Error when calling StatusApi->get_status: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the get_status_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<Status>, Integer, Hash)> get_status_with_http_info
44
+
45
+ ```ruby
46
+ begin
47
+ # Obtain server status
48
+ data, status_code, headers = api_instance.get_status_with_http_info
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <Status>
52
+ rescue RBACApiClient::ApiError => e
53
+ puts "Error when calling StatusApi->get_status_with_http_info: #{e}"
37
54
  end
38
55
  ```
39
56
 
data/docs/Timestamped.md CHANGED
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **created** | **DateTime** | |
8
- **modified** | **DateTime** | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created** | **Time** | | |
8
+ | **modified** | **Time** | | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'RBACApiClient'
13
+ require 'insights-rbac-api-client'
14
14
 
15
- instance = RBACApiClient::Timestamped.new(created: 2019-01-21T17:32:28Z,
16
- modified: 2019-03-04T07:25:58Z)
15
+ instance = RBACApiClient::Timestamped.new(
16
+ created: 2019-01-21T17:32:28Z,
17
+ modified: 2019-03-04T07:25:58Z
18
+ )
17
19
  ```
18
20
 
19
-
data/docs/UUID.md CHANGED
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **uuid** | **String** | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **uuid** | **String** | | |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'RBACApiClient'
12
+ require 'insights-rbac-api-client'
13
13
 
14
- instance = RBACApiClient::UUID.new(uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c)
14
+ instance = RBACApiClient::UUID.new(
15
+ uuid: 57e60f90-8c0c-4bd1-87a0-2143759aae1c
16
+ )
15
17
  ```
16
18
 
17
-
data/git_push.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
3
  #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
5
 
6
6
  git_user_id=$1
7
7
  git_repo_id=$2
@@ -38,14 +38,14 @@ git add .
38
38
  git commit -m "$release_note"
39
39
 
40
40
  # Sets the new remote
41
- git_remote=`git remote`
41
+ git_remote=$(git remote)
42
42
  if [ "$git_remote" = "" ]; then # git remote not defined
43
43
 
44
44
  if [ "$GIT_TOKEN" = "" ]; then
45
45
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
46
  git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
47
  else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
49
  fi
50
50
 
51
51
  fi
@@ -55,4 +55,3 @@ git pull origin master
55
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
56
56
  echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
57
  git push origin master 2>&1 | grep -v 'To https'
58
-
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0.0
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.2
11
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -24,11 +24,10 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://github.com/RedHatInsights/insights-rbac-api-client-ruby"
25
25
  s.summary = "Role Based Access Control Ruby Gem"
26
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"
27
+ s.license = "Apache-2.0"
28
+ s.required_ruby_version = ">= 2.7"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
31
 
33
32
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
33
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -24,6 +24,8 @@ module RBACApiClient
24
24
  # @param application [String] The application name(s) to obtain access for the principal. This is an exact match. When no application is supplied, all permissions for the principal are returned. You may also use a comma-separated list to match on multiple applications.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @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).
27
+ # @option opts [String] :order_by Parameter for ordering roles by value. For inverse ordering, supply &#39;-&#39; before the param value, such as: ?order_by&#x3D;-application
28
+ # @option opts [String] :status Set the status of users to get back. (default to 'enabled')
27
29
  # @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
28
30
  # @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
29
31
  # @return [AccessPagination]
@@ -37,8 +39,10 @@ module RBACApiClient
37
39
  # @param application [String] The application name(s) to obtain access for the principal. This is an exact match. When no application is supplied, all permissions for the principal are returned. You may also use a comma-separated list to match on multiple applications.
38
40
  # @param [Hash] opts the optional parameters
39
41
  # @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
+ # @option opts [String] :order_by Parameter for ordering roles by value. For inverse ordering, supply &#39;-&#39; before the param value, such as: ?order_by&#x3D;-application
43
+ # @option opts [String] :status Set the status of users to get back. (default to 'enabled')
44
+ # @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
45
+ # @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
42
46
  # @return [Array<(AccessPagination, Integer, Hash)>] AccessPagination data, response status code and response headers
43
47
  def get_principal_access_with_http_info(application, opts = {})
44
48
  if @api_client.config.debugging
@@ -48,6 +52,14 @@ module RBACApiClient
48
52
  if @api_client.config.client_side_validation && application.nil?
49
53
  fail ArgumentError, "Missing the required parameter 'application' when calling AccessApi.get_principal_access"
50
54
  end
55
+ allowable_values = ["application", "resource_type", "verb"]
56
+ if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
57
+ fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
58
+ end
59
+ allowable_values = ["enabled", "disabled", "all"]
60
+ if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
61
+ fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
62
+ end
51
63
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
52
64
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AccessApi.get_principal_access, must be smaller than or equal to 1000.'
53
65
  end
@@ -67,6 +79,8 @@ module RBACApiClient
67
79
  query_params = opts[:query_params] || {}
68
80
  query_params[:'application'] = application
69
81
  query_params[:'username'] = opts[:'username'] if !opts[:'username'].nil?
82
+ query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
83
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
70
84
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
71
85
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
72
86
 
@@ -79,15 +93,16 @@ module RBACApiClient
79
93
  form_params = opts[:form_params] || {}
80
94
 
81
95
  # http body (model)
82
- post_body = opts[:body]
96
+ post_body = opts[:debug_body]
83
97
 
84
98
  # return_type
85
- return_type = opts[:return_type] || 'AccessPagination'
99
+ return_type = opts[:debug_return_type] || 'AccessPagination'
86
100
 
87
101
  # auth_names
88
- auth_names = opts[:auth_names] || ['basic_auth']
102
+ auth_names = opts[:debug_auth_names] || ['basic_auth']
89
103
 
90
104
  new_options = opts.merge(
105
+ :operation => :"AccessApi.get_principal_access",
91
106
  :header_params => header_params,
92
107
  :query_params => query_params,
93
108
  :form_params => form_params,