pulpcore_client 3.17.8 → 3.18.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -4
  3. data/docs/AccessPolicy.md +2 -2
  4. data/docs/AccessPolicyResponse.md +2 -2
  5. data/docs/ContentRedirectContentGuard.md +19 -0
  6. data/docs/ContentRedirectContentGuardResponse.md +23 -0
  7. data/docs/ContentguardsContentRedirectApi.md +361 -0
  8. data/docs/PaginatedContentRedirectContentGuardResponseList.md +23 -0
  9. data/docs/PaginatedTaskScheduleResponseList.md +23 -0
  10. data/docs/PatchedContentRedirectContentGuard.md +19 -0
  11. data/docs/TaskScheduleResponse.md +29 -0
  12. data/docs/TaskSchedulesApi.md +368 -0
  13. data/docs/WorkerResponse.md +6 -4
  14. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +440 -0
  15. data/lib/pulpcore_client/api/task_schedules_api.rb +441 -0
  16. data/lib/pulpcore_client/api_client.rb +4 -1
  17. data/lib/pulpcore_client/configuration.rb +0 -1
  18. data/lib/pulpcore_client/models/access_policy.rb +0 -10
  19. data/lib/pulpcore_client/models/access_policy_response.rb +0 -10
  20. data/lib/pulpcore_client/models/content_redirect_content_guard.rb +258 -0
  21. data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +243 -0
  22. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +237 -0
  23. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +237 -0
  24. data/lib/pulpcore_client/models/patched_content_redirect_content_guard.rb +249 -0
  25. data/lib/pulpcore_client/models/task_schedule_response.rb +282 -0
  26. data/lib/pulpcore_client/models/worker_response.rb +23 -13
  27. data/lib/pulpcore_client/version.rb +1 -1
  28. data/lib/pulpcore_client.rb +8 -0
  29. data/spec/api/contentguards_content_redirect_api_spec.rb +120 -0
  30. data/spec/api/task_schedules_api_spec.rb +119 -0
  31. data/spec/models/content_redirect_content_guard_response_spec.rb +59 -0
  32. data/spec/models/content_redirect_content_guard_spec.rb +47 -0
  33. data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +59 -0
  34. data/spec/models/paginated_task_schedule_response_list_spec.rb +59 -0
  35. data/spec/models/patched_content_redirect_content_guard_spec.rb +47 -0
  36. data/spec/models/task_schedule_response_spec.rb +77 -0
  37. data/spec/models/worker_response_spec.rb +8 -2
  38. metadata +147 -115
