pulpcore_client 3.16.24 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +70 -22
  3. data/docs/AccessPoliciesApi.md +53 -0
  4. data/docs/AccessPolicy.md +3 -1
  5. data/docs/AccessPolicyResponse.md +3 -1
  6. data/docs/ContentguardsRbacApi.md +138 -22
  7. data/docs/GroupRole.md +19 -0
  8. data/docs/GroupRoleResponse.md +23 -0
  9. data/docs/GroupsApi.md +248 -20
  10. data/docs/GroupsModelPermissionsApi.md +20 -20
  11. data/docs/GroupsObjectPermissionsApi.md +20 -20
  12. data/docs/GroupsRolesApi.md +255 -0
  13. data/docs/GroupsUsersApi.md +15 -15
  14. data/docs/MyPermissionsResponse.md +17 -0
  15. data/docs/NestedRole.md +21 -0
  16. data/docs/NestedRoleResponse.md +21 -0
  17. data/docs/ObjectRolesResponse.md +17 -0
  18. data/docs/PaginatedGroupRoleResponseList.md +23 -0
  19. data/docs/PaginatedRoleResponseList.md +23 -0
  20. data/docs/PaginatedUserRoleResponseList.md +23 -0
  21. data/docs/PatchedAccessPolicy.md +3 -1
  22. data/docs/PatchedRole.md +21 -0
  23. data/docs/PatchedUser.md +29 -0
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/Purge.md +19 -0
  26. data/docs/Role.md +21 -0
  27. data/docs/RoleResponse.md +27 -0
  28. data/docs/RolesApi.md +363 -0
  29. data/docs/StatesEnum.md +16 -0
  30. data/docs/TasksApi.md +282 -0
  31. data/docs/User.md +29 -0
  32. data/docs/UserGroup.md +17 -0
  33. data/docs/UserResponse.md +3 -3
  34. data/docs/UserRole.md +19 -0
  35. data/docs/UserRoleResponse.md +23 -0
  36. data/docs/UsersApi.md +219 -0
  37. data/docs/UsersRolesApi.md +255 -0
  38. data/docs/WorkerResponse.md +3 -3
  39. data/git_push.sh +58 -0
  40. data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
  41. data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
  42. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
  43. data/lib/pulpcore_client/api/groups_api.rb +304 -36
  44. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
  45. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
  46. data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
  47. data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
  48. data/lib/pulpcore_client/api/roles_api.rb +443 -0
  49. data/lib/pulpcore_client/api/tasks_api.rb +332 -0
  50. data/lib/pulpcore_client/api/uploads_api.rb +4 -0
  51. data/lib/pulpcore_client/api/users_api.rb +264 -0
  52. data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
  53. data/lib/pulpcore_client/api_client.rb +5 -2
  54. data/lib/pulpcore_client/configuration.rb +0 -1
  55. data/lib/pulpcore_client/models/access_policy.rb +19 -2
  56. data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
  57. data/lib/pulpcore_client/models/artifact.rb +90 -0
  58. data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
  59. data/lib/pulpcore_client/models/group.rb +9 -0
  60. data/lib/pulpcore_client/models/group_role.rb +238 -0
  61. data/lib/pulpcore_client/models/group_role_response.rb +242 -0
  62. data/lib/pulpcore_client/models/group_user.rb +9 -0
  63. data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
  64. data/lib/pulpcore_client/models/nested_role.rb +234 -0
  65. data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
  66. data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
  67. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
  68. data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
  69. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
  70. data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
  71. data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
  72. data/lib/pulpcore_client/models/patched_group.rb +9 -0
  73. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
  74. data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
  75. data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
  76. data/lib/pulpcore_client/models/patched_role.rb +261 -0
  77. data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
  78. data/lib/pulpcore_client/models/patched_user.rb +342 -0
  79. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  80. data/lib/pulpcore_client/models/pulp_export.rb +15 -0
  81. data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
  82. data/lib/pulpcore_client/models/pulp_import.rb +30 -0
  83. data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
  84. data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
  85. data/lib/pulpcore_client/models/purge.rb +219 -0
  86. data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
  87. data/lib/pulpcore_client/models/role.rb +275 -0
  88. data/lib/pulpcore_client/models/role_response.rb +270 -0
  89. data/lib/pulpcore_client/models/states_enum.rb +38 -0
  90. data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
  91. data/lib/pulpcore_client/models/upload_commit.rb +19 -0
  92. data/lib/pulpcore_client/models/user.rb +351 -0
  93. data/lib/pulpcore_client/models/user_group.rb +241 -0
  94. data/lib/pulpcore_client/models/user_response.rb +6 -29
  95. data/lib/pulpcore_client/models/user_role.rb +238 -0
  96. data/lib/pulpcore_client/models/user_role_response.rb +242 -0
  97. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  98. data/lib/pulpcore_client/version.rb +1 -1
  99. data/lib/pulpcore_client.rb +22 -1
  100. data/pulpcore_client.gemspec +3 -3
  101. data/spec/api/access_policies_api_spec.rb +11 -0
  102. data/spec/api/contentguards_rbac_api_spec.rb +36 -12
  103. data/spec/api/groups_api_spec.rb +54 -4
  104. data/spec/api/groups_model_permissions_api_spec.rb +4 -4
  105. data/spec/api/groups_object_permissions_api_spec.rb +4 -4
  106. data/spec/api/groups_roles_api_spec.rb +97 -0
  107. data/spec/api/groups_users_api_spec.rb +3 -3
  108. data/spec/api/roles_api_spec.rb +121 -0
  109. data/spec/api/tasks_api_spec.rb +62 -0
  110. data/spec/api/users_api_spec.rb +50 -0
  111. data/spec/api/users_roles_api_spec.rb +97 -0
  112. data/spec/models/access_policy_response_spec.rb +6 -0
  113. data/spec/models/access_policy_spec.rb +6 -0
  114. data/spec/models/group_role_response_spec.rb +59 -0
  115. data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
  116. data/spec/models/my_permissions_response_spec.rb +41 -0
  117. data/spec/models/nested_role_response_spec.rb +53 -0
  118. data/spec/models/nested_role_spec.rb +53 -0
  119. data/spec/models/object_roles_response_spec.rb +41 -0
  120. data/spec/models/paginated_group_role_response_list_spec.rb +59 -0
  121. data/spec/models/paginated_role_response_list_spec.rb +59 -0
  122. data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
  123. data/spec/models/patched_access_policy_spec.rb +6 -0
  124. data/spec/models/patched_role_spec.rb +53 -0
  125. data/spec/models/patched_user_spec.rb +77 -0
  126. data/spec/models/purge_spec.rb +47 -0
  127. data/spec/models/role_response_spec.rb +71 -0
  128. data/spec/models/role_spec.rb +53 -0
  129. data/spec/models/states_enum_spec.rb +35 -0
  130. data/spec/models/user_group_spec.rb +41 -0
  131. data/spec/models/user_role_response_spec.rb +59 -0
  132. data/spec/models/user_role_spec.rb +47 -0
  133. data/spec/models/user_spec.rb +77 -0
  134. data/spec/models/worker_response_spec.rb +2 -2
  135. metadata +190 -111
  136. data/docs/RBACContentGuardPermission.md +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f876a1b881f5fa11dc9bc47899462320e03acd18b9d485f9421a005ddb5112af
