pulpcore_client 3.21.31 → 3.21.32

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +142 -140
  3. data/docs/AccessPoliciesApi.md +26 -26
  4. data/docs/ArtifactsApi.md +21 -21
  5. data/docs/ContentApi.md +6 -6
  6. data/docs/ContentguardsApi.md +6 -6
  7. data/docs/ContentguardsContentRedirectApi.md +51 -51
  8. data/docs/ContentguardsRbacApi.md +51 -51
  9. data/docs/DistributionsApi.md +6 -6
  10. data/docs/DocsApiJsonApi.md +61 -0
  11. data/docs/DocsApiYamlApi.md +61 -0
  12. data/docs/ExportersFilesystemApi.md +31 -31
  13. data/docs/ExportersFilesystemExportsApi.md +21 -21
  14. data/docs/ExportersPulpApi.md +31 -31
  15. data/docs/ExportersPulpExportsApi.md +21 -21
  16. data/docs/GroupsApi.md +51 -51
  17. data/docs/GroupsRolesApi.md +21 -21
  18. data/docs/GroupsUsersApi.md +16 -16
  19. data/docs/ImportersPulpApi.md +31 -31
  20. data/docs/ImportersPulpImportCheckApi.md +1 -1
  21. data/docs/ImportersPulpImportsApi.md +21 -21
  22. data/docs/OrphansApi.md +6 -6
  23. data/docs/OrphansCleanupApi.md +6 -6
  24. data/docs/PublicationsApi.md +6 -6
  25. data/docs/RemotesApi.md +6 -6
  26. data/docs/RepairApi.md +6 -6
  27. data/docs/RepositoriesApi.md +6 -6
  28. data/docs/RepositoriesReclaimSpaceApi.md +6 -6
  29. data/docs/RepositoryVersionsApi.md +6 -6
  30. data/docs/RolesApi.md +31 -31
  31. data/docs/SigningServicesApi.md +11 -11
  32. data/docs/StatusApi.md +1 -1
  33. data/docs/TaskGroupsApi.md +11 -11
  34. data/docs/TaskSchedulesApi.md +31 -31
  35. data/docs/TasksApi.md +96 -96
  36. data/docs/UploadsApi.md +51 -51
  37. data/docs/UsersApi.md +31 -31
  38. data/docs/UsersRolesApi.md +21 -21
  39. data/docs/WorkersApi.md +11 -11
  40. data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
  41. data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
  42. data/lib/pulpcore_client/api/content_api.rb +5 -5
  43. data/lib/pulpcore_client/api/contentguards_api.rb +6 -6
  44. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +64 -64
  45. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +64 -64
  46. data/lib/pulpcore_client/api/distributions_api.rb +6 -6
  47. data/lib/pulpcore_client/api/docs_api_json_api.rb +89 -0
  48. data/lib/pulpcore_client/api/docs_api_yaml_api.rb +89 -0
  49. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
  50. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
  51. data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
  52. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
  53. data/lib/pulpcore_client/api/groups_api.rb +63 -63
  54. data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
  55. data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
  56. data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
  57. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
  58. data/lib/pulpcore_client/api/orphans_api.rb +5 -5
  59. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
  60. data/lib/pulpcore_client/api/publications_api.rb +6 -6
  61. data/lib/pulpcore_client/api/remotes_api.rb +6 -6
  62. data/lib/pulpcore_client/api/repair_api.rb +6 -6
  63. data/lib/pulpcore_client/api/repositories_api.rb +6 -6
  64. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
  65. data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
  66. data/lib/pulpcore_client/api/roles_api.rb +37 -37
  67. data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
  68. data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
  69. data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
  70. data/lib/pulpcore_client/api/tasks_api.rb +119 -119
  71. data/lib/pulpcore_client/api/uploads_api.rb +65 -65
  72. data/lib/pulpcore_client/api/users_api.rb +37 -37
  73. data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
  74. data/lib/pulpcore_client/api/workers_api.rb +11 -11
  75. data/lib/pulpcore_client/configuration.rb +3 -3
  76. data/lib/pulpcore_client/models/remote_response.rb +20 -20
  77. data/lib/pulpcore_client/version.rb +1 -1
  78. data/lib/pulpcore_client.rb +2 -0
  79. data/spec/api/access_policies_api_spec.rb +10 -10
  80. data/spec/api/artifacts_api_spec.rb +8 -8
  81. data/spec/api/content_api_spec.rb +2 -2
  82. data/spec/api/contentguards_api_spec.rb +2 -2
  83. data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
  84. data/spec/api/contentguards_rbac_api_spec.rb +20 -20
  85. data/spec/api/distributions_api_spec.rb +2 -2
  86. data/spec/api/docs_api_json_api_spec.rb +48 -0
  87. data/spec/api/docs_api_yaml_api_spec.rb +48 -0
  88. data/spec/api/exporters_filesystem_api_spec.rb +12 -12
  89. data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
  90. data/spec/api/exporters_pulp_api_spec.rb +12 -12
  91. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  92. data/spec/api/groups_api_spec.rb +20 -20
  93. data/spec/api/groups_roles_api_spec.rb +8 -8
  94. data/spec/api/groups_users_api_spec.rb +6 -6
  95. data/spec/api/importers_pulp_api_spec.rb +12 -12
  96. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  97. data/spec/api/orphans_api_spec.rb +2 -2
  98. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  99. data/spec/api/publications_api_spec.rb +2 -2
  100. data/spec/api/remotes_api_spec.rb +2 -2
  101. data/spec/api/repair_api_spec.rb +2 -2
  102. data/spec/api/repositories_api_spec.rb +2 -2
  103. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  104. data/spec/api/repository_versions_api_spec.rb +2 -2
  105. data/spec/api/roles_api_spec.rb +12 -12
  106. data/spec/api/signing_services_api_spec.rb +4 -4
  107. data/spec/api/task_groups_api_spec.rb +4 -4
  108. data/spec/api/task_schedules_api_spec.rb +12 -12
  109. data/spec/api/tasks_api_spec.rb +29 -29
  110. data/spec/api/uploads_api_spec.rb +20 -20
  111. data/spec/api/users_api_spec.rb +12 -12
  112. data/spec/api/users_roles_api_spec.rb +8 -8
  113. data/spec/api/workers_api_spec.rb +4 -4
  114. data/spec/configuration_spec.rb +3 -3
  115. metadata +147 -139
