pulp_file_client 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -21
  3. data/docs/FileFileRepository.md +2 -0
  4. data/docs/FileFileRepositoryResponse.md +2 -0
  5. data/docs/PatchedfileFileRepository.md +2 -0
  6. data/docs/PublicationsFileApi.md +4 -0
  7. data/docs/RepositoryVersionResponse.md +2 -0
  8. data/lib/pulp_file_client/api/publications_file_api.rb +6 -0
  9. data/lib/pulp_file_client/models/file_file_repository.rb +27 -1
  10. data/lib/pulp_file_client/models/file_file_repository_response.rb +27 -1
  11. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +27 -1
  12. data/lib/pulp_file_client/models/repository_version_response.rb +10 -1
  13. data/lib/pulp_file_client/version.rb +1 -1
  14. data/lib/pulp_file_client.rb +0 -9
  15. data/spec/api/publications_file_api_spec.rb +2 -0
  16. data/spec/models/file_file_repository_response_spec.rb +6 -0
  17. data/spec/models/file_file_repository_spec.rb +6 -0
  18. data/spec/models/patchedfile_file_repository_spec.rb +6 -0
  19. data/spec/models/repository_version_response_spec.rb +6 -0
  20. metadata +21 -57
  21. data/docs/ExportResponse.md +0 -25
  22. data/docs/ExportersFileExportsApi.md +0 -243
  23. data/docs/ExportersFilesystemApi.md +0 -362
  24. data/docs/FileFileFilesystemExporter.md +0 -19
  25. data/docs/FileFileFilesystemExporterResponse.md +0 -23
  26. data/docs/PaginatedExportResponseList.md +0 -23
  27. data/docs/PaginatedfileFileFilesystemExporterResponseList.md +0 -23
  28. data/docs/PatchedfileFileFilesystemExporter.md +0 -19
  29. data/docs/PublicationExport.md +0 -17
  30. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +0 -297
  31. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +0 -442
  32. data/lib/pulp_file_client/models/export_response.rb +0 -250
  33. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +0 -228
  34. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +0 -247
  35. data/lib/pulp_file_client/models/paginated_export_response_list.rb +0 -237
  36. data/lib/pulp_file_client/models/paginatedfile_file_filesystem_exporter_response_list.rb +0 -237
  37. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +0 -218
  38. data/lib/pulp_file_client/models/publication_export.rb +0 -213
  39. data/spec/api/exporters_file_exports_api_spec.rb +0 -91
  40. data/spec/api/exporters_filesystem_api_spec.rb +0 -120
  41. data/spec/models/export_response_spec.rb +0 -65
  42. data/spec/models/file_file_filesystem_exporter_response_spec.rb +0 -59
  43. data/spec/models/file_file_filesystem_exporter_spec.rb +0 -47
  44. data/spec/models/paginated_export_response_list_spec.rb +0 -59
  45. data/spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb +0 -59
  46. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +0 -47
  47. data/spec/models/publication_export_spec.rb +0 -41
