pulpcore_client 3.2.1 → 3.3.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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -4
  3. data/docs/ArtifactsApi.md +2 -0
  4. data/docs/ExportersCoreExportsApi.md +243 -0
  5. data/docs/ExportersPulpApi.md +355 -0
  6. data/docs/Import.md +23 -0
  7. data/docs/ImportersCoreImportsApi.md +243 -0
  8. data/docs/ImportersPulpApi.md +355 -0
  9. data/docs/InlineResponse2001.md +1 -1
  10. data/docs/InlineResponse2002.md +1 -1
  11. data/docs/InlineResponse2003.md +1 -1
  12. data/docs/InlineResponse2004.md +1 -1
  13. data/docs/InlineResponse2005.md +23 -0
  14. data/docs/InlineResponse2006.md +23 -0
  15. data/docs/InlineResponse2007.md +23 -0
  16. data/docs/InlineResponse2008.md +23 -0
  17. data/docs/InlineResponse2009.md +23 -0
  18. data/docs/PulpExport.md +29 -0
  19. data/docs/PulpExporter.md +27 -0
  20. data/docs/PulpImport.md +17 -0
  21. data/docs/PulpImporter.md +23 -0
  22. data/docs/SigningServicesApi.md +6 -2
  23. data/docs/Task.md +6 -0
  24. data/docs/TaskGroup.md +29 -0
  25. data/docs/TaskGroupsApi.md +128 -0
  26. data/docs/TasksApi.md +10 -6
  27. data/docs/UploadsApi.md +4 -2
  28. data/docs/WorkersApi.md +4 -2
  29. data/lib/pulpcore_client/api/artifacts_api.rb +3 -0
  30. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +297 -0
  31. data/lib/pulpcore_client/api/exporters_pulp_api.rb +431 -0
  32. data/lib/pulpcore_client/api/importers_core_imports_api.rb +297 -0
  33. data/lib/pulpcore_client/api/importers_pulp_api.rb +431 -0
  34. data/lib/pulpcore_client/api/signing_services_api.rb +9 -3
  35. data/lib/pulpcore_client/api/task_groups_api.rb +157 -0
  36. data/lib/pulpcore_client/api/tasks_api.rb +15 -9
  37. data/lib/pulpcore_client/api/uploads_api.rb +6 -3
  38. data/lib/pulpcore_client/api/workers_api.rb +6 -3
  39. data/lib/pulpcore_client/models/import.rb +246 -0
  40. data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
  41. data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
  42. data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
  43. data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
  44. data/lib/pulpcore_client/models/inline_response2005.rb +247 -0
  45. data/lib/pulpcore_client/models/inline_response2006.rb +247 -0
  46. data/lib/pulpcore_client/models/inline_response2007.rb +247 -0
  47. data/lib/pulpcore_client/models/inline_response2008.rb +247 -0
  48. data/lib/pulpcore_client/models/inline_response2009.rb +247 -0
  49. data/lib/pulpcore_client/models/pulp_export.rb +310 -0
  50. data/lib/pulpcore_client/models/pulp_exporter.rb +310 -0
  51. data/lib/pulpcore_client/models/pulp_import.rb +231 -0
  52. data/lib/pulpcore_client/models/pulp_importer.rb +262 -0
  53. data/lib/pulpcore_client/models/task.rb +33 -1
  54. data/lib/pulpcore_client/models/task_group.rb +291 -0
  55. data/lib/pulpcore_client/version.rb +1 -1
  56. data/lib/pulpcore_client.rb +16 -0
  57. data/spec/api/artifacts_api_spec.rb +1 -0
  58. data/spec/api/exporters_core_exports_api_spec.rb +91 -0
  59. data/spec/api/exporters_pulp_api_spec.rb +117 -0
  60. data/spec/api/importers_core_imports_api_spec.rb +91 -0
  61. data/spec/api/importers_pulp_api_spec.rb +117 -0
  62. data/spec/api/signing_services_api_spec.rb +3 -1
  63. data/spec/api/task_groups_api_spec.rb +63 -0
  64. data/spec/api/tasks_api_spec.rb +5 -3
  65. data/spec/api/uploads_api_spec.rb +2 -1
  66. data/spec/api/workers_api_spec.rb +2 -1
  67. data/spec/models/import_spec.rb +59 -0
  68. data/spec/models/inline_response2005_spec.rb +59 -0
  69. data/spec/models/inline_response2006_spec.rb +59 -0
  70. data/spec/models/inline_response2007_spec.rb +59 -0
  71. data/spec/models/inline_response2008_spec.rb +59 -0
  72. data/spec/models/inline_response2009_spec.rb +59 -0
  73. data/spec/models/pulp_export_spec.rb +77 -0
  74. data/spec/models/pulp_exporter_spec.rb +71 -0
  75. data/spec/models/pulp_import_spec.rb +41 -0
  76. data/spec/models/pulp_importer_spec.rb +59 -0
  77. data/spec/models/task_group_spec.rb +77 -0
  78. data/spec/models/task_spec.rb +18 -0
  79. metadata +66 -2