@@ -24,8 +24,8 @@ module PulpcoreClient
24
24
  # @param nested_role [NestedRole]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [NestedRoleResponse]
27
- def add_role(task_href, nested_role, opts = {})
28
- data, _status_code, _headers = add_role_with_http_info(task_href, nested_role, opts)
27
+ def tasks_add_role(task_href, nested_role, opts = {})
28
+ data, _status_code, _headers = tasks_add_role_with_http_info(task_href, nested_role, opts)
29
29
  data
30
30
  end
31
31
 
@@ -34,17 +34,17 @@ module PulpcoreClient
34
34
  # @param nested_role [NestedRole]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
37
- def add_role_with_http_info(task_href, nested_role, opts = {})
37
+ def tasks_add_role_with_http_info(task_href, nested_role, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: TasksApi.add_role ...'
39
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_add_role ...'
40
40
  end
41
41
  # verify the required parameter 'task_href' is set
42
42
  if @api_client.config.client_side_validation && task_href.nil?
43
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.add_role"
43
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_add_role"
44
44
  end
45
45
  # verify the required parameter 'nested_role' is set
46
46
  if @api_client.config.client_side_validation && nested_role.nil?
47
- fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.add_role"
47
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_add_role"
48
48
  end
49
49
  # resource path
50
50
  local_var_path = '{task_href}add_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -82,7 +82,77 @@ module PulpcoreClient
82
82
 
83
83
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
84
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: TasksApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ @api_client.config.logger.debug "API called: TasksApi#tasks_add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Cancel a task
91
+ # This operation cancels a task.
92
+ # @param task_href [String]
93
+ # @param patched_task_cancel [PatchedTaskCancel]
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [TaskResponse]
96
+ def tasks_cancel(task_href, patched_task_cancel, opts = {})
97
+ data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
98
+ data
99
+ end
100
+
101
+ # Cancel a task
102
+ # This operation cancels a task.
103
+ # @param task_href [String]
104
+ # @param patched_task_cancel [PatchedTaskCancel]
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
107
+ def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
110
+ end
111
+ # verify the required parameter 'task_href' is set
112
+ if @api_client.config.client_side_validation && task_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
114
+ end
115
+ # verify the required parameter 'patched_task_cancel' is set
116
+ if @api_client.config.client_side_validation && patched_task_cancel.nil?
117
+ fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
118
+ end
119
+ # resource path
120
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
121
+
122
+ # query parameters
123
+ query_params = opts[:query_params] || {}
124
+
125
+ # header parameters
126
+ header_params = opts[:header_params] || {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
129
+ # HTTP header 'Content-Type'
130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
137
+
138
+ # return_type
139
+ return_type = opts[:return_type] || 'TaskResponse'
140
+
141
+ # auth_names
142
+ auth_names = opts[:auth_names] || ['basicAuth']
143
+
144
+ new_options = opts.merge(
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => return_type
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
156
  end
87
157
  return data, status_code, headers
88
158
  end
@@ -92,8 +162,8 @@ module PulpcoreClient
92
162
  # @param task_href [String]
93
163
  # @param [Hash] opts the optional parameters
94
164
  # @return [nil]
95
- def delete(task_href, opts = {})
96
- delete_with_http_info(task_href, opts)
165
+ def tasks_delete(task_href, opts = {})
166
+ tasks_delete_with_http_info(task_href, opts)
97
167
  nil
98
168
  end
99
169
 
@@ -102,13 +172,13 @@ module PulpcoreClient
102
172
  # @param task_href [String]
103
173
  # @param [Hash] opts the optional parameters
104
174
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
- def delete_with_http_info(task_href, opts = {})
175
+ def tasks_delete_with_http_info(task_href, opts = {})
106
176
  if @api_client.config.debugging
107
- @api_client.config.logger.debug 'Calling API: TasksApi.delete ...'
177
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_delete ...'
108
178
  end
109
179
  # verify the required parameter 'task_href' is set
110
180
  if @api_client.config.client_side_validation && task_href.nil?
111
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
181
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_delete"
112
182
  end
113
183
  # resource path
114
184
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -142,7 +212,7 @@ module PulpcoreClient
142
212
 
143
213
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
144
214
  if @api_client.config.debugging
145
- @api_client.config.logger.debug "API called: TasksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ @api_client.config.logger.debug "API called: TasksApi#tasks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
216
  end
147
217
  return data, status_code, headers
148
218
  end
@@ -181,8 +251,8 @@ module PulpcoreClient
181
251
  # @option opts [Array<String>] :fields A list of fields to include in the response.
182
252
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
183
253
  # @return [PaginatedTaskResponseList]
184
- def list(opts = {})
185
- data, _status_code, _headers = list_with_http_info(opts)
254
+ def tasks_list(opts = {})
255
+ data, _status_code, _headers = tasks_list_with_http_info(opts)
186
256
  data
187
257
  end
188
258
 
@@ -220,9 +290,9 @@ module PulpcoreClient
220
290
  # @option opts [Array<String>] :fields A list of fields to include in the response.
221
291
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
222
292
  # @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
223
- def list_with_http_info(opts = {})
293
+ def tasks_list_with_http_info(opts = {})
224
294
  if @api_client.config.debugging
225
- @api_client.config.logger.debug 'Calling API: TasksApi.list ...'
295
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_list ...'
226
296
  end
227
297
  allowable_values = ["-args", "-child_tasks", "-created_resources", "-error", "-export", "-finished_at", "-group_roles", "-import", "-kwargs", "-logging_cid", "-name", "-parent_task", "-pk", "-progress_reports", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-task_group", "-taskschedule", "-user_roles", "-worker", "args", "child_tasks", "created_resources", "error", "export", "finished_at", "group_roles", "import", "kwargs", "logging_cid", "name", "parent_task", "pk", "progress_reports", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "task_group", "taskschedule", "user_roles", "worker"]
228
298
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
@@ -296,7 +366,7 @@ module PulpcoreClient
296
366
 
297
367
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
298
368
  if @api_client.config.debugging
299
- @api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
369
+ @api_client.config.logger.debug "API called: TasksApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
300
370
  end
301
371
  return data, status_code, headers
302
372
  end
@@ -307,8 +377,8 @@ module PulpcoreClient
307
377
  # @option opts [Array<String>] :fields A list of fields to include in the response.
308
378
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
309
379
  # @return [ObjectRolesResponse]
310
- def list_roles(task_href, opts = {})
311
- data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
380
+ def tasks_list_roles(task_href, opts = {})
381
+ data, _status_code, _headers = tasks_list_roles_with_http_info(task_href, opts)
312
382
  data
313
383
  end
314
384
 
@@ -318,13 +388,13 @@ module PulpcoreClient
318
388
  # @option opts [Array<String>] :fields A list of fields to include in the response.
319
389
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
320
390
  # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
321
- def list_roles_with_http_info(task_href, opts = {})
391
+ def tasks_list_roles_with_http_info(task_href, opts = {})
322
392
  if @api_client.config.debugging
323
- @api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
393
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_list_roles ...'
324
394
  end
325
395
  # verify the required parameter 'task_href' is set
326
396
  if @api_client.config.client_side_validation && task_href.nil?
327
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.list_roles"
397
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_list_roles"
328
398
  end
329
399
  # resource path
330
400
  local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -362,7 +432,7 @@ module PulpcoreClient
362
432
 
363
433
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
364
434
  if @api_client.config.debugging
365
- @api_client.config.logger.debug "API called: TasksApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
435
+ @api_client.config.logger.debug "API called: TasksApi#tasks_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
436
  end
367
437
  return data, status_code, headers
368
438
  end
@@ -373,8 +443,8 @@ module PulpcoreClient
373
443
  # @option opts [Array<String>] :fields A list of fields to include in the response.
374
444
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
375
445
  # @return [MyPermissionsResponse]
376
- def my_permissions(task_href, opts = {})
377
- data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
446
+ def tasks_my_permissions(task_href, opts = {})
447
+ data, _status_code, _headers = tasks_my_permissions_with_http_info(task_href, opts)
378
448
  data
379
449
  end
380
450
 
@@ -384,13 +454,13 @@ module PulpcoreClient
384
454
  # @option opts [Array<String>] :fields A list of fields to include in the response.
385
455
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
386
456
  # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
387
- def my_permissions_with_http_info(task_href, opts = {})
457
+ def tasks_my_permissions_with_http_info(task_href, opts = {})
388
458
  if @api_client.config.debugging
389
- @api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
459
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_my_permissions ...'
390
460
  end
391
461
  # verify the required parameter 'task_href' is set
392
462
  if @api_client.config.client_side_validation && task_href.nil?
393
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.my_permissions"
463
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_my_permissions"
394
464
  end
395
465
  # resource path
396
466
  local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -428,7 +498,7 @@ module PulpcoreClient
428
498
 
429
499
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
430
500
  if @api_client.config.debugging
431
- @api_client.config.logger.debug "API called: TasksApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
501
+ @api_client.config.logger.debug "API called: TasksApi#tasks_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
432
502
  end
433
503
  return data, status_code, headers
434
504
  end
@@ -438,8 +508,8 @@ module PulpcoreClient
438
508
  # @param purge [Purge]
439
509
  # @param [Hash] opts the optional parameters
440
510
  # @return [AsyncOperationResponse]
441
- def purge(purge, opts = {})
442
- data, _status_code, _headers = purge_with_http_info(purge, opts)
511
+ def tasks_purge(purge, opts = {})
512
+ data, _status_code, _headers = tasks_purge_with_http_info(purge, opts)
443
513
  data
444
514
  end
445
515
 
@@ -448,13 +518,13 @@ module PulpcoreClient
448
518
  # @param purge [Purge]
449
519
  # @param [Hash] opts the optional parameters
450
520
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
451
- def purge_with_http_info(purge, opts = {})
521
+ def tasks_purge_with_http_info(purge, opts = {})
452
522
  if @api_client.config.debugging
453
- @api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
523
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_purge ...'
454
524
  end
455
525
  # verify the required parameter 'purge' is set
456
526
  if @api_client.config.client_side_validation && purge.nil?
457
- fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
527
+ fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.tasks_purge"
458
528
  end
459
529
  # resource path
460
530
  local_var_path = '/pulp/api/v3/tasks/purge/'
@@ -492,7 +562,7 @@ module PulpcoreClient
492
562
 
493
563
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
494
564
  if @api_client.config.debugging
495
- @api_client.config.logger.debug "API called: TasksApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
565
+ @api_client.config.logger.debug "API called: TasksApi#tasks_purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
566
  end
497
567
  return data, status_code, headers
498
568
  end
@@ -504,8 +574,8 @@ module PulpcoreClient
504
574
  # @option opts [Array<String>] :fields A list of fields to include in the response.
505
575
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
506
576
  # @return [TaskResponse]
507
- def read(task_href, opts = {})
508
- data, _status_code, _headers = read_with_http_info(task_href, opts)
577
+ def tasks_read(task_href, opts = {})
578
+ data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
509
579
  data
510
580
  end
511
581
 
@@ -516,13 +586,13 @@ module PulpcoreClient
516
586
  # @option opts [Array<String>] :fields A list of fields to include in the response.
517
587
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
518
588
  # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
519
- def read_with_http_info(task_href, opts = {})
589
+ def tasks_read_with_http_info(task_href, opts = {})
520
590
  if @api_client.config.debugging
521
- @api_client.config.logger.debug 'Calling API: TasksApi.read ...'
591
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_read ...'
522
592
  end
523
593
  # verify the required parameter 'task_href' is set
524
594
  if @api_client.config.client_side_validation && task_href.nil?
525
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
595
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
526
596
  end
527
597
  # resource path
528
598
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -560,7 +630,7 @@ module PulpcoreClient
560
630
 
561
631
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
562
632
  if @api_client.config.debugging
563
- @api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
633
+ @api_client.config.logger.debug "API called: TasksApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
564
634
  end
565
635
  return data, status_code, headers
566
636
  end
@@ -570,8 +640,8 @@ module PulpcoreClient
570
640
  # @param nested_role [NestedRole]
571
641
  # @param [Hash] opts the optional parameters
572
642
  # @return [NestedRoleResponse]
573
- def remove_role(task_href, nested_role, opts = {})
574
- data, _status_code, _headers = remove_role_with_http_info(task_href, nested_role, opts)
643
+ def tasks_remove_role(task_href, nested_role, opts = {})
644
+ data, _status_code, _headers = tasks_remove_role_with_http_info(task_href, nested_role, opts)
575
645
  data
576
646
  end
577
647
 
@@ -580,17 +650,17 @@ module PulpcoreClient
580
650
  # @param nested_role [NestedRole]
581
651
  # @param [Hash] opts the optional parameters
582
652
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
583
- def remove_role_with_http_info(task_href, nested_role, opts = {})
653
+ def tasks_remove_role_with_http_info(task_href, nested_role, opts = {})
584
654
  if @api_client.config.debugging
585
- @api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
655
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_remove_role ...'
586
656
  end
587
657
  # verify the required parameter 'task_href' is set
588
658
  if @api_client.config.client_side_validation && task_href.nil?
589
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.remove_role"
659
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_remove_role"
590
660
  end
591
661
  # verify the required parameter 'nested_role' is set
592
662
  if @api_client.config.client_side_validation && nested_role.nil?
593
- fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.remove_role"
663
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_remove_role"
594
664
  end
595
665
  # resource path
596
666
  local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -628,77 +698,7 @@ module PulpcoreClient
628
698
 
629
699
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
630
700
  if @api_client.config.debugging
631
- @api_client.config.logger.debug "API called: TasksApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
632
- end
633
- return data, status_code, headers
634
- end
635
-
636
- # Cancel a task
637
- # This operation cancels a task.
638
- # @param task_href [String]
639
- # @param patched_task_cancel [PatchedTaskCancel]
640
- # @param [Hash] opts the optional parameters
641
- # @return [TaskResponse]
642
- def tasks_cancel(task_href, patched_task_cancel, opts = {})
643
- data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
644
- data
645
- end
646
-
647
- # Cancel a task
648
- # This operation cancels a task.
649
- # @param task_href [String]
650
- # @param patched_task_cancel [PatchedTaskCancel]
651
- # @param [Hash] opts the optional parameters
652
- # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
653
- def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
654
- if @api_client.config.debugging
655
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
656
- end
657
- # verify the required parameter 'task_href' is set
658
- if @api_client.config.client_side_validation && task_href.nil?
659
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
660
- end
661
- # verify the required parameter 'patched_task_cancel' is set
662
- if @api_client.config.client_side_validation && patched_task_cancel.nil?
663
- fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
664
- end
665
- # resource path
666
- local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
667
-
668
- # query parameters
669
- query_params = opts[:query_params] || {}
670
-
671
- # header parameters
672
- header_params = opts[:header_params] || {}
673
- # HTTP header 'Accept' (if needed)
674
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
675
- # HTTP header 'Content-Type'
676
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
677
-
678
- # form parameters
679
- form_params = opts[:form_params] || {}
680
-
681
- # http body (model)
682
- post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
683
-
684
- # return_type
685
- return_type = opts[:return_type] || 'TaskResponse'
686
-
687
- # auth_names
688
- auth_names = opts[:auth_names] || ['basicAuth']
689
-
690
- new_options = opts.merge(
691
- :header_params => header_params,
692
- :query_params => query_params,
693
- :form_params => form_params,
694
- :body => post_body,
695
- :auth_names => auth_names,
696
- :return_type => return_type
697
- )
698
-
699
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
700
- if @api_client.config.debugging
701
- @api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
701
+ @api_client.config.logger.debug "API called: TasksApi#tasks_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
702
702
  end
703
703
  return data, status_code, headers
704
704
  end