pulp_rpm_client 3.0.0b3.dev.1560786621 → 3.0.0b4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +32 -32
- data/docs/ContentAdvisoriesApi.md +196 -0
- data/docs/ContentPackagesApi.md +208 -0
- data/docs/{DistributionsApi.md → DistributionsRpmApi.md} +37 -37
- data/docs/Package.md +2 -2
- data/docs/{PublicationsApi.md → PublicationsRpmApi.md} +25 -25
- data/docs/{RemotesApi.md → RemotesRpmApi.md} +43 -43
- data/docs/{RpmApi.md → RpmCopyApi.md} +4 -62
- data/docs/RpmRemote.md +3 -5
- data/docs/RpmUploadApi.md +66 -0
- data/lib/pulp_rpm_client.rb +7 -5
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +243 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +261 -0
- data/lib/pulp_rpm_client/api/{distributions_api.rb → distributions_rpm_api.rb} +38 -38
- data/lib/pulp_rpm_client/api/{publications_api.rb → publications_rpm_api.rb} +24 -24
- data/lib/pulp_rpm_client/api/{remotes_api.rb → remotes_rpm_api.rb} +45 -45
- data/lib/pulp_rpm_client/api/{rpm_api.rb → rpm_copy_api.rb} +4 -72
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +90 -0
- data/lib/pulp_rpm_client/models/package.rb +10 -10
- data/lib/pulp_rpm_client/models/rpm_remote.rb +4 -14
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +83 -0
- data/spec/api/{content_api_spec.rb → content_packages_api_spec.rb} +12 -60
- data/spec/api/{distributions_api_spec.rb → distributions_rpm_api_spec.rb} +18 -18
- data/spec/api/{publications_api_spec.rb → publications_rpm_api_spec.rb} +14 -14
- data/spec/api/{remotes_api_spec.rb → remotes_rpm_api_spec.rb} +20 -20
- data/spec/api/{rpm_api_spec.rb → rpm_copy_api_spec.rb} +6 -19
- data/spec/api/rpm_upload_api_spec.rb +48 -0
- data/spec/models/package_spec.rb +2 -2
- data/spec/models/rpm_remote_spec.rb +0 -6
- metadata +30 -22
- data/docs/ContentApi.md +0 -396
- data/lib/pulp_rpm_client/api/content_api.rb +0 -482
@@ -1,482 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'uri'
|
14
|
-
|
15
|
-
module PulpRpmClient
|
16
|
-
class ContentApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create an update record
|
23
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
24
|
-
# @param data [UpdateRecord]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [UpdateRecord]
|
27
|
-
def content_rpm_advisories_create(data, opts = {})
|
28
|
-
data, _status_code, _headers = content_rpm_advisories_create_with_http_info(data, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create an update record
|
33
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
34
|
-
# @param data [UpdateRecord]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(UpdateRecord, Integer, Hash)>] UpdateRecord data, response status code and response headers
|
37
|
-
def content_rpm_advisories_create_with_http_info(data, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_advisories_create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'data' is set
|
42
|
-
if @api_client.config.client_side_validation && data.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling ContentApi.content_rpm_advisories_create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/content/rpm/advisories/'
|
47
|
-
|
48
|
-
# query parameters
|
49
|
-
query_params = opts[:query_params] || {}
|
50
|
-
|
51
|
-
# header parameters
|
52
|
-
header_params = opts[:header_params] || {}
|
53
|
-
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
-
|
58
|
-
# form parameters
|
59
|
-
form_params = opts[:form_params] || {}
|
60
|
-
|
61
|
-
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
|
-
|
64
|
-
# return_type
|
65
|
-
return_type = opts[:return_type] || 'UpdateRecord'
|
66
|
-
|
67
|
-
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['Basic']
|
69
|
-
|
70
|
-
new_options = opts.merge(
|
71
|
-
:header_params => header_params,
|
72
|
-
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
|
-
:body => post_body,
|
75
|
-
:auth_names => auth_names,
|
76
|
-
:return_type => return_type
|
77
|
-
)
|
78
|
-
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
-
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_advisories_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
|
86
|
-
# List update records
|
87
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [String] :id Filter results where id matches value
|
90
|
-
# @option opts [String] :id__in Filter results where id is in a comma-separated list of values
|
91
|
-
# @option opts [String] :status Filter results where status matches value
|
92
|
-
# @option opts [String] :status__in Filter results where status is in a comma-separated list of values
|
93
|
-
# @option opts [String] :severity Filter results where severity matches value
|
94
|
-
# @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
|
95
|
-
# @option opts [String] :type Filter results where type matches value
|
96
|
-
# @option opts [String] :type__in Filter results where type is in a comma-separated list of values
|
97
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
100
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
101
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
102
|
-
# @return [InlineResponse200]
|
103
|
-
def content_rpm_advisories_list(opts = {})
|
104
|
-
data, _status_code, _headers = content_rpm_advisories_list_with_http_info(opts)
|
105
|
-
data
|
106
|
-
end
|
107
|
-
|
108
|
-
# List update records
|
109
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
110
|
-
# @param [Hash] opts the optional parameters
|
111
|
-
# @option opts [String] :id Filter results where id matches value
|
112
|
-
# @option opts [String] :id__in Filter results where id is in a comma-separated list of values
|
113
|
-
# @option opts [String] :status Filter results where status matches value
|
114
|
-
# @option opts [String] :status__in Filter results where status is in a comma-separated list of values
|
115
|
-
# @option opts [String] :severity Filter results where severity matches value
|
116
|
-
# @option opts [String] :severity__in Filter results where severity is in a comma-separated list of values
|
117
|
-
# @option opts [String] :type Filter results where type matches value
|
118
|
-
# @option opts [String] :type__in Filter results where type is in a comma-separated list of values
|
119
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
120
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
121
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
122
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
123
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
124
|
-
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
125
|
-
def content_rpm_advisories_list_with_http_info(opts = {})
|
126
|
-
if @api_client.config.debugging
|
127
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_advisories_list ...'
|
128
|
-
end
|
129
|
-
# resource path
|
130
|
-
local_var_path = '/pulp/api/v3/content/rpm/advisories/'
|
131
|
-
|
132
|
-
# query parameters
|
133
|
-
query_params = opts[:query_params] || {}
|
134
|
-
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
135
|
-
query_params[:'id__in'] = opts[:'id__in'] if !opts[:'id__in'].nil?
|
136
|
-
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
137
|
-
query_params[:'status__in'] = opts[:'status__in'] if !opts[:'status__in'].nil?
|
138
|
-
query_params[:'severity'] = opts[:'severity'] if !opts[:'severity'].nil?
|
139
|
-
query_params[:'severity__in'] = opts[:'severity__in'] if !opts[:'severity__in'].nil?
|
140
|
-
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
141
|
-
query_params[:'type__in'] = opts[:'type__in'] if !opts[:'type__in'].nil?
|
142
|
-
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
143
|
-
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
144
|
-
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
145
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
146
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
147
|
-
|
148
|
-
# header parameters
|
149
|
-
header_params = opts[:header_params] || {}
|
150
|
-
# HTTP header 'Accept' (if needed)
|
151
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
152
|
-
|
153
|
-
# form parameters
|
154
|
-
form_params = opts[:form_params] || {}
|
155
|
-
|
156
|
-
# http body (model)
|
157
|
-
post_body = opts[:body]
|
158
|
-
|
159
|
-
# return_type
|
160
|
-
return_type = opts[:return_type] || 'InlineResponse200'
|
161
|
-
|
162
|
-
# auth_names
|
163
|
-
auth_names = opts[:auth_names] || ['Basic']
|
164
|
-
|
165
|
-
new_options = opts.merge(
|
166
|
-
:header_params => header_params,
|
167
|
-
:query_params => query_params,
|
168
|
-
:form_params => form_params,
|
169
|
-
:body => post_body,
|
170
|
-
:auth_names => auth_names,
|
171
|
-
:return_type => return_type
|
172
|
-
)
|
173
|
-
|
174
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
175
|
-
if @api_client.config.debugging
|
176
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_advisories_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
-
end
|
178
|
-
return data, status_code, headers
|
179
|
-
end
|
180
|
-
|
181
|
-
# Inspect an update record
|
182
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
183
|
-
# @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [UpdateRecord]
|
186
|
-
def content_rpm_advisories_read(update_record_href, opts = {})
|
187
|
-
data, _status_code, _headers = content_rpm_advisories_read_with_http_info(update_record_href, opts)
|
188
|
-
data
|
189
|
-
end
|
190
|
-
|
191
|
-
# Inspect an update record
|
192
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
193
|
-
# @param update_record_href [String] URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
|
194
|
-
# @param [Hash] opts the optional parameters
|
195
|
-
# @return [Array<(UpdateRecord, Integer, Hash)>] UpdateRecord data, response status code and response headers
|
196
|
-
def content_rpm_advisories_read_with_http_info(update_record_href, opts = {})
|
197
|
-
if @api_client.config.debugging
|
198
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_advisories_read ...'
|
199
|
-
end
|
200
|
-
# verify the required parameter 'update_record_href' is set
|
201
|
-
if @api_client.config.client_side_validation && update_record_href.nil?
|
202
|
-
fail ArgumentError, "Missing the required parameter 'update_record_href' when calling ContentApi.content_rpm_advisories_read"
|
203
|
-
end
|
204
|
-
# resource path
|
205
|
-
local_var_path = '{update_record_href}'.sub('{' + 'update_record_href' + '}', update_record_href.to_s)
|
206
|
-
|
207
|
-
# query parameters
|
208
|
-
query_params = opts[:query_params] || {}
|
209
|
-
|
210
|
-
# header parameters
|
211
|
-
header_params = opts[:header_params] || {}
|
212
|
-
# HTTP header 'Accept' (if needed)
|
213
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
214
|
-
|
215
|
-
# form parameters
|
216
|
-
form_params = opts[:form_params] || {}
|
217
|
-
|
218
|
-
# http body (model)
|
219
|
-
post_body = opts[:body]
|
220
|
-
|
221
|
-
# return_type
|
222
|
-
return_type = opts[:return_type] || 'UpdateRecord'
|
223
|
-
|
224
|
-
# auth_names
|
225
|
-
auth_names = opts[:auth_names] || ['Basic']
|
226
|
-
|
227
|
-
new_options = opts.merge(
|
228
|
-
:header_params => header_params,
|
229
|
-
:query_params => query_params,
|
230
|
-
:form_params => form_params,
|
231
|
-
:body => post_body,
|
232
|
-
:auth_names => auth_names,
|
233
|
-
:return_type => return_type
|
234
|
-
)
|
235
|
-
|
236
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
237
|
-
if @api_client.config.debugging
|
238
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_advisories_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
239
|
-
end
|
240
|
-
return data, status_code, headers
|
241
|
-
end
|
242
|
-
|
243
|
-
# Create a package
|
244
|
-
# Create a new Package from a request.
|
245
|
-
# @param data [Package]
|
246
|
-
# @param [Hash] opts the optional parameters
|
247
|
-
# @return [Package]
|
248
|
-
def content_rpm_packages_create(data, opts = {})
|
249
|
-
data, _status_code, _headers = content_rpm_packages_create_with_http_info(data, opts)
|
250
|
-
data
|
251
|
-
end
|
252
|
-
|
253
|
-
# Create a package
|
254
|
-
# Create a new Package from a request.
|
255
|
-
# @param data [Package]
|
256
|
-
# @param [Hash] opts the optional parameters
|
257
|
-
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
258
|
-
def content_rpm_packages_create_with_http_info(data, opts = {})
|
259
|
-
if @api_client.config.debugging
|
260
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_packages_create ...'
|
261
|
-
end
|
262
|
-
# verify the required parameter 'data' is set
|
263
|
-
if @api_client.config.client_side_validation && data.nil?
|
264
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling ContentApi.content_rpm_packages_create"
|
265
|
-
end
|
266
|
-
# resource path
|
267
|
-
local_var_path = '/pulp/api/v3/content/rpm/packages/'
|
268
|
-
|
269
|
-
# query parameters
|
270
|
-
query_params = opts[:query_params] || {}
|
271
|
-
|
272
|
-
# header parameters
|
273
|
-
header_params = opts[:header_params] || {}
|
274
|
-
# HTTP header 'Accept' (if needed)
|
275
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
|
-
# HTTP header 'Content-Type'
|
277
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
278
|
-
|
279
|
-
# form parameters
|
280
|
-
form_params = opts[:form_params] || {}
|
281
|
-
|
282
|
-
# http body (model)
|
283
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
284
|
-
|
285
|
-
# return_type
|
286
|
-
return_type = opts[:return_type] || 'Package'
|
287
|
-
|
288
|
-
# auth_names
|
289
|
-
auth_names = opts[:auth_names] || ['Basic']
|
290
|
-
|
291
|
-
new_options = opts.merge(
|
292
|
-
:header_params => header_params,
|
293
|
-
:query_params => query_params,
|
294
|
-
:form_params => form_params,
|
295
|
-
:body => post_body,
|
296
|
-
:auth_names => auth_names,
|
297
|
-
:return_type => return_type
|
298
|
-
)
|
299
|
-
|
300
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
301
|
-
if @api_client.config.debugging
|
302
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_packages_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
303
|
-
end
|
304
|
-
return data, status_code, headers
|
305
|
-
end
|
306
|
-
|
307
|
-
# List packages
|
308
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
309
|
-
# @param [Hash] opts the optional parameters
|
310
|
-
# @option opts [String] :name Filter results where name matches value
|
311
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
312
|
-
# @option opts [String] :epoch Filter results where epoch matches value
|
313
|
-
# @option opts [String] :epoch__in Filter results where epoch is in a comma-separated list of values
|
314
|
-
# @option opts [String] :version Filter results where version matches value
|
315
|
-
# @option opts [String] :version__in Filter results where version is in a comma-separated list of values
|
316
|
-
# @option opts [String] :release Filter results where release matches value
|
317
|
-
# @option opts [String] :release__in Filter results where release is in a comma-separated list of values
|
318
|
-
# @option opts [String] :arch Filter results where arch matches value
|
319
|
-
# @option opts [String] :arch__in Filter results where arch is in a comma-separated list of values
|
320
|
-
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
321
|
-
# @option opts [String] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
322
|
-
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
323
|
-
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
324
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
325
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
326
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
327
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
328
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
329
|
-
# @return [InlineResponse2001]
|
330
|
-
def content_rpm_packages_list(opts = {})
|
331
|
-
data, _status_code, _headers = content_rpm_packages_list_with_http_info(opts)
|
332
|
-
data
|
333
|
-
end
|
334
|
-
|
335
|
-
# List packages
|
336
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
337
|
-
# @param [Hash] opts the optional parameters
|
338
|
-
# @option opts [String] :name Filter results where name matches value
|
339
|
-
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
340
|
-
# @option opts [String] :epoch Filter results where epoch matches value
|
341
|
-
# @option opts [String] :epoch__in Filter results where epoch is in a comma-separated list of values
|
342
|
-
# @option opts [String] :version Filter results where version matches value
|
343
|
-
# @option opts [String] :version__in Filter results where version is in a comma-separated list of values
|
344
|
-
# @option opts [String] :release Filter results where release matches value
|
345
|
-
# @option opts [String] :release__in Filter results where release is in a comma-separated list of values
|
346
|
-
# @option opts [String] :arch Filter results where arch matches value
|
347
|
-
# @option opts [String] :arch__in Filter results where arch is in a comma-separated list of values
|
348
|
-
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
349
|
-
# @option opts [String] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
350
|
-
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
351
|
-
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
352
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
353
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
354
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
355
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
356
|
-
# @option opts [Integer] :page_size Number of results to return per page.
|
357
|
-
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
358
|
-
def content_rpm_packages_list_with_http_info(opts = {})
|
359
|
-
if @api_client.config.debugging
|
360
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_packages_list ...'
|
361
|
-
end
|
362
|
-
# resource path
|
363
|
-
local_var_path = '/pulp/api/v3/content/rpm/packages/'
|
364
|
-
|
365
|
-
# query parameters
|
366
|
-
query_params = opts[:query_params] || {}
|
367
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
368
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
369
|
-
query_params[:'epoch'] = opts[:'epoch'] if !opts[:'epoch'].nil?
|
370
|
-
query_params[:'epoch__in'] = opts[:'epoch__in'] if !opts[:'epoch__in'].nil?
|
371
|
-
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
372
|
-
query_params[:'version__in'] = opts[:'version__in'] if !opts[:'version__in'].nil?
|
373
|
-
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
374
|
-
query_params[:'release__in'] = opts[:'release__in'] if !opts[:'release__in'].nil?
|
375
|
-
query_params[:'arch'] = opts[:'arch'] if !opts[:'arch'].nil?
|
376
|
-
query_params[:'arch__in'] = opts[:'arch__in'] if !opts[:'arch__in'].nil?
|
377
|
-
query_params[:'pkgId'] = opts[:'pkg_id'] if !opts[:'pkg_id'].nil?
|
378
|
-
query_params[:'pkgId__in'] = opts[:'pkg_id__in'] if !opts[:'pkg_id__in'].nil?
|
379
|
-
query_params[:'checksum_type'] = opts[:'checksum_type'] if !opts[:'checksum_type'].nil?
|
380
|
-
query_params[:'checksum_type__in'] = opts[:'checksum_type__in'] if !opts[:'checksum_type__in'].nil?
|
381
|
-
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
382
|
-
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
383
|
-
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
384
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
385
|
-
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
386
|
-
|
387
|
-
# header parameters
|
388
|
-
header_params = opts[:header_params] || {}
|
389
|
-
# HTTP header 'Accept' (if needed)
|
390
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
391
|
-
|
392
|
-
# form parameters
|
393
|
-
form_params = opts[:form_params] || {}
|
394
|
-
|
395
|
-
# http body (model)
|
396
|
-
post_body = opts[:body]
|
397
|
-
|
398
|
-
# return_type
|
399
|
-
return_type = opts[:return_type] || 'InlineResponse2001'
|
400
|
-
|
401
|
-
# auth_names
|
402
|
-
auth_names = opts[:auth_names] || ['Basic']
|
403
|
-
|
404
|
-
new_options = opts.merge(
|
405
|
-
:header_params => header_params,
|
406
|
-
:query_params => query_params,
|
407
|
-
:form_params => form_params,
|
408
|
-
:body => post_body,
|
409
|
-
:auth_names => auth_names,
|
410
|
-
:return_type => return_type
|
411
|
-
)
|
412
|
-
|
413
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
414
|
-
if @api_client.config.debugging
|
415
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_packages_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
416
|
-
end
|
417
|
-
return data, status_code, headers
|
418
|
-
end
|
419
|
-
|
420
|
-
# Inspect a package
|
421
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
422
|
-
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
423
|
-
# @param [Hash] opts the optional parameters
|
424
|
-
# @return [Package]
|
425
|
-
def content_rpm_packages_read(package_href, opts = {})
|
426
|
-
data, _status_code, _headers = content_rpm_packages_read_with_http_info(package_href, opts)
|
427
|
-
data
|
428
|
-
end
|
429
|
-
|
430
|
-
# Inspect a package
|
431
|
-
# Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
|
432
|
-
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
433
|
-
# @param [Hash] opts the optional parameters
|
434
|
-
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
435
|
-
def content_rpm_packages_read_with_http_info(package_href, opts = {})
|
436
|
-
if @api_client.config.debugging
|
437
|
-
@api_client.config.logger.debug 'Calling API: ContentApi.content_rpm_packages_read ...'
|
438
|
-
end
|
439
|
-
# verify the required parameter 'package_href' is set
|
440
|
-
if @api_client.config.client_side_validation && package_href.nil?
|
441
|
-
fail ArgumentError, "Missing the required parameter 'package_href' when calling ContentApi.content_rpm_packages_read"
|
442
|
-
end
|
443
|
-
# resource path
|
444
|
-
local_var_path = '{package_href}'.sub('{' + 'package_href' + '}', package_href.to_s)
|
445
|
-
|
446
|
-
# query parameters
|
447
|
-
query_params = opts[:query_params] || {}
|
448
|
-
|
449
|
-
# header parameters
|
450
|
-
header_params = opts[:header_params] || {}
|
451
|
-
# HTTP header 'Accept' (if needed)
|
452
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
453
|
-
|
454
|
-
# form parameters
|
455
|
-
form_params = opts[:form_params] || {}
|
456
|
-
|
457
|
-
# http body (model)
|
458
|
-
post_body = opts[:body]
|
459
|
-
|
460
|
-
# return_type
|
461
|
-
return_type = opts[:return_type] || 'Package'
|
462
|
-
|
463
|
-
# auth_names
|
464
|
-
auth_names = opts[:auth_names] || ['Basic']
|
465
|
-
|
466
|
-
new_options = opts.merge(
|
467
|
-
:header_params => header_params,
|
468
|
-
:query_params => query_params,
|
469
|
-
:form_params => form_params,
|
470
|
-
:body => post_body,
|
471
|
-
:auth_names => auth_names,
|
472
|
-
:return_type => return_type
|
473
|
-
)
|
474
|
-
|
475
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
476
|
-
if @api_client.config.debugging
|
477
|
-
@api_client.config.logger.debug "API called: ContentApi#content_rpm_packages_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
-
end
|
479
|
-
return data, status_code, headers
|
480
|
-
end
|
481
|
-
end
|
482
|
-
end
|