pulpcore_client 3.20.0 → 3.21.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 +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
@@ -1,294 +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.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module PulpcoreClient
|
16
|
-
class ExportersExportsApi
|
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
|
-
# ViewSet for viewing exports from an Exporter.
|
24
|
-
# @param exporter_href [String]
|
25
|
-
# @param export [Export]
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [ExportResponse]
|
28
|
-
def create(exporter_href, export, opts = {})
|
29
|
-
data, _status_code, _headers = create_with_http_info(exporter_href, export, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Create an export
|
34
|
-
# ViewSet for viewing exports from an Exporter.
|
35
|
-
# @param exporter_href [String]
|
36
|
-
# @param export [Export]
|
37
|
-
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(ExportResponse, Integer, Hash)>] ExportResponse data, response status code and response headers
|
39
|
-
def create_with_http_info(exporter_href, export, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: ExportersExportsApi.create ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'exporter_href' is set
|
44
|
-
if @api_client.config.client_side_validation && exporter_href.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersExportsApi.create"
|
46
|
-
end
|
47
|
-
# verify the required parameter 'export' is set
|
48
|
-
if @api_client.config.client_side_validation && export.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'export' when calling ExportersExportsApi.create"
|
50
|
-
end
|
51
|
-
# resource path
|
52
|
-
local_var_path = '{exporter_href}exports/'.sub('{' + 'exporter_href' + '}', CGI.escape(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(export)
|
69
|
-
|
70
|
-
# return_type
|
71
|
-
return_type = opts[:return_type] || 'ExportResponse'
|
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: ExportersExportsApi#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
|
-
# ViewSet for viewing exports from an Exporter.
|
94
|
-
# @param exporters_export_href [String]
|
95
|
-
# @param [Hash] opts the optional parameters
|
96
|
-
# @return [nil]
|
97
|
-
def delete(exporters_export_href, opts = {})
|
98
|
-
delete_with_http_info(exporters_export_href, opts)
|
99
|
-
nil
|
100
|
-
end
|
101
|
-
|
102
|
-
# Delete an export
|
103
|
-
# ViewSet for viewing exports from an Exporter.
|
104
|
-
# @param exporters_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(exporters_export_href, opts = {})
|
108
|
-
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug 'Calling API: ExportersExportsApi.delete ...'
|
110
|
-
end
|
111
|
-
# verify the required parameter 'exporters_export_href' is set
|
112
|
-
if @api_client.config.client_side_validation && exporters_export_href.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'exporters_export_href' when calling ExportersExportsApi.delete"
|
114
|
-
end
|
115
|
-
# resource path
|
116
|
-
local_var_path = '{exporters_export_href}'.sub('{' + 'exporters_export_href' + '}', CGI.escape(exporters_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: ExportersExportsApi#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
|
-
# ViewSet for viewing exports from an Exporter.
|
154
|
-
# @param 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] :fields A list of fields to include in the response.
|
159
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
160
|
-
# @return [PaginatedExportResponseList]
|
161
|
-
def list(exporter_href, opts = {})
|
162
|
-
data, _status_code, _headers = list_with_http_info(exporter_href, opts)
|
163
|
-
data
|
164
|
-
end
|
165
|
-
|
166
|
-
# List exports
|
167
|
-
# ViewSet for viewing exports from an Exporter.
|
168
|
-
# @param exporter_href [String]
|
169
|
-
# @param [Hash] opts the optional parameters
|
170
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
171
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
172
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
173
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
174
|
-
# @return [Array<(PaginatedExportResponseList, Integer, Hash)>] PaginatedExportResponseList data, response status code and response headers
|
175
|
-
def list_with_http_info(exporter_href, opts = {})
|
176
|
-
if @api_client.config.debugging
|
177
|
-
@api_client.config.logger.debug 'Calling API: ExportersExportsApi.list ...'
|
178
|
-
end
|
179
|
-
# verify the required parameter 'exporter_href' is set
|
180
|
-
if @api_client.config.client_side_validation && exporter_href.nil?
|
181
|
-
fail ArgumentError, "Missing the required parameter 'exporter_href' when calling ExportersExportsApi.list"
|
182
|
-
end
|
183
|
-
# resource path
|
184
|
-
local_var_path = '{exporter_href}exports/'.sub('{' + 'exporter_href' + '}', CGI.escape(exporter_href.to_s).gsub('%2F', '/'))
|
185
|
-
|
186
|
-
# query parameters
|
187
|
-
query_params = opts[:query_params] || {}
|
188
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
189
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
190
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
191
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
192
|
-
|
193
|
-
# header parameters
|
194
|
-
header_params = opts[:header_params] || {}
|
195
|
-
# HTTP header 'Accept' (if needed)
|
196
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
197
|
-
|
198
|
-
# form parameters
|
199
|
-
form_params = opts[:form_params] || {}
|
200
|
-
|
201
|
-
# http body (model)
|
202
|
-
post_body = opts[:body]
|
203
|
-
|
204
|
-
# return_type
|
205
|
-
return_type = opts[:return_type] || 'PaginatedExportResponseList'
|
206
|
-
|
207
|
-
# auth_names
|
208
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
209
|
-
|
210
|
-
new_options = opts.merge(
|
211
|
-
:header_params => header_params,
|
212
|
-
:query_params => query_params,
|
213
|
-
:form_params => form_params,
|
214
|
-
:body => post_body,
|
215
|
-
:auth_names => auth_names,
|
216
|
-
:return_type => return_type
|
217
|
-
)
|
218
|
-
|
219
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
220
|
-
if @api_client.config.debugging
|
221
|
-
@api_client.config.logger.debug "API called: ExportersExportsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
222
|
-
end
|
223
|
-
return data, status_code, headers
|
224
|
-
end
|
225
|
-
|
226
|
-
# Inspect an export
|
227
|
-
# ViewSet for viewing exports from an Exporter.
|
228
|
-
# @param exporters_export_href [String]
|
229
|
-
# @param [Hash] opts the optional parameters
|
230
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
231
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
232
|
-
# @return [ExportResponse]
|
233
|
-
def read(exporters_export_href, opts = {})
|
234
|
-
data, _status_code, _headers = read_with_http_info(exporters_export_href, opts)
|
235
|
-
data
|
236
|
-
end
|
237
|
-
|
238
|
-
# Inspect an export
|
239
|
-
# ViewSet for viewing exports from an Exporter.
|
240
|
-
# @param exporters_export_href [String]
|
241
|
-
# @param [Hash] opts the optional parameters
|
242
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
243
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
244
|
-
# @return [Array<(ExportResponse, Integer, Hash)>] ExportResponse data, response status code and response headers
|
245
|
-
def read_with_http_info(exporters_export_href, opts = {})
|
246
|
-
if @api_client.config.debugging
|
247
|
-
@api_client.config.logger.debug 'Calling API: ExportersExportsApi.read ...'
|
248
|
-
end
|
249
|
-
# verify the required parameter 'exporters_export_href' is set
|
250
|
-
if @api_client.config.client_side_validation && exporters_export_href.nil?
|
251
|
-
fail ArgumentError, "Missing the required parameter 'exporters_export_href' when calling ExportersExportsApi.read"
|
252
|
-
end
|
253
|
-
# resource path
|
254
|
-
local_var_path = '{exporters_export_href}'.sub('{' + 'exporters_export_href' + '}', CGI.escape(exporters_export_href.to_s).gsub('%2F', '/'))
|
255
|
-
|
256
|
-
# query parameters
|
257
|
-
query_params = opts[:query_params] || {}
|
258
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
259
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
260
|
-
|
261
|
-
# header parameters
|
262
|
-
header_params = opts[:header_params] || {}
|
263
|
-
# HTTP header 'Accept' (if needed)
|
264
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
|
-
|
266
|
-
# form parameters
|
267
|
-
form_params = opts[:form_params] || {}
|
268
|
-
|
269
|
-
# http body (model)
|
270
|
-
post_body = opts[:body]
|
271
|
-
|
272
|
-
# return_type
|
273
|
-
return_type = opts[:return_type] || 'ExportResponse'
|
274
|
-
|
275
|
-
# auth_names
|
276
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
277
|
-
|
278
|
-
new_options = opts.merge(
|
279
|
-
:header_params => header_params,
|
280
|
-
:query_params => query_params,
|
281
|
-
:form_params => form_params,
|
282
|
-
:body => post_body,
|
283
|
-
:auth_names => auth_names,
|
284
|
-
:return_type => return_type
|
285
|
-
)
|
286
|
-
|
287
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
288
|
-
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug "API called: ExportersExportsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
290
|
-
end
|
291
|
-
return data, status_code, headers
|
292
|
-
end
|
293
|
-
end
|
294
|
-
end
|