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
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0
|
|
|
13
13
|
require 'uri'
|
|
14
14
|
|
|
15
15
|
module PulpRpmClient
|
|
16
|
-
class
|
|
16
|
+
class PublicationsRpmApi
|
|
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 [RpmPublication]
|
|
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 [RpmPublication]
|
|
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: PublicationsRpmApi.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 PublicationsRpmApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/publications/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: PublicationsRpmApi#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_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
90
90
|
# @return [nil]
|
|
91
|
-
def
|
|
92
|
-
|
|
91
|
+
def delete(rpm_publication_href, opts = {})
|
|
92
|
+
delete_with_http_info(rpm_publication_href, opts)
|
|
93
93
|
nil
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpRpmClient
|
|
|
98
98
|
# @param rpm_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
100
100
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
-
def
|
|
101
|
+
def delete_with_http_info(rpm_publication_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: PublicationsRpmApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'rpm_publication_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && rpm_publication_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling PublicationsRpmApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', rpm_publication_href.to_s)
|
|
@@ -138,7 +138,7 @@ module PulpRpmClient
|
|
|
138
138
|
|
|
139
139
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
140
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called:
|
|
141
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
142
|
end
|
|
143
143
|
return data, status_code, headers
|
|
144
144
|
end
|
|
@@ -150,8 +150,8 @@ module PulpRpmClient
|
|
|
150
150
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
151
151
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
152
152
|
# @return [InlineResponse2003]
|
|
153
|
-
def
|
|
154
|
-
data, _status_code, _headers =
|
|
153
|
+
def list(opts = {})
|
|
154
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
155
155
|
data
|
|
156
156
|
end
|
|
157
157
|
|
|
@@ -162,9 +162,9 @@ module PulpRpmClient
|
|
|
162
162
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
163
163
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
164
164
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
165
|
-
def
|
|
165
|
+
def list_with_http_info(opts = {})
|
|
166
166
|
if @api_client.config.debugging
|
|
167
|
-
@api_client.config.logger.debug 'Calling API:
|
|
167
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list ...'
|
|
168
168
|
end
|
|
169
169
|
# resource path
|
|
170
170
|
local_var_path = '/pulp/api/v3/publications/rpm/rpm/'
|
|
@@ -203,7 +203,7 @@ module PulpRpmClient
|
|
|
203
203
|
|
|
204
204
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
205
205
|
if @api_client.config.debugging
|
|
206
|
-
@api_client.config.logger.debug "API called:
|
|
206
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
207
207
|
end
|
|
208
208
|
return data, status_code, headers
|
|
209
209
|
end
|
|
@@ -213,8 +213,8 @@ module PulpRpmClient
|
|
|
213
213
|
# @param rpm_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
|
214
214
|
# @param [Hash] opts the optional parameters
|
|
215
215
|
# @return [RpmPublication]
|
|
216
|
-
def
|
|
217
|
-
data, _status_code, _headers =
|
|
216
|
+
def read(rpm_publication_href, opts = {})
|
|
217
|
+
data, _status_code, _headers = read_with_http_info(rpm_publication_href, opts)
|
|
218
218
|
data
|
|
219
219
|
end
|
|
220
220
|
|
|
@@ -223,13 +223,13 @@ module PulpRpmClient
|
|
|
223
223
|
# @param rpm_publication_href [String] URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
|
|
224
224
|
# @param [Hash] opts the optional parameters
|
|
225
225
|
# @return [Array<(RpmPublication, Integer, Hash)>] RpmPublication data, response status code and response headers
|
|
226
|
-
def
|
|
226
|
+
def read_with_http_info(rpm_publication_href, opts = {})
|
|
227
227
|
if @api_client.config.debugging
|
|
228
|
-
@api_client.config.logger.debug 'Calling API:
|
|
228
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.read ...'
|
|
229
229
|
end
|
|
230
230
|
# verify the required parameter 'rpm_publication_href' is set
|
|
231
231
|
if @api_client.config.client_side_validation && rpm_publication_href.nil?
|
|
232
|
-
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'rpm_publication_href' when calling PublicationsRpmApi.read"
|
|
233
233
|
end
|
|
234
234
|
# resource path
|
|
235
235
|
local_var_path = '{rpm_publication_href}'.sub('{' + 'rpm_publication_href' + '}', rpm_publication_href.to_s)
|
|
@@ -265,7 +265,7 @@ module PulpRpmClient
|
|
|
265
265
|
|
|
266
266
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
267
267
|
if @api_client.config.debugging
|
|
268
|
-
@api_client.config.logger.debug "API called:
|
|
268
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
269
|
end
|
|
270
270
|
return data, status_code, headers
|
|
271
271
|
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 RemotesRpmApi
|
|
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 [RpmRemote]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [RpmRemote]
|
|
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 [RpmRemote]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(RpmRemote, Integer, Hash)>] RpmRemote 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: RemotesRpmApi.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 RemotesRpmApi.create"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/pulp/api/v3/remotes/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: RemotesRpmApi#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_remote_href [String] URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/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_remote_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(rpm_remote_href, opts)
|
|
93
93
|
data
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -98,13 +98,13 @@ module PulpRpmClient
|
|
|
98
98
|
# @param rpm_remote_href [String] URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/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_remote_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: RemotesRpmApi.delete ...'
|
|
104
104
|
end
|
|
105
105
|
# verify the required parameter 'rpm_remote_href' is set
|
|
106
106
|
if @api_client.config.client_side_validation && rpm_remote_href.nil?
|
|
107
|
-
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling RemotesRpmApi.delete"
|
|
108
108
|
end
|
|
109
109
|
# resource path
|
|
110
110
|
local_var_path = '{rpm_remote_href}'.sub('{' + 'rpm_remote_href' + '}', rpm_remote_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: RemotesRpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
144
|
end
|
|
145
145
|
return data, status_code, headers
|
|
146
146
|
end
|
|
@@ -159,8 +159,8 @@ module PulpRpmClient
|
|
|
159
159
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
160
160
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
161
161
|
# @return [InlineResponse2004]
|
|
162
|
-
def
|
|
163
|
-
data, _status_code, _headers =
|
|
162
|
+
def list(opts = {})
|
|
163
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
164
164
|
data
|
|
165
165
|
end
|
|
166
166
|
|
|
@@ -178,9 +178,9 @@ module PulpRpmClient
|
|
|
178
178
|
# @option opts [Integer] :page A page number within the paginated result set.
|
|
179
179
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
180
180
|
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
181
|
-
def
|
|
181
|
+
def list_with_http_info(opts = {})
|
|
182
182
|
if @api_client.config.debugging
|
|
183
|
-
@api_client.config.logger.debug 'Calling API:
|
|
183
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.list ...'
|
|
184
184
|
end
|
|
185
185
|
# resource path
|
|
186
186
|
local_var_path = '/pulp/api/v3/remotes/rpm/rpm/'
|
|
@@ -226,7 +226,7 @@ module PulpRpmClient
|
|
|
226
226
|
|
|
227
227
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
228
228
|
if @api_client.config.debugging
|
|
229
|
-
@api_client.config.logger.debug "API called:
|
|
229
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
230
230
|
end
|
|
231
231
|
return data, status_code, headers
|
|
232
232
|
end
|
|
@@ -237,8 +237,8 @@ module PulpRpmClient
|
|
|
237
237
|
# @param data [RpmRemote]
|
|
238
238
|
# @param [Hash] opts the optional parameters
|
|
239
239
|
# @return [AsyncOperationResponse]
|
|
240
|
-
def
|
|
241
|
-
data, _status_code, _headers =
|
|
240
|
+
def partial_update(rpm_remote_href, data, opts = {})
|
|
241
|
+
data, _status_code, _headers = partial_update_with_http_info(rpm_remote_href, data, opts)
|
|
242
242
|
data
|
|
243
243
|
end
|
|
244
244
|
|
|
@@ -248,17 +248,17 @@ module PulpRpmClient
|
|
|
248
248
|
# @param data [RpmRemote]
|
|
249
249
|
# @param [Hash] opts the optional parameters
|
|
250
250
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
251
|
-
def
|
|
251
|
+
def partial_update_with_http_info(rpm_remote_href, data, opts = {})
|
|
252
252
|
if @api_client.config.debugging
|
|
253
|
-
@api_client.config.logger.debug 'Calling API:
|
|
253
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.partial_update ...'
|
|
254
254
|
end
|
|
255
255
|
# verify the required parameter 'rpm_remote_href' is set
|
|
256
256
|
if @api_client.config.client_side_validation && rpm_remote_href.nil?
|
|
257
|
-
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling
|
|
257
|
+
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling RemotesRpmApi.partial_update"
|
|
258
258
|
end
|
|
259
259
|
# verify the required parameter 'data' is set
|
|
260
260
|
if @api_client.config.client_side_validation && data.nil?
|
|
261
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
|
261
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesRpmApi.partial_update"
|
|
262
262
|
end
|
|
263
263
|
# resource path
|
|
264
264
|
local_var_path = '{rpm_remote_href}'.sub('{' + 'rpm_remote_href' + '}', rpm_remote_href.to_s)
|
|
@@ -296,7 +296,7 @@ module PulpRpmClient
|
|
|
296
296
|
|
|
297
297
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
298
298
|
if @api_client.config.debugging
|
|
299
|
-
@api_client.config.logger.debug "API called:
|
|
299
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
300
|
end
|
|
301
301
|
return data, status_code, headers
|
|
302
302
|
end
|
|
@@ -306,8 +306,8 @@ module PulpRpmClient
|
|
|
306
306
|
# @param rpm_remote_href [String] URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
|
307
307
|
# @param [Hash] opts the optional parameters
|
|
308
308
|
# @return [RpmRemote]
|
|
309
|
-
def
|
|
310
|
-
data, _status_code, _headers =
|
|
309
|
+
def read(rpm_remote_href, opts = {})
|
|
310
|
+
data, _status_code, _headers = read_with_http_info(rpm_remote_href, opts)
|
|
311
311
|
data
|
|
312
312
|
end
|
|
313
313
|
|
|
@@ -316,13 +316,13 @@ module PulpRpmClient
|
|
|
316
316
|
# @param rpm_remote_href [String] URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
318
|
# @return [Array<(RpmRemote, Integer, Hash)>] RpmRemote data, response status code and response headers
|
|
319
|
-
def
|
|
319
|
+
def read_with_http_info(rpm_remote_href, opts = {})
|
|
320
320
|
if @api_client.config.debugging
|
|
321
|
-
@api_client.config.logger.debug 'Calling API:
|
|
321
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.read ...'
|
|
322
322
|
end
|
|
323
323
|
# verify the required parameter 'rpm_remote_href' is set
|
|
324
324
|
if @api_client.config.client_side_validation && rpm_remote_href.nil?
|
|
325
|
-
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling
|
|
325
|
+
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling RemotesRpmApi.read"
|
|
326
326
|
end
|
|
327
327
|
# resource path
|
|
328
328
|
local_var_path = '{rpm_remote_href}'.sub('{' + 'rpm_remote_href' + '}', rpm_remote_href.to_s)
|
|
@@ -358,7 +358,7 @@ module PulpRpmClient
|
|
|
358
358
|
|
|
359
359
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
360
360
|
if @api_client.config.debugging
|
|
361
|
-
@api_client.config.logger.debug "API called:
|
|
361
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
362
362
|
end
|
|
363
363
|
return data, status_code, headers
|
|
364
364
|
end
|
|
@@ -369,8 +369,8 @@ module PulpRpmClient
|
|
|
369
369
|
# @param data [RepositorySyncURL]
|
|
370
370
|
# @param [Hash] opts the optional parameters
|
|
371
371
|
# @return [AsyncOperationResponse]
|
|
372
|
-
def
|
|
373
|
-
data, _status_code, _headers =
|
|
372
|
+
def sync(rpm_remote_href, data, opts = {})
|
|
373
|
+
data, _status_code, _headers = sync_with_http_info(rpm_remote_href, data, opts)
|
|
374
374
|
data
|
|
375
375
|
end
|
|
376
376
|
|
|
@@ -380,17 +380,17 @@ module PulpRpmClient
|
|
|
380
380
|
# @param data [RepositorySyncURL]
|
|
381
381
|
# @param [Hash] opts the optional parameters
|
|
382
382
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
383
|
-
def
|
|
383
|
+
def sync_with_http_info(rpm_remote_href, data, opts = {})
|
|
384
384
|
if @api_client.config.debugging
|
|
385
|
-
@api_client.config.logger.debug 'Calling API:
|
|
385
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.sync ...'
|
|
386
386
|
end
|
|
387
387
|
# verify the required parameter 'rpm_remote_href' is set
|
|
388
388
|
if @api_client.config.client_side_validation && rpm_remote_href.nil?
|
|
389
|
-
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling
|
|
389
|
+
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling RemotesRpmApi.sync"
|
|
390
390
|
end
|
|
391
391
|
# verify the required parameter 'data' is set
|
|
392
392
|
if @api_client.config.client_side_validation && data.nil?
|
|
393
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
|
393
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesRpmApi.sync"
|
|
394
394
|
end
|
|
395
395
|
# resource path
|
|
396
396
|
local_var_path = '{rpm_remote_href}sync/'.sub('{' + 'rpm_remote_href' + '}', rpm_remote_href.to_s)
|
|
@@ -428,7 +428,7 @@ module PulpRpmClient
|
|
|
428
428
|
|
|
429
429
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
430
430
|
if @api_client.config.debugging
|
|
431
|
-
@api_client.config.logger.debug "API called:
|
|
431
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
432
432
|
end
|
|
433
433
|
return data, status_code, headers
|
|
434
434
|
end
|
|
@@ -439,8 +439,8 @@ module PulpRpmClient
|
|
|
439
439
|
# @param data [RpmRemote]
|
|
440
440
|
# @param [Hash] opts the optional parameters
|
|
441
441
|
# @return [AsyncOperationResponse]
|
|
442
|
-
def
|
|
443
|
-
data, _status_code, _headers =
|
|
442
|
+
def update(rpm_remote_href, data, opts = {})
|
|
443
|
+
data, _status_code, _headers = update_with_http_info(rpm_remote_href, data, opts)
|
|
444
444
|
data
|
|
445
445
|
end
|
|
446
446
|
|
|
@@ -450,17 +450,17 @@ module PulpRpmClient
|
|
|
450
450
|
# @param data [RpmRemote]
|
|
451
451
|
# @param [Hash] opts the optional parameters
|
|
452
452
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
453
|
-
def
|
|
453
|
+
def update_with_http_info(rpm_remote_href, data, opts = {})
|
|
454
454
|
if @api_client.config.debugging
|
|
455
|
-
@api_client.config.logger.debug 'Calling API:
|
|
455
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.update ...'
|
|
456
456
|
end
|
|
457
457
|
# verify the required parameter 'rpm_remote_href' is set
|
|
458
458
|
if @api_client.config.client_side_validation && rpm_remote_href.nil?
|
|
459
|
-
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling
|
|
459
|
+
fail ArgumentError, "Missing the required parameter 'rpm_remote_href' when calling RemotesRpmApi.update"
|
|
460
460
|
end
|
|
461
461
|
# verify the required parameter 'data' is set
|
|
462
462
|
if @api_client.config.client_side_validation && data.nil?
|
|
463
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
|
463
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesRpmApi.update"
|
|
464
464
|
end
|
|
465
465
|
# resource path
|
|
466
466
|
local_var_path = '{rpm_remote_href}'.sub('{' + 'rpm_remote_href' + '}', rpm_remote_href.to_s)
|
|
@@ -498,7 +498,7 @@ module PulpRpmClient
|
|
|
498
498
|
|
|
499
499
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
500
500
|
if @api_client.config.debugging
|
|
501
|
-
@api_client.config.logger.debug "API called:
|
|
501
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
502
502
|
end
|
|
503
503
|
return data, status_code, headers
|
|
504
504
|
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 RpmCopyApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
@@ -42,11 +42,11 @@ module PulpRpmClient
|
|
|
42
42
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
43
43
|
def copy_content_with_http_info(dest_repo, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API:
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: RpmCopyApi.copy_content ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'dest_repo' is set
|
|
48
48
|
if @api_client.config.client_side_validation && dest_repo.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'dest_repo' when calling
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'dest_repo' when calling RpmCopyApi.copy_content"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '/rpm/copy/'
|
|
@@ -88,75 +88,7 @@ module PulpRpmClient
|
|
|
88
88
|
|
|
89
89
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
90
|
if @api_client.config.debugging
|
|
91
|
-
@api_client.config.logger.debug "API called:
|
|
92
|
-
end
|
|
93
|
-
return data, status_code, headers
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Upload a package
|
|
97
|
-
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
|
98
|
-
# @param file [File] The rpm file.
|
|
99
|
-
# @param [Hash] opts the optional parameters
|
|
100
|
-
# @option opts [String] :repository A URI of the repository.
|
|
101
|
-
# @return [AsyncOperationResponse]
|
|
102
|
-
def upload_rpm_package(file, opts = {})
|
|
103
|
-
data, _status_code, _headers = upload_rpm_package_with_http_info(file, opts)
|
|
104
|
-
data
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# Upload a package
|
|
108
|
-
# Create an artifact and trigger an asynchronoustask to create RPM content from it, optionallycreate new repository version.
|
|
109
|
-
# @param file [File] The rpm file.
|
|
110
|
-
# @param [Hash] opts the optional parameters
|
|
111
|
-
# @option opts [String] :repository A URI of the repository.
|
|
112
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
113
|
-
def upload_rpm_package_with_http_info(file, opts = {})
|
|
114
|
-
if @api_client.config.debugging
|
|
115
|
-
@api_client.config.logger.debug 'Calling API: RpmApi.upload_rpm_package ...'
|
|
116
|
-
end
|
|
117
|
-
# verify the required parameter 'file' is set
|
|
118
|
-
if @api_client.config.client_side_validation && file.nil?
|
|
119
|
-
fail ArgumentError, "Missing the required parameter 'file' when calling RpmApi.upload_rpm_package"
|
|
120
|
-
end
|
|
121
|
-
# resource path
|
|
122
|
-
local_var_path = '/rpm/upload/'
|
|
123
|
-
|
|
124
|
-
# query parameters
|
|
125
|
-
query_params = opts[:query_params] || {}
|
|
126
|
-
|
|
127
|
-
# header parameters
|
|
128
|
-
header_params = opts[:header_params] || {}
|
|
129
|
-
# HTTP header 'Accept' (if needed)
|
|
130
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
131
|
-
# HTTP header 'Content-Type'
|
|
132
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
133
|
-
|
|
134
|
-
# form parameters
|
|
135
|
-
form_params = opts[:form_params] || {}
|
|
136
|
-
form_params['file'] = file
|
|
137
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
138
|
-
|
|
139
|
-
# http body (model)
|
|
140
|
-
post_body = opts[:body]
|
|
141
|
-
|
|
142
|
-
# return_type
|
|
143
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
144
|
-
|
|
145
|
-
# auth_names
|
|
146
|
-
auth_names = opts[:auth_names] || ['Basic']
|
|
147
|
-
|
|
148
|
-
new_options = opts.merge(
|
|
149
|
-
:header_params => header_params,
|
|
150
|
-
:query_params => query_params,
|
|
151
|
-
:form_params => form_params,
|
|
152
|
-
:body => post_body,
|
|
153
|
-
:auth_names => auth_names,
|
|
154
|
-
:return_type => return_type
|
|
155
|
-
)
|
|
156
|
-
|
|
157
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
158
|
-
if @api_client.config.debugging
|
|
159
|
-
@api_client.config.logger.debug "API called: RpmApi#upload_rpm_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
|
+
@api_client.config.logger.debug "API called: RpmCopyApi#copy_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
160
92
|
end
|
|
161
93
|
return data, status_code, headers
|
|
162
94
|
end
|