pulp_file_client 0.1.0b4 → 0.1.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -9
  3. data/docs/ContentFilesApi.md +2 -2
  4. data/docs/ContentSummary.md +21 -0
  5. data/docs/DistributionsFileApi.md +8 -8
  6. data/docs/FileExportersFileApi.md +408 -0
  7. data/docs/{FileContent.md → FileFileContent.md} +2 -6
  8. data/docs/{FileDistribution.md → FileFileDistribution.md} +2 -2
  9. data/docs/FileFileFileSystemExporter.md +23 -0
  10. data/docs/{FilePublication.md → FileFilePublication.md} +2 -2
  11. data/docs/{FileRemote.md → FileFileRemote.md} +10 -14
  12. data/docs/FileFileRepository.md +27 -0
  13. data/docs/InlineResponse200.md +1 -1
  14. data/docs/InlineResponse2001.md +1 -1
  15. data/docs/InlineResponse2002.md +1 -1
  16. data/docs/InlineResponse2003.md +1 -1
  17. data/docs/InlineResponse2004.md +23 -0
  18. data/docs/InlineResponse2005.md +23 -0
  19. data/docs/InlineResponse2006.md +23 -0
  20. data/docs/PublicationExport.md +17 -0
  21. data/docs/PublicationsFileApi.md +9 -9
  22. data/docs/RemotesFileApi.md +12 -67
  23. data/docs/RepositoriesFileApi.md +464 -0
  24. data/docs/RepositoriesFileVersionsApi.md +214 -0
  25. data/docs/RepositoryAddRemoveContent.md +21 -0
  26. data/docs/RepositorySyncURL.md +2 -2
  27. data/docs/RepositoryVersion.md +25 -0
  28. data/lib/pulp_file_client/api/content_files_api.rb +4 -4
  29. data/lib/pulp_file_client/api/distributions_file_api.rb +10 -10
  30. data/lib/pulp_file_client/api/file_exporters_file_api.rb +496 -0
  31. data/lib/pulp_file_client/api/publications_file_api.rb +15 -15
  32. data/lib/pulp_file_client/api/remotes_file_api.rb +16 -84
  33. data/lib/pulp_file_client/api/repositories_file_api.rb +566 -0
  34. data/lib/pulp_file_client/api/repositories_file_versions_api.rb +268 -0
  35. data/lib/pulp_file_client/api_client.rb +1 -1
  36. data/lib/pulp_file_client/api_error.rb +1 -1
  37. data/lib/pulp_file_client/configuration.rb +1 -1
  38. data/lib/pulp_file_client/models/async_operation_response.rb +12 -2
  39. data/lib/pulp_file_client/models/content_summary.rb +246 -0
  40. data/lib/pulp_file_client/models/{file_content.rb → file_file_content.rb} +16 -26
  41. data/lib/pulp_file_client/models/{file_distribution.rb → file_file_distribution.rb} +17 -23
  42. data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +284 -0
  43. data/lib/pulp_file_client/models/{file_publication.rb → file_file_publication.rb} +16 -5
  44. data/lib/pulp_file_client/models/{file_remote.rb → file_file_remote.rb} +69 -105
  45. data/lib/pulp_file_client/models/file_file_repository.rb +294 -0
  46. data/lib/pulp_file_client/models/inline_response200.rb +15 -3
  47. data/lib/pulp_file_client/models/inline_response2001.rb +15 -3
  48. data/lib/pulp_file_client/models/inline_response2002.rb +15 -3
  49. data/lib/pulp_file_client/models/inline_response2003.rb +15 -3
  50. data/lib/pulp_file_client/models/inline_response2004.rb +247 -0
  51. data/lib/pulp_file_client/models/inline_response2005.rb +247 -0
  52. data/lib/pulp_file_client/models/inline_response2006.rb +247 -0
  53. data/lib/pulp_file_client/models/publication_export.rb +212 -0
  54. data/lib/pulp_file_client/models/repository_add_remove_content.rb +231 -0
  55. data/lib/pulp_file_client/models/repository_sync_url.rb +22 -12
  56. data/lib/pulp_file_client/models/repository_version.rb +244 -0
  57. data/lib/pulp_file_client/version.rb +2 -2
  58. data/lib/pulp_file_client.rb +17 -5
  59. data/pulp_file_client.gemspec +1 -1
  60. data/spec/api/content_files_api_spec.rb +2 -2
  61. data/spec/api/distributions_file_api_spec.rb +2 -2
  62. data/spec/api/file_exporters_file_api_spec.rb +128 -0
  63. data/spec/api/publications_file_api_spec.rb +6 -6
  64. data/spec/api/remotes_file_api_spec.rb +4 -16
  65. data/spec/api/repositories_file_api_spec.rb +140 -0
  66. data/spec/api/repositories_file_versions_api_spec.rb +91 -0
  67. data/spec/api_client_spec.rb +1 -1
  68. data/spec/configuration_spec.rb +1 -1
  69. data/spec/models/async_operation_response_spec.rb +1 -1
  70. data/spec/models/content_summary_spec.rb +53 -0
  71. data/spec/models/{file_content_spec.rb → file_file_content_spec.rb} +7 -19
  72. data/spec/models/{file_distribution_spec.rb → file_file_distribution_spec.rb} +7 -7
  73. data/spec/models/file_file_file_system_exporter_spec.rb +59 -0
  74. data/spec/models/{file_publication_spec.rb → file_file_publication_spec.rb} +7 -7
  75. data/spec/models/{file_remote_spec.rb → file_file_remote_spec.rb} +11 -23
  76. data/spec/models/file_file_repository_spec.rb +71 -0
  77. data/spec/models/inline_response2001_spec.rb +1 -1
  78. data/spec/models/inline_response2002_spec.rb +1 -1
  79. data/spec/models/inline_response2003_spec.rb +1 -1
  80. data/spec/models/inline_response2004_spec.rb +59 -0
  81. data/spec/models/inline_response2005_spec.rb +59 -0
  82. data/spec/models/inline_response2006_spec.rb +59 -0
  83. data/spec/models/inline_response200_spec.rb +1 -1
  84. data/spec/models/publication_export_spec.rb +41 -0
  85. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  86. data/spec/models/repository_sync_url_spec.rb +2 -2
  87. data/spec/models/repository_version_spec.rb +65 -0
  88. data/spec/spec_helper.rb +1 -1
  89. metadata +66 -18
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -21,7 +21,7 @@ module PulpFileClient
21
21
  end