@@ -0,0 +1,368 @@
1
+ # PulpcoreClient::TaskSchedulesApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add_role**](TaskSchedulesApi.md#add_role) | **POST** {task_schedule_href}add_role/ |
8
+ [**list**](TaskSchedulesApi.md#list) | **GET** /pulp/api/v3/task-schedules/ | List task schedules
9
+ [**list_roles**](TaskSchedulesApi.md#list_roles) | **GET** {task_schedule_href}list_roles/ |
10
+ [**my_permissions**](TaskSchedulesApi.md#my_permissions) | **GET** {task_schedule_href}my_permissions/ |
11
+ [**read**](TaskSchedulesApi.md#read) | **GET** {task_schedule_href} | Inspect a task schedule
12
+ [**remove_role**](TaskSchedulesApi.md#remove_role) | **POST** {task_schedule_href}remove_role/ |
13
+
14
+
15
+
16
+ ## add_role
17
+
18
+ > NestedRoleResponse add_role(task_schedule_href, nested_role)
19
+
20
+
21
+
22
+ Add a role for this object to users/groups.
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::TaskSchedulesApi.new
37
+ task_schedule_href = 'task_schedule_href_example' # String |
38
+ nested_role = PulpcoreClient::NestedRole.new # NestedRole |
39
+
40
+ begin
41
+ result = api_instance.add_role(task_schedule_href, nested_role)
42
+ p result
43
+ rescue PulpcoreClient::ApiError => e
44
+ puts "Exception when calling TaskSchedulesApi->add_role: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **task_schedule_href** | **String**| |
54
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**NestedRoleResponse**](NestedRoleResponse.md)
59
+
60
+ ### Authorization
61
+
62
+ [basicAuth](../README.md#basicAuth)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
67
+ - **Accept**: application/json
68
+
69
+
70
+ ## list
71
+
72
+ > PaginatedTaskScheduleResponseList list(opts)
73
+
74
+ List task schedules
75
+
76
+ ViewSet to monitor task schedules. NOTE: This feature is in tech-preview and may change in backwards incompatible ways.
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'pulpcore_client'
83
+ # setup authorization
84
+ PulpcoreClient.configure do |config|
85
+ # Configure HTTP basic authorization: basicAuth
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = PulpcoreClient::TaskSchedulesApi.new
91
+ opts = {
92
+ limit: 56, # Integer | Number of results to return per page.
93
+ name: 'name_example', # String |
94
+ name__contains: 'name__contains_example', # String | Filter results where name contains value
95
+ offset: 56, # Integer | The initial index from which to return the results.
96
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
97
+ task_name: 'task_name_example', # String |
98
+ task_name__contains: 'task_name__contains_example', # String | Filter results where task_name contains value
99
+ fields: 'fields_example', # String | A list of fields to include in the response.
100
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
101
+ }
102
+
103
+ begin
104
+ #List task schedules
105
+ result = api_instance.list(opts)
106
+ p result
107
+ rescue PulpcoreClient::ApiError => e
108
+ puts "Exception when calling TaskSchedulesApi->list: #{e}"
109
+ end
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+
115
+ Name | Type | Description | Notes
116
+ ------------- | ------------- | ------------- | -------------
117
+ **limit** | **Integer**| Number of results to return per page. | [optional]
118
+ **name** | **String**| | [optional]
119
+ **name__contains** | **String**| Filter results where name contains value | [optional]
120
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
121
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
122
+ **task_name** | **String**| | [optional]
123
+ **task_name__contains** | **String**| Filter results where task_name contains value | [optional]
124
+ **fields** | **String**| A list of fields to include in the response. | [optional]
125
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
126
+
127
+ ### Return type
128
+
129
+ [**PaginatedTaskScheduleResponseList**](PaginatedTaskScheduleResponseList.md)
130
+
131
+ ### Authorization
132
+
133
+ [basicAuth](../README.md#basicAuth)
134
+
135
+ ### HTTP request headers
136
+
137
+ - **Content-Type**: Not defined
138
+ - **Accept**: application/json
139
+
140
+
141
+ ## list_roles
142
+
143
+ > ObjectRolesResponse list_roles(task_schedule_href, opts)
144
+
145
+
146
+
147
+ List roles assigned to this object.
148
+
149
+ ### Example
150
+
151
+ ```ruby
152
+ # load the gem
153
+ require 'pulpcore_client'
154
+ # setup authorization
155
+ PulpcoreClient.configure do |config|
156
+ # Configure HTTP basic authorization: basicAuth
157
+ config.username = 'YOUR USERNAME'
158
+ config.password = 'YOUR PASSWORD'
159
+ end
160
+
161
+ api_instance = PulpcoreClient::TaskSchedulesApi.new
162
+ task_schedule_href = 'task_schedule_href_example' # String |
163
+ opts = {
164
+ fields: 'fields_example', # String | A list of fields to include in the response.
165
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
166
+ }
167
+
168
+ begin
169
+ result = api_instance.list_roles(task_schedule_href, opts)
170
+ p result
171
+ rescue PulpcoreClient::ApiError => e
172
+ puts "Exception when calling TaskSchedulesApi->list_roles: #{e}"
173
+ end
174
+ ```
175
+
176
+ ### Parameters
177
+
178
+
179
+ Name | Type | Description | Notes
180
+ ------------- | ------------- | ------------- | -------------
181
+ **task_schedule_href** | **String**| |
182
+ **fields** | **String**| A list of fields to include in the response. | [optional]
183
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
184
+
185
+ ### Return type
186
+
187
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
188
+
189
+ ### Authorization
190
+
191
+ [basicAuth](../README.md#basicAuth)
192
+
193
+ ### HTTP request headers
194
+
195
+ - **Content-Type**: Not defined
196
+ - **Accept**: application/json
197
+
198
+
199
+ ## my_permissions
200
+
201
+ > MyPermissionsResponse my_permissions(task_schedule_href, opts)
202
+
203
+
204
+
205
+ List permissions available to the current user on this object.
206
+
207
+ ### Example
208
+
209
+ ```ruby
210
+ # load the gem
211
+ require 'pulpcore_client'
212
+ # setup authorization
213
+ PulpcoreClient.configure do |config|
214
+ # Configure HTTP basic authorization: basicAuth
215
+ config.username = 'YOUR USERNAME'
216
+ config.password = 'YOUR PASSWORD'
217
+ end
218
+
219
+ api_instance = PulpcoreClient::TaskSchedulesApi.new
220
+ task_schedule_href = 'task_schedule_href_example' # String |
221
+ opts = {
222
+ fields: 'fields_example', # String | A list of fields to include in the response.
223
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
224
+ }
225
+
226
+ begin
227
+ result = api_instance.my_permissions(task_schedule_href, opts)
228
+ p result
229
+ rescue PulpcoreClient::ApiError => e
230
+ puts "Exception when calling TaskSchedulesApi->my_permissions: #{e}"
231
+ end
232
+ ```
233
+
234
+ ### Parameters
235
+
236
+
237
+ Name | Type | Description | Notes
238
+ ------------- | ------------- | ------------- | -------------
239
+ **task_schedule_href** | **String**| |
240
+ **fields** | **String**| A list of fields to include in the response. | [optional]
241
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
242
+
243
+ ### Return type
244
+
245
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
246
+
247
+ ### Authorization
248
+
249
+ [basicAuth](../README.md#basicAuth)
250
+
251
+ ### HTTP request headers
252
+
253
+ - **Content-Type**: Not defined
254
+ - **Accept**: application/json
255
+
256
+
257
+ ## read
258
+
259
+ > TaskScheduleResponse read(task_schedule_href, opts)
260
+
261
+ Inspect a task schedule
262
+
263
+ ViewSet to monitor task schedules. NOTE: This feature is in tech-preview and may change in backwards incompatible ways.
264
+
265
+ ### Example
266
+
267
+ ```ruby
268
+ # load the gem
269
+ require 'pulpcore_client'
270
+ # setup authorization
271
+ PulpcoreClient.configure do |config|
272
+ # Configure HTTP basic authorization: basicAuth
273
+ config.username = 'YOUR USERNAME'
274
+ config.password = 'YOUR PASSWORD'
275
+ end
276
+
277
+ api_instance = PulpcoreClient::TaskSchedulesApi.new
278
+ task_schedule_href = 'task_schedule_href_example' # String |
279
+ opts = {
280
+ fields: 'fields_example', # String | A list of fields to include in the response.
281
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
282
+ }
283
+
284
+ begin
285
+ #Inspect a task schedule
286
+ result = api_instance.read(task_schedule_href, opts)
287
+ p result
288
+ rescue PulpcoreClient::ApiError => e
289
+ puts "Exception when calling TaskSchedulesApi->read: #{e}"
290
+ end
291
+ ```
292
+
293
+ ### Parameters
294
+
295
+
296
+ Name | Type | Description | Notes
297
+ ------------- | ------------- | ------------- | -------------
298
+ **task_schedule_href** | **String**| |
299
+ **fields** | **String**| A list of fields to include in the response. | [optional]
300
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
301
+
302
+ ### Return type
303
+
304
+ [**TaskScheduleResponse**](TaskScheduleResponse.md)
305
+
306
+ ### Authorization
307
+
308
+ [basicAuth](../README.md#basicAuth)
309
+
310
+ ### HTTP request headers
311
+
312
+ - **Content-Type**: Not defined
313
+ - **Accept**: application/json
314
+
315
+
316
+ ## remove_role
317
+
318
+ > NestedRoleResponse remove_role(task_schedule_href, nested_role)
319
+
320
+
321
+
322
+ Remove a role for this object from users/groups.
323
+
324
+ ### Example
325
+
326
+ ```ruby
327
+ # load the gem
328
+ require 'pulpcore_client'
329
+ # setup authorization
330
+ PulpcoreClient.configure do |config|
331
+ # Configure HTTP basic authorization: basicAuth
332
+ config.username = 'YOUR USERNAME'
333
+ config.password = 'YOUR PASSWORD'
334
+ end
335
+
336
+ api_instance = PulpcoreClient::TaskSchedulesApi.new
337
+ task_schedule_href = 'task_schedule_href_example' # String |
338
+ nested_role = PulpcoreClient::NestedRole.new # NestedRole |
339
+
340
+ begin
341
+ result = api_instance.remove_role(task_schedule_href, nested_role)
342
+ p result
343
+ rescue PulpcoreClient::ApiError => e
344
+ puts "Exception when calling TaskSchedulesApi->remove_role: #{e}"
345
+ end
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+
351
+ Name | Type | Description | Notes
352
+ ------------- | ------------- | ------------- | -------------
353
+ **task_schedule_href** | **String**| |
354
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
355
+
356
+ ### Return type
357
+
358
+ [**NestedRoleResponse**](NestedRoleResponse.md)
359
+
360
+ ### Authorization
361
+
362
+ [basicAuth](../README.md#basicAuth)
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
367
+ - **Accept**: application/json
368
+
@@ -4,20 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
8
7
  **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **name** | **String** | The name of the worker. | [optional] [readonly]
10
10
  **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
11
+ **current_task** | **String** | The task this worker is currently executing, or empty if the worker is not currently assigned to a task. | [optional] [readonly]
11
12
 
12
13
  ## Code Sample
13
14
 
14
15
  ```ruby
15
16
  require 'PulpcoreClient'
16
17
 
17
- instance = PulpcoreClient::WorkerResponse.new(pulp_created: null,
18
- pulp_href: null,
18
+ instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
19
+ pulp_created: null,
19
20
  name: null,
20
- last_heartbeat: null)
21
+ last_heartbeat: null,
22
+ current_task: null)
21
23
  ```
22
24
 
23
25