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
@@ -6,16 +6,19 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module RBACApiClient
|
16
17
|
class RoleOutDynamic
|
17
18
|
attr_accessor :name
|
18
19
|
|
20
|
+
attr_accessor :display_name
|
21
|
+
|
19
22
|
attr_accessor :description
|
20
23
|
|
21
24
|
attr_accessor :uuid
|
@@ -34,14 +37,23 @@ module RBACApiClient
|
|
34
37
|
|
35
38
|
attr_accessor :platform_default
|
36
39
|
|
40
|
+
attr_accessor :admin_default
|
41
|
+
|
37
42
|
attr_accessor :groups_in_count
|
38
43
|
|
39
44
|
attr_accessor :groups_in
|
40
45
|
|
46
|
+
attr_accessor :external_role_id
|
47
|
+
|
48
|
+
attr_accessor :external_tenant
|
49
|
+
|
50
|
+
attr_accessor :access
|
51
|
+
|
41
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
53
|
def self.attribute_map
|
43
54
|
{
|
44
55
|
:'name' => :'name',
|
56
|
+
:'display_name' => :'display_name',
|
45
57
|
:'description' => :'description',
|
46
58
|
:'uuid' => :'uuid',
|
47
59
|
:'created' => :'created',
|
@@ -51,26 +63,40 @@ module RBACApiClient
|
|
51
63
|
:'applications' => :'applications',
|
52
64
|
:'system' => :'system',
|
53
65
|
:'platform_default' => :'platform_default',
|
66
|
+
:'admin_default' => :'admin_default',
|
54
67
|
:'groups_in_count' => :'groups_in_count',
|
55
|
-
:'groups_in' => :'groups_in'
|
68
|
+
:'groups_in' => :'groups_in',
|
69
|
+
:'external_role_id' => :'external_role_id',
|
70
|
+
:'external_tenant' => :'external_tenant',
|
71
|
+
:'access' => :'access'
|
56
72
|
}
|
57
73
|
end
|
58
74
|
|
75
|
+
# Returns all the JSON keys this model knows about
|
76
|
+
def self.acceptable_attributes
|
77
|
+
attribute_map.values
|
78
|
+
end
|
79
|
+
|
59
80
|
# Attribute type mapping.
|
60
81
|
def self.openapi_types
|
61
82
|
{
|
62
83
|
:'name' => :'String',
|
84
|
+
:'display_name' => :'String',
|
63
85
|
:'description' => :'String',
|
64
86
|
:'uuid' => :'String',
|
65
|
-
:'created' => :'
|
66
|
-
:'modified' => :'
|
87
|
+
:'created' => :'Time',
|
88
|
+
:'modified' => :'Time',
|
67
89
|
:'policy_count' => :'Integer',
|
68
90
|
:'access_count' => :'Integer',
|
69
91
|
:'applications' => :'Array<String>',
|
70
92
|
:'system' => :'Boolean',
|
71
93
|
:'platform_default' => :'Boolean',
|
94
|
+
:'admin_default' => :'Boolean',
|
72
95
|
:'groups_in_count' => :'Integer',
|
73
|
-
:'groups_in' => :'Array<AdditionalGroup>'
|
96
|
+
:'groups_in' => :'Array<AdditionalGroup>',
|
97
|
+
:'external_role_id' => :'String',
|
98
|
+
:'external_tenant' => :'String',
|
99
|
+
:'access' => :'Array<Access>'
|
74
100
|
}
|
75
101
|
end
|
76
102
|
|
@@ -84,7 +110,6 @@ module RBACApiClient
|
|
84
110
|
def self.openapi_all_of
|
85
111
|
[
|
86
112
|
:'Role',
|
87
|
-
:'RoleOutDynamicAllOf',
|
88
113
|
:'Timestamped',
|
89
114
|
:'UUID'
|
90
115
|
]
|
@@ -107,6 +132,12 @@ module RBACApiClient
|
|
107
132
|
|
108
133
|
if attributes.key?(:'name')
|
109
134
|
self.name = attributes[:'name']
|
135
|
+
else
|
136
|
+
self.name = nil
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.key?(:'display_name')
|
140
|
+
self.display_name = attributes[:'display_name']
|
110
141
|
end
|
111
142
|
|
112
143
|
if attributes.key?(:'description')
|
@@ -115,28 +146,40 @@ module RBACApiClient
|
|
115
146
|
|
116
147
|
if attributes.key?(:'uuid')
|
117
148
|
self.uuid = attributes[:'uuid']
|
149
|
+
else
|
150
|
+
self.uuid = nil
|
118
151
|
end
|
119
152
|
|
120
153
|
if attributes.key?(:'created')
|
121
154
|
self.created = attributes[:'created']
|
155
|
+
else
|
156
|
+
self.created = nil
|
122
157
|
end
|
123
158
|
|
124
159
|
if attributes.key?(:'modified')
|
125
160
|
self.modified = attributes[:'modified']
|
161
|
+
else
|
162
|
+
self.modified = nil
|
126
163
|
end
|
127
164
|
|
128
165
|
if attributes.key?(:'policy_count')
|
129
166
|
self.policy_count = attributes[:'policy_count']
|
167
|
+
else
|
168
|
+
self.policy_count = nil
|
130
169
|
end
|
131
170
|
|
132
171
|
if attributes.key?(:'access_count')
|
133
172
|
self.access_count = attributes[:'access_count']
|
173
|
+
else
|
174
|
+
self.access_count = nil
|
134
175
|
end
|
135
176
|
|
136
177
|
if attributes.key?(:'applications')
|
137
178
|
if (value = attributes[:'applications']).is_a?(Array)
|
138
179
|
self.applications = value
|
139
180
|
end
|
181
|
+
else
|
182
|
+
self.applications = nil
|
140
183
|
end
|
141
184
|
|
142
185
|
if attributes.key?(:'system')
|
@@ -151,6 +194,12 @@ module RBACApiClient
|
|
151
194
|
self.platform_default = false
|
152
195
|
end
|
153
196
|
|
197
|
+
if attributes.key?(:'admin_default')
|
198
|
+
self.admin_default = attributes[:'admin_default']
|
199
|
+
else
|
200
|
+
self.admin_default = false
|
201
|
+
end
|
202
|
+
|
154
203
|
if attributes.key?(:'groups_in_count')
|
155
204
|
self.groups_in_count = attributes[:'groups_in_count']
|
156
205
|
end
|
@@ -160,11 +209,26 @@ module RBACApiClient
|
|
160
209
|
self.groups_in = value
|
161
210
|
end
|
162
211
|
end
|
212
|
+
|
213
|
+
if attributes.key?(:'external_role_id')
|
214
|
+
self.external_role_id = attributes[:'external_role_id']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.key?(:'external_tenant')
|
218
|
+
self.external_tenant = attributes[:'external_tenant']
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.key?(:'access')
|
222
|
+
if (value = attributes[:'access']).is_a?(Array)
|
223
|
+
self.access = value
|
224
|
+
end
|
225
|
+
end
|
163
226
|
end
|
164
227
|
|
165
228
|
# Show invalid properties with the reasons. Usually used together with valid?
|
166
229
|
# @return Array for valid properties with the reasons
|
167
230
|
def list_invalid_properties
|
231
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
168
232
|
invalid_properties = Array.new
|
169
233
|
if @name.nil?
|
170
234
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -210,6 +274,10 @@ module RBACApiClient
|
|
210
274
|
invalid_properties.push('invalid value for "platform_default", platform_default cannot be nil.')
|
211
275
|
end
|
212
276
|
|
277
|
+
if @admin_default.nil?
|
278
|
+
invalid_properties.push('invalid value for "admin_default", admin_default cannot be nil.')
|
279
|
+
end
|
280
|
+
|
213
281
|
if !@groups_in_count.nil? && @groups_in_count < 0
|
214
282
|
invalid_properties.push('invalid value for "groups_in_count", must be greater than or equal to 0.')
|
215
283
|
end
|
@@ -220,6 +288,7 @@ module RBACApiClient
|
|
220
288
|
# Check to see if the all the properties in the model are valid
|
221
289
|
# @return true if the model is valid
|
222
290
|
def valid?
|
291
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
223
292
|
return false if @name.nil?
|
224
293
|
return false if @uuid.nil?
|
225
294
|
return false if @created.nil?
|
@@ -231,6 +300,7 @@ module RBACApiClient
|
|
231
300
|
return false if @applications.nil?
|
232
301
|
return false if @system.nil?
|
233
302
|
return false if @platform_default.nil?
|
303
|
+
return false if @admin_default.nil?
|
234
304
|
return false if !@groups_in_count.nil? && @groups_in_count < 0
|
235
305
|
true
|
236
306
|
end
|
@@ -266,7 +336,11 @@ module RBACApiClient
|
|
266
336
|
# Custom attribute writer method with validation
|
267
337
|
# @param [Object] groups_in_count Value to be assigned
|
268
338
|
def groups_in_count=(groups_in_count)
|
269
|
-
if
|
339
|
+
if groups_in_count.nil?
|
340
|
+
fail ArgumentError, 'groups_in_count cannot be nil'
|
341
|
+
end
|
342
|
+
|
343
|
+
if groups_in_count < 0
|
270
344
|
fail ArgumentError, 'invalid value for "groups_in_count", must be greater than or equal to 0.'
|
271
345
|
end
|
272
346
|
|
@@ -279,6 +353,7 @@ module RBACApiClient
|
|
279
353
|
return true if self.equal?(o)
|
280
354
|
self.class == o.class &&
|
281
355
|
name == o.name &&
|
356
|
+
display_name == o.display_name &&
|
282
357
|
description == o.description &&
|
283
358
|
uuid == o.uuid &&
|
284
359
|
created == o.created &&
|
@@ -288,8 +363,12 @@ module RBACApiClient
|
|
288
363
|
applications == o.applications &&
|
289
364
|
system == o.system &&
|
290
365
|
platform_default == o.platform_default &&
|
366
|
+
admin_default == o.admin_default &&
|
291
367
|
groups_in_count == o.groups_in_count &&
|
292
|
-
groups_in == o.groups_in
|
368
|
+
groups_in == o.groups_in &&
|
369
|
+
external_role_id == o.external_role_id &&
|
370
|
+
external_tenant == o.external_tenant &&
|
371
|
+
access == o.access
|
293
372
|
end
|
294
373
|
|
295
374
|
# @see the `==` method
|
@@ -301,44 +380,40 @@ module RBACApiClient
|
|
301
380
|
# Calculates hash code according to all attributes.
|
302
381
|
# @return [Integer] Hash code
|
303
382
|
def hash
|
304
|
-
[name, description, uuid, created, modified, policy_count, access_count, applications, system, platform_default, groups_in_count, groups_in].hash
|
383
|
+
[name, display_name, description, uuid, created, modified, policy_count, access_count, applications, system, platform_default, admin_default, groups_in_count, groups_in, external_role_id, external_tenant, access].hash
|
305
384
|
end
|
306
385
|
|
307
386
|
# Builds the object from hash
|
308
387
|
# @param [Hash] attributes Model attributes in the form of hash
|
309
388
|
# @return [Object] Returns the model itself
|
310
389
|
def self.build_from_hash(attributes)
|
311
|
-
new.build_from_hash(attributes)
|
312
|
-
end
|
313
|
-
|
314
|
-
# Builds the object from hash
|
315
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
316
|
-
# @return [Object] Returns the model itself
|
317
|
-
def build_from_hash(attributes)
|
318
390
|
return nil unless attributes.is_a?(Hash)
|
319
|
-
|
320
|
-
|
391
|
+
attributes = attributes.transform_keys(&:to_sym)
|
392
|
+
transformed_hash = {}
|
393
|
+
openapi_types.each_pair do |key, type|
|
394
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
395
|
+
transformed_hash["#{key}"] = nil
|
396
|
+
elsif type =~ /\AArray<(.*)>/i
|
321
397
|
# check to ensure the input is an array given that the attribute
|
322
398
|
# is documented as an array but the input is not
|
323
|
-
if attributes[
|
324
|
-
|
399
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
400
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
325
401
|
end
|
326
|
-
elsif !attributes[
|
327
|
-
|
328
|
-
end
|
402
|
+
elsif !attributes[attribute_map[key]].nil?
|
403
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
404
|
+
end
|
329
405
|
end
|
330
|
-
|
331
|
-
self
|
406
|
+
new(transformed_hash)
|
332
407
|
end
|
333
408
|
|
334
409
|
# Deserializes the data based on type
|
335
410
|
# @param string type Data type
|
336
411
|
# @param string value Value to be deserialized
|
337
412
|
# @return [Object] Deserialized data
|
338
|
-
def _deserialize(type, value)
|
413
|
+
def self._deserialize(type, value)
|
339
414
|
case type.to_sym
|
340
|
-
when :
|
341
|
-
|
415
|
+
when :Time
|
416
|
+
Time.parse(value)
|
342
417
|
when :Date
|
343
418
|
Date.parse(value)
|
344
419
|
when :String
|
@@ -368,7 +443,9 @@ module RBACApiClient
|
|
368
443
|
end
|
369
444
|
end
|
370
445
|
else # model
|
371
|
-
|
446
|
+
# models (e.g. Pet) or oneOf
|
447
|
+
klass = RBACApiClient.const_get(type)
|
448
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
372
449
|
end
|
373
450
|
end
|
374
451
|
|
@@ -394,7 +471,7 @@ module RBACApiClient
|
|
394
471
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
395
472
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
396
473
|
end
|
397
|
-
|
474
|
+
|
398
475
|
hash[param] = _to_hash(value)
|
399
476
|
end
|
400
477
|
hash
|
@@ -417,5 +494,7 @@ module RBACApiClient
|
|
417
494
|
value
|
418
495
|
end
|
419
496
|
end
|
497
|
+
|
420
498
|
end
|
499
|
+
|
421
500
|
end
|
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module RBACApiClient
|
16
17
|
class RolePagination
|
@@ -29,6 +30,11 @@ module RBACApiClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -47,7 +53,6 @@ module RBACApiClient
|
|
47
53
|
# List of class defined in allOf (OpenAPI v3)
|
48
54
|
def self.openapi_all_of
|
49
55
|
[
|
50
|
-
:'InlineResponse200',
|
51
56
|
:'ListPagination'
|
52
57
|
]
|
53
58
|
end
|
@@ -79,12 +84,15 @@ module RBACApiClient
|
|
79
84
|
if (value = attributes[:'data']).is_a?(Array)
|
80
85
|
self.data = value
|
81
86
|
end
|
87
|
+
else
|
88
|
+
self.data = nil
|
82
89
|
end
|
83
90
|
end
|
84
91
|
|
85
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
86
93
|
# @return Array for valid properties with the reasons
|
87
94
|
def list_invalid_properties
|
95
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
88
96
|
invalid_properties = Array.new
|
89
97
|
if @data.nil?
|
90
98
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
@@ -96,6 +104,7 @@ module RBACApiClient
|
|
96
104
|
# Check to see if the all the properties in the model are valid
|
97
105
|
# @return true if the model is valid
|
98
106
|
def valid?
|
107
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
99
108
|
return false if @data.nil?
|
100
109
|
true
|
101
110
|
end
|
@@ -126,37 +135,33 @@ module RBACApiClient
|
|
126
135
|
# @param [Hash] attributes Model attributes in the form of hash
|
127
136
|
# @return [Object] Returns the model itself
|
128
137
|
def self.build_from_hash(attributes)
|
129
|
-
new.build_from_hash(attributes)
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def build_from_hash(attributes)
|
136
138
|
return nil unless attributes.is_a?(Hash)
|
137
|
-
|
138
|
-
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
140
|
+
transformed_hash = {}
|
141
|
+
openapi_types.each_pair do |key, type|
|
142
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
143
|
+
transformed_hash["#{key}"] = nil
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
139
145
|
# check to ensure the input is an array given that the attribute
|
140
146
|
# is documented as an array but the input is not
|
141
|
-
if attributes[
|
142
|
-
|
147
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
148
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
143
149
|
end
|
144
|
-
elsif !attributes[
|
145
|
-
|
146
|
-
end
|
150
|
+
elsif !attributes[attribute_map[key]].nil?
|
151
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
152
|
+
end
|
147
153
|
end
|
148
|
-
|
149
|
-
self
|
154
|
+
new(transformed_hash)
|
150
155
|
end
|
151
156
|
|
152
157
|
# Deserializes the data based on type
|
153
158
|
# @param string type Data type
|
154
159
|
# @param string value Value to be deserialized
|
155
160
|
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
161
|
+
def self._deserialize(type, value)
|
157
162
|
case type.to_sym
|
158
|
-
when :
|
159
|
-
|
163
|
+
when :Time
|
164
|
+
Time.parse(value)
|
160
165
|
when :Date
|
161
166
|
Date.parse(value)
|
162
167
|
when :String
|
@@ -186,7 +191,9 @@ module RBACApiClient
|
|
186
191
|
end
|
187
192
|
end
|
188
193
|
else # model
|
189
|
-
|
194
|
+
# models (e.g. Pet) or oneOf
|
195
|
+
klass = RBACApiClient.const_get(type)
|
196
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
197
|
end
|
191
198
|
end
|
192
199
|
|
@@ -212,7 +219,7 @@ module RBACApiClient
|
|
212
219
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
220
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
221
|
end
|
215
|
-
|
222
|
+
|
216
223
|
hash[param] = _to_hash(value)
|
217
224
|
end
|
218
225
|
hash
|
@@ -235,5 +242,7 @@ module RBACApiClient
|
|
235
242
|
value
|
236
243
|
end
|
237
244
|
end
|
245
|
+
|
238
246
|
end
|
247
|
+
|
239
248
|
end
|
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module RBACApiClient
|
16
17
|
class RolePaginationDynamic
|
@@ -29,6 +30,11 @@ module RBACApiClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -47,8 +53,7 @@ module RBACApiClient
|
|
47
53
|
# List of class defined in allOf (OpenAPI v3)
|
48
54
|
def self.openapi_all_of
|
49
55
|
[
|
50
|
-
:'ListPagination'
|
51
|
-
:'RolePaginationDynamicAllOf'
|
56
|
+
:'ListPagination'
|
52
57
|
]
|
53
58
|
end
|
54
59
|
|
@@ -79,12 +84,15 @@ module RBACApiClient
|
|
79
84
|
if (value = attributes[:'data']).is_a?(Array)
|
80
85
|
self.data = value
|
81
86
|
end
|
87
|
+
else
|
88
|
+
self.data = nil
|
82
89
|
end
|
83
90
|
end
|
84
91
|
|
85
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
86
93
|
# @return Array for valid properties with the reasons
|
87
94
|
def list_invalid_properties
|
95
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
88
96
|
invalid_properties = Array.new
|
89
97
|
if @data.nil?
|
90
98
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
@@ -96,6 +104,7 @@ module RBACApiClient
|
|
96
104
|
# Check to see if the all the properties in the model are valid
|
97
105
|
# @return true if the model is valid
|
98
106
|
def valid?
|
107
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
99
108
|
return false if @data.nil?
|
100
109
|
true
|
101
110
|
end
|
@@ -126,37 +135,33 @@ module RBACApiClient
|
|
126
135
|
# @param [Hash] attributes Model attributes in the form of hash
|
127
136
|
# @return [Object] Returns the model itself
|
128
137
|
def self.build_from_hash(attributes)
|
129
|
-
new.build_from_hash(attributes)
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def build_from_hash(attributes)
|
136
138
|
return nil unless attributes.is_a?(Hash)
|
137
|
-
|
138
|
-
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
140
|
+
transformed_hash = {}
|
141
|
+
openapi_types.each_pair do |key, type|
|
142
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
143
|
+
transformed_hash["#{key}"] = nil
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
139
145
|
# check to ensure the input is an array given that the attribute
|
140
146
|
# is documented as an array but the input is not
|
141
|
-
if attributes[
|
142
|
-
|
147
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
148
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
143
149
|
end
|
144
|
-
elsif !attributes[
|
145
|
-
|
146
|
-
end
|
150
|
+
elsif !attributes[attribute_map[key]].nil?
|
151
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
152
|
+
end
|
147
153
|
end
|
148
|
-
|
149
|
-
self
|
154
|
+
new(transformed_hash)
|
150
155
|
end
|
151
156
|
|
152
157
|
# Deserializes the data based on type
|
153
158
|
# @param string type Data type
|
154
159
|
# @param string value Value to be deserialized
|
155
160
|
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
161
|
+
def self._deserialize(type, value)
|
157
162
|
case type.to_sym
|
158
|
-
when :
|
159
|
-
|
163
|
+
when :Time
|
164
|
+
Time.parse(value)
|
160
165
|
when :Date
|
161
166
|
Date.parse(value)
|
162
167
|
when :String
|
@@ -186,7 +191,9 @@ module RBACApiClient
|
|
186
191
|
end
|
187
192
|
end
|
188
193
|
else # model
|
189
|
-
|
194
|
+
# models (e.g. Pet) or oneOf
|
195
|
+
klass = RBACApiClient.const_get(type)
|
196
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
197
|
end
|
191
198
|
end
|
192
199
|
|
@@ -212,7 +219,7 @@ module RBACApiClient
|
|
212
219
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
213
220
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
214
221
|
end
|
215
|
-
|
222
|
+
|
216
223
|
hash[param] = _to_hash(value)
|
217
224
|
end
|
218
225
|
hash
|
@@ -235,5 +242,7 @@ module RBACApiClient
|
|
235
242
|
value
|
236
243
|
end
|
237
244
|
end
|
245
|
+
|
238
246
|
end
|
247
|
+
|
239
248
|
end
|