pulpcore_client 3.22.29 → 3.22.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +141 -143
  3. data/docs/AccessPoliciesApi.md +25 -25
  4. data/docs/ArtifactDistributionResponse.md +4 -4
  5. data/docs/ArtifactsApi.md +20 -20
  6. data/docs/ContentApi.md +5 -5
  7. data/docs/ContentguardsApi.md +5 -5
  8. data/docs/ContentguardsContentRedirectApi.md +50 -50
  9. data/docs/ContentguardsRbacApi.md +50 -50
  10. data/docs/DistributionsApi.md +5 -5
  11. data/docs/DistributionsArtifactsApi.md +10 -10
  12. data/docs/ExportersFilesystemApi.md +30 -30
  13. data/docs/ExportersFilesystemExportsApi.md +20 -20
  14. data/docs/ExportersPulpApi.md +30 -30
  15. data/docs/ExportersPulpExportsApi.md +20 -20
  16. data/docs/GroupsApi.md +50 -50
  17. data/docs/GroupsRolesApi.md +20 -20
  18. data/docs/GroupsUsersApi.md +15 -15
  19. data/docs/ImportersPulpApi.md +30 -30
  20. data/docs/ImportersPulpImportsApi.md +20 -20
  21. data/docs/OrphansApi.md +5 -5
  22. data/docs/OrphansCleanupApi.md +5 -5
  23. data/docs/PublicationsApi.md +5 -5
  24. data/docs/RemotesApi.md +5 -5
  25. data/docs/RepairApi.md +5 -5
  26. data/docs/RepositoriesApi.md +5 -5
  27. data/docs/RepositoriesReclaimSpaceApi.md +5 -5
  28. data/docs/RepositoryVersionsApi.md +5 -5
  29. data/docs/RolesApi.md +30 -30
  30. data/docs/SigningServicesApi.md +10 -10
  31. data/docs/TaskGroupsApi.md +10 -10
  32. data/docs/TaskSchedulesApi.md +30 -30
  33. data/docs/TasksApi.md +95 -95
  34. data/docs/UploadsApi.md +50 -50
  35. data/docs/UsersApi.md +30 -30
  36. data/docs/UsersRolesApi.md +20 -20
  37. data/docs/WorkersApi.md +10 -10
  38. data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
  39. data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
  40. data/lib/pulpcore_client/api/content_api.rb +5 -5
  41. data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
  42. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
  43. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
  44. data/lib/pulpcore_client/api/distributions_api.rb +5 -5
  45. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
  46. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
  47. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
  48. data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
  49. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
  50. data/lib/pulpcore_client/api/groups_api.rb +63 -63
  51. data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
  52. data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
  53. data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
  54. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
  55. data/lib/pulpcore_client/api/orphans_api.rb +5 -5
  56. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
  57. data/lib/pulpcore_client/api/publications_api.rb +5 -5
  58. data/lib/pulpcore_client/api/remotes_api.rb +5 -5
  59. data/lib/pulpcore_client/api/repair_api.rb +6 -6
  60. data/lib/pulpcore_client/api/repositories_api.rb +5 -5
  61. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
  62. data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
  63. data/lib/pulpcore_client/api/roles_api.rb +37 -37
  64. data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
  65. data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
  66. data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
  67. data/lib/pulpcore_client/api/tasks_api.rb +119 -119
  68. data/lib/pulpcore_client/api/uploads_api.rb +65 -65
  69. data/lib/pulpcore_client/api/users_api.rb +37 -37
  70. data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
  71. data/lib/pulpcore_client/api/workers_api.rb +11 -11
  72. data/lib/pulpcore_client/models/artifact_distribution_response.rb +18 -18
  73. data/lib/pulpcore_client/version.rb +1 -1
  74. data/lib/pulpcore_client.rb +0 -2
  75. data/spec/api/access_policies_api_spec.rb +10 -10
  76. data/spec/api/artifacts_api_spec.rb +8 -8
  77. data/spec/api/content_api_spec.rb +2 -2
  78. data/spec/api/contentguards_api_spec.rb +2 -2
  79. data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
  80. data/spec/api/contentguards_rbac_api_spec.rb +20 -20
  81. data/spec/api/distributions_api_spec.rb +2 -2
  82. data/spec/api/distributions_artifacts_api_spec.rb +4 -4
  83. data/spec/api/exporters_filesystem_api_spec.rb +12 -12
  84. data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
  85. data/spec/api/exporters_pulp_api_spec.rb +12 -12
  86. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  87. data/spec/api/groups_api_spec.rb +20 -20
  88. data/spec/api/groups_roles_api_spec.rb +8 -8
  89. data/spec/api/groups_users_api_spec.rb +6 -6
  90. data/spec/api/importers_pulp_api_spec.rb +12 -12
  91. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  92. data/spec/api/orphans_api_spec.rb +2 -2
  93. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  94. data/spec/api/publications_api_spec.rb +2 -2
  95. data/spec/api/remotes_api_spec.rb +2 -2
  96. data/spec/api/repair_api_spec.rb +2 -2
  97. data/spec/api/repositories_api_spec.rb +2 -2
  98. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  99. data/spec/api/repository_versions_api_spec.rb +2 -2
  100. data/spec/api/roles_api_spec.rb +12 -12
  101. data/spec/api/signing_services_api_spec.rb +4 -4
  102. data/spec/api/task_groups_api_spec.rb +4 -4
  103. data/spec/api/task_schedules_api_spec.rb +12 -12
  104. data/spec/api/tasks_api_spec.rb +29 -29
  105. data/spec/api/uploads_api_spec.rb +20 -20
  106. data/spec/api/users_api_spec.rb +12 -12
  107. data/spec/api/users_roles_api_spec.rb +8 -8
  108. data/spec/api/workers_api_spec.rb +4 -4
  109. data/spec/models/artifact_distribution_response_spec.rb +4 -4
  110. metadata +130 -138
  111. data/docs/DocsApiJsonApi.md +0 -61
  112. data/docs/DocsApiYamlApi.md +0 -61
  113. data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
  114. data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
  115. data/spec/api/docs_api_json_api_spec.rb +0 -48
  116. data/spec/api/docs_api_yaml_api_spec.rb +0 -48
