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.
- checksums.yaml +4 -4
- data/README.md +70 -22
- data/docs/AccessPoliciesApi.md +53 -0
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/ContentguardsRbacApi.md +138 -22
- data/docs/GroupRole.md +19 -0
- data/docs/GroupRoleResponse.md +23 -0
- data/docs/GroupsApi.md +248 -20
- data/docs/GroupsModelPermissionsApi.md +20 -20
- data/docs/GroupsObjectPermissionsApi.md +20 -20
- data/docs/GroupsRolesApi.md +255 -0
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedGroupRoleResponseList.md +23 -0
- data/docs/PaginatedRoleResponseList.md +23 -0
- data/docs/PaginatedUserRoleResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedRole.md +21 -0
- data/docs/PatchedUser.md +29 -0
- data/docs/PermissionResponse.md +1 -1
- data/docs/Purge.md +19 -0
- data/docs/Role.md +21 -0
- data/docs/RoleResponse.md +27 -0
- data/docs/RolesApi.md +363 -0
- data/docs/StatesEnum.md +16 -0
- data/docs/TasksApi.md +282 -0
- data/docs/User.md +29 -0
- data/docs/UserGroup.md +17 -0
- data/docs/UserResponse.md +3 -3
- data/docs/UserRole.md +19 -0
- data/docs/UserRoleResponse.md +23 -0
- data/docs/UsersApi.md +219 -0
- data/docs/UsersRolesApi.md +255 -0
- data/docs/WorkerResponse.md +3 -3
- data/git_push.sh +58 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
- data/lib/pulpcore_client/api/groups_api.rb +304 -36
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
- data/lib/pulpcore_client/api/roles_api.rb +443 -0
- data/lib/pulpcore_client/api/tasks_api.rb +332 -0
- data/lib/pulpcore_client/api/uploads_api.rb +4 -0
- data/lib/pulpcore_client/api/users_api.rb +264 -0
- data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
- data/lib/pulpcore_client/api_client.rb +5 -2
- data/lib/pulpcore_client/configuration.rb +0 -1
- data/lib/pulpcore_client/models/access_policy.rb +19 -2
- data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
- data/lib/pulpcore_client/models/artifact.rb +90 -0
- data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
- data/lib/pulpcore_client/models/group.rb +9 -0
- data/lib/pulpcore_client/models/group_role.rb +238 -0
- data/lib/pulpcore_client/models/group_role_response.rb +242 -0
- data/lib/pulpcore_client/models/group_user.rb +9 -0
- data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
- data/lib/pulpcore_client/models/nested_role.rb +234 -0
- data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
- data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
- data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_group.rb +9 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
- data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
- data/lib/pulpcore_client/models/patched_role.rb +261 -0
- data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
- data/lib/pulpcore_client/models/patched_user.rb +342 -0
- data/lib/pulpcore_client/models/permission_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +15 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
- data/lib/pulpcore_client/models/pulp_import.rb +30 -0
- data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
- data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
- data/lib/pulpcore_client/models/purge.rb +219 -0
- data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
- data/lib/pulpcore_client/models/role.rb +275 -0
- data/lib/pulpcore_client/models/role_response.rb +270 -0
- data/lib/pulpcore_client/models/states_enum.rb +38 -0
- data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
- data/lib/pulpcore_client/models/upload_commit.rb +19 -0
- data/lib/pulpcore_client/models/user.rb +351 -0
- data/lib/pulpcore_client/models/user_group.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +6 -29
- data/lib/pulpcore_client/models/user_role.rb +238 -0
- data/lib/pulpcore_client/models/user_role_response.rb +242 -0
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +22 -1
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/access_policies_api_spec.rb +11 -0
- data/spec/api/contentguards_rbac_api_spec.rb +36 -12
- data/spec/api/groups_api_spec.rb +54 -4
- data/spec/api/groups_model_permissions_api_spec.rb +4 -4
- data/spec/api/groups_object_permissions_api_spec.rb +4 -4
- data/spec/api/groups_roles_api_spec.rb +97 -0
- data/spec/api/groups_users_api_spec.rb +3 -3
- data/spec/api/roles_api_spec.rb +121 -0
- data/spec/api/tasks_api_spec.rb +62 -0
- data/spec/api/users_api_spec.rb +50 -0
- data/spec/api/users_roles_api_spec.rb +97 -0
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/group_role_response_spec.rb +59 -0
- data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_group_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_role_spec.rb +53 -0
- data/spec/models/patched_user_spec.rb +77 -0
- data/spec/models/purge_spec.rb +47 -0
- data/spec/models/role_response_spec.rb +71 -0
- data/spec/models/role_spec.rb +53 -0
- data/spec/models/states_enum_spec.rb +35 -0
- data/spec/models/user_group_spec.rb +41 -0
- data/spec/models/user_role_response_spec.rb +59 -0
- data/spec/models/user_role_spec.rb +47 -0
- data/spec/models/user_spec.rb +77 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +190 -111
- data/docs/RBACContentGuardPermission.md +0 -19
data/docs/RolesApi.md
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
# PulpcoreClient::RolesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://pulp*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](RolesApi.md#create) | **POST** /pulp/api/v3/roles/ | Create a role
|
|
8
|
+
[**delete**](RolesApi.md#delete) | **DELETE** {role_href} | Delete a role
|
|
9
|
+
[**list**](RolesApi.md#list) | **GET** /pulp/api/v3/roles/ | List roles
|
|
10
|
+
[**partial_update**](RolesApi.md#partial_update) | **PATCH** {role_href} | Update a role
|
|
11
|
+
[**read**](RolesApi.md#read) | **GET** {role_href} | Inspect a role
|
|
12
|
+
[**update**](RolesApi.md#update) | **PUT** {role_href} | Update a role
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## create
|
|
17
|
+
|
|
18
|
+
> RoleResponse create(role)
|
|
19
|
+
|
|
20
|
+
Create a role
|
|
21
|
+
|
|
22
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
# load the gem
|
|
28
|
+
require 'pulpcore_client'
|
|
29
|
+
# setup authorization
|
|
30
|
+
PulpcoreClient.configure do |config|
|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
|
32
|
+
config.username = 'YOUR USERNAME'
|
|
33
|
+
config.password = 'YOUR PASSWORD'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = PulpcoreClient::RolesApi.new
|
|
37
|
+
role = PulpcoreClient::Role.new # Role |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
#Create a role
|
|
41
|
+
result = api_instance.create(role)
|
|
42
|
+
p result
|
|
43
|
+
rescue PulpcoreClient::ApiError => e
|
|
44
|
+
puts "Exception when calling RolesApi->create: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
Name | Type | Description | Notes
|
|
52
|
+
------------- | ------------- | ------------- | -------------
|
|
53
|
+
**role** | [**Role**](Role.md)| |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**RoleResponse**](RoleResponse.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## delete
|
|
70
|
+
|
|
71
|
+
> delete(role_href)
|
|
72
|
+
|
|
73
|
+
Delete a role
|
|
74
|
+
|
|
75
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
# load the gem
|
|
81
|
+
require 'pulpcore_client'
|
|
82
|
+
# setup authorization
|
|
83
|
+
PulpcoreClient.configure do |config|
|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
|
85
|
+
config.username = 'YOUR USERNAME'
|
|
86
|
+
config.password = 'YOUR PASSWORD'
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
api_instance = PulpcoreClient::RolesApi.new
|
|
90
|
+
role_href = 'role_href_example' # String |
|
|
91
|
+
|
|
92
|
+
begin
|
|
93
|
+
#Delete a role
|
|
94
|
+
api_instance.delete(role_href)
|
|
95
|
+
rescue PulpcoreClient::ApiError => e
|
|
96
|
+
puts "Exception when calling RolesApi->delete: #{e}"
|
|
97
|
+
end
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
Name | Type | Description | Notes
|
|
104
|
+
------------- | ------------- | ------------- | -------------
|
|
105
|
+
**role_href** | **String**| |
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
nil (empty response body)
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[basicAuth](../README.md#basicAuth)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: Not defined
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## list
|
|
122
|
+
|
|
123
|
+
> PaginatedRoleResponseList list(opts)
|
|
124
|
+
|
|
125
|
+
List roles
|
|
126
|
+
|
|
127
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
|
|
131
|
+
```ruby
|
|
132
|
+
# load the gem
|
|
133
|
+
require 'pulpcore_client'
|
|
134
|
+
# setup authorization
|
|
135
|
+
PulpcoreClient.configure do |config|
|
|
136
|
+
# Configure HTTP basic authorization: basicAuth
|
|
137
|
+
config.username = 'YOUR USERNAME'
|
|
138
|
+
config.password = 'YOUR PASSWORD'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
api_instance = PulpcoreClient::RolesApi.new
|
|
142
|
+
opts = {
|
|
143
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
144
|
+
locked: true, # Boolean | Filter results where locked matches value
|
|
145
|
+
name: 'name_example', # String | Filter results where name matches value
|
|
146
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
|
147
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
|
148
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
149
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
150
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
151
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
152
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
153
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
begin
|
|
157
|
+
#List roles
|
|
158
|
+
result = api_instance.list(opts)
|
|
159
|
+
p result
|
|
160
|
+
rescue PulpcoreClient::ApiError => e
|
|
161
|
+
puts "Exception when calling RolesApi->list: #{e}"
|
|
162
|
+
end
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
Name | Type | Description | Notes
|
|
169
|
+
------------- | ------------- | ------------- | -------------
|
|
170
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
171
|
+
**locked** | **Boolean**| Filter results where locked matches value | [optional]
|
|
172
|
+
**name** | **String**| Filter results where name matches value | [optional]
|
|
173
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
|
174
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
|
175
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
176
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
|
177
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
178
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
179
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
180
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
[**PaginatedRoleResponseList**](PaginatedRoleResponseList.md)
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[basicAuth](../README.md#basicAuth)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: Not defined
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
## partial_update
|
|
197
|
+
|
|
198
|
+
> RoleResponse partial_update(role_href, patched_role)
|
|
199
|
+
|
|
200
|
+
Update a role
|
|
201
|
+
|
|
202
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
203
|
+
|
|
204
|
+
### Example
|
|
205
|
+
|
|
206
|
+
```ruby
|
|
207
|
+
# load the gem
|
|
208
|
+
require 'pulpcore_client'
|
|
209
|
+
# setup authorization
|
|
210
|
+
PulpcoreClient.configure do |config|
|
|
211
|
+
# Configure HTTP basic authorization: basicAuth
|
|
212
|
+
config.username = 'YOUR USERNAME'
|
|
213
|
+
config.password = 'YOUR PASSWORD'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
api_instance = PulpcoreClient::RolesApi.new
|
|
217
|
+
role_href = 'role_href_example' # String |
|
|
218
|
+
patched_role = PulpcoreClient::PatchedRole.new # PatchedRole |
|
|
219
|
+
|
|
220
|
+
begin
|
|
221
|
+
#Update a role
|
|
222
|
+
result = api_instance.partial_update(role_href, patched_role)
|
|
223
|
+
p result
|
|
224
|
+
rescue PulpcoreClient::ApiError => e
|
|
225
|
+
puts "Exception when calling RolesApi->partial_update: #{e}"
|
|
226
|
+
end
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Parameters
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
Name | Type | Description | Notes
|
|
233
|
+
------------- | ------------- | ------------- | -------------
|
|
234
|
+
**role_href** | **String**| |
|
|
235
|
+
**patched_role** | [**PatchedRole**](PatchedRole.md)| |
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
[**RoleResponse**](RoleResponse.md)
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
[basicAuth](../README.md#basicAuth)
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## read
|
|
252
|
+
|
|
253
|
+
> RoleResponse read(role_href, opts)
|
|
254
|
+
|
|
255
|
+
Inspect a role
|
|
256
|
+
|
|
257
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
258
|
+
|
|
259
|
+
### Example
|
|
260
|
+
|
|
261
|
+
```ruby
|
|
262
|
+
# load the gem
|
|
263
|
+
require 'pulpcore_client'
|
|
264
|
+
# setup authorization
|
|
265
|
+
PulpcoreClient.configure do |config|
|
|
266
|
+
# Configure HTTP basic authorization: basicAuth
|
|
267
|
+
config.username = 'YOUR USERNAME'
|
|
268
|
+
config.password = 'YOUR PASSWORD'
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
api_instance = PulpcoreClient::RolesApi.new
|
|
272
|
+
role_href = 'role_href_example' # String |
|
|
273
|
+
opts = {
|
|
274
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
275
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
begin
|
|
279
|
+
#Inspect a role
|
|
280
|
+
result = api_instance.read(role_href, opts)
|
|
281
|
+
p result
|
|
282
|
+
rescue PulpcoreClient::ApiError => e
|
|
283
|
+
puts "Exception when calling RolesApi->read: #{e}"
|
|
284
|
+
end
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parameters
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
Name | Type | Description | Notes
|
|
291
|
+
------------- | ------------- | ------------- | -------------
|
|
292
|
+
**role_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
|
+
[**RoleResponse**](RoleResponse.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
|
+
## update
|
|
311
|
+
|
|
312
|
+
> RoleResponse update(role_href, role)
|
|
313
|
+
|
|
314
|
+
Update a role
|
|
315
|
+
|
|
316
|
+
ViewSet for Role. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
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::RolesApi.new
|
|
331
|
+
role_href = 'role_href_example' # String |
|
|
332
|
+
role = PulpcoreClient::Role.new # Role |
|
|
333
|
+
|
|
334
|
+
begin
|
|
335
|
+
#Update a role
|
|
336
|
+
result = api_instance.update(role_href, role)
|
|
337
|
+
p result
|
|
338
|
+
rescue PulpcoreClient::ApiError => e
|
|
339
|
+
puts "Exception when calling RolesApi->update: #{e}"
|
|
340
|
+
end
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
Name | Type | Description | Notes
|
|
347
|
+
------------- | ------------- | ------------- | -------------
|
|
348
|
+
**role_href** | **String**| |
|
|
349
|
+
**role** | [**Role**](Role.md)| |
|
|
350
|
+
|
|
351
|
+
### Return type
|
|
352
|
+
|
|
353
|
+
[**RoleResponse**](RoleResponse.md)
|
|
354
|
+
|
|
355
|
+
### Authorization
|
|
356
|
+
|
|
357
|
+
[basicAuth](../README.md#basicAuth)
|
|
358
|
+
|
|
359
|
+
### HTTP request headers
|
|
360
|
+
|
|
361
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
362
|
+
- **Accept**: application/json
|
|
363
|
+
|
data/docs/StatesEnum.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# PulpcoreClient::StatesEnum
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
|
|
8
|
+
## Code Sample
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'PulpcoreClient'
|
|
12
|
+
|
|
13
|
+
instance = PulpcoreClient::StatesEnum.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
data/docs/TasksApi.md
CHANGED
|
@@ -4,13 +4,72 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**add_role**](TasksApi.md#add_role) | **POST** {task_href}add_role/ |
|
|
7
8
|
[**delete**](TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
|
|
8
9
|
[**list**](TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
|
10
|
+
[**list_roles**](TasksApi.md#list_roles) | **GET** {task_href}list_roles/ |
|
|
11
|
+
[**my_permissions**](TasksApi.md#my_permissions) | **GET** {task_href}my_permissions/ |
|
|
12
|
+
[**purge**](TasksApi.md#purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
|
|
9
13
|
[**read**](TasksApi.md#read) | **GET** {task_href} | Inspect a task
|
|
14
|
+
[**remove_role**](TasksApi.md#remove_role) | **POST** {task_href}remove_role/ |
|
|
10
15
|
[**tasks_cancel**](TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
|
|
11
16
|
|
|
12
17
|
|
|
13
18
|
|
|
19
|
+
## add_role
|
|
20
|
+
|
|
21
|
+
> NestedRoleResponse add_role(task_href, nested_role)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Add a role for this object to users/groups.
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
# load the gem
|
|
31
|
+
require 'pulpcore_client'
|
|
32
|
+
# setup authorization
|
|
33
|
+
PulpcoreClient.configure do |config|
|
|
34
|
+
# Configure HTTP basic authorization: basicAuth
|
|
35
|
+
config.username = 'YOUR USERNAME'
|
|
36
|
+
config.password = 'YOUR PASSWORD'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
api_instance = PulpcoreClient::TasksApi.new
|
|
40
|
+
task_href = 'task_href_example' # String |
|
|
41
|
+
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
|
42
|
+
|
|
43
|
+
begin
|
|
44
|
+
result = api_instance.add_role(task_href, nested_role)
|
|
45
|
+
p result
|
|
46
|
+
rescue PulpcoreClient::ApiError => e
|
|
47
|
+
puts "Exception when calling TasksApi->add_role: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Name | Type | Description | Notes
|
|
55
|
+
------------- | ------------- | ------------- | -------------
|
|
56
|
+
**task_href** | **String**| |
|
|
57
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
[basicAuth](../README.md#basicAuth)
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
70
|
+
- **Accept**: application/json
|
|
71
|
+
|
|
72
|
+
|
|
14
73
|
## delete
|
|
15
74
|
|
|
16
75
|
> delete(task_href)
|
|
@@ -176,6 +235,175 @@ Name | Type | Description | Notes
|
|
|
176
235
|
- **Accept**: application/json
|
|
177
236
|
|
|
178
237
|
|
|
238
|
+
## list_roles
|
|
239
|
+
|
|
240
|
+
> ObjectRolesResponse list_roles(task_href, opts)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
List roles assigned to this object.
|
|
245
|
+
|
|
246
|
+
### Example
|
|
247
|
+
|
|
248
|
+
```ruby
|
|
249
|
+
# load the gem
|
|
250
|
+
require 'pulpcore_client'
|
|
251
|
+
# setup authorization
|
|
252
|
+
PulpcoreClient.configure do |config|
|
|
253
|
+
# Configure HTTP basic authorization: basicAuth
|
|
254
|
+
config.username = 'YOUR USERNAME'
|
|
255
|
+
config.password = 'YOUR PASSWORD'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
api_instance = PulpcoreClient::TasksApi.new
|
|
259
|
+
task_href = 'task_href_example' # String |
|
|
260
|
+
opts = {
|
|
261
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
262
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
begin
|
|
266
|
+
result = api_instance.list_roles(task_href, opts)
|
|
267
|
+
p result
|
|
268
|
+
rescue PulpcoreClient::ApiError => e
|
|
269
|
+
puts "Exception when calling TasksApi->list_roles: #{e}"
|
|
270
|
+
end
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Parameters
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
Name | Type | Description | Notes
|
|
277
|
+
------------- | ------------- | ------------- | -------------
|
|
278
|
+
**task_href** | **String**| |
|
|
279
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
280
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
281
|
+
|
|
282
|
+
### Return type
|
|
283
|
+
|
|
284
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
|
285
|
+
|
|
286
|
+
### Authorization
|
|
287
|
+
|
|
288
|
+
[basicAuth](../README.md#basicAuth)
|
|
289
|
+
|
|
290
|
+
### HTTP request headers
|
|
291
|
+
|
|
292
|
+
- **Content-Type**: Not defined
|
|
293
|
+
- **Accept**: application/json
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## my_permissions
|
|
297
|
+
|
|
298
|
+
> MyPermissionsResponse my_permissions(task_href, opts)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
List permissions available to the current user on this object.
|
|
303
|
+
|
|
304
|
+
### Example
|
|
305
|
+
|
|
306
|
+
```ruby
|
|
307
|
+
# load the gem
|
|
308
|
+
require 'pulpcore_client'
|
|
309
|
+
# setup authorization
|
|
310
|
+
PulpcoreClient.configure do |config|
|
|
311
|
+
# Configure HTTP basic authorization: basicAuth
|
|
312
|
+
config.username = 'YOUR USERNAME'
|
|
313
|
+
config.password = 'YOUR PASSWORD'
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
api_instance = PulpcoreClient::TasksApi.new
|
|
317
|
+
task_href = 'task_href_example' # String |
|
|
318
|
+
opts = {
|
|
319
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
320
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
begin
|
|
324
|
+
result = api_instance.my_permissions(task_href, opts)
|
|
325
|
+
p result
|
|
326
|
+
rescue PulpcoreClient::ApiError => e
|
|
327
|
+
puts "Exception when calling TasksApi->my_permissions: #{e}"
|
|
328
|
+
end
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Parameters
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
Name | Type | Description | Notes
|
|
335
|
+
------------- | ------------- | ------------- | -------------
|
|
336
|
+
**task_href** | **String**| |
|
|
337
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
338
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[basicAuth](../README.md#basicAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: application/json
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## purge
|
|
355
|
+
|
|
356
|
+
> AsyncOperationResponse purge(purge)
|
|
357
|
+
|
|
358
|
+
Purge Completed Tasks
|
|
359
|
+
|
|
360
|
+
Trigger an asynchronous task that deletes completed tasks that finished prior to a specified timestamp (tech-preview, may change in the future).
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
```ruby
|
|
365
|
+
# load the gem
|
|
366
|
+
require 'pulpcore_client'
|
|
367
|
+
# setup authorization
|
|
368
|
+
PulpcoreClient.configure do |config|
|
|
369
|
+
# Configure HTTP basic authorization: basicAuth
|
|
370
|
+
config.username = 'YOUR USERNAME'
|
|
371
|
+
config.password = 'YOUR PASSWORD'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
api_instance = PulpcoreClient::TasksApi.new
|
|
375
|
+
purge = PulpcoreClient::Purge.new # Purge |
|
|
376
|
+
|
|
377
|
+
begin
|
|
378
|
+
#Purge Completed Tasks
|
|
379
|
+
result = api_instance.purge(purge)
|
|
380
|
+
p result
|
|
381
|
+
rescue PulpcoreClient::ApiError => e
|
|
382
|
+
puts "Exception when calling TasksApi->purge: #{e}"
|
|
383
|
+
end
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Parameters
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
Name | Type | Description | Notes
|
|
390
|
+
------------- | ------------- | ------------- | -------------
|
|
391
|
+
**purge** | [**Purge**](Purge.md)| |
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
[basicAuth](../README.md#basicAuth)
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
404
|
+
- **Accept**: application/json
|
|
405
|
+
|
|
406
|
+
|
|
179
407
|
## read
|
|
180
408
|
|
|
181
409
|
> TaskResponse read(task_href, opts)
|
|
@@ -235,6 +463,60 @@ Name | Type | Description | Notes
|
|
|
235
463
|
- **Accept**: application/json
|
|
236
464
|
|
|
237
465
|
|
|
466
|
+
## remove_role
|
|
467
|
+
|
|
468
|
+
> NestedRoleResponse remove_role(task_href, nested_role)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
Remove a role for this object from users/groups.
|
|
473
|
+
|
|
474
|
+
### Example
|
|
475
|
+
|
|
476
|
+
```ruby
|
|
477
|
+
# load the gem
|
|
478
|
+
require 'pulpcore_client'
|
|
479
|
+
# setup authorization
|
|
480
|
+
PulpcoreClient.configure do |config|
|
|
481
|
+
# Configure HTTP basic authorization: basicAuth
|
|
482
|
+
config.username = 'YOUR USERNAME'
|
|
483
|
+
config.password = 'YOUR PASSWORD'
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
api_instance = PulpcoreClient::TasksApi.new
|
|
487
|
+
task_href = 'task_href_example' # String |
|
|
488
|
+
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
|
489
|
+
|
|
490
|
+
begin
|
|
491
|
+
result = api_instance.remove_role(task_href, nested_role)
|
|
492
|
+
p result
|
|
493
|
+
rescue PulpcoreClient::ApiError => e
|
|
494
|
+
puts "Exception when calling TasksApi->remove_role: #{e}"
|
|
495
|
+
end
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### Parameters
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
Name | Type | Description | Notes
|
|
502
|
+
------------- | ------------- | ------------- | -------------
|
|
503
|
+
**task_href** | **String**| |
|
|
504
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
505
|
+
|
|
506
|
+
### Return type
|
|
507
|
+
|
|
508
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
509
|
+
|
|
510
|
+
### Authorization
|
|
511
|
+
|
|
512
|
+
[basicAuth](../README.md#basicAuth)
|
|
513
|
+
|
|
514
|
+
### HTTP request headers
|
|
515
|
+
|
|
516
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
517
|
+
- **Accept**: application/json
|
|
518
|
+
|
|
519
|
+
|
|
238
520
|
## tasks_cancel
|
|
239
521
|
|
|
240
522
|
> TaskResponse tasks_cancel(task_href, patched_task_cancel)
|
data/docs/User.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# PulpcoreClient::User
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**username** | **String** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. |
|
|
8
|
+
**password** | **String** | Users password. Set to ``null`` to disable password authentication. | [optional]
|
|
9
|
+
**first_name** | **String** | First name | [optional]
|
|
10
|
+
**last_name** | **String** | Last name | [optional]
|
|
11
|
+
**email** | **String** | Email address | [optional]
|
|
12
|
+
**is_staff** | **Boolean** | Designates whether the user can log into this admin site. | [optional] [default to false]
|
|
13
|
+
**is_active** | **Boolean** | Designates whether this user should be treated as active. | [optional] [default to true]
|
|
14
|
+
|
|
15
|
+
## Code Sample
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'PulpcoreClient'
|
|
19
|
+
|
|
20
|
+
instance = PulpcoreClient::User.new(username: null,
|
|
21
|
+
password: null,
|
|
22
|
+
first_name: null,
|
|
23
|
+
last_name: null,
|
|
24
|
+
email: null,
|
|
25
|
+
is_staff: null,
|
|
26
|
+
is_active: null)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|