@@ -1,297 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module PulpFileClient
16
- class ExportersFileExportsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Create an export
23
- # Trigger an asynchronous task to export a file publication.
24
- # @param file_file_filesystem_exporter_href [String]
25
- # @param publication_export [PublicationExport]
26
- # @param [Hash] opts the optional parameters
27
- # @return [AsyncOperationResponse]
28
- def create(file_file_filesystem_exporter_href, publication_export, opts = {})
29
- data, _status_code, _headers = create_with_http_info(file_file_filesystem_exporter_href, publication_export, opts)
30
- data
31
- end
32
-
33
- # Create an export
34
- # Trigger an asynchronous task to export a file publication.
35
- # @param file_file_filesystem_exporter_href [String]
36
- # @param publication_export [PublicationExport]
37
- # @param [Hash] opts the optional parameters
38
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
- def create_with_http_info(file_file_filesystem_exporter_href, publication_export, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.create ...'
42
- end
43
- # verify the required parameter 'file_file_filesystem_exporter_href' is set
44
- if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFileExportsApi.create"
46
- end
47
- # verify the required parameter 'publication_export' is set
48
- if @api_client.config.client_side_validation && publication_export.nil?
49
- fail ArgumentError, "Missing the required parameter 'publication_export' when calling ExportersFileExportsApi.create"
50
- end
51
- # resource path
52
- local_var_path = '{file_file_filesystem_exporter_href}exports/'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
53
-
54
- # query parameters
55
- query_params = opts[:query_params] || {}
56
-
57
- # header parameters
58
- header_params = opts[:header_params] || {}
59
- # HTTP header 'Accept' (if needed)
60
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
- # HTTP header 'Content-Type'
62
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
-
64
- # form parameters
65
- form_params = opts[:form_params] || {}
66
-
67
- # http body (model)
68
- post_body = opts[:body] || @api_client.object_to_http_body(publication_export)
69
-
70
- # return_type
71
- return_type = opts[:return_type] || 'AsyncOperationResponse'
72
-
73
- # auth_names
74
- auth_names = opts[:auth_names] || ['basicAuth']
75
-
76
- new_options = opts.merge(
77
- :header_params => header_params,
78
- :query_params => query_params,
79
- :form_params => form_params,
80
- :body => post_body,
81
- :auth_names => auth_names,
82
- :return_type => return_type
83
- )
84
-
85
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
- if @api_client.config.debugging
87
- @api_client.config.logger.debug "API called: ExportersFileExportsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
- end
89
- return data, status_code, headers
90
- end
91
-
92
- # Delete an export
93
- # FilesystemExports provide a history of previous exports.
94
- # @param file_filesystem_export_href [String]
95
- # @param [Hash] opts the optional parameters
96
- # @return [nil]
97
- def delete(file_filesystem_export_href, opts = {})
98
- delete_with_http_info(file_filesystem_export_href, opts)
99
- nil
100
- end
101
-
102
- # Delete an export
103
- # FilesystemExports provide a history of previous exports.
104
- # @param file_filesystem_export_href [String]
105
- # @param [Hash] opts the optional parameters
106
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(file_filesystem_export_href, opts = {})
108
- if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.delete ...'
110
- end
111
- # verify the required parameter 'file_filesystem_export_href' is set
112
- if @api_client.config.client_side_validation && file_filesystem_export_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'file_filesystem_export_href' when calling ExportersFileExportsApi.delete"
114
- end
115
- # resource path
116
- local_var_path = '{file_filesystem_export_href}'.sub('{' + 'file_filesystem_export_href' + '}', CGI.escape(file_filesystem_export_href.to_s).gsub('%2F', '/'))
117
-
118
- # query parameters
119
- query_params = opts[:query_params] || {}
120
-
121
- # header parameters
122
- header_params = opts[:header_params] || {}
123
-
124
- # form parameters
125
- form_params = opts[:form_params] || {}
126
-
127
- # http body (model)
128
- post_body = opts[:body]
129
-
130
- # return_type
131
- return_type = opts[:return_type]
132
-
133
- # auth_names
134
- auth_names = opts[:auth_names] || ['basicAuth']
135
-
136
- new_options = opts.merge(
137
- :header_params => header_params,
138
- :query_params => query_params,
139
- :form_params => form_params,
140
- :body => post_body,
141
- :auth_names => auth_names,
142
- :return_type => return_type
143
- )
144
-
145
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
146
- if @api_client.config.debugging
147
- @api_client.config.logger.debug "API called: ExportersFileExportsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
- end
149
- return data, status_code, headers
150
- end
151
-
152
- # List exports
153
- # FilesystemExports provide a history of previous exports.
154
- # @param file_file_filesystem_exporter_href [String]
155
- # @param [Hash] opts the optional parameters
156
- # @option opts [Integer] :limit Number of results to return per page.
157
- # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :fields A list of fields to include in the response.
160
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
- # @return [PaginatedExportResponseList]
162
- def list(file_file_filesystem_exporter_href, opts = {})
163
- data, _status_code, _headers = list_with_http_info(file_file_filesystem_exporter_href, opts)
164
- data
165
- end
166
-
167
- # List exports
168
- # FilesystemExports provide a history of previous exports.
169
- # @param file_file_filesystem_exporter_href [String]
170
- # @param [Hash] opts the optional parameters
171
- # @option opts [Integer] :limit Number of results to return per page.
172
- # @option opts [Integer] :offset The initial index from which to return the results.
173
- # @option opts [String] :ordering Which field to use when ordering the results.
174
- # @option opts [String] :fields A list of fields to include in the response.
175
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
176
- # @return [Array<(PaginatedExportResponseList, Integer, Hash)>] PaginatedExportResponseList data, response status code and response headers
177
- def list_with_http_info(file_file_filesystem_exporter_href, opts = {})
178
- if @api_client.config.debugging
179
- @api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.list ...'
180
- end
181
- # verify the required parameter 'file_file_filesystem_exporter_href' is set
182
- if @api_client.config.client_side_validation && file_file_filesystem_exporter_href.nil?
183
- fail ArgumentError, "Missing the required parameter 'file_file_filesystem_exporter_href' when calling ExportersFileExportsApi.list"
184
- end
185
- # resource path
186
- local_var_path = '{file_file_filesystem_exporter_href}exports/'.sub('{' + 'file_file_filesystem_exporter_href' + '}', CGI.escape(file_file_filesystem_exporter_href.to_s).gsub('%2F', '/'))
187
-
188
- # query parameters
189
- query_params = opts[:query_params] || {}
190
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
191
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
192
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
193
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
194
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
195
-
196
- # header parameters
197
- header_params = opts[:header_params] || {}
198
- # HTTP header 'Accept' (if needed)
199
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
200
-
201
- # form parameters
202
- form_params = opts[:form_params] || {}
203
-
204
- # http body (model)
205
- post_body = opts[:body]
206
-
207
- # return_type
208
- return_type = opts[:return_type] || 'PaginatedExportResponseList'
209
-
210
- # auth_names
211
- auth_names = opts[:auth_names] || ['basicAuth']
212
-
213
- new_options = opts.merge(
214
- :header_params => header_params,
215
- :query_params => query_params,
216
- :form_params => form_params,
217
- :body => post_body,
218
- :auth_names => auth_names,
219
- :return_type => return_type
220
- )
221
-
222
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
223
- if @api_client.config.debugging
224
- @api_client.config.logger.debug "API called: ExportersFileExportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
- end
226
- return data, status_code, headers
227
- end
228
-
229
- # Inspect an export
230
- # FilesystemExports provide a history of previous exports.
231
- # @param file_filesystem_export_href [String]
232
- # @param [Hash] opts the optional parameters
233
- # @option opts [String] :fields A list of fields to include in the response.
234
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
- # @return [ExportResponse]
236
- def read(file_filesystem_export_href, opts = {})
237
- data, _status_code, _headers = read_with_http_info(file_filesystem_export_href, opts)
238
- data
239
- end
240
-
241
- # Inspect an export
242
- # FilesystemExports provide a history of previous exports.
243
- # @param file_filesystem_export_href [String]
244
- # @param [Hash] opts the optional parameters
245
- # @option opts [String] :fields A list of fields to include in the response.
246
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
- # @return [Array<(ExportResponse, Integer, Hash)>] ExportResponse data, response status code and response headers
248
- def read_with_http_info(file_filesystem_export_href, opts = {})
249
- if @api_client.config.debugging
250
- @api_client.config.logger.debug 'Calling API: ExportersFileExportsApi.read ...'
251
- end
252
- # verify the required parameter 'file_filesystem_export_href' is set
253
- if @api_client.config.client_side_validation && file_filesystem_export_href.nil?
254
- fail ArgumentError, "Missing the required parameter 'file_filesystem_export_href' when calling ExportersFileExportsApi.read"
255
- end
256
- # resource path
257
- local_var_path = '{file_filesystem_export_href}'.sub('{' + 'file_filesystem_export_href' + '}', CGI.escape(file_filesystem_export_href.to_s).gsub('%2F', '/'))
258
-
259
- # query parameters
260
- query_params = opts[:query_params] || {}
261
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
262
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
263
-
264
- # header parameters
265
- header_params = opts[:header_params] || {}
266
- # HTTP header 'Accept' (if needed)
267
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
268
-
269
- # form parameters
270
- form_params = opts[:form_params] || {}
271
-
272
- # http body (model)
273
- post_body = opts[:body]
274
-
275
- # return_type
276
- return_type = opts[:return_type] || 'ExportResponse'
277
-
278
- # auth_names
279
- auth_names = opts[:auth_names] || ['basicAuth']
280
-
281
- new_options = opts.merge(
282
- :header_params => header_params,
283
- :query_params => query_params,
284
- :form_params => form_params,
285
- :body => post_body,
286
- :auth_names => auth_names,
287
- :return_type => return_type
288
- )
289
-
290
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
291
- if @api_client.config.debugging
292
- @api_client.config.logger.debug "API called: ExportersFileExportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
- end
294
- return data, status_code, headers
295
- end
296
- end
297
- end