4
- data.tar.gz: 3d11f37378f072fb9b841ed51c687bf671a66297dc0d1279d45cb6de5e425875
3
+ metadata.gz: bcd9eec3254c903ab38b633f8f42f3b2e74b6cd706fcebb54a0c3cbb16287883
4
+ data.tar.gz: bd48a4eeff47cd897d424e1d89a3ad5bb9c2e782666d0a2b06ce5b9e77a0d65f
5
5
  SHA512:
6
- metadata.gz: b7feed36399853b825450bd4ae6e264d273e47467a49c4020aec0d1f64e2e5aedcb7f2cde27cbf39141509552af3a5eb8b2a7d4b56f27123494397d80e631a9b
7
- data.tar.gz: d6212aa5412a50d702644e70f7d327bf4c08365b015dba501fa63ed217fe8899d4eb105a8f7b495e719150942d629e0a04e46eabe57189707a56652f8f9b3eff
6
+ metadata.gz: 30368e2ee8414a478ebf00e61344daea66f774e71b3c6a960e18e6e93626ef141cf5ffa75a48f9683d2ea8e13cf5f41df573d310f2333109ad7b44e25a097700
7
+ data.tar.gz: 2b68677e2a061a2c61bce8fcf21999f29c46a8577989b82494f42a798e234a9e8616c3cb766e8dcc4a8bfdbed4009d7be57ce092765954e3a62c3c0c3655015b
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.16.24
10
+ - Package version: 3.17.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulpcore_client-3.16.24.gem
27
+ gem install ./pulpcore_client-3.17.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulpcore_client-3.16.24.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulpcore_client-3.17.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulpcore_client', '~> 3.16.24'
36
+ gem 'pulpcore_client', '~> 3.17.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -98,6 +98,7 @@ Class | Method | HTTP request | Description
98
98
  *PulpcoreClient::AccessPoliciesApi* | [**list**](docs/AccessPoliciesApi.md#list) | **GET** /pulp/api/v3/access_policies/ | List access policys
99
99
  *PulpcoreClient::AccessPoliciesApi* | [**partial_update**](docs/AccessPoliciesApi.md#partial_update) | **PATCH** {access_policy_href} | Update an access policy
100
100
  *PulpcoreClient::AccessPoliciesApi* | [**read**](docs/AccessPoliciesApi.md#read) | **GET** {access_policy_href} | Inspect an access policy
101
+ *PulpcoreClient::AccessPoliciesApi* | [**reset**](docs/AccessPoliciesApi.md#reset) | **POST** {access_policy_href}reset/ |
101
102
  *PulpcoreClient::AccessPoliciesApi* | [**update**](docs/AccessPoliciesApi.md#update) | **PUT** {access_policy_href} | Update an access policy
102
103
  *PulpcoreClient::ArtifactsApi* | [**create**](docs/ArtifactsApi.md#create) | **POST** /pulp/api/v3/artifacts/ | Create an artifact
103
104
  *PulpcoreClient::ArtifactsApi* | [**delete**](docs/ArtifactsApi.md#delete) | **DELETE** {artifact_href} | Delete an artifact
@@ -105,13 +106,15 @@ Class | Method | HTTP request | Description
105
106
  *PulpcoreClient::ArtifactsApi* | [**read**](docs/ArtifactsApi.md#read) | **GET** {artifact_href} | Inspect an artifact
106
107
  *PulpcoreClient::ContentApi* | [**list**](docs/ContentApi.md#list) | **GET** /pulp/api/v3/content/ | List content
107
108
  *PulpcoreClient::ContentguardsApi* | [**list**](docs/ContentguardsApi.md#list) | **GET** /pulp/api/v3/contentguards/ | List content guards
108
- *PulpcoreClient::ContentguardsRbacApi* | [**assign_permission**](docs/ContentguardsRbacApi.md#assign_permission) | **POST** {r_b_a_c_content_guard_href}assign_permission/ | Add download permission
109
+ *PulpcoreClient::ContentguardsRbacApi* | [**add_role**](docs/ContentguardsRbacApi.md#add_role) | **POST** {r_b_a_c_content_guard_href}add_role/ |
109
110
  *PulpcoreClient::ContentguardsRbacApi* | [**create**](docs/ContentguardsRbacApi.md#create) | **POST** /pulp/api/v3/contentguards/core/rbac/ | Create a rbac content guard
110
111
  *PulpcoreClient::ContentguardsRbacApi* | [**delete**](docs/ContentguardsRbacApi.md#delete) | **DELETE** {r_b_a_c_content_guard_href} | Delete a rbac content guard
111
112
  *PulpcoreClient::ContentguardsRbacApi* | [**list**](docs/ContentguardsRbacApi.md#list) | **GET** /pulp/api/v3/contentguards/core/rbac/ | List rbac content guards
113
+ *PulpcoreClient::ContentguardsRbacApi* | [**list_roles**](docs/ContentguardsRbacApi.md#list_roles) | **GET** {r_b_a_c_content_guard_href}list_roles/ |
114
+ *PulpcoreClient::ContentguardsRbacApi* | [**my_permissions**](docs/ContentguardsRbacApi.md#my_permissions) | **GET** {r_b_a_c_content_guard_href}my_permissions/ |
112
115
  *PulpcoreClient::ContentguardsRbacApi* | [**partial_update**](docs/ContentguardsRbacApi.md#partial_update) | **PATCH** {r_b_a_c_content_guard_href} | Update a rbac content guard
113
116
  *PulpcoreClient::ContentguardsRbacApi* | [**read**](docs/ContentguardsRbacApi.md#read) | **GET** {r_b_a_c_content_guard_href} | Inspect a rbac content guard
114
- *PulpcoreClient::ContentguardsRbacApi* | [**remove_permission**](docs/ContentguardsRbacApi.md#remove_permission) | **POST** {r_b_a_c_content_guard_href}remove_permission/ | Remove download permission
117
+ *PulpcoreClient::ContentguardsRbacApi* | [**remove_role**](docs/ContentguardsRbacApi.md#remove_role) | **POST** {r_b_a_c_content_guard_href}remove_role/ |
115
118
  *PulpcoreClient::ContentguardsRbacApi* | [**update**](docs/ContentguardsRbacApi.md#update) | **PUT** {r_b_a_c_content_guard_href} | Update a rbac content guard
116
119
  *PulpcoreClient::ExportersFilesystemApi* | [**create**](docs/ExportersFilesystemApi.md#create) | **POST** /pulp/api/v3/exporters/core/filesystem/ | Create a filesystem exporter
117
120
  *PulpcoreClient::ExportersFilesystemApi* | [**delete**](docs/ExportersFilesystemApi.md#delete) | **DELETE** {filesystem_exporter_href} | Delete a filesystem exporter
@@ -133,23 +136,31 @@ Class | Method | HTTP request | Description
133
136
  *PulpcoreClient::ExportersPulpExportsApi* | [**delete**](docs/ExportersPulpExportsApi.md#delete) | **DELETE** {pulp_pulp_export_href} | Delete a pulp export
134
137
  *PulpcoreClient::ExportersPulpExportsApi* | [**list**](docs/ExportersPulpExportsApi.md#list) | **GET** {pulp_exporter_href}exports/ | List pulp exports
135
138
  *PulpcoreClient::ExportersPulpExportsApi* | [**read**](docs/ExportersPulpExportsApi.md#read) | **GET** {pulp_pulp_export_href} | Inspect a pulp export
139
+ *PulpcoreClient::GroupsApi* | [**add_role**](docs/GroupsApi.md#add_role) | **POST** {group_href}add_role/ |
136
140
  *PulpcoreClient::GroupsApi* | [**create**](docs/GroupsApi.md#create) | **POST** /pulp/api/v3/groups/ | Create a group
137
- *PulpcoreClient::GroupsApi* | [**delete**](docs/GroupsApi.md#delete) | **DELETE** {auth_group_href} | Delete a group
141
+ *PulpcoreClient::GroupsApi* | [**delete**](docs/GroupsApi.md#delete) | **DELETE** {group_href} | Delete a group
138
142
  *PulpcoreClient::GroupsApi* | [**list**](docs/GroupsApi.md#list) | **GET** /pulp/api/v3/groups/ | List groups
139
- *PulpcoreClient::GroupsApi* | [**partial_update**](docs/GroupsApi.md#partial_update) | **PATCH** {auth_group_href} | Update a group
140
- *PulpcoreClient::GroupsApi* | [**read**](docs/GroupsApi.md#read) | **GET** {auth_group_href} | Inspect a group
141
- *PulpcoreClient::GroupsApi* | [**update**](docs/GroupsApi.md#update) | **PUT** {auth_group_href} | Update a group
142
- *PulpcoreClient::GroupsModelPermissionsApi* | [**create**](docs/GroupsModelPermissionsApi.md#create) | **POST** {auth_group_href}model_permissions/ | Create a permission
143
- *PulpcoreClient::GroupsModelPermissionsApi* | [**delete**](docs/GroupsModelPermissionsApi.md#delete) | **DELETE** {auth_groups_model_permission_href} | Delete a permission
144
- *PulpcoreClient::GroupsModelPermissionsApi* | [**list**](docs/GroupsModelPermissionsApi.md#list) | **GET** {auth_group_href}model_permissions/ | List permissions
145
- *PulpcoreClient::GroupsModelPermissionsApi* | [**read**](docs/GroupsModelPermissionsApi.md#read) | **GET** {auth_groups_model_permission_href} | Inspect a permission
146
- *PulpcoreClient::GroupsObjectPermissionsApi* | [**create**](docs/GroupsObjectPermissionsApi.md#create) | **POST** {auth_group_href}object_permissions/ | Create a permission
147
- *PulpcoreClient::GroupsObjectPermissionsApi* | [**delete**](docs/GroupsObjectPermissionsApi.md#delete) | **DELETE** {auth_groups_object_permission_href} | Delete a permission
148
- *PulpcoreClient::GroupsObjectPermissionsApi* | [**list**](docs/GroupsObjectPermissionsApi.md#list) | **GET** {auth_group_href}object_permissions/ | List permissions
149
- *PulpcoreClient::GroupsObjectPermissionsApi* | [**read**](docs/GroupsObjectPermissionsApi.md#read) | **GET** {auth_groups_object_permission_href} | Inspect a permission
150
- *PulpcoreClient::GroupsUsersApi* | [**create**](docs/GroupsUsersApi.md#create) | **POST** {auth_group_href}users/ | Create an user
151
- *PulpcoreClient::GroupsUsersApi* | [**delete**](docs/GroupsUsersApi.md#delete) | **DELETE** {auth_groups_user_href} | Delete an user
152
- *PulpcoreClient::GroupsUsersApi* | [**list**](docs/GroupsUsersApi.md#list) | **GET** {auth_group_href}users/ | List users
143
+ *PulpcoreClient::GroupsApi* | [**list_roles**](docs/GroupsApi.md#list_roles) | **GET** {group_href}list_roles/ |
144
+ *PulpcoreClient::GroupsApi* | [**my_permissions**](docs/GroupsApi.md#my_permissions) | **GET** {group_href}my_permissions/ |
145
+ *PulpcoreClient::GroupsApi* | [**partial_update**](docs/GroupsApi.md#partial_update) | **PATCH** {group_href} | Update a group
146
+ *PulpcoreClient::GroupsApi* | [**read**](docs/GroupsApi.md#read) | **GET** {group_href} | Inspect a group
147
+ *PulpcoreClient::GroupsApi* | [**remove_role**](docs/GroupsApi.md#remove_role) | **POST** {group_href}remove_role/ |
148
+ *PulpcoreClient::GroupsApi* | [**update**](docs/GroupsApi.md#update) | **PUT** {group_href} | Update a group
149
+ *PulpcoreClient::GroupsModelPermissionsApi* | [**create**](docs/GroupsModelPermissionsApi.md#create) | **POST** {group_href}model_permissions/ | Create a permission
150
+ *PulpcoreClient::GroupsModelPermissionsApi* | [**delete**](docs/GroupsModelPermissionsApi.md#delete) | **DELETE** {groups_model_permission_href} | Delete a permission
151
+ *PulpcoreClient::GroupsModelPermissionsApi* | [**list**](docs/GroupsModelPermissionsApi.md#list) | **GET** {group_href}model_permissions/ | List permissions
152
+ *PulpcoreClient::GroupsModelPermissionsApi* | [**read**](docs/GroupsModelPermissionsApi.md#read) | **GET** {groups_model_permission_href} | Inspect a permission
153
+ *PulpcoreClient::GroupsObjectPermissionsApi* | [**create**](docs/GroupsObjectPermissionsApi.md#create) | **POST** {group_href}object_permissions/ | Create a permission
154
+ *PulpcoreClient::GroupsObjectPermissionsApi* | [**delete**](docs/GroupsObjectPermissionsApi.md#delete) | **DELETE** {groups_object_permission_href} | Delete a permission
155
+ *PulpcoreClient::GroupsObjectPermissionsApi* | [**list**](docs/GroupsObjectPermissionsApi.md#list) | **GET** {group_href}object_permissions/ | List permissions
156
+ *PulpcoreClient::GroupsObjectPermissionsApi* | [**read**](docs/GroupsObjectPermissionsApi.md#read) | **GET** {groups_object_permission_href} | Inspect a permission
157
+ *PulpcoreClient::GroupsRolesApi* | [**create**](docs/GroupsRolesApi.md#create) | **POST** {group_href}roles/ | Create a group role
158
+ *PulpcoreClient::GroupsRolesApi* | [**delete**](docs/GroupsRolesApi.md#delete) | **DELETE** {groups_group_role_href} | Delete a group role
159
+ *PulpcoreClient::GroupsRolesApi* | [**list**](docs/GroupsRolesApi.md#list) | **GET** {group_href}roles/ | List group roles
160
+ *PulpcoreClient::GroupsRolesApi* | [**read**](docs/GroupsRolesApi.md#read) | **GET** {groups_group_role_href} | Inspect a group role
161
+ *PulpcoreClient::GroupsUsersApi* | [**create**](docs/GroupsUsersApi.md#create) | **POST** {group_href}users/ | Create an user
162
+ *PulpcoreClient::GroupsUsersApi* | [**delete**](docs/GroupsUsersApi.md#delete) | **DELETE** {groups_user_href} | Delete an user
163
+ *PulpcoreClient::GroupsUsersApi* | [**list**](docs/GroupsUsersApi.md#list) | **GET** {group_href}users/ | List users
153
164
  *PulpcoreClient::ImportersPulpApi* | [**create**](docs/ImportersPulpApi.md#create) | **POST** /pulp/api/v3/importers/core/pulp/ | Create a pulp importer
154
165
  *PulpcoreClient::ImportersPulpApi* | [**delete**](docs/ImportersPulpApi.md#delete) | **DELETE** {pulp_importer_href} | Delete a pulp importer
155
166
  *PulpcoreClient::ImportersPulpApi* | [**list**](docs/ImportersPulpApi.md#list) | **GET** /pulp/api/v3/importers/core/pulp/ | List pulp importers
@@ -168,14 +179,25 @@ Class | Method | HTTP request | Description
168
179
  *PulpcoreClient::RepositoriesApi* | [**list**](docs/RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
169
180
  *PulpcoreClient::RepositoriesReclaimSpaceApi* | [**reclaim**](docs/RepositoriesReclaimSpaceApi.md#reclaim) | **POST** /pulp/api/v3/repositories/reclaim_space/ |
170
181
  *PulpcoreClient::RepositoryVersionsApi* | [**list**](docs/RepositoryVersionsApi.md#list) | **GET** /pulp/api/v3/repository_versions/ | List repository versions
182
+ *PulpcoreClient::RolesApi* | [**create**](docs/RolesApi.md#create) | **POST** /pulp/api/v3/roles/ | Create a role
183
+ *PulpcoreClient::RolesApi* | [**delete**](docs/RolesApi.md#delete) | **DELETE** {role_href} | Delete a role
184
+ *PulpcoreClient::RolesApi* | [**list**](docs/RolesApi.md#list) | **GET** /pulp/api/v3/roles/ | List roles
185
+ *PulpcoreClient::RolesApi* | [**partial_update**](docs/RolesApi.md#partial_update) | **PATCH** {role_href} | Update a role
186
+ *PulpcoreClient::RolesApi* | [**read**](docs/RolesApi.md#read) | **GET** {role_href} | Inspect a role
187
+ *PulpcoreClient::RolesApi* | [**update**](docs/RolesApi.md#update) | **PUT** {role_href} | Update a role
171
188
  *PulpcoreClient::SigningServicesApi* | [**list**](docs/SigningServicesApi.md#list) | **GET** /pulp/api/v3/signing-services/ | List signing services
172
189
  *PulpcoreClient::SigningServicesApi* | [**read**](docs/SigningServicesApi.md#read) | **GET** {signing_service_href} | Inspect a signing service
173
190
  *PulpcoreClient::StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
174
191
  *PulpcoreClient::TaskGroupsApi* | [**list**](docs/TaskGroupsApi.md#list) | **GET** /pulp/api/v3/task-groups/ | List task groups
175
192
  *PulpcoreClient::TaskGroupsApi* | [**read**](docs/TaskGroupsApi.md#read) | **GET** {task_group_href} | Inspect a task group
193
+ *PulpcoreClient::TasksApi* | [**add_role**](docs/TasksApi.md#add_role) | **POST** {task_href}add_role/ |
176
194
  *PulpcoreClient::TasksApi* | [**delete**](docs/TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
177
195
  *PulpcoreClient::TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
196
+ *PulpcoreClient::TasksApi* | [**list_roles**](docs/TasksApi.md#list_roles) | **GET** {task_href}list_roles/ |
197
+ *PulpcoreClient::TasksApi* | [**my_permissions**](docs/TasksApi.md#my_permissions) | **GET** {task_href}my_permissions/ |
198
+ *PulpcoreClient::TasksApi* | [**purge**](docs/TasksApi.md#purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
178
199
  *PulpcoreClient::TasksApi* | [**read**](docs/TasksApi.md#read) | **GET** {task_href} | Inspect a task
200
+ *PulpcoreClient::TasksApi* | [**remove_role**](docs/TasksApi.md#remove_role) | **POST** {task_href}remove_role/ |
179
201
  *PulpcoreClient::TasksApi* | [**tasks_cancel**](docs/TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
180
202
  *PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
181
203
  *PulpcoreClient::UploadsApi* | [**create**](docs/UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
@@ -183,9 +205,17 @@ Class | Method | HTTP request | Description
183
205
  *PulpcoreClient::UploadsApi* | [**list**](docs/UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
184
206
  *PulpcoreClient::UploadsApi* | [**read**](docs/UploadsApi.md#read) | **GET** {upload_href} | Inspect an upload
185
207
  *PulpcoreClient::UploadsApi* | [**update**](docs/UploadsApi.md#update) | **PUT** {upload_href} | Upload a file chunk
208
+ *PulpcoreClient::UsersApi* | [**create**](docs/UsersApi.md#create) | **POST** /pulp/api/v3/users/ | Create an user
209
+ *PulpcoreClient::UsersApi* | [**delete**](docs/UsersApi.md#delete) | **DELETE** {auth_user_href} | Delete an user
186
210
  *PulpcoreClient::UsersApi* | [**list**](docs/UsersApi.md#list) | **GET** /pulp/api/v3/users/ | List users
211
+ *PulpcoreClient::UsersApi* | [**partial_update**](docs/UsersApi.md#partial_update) | **PATCH** {auth_user_href} | Update an user
187
212
  *PulpcoreClient::UsersApi* | [**permissions**](docs/UsersApi.md#permissions) | **GET** {auth_user_href}permissions/ |
188
213
  *PulpcoreClient::UsersApi* | [**read**](docs/UsersApi.md#read) | **GET** {auth_user_href} | Inspect an user
214
+ *PulpcoreClient::UsersApi* | [**update**](docs/UsersApi.md#update) | **PUT** {auth_user_href} | Update an user
215
+ *PulpcoreClient::UsersRolesApi* | [**create**](docs/UsersRolesApi.md#create) | **POST** {auth_user_href}roles/ | Create an user role
216
+ *PulpcoreClient::UsersRolesApi* | [**delete**](docs/UsersRolesApi.md#delete) | **DELETE** {auth_users_user_role_href} | Delete an user role
217
+ *PulpcoreClient::UsersRolesApi* | [**list**](docs/UsersRolesApi.md#list) | **GET** {auth_user_href}roles/ | List user roles
218
+ *PulpcoreClient::UsersRolesApi* | [**read**](docs/UsersRolesApi.md#read) | **GET** {auth_users_user_role_href} | Inspect an user role
189
219
  *PulpcoreClient::WorkersApi* | [**list**](docs/WorkersApi.md#list) | **GET** /pulp/api/v3/workers/ | List workers
190
220
  *PulpcoreClient::WorkersApi* | [**read**](docs/WorkersApi.md#read) | **GET** {worker_href} | Inspect a worker
191
221
 
@@ -209,12 +239,18 @@ Class | Method | HTTP request | Description
209
239
  - [PulpcoreClient::Group](docs/Group.md)
210
240
  - [PulpcoreClient::GroupProgressReportResponse](docs/GroupProgressReportResponse.md)
211
241
  - [PulpcoreClient::GroupResponse](docs/GroupResponse.md)
242
+ - [PulpcoreClient::GroupRole](docs/GroupRole.md)
243
+ - [PulpcoreClient::GroupRoleResponse](docs/GroupRoleResponse.md)
212
244
  - [PulpcoreClient::GroupUser](docs/GroupUser.md)
213
245
  - [PulpcoreClient::GroupUserResponse](docs/GroupUserResponse.md)
214
246
  - [PulpcoreClient::ImportResponse](docs/ImportResponse.md)
215
247
  - [PulpcoreClient::MethodEnum](docs/MethodEnum.md)
216
248
  - [PulpcoreClient::MinimalTaskResponse](docs/MinimalTaskResponse.md)
217
249
  - [PulpcoreClient::MultipleArtifactContentResponse](docs/MultipleArtifactContentResponse.md)
250
+ - [PulpcoreClient::MyPermissionsResponse](docs/MyPermissionsResponse.md)
251
+ - [PulpcoreClient::NestedRole](docs/NestedRole.md)
252
+ - [PulpcoreClient::NestedRoleResponse](docs/NestedRoleResponse.md)
253
+ - [PulpcoreClient::ObjectRolesResponse](docs/ObjectRolesResponse.md)
218
254
  - [PulpcoreClient::OrphansCleanup](docs/OrphansCleanup.md)
219
255
  - [PulpcoreClient::PaginatedAccessPolicyResponseList](docs/PaginatedAccessPolicyResponseList.md)
220
256
  - [PulpcoreClient::PaginatedArtifactResponseList](docs/PaginatedArtifactResponseList.md)
@@ -222,6 +258,7 @@ Class | Method | HTTP request | Description
222
258
  - [PulpcoreClient::PaginatedFilesystemExportResponseList](docs/PaginatedFilesystemExportResponseList.md)
223
259
  - [PulpcoreClient::PaginatedFilesystemExporterResponseList](docs/PaginatedFilesystemExporterResponseList.md)
224
260
  - [PulpcoreClient::PaginatedGroupResponseList](docs/PaginatedGroupResponseList.md)
261
+ - [PulpcoreClient::PaginatedGroupRoleResponseList](docs/PaginatedGroupRoleResponseList.md)
225
262
  - [PulpcoreClient::PaginatedGroupUserResponseList](docs/PaginatedGroupUserResponseList.md)
226
263
  - [PulpcoreClient::PaginatedImportResponseList](docs/PaginatedImportResponseList.md)
227
264
  - [PulpcoreClient::PaginatedMultipleArtifactContentResponseList](docs/PaginatedMultipleArtifactContentResponseList.md)
@@ -233,11 +270,13 @@ Class | Method | HTTP request | Description
233
270
  - [PulpcoreClient::PaginatedRBACContentGuardResponseList](docs/PaginatedRBACContentGuardResponseList.md)
234
271
  - [PulpcoreClient::PaginatedRepositoryResponseList](docs/PaginatedRepositoryResponseList.md)
235
272
  - [PulpcoreClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
273
+ - [PulpcoreClient::PaginatedRoleResponseList](docs/PaginatedRoleResponseList.md)
236
274
  - [PulpcoreClient::PaginatedSigningServiceResponseList](docs/PaginatedSigningServiceResponseList.md)
237
275
  - [PulpcoreClient::PaginatedTaskGroupResponseList](docs/PaginatedTaskGroupResponseList.md)
238
276
  - [PulpcoreClient::PaginatedTaskResponseList](docs/PaginatedTaskResponseList.md)
239
277
  - [PulpcoreClient::PaginatedUploadResponseList](docs/PaginatedUploadResponseList.md)
240
278
  - [PulpcoreClient::PaginatedUserResponseList](docs/PaginatedUserResponseList.md)
279
+ - [PulpcoreClient::PaginatedUserRoleResponseList](docs/PaginatedUserRoleResponseList.md)
241
280
  - [PulpcoreClient::PaginatedWorkerResponseList](docs/PaginatedWorkerResponseList.md)
242
281
  - [PulpcoreClient::PatchedAccessPolicy](docs/PatchedAccessPolicy.md)
243
282
  - [PulpcoreClient::PatchedFilesystemExporter](docs/PatchedFilesystemExporter.md)
@@ -245,7 +284,9 @@ Class | Method | HTTP request | Description
245
284
  - [PulpcoreClient::PatchedPulpExporter](docs/PatchedPulpExporter.md)
246
285
  - [PulpcoreClient::PatchedPulpImporter](docs/PatchedPulpImporter.md)
247
286
  - [PulpcoreClient::PatchedRBACContentGuard](docs/PatchedRBACContentGuard.md)
287
+ - [PulpcoreClient::PatchedRole](docs/PatchedRole.md)
248
288
  - [PulpcoreClient::PatchedTaskCancel](docs/PatchedTaskCancel.md)
289
+ - [PulpcoreClient::PatchedUser](docs/PatchedUser.md)
249
290
  - [PulpcoreClient::PermissionResponse](docs/PermissionResponse.md)
250
291
  - [PulpcoreClient::ProgressReportResponse](docs/ProgressReportResponse.md)
251
292
  - [PulpcoreClient::PublicationResponse](docs/PublicationResponse.md)
@@ -258,15 +299,18 @@ Class | Method | HTTP request | Description
258
299
  - [PulpcoreClient::PulpImportCheckResponse](docs/PulpImportCheckResponse.md)
259
300
  - [PulpcoreClient::PulpImporter](docs/PulpImporter.md)
260
301
  - [PulpcoreClient::PulpImporterResponse](docs/PulpImporterResponse.md)
302
+ - [PulpcoreClient::Purge](docs/Purge.md)
261
303
  - [PulpcoreClient::RBACContentGuard](docs/RBACContentGuard.md)
262
- - [PulpcoreClient::RBACContentGuardPermission](docs/RBACContentGuardPermission.md)
263
304
  - [PulpcoreClient::RBACContentGuardResponse](docs/RBACContentGuardResponse.md)
264
305
  - [PulpcoreClient::ReclaimSpace](docs/ReclaimSpace.md)
265
306
  - [PulpcoreClient::RedisConnectionResponse](docs/RedisConnectionResponse.md)
266
307
  - [PulpcoreClient::Repair](docs/Repair.md)
267
308
  - [PulpcoreClient::RepositoryResponse](docs/RepositoryResponse.md)
268
309
  - [PulpcoreClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
310
+ - [PulpcoreClient::Role](docs/Role.md)
311
+ - [PulpcoreClient::RoleResponse](docs/RoleResponse.md)
269
312
  - [PulpcoreClient::SigningServiceResponse](docs/SigningServiceResponse.md)
313
+ - [PulpcoreClient::StatesEnum](docs/StatesEnum.md)
270
314
  - [PulpcoreClient::StatusResponse](docs/StatusResponse.md)
271
315
  - [PulpcoreClient::StorageResponse](docs/StorageResponse.md)
272
316
  - [PulpcoreClient::TaskGroupOperationResponse](docs/TaskGroupOperationResponse.md)
@@ -278,8 +322,12 @@ Class | Method | HTTP request | Description
278
322
  - [PulpcoreClient::UploadCommit](docs/UploadCommit.md)
279
323
  - [PulpcoreClient::UploadDetailResponse](docs/UploadDetailResponse.md)
280
324
  - [PulpcoreClient::UploadResponse](docs/UploadResponse.md)
325
+ - [PulpcoreClient::User](docs/User.md)
326
+ - [PulpcoreClient::UserGroup](docs/UserGroup.md)
281
327
  - [PulpcoreClient::UserGroupResponse](docs/UserGroupResponse.md)
282
328
  - [PulpcoreClient::UserResponse](docs/UserResponse.md)
329
+ - [PulpcoreClient::UserRole](docs/UserRole.md)
330
+ - [PulpcoreClient::UserRoleResponse](docs/UserRoleResponse.md)
283
331
  - [PulpcoreClient::VersionResponse](docs/VersionResponse.md)
284
332
  - [PulpcoreClient::WorkerResponse](docs/WorkerResponse.md)
285
333
 
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**list**](AccessPoliciesApi.md#list) | **GET** /pulp/api/v3/access_policies/ | List access policys
8
8
  [**partial_update**](AccessPoliciesApi.md#partial_update) | **PATCH** {access_policy_href} | Update an access policy
9
9
  [**read**](AccessPoliciesApi.md#read) | **GET** {access_policy_href} | Inspect an access policy
10
+ [**reset**](AccessPoliciesApi.md#reset) | **POST** {access_policy_href}reset/ |
10
11
  [**update**](AccessPoliciesApi.md#update) | **PUT** {access_policy_href} | Update an access policy
11
12
 
12
13
 
@@ -200,6 +201,58 @@ Name | Type | Description | Notes
200
201
  - **Accept**: application/json
201
202
 
202
203
 
204
+ ## reset
205
+
206
+ > AccessPolicyResponse reset(access_policy_href)
207
+
208
+
209
+
210
+ Reset the access policy to its uncustomized default value.
211
+
212
+ ### Example
213
+
214
+ ```ruby
215
+ # load the gem
216
+ require 'pulpcore_client'
217
+ # setup authorization
218
+ PulpcoreClient.configure do |config|
219
+ # Configure HTTP basic authorization: basicAuth
220
+ config.username = 'YOUR USERNAME'
221
+ config.password = 'YOUR PASSWORD'
222
+ end
223
+
224
+ api_instance = PulpcoreClient::AccessPoliciesApi.new
225
+ access_policy_href = 'access_policy_href_example' # String |
226
+
227
+ begin
228
+ result = api_instance.reset(access_policy_href)
229
+ p result
230
+ rescue PulpcoreClient::ApiError => e
231
+ puts "Exception when calling AccessPoliciesApi->reset: #{e}"
232
+ end
233
+ ```
234
+
235
+ ### Parameters
236
+
237
+
238
+ Name | Type | Description | Notes
239
+ ------------- | ------------- | ------------- | -------------
240
+ **access_policy_href** | **String**| |
241
+
242
+ ### Return type
243
+
244
+ [**AccessPolicyResponse**](AccessPolicyResponse.md)
245
+
246
+ ### Authorization
247
+
248
+ [basicAuth](../README.md#basicAuth)
249
+
250
+ ### HTTP request headers
251
+
252
+ - **Content-Type**: Not defined
253
+ - **Accept**: application/json
254
+
255
+
203
256
  ## update
204
257
 
205
258
  > AccessPolicyResponse update(access_policy_href, access_policy)
data/docs/AccessPolicy.md CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **permissions_assignment** | **Array<Object>** | List of callables that define the new permissions to be created for new objects. |
7
+ **permissions_assignment** | **Array<Object>** | List of callables that define the new permissions to be created for new objects.This is deprecated. Use `creation_hooks` instead. |
8
+ **creation_hooks** | **Array<Object>** | List of callables that may associate user roles for new objects. |
8
9
  **statements** | **Array<Object>** | List of policy statements defining the policy. |
9
10
 
10
11
  ## Code Sample
@@ -13,6 +14,7 @@ Name | Type | Description | Notes
13
14
  require 'PulpcoreClient'
14
15
 
15
16
  instance = PulpcoreClient::AccessPolicy.new(permissions_assignment: null,
17
+ creation_hooks: null,
16
18
  statements: null)
17
19
  ```
18
20
 
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
- **permissions_assignment** | **Array<Object>** | List of callables that define the new permissions to be created for new objects. |
9
+ **permissions_assignment** | **Array<Object>** | List of callables that define the new permissions to be created for new objects.This is deprecated. Use `creation_hooks` instead. |
10
+ **creation_hooks** | **Array<Object>** | List of callables that may associate user roles for new objects. |
10
11
  **statements** | **Array<Object>** | List of policy statements defining the policy. |
11
12
  **viewset_name** | **String** | The name of ViewSet this AccessPolicy authorizes. | [optional] [readonly]
12
13
  **customized** | **Boolean** | True if the AccessPolicy has been user-modified. False otherwise. | [optional] [readonly]
@@ -19,6 +20,7 @@ require 'PulpcoreClient'
19
20
  instance = PulpcoreClient::AccessPolicyResponse.new(pulp_href: null,
20
21
  pulp_created: null,
21
22
  permissions_assignment: null,
23
+ creation_hooks: null,
22
24
  statements: null,
23
25
  viewset_name: null,
24
26
  customized: null)
@@ -4,24 +4,26 @@ All URIs are relative to *https://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**assign_permission**](ContentguardsRbacApi.md#assign_permission) | **POST** {r_b_a_c_content_guard_href}assign_permission/ | Add download permission
7
+ [**add_role**](ContentguardsRbacApi.md#add_role) | **POST** {r_b_a_c_content_guard_href}add_role/ |
8
8
  [**create**](ContentguardsRbacApi.md#create) | **POST** /pulp/api/v3/contentguards/core/rbac/ | Create a rbac content guard
9
9
  [**delete**](ContentguardsRbacApi.md#delete) | **DELETE** {r_b_a_c_content_guard_href} | Delete a rbac content guard
10
10
  [**list**](ContentguardsRbacApi.md#list) | **GET** /pulp/api/v3/contentguards/core/rbac/ | List rbac content guards
11
+ [**list_roles**](ContentguardsRbacApi.md#list_roles) | **GET** {r_b_a_c_content_guard_href}list_roles/ |
12
+ [**my_permissions**](ContentguardsRbacApi.md#my_permissions) | **GET** {r_b_a_c_content_guard_href}my_permissions/ |
11
13
  [**partial_update**](ContentguardsRbacApi.md#partial_update) | **PATCH** {r_b_a_c_content_guard_href} | Update a rbac content guard
12
14
  [**read**](ContentguardsRbacApi.md#read) | **GET** {r_b_a_c_content_guard_href} | Inspect a rbac content guard
13
- [**remove_permission**](ContentguardsRbacApi.md#remove_permission) | **POST** {r_b_a_c_content_guard_href}remove_permission/ | Remove download permission
15
+ [**remove_role**](ContentguardsRbacApi.md#remove_role) | **POST** {r_b_a_c_content_guard_href}remove_role/ |
14
16
  [**update**](ContentguardsRbacApi.md#update) | **PUT** {r_b_a_c_content_guard_href} | Update a rbac content guard
15
17
 
16
18
 
17
19
 
18
- ## assign_permission
20
+ ## add_role
19
21
 
20
- > RBACContentGuardResponse assign_permission(r_b_a_c_content_guard_href, rbac_content_guard_permission)
22
+ > NestedRoleResponse add_role(r_b_a_c_content_guard_href, nested_role)
21
23
 
22
- Add download permission
23
24
 
24
- Give users and groups the `download` permission
25
+
26
+ Add a role for this object to users/groups.
25
27
 
26
28
  ### Example
27
29
 
@@ -37,14 +39,13 @@ end
37
39
 
38
40
  api_instance = PulpcoreClient::ContentguardsRbacApi.new
39
41
  r_b_a_c_content_guard_href = 'r_b_a_c_content_guard_href_example' # String |
40
- rbac_content_guard_permission = PulpcoreClient::RBACContentGuardPermission.new # RBACContentGuardPermission |
42
+ nested_role = PulpcoreClient::NestedRole.new # NestedRole |
41
43
 
42
44
  begin
43
- #Add download permission
44
- result = api_instance.assign_permission(r_b_a_c_content_guard_href, rbac_content_guard_permission)
45
+ result = api_instance.add_role(r_b_a_c_content_guard_href, nested_role)
45
46
  p result
46
47
  rescue PulpcoreClient::ApiError => e
47
- puts "Exception when calling ContentguardsRbacApi->assign_permission: #{e}"
48
+ puts "Exception when calling ContentguardsRbacApi->add_role: #{e}"
48
49
  end
49
50
  ```
50
51
 
@@ -54,11 +55,11 @@ end
54
55
  Name | Type | Description | Notes
55
56
  ------------- | ------------- | ------------- | -------------
56
57
  **r_b_a_c_content_guard_href** | **String**| |
57
- **rbac_content_guard_permission** | [**RBACContentGuardPermission**](RBACContentGuardPermission.md)| |
58
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
58
59
 
59
60
  ### Return type
60
61
 
61
- [**RBACContentGuardResponse**](RBACContentGuardResponse.md)
62
+ [**NestedRoleResponse**](NestedRoleResponse.md)
62
63
 
63
64
  ### Authorization
64
65
 
@@ -248,6 +249,122 @@ Name | Type | Description | Notes
248
249
  - **Accept**: application/json
249
250
 
250
251
 
252
+ ## list_roles
253
+
254
+ > ObjectRolesResponse list_roles(r_b_a_c_content_guard_href, opts)
255
+
256
+
257
+
258
+ List roles assigned to this object.
259
+
260
+ ### Example
261
+
262
+ ```ruby
263
+ # load the gem
264
+ require 'pulpcore_client'
265
+ # setup authorization
266
+ PulpcoreClient.configure do |config|
267
+ # Configure HTTP basic authorization: basicAuth
268
+ config.username = 'YOUR USERNAME'
269
+ config.password = 'YOUR PASSWORD'
270
+ end
271
+
272
+ api_instance = PulpcoreClient::ContentguardsRbacApi.new
273
+ r_b_a_c_content_guard_href = 'r_b_a_c_content_guard_href_example' # String |
274
+ opts = {
275
+ fields: 'fields_example', # String | A list of fields to include in the response.
276
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
277
+ }
278
+
279
+ begin
280
+ result = api_instance.list_roles(r_b_a_c_content_guard_href, opts)
281
+ p result
282
+ rescue PulpcoreClient::ApiError => e
283
+ puts "Exception when calling ContentguardsRbacApi->list_roles: #{e}"
284
+ end
285
+ ```
286
+
287
+ ### Parameters
288
+
289
+
290
+ Name | Type | Description | Notes
291
+ ------------- | ------------- | ------------- | -------------
292
+ **r_b_a_c_content_guard_href** | **String**| |
293
+ **fields** | **String**| A list of fields to include in the response. | [optional]
294
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
295
+
296
+ ### Return type
297
+
298
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
299
+
300
+ ### Authorization
301
+
302
+ [basicAuth](../README.md#basicAuth)
303
+
304
+ ### HTTP request headers
305
+
306
+ - **Content-Type**: Not defined
307
+ - **Accept**: application/json
308
+
309
+
310
+ ## my_permissions
311
+
312
+ > MyPermissionsResponse my_permissions(r_b_a_c_content_guard_href, opts)
313
+
314
+
315
+
316
+ List permissions available to the current user on this object.
317
+
318
+ ### Example
319
+
320
+ ```ruby
321
+ # load the gem
322
+ require 'pulpcore_client'
323
+ # setup authorization
324
+ PulpcoreClient.configure do |config|
325
+ # Configure HTTP basic authorization: basicAuth
326
+ config.username = 'YOUR USERNAME'
327
+ config.password = 'YOUR PASSWORD'
328
+ end
329
+
330
+ api_instance = PulpcoreClient::ContentguardsRbacApi.new
331
+ r_b_a_c_content_guard_href = 'r_b_a_c_content_guard_href_example' # String |
332
+ opts = {
333
+ fields: 'fields_example', # String | A list of fields to include in the response.
334
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
335
+ }
336
+
337
+ begin
338
+ result = api_instance.my_permissions(r_b_a_c_content_guard_href, opts)
339
+ p result
340
+ rescue PulpcoreClient::ApiError => e
341
+ puts "Exception when calling ContentguardsRbacApi->my_permissions: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+
348
+ Name | Type | Description | Notes
349
+ ------------- | ------------- | ------------- | -------------
350
+ **r_b_a_c_content_guard_href** | **String**| |
351
+ **fields** | **String**| A list of fields to include in the response. | [optional]
352
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
353
+
354
+ ### Return type
355
+
356
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
357
+
358
+ ### Authorization
359
+
360
+ [basicAuth](../README.md#basicAuth)
361
+
362
+ ### HTTP request headers
363
+
364
+ - **Content-Type**: Not defined
365
+ - **Accept**: application/json
366
+
367
+
251
368
  ## partial_update
252
369
 
253
370
  > RBACContentGuardResponse partial_update(r_b_a_c_content_guard_href, patched_rbac_content_guard)
@@ -362,13 +479,13 @@ Name | Type | Description | Notes
362
479
  - **Accept**: application/json
363
480
 
364
481
 
365
- ## remove_permission
482
+ ## remove_role
483
+
484
+ > NestedRoleResponse remove_role(r_b_a_c_content_guard_href, nested_role)
366
485
 
367
- > RBACContentGuardResponse remove_permission(r_b_a_c_content_guard_href, rbac_content_guard_permission)
368
486
 
369
- Remove download permission
370
487
 
371
- Remove `download` permission from users and groups
488
+ Remove a role for this object from users/groups.
372
489
 
373
490
  ### Example
374
491
 
@@ -384,14 +501,13 @@ end
384
501
 
385
502
  api_instance = PulpcoreClient::ContentguardsRbacApi.new
386
503
  r_b_a_c_content_guard_href = 'r_b_a_c_content_guard_href_example' # String |
387
- rbac_content_guard_permission = PulpcoreClient::RBACContentGuardPermission.new # RBACContentGuardPermission |
504
+ nested_role = PulpcoreClient::NestedRole.new # NestedRole |
388
505
 
389
506
  begin
390
- #Remove download permission
391
- result = api_instance.remove_permission(r_b_a_c_content_guard_href, rbac_content_guard_permission)
507
+ result = api_instance.remove_role(r_b_a_c_content_guard_href, nested_role)
392
508
  p result
393
509
  rescue PulpcoreClient::ApiError => e
394
- puts "Exception when calling ContentguardsRbacApi->remove_permission: #{e}"
510
+ puts "Exception when calling ContentguardsRbacApi->remove_role: #{e}"
395
511
  end
396
512
  ```
397
513
 
@@ -401,11 +517,11 @@ end
401
517
  Name | Type | Description | Notes
402
518
  ------------- | ------------- | ------------- | -------------
403
519
  **r_b_a_c_content_guard_href** | **String**| |
404
- **rbac_content_guard_permission** | [**RBACContentGuardPermission**](RBACContentGuardPermission.md)| |
520
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
405
521
 
406
522
  ### Return type
407
523
 
408
- [**RBACContentGuardResponse**](RBACContentGuardResponse.md)
524
+ [**NestedRoleResponse**](NestedRoleResponse.md)
409
525
 
410
526
  ### Authorization
411
527
 
data/docs/GroupRole.md ADDED
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::GroupRole
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **role** | **String** | |
8
+ **content_object** | **String** | Optional pulp_href of the object the permissions are to be asserted on. |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::GroupRole.new(role: null,
16
+ content_object: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,23 @@
1
+ # PulpcoreClient::GroupRoleResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **role** | **String** | |
10
+ **content_object** | **String** | Optional pulp_href of the object the permissions are to be asserted on. |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpcoreClient'
16
+
17
+ instance = PulpcoreClient::GroupRoleResponse.new(pulp_href: null,
18
+ pulp_created: null,
19
+ role: null,
20
+ content_object: null)
21
+ ```
22
+
23
+