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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +49 -22
- data/client-meta.json +1 -1
- data/docs/Access.md +10 -9
- data/docs/AccessApi.md +39 -19
- data/docs/AccessPagination.md +12 -11
- data/docs/AddRoleToGroup200Response.md +18 -0
- data/docs/AdditionalGroup.md +12 -11
- data/docs/CrossAccountRequest.md +30 -0
- data/docs/CrossAccountRequestApi.md +386 -0
- data/docs/CrossAccountRequestByAccount.md +36 -0
- data/docs/CrossAccountRequestByUserId.md +32 -0
- data/docs/CrossAccountRequestDetail.md +49 -0
- data/docs/CrossAccountRequestDetailByAccount.md +38 -0
- data/docs/CrossAccountRequestDetailByUseId.md +34 -0
- data/docs/CrossAccountRequestIn.md +26 -0
- data/docs/CrossAccountRequestOut.md +34 -0
- data/docs/CrossAccountRequestPagination.md +22 -0
- data/docs/CrossAccountRequestPaginationAllOfDataInner.md +49 -0
- data/docs/CrossAccountRequestPatch.md +24 -0
- data/docs/CrossAccountRequestUpdateIn.md +22 -0
- data/docs/CrossAccountRequestWithRoles.md +32 -0
- data/docs/CrossAccountRequestWithRolesRolesInner.md +22 -0
- data/docs/Error.md +8 -7
- data/docs/Error403.md +8 -7
- data/docs/Error403ErrorsInner.md +22 -0
- data/docs/ErrorErrorsInner.md +20 -0
- data/docs/ErrorNotFound.md +18 -0
- data/docs/ErrorNotFoundErrorsInner.md +22 -0
- data/docs/Group.md +10 -9
- data/docs/GroupApi.md +369 -163
- data/docs/GroupOut.md +26 -23
- data/docs/GroupPagination.md +12 -11
- data/docs/GroupPrincipalIn.md +8 -7
- data/docs/GroupRoleIn.md +8 -7
- data/docs/GroupRolesPagination.md +12 -11
- data/docs/GroupWithPrincipals.md +18 -17
- data/docs/GroupWithPrincipalsAndRoles.md +20 -19
- data/docs/ListPagination.md +10 -9
- data/docs/PaginationLinks.md +14 -13
- data/docs/PaginationMeta.md +8 -7
- data/docs/Permission.md +26 -0
- data/docs/PermissionApi.md +185 -0
- data/docs/PermissionOptionsPagination.md +22 -0
- data/docs/PermissionPagination.md +22 -0
- data/docs/Policy.md +10 -9
- data/docs/PolicyApi.md +153 -69
- data/docs/PolicyExtended.md +20 -19
- data/docs/PolicyIn.md +14 -13
- data/docs/PolicyPagination.md +12 -11
- data/docs/Principal.md +20 -15
- data/docs/PrincipalApi.md +49 -23
- data/docs/PrincipalExternalSourceId.md +49 -0
- data/docs/PrincipalIn.md +8 -7
- data/docs/PrincipalMinimal.md +18 -0
- data/docs/PrincipalOut.md +22 -17
- data/docs/PrincipalPagination.md +12 -11
- data/docs/PrincipalPaginationAllOfDataInner.md +49 -0
- data/docs/ResourceDefinition.md +8 -7
- data/docs/ResourceDefinitionFilter.md +12 -11
- data/docs/ResourceDefinitionFilterValue.md +49 -0
- data/docs/ResourceDefinitionFilterValueOneOfInner.md +47 -0
- data/docs/Role.md +12 -9
- data/docs/RoleApi.md +279 -89
- data/docs/RoleIn.md +14 -11
- data/docs/RoleOut.md +34 -25
- data/docs/RoleOutDynamic.md +40 -29
- data/docs/RolePagination.md +12 -11
- data/docs/RolePaginationDynamic.md +12 -11
- data/docs/RolePatch.md +22 -0
- data/docs/RoleWithAccess.md +36 -27
- data/docs/Status.md +10 -17
- data/docs/StatusApi.md +27 -10
- data/docs/Timestamped.md +10 -9
- data/docs/UUID.md +8 -7
- data/git_push.sh +3 -4
- data/insights-rbac-api-client.gemspec +3 -4
- data/lib/insights-rbac-api-client/api/access_api.rb +21 -6
- data/lib/insights-rbac-api-client/api/cross_account_request_api.rb +423 -0
- data/lib/insights-rbac-api-client/api/group_api.rb +120 -55
- data/lib/insights-rbac-api-client/api/permission_api.rb +243 -0
- data/lib/insights-rbac-api-client/api/policy_api.rb +38 -23
- data/lib/insights-rbac-api-client/api/principal_api.rb +44 -12
- data/lib/insights-rbac-api-client/api/role_api.rb +154 -41
- data/lib/insights-rbac-api-client/api/status_api.rb +5 -4
- data/lib/insights-rbac-api-client/api_client.rb +57 -51
- data/lib/insights-rbac-api-client/api_error.rb +2 -1
- data/lib/insights-rbac-api-client/configuration.rb +62 -13
- data/lib/insights-rbac-api-client/models/access.rb +34 -22
- data/lib/insights-rbac-api-client/models/access_pagination.rb +32 -23
- data/lib/insights-rbac-api-client/models/{inline_response200.rb → add_role_to_group200_response.rb} +35 -25
- data/lib/insights-rbac-api-client/models/additional_group.rb +30 -22
- data/lib/insights-rbac-api-client/models/cross_account_request.rb +270 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_by_account.rb +304 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_by_user_id.rb +286 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_detail.rb +105 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_detail_by_account.rb +316 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_detail_by_use_id.rb +296 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_in.rb +280 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_out.rb +295 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_pagination.rb +248 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_pagination_all_of_data_inner.rb +105 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_patch.rb +277 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_update_in.rb +255 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_with_roles.rb +279 -0
- data/lib/insights-rbac-api-client/models/cross_account_request_with_roles_roles_inner.rb +234 -0
- data/lib/insights-rbac-api-client/models/error.rb +33 -23
- data/lib/insights-rbac-api-client/models/error403.rb +33 -23
- data/lib/insights-rbac-api-client/models/{policy_extended_all_of.rb → error403_errors_inner.rb} +55 -50
- data/lib/insights-rbac-api-client/models/{group_with_principals_all_of.rb → error_errors_inner.rb} +49 -39
- data/lib/insights-rbac-api-client/models/{policy_in_all_of.rb → error_not_found.rb} +47 -50
- data/lib/insights-rbac-api-client/models/{principal_pagination_all_of.rb → error_not_found_errors_inner.rb} +61 -39
- data/lib/insights-rbac-api-client/models/group.rb +32 -22
- data/lib/insights-rbac-api-client/models/group_out.rb +65 -30
- data/lib/insights-rbac-api-client/models/group_pagination.rb +32 -23
- data/lib/insights-rbac-api-client/models/group_principal_in.rb +32 -22
- data/lib/insights-rbac-api-client/models/group_role_in.rb +32 -22
- data/lib/insights-rbac-api-client/models/group_roles_pagination.rb +32 -23
- data/lib/insights-rbac-api-client/models/group_with_principals.rb +42 -25
- data/lib/insights-rbac-api-client/models/group_with_principals_and_roles.rb +44 -25
- data/lib/insights-rbac-api-client/models/list_pagination.rb +30 -22
- data/lib/insights-rbac-api-client/models/pagination_links.rb +30 -22
- data/lib/insights-rbac-api-client/models/pagination_meta.rb +30 -22
- data/lib/insights-rbac-api-client/models/permission.rb +250 -0
- data/lib/insights-rbac-api-client/models/{policy_pagination_all_of.rb → permission_options_pagination.rb} +62 -27
- data/lib/insights-rbac-api-client/models/{group_pagination_all_of.rb → permission_pagination.rb} +62 -27
- data/lib/insights-rbac-api-client/models/policy.rb +32 -22
- data/lib/insights-rbac-api-client/models/policy_extended.rb +44 -25
- data/lib/insights-rbac-api-client/models/policy_in.rb +37 -24
- data/lib/insights-rbac-api-client/models/policy_pagination.rb +33 -24
- data/lib/insights-rbac-api-client/models/principal.rb +56 -26
- data/lib/insights-rbac-api-client/models/principal_external_source_id.rb +105 -0
- data/lib/insights-rbac-api-client/models/principal_in.rb +32 -22
- data/lib/insights-rbac-api-client/models/{access_pagination_all_of.rb → principal_minimal.rb} +45 -37
- data/lib/insights-rbac-api-client/models/principal_out.rb +55 -23
- data/lib/insights-rbac-api-client/models/principal_pagination.rb +34 -25
- data/lib/insights-rbac-api-client/models/principal_pagination_all_of_data_inner.rb +105 -0
- data/lib/insights-rbac-api-client/models/resource_definition.rb +32 -22
- data/lib/insights-rbac-api-client/models/resource_definition_filter.rb +37 -23
- data/lib/insights-rbac-api-client/models/resource_definition_filter_value.rb +105 -0
- data/lib/insights-rbac-api-client/models/resource_definition_filter_value_one_of_inner.rb +104 -0
- data/lib/insights-rbac-api-client/models/role.rb +42 -23
- data/lib/insights-rbac-api-client/models/role_in.rb +45 -25
- data/lib/insights-rbac-api-client/models/role_out.rb +92 -30
- data/lib/insights-rbac-api-client/models/role_out_dynamic.rb +109 -30
- data/lib/insights-rbac-api-client/models/role_pagination.rb +32 -23
- data/lib/insights-rbac-api-client/models/role_pagination_dynamic.rb +33 -24
- data/lib/insights-rbac-api-client/models/{group_with_principals_and_roles_all_of.rb → role_patch.rb} +55 -52
- data/lib/insights-rbac-api-client/models/role_with_access.rb +91 -28
- data/lib/insights-rbac-api-client/models/status.rb +36 -62
- data/lib/insights-rbac-api-client/models/timestamped.rb +36 -24
- data/lib/insights-rbac-api-client/models/uuid.rb +32 -22
- data/lib/insights-rbac-api-client/version.rb +2 -2
- data/lib/insights-rbac-api-client.rb +31 -13
- data/openapi.json +1741 -162
- data/spec/api/access_api_spec.rb +4 -2
- data/spec/api/cross_account_request_api_spec.rb +105 -0
- data/spec/api/group_api_spec.rb +26 -16
- data/spec/api/permission_api_spec.rb +75 -0
- data/spec/api/policy_api_spec.rb +7 -7
- data/spec/api/principal_api_spec.rb +10 -5
- data/spec/api/role_api_spec.rb +32 -13
- data/spec/api/status_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +6 -4
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/access_pagination_spec.rb +9 -14
- data/spec/models/access_spec.rb +8 -13
- data/spec/models/add_role_to_group200_response_spec.rb +36 -0
- data/spec/models/additional_group_spec.rb +9 -14
- data/spec/models/cross_account_request_by_account_spec.rb +90 -0
- data/spec/models/cross_account_request_by_user_id_spec.rb +78 -0
- data/spec/models/cross_account_request_detail_by_account_spec.rb +96 -0
- data/spec/models/cross_account_request_detail_by_use_id_spec.rb +84 -0
- data/spec/models/cross_account_request_detail_spec.rb +32 -0
- data/spec/models/cross_account_request_in_spec.rb +60 -0
- data/spec/models/cross_account_request_out_spec.rb +84 -0
- data/spec/models/cross_account_request_pagination_all_of_data_inner_spec.rb +32 -0
- data/spec/models/cross_account_request_pagination_spec.rb +48 -0
- data/spec/models/cross_account_request_patch_spec.rb +58 -0
- data/spec/models/cross_account_request_spec.rb +72 -0
- data/spec/models/cross_account_request_update_in_spec.rb +48 -0
- data/spec/models/cross_account_request_with_roles_roles_inner_spec.rb +48 -0
- data/spec/models/cross_account_request_with_roles_spec.rb +78 -0
- data/spec/models/error403_errors_inner_spec.rb +48 -0
- data/spec/models/error403_spec.rb +7 -12
- data/spec/models/error_errors_inner_spec.rb +42 -0
- data/spec/models/error_not_found_errors_inner_spec.rb +48 -0
- data/spec/models/error_not_found_spec.rb +36 -0
- data/spec/models/error_spec.rb +7 -12
- data/spec/models/group_out_spec.rb +21 -20
- data/spec/models/group_pagination_spec.rb +9 -14
- data/spec/models/group_principal_in_spec.rb +7 -12
- data/spec/models/group_role_in_spec.rb +7 -12
- data/spec/models/group_roles_pagination_spec.rb +9 -14
- data/spec/models/group_spec.rb +8 -13
- data/spec/models/group_with_principals_and_roles_spec.rb +13 -18
- data/spec/models/group_with_principals_spec.rb +12 -17
- data/spec/models/list_pagination_spec.rb +8 -13
- data/spec/models/pagination_links_spec.rb +10 -15
- data/spec/models/pagination_meta_spec.rb +7 -12
- data/spec/models/permission_options_pagination_spec.rb +48 -0
- data/spec/models/permission_pagination_spec.rb +48 -0
- data/spec/models/permission_spec.rb +60 -0
- data/spec/models/policy_extended_spec.rb +13 -18
- data/spec/models/policy_in_spec.rb +10 -15
- data/spec/models/policy_pagination_spec.rb +9 -14
- data/spec/models/policy_spec.rb +8 -13
- data/spec/models/principal_external_source_id_spec.rb +32 -0
- data/spec/models/principal_in_spec.rb +7 -12
- data/spec/models/principal_minimal_spec.rb +36 -0
- data/spec/models/principal_out_spec.rb +24 -17
- data/spec/models/principal_pagination_all_of_data_inner_spec.rb +32 -0
- data/spec/models/principal_pagination_spec.rb +9 -14
- data/spec/models/principal_spec.rb +23 -16
- data/spec/models/resource_definition_filter_spec.rb +10 -15
- data/spec/models/resource_definition_filter_value_one_of_inner_spec.rb +32 -0
- data/spec/models/resource_definition_filter_value_spec.rb +32 -0
- data/spec/models/resource_definition_spec.rb +7 -12
- data/spec/models/role_in_spec.rb +15 -14
- data/spec/models/role_out_dynamic_spec.rb +48 -23
- data/spec/models/role_out_spec.rb +40 -21
- data/spec/models/role_pagination_dynamic_spec.rb +9 -14
- data/spec/models/role_pagination_spec.rb +9 -14
- data/spec/models/role_patch_spec.rb +48 -0
- data/spec/models/role_spec.rb +14 -13
- data/spec/models/role_with_access_spec.rb +41 -22
- data/spec/models/status_spec.rb +8 -37
- data/spec/models/timestamped_spec.rb +8 -13
- data/spec/models/uuid_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +161 -109
- data/docs/AccessPaginationAllOf.md +0 -17
- data/docs/GroupPaginationAllOf.md +0 -17
- data/docs/GroupWithPrincipalsAllOf.md +0 -17
- data/docs/GroupWithPrincipalsAndRolesAllOf.md +0 -19
- data/docs/InlineResponse200.md +0 -17
- data/docs/PolicyExtendedAllOf.md +0 -19
- data/docs/PolicyInAllOf.md +0 -19
- data/docs/PolicyPaginationAllOf.md +0 -17
- data/docs/PrincipalPaginationAllOf.md +0 -17
- data/docs/RoleInAllOf.md +0 -17
- data/docs/RoleOutDynamicAllOf.md +0 -29
- data/docs/RolePaginationDynamicAllOf.md +0 -17
- data/lib/insights-rbac-api-client/models/role_in_all_of.rb +0 -213
- data/lib/insights-rbac-api-client/models/role_out_dynamic_all_of.rb +0 -346
- data/lib/insights-rbac-api-client/models/role_pagination_dynamic_all_of.rb +0 -213
- data/spec/models/access_pagination_all_of_spec.rb +0 -41
- data/spec/models/group_pagination_all_of_spec.rb +0 -41
- data/spec/models/group_with_principals_all_of_spec.rb +0 -41
- data/spec/models/group_with_principals_and_roles_all_of_spec.rb +0 -47
- data/spec/models/inline_response200_spec.rb +0 -41
- data/spec/models/policy_extended_all_of_spec.rb +0 -47
- data/spec/models/policy_in_all_of_spec.rb +0 -47
- data/spec/models/policy_pagination_all_of_spec.rb +0 -41
- data/spec/models/principal_pagination_all_of_spec.rb +0 -41
- data/spec/models/role_in_all_of_spec.rb +0 -41
- data/spec/models/role_out_dynamic_all_of_spec.rb +0 -77
- data/spec/models/role_pagination_dynamic_all_of_spec.rb +0 -41
data/docs/RoleOutDynamic.md
CHANGED
@@ -2,38 +2,49 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**name** | **String** | |
|
8
|
-
**
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
12
|
-
**
|
13
|
-
**
|
14
|
-
**
|
15
|
-
**
|
16
|
-
**
|
17
|
-
**
|
18
|
-
**
|
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
|
-
##
|
25
|
+
## Example
|
21
26
|
|
22
27
|
```ruby
|
23
|
-
require '
|
28
|
+
require 'insights-rbac-api-client'
|
24
29
|
|
25
|
-
instance = RBACApiClient::RoleOutDynamic.new(
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
data/docs/RolePagination.md
CHANGED
@@ -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
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'insights-rbac-api-client'
|
15
15
|
|
16
|
-
instance = RBACApiClient::RolePagination.new(
|
17
|
-
|
18
|
-
|
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
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'insights-rbac-api-client'
|
15
15
|
|
16
|
-
instance = RBACApiClient::RolePaginationDynamic.new(
|
17
|
-
|
18
|
-
|
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
|
+
|
data/docs/RoleWithAccess.md
CHANGED
@@ -2,36 +2,45 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**name** | **String** | |
|
8
|
-
**
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
12
|
-
**
|
13
|
-
**
|
14
|
-
**
|
15
|
-
**
|
16
|
-
**
|
17
|
-
**
|
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
|
-
##
|
23
|
+
## Example
|
20
24
|
|
21
25
|
```ruby
|
22
|
-
require '
|
26
|
+
require 'insights-rbac-api-client'
|
23
27
|
|
24
|
-
instance = RBACApiClient::RoleWithAccess.new(
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
##
|
10
|
+
## Example
|
15
11
|
|
16
12
|
```ruby
|
17
|
-
require '
|
13
|
+
require 'insights-rbac-api-client'
|
18
14
|
|
19
|
-
instance = RBACApiClient::Status.new(
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
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
|
-
###
|
16
|
+
### Examples
|
18
17
|
|
19
18
|
```ruby
|
20
|
-
|
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 "
|
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** | **
|
8
|
-
**modified** | **
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created** | **Time** | | |
|
8
|
+
| **modified** | **Time** | | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'insights-rbac-api-client'
|
14
14
|
|
15
|
-
instance = RBACApiClient::Timestamped.new(
|
16
|
-
|
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
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'insights-rbac-api-client'
|
13
13
|
|
14
|
-
instance = RBACApiClient::UUID.new(
|
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-
|
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
|
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}
|
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:
|
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 =
|
28
|
-
s.required_ruby_version = ">=
|
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:
|
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 '-' before the param value, such as: ?order_by=-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 [
|
41
|
-
# @option opts [
|
42
|
+
# @option opts [String] :order_by Parameter for ordering roles by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-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[:
|
96
|
+
post_body = opts[:debug_body]
|
83
97
|
|
84
98
|
# return_type
|
85
|
-
return_type = opts[:
|
99
|
+
return_type = opts[:debug_return_type] || 'AccessPagination'
|
86
100
|
|
87
101
|
# auth_names
|
88
|
-
auth_names = opts[:
|
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,
|