@@ -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 tasks_add_role(task_href, nested_role, opts = {})
28
- data, _status_code, _headers = tasks_add_role_with_http_info(task_href, nested_role, opts)
27
+ def add_role(task_href, nested_role, opts = {})
28
+ data, _status_code, _headers = 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 tasks_add_role_with_http_info(task_href, nested_role, opts = {})
37
+ def 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.tasks_add_role ...'
39
+ @api_client.config.logger.debug 'Calling API: TasksApi.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.tasks_add_role"
43
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.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.tasks_add_role"
47
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.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,77 +82,7 @@ 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#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}"
85
+ @api_client.config.logger.debug "API called: TasksApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
86
  end
157
87
  return data, status_code, headers
158
88
  end
@@ -162,8 +92,8 @@ module PulpcoreClient
162
92
  # @param task_href [String]
163
93
  # @param [Hash] opts the optional parameters
164
94
  # @return [nil]
165
- def tasks_delete(task_href, opts = {})
166
- tasks_delete_with_http_info(task_href, opts)
95
+ def delete(task_href, opts = {})
96
+ delete_with_http_info(task_href, opts)
167
97
  nil
168
98
  end
169
99
 
@@ -172,13 +102,13 @@ module PulpcoreClient
172
102
  # @param task_href [String]
173
103
  # @param [Hash] opts the optional parameters
174
104
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
175
- def tasks_delete_with_http_info(task_href, opts = {})
105
+ def delete_with_http_info(task_href, opts = {})
176
106
  if @api_client.config.debugging
177
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_delete ...'
107
+ @api_client.config.logger.debug 'Calling API: TasksApi.delete ...'
178
108
  end