22
22
  # Create a file publication
23
23
  # Trigger an asynchronous task to publish file content.
24
- # @param data [FilePublication]
24
+ # @param data [FileFilePublication]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
27
27
  def create(data, opts = {})
@@ -31,7 +31,7 @@ module PulpFileClient
31
31
 
32
32
  # Create a file publication
33
33
  # Trigger an asynchronous task to publish file content.
34
- # @param data [FilePublication]
34
+ # @param data [FileFilePublication]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
@@ -84,7 +84,7 @@ module PulpFileClient
84
84
  end
85
85
 
86
86
  # Delete a file publication
87
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
87
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
88
88
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
@@ -94,7 +94,7 @@ module PulpFileClient
94
94
  end
95
95
 
96
96
  # Delete a file publication
97
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
97
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
98
98
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -144,28 +144,28 @@ module PulpFileClient
144
144
  end
145
145
 
146
146
  # List file publications
147
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
147
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [String] :ordering Which field to use when ordering the results.
150
150
  # @option opts [Integer] :limit Number of results to return per page.
151
151
  # @option opts [Integer] :offset The initial index from which to return the results.
152
152
  # @option opts [String] :fields A list of fields to include in the response.
153
153
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
154
- # @return [InlineResponse2002]
154
+ # @return [InlineResponse2003]
155
155
  def list(opts = {})
156
156
  data, _status_code, _headers = list_with_http_info(opts)
157
157
  data
158
158
  end
159
159
 
160
160
  # List file publications
161
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
161
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
162
162
  # @param [Hash] opts the optional parameters
163
163
  # @option opts [String] :ordering Which field to use when ordering the results.
164
164
  # @option opts [Integer] :limit Number of results to return per page.
165
165
  # @option opts [Integer] :offset The initial index from which to return the results.
166
166
  # @option opts [String] :fields A list of fields to include in the response.
167
167
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
168
- # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
168
+ # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
169
169
  def list_with_http_info(opts = {})
170
170
  if @api_client.config.debugging
171
171
  @api_client.config.logger.debug 'Calling API: PublicationsFileApi.list ...'
@@ -193,7 +193,7 @@ module PulpFileClient
193
193
  post_body = opts[:body]
194
194
 
195
195
  # return_type
196
- return_type = opts[:return_type] || 'InlineResponse2002'
196
+ return_type = opts[:return_type] || 'InlineResponse2003'
197
197
 
198
198
  # auth_names
199
199
  auth_names = opts[:auth_names] || ['Basic']
@@ -215,24 +215,24 @@ module PulpFileClient
215
215
  end
216
216
 
217
217
  # Inspect a file publication
218
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
218
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
219
219
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
220
220
  # @param [Hash] opts the optional parameters
221
221
  # @option opts [String] :fields A list of fields to include in the response.
