pulp_maven_client 0.1.0b2 → 0.1.0b3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -22
- data/docs/{ContentApi.md → ContentArtifactApi.md} +29 -23
- data/docs/{DistributionsApi.md → DistributionsMavenApi.md} +47 -41
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/MavenRemote.md +3 -5
- data/docs/{RemotesApi.md → RemotesMavenApi.md} +47 -41
- data/git_push.sh +10 -7
- data/lib/pulp_maven_client/api/{content_api.rb → content_artifact_api.rb} +33 -27
- data/lib/pulp_maven_client/api/{distributions_api.rb → distributions_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api/{remotes_api.rb → remotes_maven_api.rb} +56 -50
- data/lib/pulp_maven_client/api_client.rb +77 -62
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +13 -21
- data/lib/pulp_maven_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_maven_client/models/inline_response200.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_maven_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_maven_client/models/maven_artifact.rb +1 -1
- data/lib/pulp_maven_client/models/maven_distribution.rb +1 -1
- data/lib/pulp_maven_client/models/maven_remote.rb +7 -17
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +4 -4
- data/pulp_maven_client.gemspec +3 -9
- data/spec/api/{content_api_spec.rb → content_artifact_api_spec.rb} +17 -15
- data/spec/api/{distributions_api_spec.rb → distributions_maven_api_spec.rb} +23 -21
- data/spec/api/{remotes_api_spec.rb → remotes_maven_api_spec.rb} +23 -21
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/maven_artifact_spec.rb +1 -1
- data/spec/models/maven_distribution_spec.rb +1 -1
- data/spec/models/maven_remote_spec.rb +2 -8
- data/spec/spec_helper.rb +1 -1
- metadata +18 -145
- data/Gemfile.lock +0 -79
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class DistributionsMavenApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -24,8 +24,8 @@ module PulpMavenClient
|
|
24
24
|
# @param data [MavenDistribution]
|
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 PulpMavenClient
|
|
34
34
|
# @param data [MavenDistribution]
|
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: DistributionsMavenApi.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 DistributionsMavenApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/distributions/maven/maven/'
|
@@ -78,7 +78,7 @@ module PulpMavenClient
|
|
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: DistributionsMavenApi#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 PulpMavenClient
|
|
88
88
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
91
|
-
def
|
92
|
-
data, _status_code, _headers =
|
91
|
+
def delete(maven_distribution_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(maven_distribution_href, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
@@ -98,16 +98,16 @@ module PulpMavenClient
|
|
98
98
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/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(maven_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: DistributionsMavenApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'maven_distribution_href' is set
|
106
106
|
if @api_client.config.client_side_validation && maven_distribution_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
|
110
|
+
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -140,7 +140,7 @@ module PulpMavenClient
|
|
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: DistributionsMavenApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
144
|
end
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
@@ -154,11 +154,12 @@ module PulpMavenClient
|
|
154
154
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
155
155
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
156
156
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
157
|
-
# @option opts [Integer] :
|
158
|
-
# @option opts [Integer] :
|
157
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
158
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
159
160
|
# @return [InlineResponse2001]
|
160
|
-
def
|
161
|
-
data, _status_code, _headers =
|
161
|
+
def list(opts = {})
|
162
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
162
163
|
data
|
163
164
|
end
|
164
165
|
|
@@ -171,12 +172,13 @@ module PulpMavenClient
|
|
171
172
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
172
173
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
173
174
|
# @option opts [String] :base_path__in Filter results where base_path is in a comma-separated list of values
|
174
|
-
# @option opts [Integer] :
|
175
|
-
# @option opts [Integer] :
|
175
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
176
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
176
178
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
177
|
-
def
|
179
|
+
def list_with_http_info(opts = {})
|
178
180
|
if @api_client.config.debugging
|
179
|
-
@api_client.config.logger.debug 'Calling API:
|
181
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
|
180
182
|
end
|
181
183
|
# resource path
|
182
184
|
local_var_path = '/pulp/api/v3/distributions/maven/maven/'
|
@@ -189,8 +191,9 @@ module PulpMavenClient
|
|
189
191
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
190
192
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
191
193
|
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
192
|
-
query_params[:'
|
193
|
-
query_params[:'
|
194
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
196
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
194
197
|
|
195
198
|
# header parameters
|
196
199
|
header_params = opts[:header_params] || {}
|
@@ -220,7 +223,7 @@ module PulpMavenClient
|
|
220
223
|
|
221
224
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
222
225
|
if @api_client.config.debugging
|
223
|
-
@api_client.config.logger.debug "API called:
|
226
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
224
227
|
end
|
225
228
|
return data, status_code, headers
|
226
229
|
end
|
@@ -231,8 +234,8 @@ module PulpMavenClient
|
|
231
234
|
# @param data [MavenDistribution]
|
232
235
|
# @param [Hash] opts the optional parameters
|
233
236
|
# @return [AsyncOperationResponse]
|
234
|
-
def
|
235
|
-
data, _status_code, _headers =
|
237
|
+
def partial_update(maven_distribution_href, data, opts = {})
|
238
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_distribution_href, data, opts)
|
236
239
|
data
|
237
240
|
end
|
238
241
|
|
@@ -242,20 +245,20 @@ module PulpMavenClient
|
|
242
245
|
# @param data [MavenDistribution]
|
243
246
|
# @param [Hash] opts the optional parameters
|
244
247
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
245
|
-
def
|
248
|
+
def partial_update_with_http_info(maven_distribution_href, data, opts = {})
|
246
249
|
if @api_client.config.debugging
|
247
|
-
@api_client.config.logger.debug 'Calling API:
|
250
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.partial_update ...'
|
248
251
|
end
|
249
252
|
# verify the required parameter 'maven_distribution_href' is set
|
250
253
|
if @api_client.config.client_side_validation && maven_distribution_href.nil?
|
251
|
-
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling
|
254
|
+
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.partial_update"
|
252
255
|
end
|
253
256
|
# verify the required parameter 'data' is set
|
254
257
|
if @api_client.config.client_side_validation && data.nil?
|
255
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
258
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsMavenApi.partial_update"
|
256
259
|
end
|
257
260
|
# resource path
|
258
|
-
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
|
261
|
+
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
|
259
262
|
|
260
263
|
# query parameters
|
261
264
|
query_params = opts[:query_params] || {}
|
@@ -290,7 +293,7 @@ module PulpMavenClient
|
|
290
293
|
|
291
294
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
292
295
|
if @api_client.config.debugging
|
293
|
-
@api_client.config.logger.debug "API called:
|
296
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
294
297
|
end
|
295
298
|
return data, status_code, headers
|
296
299
|
end
|
@@ -299,9 +302,10 @@ module PulpMavenClient
|
|
299
302
|
# ViewSet for Maven Distributions.
|
300
303
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
301
304
|
# @param [Hash] opts the optional parameters
|
305
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
302
306
|
# @return [MavenDistribution]
|
303
|
-
def
|
304
|
-
data, _status_code, _headers =
|
307
|
+
def read(maven_distribution_href, opts = {})
|
308
|
+
data, _status_code, _headers = read_with_http_info(maven_distribution_href, opts)
|
305
309
|
data
|
306
310
|
end
|
307
311
|
|
@@ -309,20 +313,22 @@ module PulpMavenClient
|
|
309
313
|
# ViewSet for Maven Distributions.
|
310
314
|
# @param maven_distribution_href [String] URI of Maven Distribution. e.g.: /pulp/api/v3/distributions/maven/maven/1/
|
311
315
|
# @param [Hash] opts the optional parameters
|
316
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
312
317
|
# @return [Array<(MavenDistribution, Integer, Hash)>] MavenDistribution data, response status code and response headers
|
313
|
-
def
|
318
|
+
def read_with_http_info(maven_distribution_href, opts = {})
|
314
319
|
if @api_client.config.debugging
|
315
|
-
@api_client.config.logger.debug 'Calling API:
|
320
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.read ...'
|
316
321
|
end
|
317
322
|
# verify the required parameter 'maven_distribution_href' is set
|
318
323
|
if @api_client.config.client_side_validation && maven_distribution_href.nil?
|
319
|
-
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling
|
324
|
+
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.read"
|
320
325
|
end
|
321
326
|
# resource path
|
322
|
-
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
|
327
|
+
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
|
323
328
|
|
324
329
|
# query parameters
|
325
330
|
query_params = opts[:query_params] || {}
|
331
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
326
332
|
|
327
333
|
# header parameters
|
328
334
|
header_params = opts[:header_params] || {}
|
@@ -352,7 +358,7 @@ module PulpMavenClient
|
|
352
358
|
|
353
359
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
354
360
|
if @api_client.config.debugging
|
355
|
-
@api_client.config.logger.debug "API called:
|
361
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
356
362
|
end
|
357
363
|
return data, status_code, headers
|
358
364
|
end
|
@@ -363,8 +369,8 @@ module PulpMavenClient
|
|
363
369
|
# @param data [MavenDistribution]
|
364
370
|
# @param [Hash] opts the optional parameters
|
365
371
|
# @return [AsyncOperationResponse]
|
366
|
-
def
|
367
|
-
data, _status_code, _headers =
|
372
|
+
def update(maven_distribution_href, data, opts = {})
|
373
|
+
data, _status_code, _headers = update_with_http_info(maven_distribution_href, data, opts)
|
368
374
|
data
|
369
375
|
end
|
370
376
|
|
@@ -374,20 +380,20 @@ module PulpMavenClient
|
|
374
380
|
# @param data [MavenDistribution]
|
375
381
|
# @param [Hash] opts the optional parameters
|
376
382
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
377
|
-
def
|
383
|
+
def update_with_http_info(maven_distribution_href, data, opts = {})
|
378
384
|
if @api_client.config.debugging
|
379
|
-
@api_client.config.logger.debug 'Calling API:
|
385
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.update ...'
|
380
386
|
end
|
381
387
|
# verify the required parameter 'maven_distribution_href' is set
|
382
388
|
if @api_client.config.client_side_validation && maven_distribution_href.nil?
|
383
|
-
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling
|
389
|
+
fail ArgumentError, "Missing the required parameter 'maven_distribution_href' when calling DistributionsMavenApi.update"
|
384
390
|
end
|
385
391
|
# verify the required parameter 'data' is set
|
386
392
|
if @api_client.config.client_side_validation && data.nil?
|
387
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
393
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling DistributionsMavenApi.update"
|
388
394
|
end
|
389
395
|
# resource path
|
390
|
-
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', maven_distribution_href.to_s)
|
396
|
+
local_var_path = '{maven_distribution_href}'.sub('{' + 'maven_distribution_href' + '}', CGI.escape(maven_distribution_href.to_s).gsub('%2F', '/'))
|
391
397
|
|
392
398
|
# query parameters
|
393
399
|
query_params = opts[:query_params] || {}
|
@@ -422,7 +428,7 @@ module PulpMavenClient
|
|
422
428
|
|
423
429
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
424
430
|
if @api_client.config.debugging
|
425
|
-
@api_client.config.logger.debug "API called:
|
431
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
426
432
|
end
|
427
433
|
return data, status_code, headers
|
428
434
|
end
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require '
|
13
|
+
require 'cgi'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class RemotesMavenApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -24,8 +24,8 @@ module PulpMavenClient
|
|
24
24
|
# @param data [MavenRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [MavenRemote]
|
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 PulpMavenClient
|
|
34
34
|
# @param data [MavenRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(MavenRemote, Integer, Hash)>] MavenRemote 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: RemotesMavenApi.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 RemotesMavenApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/remotes/maven/maven/'
|
@@ -78,7 +78,7 @@ module PulpMavenClient
|
|
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: RemotesMavenApi#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 PulpMavenClient
|
|
88
88
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
91
|
-
def
|
92
|
-
data, _status_code, _headers =
|
91
|
+
def delete(maven_remote_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(maven_remote_href, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
@@ -98,16 +98,16 @@ module PulpMavenClient
|
|
98
98
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/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(maven_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: RemotesMavenApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'maven_remote_href' is set
|
106
106
|
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling
|
107
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
|
-
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
110
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
|
111
111
|
|
112
112
|
# query parameters
|
113
113
|
query_params = opts[:query_params] || {}
|
@@ -140,7 +140,7 @@ module PulpMavenClient
|
|
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: RemotesMavenApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
144
|
end
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
@@ -156,11 +156,12 @@ module PulpMavenClient
|
|
156
156
|
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
157
157
|
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
158
158
|
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
159
|
-
# @option opts [Integer] :
|
160
|
-
# @option opts [Integer] :
|
159
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
160
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
161
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
161
162
|
# @return [InlineResponse2002]
|
162
|
-
def
|
163
|
-
data, _status_code, _headers =
|
163
|
+
def list(opts = {})
|
164
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
164
165
|
data
|
165
166
|
end
|
166
167
|
|
@@ -175,12 +176,13 @@ module PulpMavenClient
|
|
175
176
|
# @option opts [String] :_last_updated__gte Filter results where _last_updated is greater than or equal to value
|
176
177
|
# @option opts [String] :_last_updated__range Filter results where _last_updated is between two comma separated values
|
177
178
|
# @option opts [String] :_last_updated ISO 8601 formatted dates are supported
|
178
|
-
# @option opts [Integer] :
|
179
|
-
# @option opts [Integer] :
|
179
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
180
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
181
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
180
182
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
181
|
-
def
|
183
|
+
def list_with_http_info(opts = {})
|
182
184
|
if @api_client.config.debugging
|
183
|
-
@api_client.config.logger.debug 'Calling API:
|
185
|
+
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.list ...'
|
184
186
|
end
|
185
187
|
# resource path
|
186
188
|
local_var_path = '/pulp/api/v3/remotes/maven/maven/'
|
@@ -195,8 +197,9 @@ module PulpMavenClient
|
|
195
197
|
query_params[:'_last_updated__gte'] = opts[:'_last_updated__gte'] if !opts[:'_last_updated__gte'].nil?
|
196
198
|
query_params[:'_last_updated__range'] = opts[:'_last_updated__range'] if !opts[:'_last_updated__range'].nil?
|
197
199
|
query_params[:'_last_updated'] = opts[:'_last_updated'] if !opts[:'_last_updated'].nil?
|
198
|
-
query_params[:'
|
199
|
-
query_params[:'
|
200
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
201
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
202
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
200
203
|
|
201
204
|
# header parameters
|
202
205
|
header_params = opts[:header_params] || {}
|
@@ -226,7 +229,7 @@ module PulpMavenClient
|
|
226
229
|
|
227
230
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
228
231
|
if @api_client.config.debugging
|
229
|
-
@api_client.config.logger.debug "API called:
|
232
|
+
@api_client.config.logger.debug "API called: RemotesMavenApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
230
233
|
end
|
231
234
|
return data, status_code, headers
|
232
235
|
end
|
@@ -237,8 +240,8 @@ module PulpMavenClient
|
|
237
240
|
# @param data [MavenRemote]
|
238
241
|
# @param [Hash] opts the optional parameters
|
239
242
|
# @return [AsyncOperationResponse]
|
240
|
-
def
|
241
|
-
data, _status_code, _headers =
|
243
|
+
def partial_update(maven_remote_href, data, opts = {})
|
244
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_remote_href, data, opts)
|
242
245
|
data
|
243
246
|
end
|
244
247
|
|
@@ -248,20 +251,20 @@ module PulpMavenClient
|
|
248
251
|
# @param data [MavenRemote]
|
249
252
|
# @param [Hash] opts the optional parameters
|
250
253
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
251
|
-
def
|
254
|
+
def partial_update_with_http_info(maven_remote_href, data, opts = {})
|
252
255
|
if @api_client.config.debugging
|
253
|
-
@api_client.config.logger.debug 'Calling API:
|
256
|
+
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.partial_update ...'
|
254
257
|
end
|
255
258
|
# verify the required parameter 'maven_remote_href' is set
|
256
259
|
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
257
|
-
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling
|
260
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.partial_update"
|
258
261
|
end
|
259
262
|
# verify the required parameter 'data' is set
|
260
263
|
if @api_client.config.client_side_validation && data.nil?
|
261
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
264
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesMavenApi.partial_update"
|
262
265
|
end
|
263
266
|
# resource path
|
264
|
-
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
267
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
|
265
268
|
|
266
269
|
# query parameters
|
267
270
|
query_params = opts[:query_params] || {}
|
@@ -296,7 +299,7 @@ module PulpMavenClient
|
|
296
299
|
|
297
300
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
298
301
|
if @api_client.config.debugging
|
299
|
-
@api_client.config.logger.debug "API called:
|
302
|
+
@api_client.config.logger.debug "API called: RemotesMavenApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
300
303
|
end
|
301
304
|
return data, status_code, headers
|
302
305
|
end
|
@@ -305,9 +308,10 @@ module PulpMavenClient
|
|
305
308
|
# A ViewSet for MavenRemote.
|
306
309
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
307
310
|
# @param [Hash] opts the optional parameters
|
311
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
308
312
|
# @return [MavenRemote]
|
309
|
-
def
|
310
|
-
data, _status_code, _headers =
|
313
|
+
def read(maven_remote_href, opts = {})
|
314
|
+
data, _status_code, _headers = read_with_http_info(maven_remote_href, opts)
|
311
315
|
data
|
312
316
|
end
|
313
317
|
|
@@ -315,20 +319,22 @@ module PulpMavenClient
|
|
315
319
|
# A ViewSet for MavenRemote.
|
316
320
|
# @param maven_remote_href [String] URI of Maven Remote. e.g.: /pulp/api/v3/remotes/maven/maven/1/
|
317
321
|
# @param [Hash] opts the optional parameters
|
322
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
318
323
|
# @return [Array<(MavenRemote, Integer, Hash)>] MavenRemote data, response status code and response headers
|
319
|
-
def
|
324
|
+
def read_with_http_info(maven_remote_href, opts = {})
|
320
325
|
if @api_client.config.debugging
|
321
|
-
@api_client.config.logger.debug 'Calling API:
|
326
|
+
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.read ...'
|
322
327
|
end
|
323
328
|
# verify the required parameter 'maven_remote_href' is set
|
324
329
|
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
325
|
-
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling
|
330
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.read"
|
326
331
|
end
|
327
332
|
# resource path
|
328
|
-
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
333
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
|
329
334
|
|
330
335
|
# query parameters
|
331
336
|
query_params = opts[:query_params] || {}
|
337
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
332
338
|
|
333
339
|
# header parameters
|
334
340
|
header_params = opts[:header_params] || {}
|
@@ -358,7 +364,7 @@ module PulpMavenClient
|
|
358
364
|
|
359
365
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
360
366
|
if @api_client.config.debugging
|
361
|
-
@api_client.config.logger.debug "API called:
|
367
|
+
@api_client.config.logger.debug "API called: RemotesMavenApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
362
368
|
end
|
363
369
|
return data, status_code, headers
|
364
370
|
end
|
@@ -369,8 +375,8 @@ module PulpMavenClient
|
|
369
375
|
# @param data [MavenRemote]
|
370
376
|
# @param [Hash] opts the optional parameters
|
371
377
|
# @return [AsyncOperationResponse]
|
372
|
-
def
|
373
|
-
data, _status_code, _headers =
|
378
|
+
def update(maven_remote_href, data, opts = {})
|
379
|
+
data, _status_code, _headers = update_with_http_info(maven_remote_href, data, opts)
|
374
380
|
data
|
375
381
|
end
|
376
382
|
|
@@ -380,20 +386,20 @@ module PulpMavenClient
|
|
380
386
|
# @param data [MavenRemote]
|
381
387
|
# @param [Hash] opts the optional parameters
|
382
388
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
383
|
-
def
|
389
|
+
def update_with_http_info(maven_remote_href, data, opts = {})
|
384
390
|
if @api_client.config.debugging
|
385
|
-
@api_client.config.logger.debug 'Calling API:
|
391
|
+
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.update ...'
|
386
392
|
end
|
387
393
|
# verify the required parameter 'maven_remote_href' is set
|
388
394
|
if @api_client.config.client_side_validation && maven_remote_href.nil?
|
389
|
-
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling
|
395
|
+
fail ArgumentError, "Missing the required parameter 'maven_remote_href' when calling RemotesMavenApi.update"
|
390
396
|
end
|
391
397
|
# verify the required parameter 'data' is set
|
392
398
|
if @api_client.config.client_side_validation && data.nil?
|
393
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling
|
399
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesMavenApi.update"
|
394
400
|
end
|
395
401
|
# resource path
|
396
|
-
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', maven_remote_href.to_s)
|
402
|
+
local_var_path = '{maven_remote_href}'.sub('{' + 'maven_remote_href' + '}', CGI.escape(maven_remote_href.to_s).gsub('%2F', '/'))
|
397
403
|
|
398
404
|
# query parameters
|
399
405
|
query_params = opts[:query_params] || {}
|
@@ -428,7 +434,7 @@ module PulpMavenClient
|
|
428
434
|
|
429
435
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
430
436
|
if @api_client.config.debugging
|
431
|
-
@api_client.config.logger.debug "API called:
|
437
|
+
@api_client.config.logger.debug "API called: RemotesMavenApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
438
|
end
|
433
439
|
return data, status_code, headers
|
434
440
|
end
|