pulp_file_client 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -11
- data/docs/ContentFilesApi.md +2 -0
- data/docs/DistributionsFileApi.md +2 -0
- data/docs/Export.md +25 -0
- data/docs/ExportersFileExportsApi.md +243 -0
- data/docs/{FileExportersFileApi.md → ExportersFilesystemApi.md} +29 -82
- data/docs/FileFileFileSystemExporter.md +3 -3
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +23 -0
- data/docs/PublicationsFileApi.md +2 -2
- data/docs/RemotesFileApi.md +4 -2
- data/docs/RepositoriesFileApi.md +4 -2
- data/docs/RepositoriesFileVersionsApi.md +57 -2
- data/lib/pulp_file_client/api/content_files_api.rb +4 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +4 -1
- data/lib/pulp_file_client/api/exporters_file_exports_api.rb +297 -0
- data/lib/pulp_file_client/api/{file_exporters_file_api.rb → exporters_filesystem_api.rb} +34 -99
- data/lib/pulp_file_client/api/publications_file_api.rb +4 -4
- data/lib/pulp_file_client/api/remotes_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_api.rb +7 -4
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +72 -4
- data/lib/pulp_file_client/api_client.rb +1 -1
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +1 -1
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/export.rb +258 -0
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_file_system_exporter.rb +39 -39
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +1 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +1 -1
- data/lib/pulp_file_client/models/inline_response200.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_file_client/models/inline_response2003.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2004.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2005.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2006.rb +2 -2
- data/lib/pulp_file_client/models/inline_response2007.rb +247 -0
- data/lib/pulp_file_client/models/publication_export.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +5 -2
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/content_files_api_spec.rb +2 -1
- data/spec/api/distributions_file_api_spec.rb +2 -1
- data/spec/api/exporters_file_exports_api_spec.rb +91 -0
- data/spec/api/{file_exporters_file_api_spec.rb → exporters_filesystem_api_spec.rb} +12 -23
- data/spec/api/publications_file_api_spec.rb +2 -2
- data/spec/api/remotes_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_api_spec.rb +3 -2
- data/spec/api/repositories_file_versions_api_spec.rb +14 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/export_spec.rb +65 -0
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_file_system_exporter_spec.rb +3 -3
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_spec.rb +1 -1
- data/spec/models/file_file_repository_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/publication_export_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +18 -6
@@ -6,14 +6,14 @@
|
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpFileClient
|
16
|
-
class
|
16
|
+
class ExportersFilesystemApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,14 +36,14 @@ module PulpFileClient
|
|
36
36
|
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'data' is set
|
42
42
|
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/
|
46
|
+
local_var_path = '/pulp/api/v3/exporters/file/filesystem/'
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -78,14 +78,14 @@ module PulpFileClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called:
|
81
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete a file file system exporter
|
87
87
|
# FileSystemExporters export content from a publication to a path on the file system.
|
88
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
88
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
91
91
|
def delete(file_file_system_exporter_href, opts = {})
|
@@ -95,16 +95,16 @@ module PulpFileClient
|
|
95
95
|
|
96
96
|
# Delete a file file system exporter
|
97
97
|
# FileSystemExporters export content from a publication to a path on the file system.
|
98
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
98
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
101
|
def delete_with_http_info(file_file_system_exporter_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API:
|
103
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'file_file_system_exporter_href' is set
|
106
106
|
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling
|
107
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling ExportersFilesystemApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
110
|
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
@@ -138,75 +138,7 @@ module PulpFileClient
|
|
138
138
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
140
|
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called:
|
142
|
-
end
|
143
|
-
return data, status_code, headers
|
144
|
-
end
|
145
|
-
|
146
|
-
# Trigger an asynchronous task to export a file publication.
|
147
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
148
|
-
# @param data [PublicationExport]
|
149
|
-
# @param [Hash] opts the optional parameters
|
150
|
-
# @return [AsyncOperationResponse]
|
151
|
-
def export(file_file_system_exporter_href, data, opts = {})
|
152
|
-
data, _status_code, _headers = export_with_http_info(file_file_system_exporter_href, data, opts)
|
153
|
-
data
|
154
|
-
end
|
155
|
-
|
156
|
-
# Trigger an asynchronous task to export a file publication.
|
157
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/file_exporters/file/file/1/
|
158
|
-
# @param data [PublicationExport]
|
159
|
-
# @param [Hash] opts the optional parameters
|
160
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
161
|
-
def export_with_http_info(file_file_system_exporter_href, data, opts = {})
|
162
|
-
if @api_client.config.debugging
|
163
|
-
@api_client.config.logger.debug 'Calling API: FileExportersFileApi.export ...'
|
164
|
-
end
|
165
|
-
# verify the required parameter 'file_file_system_exporter_href' is set
|
166
|
-
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
167
|
-
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling FileExportersFileApi.export"
|
168
|
-
end
|
169
|
-
# verify the required parameter 'data' is set
|
170
|
-
if @api_client.config.client_side_validation && data.nil?
|
171
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling FileExportersFileApi.export"
|
172
|
-
end
|
173
|
-
# resource path
|
174
|
-
local_var_path = '{file_file_system_exporter_href}export/'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
175
|
-
|
176
|
-
# query parameters
|
177
|
-
query_params = opts[:query_params] || {}
|
178
|
-
|
179
|
-
# header parameters
|
180
|
-
header_params = opts[:header_params] || {}
|
181
|
-
# HTTP header 'Accept' (if needed)
|
182
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
183
|
-
# HTTP header 'Content-Type'
|
184
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
185
|
-
|
186
|
-
# form parameters
|
187
|
-
form_params = opts[:form_params] || {}
|
188
|
-
|
189
|
-
# http body (model)
|
190
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
191
|
-
|
192
|
-
# return_type
|
193
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
194
|
-
|
195
|
-
# auth_names
|
196
|
-
auth_names = opts[:auth_names] || ['Basic']
|
197
|
-
|
198
|
-
new_options = opts.merge(
|
199
|
-
:header_params => header_params,
|
200
|
-
:query_params => query_params,
|
201
|
-
:form_params => form_params,
|
202
|
-
:body => post_body,
|
203
|
-
:auth_names => auth_names,
|
204
|
-
:return_type => return_type
|
205
|
-
)
|
206
|
-
|
207
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
208
|
-
if @api_client.config.debugging
|
209
|
-
@api_client.config.logger.debug "API called: FileExportersFileApi#export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
141
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
142
|
end
|
211
143
|
return data, status_code, headers
|
212
144
|
end
|
@@ -214,6 +146,7 @@ module PulpFileClient
|
|
214
146
|
# List file file system exporters
|
215
147
|
# FileSystemExporters export content from a publication to a path on the file system.
|
216
148
|
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
217
150
|
# @option opts [String] :name
|
218
151
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
219
152
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -229,6 +162,7 @@ module PulpFileClient
|
|
229
162
|
# List file file system exporters
|
230
163
|
# FileSystemExporters export content from a publication to a path on the file system.
|
231
164
|
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
232
166
|
# @option opts [String] :name
|
233
167
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
234
168
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -238,13 +172,14 @@ module PulpFileClient
|
|
238
172
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
239
173
|
def list_with_http_info(opts = {})
|
240
174
|
if @api_client.config.debugging
|
241
|
-
@api_client.config.logger.debug 'Calling API:
|
175
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.list ...'
|
242
176
|
end
|
243
177
|
# resource path
|
244
|
-
local_var_path = '/pulp/api/v3/
|
178
|
+
local_var_path = '/pulp/api/v3/exporters/file/filesystem/'
|
245
179
|
|
246
180
|
# query parameters
|
247
181
|
query_params = opts[:query_params] || {}
|
182
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
248
183
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
249
184
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
250
185
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -280,14 +215,14 @@ module PulpFileClient
|
|
280
215
|
|
281
216
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
282
217
|
if @api_client.config.debugging
|
283
|
-
@api_client.config.logger.debug "API called:
|
218
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
284
219
|
end
|
285
220
|
return data, status_code, headers
|
286
221
|
end
|
287
222
|
|
288
223
|
# Partially update a file file system exporter
|
289
224
|
# FileSystemExporters export content from a publication to a path on the file system.
|
290
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
225
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
291
226
|
# @param data [FileFileFileSystemExporter]
|
292
227
|
# @param [Hash] opts the optional parameters
|
293
228
|
# @return [FileFileFileSystemExporter]
|
@@ -298,21 +233,21 @@ module PulpFileClient
|
|
298
233
|
|
299
234
|
# Partially update a file file system exporter
|
300
235
|
# FileSystemExporters export content from a publication to a path on the file system.
|
301
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
236
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
302
237
|
# @param data [FileFileFileSystemExporter]
|
303
238
|
# @param [Hash] opts the optional parameters
|
304
239
|
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
305
240
|
def partial_update_with_http_info(file_file_system_exporter_href, data, opts = {})
|
306
241
|
if @api_client.config.debugging
|
307
|
-
@api_client.config.logger.debug 'Calling API:
|
242
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.partial_update ...'
|
308
243
|
end
|
309
244
|
# verify the required parameter 'file_file_system_exporter_href' is set
|
310
245
|
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
311
|
-
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling
|
246
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling ExportersFilesystemApi.partial_update"
|
312
247
|
end
|
313
248
|
# verify the required parameter 'data' is set
|
314
249
|
if @api_client.config.client_side_validation && data.nil?
|
315
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
250
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.partial_update"
|
316
251
|
end
|
317
252
|
# resource path
|
318
253
|
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
@@ -350,14 +285,14 @@ module PulpFileClient
|
|
350
285
|
|
351
286
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
352
287
|
if @api_client.config.debugging
|
353
|
-
@api_client.config.logger.debug "API called:
|
288
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
289
|
end
|
355
290
|
return data, status_code, headers
|
356
291
|
end
|
357
292
|
|
358
293
|
# Inspect a file file system exporter
|
359
294
|
# FileSystemExporters export content from a publication to a path on the file system.
|
360
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
295
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
361
296
|
# @param [Hash] opts the optional parameters
|
362
297
|
# @option opts [String] :fields A list of fields to include in the response.
|
363
298
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -369,18 +304,18 @@ module PulpFileClient
|
|
369
304
|
|
370
305
|
# Inspect a file file system exporter
|
371
306
|
# FileSystemExporters export content from a publication to a path on the file system.
|
372
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
307
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
373
308
|
# @param [Hash] opts the optional parameters
|
374
309
|
# @option opts [String] :fields A list of fields to include in the response.
|
375
310
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
376
311
|
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
377
312
|
def read_with_http_info(file_file_system_exporter_href, opts = {})
|
378
313
|
if @api_client.config.debugging
|
379
|
-
@api_client.config.logger.debug 'Calling API:
|
314
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.read ...'
|
380
315
|
end
|
381
316
|
# verify the required parameter 'file_file_system_exporter_href' is set
|
382
317
|
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
383
|
-
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling
|
318
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling ExportersFilesystemApi.read"
|
384
319
|
end
|
385
320
|
# resource path
|
386
321
|
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
@@ -418,14 +353,14 @@ module PulpFileClient
|
|
418
353
|
|
419
354
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
420
355
|
if @api_client.config.debugging
|
421
|
-
@api_client.config.logger.debug "API called:
|
356
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
422
357
|
end
|
423
358
|
return data, status_code, headers
|
424
359
|
end
|
425
360
|
|
426
361
|
# Update a file file system exporter
|
427
362
|
# FileSystemExporters export content from a publication to a path on the file system.
|
428
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
363
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
429
364
|
# @param data [FileFileFileSystemExporter]
|
430
365
|
# @param [Hash] opts the optional parameters
|
431
366
|
# @return [FileFileFileSystemExporter]
|
@@ -436,21 +371,21 @@ module PulpFileClient
|
|
436
371
|
|
437
372
|
# Update a file file system exporter
|
438
373
|
# FileSystemExporters export content from a publication to a path on the file system.
|
439
|
-
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/
|
374
|
+
# @param file_file_system_exporter_href [String] URI of File File System Exporter. e.g.: /pulp/api/v3/exporters/file/filesystem/1/
|
440
375
|
# @param data [FileFileFileSystemExporter]
|
441
376
|
# @param [Hash] opts the optional parameters
|
442
377
|
# @return [Array<(FileFileFileSystemExporter, Integer, Hash)>] FileFileFileSystemExporter data, response status code and response headers
|
443
378
|
def update_with_http_info(file_file_system_exporter_href, data, opts = {})
|
444
379
|
if @api_client.config.debugging
|
445
|
-
@api_client.config.logger.debug 'Calling API:
|
380
|
+
@api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.update ...'
|
446
381
|
end
|
447
382
|
# verify the required parameter 'file_file_system_exporter_href' is set
|
448
383
|
if @api_client.config.client_side_validation && file_file_system_exporter_href.nil?
|
449
|
-
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling
|
384
|
+
fail ArgumentError, "Missing the required parameter 'file_file_system_exporter_href' when calling ExportersFilesystemApi.update"
|
450
385
|
end
|
451
386
|
# verify the required parameter 'data' is set
|
452
387
|
if @api_client.config.client_side_validation && data.nil?
|
453
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
388
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ExportersFilesystemApi.update"
|
454
389
|
end
|
455
390
|
# resource path
|
456
391
|
local_var_path = '{file_file_system_exporter_href}'.sub('{' + 'file_file_system_exporter_href' + '}', CGI.escape(file_file_system_exporter_href.to_s).gsub('%2F', '/'))
|
@@ -488,7 +423,7 @@ module PulpFileClient
|
|
488
423
|
|
489
424
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
490
425
|
if @api_client.config.debugging
|
491
|
-
@api_client.config.logger.debug "API called:
|
426
|
+
@api_client.config.logger.debug "API called: ExportersFilesystemApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
492
427
|
end
|
493
428
|
return data, status_code, headers
|
494
429
|
end
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -158,7 +158,7 @@ module PulpFileClient
|
|
158
158
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
159
|
# @option opts [String] :fields A list of fields to include in the response.
|
160
160
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
161
|
-
# @return [
|
161
|
+
# @return [InlineResponse2004]
|
162
162
|
def list(opts = {})
|
163
163
|
data, _status_code, _headers = list_with_http_info(opts)
|
164
164
|
data
|
@@ -179,7 +179,7 @@ module PulpFileClient
|
|
179
179
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
180
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
181
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
|
-
# @return [Array<(
|
182
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
183
183
|
def list_with_http_info(opts = {})
|
184
184
|
if @api_client.config.debugging
|
185
185
|
@api_client.config.logger.debug 'Calling API: PublicationsFileApi.list ...'
|
@@ -214,7 +214,7 @@ module PulpFileClient
|
|
214
214
|
post_body = opts[:body]
|
215
215
|
|
216
216
|
# return_type
|
217
|
-
return_type = opts[:return_type] || '
|
217
|
+
return_type = opts[:return_type] || 'InlineResponse2004'
|
218
218
|
|
219
219
|
# auth_names
|
220
220
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -148,6 +148,7 @@ module PulpFileClient
|
|
148
148
|
# List file remotes
|
149
149
|
# 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.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
151
152
|
# @option opts [String] :name
|
152
153
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
154
|
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
@@ -160,7 +161,7 @@ module PulpFileClient
|
|
160
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
161
162
|
# @option opts [String] :fields A list of fields to include in the response.
|
162
163
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
|
-
# @return [
|
164
|
+
# @return [InlineResponse2005]
|
164
165
|
def list(opts = {})
|
165
166
|
data, _status_code, _headers = list_with_http_info(opts)
|
166
167
|
data
|
@@ -169,6 +170,7 @@ module PulpFileClient
|
|
169
170
|
# List file remotes
|
170
171
|
# 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.
|
171
172
|
# @param [Hash] opts the optional parameters
|
173
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
172
174
|
# @option opts [String] :name
|
173
175
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
174
176
|
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
@@ -181,7 +183,7 @@ module PulpFileClient
|
|
181
183
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
182
184
|
# @option opts [String] :fields A list of fields to include in the response.
|
183
185
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
184
|
-
# @return [Array<(
|
186
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
185
187
|
def list_with_http_info(opts = {})
|
186
188
|
if @api_client.config.debugging
|
187
189
|
@api_client.config.logger.debug 'Calling API: RemotesFileApi.list ...'
|
@@ -191,6 +193,7 @@ module PulpFileClient
|
|
191
193
|
|
192
194
|
# query parameters
|
193
195
|
query_params = opts[:query_params] || {}
|
196
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
194
197
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
195
198
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
196
199
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
@@ -216,7 +219,7 @@ module PulpFileClient
|
|
216
219
|
post_body = opts[:body]
|
217
220
|
|
218
221
|
# return_type
|
219
|
-
return_type = opts[:return_type] || '
|
222
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
220
223
|
|
221
224
|
# auth_names
|
222
225
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -148,13 +148,14 @@ module PulpFileClient
|
|
148
148
|
# List file repositorys
|
149
149
|
# FileRepository represents a single file repository, to which content can be synced, added, or removed.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
151
152
|
# @option opts [String] :name
|
152
153
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
154
|
# @option opts [Integer] :limit Number of results to return per page.
|
154
155
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
155
156
|
# @option opts [String] :fields A list of fields to include in the response.
|
156
157
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
157
|
-
# @return [
|
158
|
+
# @return [InlineResponse2006]
|
158
159
|
def list(opts = {})
|
159
160
|
data, _status_code, _headers = list_with_http_info(opts)
|
160
161
|
data
|
@@ -163,13 +164,14 @@ module PulpFileClient
|
|
163
164
|
# List file repositorys
|
164
165
|
# FileRepository represents a single file repository, to which content can be synced, added, or removed.
|
165
166
|
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
166
168
|
# @option opts [String] :name
|
167
169
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
168
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
169
171
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
170
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
171
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
172
|
-
# @return [Array<(
|
174
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
173
175
|
def list_with_http_info(opts = {})
|
174
176
|
if @api_client.config.debugging
|
175
177
|
@api_client.config.logger.debug 'Calling API: RepositoriesFileApi.list ...'
|
@@ -179,6 +181,7 @@ module PulpFileClient
|
|
179
181
|
|
180
182
|
# query parameters
|
181
183
|
query_params = opts[:query_params] || {}
|
184
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
182
185
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
183
186
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
184
187
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -198,7 +201,7 @@ module PulpFileClient
|
|
198
201
|
post_body = opts[:body]
|
199
202
|
|
200
203
|
# return_type
|
201
|
-
return_type = opts[:return_type] || '
|
204
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
202
205
|
|
203
206
|
# auth_names
|
204
207
|
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.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -103,7 +103,7 @@ module PulpFileClient
|
|
103
103
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
104
104
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
105
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
|
-
# @return [
|
106
|
+
# @return [InlineResponse2007]
|
107
107
|
def list(file_repository_href, opts = {})
|
108
108
|
data, _status_code, _headers = list_with_http_info(file_repository_href, opts)
|
109
109
|
data
|
@@ -131,7 +131,7 @@ module PulpFileClient
|
|
131
131
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
132
132
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
133
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
|
-
# @return [Array<(
|
134
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
135
135
|
def list_with_http_info(file_repository_href, opts = {})
|
136
136
|
if @api_client.config.debugging
|
137
137
|
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.list ...'
|
@@ -176,7 +176,7 @@ module PulpFileClient
|
|
176
176
|
post_body = opts[:body]
|
177
177
|
|
178
178
|
# return_type
|
179
|
-
return_type = opts[:return_type] || '
|
179
|
+
return_type = opts[:return_type] || 'InlineResponse2007'
|
180
180
|
|
181
181
|
# auth_names
|
182
182
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -264,5 +264,73 @@ module PulpFileClient
|
|
264
264
|
end
|
265
265
|
return data, status_code, headers
|
266
266
|
end
|
267
|
+
|
268
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
269
|
+
# @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
|
270
|
+
# @param data [RepositoryVersion]
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [AsyncOperationResponse]
|
273
|
+
def repair(file_repository_version_href, data, opts = {})
|
274
|
+
data, _status_code, _headers = repair_with_http_info(file_repository_version_href, data, opts)
|
275
|
+
data
|
276
|
+
end
|
277
|
+
|
278
|
+
# Trigger an asynchronous task to repair a repositroy version.
|
279
|
+
# @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
|
280
|
+
# @param data [RepositoryVersion]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
283
|
+
def repair_with_http_info(file_repository_version_href, data, opts = {})
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.repair ...'
|
286
|
+
end
|
287
|
+
# verify the required parameter 'file_repository_version_href' is set
|
288
|
+
if @api_client.config.client_side_validation && file_repository_version_href.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'file_repository_version_href' when calling RepositoriesFileVersionsApi.repair"
|
290
|
+
end
|
291
|
+
# verify the required parameter 'data' is set
|
292
|
+
if @api_client.config.client_side_validation && data.nil?
|
293
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesFileVersionsApi.repair"
|
294
|
+
end
|
295
|
+
# resource path
|
296
|
+
local_var_path = '{file_repository_version_href}repair/'.sub('{' + 'file_repository_version_href' + '}', CGI.escape(file_repository_version_href.to_s).gsub('%2F', '/'))
|
297
|
+
|
298
|
+
# query parameters
|
299
|
+
query_params = opts[:query_params] || {}
|
300
|
+
|
301
|
+
# header parameters
|
302
|
+
header_params = opts[:header_params] || {}
|
303
|
+
# HTTP header 'Accept' (if needed)
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
305
|
+
# HTTP header 'Content-Type'
|
306
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
307
|
+
|
308
|
+
# form parameters
|
309
|
+
form_params = opts[:form_params] || {}
|
310
|
+
|
311
|
+
# http body (model)
|
312
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
313
|
+
|
314
|
+
# return_type
|
315
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
316
|
+
|
317
|
+
# auth_names
|
318
|
+
auth_names = opts[:auth_names] || ['Basic']
|
319
|
+
|
320
|
+
new_options = opts.merge(
|
321
|
+
:header_params => header_params,
|
322
|
+
:query_params => query_params,
|
323
|
+
:form_params => form_params,
|
324
|
+
:body => post_body,
|
325
|
+
:auth_names => auth_names,
|
326
|
+
:return_type => return_type
|
327
|
+
)
|
328
|
+
|
329
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
330
|
+
if @api_client.config.debugging
|
331
|
+
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
|
+
end
|
333
|
+
return data, status_code, headers
|
334
|
+
end
|
267
335
|
end
|
268
336
|
end
|