179
109
  # verify the required parameter 'task_href' is set
180
110
  if @api_client.config.client_side_validation && task_href.nil?
181
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_delete"
111
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
182
112
  end
183
113
  # resource path
184
114
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -212,7 +142,7 @@ module PulpcoreClient
212
142
 
213
143
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
214
144
  if @api_client.config.debugging
215
- @api_client.config.logger.debug "API called: TasksApi#tasks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ @api_client.config.logger.debug "API called: TasksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
146
  end
217
147
  return data, status_code, headers
218
148
  end
@@ -258,8 +188,8 @@ module PulpcoreClient
258
188
  # @option opts [Array<String>] :fields A list of fields to include in the response.
259
189
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
260
190
  # @return [PaginatedTaskResponseList]
261
- def tasks_list(opts = {})
262
- data, _status_code, _headers = tasks_list_with_http_info(opts)
191
+ def list(opts = {})
192
+ data, _status_code, _headers = list_with_http_info(opts)
263
193
  data
264
194
  end
265
195
 
@@ -304,9 +234,9 @@ module PulpcoreClient
304
234
  # @option opts [Array<String>] :fields A list of fields to include in the response.
305
235
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
306
236
  # @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
307
- def tasks_list_with_http_info(opts = {})
237
+ def list_with_http_info(opts = {})
308
238
  if @api_client.config.debugging
309
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_list ...'
239
+ @api_client.config.logger.debug 'Calling API: TasksApi.list ...'
310
240
  end