@@ -0,0 +1,431 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class ImportersPulpApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a pulp importer
23
+ # ViewSet for PulpImporters.
24
+ # @param data [PulpImporter]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [PulpImporter]
27
+ def create(data, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(data, opts)
29
+ data
30
+ end
31
+
32
+ # Create a pulp importer
33
+ # ViewSet for PulpImporters.
34
+ # @param data [PulpImporter]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(PulpImporter, Integer, Hash)>] PulpImporter data, response status code and response headers
37
+ def create_with_http_info(data, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.create ...'
40
+ end
41
+ # verify the required parameter 'data' is set
42
+ if @api_client.config.client_side_validation && data.nil?
43
+ fail ArgumentError, "Missing the required parameter 'data' when calling ImportersPulpApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/importers/core/pulp/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'PulpImporter'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['Basic']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: ImportersPulpApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a pulp importer
87
+ # ViewSet for PulpImporters.
88
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(pulp_importer_href, opts = {})
92
+ delete_with_http_info(pulp_importer_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete a pulp importer
97
+ # ViewSet for PulpImporters.
98
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def delete_with_http_info(pulp_importer_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.delete ...'
104
+ end
105
+ # verify the required parameter 'pulp_importer_href' is set
106
+ if @api_client.config.client_side_validation && pulp_importer_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['Basic']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: ImportersPulpApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List pulp importers
147
+ # ViewSet for PulpImporters.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :ordering Which field to use when ordering the results.
150
+ # @option opts [String] :name
151
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
152
+ # @option opts [Integer] :limit Number of results to return per page.
153
+ # @option opts [Integer] :offset The initial index from which to return the results.
154
+ # @option opts [String] :fields A list of fields to include in the response.
155
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
156
+ # @return [InlineResponse2003]
157
+ def list(opts = {})
158
+ data, _status_code, _headers = list_with_http_info(opts)
159
+ data
160
+ end
161
+
162
+ # List pulp importers
163
+ # ViewSet for PulpImporters.
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :ordering Which field to use when ordering the results.
166
+ # @option opts [String] :name
167
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
168
+ # @option opts [Integer] :limit Number of results to return per page.
169
+ # @option opts [Integer] :offset The initial index from which to return the results.
170
+ # @option opts [String] :fields A list of fields to include in the response.
171
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
172
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
173
+ def list_with_http_info(opts = {})
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.list ...'
176
+ end
177
+ # resource path
178
+ local_var_path = '/pulp/api/v3/importers/core/pulp/'
179
+
180
+ # query parameters
181
+ query_params = opts[:query_params] || {}
182
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
183
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
184
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
185
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
186
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
187
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
188
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:body]
200
+
201
+ # return_type
202
+ return_type = opts[:return_type] || 'InlineResponse2003'
203
+
204
+ # auth_names
205
+ auth_names = opts[:auth_names] || ['Basic']
206
+
207
+ new_options = opts.merge(
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => return_type
214
+ )
215
+
216
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "API called: ImportersPulpApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+
223
+ # Partially update a pulp importer
224
+ # ViewSet for PulpImporters.
225
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
226
+ # @param data [PulpImporter]
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [PulpImporter]
229
+ def partial_update(pulp_importer_href, data, opts = {})
230
+ data, _status_code, _headers = partial_update_with_http_info(pulp_importer_href, data, opts)
231
+ data
232
+ end
233
+
234
+ # Partially update a pulp importer
235
+ # ViewSet for PulpImporters.
236
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
237
+ # @param data [PulpImporter]
238
+ # @param [Hash] opts the optional parameters
239
+ # @return [Array<(PulpImporter, Integer, Hash)>] PulpImporter data, response status code and response headers
240
+ def partial_update_with_http_info(pulp_importer_href, data, opts = {})
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.partial_update ...'
243
+ end
244
+ # verify the required parameter 'pulp_importer_href' is set
245
+ if @api_client.config.client_side_validation && pulp_importer_href.nil?
246
+ fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.partial_update"
247
+ end
248
+ # verify the required parameter 'data' is set
249
+ if @api_client.config.client_side_validation && data.nil?
250
+ fail ArgumentError, "Missing the required parameter 'data' when calling ImportersPulpApi.partial_update"
251
+ end
252
+ # resource path
253
+ local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
254
+
255
+ # query parameters
256
+ query_params = opts[:query_params] || {}
257
+
258
+ # header parameters
259
+ header_params = opts[:header_params] || {}
260
+ # HTTP header 'Accept' (if needed)
261
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
+ # HTTP header 'Content-Type'
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
264
+
265
+ # form parameters
266
+ form_params = opts[:form_params] || {}
267
+
268
+ # http body (model)
269
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
270
+
271
+ # return_type
272
+ return_type = opts[:return_type] || 'PulpImporter'
273
+
274
+ # auth_names
275
+ auth_names = opts[:auth_names] || ['Basic']
276
+
277
+ new_options = opts.merge(
278
+ :header_params => header_params,
279
+ :query_params => query_params,
280
+ :form_params => form_params,
281
+ :body => post_body,
282
+ :auth_names => auth_names,
283
+ :return_type => return_type
284
+ )
285
+
286
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: ImportersPulpApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+
293
+ # Inspect a pulp importer
294
+ # ViewSet for PulpImporters.
295
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
296
+ # @param [Hash] opts the optional parameters
297
+ # @option opts [String] :fields A list of fields to include in the response.
298
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
299
+ # @return [PulpImporter]
300
+ def read(pulp_importer_href, opts = {})
301
+ data, _status_code, _headers = read_with_http_info(pulp_importer_href, opts)
302
+ data
303
+ end
304
+
305
+ # Inspect a pulp importer
306
+ # ViewSet for PulpImporters.
307
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [String] :fields A list of fields to include in the response.
310
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
311
+ # @return [Array<(PulpImporter, Integer, Hash)>] PulpImporter data, response status code and response headers
312
+ def read_with_http_info(pulp_importer_href, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.read ...'
315
+ end
316
+ # verify the required parameter 'pulp_importer_href' is set
317
+ if @api_client.config.client_side_validation && pulp_importer_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.read"
319
+ end
320
+ # resource path
321
+ local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
322
+
323
+ # query parameters
324
+ query_params = opts[:query_params] || {}
325
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
326
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
327
+
328
+ # header parameters
329
+ header_params = opts[:header_params] || {}
330
+ # HTTP header 'Accept' (if needed)
331
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
332
+
333
+ # form parameters
334
+ form_params = opts[:form_params] || {}
335
+
336
+ # http body (model)
337
+ post_body = opts[:body]
338
+
339
+ # return_type
340
+ return_type = opts[:return_type] || 'PulpImporter'
341
+
342
+ # auth_names
343
+ auth_names = opts[:auth_names] || ['Basic']
344
+
345
+ new_options = opts.merge(
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => return_type
352
+ )
353
+
354
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug "API called: ImportersPulpApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ end
358
+ return data, status_code, headers
359
+ end
360
+
361
+ # Update a pulp importer
362
+ # ViewSet for PulpImporters.
363
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
364
+ # @param data [PulpImporter]
365
+ # @param [Hash] opts the optional parameters
366
+ # @return [PulpImporter]
367
+ def update(pulp_importer_href, data, opts = {})
368
+ data, _status_code, _headers = update_with_http_info(pulp_importer_href, data, opts)
369
+ data
370
+ end
371
+
372
+ # Update a pulp importer
373
+ # ViewSet for PulpImporters.
374
+ # @param pulp_importer_href [String] URI of Pulp Importer. e.g.: /pulp/api/v3/importers/core/pulp/1/
375
+ # @param data [PulpImporter]
376
+ # @param [Hash] opts the optional parameters
377
+ # @return [Array<(PulpImporter, Integer, Hash)>] PulpImporter data, response status code and response headers
378
+ def update_with_http_info(pulp_importer_href, data, opts = {})
379
+ if @api_client.config.debugging
380
+ @api_client.config.logger.debug 'Calling API: ImportersPulpApi.update ...'
381
+ end
382
+ # verify the required parameter 'pulp_importer_href' is set
383
+ if @api_client.config.client_side_validation && pulp_importer_href.nil?
384
+ fail ArgumentError, "Missing the required parameter 'pulp_importer_href' when calling ImportersPulpApi.update"
385
+ end
386
+ # verify the required parameter 'data' is set
387
+ if @api_client.config.client_side_validation && data.nil?
388
+ fail ArgumentError, "Missing the required parameter 'data' when calling ImportersPulpApi.update"
389
+ end
390
+ # resource path
391
+ local_var_path = '{pulp_importer_href}'.sub('{' + 'pulp_importer_href' + '}', CGI.escape(pulp_importer_href.to_s).gsub('%2F', '/'))
392
+
393
+ # query parameters
394
+ query_params = opts[:query_params] || {}
395
+
396
+ # header parameters
397
+ header_params = opts[:header_params] || {}
398
+ # HTTP header 'Accept' (if needed)
399
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
400
+ # HTTP header 'Content-Type'
401
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
402
+
403
+ # form parameters
404
+ form_params = opts[:form_params] || {}
405
+
406
+ # http body (model)
407
+ post_body = opts[:body] || @api_client.object_to_http_body(data)
408
+
409
+ # return_type
410
+ return_type = opts[:return_type] || 'PulpImporter'
411
+
412
+ # auth_names
413
+ auth_names = opts[:auth_names] || ['Basic']
414
+
415
+ new_options = opts.merge(
416
+ :header_params => header_params,
417
+ :query_params => query_params,
418
+ :form_params => form_params,
419
+ :body => post_body,
420
+ :auth_names => auth_names,
421
+ :return_type => return_type
422
+ )
423
+
424
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
425
+ if @api_client.config.debugging
426
+ @api_client.config.logger.debug "API called: ImportersPulpApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
427
+ end
428
+ return data, status_code, headers
429
+ end
430
+ end
431
+ end
@@ -22,11 +22,13 @@ module PulpcoreClient
22
22
  # List signing services
23
23
  # A ViewSet that supports browsing of existing signing services.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :ordering Which field to use when ordering the results.
26
+ # @option opts [String] :name
25
27
  # @option opts [Integer] :limit Number of results to return per page.
26
28
  # @option opts [Integer] :offset The initial index from which to return the results.
27
29
  # @option opts [String] :fields A list of fields to include in the response.
28
30
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
- # @return [InlineResponse2001]
31
+ # @return [InlineResponse2005]
30
32
  def list(opts = {})
31
33
  data, _status_code, _headers = list_with_http_info(opts)
32
34
  data
@@ -35,11 +37,13 @@ module PulpcoreClient
35
37
  # List signing services
36
38
  # A ViewSet that supports browsing of existing signing services.
37
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :ordering Which field to use when ordering the results.
41
+ # @option opts [String] :name
38
42
  # @option opts [Integer] :limit Number of results to return per page.
39
43
  # @option opts [Integer] :offset The initial index from which to return the results.
40
44
  # @option opts [String] :fields A list of fields to include in the response.
41
45
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
- # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
46
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
43
47
  def list_with_http_info(opts = {})
44
48
  if @api_client.config.debugging
45
49
  @api_client.config.logger.debug 'Calling API: SigningServicesApi.list ...'
@@ -49,6 +53,8 @@ module PulpcoreClient
49
53
 
50
54
  # query parameters
51
55
  query_params = opts[:query_params] || {}
56
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
57
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
52
58
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
53
59
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
54
60
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -66,7 +72,7 @@ module PulpcoreClient
66
72
  post_body = opts[:body]
67
73
 
68
74
  # return_type
69
- return_type = opts[:return_type] || 'InlineResponse2001'
75
+ return_type = opts[:return_type] || 'InlineResponse2005'
70
76
 
71
77
  # auth_names
72
78
  auth_names = opts[:auth_names] || ['Basic']
@@ -0,0 +1,157 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class TaskGroupsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List task groups
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :ordering Which field to use when ordering the results.
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
+ # @return [InlineResponse2006]
30
+ def list(opts = {})
31
+ data, _status_code, _headers = list_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # List task groups
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :ordering Which field to use when ordering the results.
38
+ # @option opts [Integer] :limit Number of results to return per page.
39
+ # @option opts [Integer] :offset The initial index from which to return the results.
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
43
+ def list_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: TaskGroupsApi.list ...'
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp/api/v3/task-groups/'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
53
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
54
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
55
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
56
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
57
+
58
+ # header parameters
59
+ header_params = opts[:header_params] || {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:body]
68
+
69
+ # return_type
70
+ return_type = opts[:return_type] || 'InlineResponse2006'
71
+
72
+ # auth_names
73
+ auth_names = opts[:auth_names] || ['Basic']
74
+
75
+ new_options = opts.merge(
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => return_type
82
+ )
83
+
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: TaskGroupsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Inspect a task group
92
+ # @param task_group_href [String] URI of Task Group. e.g.: /pulp/api/v3/task-groups/1/
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [String] :fields A list of fields to include in the response.
95
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
96
+ # @return [TaskGroup]
97
+ def read(task_group_href, opts = {})
98
+ data, _status_code, _headers = read_with_http_info(task_group_href, opts)
99
+ data
100
+ end
101
+
102
+ # Inspect a task group
103
+ # @param task_group_href [String] URI of Task Group. e.g.: /pulp/api/v3/task-groups/1/
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :fields A list of fields to include in the response.
106
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
+ # @return [Array<(TaskGroup, Integer, Hash)>] TaskGroup data, response status code and response headers
108
+ def read_with_http_info(task_group_href, opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug 'Calling API: TaskGroupsApi.read ...'
111
+ end
112
+ # verify the required parameter 'task_group_href' is set
113
+ if @api_client.config.client_side_validation && task_group_href.nil?
114
+ fail ArgumentError, "Missing the required parameter 'task_group_href' when calling TaskGroupsApi.read"
115
+ end
116
+ # resource path
117
+ local_var_path = '{task_group_href}'.sub('{' + 'task_group_href' + '}', CGI.escape(task_group_href.to_s).gsub('%2F', '/'))
118
+
119
+ # query parameters
120
+ query_params = opts[:query_params] || {}
121
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
122
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
123
+
124
+ # header parameters
125
+ header_params = opts[:header_params] || {}
126
+ # HTTP header 'Accept' (if needed)
127
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:body]
134
+
135
+ # return_type
136
+ return_type = opts[:return_type] || 'TaskGroup'
137
+
138
+ # auth_names
139
+ auth_names = opts[:auth_names] || ['Basic']
140
+
141
+ new_options = opts.merge(
142
+ :header_params => header_params,
143
+ :query_params => query_params,
144
+ :form_params => form_params,
145
+ :body => post_body,
146
+ :auth_names => auth_names,
147
+ :return_type => return_type
148
+ )
149
+
150
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "API called: TaskGroupsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ end
154
+ return data, status_code, headers
155
+ end
156
+ end
157
+ end