pulp_rpm_client 3.0.0b3.dev.1560786621 → 3.0.0b4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,261 @@
|
|
|
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 ContentPackagesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a package
|
|
23
|
+
# Create a new Package from a request.
|
|
24
|
+
# @param data [Package]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [Package]
|
|
27
|
+
def create(data, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a package
|
|
33
|
+
# Create a new Package from a request.
|
|
34
|
+
# @param data [Package]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
|
37
|
+
def create_with_http_info(data, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.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 ContentPackagesApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/content/rpm/packages/'
|
|
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] || 'Package'
|
|
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: ContentPackagesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# List packages
|
|
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/packages/ Also specify queryset and serializer for Package.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :name Filter results where name matches value
|
|
90
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
91
|
+
# @option opts [String] :epoch Filter results where epoch matches value
|
|
92
|
+
# @option opts [String] :epoch__in Filter results where epoch is in a comma-separated list of values
|
|
93
|
+
# @option opts [String] :version Filter results where version matches value
|
|
94
|
+
# @option opts [String] :version__in Filter results where version is in a comma-separated list of values
|
|
95
|
+
# @option opts [String] :release Filter results where release matches value
|
|
96
|
+
# @option opts [String] :release__in Filter results where release is in a comma-separated list of values
|
|
97
|
+
# @option opts [String] :arch Filter results where arch matches value
|
|
98
|
+
# @option opts [String] :arch__in Filter results where arch is in a comma-separated list of values
|
|
99
|
+
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
|
100
|
+
# @option opts [String] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
|
101
|
+
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
|
102
|
+
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
|
103
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
104
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
105
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
106
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
107
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
108
|
+
# @return [InlineResponse2001]
|
|
109
|
+
def list(opts = {})
|
|
110
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
111
|
+
data
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# List packages
|
|
115
|
+
# 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.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [String] :name Filter results where name matches value
|
|
118
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
119
|
+
# @option opts [String] :epoch Filter results where epoch matches value
|
|
120
|
+
# @option opts [String] :epoch__in Filter results where epoch is in a comma-separated list of values
|
|
121
|
+
# @option opts [String] :version Filter results where version matches value
|
|
122
|
+
# @option opts [String] :version__in Filter results where version is in a comma-separated list of values
|
|
123
|
+
# @option opts [String] :release Filter results where release matches value
|
|
124
|
+
# @option opts [String] :release__in Filter results where release is in a comma-separated list of values
|
|
125
|
+
# @option opts [String] :arch Filter results where arch matches value
|
|
126
|
+
# @option opts [String] :arch__in Filter results where arch is in a comma-separated list of values
|
|
127
|
+
# @option opts [String] :pkg_id Filter results where pkgId matches value
|
|
128
|
+
# @option opts [String] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
|
|
129
|
+
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
|
130
|
+
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
|
131
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
132
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
133
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
134
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
135
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
136
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
137
|
+
def list_with_http_info(opts = {})
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.list ...'
|
|
140
|
+
end
|
|
141
|
+
# resource path
|
|
142
|
+
local_var_path = '/pulp/api/v3/content/rpm/packages/'
|
|
143
|
+
|
|
144
|
+
# query parameters
|
|
145
|
+
query_params = opts[:query_params] || {}
|
|
146
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
147
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
148
|
+
query_params[:'epoch'] = opts[:'epoch'] if !opts[:'epoch'].nil?
|
|
149
|
+
query_params[:'epoch__in'] = opts[:'epoch__in'] if !opts[:'epoch__in'].nil?
|
|
150
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
|
151
|
+
query_params[:'version__in'] = opts[:'version__in'] if !opts[:'version__in'].nil?
|
|
152
|
+
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
|
153
|
+
query_params[:'release__in'] = opts[:'release__in'] if !opts[:'release__in'].nil?
|
|
154
|
+
query_params[:'arch'] = opts[:'arch'] if !opts[:'arch'].nil?
|
|
155
|
+
query_params[:'arch__in'] = opts[:'arch__in'] if !opts[:'arch__in'].nil?
|
|
156
|
+
query_params[:'pkgId'] = opts[:'pkg_id'] if !opts[:'pkg_id'].nil?
|
|
157
|
+
query_params[:'pkgId__in'] = opts[:'pkg_id__in'] if !opts[:'pkg_id__in'].nil?
|
|
158
|
+
query_params[:'checksum_type'] = opts[:'checksum_type'] if !opts[:'checksum_type'].nil?
|
|
159
|
+
query_params[:'checksum_type__in'] = opts[:'checksum_type__in'] if !opts[:'checksum_type__in'].nil?
|
|
160
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
161
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
162
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
163
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
164
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
165
|
+
|
|
166
|
+
# header parameters
|
|
167
|
+
header_params = opts[:header_params] || {}
|
|
168
|
+
# HTTP header 'Accept' (if needed)
|
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
170
|
+
|
|
171
|
+
# form parameters
|
|
172
|
+
form_params = opts[:form_params] || {}
|
|
173
|
+
|
|
174
|
+
# http body (model)
|
|
175
|
+
post_body = opts[:body]
|
|
176
|
+
|
|
177
|
+
# return_type
|
|
178
|
+
return_type = opts[:return_type] || 'InlineResponse2001'
|
|
179
|
+
|
|
180
|
+
# auth_names
|
|
181
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
182
|
+
|
|
183
|
+
new_options = opts.merge(
|
|
184
|
+
:header_params => header_params,
|
|
185
|
+
:query_params => query_params,
|
|
186
|
+
:form_params => form_params,
|
|
187
|
+
:body => post_body,
|
|
188
|
+
:auth_names => auth_names,
|
|
189
|
+
:return_type => return_type
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
193
|
+
if @api_client.config.debugging
|
|
194
|
+
@api_client.config.logger.debug "API called: ContentPackagesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
195
|
+
end
|
|
196
|
+
return data, status_code, headers
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Inspect a package
|
|
200
|
+
# 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.
|
|
201
|
+
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
|
202
|
+
# @param [Hash] opts the optional parameters
|
|
203
|
+
# @return [Package]
|
|
204
|
+
def read(package_href, opts = {})
|
|
205
|
+
data, _status_code, _headers = read_with_http_info(package_href, opts)
|
|
206
|
+
data
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Inspect a package
|
|
210
|
+
# 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.
|
|
211
|
+
# @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
|
|
212
|
+
# @param [Hash] opts the optional parameters
|
|
213
|
+
# @return [Array<(Package, Integer, Hash)>] Package data, response status code and response headers
|
|
214
|
+
def read_with_http_info(package_href, opts = {})
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
|
217
|
+
end
|
|
218
|
+
# verify the required parameter 'package_href' is set
|
|
219
|
+
if @api_client.config.client_side_validation && package_href.nil?
|
|
220
|
+
fail ArgumentError, "Missing the required parameter 'package_href' when calling ContentPackagesApi.read"
|
|
221
|
+
end
|
|
222
|
+
# resource path
|
|
223
|
+
local_var_path = '{package_href}'.sub('{' + 'package_href' + '}', package_href.to_s)
|
|
224
|
+
|
|
225
|
+
# query parameters
|
|
226
|
+
query_params = opts[:query_params] || {}
|
|
227
|
+
|
|
228
|
+
# header parameters
|
|
229
|
+
header_params = opts[:header_params] || {}
|
|
230
|
+
# HTTP header 'Accept' (if needed)
|
|
231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
232
|
+
|
|
233
|
+
# form parameters
|
|
234
|
+
form_params = opts[:form_params] || {}
|
|
235
|
+
|
|
236
|
+
# http body (model)
|
|
237
|
+
post_body = opts[:body]
|
|
238
|
+
|
|
239
|
+
# return_type
|
|
240
|
+
return_type = opts[:return_type] || 'Package'
|
|
241
|
+
|
|
242
|
+
# auth_names
|
|
243
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
244
|
+
|
|
245
|
+
new_options = opts.merge(
|
|
246
|
+
:header_params => header_params,
|
|
247
|
+
:query_params => query_params,
|
|
248
|
+
:form_params => form_params,
|
|
249
|
+
:body => post_body,
|
|
250
|
+
:auth_names => auth_names,
|
|
251
|
+
:return_type => return_type
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug "API called: ContentPackagesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
257
|
+
end
|
|
258
|
+
return data, status_code, headers
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0
|
|
|
13
13
|
require 'uri'
|
|
14
14
|
|
|
15
15
|
module PulpRpmClient
|
|
16
|
-
class
|
|
16
|
+
class DistributionsRpmApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
@@ -24,8 +24,8 @@ module PulpRpmClient
|
|
|
24
24
|
# @param data [RpmDistribution]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [AsyncOperationResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def create(data, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,13 +34,13 @@ module PulpRpmClient
|
|
|
34
34
|
# @param data [RpmDistribution]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
37
|
-
def
|
|
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: DistributionsRpmApi.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 DistributionsRpmApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/distributions/rpm/rpm/'
|
|
@@ -78,7 +78,7 @@ module PulpRpmClient
|
|
|
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: DistributionsRpmApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
82
|
end
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
@@ -88,8 +88,8 @@ module PulpRpmClient
|
|
|
88
88
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [AsyncOperationResponse]
|
|
91
|
-
def
|
|
92
|
-
data, _status_code, _headers =
|
|
91
|
+
def delete(rpm_distribution_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(rpm_distribution_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpRpmClient
|
|
|
98
98
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
101
|
-
def
|
|
101
|
+
def delete_with_http_info(rpm_distribution_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: DistributionsRpmApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'rpm_distribution_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && rpm_distribution_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
|
@@ -140,7 +140,7 @@ module PulpRpmClient
|
|
|
140
140
|
|
|
141
141
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
142
142
|
if @api_client.config.debugging
|
|
143
|
-
@api_client.config.logger.debug "API called:
|
|
143
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
144
|
end
|
|
145
145
|
return data, status_code, headers
|
|
146
146
|
end
|
|
@@ -157,8 +157,8 @@ module PulpRpmClient
|
|
|
157
157
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
158
158
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
159
159
|
# @return [InlineResponse2002]
|
|
160
|
-
def
|
|
161
|
-
data, _status_code, _headers =
|
|
160
|
+
def list(opts = {})
|
|
161
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
162
162
|
data
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -174,9 +174,9 @@ module PulpRpmClient
|
|
|
174
174
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
175
175
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
176
176
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
177
|
-
def
|
|
177
|
+
def list_with_http_info(opts = {})
|
|
178
178
|
if @api_client.config.debugging
|
|
179
|
-
@api_client.config.logger.debug 'Calling API:
|
|
179
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list ...'
|
|
180
180
|
end
|
|
181
181
|
# resource path
|
|
182
182
|
local_var_path = '/pulp/api/v3/distributions/rpm/rpm/'
|
|
@@ -220,7 +220,7 @@ module PulpRpmClient
|
|
|
220
220
|
|
|
221
221
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
222
222
|
if @api_client.config.debugging
|
|
223
|
-
@api_client.config.logger.debug "API called:
|
|
223
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
224
224
|
end
|
|
225
225
|
return data, status_code, headers
|
|
226
226
|
end
|
|
@@ -231,8 +231,8 @@ module PulpRpmClient
|
|
|
231
231
|
# @param data [RpmDistribution]
|
|
232
232
|
# @param [Hash] opts the optional parameters
|
|
233
233
|
# @return [AsyncOperationResponse]
|
|
234
|
-
def
|
|
235
|
-
data, _status_code, _headers =
|
|
234
|
+
def partial_update(rpm_distribution_href, data, opts = {})
|
|
235
|
+
data, _status_code, _headers = partial_update_with_http_info(rpm_distribution_href, data, opts)
|
|
236
236
|
data
|
|
237
237
|
end
|
|
238
238
|
|
|
@@ -242,17 +242,17 @@ module PulpRpmClient
|
|
|
242
242
|
# @param data [RpmDistribution]
|
|
243
243
|
# @param [Hash] opts the optional parameters
|
|
244
244
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
245
|
-
def
|
|
245
|
+
def partial_update_with_http_info(rpm_distribution_href, data, opts = {})
|
|
246
246
|
if @api_client.config.debugging
|
|
247
|
-
@api_client.config.logger.debug 'Calling API:
|
|
247
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.partial_update ...'
|
|
248
248
|
end
|
|
249
249
|
# verify the required parameter 'rpm_distribution_href' is set
|
|
250
250
|
if @api_client.config.client_side_validation && rpm_distribution_href.nil?
|
|
251
|
-
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling
|
|
251
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.partial_update"
|
|
252
252
|
end
|
|
253
253
|
# verify the required parameter 'data' is set
|
|
254
254
|
if @api_client.config.client_side_validation && data.nil?
|
|
255
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
|
255
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsRpmApi.partial_update"
|
|
256
256
|
end
|
|
257
257
|
# resource path
|
|
258
258
|
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
|
@@ -290,7 +290,7 @@ module PulpRpmClient
|
|
|
290
290
|
|
|
291
291
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
292
292
|
if @api_client.config.debugging
|
|
293
|
-
@api_client.config.logger.debug "API called:
|
|
293
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
294
294
|
end
|
|
295
295
|
return data, status_code, headers
|
|
296
296
|
end
|
|
@@ -300,8 +300,8 @@ module PulpRpmClient
|
|
|
300
300
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
301
301
|
# @param [Hash] opts the optional parameters
|
|
302
302
|
# @return [RpmDistribution]
|
|
303
|
-
def
|
|
304
|
-
data, _status_code, _headers =
|
|
303
|
+
def read(rpm_distribution_href, opts = {})
|
|
304
|
+
data, _status_code, _headers = read_with_http_info(rpm_distribution_href, opts)
|
|
305
305
|
data
|
|
306
306
|
end
|
|
307
307
|
|
|
@@ -310,13 +310,13 @@ module PulpRpmClient
|
|
|
310
310
|
# @param rpm_distribution_href [String] URI of Rpm Distribution. e.g.: /pulp/api/v3/distributions/rpm/rpm/1/
|
|
311
311
|
# @param [Hash] opts the optional parameters
|
|
312
312
|
# @return [Array<(RpmDistribution, Integer, Hash)>] RpmDistribution data, response status code and response headers
|
|
313
|
-
def
|
|
313
|
+
def read_with_http_info(rpm_distribution_href, opts = {})
|
|
314
314
|
if @api_client.config.debugging
|
|
315
|
-
@api_client.config.logger.debug 'Calling API:
|
|
315
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.read ...'
|
|
316
316
|
end
|
|
317
317
|
# verify the required parameter 'rpm_distribution_href' is set
|
|
318
318
|
if @api_client.config.client_side_validation && rpm_distribution_href.nil?
|
|
319
|
-
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling
|
|
319
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.read"
|
|
320
320
|
end
|
|
321
321
|
# resource path
|
|
322
322
|
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
|
@@ -352,7 +352,7 @@ module PulpRpmClient
|
|
|
352
352
|
|
|
353
353
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
354
354
|
if @api_client.config.debugging
|
|
355
|
-
@api_client.config.logger.debug "API called:
|
|
355
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
356
356
|
end
|
|
357
357
|
return data, status_code, headers
|
|
358
358
|
end
|
|
@@ -363,8 +363,8 @@ module PulpRpmClient
|
|
|
363
363
|
# @param data [RpmDistribution]
|
|
364
364
|
# @param [Hash] opts the optional parameters
|
|
365
365
|
# @return [AsyncOperationResponse]
|
|
366
|
-
def
|
|
367
|
-
data, _status_code, _headers =
|
|
366
|
+
def update(rpm_distribution_href, data, opts = {})
|
|
367
|
+
data, _status_code, _headers = update_with_http_info(rpm_distribution_href, data, opts)
|
|
368
368
|
data
|
|
369
369
|
end
|
|
370
370
|
|
|
@@ -374,17 +374,17 @@ module PulpRpmClient
|
|
|
374
374
|
# @param data [RpmDistribution]
|
|
375
375
|
# @param [Hash] opts the optional parameters
|
|
376
376
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
377
|
-
def
|
|
377
|
+
def update_with_http_info(rpm_distribution_href, data, opts = {})
|
|
378
378
|
if @api_client.config.debugging
|
|
379
|
-
@api_client.config.logger.debug 'Calling API:
|
|
379
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.update ...'
|
|
380
380
|
end
|
|
381
381
|
# verify the required parameter 'rpm_distribution_href' is set
|
|
382
382
|
if @api_client.config.client_side_validation && rpm_distribution_href.nil?
|
|
383
|
-
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling
|
|
383
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_href' when calling DistributionsRpmApi.update"
|
|
384
384
|
end
|
|
385
385
|
# verify the required parameter 'data' is set
|
|
386
386
|
if @api_client.config.client_side_validation && data.nil?
|
|
387
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
|
387
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsRpmApi.update"
|
|
388
388
|
end
|
|
389
389
|
# resource path
|
|
390
390
|
local_var_path = '{rpm_distribution_href}'.sub('{' + 'rpm_distribution_href' + '}', rpm_distribution_href.to_s)
|
|
@@ -422,7 +422,7 @@ module PulpRpmClient
|
|
|
422
422
|
|
|
423
423
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
424
424
|
if @api_client.config.debugging
|
|
425
|
-
@api_client.config.logger.debug "API called:
|
|
425
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
426
426
|
end
|
|
427
427
|
return data, status_code, headers
|
|
428
428
|
end
|