311
241
  allowable_values = ["-args", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "args", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state"]
312
242
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
@@ -387,7 +317,7 @@ module PulpcoreClient
387
317
 
388
318
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
389
319
  if @api_client.config.debugging
390
- @api_client.config.logger.debug "API called: TasksApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
320
+ @api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
391
321
  end
392
322
  return data, status_code, headers
393
323
  end
@@ -398,8 +328,8 @@ module PulpcoreClient
398
328
  # @option opts [Array<String>] :fields A list of fields to include in the response.
399
329
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
400
330
  # @return [ObjectRolesResponse]
401
- def tasks_list_roles(task_href, opts = {})
402
- data, _status_code, _headers = tasks_list_roles_with_http_info(task_href, opts)
331
+ def list_roles(task_href, opts = {})
332
+ data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
403
333
  data
404
334
  end
405
335
 
@@ -409,13 +339,13 @@ module PulpcoreClient
409
339
  # @option opts [Array<String>] :fields A list of fields to include in the response.
410
340
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
411
341
  # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
412
- def tasks_list_roles_with_http_info(task_href, opts = {})
342
+ def list_roles_with_http_info(task_href, opts = {})
413
343
  if @api_client.config.debugging
414
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_list_roles ...'
344
+ @api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
415
345
  end
416
346
  # verify the required parameter 'task_href' is set
417
347
  if @api_client.config.client_side_validation && task_href.nil?
418
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_list_roles"
348
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.list_roles"
419
349
  end
420
350
  # resource path
421
351
  local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -453,7 +383,7 @@ module PulpcoreClient
453
383
 
454
384
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
455
385
  if @api_client.config.debugging
456
- @api_client.config.logger.debug "API called: TasksApi#tasks_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
386
+ @api_client.config.logger.debug "API called: TasksApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
457
387
  end
458
388
  return data, status_code, headers
459
389
  end
@@ -464,8 +394,8 @@ module PulpcoreClient
464
394
  # @option opts [Array<String>] :fields A list of fields to include in the response.
465
395
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
466
396
  # @return [MyPermissionsResponse]
467
- def tasks_my_permissions(task_href, opts = {})
468
- data, _status_code, _headers = tasks_my_permissions_with_http_info(task_href, opts)
397
+ def my_permissions(task_href, opts = {})
398
+ data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
469
399
  data
470
400
  end
471
401
 
@@ -475,13 +405,13 @@ module PulpcoreClient
475
405
  # @option opts [Array<String>] :fields A list of fields to include in the response.
476
406
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
477
407
  # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
478
- def tasks_my_permissions_with_http_info(task_href, opts = {})
408
+ def my_permissions_with_http_info(task_href, opts = {})
479
409
  if @api_client.config.debugging
480
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_my_permissions ...'
410
+ @api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
481
411
  end
482
412
  # verify the required parameter 'task_href' is set
483
413
  if @api_client.config.client_side_validation && task_href.nil?
484
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_my_permissions"
414
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.my_permissions"
485
415
  end
486
416
  # resource path
487
417
  local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -519,7 +449,7 @@ module PulpcoreClient
519
449
 
520
450
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
521
451
  if @api_client.config.debugging
522
- @api_client.config.logger.debug "API called: TasksApi#tasks_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
452
+ @api_client.config.logger.debug "API called: TasksApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
523
453
  end
524
454
  return data, status_code, headers
525
455
  end
@@ -529,8 +459,8 @@ module PulpcoreClient
529
459
  # @param purge [Purge]
530
460
  # @param [Hash] opts the optional parameters
531
461
  # @return [AsyncOperationResponse]
532
- def tasks_purge(purge, opts = {})
533
- data, _status_code, _headers = tasks_purge_with_http_info(purge, opts)
462
+ def purge(purge, opts = {})
463
+ data, _status_code, _headers = purge_with_http_info(purge, opts)
534
464
  data
535
465
  end
536
466
 
@@ -539,13 +469,13 @@ module PulpcoreClient
539
469
  # @param purge [Purge]
540
470
  # @param [Hash] opts the optional parameters
541
471
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
542
- def tasks_purge_with_http_info(purge, opts = {})
472
+ def purge_with_http_info(purge, opts = {})
543
473
  if @api_client.config.debugging
544
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_purge ...'
474
+ @api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
545
475
  end
546
476
  # verify the required parameter 'purge' is set
547
477
  if @api_client.config.client_side_validation && purge.nil?
548
- fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.tasks_purge"
478
+ fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
549
479
  end
550
480
  # resource path
551
481
  local_var_path = '/pulp/api/v3/tasks/purge/'
@@ -583,7 +513,7 @@ module PulpcoreClient
583
513
 
584
514
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
585
515
  if @api_client.config.debugging
586
- @api_client.config.logger.debug "API called: TasksApi#tasks_purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
516
+ @api_client.config.logger.debug "API called: TasksApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
517
  end
588
518
  return data, status_code, headers
589
519
  end
@@ -595,8 +525,8 @@ module PulpcoreClient
595
525
  # @option opts [Array<String>] :fields A list of fields to include in the response.
596
526
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
597
527
  # @return [TaskResponse]
598
- def tasks_read(task_href, opts = {})
599
- data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
528
+ def read(task_href, opts = {})
529
+ data, _status_code, _headers = read_with_http_info(task_href, opts)
600
530
  data
601
531
  end
602
532
 
@@ -607,13 +537,13 @@ module PulpcoreClient
607
537
  # @option opts [Array<String>] :fields A list of fields to include in the response.
608
538
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
609
539
  # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
610
- def tasks_read_with_http_info(task_href, opts = {})
540
+ def read_with_http_info(task_href, opts = {})
611
541
  if @api_client.config.debugging
612
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_read ...'
542
+ @api_client.config.logger.debug 'Calling API: TasksApi.read ...'
613
543
  end
614
544
  # verify the required parameter 'task_href' is set
615
545
  if @api_client.config.client_side_validation && task_href.nil?
616
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
546
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
617
547
  end
618
548
  # resource path
619
549
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -651,7 +581,7 @@ module PulpcoreClient
651
581
 
652
582
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
653
583
  if @api_client.config.debugging
654
- @api_client.config.logger.debug "API called: TasksApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
584
+ @api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
655
585
  end
656
586
  return data, status_code, headers
657
587
  end
@@ -661,8 +591,8 @@ module PulpcoreClient
661
591
  # @param nested_role [NestedRole]
662
592
  # @param [Hash] opts the optional parameters
663
593
  # @return [NestedRoleResponse]
664
- def tasks_remove_role(task_href, nested_role, opts = {})
665
- data, _status_code, _headers = tasks_remove_role_with_http_info(task_href, nested_role, opts)
594
+ def remove_role(task_href, nested_role, opts = {})
595
+ data, _status_code, _headers = remove_role_with_http_info(task_href, nested_role, opts)
666
596
  data
667
597
  end
668
598
 
@@ -671,17 +601,17 @@ module PulpcoreClient
671
601
  # @param nested_role [NestedRole]
672
602
  # @param [Hash] opts the optional parameters
673
603
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
674
- def tasks_remove_role_with_http_info(task_href, nested_role, opts = {})
604
+ def remove_role_with_http_info(task_href, nested_role, opts = {})
675
605
  if @api_client.config.debugging
676
- @api_client.config.logger.debug 'Calling API: TasksApi.tasks_remove_role ...'
606
+ @api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
677
607
  end
678
608
  # verify the required parameter 'task_href' is set
679
609
  if @api_client.config.client_side_validation && task_href.nil?
680
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_remove_role"
610
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.remove_role"
681
611
  end
682
612
  # verify the required parameter 'nested_role' is set
683
613
  if @api_client.config.client_side_validation && nested_role.nil?
684
- fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_remove_role"
614
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.remove_role"
685
615
  end
686
616
  # resource path
687
617
  local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
@@ -719,7 +649,77 @@ module PulpcoreClient
719
649
 
720
650
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
721
651
  if @api_client.config.debugging
722
- @api_client.config.logger.debug "API called: TasksApi#tasks_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
652
+ @api_client.config.logger.debug "API called: TasksApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
653
+ end
654
+ return data, status_code, headers
655
+ end
656
+
657
+ # Cancel a task
658
+ # This operation cancels a task.
659
+ # @param task_href [String]
660
+ # @param patched_task_cancel [PatchedTaskCancel]
661
+ # @param [Hash] opts the optional parameters
662
+ # @return [TaskResponse]
663
+ def tasks_cancel(task_href, patched_task_cancel, opts = {})
664
+ data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
665
+ data
666
+ end
667
+
668
+ # Cancel a task
669
+ # This operation cancels a task.
670
+ # @param task_href [String]
671
+ # @param patched_task_cancel [PatchedTaskCancel]
672
+ # @param [Hash] opts the optional parameters
673
+ # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
674
+ def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
675
+ if @api_client.config.debugging
676
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
677
+ end
678
+ # verify the required parameter 'task_href' is set
679
+ if @api_client.config.client_side_validation && task_href.nil?
680
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
681
+ end
682
+ # verify the required parameter 'patched_task_cancel' is set
683
+ if @api_client.config.client_side_validation && patched_task_cancel.nil?
684
+ fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
685
+ end
686
+ # resource path
687
+ local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
688
+
689
+ # query parameters
690
+ query_params = opts[:query_params] || {}
691
+
692
+ # header parameters
693
+ header_params = opts[:header_params] || {}
694
+ # HTTP header 'Accept' (if needed)
695
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
696
+ # HTTP header 'Content-Type'
697
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
698
+
699
+ # form parameters
700
+ form_params = opts[:form_params] || {}
701
+
702
+ # http body (model)
703
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
704
+
705
+ # return_type
706
+ return_type = opts[:return_type] || 'TaskResponse'
707
+
708
+ # auth_names
709
+ auth_names = opts[:auth_names] || ['basicAuth']
710
+
711
+ new_options = opts.merge(
712
+ :header_params => header_params,
713
+ :query_params => query_params,
714
+ :form_params => form_params,
715
+ :body => post_body,
716
+ :auth_names => auth_names,
717
+ :return_type => return_type
718
+ )
719
+
720
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
723
723
  end
724
724
  return data, status_code, headers
725
725
  end