222
222
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
- # @return [FilePublication]
223
+ # @return [FileFilePublication]
224
224
  def read(file_publication_href, opts = {})
225
225
  data, _status_code, _headers = read_with_http_info(file_publication_href, opts)
226
226
  data
227
227
  end
228
228
 
229
229
  # Inspect a file publication
230
- # A FilePublication contains metadata about all the File Content in a particular Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
230
+ # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
231
231
  # @param file_publication_href [String] URI of File Publication. e.g.: /pulp/api/v3/publications/file/file/1/
232
232
  # @param [Hash] opts the optional parameters
233
233
  # @option opts [String] :fields A list of fields to include in the response.
234
234
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
- # @return [Array<(FilePublication, Integer, Hash)>] FilePublication data, response status code and response headers
235
+ # @return [Array<(FileFilePublication, Integer, Hash)>] FileFilePublication data, response status code and response headers
236
236
  def read_with_http_info(file_publication_href, opts = {})
237
237
  if @api_client.config.debugging
238
238
  @api_client.config.logger.debug 'Calling API: PublicationsFileApi.read ...'
@@ -261,7 +261,7 @@ module PulpFileClient
261
261
  post_body = opts[:body]
262
262
 
263
263
  # return_type
264
- return_type = opts[:return_type] || 'FilePublication'
264
+ return_type = opts[:return_type] || 'FileFilePublication'
265
265
 
266
266
  # auth_names
267
267
  auth_names = opts[:auth_names] || ['Basic']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -21,9 +21,9 @@ module PulpFileClient
21
21
  end
22
22
  # Create a file remote
23
23
  # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
24
- # @param data [FileRemote]
24
+ # @param data [FileFileRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [FileRemote]
26
+ # @return [FileFileRemote]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -31,9 +31,9 @@ module PulpFileClient
31
31
 
32
32
  # Create a file remote
33
33
  # FileRemote represents an external source of File Content. The target url of a FileRemote must contain a file manifest, which contains the metadata for all files at the source.
34
- # @param data [FileRemote]
34
+ # @param data [FileFileRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(FileRemote, Integer, Hash)>] FileRemote data, response status code and response headers
36
+ # @return [Array<(FileFileRemote, Integer, Hash)>] FileFileRemote data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesFileApi.create ...'
@@ -62,7 +62,7 @@ module PulpFileClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'FileRemote'
65
+ return_type = opts[:return_type] || 'FileFileRemote'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -160,7 +160,7 @@ module PulpFileClient
160
160
  # @option opts [Integer] :offset The initial index from which to return the results.
161
161
  # @option opts [String] :fields A list of fields to include in the response.
162
162
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
163
- # @return [InlineResponse2003]
163
+ # @return [InlineResponse2004]
164
164
  def list(opts = {})
165
165
  data, _status_code, _headers = list_with_http_info(opts)
166
166
  data
@@ -181,7 +181,7 @@ module PulpFileClient
181
181
  # @option opts [Integer] :offset The initial index from which to return the results.
182
182
  # @option opts [String] :fields A list of fields to include in the response.
183
183
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
184
- # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
184
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
185
185
  def list_with_http_info(opts = {})
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: RemotesFileApi.list ...'
@@ -216,7 +216,7 @@ module PulpFileClient
216
216
  post_body = opts[:body]
217
217
 
218
218
  # return_type
219
- return_type = opts[:return_type] || 'InlineResponse2003'
219
+ return_type = opts[:return_type] || 'InlineResponse2004'
220
220
 
221
221
  # auth_names
222
222
  auth_names = opts[:auth_names] || ['Basic']
@@ -240,7 +240,7 @@ module PulpFileClient
240
240
  # Partially update a file remote
241
241
  # Trigger an asynchronous partial update task
242
242
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
243
- # @param data [FileRemote]
243
+ # @param data [FileFileRemote]
244
244
  # @param [Hash] opts the optional parameters
245
245
  # @return [AsyncOperationResponse]
246
246
  def partial_update(file_remote_href, data, opts = {})
@@ -251,7 +251,7 @@ module PulpFileClient
251
251
  # Partially update a file remote
252
252
  # Trigger an asynchronous partial update task
253
253
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
254
- # @param data [FileRemote]
254
+ # @param data [FileFileRemote]
255
255
  # @param [Hash] opts the optional parameters
256
256
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
257
257
  def partial_update_with_http_info(file_remote_href, data, opts = {})
@@ -313,7 +313,7 @@ module PulpFileClient
313
313
  # @param [Hash] opts the optional parameters
314
314
  # @option opts [String] :fields A list of fields to include in the response.
315
315
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
316
- # @return [FileRemote]
316
+ # @return [FileFileRemote]
317
317
  def read(file_remote_href, opts = {})
