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
@@ -0,0 +1,243 @@
|
|
1
|
+
=begin
|
2
|
+
#Role Based Access Control
|
3
|
+
|
4
|
+
#The API for Role Based Access Control.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module RBACApiClient
|
16
|
+
class PermissionApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List the available options for fields of permissions for a tenant
|
23
|
+
# By default, options of application is returned. And could be resource_type or verb on demand.
|
24
|
+
# @param field [String] specify which fields of permission to display
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
27
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
28
|
+
# @option opts [String] :application Filter returned options based on application. You may also use a comma-separated list to filter on multiple applications.
|
29
|
+
# @option opts [String] :resource_type Filter returned options based on resource_type. You may also use a comma-separated list to filter on multiple resource_types.
|
30
|
+
# @option opts [String] :verb Filter returned options based on verb. You may also use a comma-separated list to filter on multiple verbs.
|
31
|
+
# @option opts [String] :exclude_globals If set to 'true', this will exclude any permission option with a global allowance on the supplied '?field=' value of 'application', 'resource_type' or 'verb'. The default is 'false'. (default to 'false')
|
32
|
+
# @option opts [String] :allowed_only If set to 'true', this will exclude any permission with a role where the 'application' is not in the role create allow list. (default to 'false')
|
33
|
+
# @return [PermissionOptionsPagination]
|
34
|
+
def list_permission_options(field, opts = {})
|
35
|
+
data, _status_code, _headers = list_permission_options_with_http_info(field, opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# List the available options for fields of permissions for a tenant
|
40
|
+
# By default, options of application is returned. And could be resource_type or verb on demand.
|
41
|
+
# @param field [String] specify which fields of permission to display
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
44
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
45
|
+
# @option opts [String] :application Filter returned options based on application. You may also use a comma-separated list to filter on multiple applications.
|
46
|
+
# @option opts [String] :resource_type Filter returned options based on resource_type. You may also use a comma-separated list to filter on multiple resource_types.
|
47
|
+
# @option opts [String] :verb Filter returned options based on verb. You may also use a comma-separated list to filter on multiple verbs.
|
48
|
+
# @option opts [String] :exclude_globals If set to 'true', this will exclude any permission option with a global allowance on the supplied '?field=' value of 'application', 'resource_type' or 'verb'. The default is 'false'. (default to 'false')
|
49
|
+
# @option opts [String] :allowed_only If set to 'true', this will exclude any permission with a role where the 'application' is not in the role create allow list. (default to 'false')
|
50
|
+
# @return [Array<(PermissionOptionsPagination, Integer, Hash)>] PermissionOptionsPagination data, response status code and response headers
|
51
|
+
def list_permission_options_with_http_info(field, opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: PermissionApi.list_permission_options ...'
|
54
|
+
end
|
55
|
+
# verify the required parameter 'field' is set
|
56
|
+
if @api_client.config.client_side_validation && field.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'field' when calling PermissionApi.list_permission_options"
|
58
|
+
end
|
59
|
+
# verify enum value
|
60
|
+
allowable_values = ["application", "resource_type", "verb"]
|
61
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(field)
|
62
|
+
fail ArgumentError, "invalid value for \"field\", must be one of #{allowable_values}"
|
63
|
+
end
|
64
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
65
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PermissionApi.list_permission_options, must be smaller than or equal to 1000.'
|
66
|
+
end
|
67
|
+
|
68
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
69
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PermissionApi.list_permission_options, must be greater than or equal to 1.'
|
70
|
+
end
|
71
|
+
|
72
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
73
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PermissionApi.list_permission_options, must be greater than or equal to 0.'
|
74
|
+
end
|
75
|
+
|
76
|
+
allowable_values = ["true", "false"]
|
77
|
+
if @api_client.config.client_side_validation && opts[:'exclude_globals'] && !allowable_values.include?(opts[:'exclude_globals'])
|
78
|
+
fail ArgumentError, "invalid value for \"exclude_globals\", must be one of #{allowable_values}"
|
79
|
+
end
|
80
|
+
allowable_values = ["true", "false"]
|
81
|
+
if @api_client.config.client_side_validation && opts[:'allowed_only'] && !allowable_values.include?(opts[:'allowed_only'])
|
82
|
+
fail ArgumentError, "invalid value for \"allowed_only\", must be one of #{allowable_values}"
|
83
|
+
end
|
84
|
+
# resource path
|
85
|
+
local_var_path = '/permissions/options/'
|
86
|
+
|
87
|
+
# query parameters
|
88
|
+
query_params = opts[:query_params] || {}
|
89
|
+
query_params[:'field'] = field
|
90
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
91
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
92
|
+
query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
|
93
|
+
query_params[:'resource_type'] = opts[:'resource_type'] if !opts[:'resource_type'].nil?
|
94
|
+
query_params[:'verb'] = opts[:'verb'] if !opts[:'verb'].nil?
|
95
|
+
query_params[:'exclude_globals'] = opts[:'exclude_globals'] if !opts[:'exclude_globals'].nil?
|
96
|
+
query_params[:'allowed_only'] = opts[:'allowed_only'] if !opts[:'allowed_only'].nil?
|
97
|
+
|
98
|
+
# header parameters
|
99
|
+
header_params = opts[:header_params] || {}
|
100
|
+
# HTTP header 'Accept' (if needed)
|
101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
102
|
+
|
103
|
+
# form parameters
|
104
|
+
form_params = opts[:form_params] || {}
|
105
|
+
|
106
|
+
# http body (model)
|
107
|
+
post_body = opts[:debug_body]
|
108
|
+
|
109
|
+
# return_type
|
110
|
+
return_type = opts[:debug_return_type] || 'PermissionOptionsPagination'
|
111
|
+
|
112
|
+
# auth_names
|
113
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
114
|
+
|
115
|
+
new_options = opts.merge(
|
116
|
+
:operation => :"PermissionApi.list_permission_options",
|
117
|
+
:header_params => header_params,
|
118
|
+
:query_params => query_params,
|
119
|
+
:form_params => form_params,
|
120
|
+
:body => post_body,
|
121
|
+
:auth_names => auth_names,
|
122
|
+
:return_type => return_type
|
123
|
+
)
|
124
|
+
|
125
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug "API called: PermissionApi#list_permission_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
end
|
129
|
+
return data, status_code, headers
|
130
|
+
end
|
131
|
+
|
132
|
+
# List the permissions for a tenant
|
133
|
+
# By default, responses are sorted in ascending order by permission application.
|
134
|
+
# @param [Hash] opts the optional parameters
|
135
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
136
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
137
|
+
# @option opts [String] :order_by Parameter for ordering permissions by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-application
|
138
|
+
# @option opts [String] :application Exact match for the application name of a permission. You may also use a comma-separated list to match on multiple applications.
|
139
|
+
# @option opts [String] :resource_type Exact match for the resource type name of a permission. You may also use a comma-separated list to match on multiple resource_types.
|
140
|
+
# @option opts [String] :verb Exact match for the operation verb name of a permission You may also use a comma-separated list to match on multiple verbs.
|
141
|
+
# @option opts [String] :permission Partial match for the aggregate permission value name of a permission object.
|
142
|
+
# @option opts [String] :exclude_globals If set to 'true', this will exclude any permission with a global allowance on either 'application', 'resource_type' or 'verb'. The default is 'false'. (default to 'false')
|
143
|
+
# @option opts [String] :exclude_roles An optional string filter which accepts one or more role UUIDs, comma-separated, to return permissions not associated with the supplied role(s).
|
144
|
+
# @option opts [String] :allowed_only If set to 'true', this will exclude any permission with a role where the 'application' is not in the role create allow list. (default to 'false')
|
145
|
+
# @return [PermissionPagination]
|
146
|
+
def list_permissions(opts = {})
|
147
|
+
data, _status_code, _headers = list_permissions_with_http_info(opts)
|
148
|
+
data
|
149
|
+
end
|
150
|
+
|
151
|
+
# List the permissions for a tenant
|
152
|
+
# By default, responses are sorted in ascending order by permission application.
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
155
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
156
|
+
# @option opts [String] :order_by Parameter for ordering permissions by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-application
|
157
|
+
# @option opts [String] :application Exact match for the application name of a permission. You may also use a comma-separated list to match on multiple applications.
|
158
|
+
# @option opts [String] :resource_type Exact match for the resource type name of a permission. You may also use a comma-separated list to match on multiple resource_types.
|
159
|
+
# @option opts [String] :verb Exact match for the operation verb name of a permission You may also use a comma-separated list to match on multiple verbs.
|
160
|
+
# @option opts [String] :permission Partial match for the aggregate permission value name of a permission object.
|
161
|
+
# @option opts [String] :exclude_globals If set to 'true', this will exclude any permission with a global allowance on either 'application', 'resource_type' or 'verb'. The default is 'false'. (default to 'false')
|
162
|
+
# @option opts [String] :exclude_roles An optional string filter which accepts one or more role UUIDs, comma-separated, to return permissions not associated with the supplied role(s).
|
163
|
+
# @option opts [String] :allowed_only If set to 'true', this will exclude any permission with a role where the 'application' is not in the role create allow list. (default to 'false')
|
164
|
+
# @return [Array<(PermissionPagination, Integer, Hash)>] PermissionPagination data, response status code and response headers
|
165
|
+
def list_permissions_with_http_info(opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: PermissionApi.list_permissions ...'
|
168
|
+
end
|
169
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
170
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PermissionApi.list_permissions, must be smaller than or equal to 1000.'
|
171
|
+
end
|
172
|
+
|
173
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
174
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PermissionApi.list_permissions, must be greater than or equal to 1.'
|
175
|
+
end
|
176
|
+
|
177
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
178
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PermissionApi.list_permissions, must be greater than or equal to 0.'
|
179
|
+
end
|
180
|
+
|
181
|
+
allowable_values = ["application", "resource_type", "verb", "permission"]
|
182
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
183
|
+
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
184
|
+
end
|
185
|
+
allowable_values = ["true", "false"]
|
186
|
+
if @api_client.config.client_side_validation && opts[:'exclude_globals'] && !allowable_values.include?(opts[:'exclude_globals'])
|
187
|
+
fail ArgumentError, "invalid value for \"exclude_globals\", must be one of #{allowable_values}"
|
188
|
+
end
|
189
|
+
allowable_values = ["true", "false"]
|
190
|
+
if @api_client.config.client_side_validation && opts[:'allowed_only'] && !allowable_values.include?(opts[:'allowed_only'])
|
191
|
+
fail ArgumentError, "invalid value for \"allowed_only\", must be one of #{allowable_values}"
|
192
|
+
end
|
193
|
+
# resource path
|
194
|
+
local_var_path = '/permissions/'
|
195
|
+
|
196
|
+
# query parameters
|
197
|
+
query_params = opts[:query_params] || {}
|
198
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
|
+
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
201
|
+
query_params[:'application'] = opts[:'application'] if !opts[:'application'].nil?
|
202
|
+
query_params[:'resource_type'] = opts[:'resource_type'] if !opts[:'resource_type'].nil?
|
203
|
+
query_params[:'verb'] = opts[:'verb'] if !opts[:'verb'].nil?
|
204
|
+
query_params[:'permission'] = opts[:'permission'] if !opts[:'permission'].nil?
|
205
|
+
query_params[:'exclude_globals'] = opts[:'exclude_globals'] if !opts[:'exclude_globals'].nil?
|
206
|
+
query_params[:'exclude_roles'] = opts[:'exclude_roles'] if !opts[:'exclude_roles'].nil?
|
207
|
+
query_params[:'allowed_only'] = opts[:'allowed_only'] if !opts[:'allowed_only'].nil?
|
208
|
+
|
209
|
+
# header parameters
|
210
|
+
header_params = opts[:header_params] || {}
|
211
|
+
# HTTP header 'Accept' (if needed)
|
212
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = opts[:form_params] || {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = opts[:debug_body]
|
219
|
+
|
220
|
+
# return_type
|
221
|
+
return_type = opts[:debug_return_type] || 'PermissionPagination'
|
222
|
+
|
223
|
+
# auth_names
|
224
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
225
|
+
|
226
|
+
new_options = opts.merge(
|
227
|
+
:operation => :"PermissionApi.list_permissions",
|
228
|
+
:header_params => header_params,
|
229
|
+
:query_params => query_params,
|
230
|
+
:form_params => form_params,
|
231
|
+
:body => post_body,
|
232
|
+
:auth_names => auth_names,
|
233
|
+
:return_type => return_type
|
234
|
+
)
|
235
|
+
|
236
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "API called: PermissionApi#list_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
239
|
+
end
|
240
|
+
return data, status_code, headers
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
@@ -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
|
|
@@ -51,21 +51,25 @@ module RBACApiClient
|
|
51
51
|
# HTTP header 'Accept' (if needed)
|
52
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
53
|
# HTTP header 'Content-Type'
|
54
|
-
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
58
61
|
|
59
62
|
# http body (model)
|
60
|
-
post_body = opts[:
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(policy_in)
|
61
64
|
|
62
65
|
# return_type
|
63
|
-
return_type = opts[:
|
66
|
+
return_type = opts[:debug_return_type] || 'PolicyExtended'
|
64
67
|
|
65
68
|
# auth_names
|
66
|
-
auth_names = opts[:
|
69
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
67
70
|
|
68
71
|
new_options = opts.merge(
|
72
|
+
:operation => :"PolicyApi.create_policies",
|
69
73
|
:header_params => header_params,
|
70
74
|
:query_params => query_params,
|
71
75
|
:form_params => form_params,
|
@@ -117,15 +121,16 @@ module RBACApiClient
|
|
117
121
|
form_params = opts[:form_params] || {}
|
118
122
|
|
119
123
|
# http body (model)
|
120
|
-
post_body = opts[:
|
124
|
+
post_body = opts[:debug_body]
|
121
125
|
|
122
126
|
# return_type
|
123
|
-
return_type = opts[:
|
127
|
+
return_type = opts[:debug_return_type]
|
124
128
|
|
125
129
|
# auth_names
|
126
|
-
auth_names = opts[:
|
130
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
127
131
|
|
128
132
|
new_options = opts.merge(
|
133
|
+
:operation => :"PolicyApi.delete_policy",
|
129
134
|
:header_params => header_params,
|
130
135
|
:query_params => query_params,
|
131
136
|
:form_params => form_params,
|
@@ -177,15 +182,16 @@ module RBACApiClient
|
|
177
182
|
form_params = opts[:form_params] || {}
|
178
183
|
|
179
184
|
# http body (model)
|
180
|
-
post_body = opts[:
|
185
|
+
post_body = opts[:debug_body]
|
181
186
|
|
182
187
|
# return_type
|
183
|
-
return_type = opts[:
|
188
|
+
return_type = opts[:debug_return_type] || 'PolicyExtended'
|
184
189
|
|
185
190
|
# auth_names
|
186
|
-
auth_names = opts[:
|
191
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
187
192
|
|
188
193
|
new_options = opts.merge(
|
194
|
+
:operation => :"PolicyApi.get_policy",
|
189
195
|
:header_params => header_params,
|
190
196
|
:query_params => query_params,
|
191
197
|
:form_params => form_params,
|
@@ -210,7 +216,7 @@ module RBACApiClient
|
|
210
216
|
# @option opts [String] :scope Parameter for filtering resource by scope. (default to 'account')
|
211
217
|
# @option opts [String] :group_name Parameter for filtering resource by group name using string contains search.
|
212
218
|
# @option opts [String] :group_uuid Parameter for filtering resource by group uuid using UUID exact match.
|
213
|
-
# @option opts [String] :order_by Parameter for ordering
|
219
|
+
# @option opts [String] :order_by Parameter for ordering policies by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
214
220
|
# @return [PolicyPagination]
|
215
221
|
def list_policies(opts = {})
|
216
222
|
data, _status_code, _headers = list_policies_with_http_info(opts)
|
@@ -220,13 +226,13 @@ module RBACApiClient
|
|
220
226
|
# List the policies in the tenant
|
221
227
|
# By default, responses are sorted in ascending order by policy name
|
222
228
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
224
|
-
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
229
|
+
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
230
|
+
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
225
231
|
# @option opts [String] :name Parameter for filtering resource by name using string contains search.
|
226
|
-
# @option opts [String] :scope Parameter for filtering resource by scope.
|
232
|
+
# @option opts [String] :scope Parameter for filtering resource by scope. (default to 'account')
|
227
233
|
# @option opts [String] :group_name Parameter for filtering resource by group name using string contains search.
|
228
234
|
# @option opts [String] :group_uuid Parameter for filtering resource by group uuid using UUID exact match.
|
229
|
-
# @option opts [String] :order_by Parameter for ordering
|
235
|
+
# @option opts [String] :order_by Parameter for ordering policies by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-name
|
230
236
|
# @return [Array<(PolicyPagination, Integer, Hash)>] PolicyPagination data, response status code and response headers
|
231
237
|
def list_policies_with_http_info(opts = {})
|
232
238
|
if @api_client.config.debugging
|
@@ -248,6 +254,10 @@ module RBACApiClient
|
|
248
254
|
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
249
255
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
250
256
|
end
|
257
|
+
allowable_values = ["name", "modified"]
|
258
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
259
|
+
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
260
|
+
end
|
251
261
|
# resource path
|
252
262
|
local_var_path = '/policies/'
|
253
263
|
|
@@ -270,15 +280,16 @@ module RBACApiClient
|
|
270
280
|
form_params = opts[:form_params] || {}
|
271
281
|
|
272
282
|
# http body (model)
|
273
|
-
post_body = opts[:
|
283
|
+
post_body = opts[:debug_body]
|
274
284
|
|
275
285
|
# return_type
|
276
|
-
return_type = opts[:
|
286
|
+
return_type = opts[:debug_return_type] || 'PolicyPagination'
|
277
287
|
|
278
288
|
# auth_names
|
279
|
-
auth_names = opts[:
|
289
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
280
290
|
|
281
291
|
new_options = opts.merge(
|
292
|
+
:operation => :"PolicyApi.list_policies",
|
282
293
|
:header_params => header_params,
|
283
294
|
:query_params => query_params,
|
284
295
|
:form_params => form_params,
|
@@ -332,21 +343,25 @@ module RBACApiClient
|
|
332
343
|
# HTTP header 'Accept' (if needed)
|
333
344
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
334
345
|
# HTTP header 'Content-Type'
|
335
|
-
|
346
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
347
|
+
if !content_type.nil?
|
348
|
+
header_params['Content-Type'] = content_type
|
349
|
+
end
|
336
350
|
|
337
351
|
# form parameters
|
338
352
|
form_params = opts[:form_params] || {}
|
339
353
|
|
340
354
|
# http body (model)
|
341
|
-
post_body = opts[:
|
355
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(policy_in)
|
342
356
|
|
343
357
|
# return_type
|
344
|
-
return_type = opts[:
|
358
|
+
return_type = opts[:debug_return_type] || 'PolicyExtended'
|
345
359
|
|
346
360
|
# auth_names
|
347
|
-
auth_names = opts[:
|
361
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
348
362
|
|
349
363
|
new_options = opts.merge(
|
364
|
+
:operation => :"PolicyApi.update_policy",
|
350
365
|
:header_params => header_params,
|
351
366
|
:query_params => query_params,
|
352
367
|
:form_params => form_params,
|
@@ -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,9 +24,14 @@ module RBACApiClient
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [Integer] :limit Parameter for selecting the amount of data returned. (default to 10)
|
26
26
|
# @option opts [Integer] :offset Parameter for selecting the offset of data. (default to 0)
|
27
|
-
# @option opts [String] :
|
28
|
-
# @option opts [String] :
|
29
|
-
# @option opts [String] :
|
27
|
+
# @option opts [String] :match_criteria Parameter for specifying the matching criteria for an object's name and/or email. Currently, match_criteria of partial searches for a username/email using \"starts with\" pattern. (default to 'exact')
|
28
|
+
# @option opts [String] :usernames Comma separated usernames of principals to get. If match_criteria is specified, only the first username will be picked up for search.
|
29
|
+
# @option opts [String] :sort_order The sort order of the query, either ascending or descending. Defaults to ascending.
|
30
|
+
# @option opts [String] :email E-mail address of principal to search for. Could be combined with match_criteria for searching.
|
31
|
+
# @option opts [String] :status Set the status of users to get back. (default to 'enabled')
|
32
|
+
# @option opts [String] :admin_only Get only admin users within an account. Setting this would ignore the parameters: usernames, email (default to 'false')
|
33
|
+
# @option opts [String] :order_by Parameter for ordering principals by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-username
|
34
|
+
# @option opts [Boolean] :username_only Parameter for optionally returning only usernames for principals, bypassing a call to IT.
|
30
35
|
# @return [PrincipalPagination]
|
31
36
|
def list_principals(opts = {})
|
32
37
|
data, _status_code, _headers = list_principals_with_http_info(opts)
|
@@ -36,11 +41,16 @@ module RBACApiClient
|
|
36
41
|
# List the principals for a tenant
|
37
42
|
# By default, responses are sorted in ascending order by username
|
38
43
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [Integer] :limit Parameter for selecting the amount of data returned.
|
40
|
-
# @option opts [Integer] :offset Parameter for selecting the offset of data.
|
41
|
-
# @option opts [String] :
|
42
|
-
# @option opts [String] :
|
43
|
-
# @option opts [String] :
|
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)
|
46
|
+
# @option opts [String] :match_criteria Parameter for specifying the matching criteria for an object's name and/or email. Currently, match_criteria of partial searches for a username/email using \"starts with\" pattern. (default to 'exact')
|
47
|
+
# @option opts [String] :usernames Comma separated usernames of principals to get. If match_criteria is specified, only the first username will be picked up for search.
|
48
|
+
# @option opts [String] :sort_order The sort order of the query, either ascending or descending. Defaults to ascending.
|
49
|
+
# @option opts [String] :email E-mail address of principal to search for. Could be combined with match_criteria for searching.
|
50
|
+
# @option opts [String] :status Set the status of users to get back. (default to 'enabled')
|
51
|
+
# @option opts [String] :admin_only Get only admin users within an account. Setting this would ignore the parameters: usernames, email (default to 'false')
|
52
|
+
# @option opts [String] :order_by Parameter for ordering principals by value. For inverse ordering, supply '-' before the param value, such as: ?order_by=-username
|
53
|
+
# @option opts [Boolean] :username_only Parameter for optionally returning only usernames for principals, bypassing a call to IT.
|
44
54
|
# @return [Array<(PrincipalPagination, Integer, Hash)>] PrincipalPagination data, response status code and response headers
|
45
55
|
def list_principals_with_http_info(opts = {})
|
46
56
|
if @api_client.config.debugging
|
@@ -58,10 +68,26 @@ module RBACApiClient
|
|
58
68
|
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PrincipalApi.list_principals, must be greater than or equal to 0.'
|
59
69
|
end
|
60
70
|
|
71
|
+
allowable_values = ["partial", "exact"]
|
72
|
+
if @api_client.config.client_side_validation && opts[:'match_criteria'] && !allowable_values.include?(opts[:'match_criteria'])
|
73
|
+
fail ArgumentError, "invalid value for \"match_criteria\", must be one of #{allowable_values}"
|
74
|
+
end
|
61
75
|
allowable_values = ["asc", "desc"]
|
62
76
|
if @api_client.config.client_side_validation && opts[:'sort_order'] && !allowable_values.include?(opts[:'sort_order'])
|
63
77
|
fail ArgumentError, "invalid value for \"sort_order\", must be one of #{allowable_values}"
|
64
78
|
end
|
79
|
+
allowable_values = ["enabled", "disabled", "all"]
|
80
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
81
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
82
|
+
end
|
83
|
+
allowable_values = ["true", "false"]
|
84
|
+
if @api_client.config.client_side_validation && opts[:'admin_only'] && !allowable_values.include?(opts[:'admin_only'])
|
85
|
+
fail ArgumentError, "invalid value for \"admin_only\", must be one of #{allowable_values}"
|
86
|
+
end
|
87
|
+
allowable_values = ["username"]
|
88
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
89
|
+
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
90
|
+
end
|
65
91
|
# resource path
|
66
92
|
local_var_path = '/principals/'
|
67
93
|
|
@@ -69,9 +95,14 @@ module RBACApiClient
|
|
69
95
|
query_params = opts[:query_params] || {}
|
70
96
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
71
97
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
98
|
+
query_params[:'match_criteria'] = opts[:'match_criteria'] if !opts[:'match_criteria'].nil?
|
72
99
|
query_params[:'usernames'] = opts[:'usernames'] if !opts[:'usernames'].nil?
|
73
100
|
query_params[:'sort_order'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
74
101
|
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
102
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
103
|
+
query_params[:'admin_only'] = opts[:'admin_only'] if !opts[:'admin_only'].nil?
|
104
|
+
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
105
|
+
query_params[:'username_only'] = opts[:'username_only'] if !opts[:'username_only'].nil?
|
75
106
|
|
76
107
|
# header parameters
|
77
108
|
header_params = opts[:header_params] || {}
|
@@ -82,15 +113,16 @@ module RBACApiClient
|
|
82
113
|
form_params = opts[:form_params] || {}
|
83
114
|
|
84
115
|
# http body (model)
|
85
|
-
post_body = opts[:
|
116
|
+
post_body = opts[:debug_body]
|
86
117
|
|
87
118
|
# return_type
|
88
|
-
return_type = opts[:
|
119
|
+
return_type = opts[:debug_return_type] || 'PrincipalPagination'
|
89
120
|
|
90
121
|
# auth_names
|
91
|
-
auth_names = opts[:
|
122
|
+
auth_names = opts[:debug_auth_names] || ['basic_auth']
|
92
123
|
|
93
124
|
new_options = opts.merge(
|
125
|
+
:operation => :"PrincipalApi.list_principals",
|
94
126
|
:header_params => header_params,
|
95
127
|
:query_params => query_params,
|
96
128
|
:form_params => form_params,
|