318
318
  data, _status_code, _headers = read_with_http_info(file_remote_href, opts)
319
319
  data
@@ -325,7 +325,7 @@ module PulpFileClient
325
325
  # @param [Hash] opts the optional parameters
326
326
  # @option opts [String] :fields A list of fields to include in the response.
327
327
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
328
- # @return [Array<(FileRemote, Integer, Hash)>] FileRemote data, response status code and response headers
328
+ # @return [Array<(FileFileRemote, Integer, Hash)>] FileFileRemote data, response status code and response headers
329
329
  def read_with_http_info(file_remote_href, opts = {})
330
330
  if @api_client.config.debugging
331
331
  @api_client.config.logger.debug 'Calling API: RemotesFileApi.read ...'
@@ -354,7 +354,7 @@ module PulpFileClient
354
354
  post_body = opts[:body]
355
355
 
356
356
  # return_type
357
- return_type = opts[:return_type] || 'FileRemote'
357
+ return_type = opts[:return_type] || 'FileFileRemote'
358
358
 
359
359
  # auth_names
360
360
  auth_names = opts[:auth_names] || ['Basic']
@@ -375,78 +375,10 @@ module PulpFileClient
375
375
  return data, status_code, headers
376
376
  end
377
377
 
378
- # Trigger an asynchronous task to sync file content.
379
- # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
380
- # @param data [RepositorySyncURL]
381
- # @param [Hash] opts the optional parameters
382
- # @return [AsyncOperationResponse]
383
- def sync(file_remote_href, data, opts = {})
384
- data, _status_code, _headers = sync_with_http_info(file_remote_href, data, opts)
385
- data
386
- end
387
-
388
- # Trigger an asynchronous task to sync file content.
389
- # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
390
- # @param data [RepositorySyncURL]
391
- # @param [Hash] opts the optional parameters
392
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
393
- def sync_with_http_info(file_remote_href, data, opts = {})
394
- if @api_client.config.debugging
395
- @api_client.config.logger.debug 'Calling API: RemotesFileApi.sync ...'
396
- end
397
- # verify the required parameter 'file_remote_href' is set
398
- if @api_client.config.client_side_validation && file_remote_href.nil?
399
- fail ArgumentError, "Missing the required parameter 'file_remote_href' when calling RemotesFileApi.sync"
400
- end
401
- # verify the required parameter 'data' is set
402
- if @api_client.config.client_side_validation && data.nil?
403
- fail ArgumentError, "Missing the required parameter 'data' when calling RemotesFileApi.sync"
404
- end
405
- # resource path
406
- local_var_path = '{file_remote_href}sync/'.sub('{' + 'file_remote_href' + '}', CGI.escape(file_remote_href.to_s).gsub('%2F', '/'))
407
-
408
- # query parameters
409
- query_params = opts[:query_params] || {}
410
-
411
- # header parameters
412
- header_params = opts[:header_params] || {}
413
- # HTTP header 'Accept' (if needed)
414
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
415
- # HTTP header 'Content-Type'
416
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
417
-
418
- # form parameters
419
- form_params = opts[:form_params] || {}
420
-
421
- # http body (model)
422
- post_body = opts[:body] || @api_client.object_to_http_body(data)
423
-
424
- # return_type
425
- return_type = opts[:return_type] || 'AsyncOperationResponse'
426
-
427
- # auth_names
428
- auth_names = opts[:auth_names] || ['Basic']
429
-
430
- new_options = opts.merge(
431
- :header_params => header_params,
432
- :query_params => query_params,
433
- :form_params => form_params,
434
- :body => post_body,
435
- :auth_names => auth_names,
436
- :return_type => return_type
437
- )
438
-
439
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
440
- if @api_client.config.debugging
441
- @api_client.config.logger.debug "API called: RemotesFileApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
- end
443
- return data, status_code, headers
444
- end
445
-
446
378
  # Update a file remote
447
379
  # Trigger an asynchronous update task
448
380
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
449
- # @param data [FileRemote]
381
+ # @param data [FileFileRemote]
450
382
  # @param [Hash] opts the optional parameters
451
383
  # @return [AsyncOperationResponse]
452
384
  def update(file_remote_href, data, opts = {})
@@ -457,7 +389,7 @@ module PulpFileClient
457
389
  # Update a file remote
458
390
  # Trigger an asynchronous update task
459
391
  # @param file_remote_href [String] URI of File Remote. e.g.: /pulp/api/v3/remotes/file/file/1/
460
- # @param data [FileRemote]
392
+ # @param data [FileFileRemote]
461
393
  # @param [Hash] opts the optional parameters
462
394
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
463
395
  def update_with_http_info(file_remote_href, data, opts = {})