pulp_maven_client 0.2.0b1.dev01595707310 → 0.2.0b1.dev01596225975
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_maven_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +30 -29
- data/docs/ContentArtifactApi.md +13 -10
- data/docs/DistributionsMavenApi.md +34 -28
- data/docs/MavenMavenRepository.md +3 -1
- data/docs/MavenMavenRepositoryResponse.md +3 -1
- data/docs/PatchedmavenMavenRepository.md +3 -1
- data/docs/RemotesMavenApi.md +34 -28
- data/docs/RepositoriesMavenApi.md +34 -28
- data/docs/RepositoriesMavenVersionsApi.md +26 -23
- data/lib/pulp_maven_client/api/content_artifact_api.rb +15 -9
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +48 -36
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +48 -36
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +48 -36
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +42 -36
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +15 -5
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +15 -5
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +15 -5
- data/lib/pulp_maven_client/version.rb +1 -1
- data/spec/api/content_artifact_api_spec.rb +4 -1
- data/spec/api/distributions_maven_api_spec.rb +10 -4
- data/spec/api/remotes_maven_api_spec.rb +10 -4
- data/spec/api/repositories_maven_api_spec.rb +10 -4
- data/spec/api/repositories_maven_versions_api_spec.rb +7 -4
- data/spec/models/maven_maven_repository_response_spec.rb +6 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
- metadata +2 -2
@@ -19,6 +19,7 @@ module PulpMavenClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create a maven remote
|
22
23
|
# A ViewSet for MavenRemote.
|
23
24
|
# @param maven_maven_remote [MavenMavenRemote]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module PulpMavenClient
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Create a maven remote
|
31
33
|
# A ViewSet for MavenRemote.
|
32
34
|
# @param maven_maven_remote [MavenMavenRemote]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -81,8 +83,9 @@ module PulpMavenClient
|
|
81
83
|
return data, status_code, headers
|
82
84
|
end
|
83
85
|
|
86
|
+
# Delete a maven remote
|
84
87
|
# Trigger an asynchronous delete task
|
85
|
-
# @param
|
88
|
+
# @param maven_maven_remote_href [String]
|
86
89
|
# @param [Hash] opts the optional parameters
|
87
90
|
# @option opts [String] :name name
|
88
91
|
# @option opts [String] :name__in name__in
|
@@ -94,13 +97,14 @@ module PulpMavenClient
|
|
94
97
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
95
98
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
96
99
|
# @return [AsyncOperationResponse]
|
97
|
-
def delete(
|
98
|
-
data, _status_code, _headers = delete_with_http_info(
|
100
|
+
def delete(maven_maven_remote_href, opts = {})
|
101
|
+
data, _status_code, _headers = delete_with_http_info(maven_maven_remote_href, opts)
|
99
102
|
data
|
100
103
|
end
|
101
104
|
|
105
|
+
# Delete a maven remote
|
102
106
|
# Trigger an asynchronous delete task
|
103
|
-
# @param
|
107
|
+
# @param maven_maven_remote_href [String]
|
104
108
|
# @param [Hash] opts the optional parameters
|
105
109
|
# @option opts [String] :name name
|
106
110
|
# @option opts [String] :name__in name__in
|
@@ -112,16 +116,16 @@ module PulpMavenClient
|
|
112
116
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
113
117
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
114
118
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
115
|
-
def delete_with_http_info(
|
119
|
+
def delete_with_http_info(maven_maven_remote_href, opts = {})
|
116
120
|
if @api_client.config.debugging
|
117
121
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.delete ...'
|
118
122
|
end
|
119
|
-
# verify the required parameter '
|
120
|
-
if @api_client.config.client_side_validation &&
|
121
|
-
fail ArgumentError, "Missing the required parameter '
|
123
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
124
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.delete"
|
122
126
|
end
|
123
127
|
# resource path
|
124
|
-
local_var_path = '{
|
128
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
125
129
|
|
126
130
|
# query parameters
|
127
131
|
query_params = opts[:query_params] || {}
|
@@ -168,6 +172,7 @@ module PulpMavenClient
|
|
168
172
|
return data, status_code, headers
|
169
173
|
end
|
170
174
|
|
175
|
+
# List maven remotes
|
171
176
|
# A ViewSet for MavenRemote.
|
172
177
|
# @param [Hash] opts the optional parameters
|
173
178
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -189,6 +194,7 @@ module PulpMavenClient
|
|
189
194
|
data
|
190
195
|
end
|
191
196
|
|
197
|
+
# List maven remotes
|
192
198
|
# A ViewSet for MavenRemote.
|
193
199
|
# @param [Hash] opts the optional parameters
|
194
200
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -261,8 +267,9 @@ module PulpMavenClient
|
|
261
267
|
return data, status_code, headers
|
262
268
|
end
|
263
269
|
|
270
|
+
# Update a maven remote
|
264
271
|
# Trigger an asynchronous partial update task
|
265
|
-
# @param
|
272
|
+
# @param maven_maven_remote_href [String]
|
266
273
|
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
267
274
|
# @param [Hash] opts the optional parameters
|
268
275
|
# @option opts [String] :name name
|
@@ -275,13 +282,14 @@ module PulpMavenClient
|
|
275
282
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
276
283
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
277
284
|
# @return [AsyncOperationResponse]
|
278
|
-
def partial_update(
|
279
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
285
|
+
def partial_update(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
286
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts)
|
280
287
|
data
|
281
288
|
end
|
282
289
|
|
290
|
+
# Update a maven remote
|
283
291
|
# Trigger an asynchronous partial update task
|
284
|
-
# @param
|
292
|
+
# @param maven_maven_remote_href [String]
|
285
293
|
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
286
294
|
# @param [Hash] opts the optional parameters
|
287
295
|
# @option opts [String] :name name
|
@@ -294,20 +302,20 @@ module PulpMavenClient
|
|
294
302
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
295
303
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
296
304
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
297
|
-
def partial_update_with_http_info(
|
305
|
+
def partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
298
306
|
if @api_client.config.debugging
|
299
307
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.partial_update ...'
|
300
308
|
end
|
301
|
-
# verify the required parameter '
|
302
|
-
if @api_client.config.client_side_validation &&
|
303
|
-
fail ArgumentError, "Missing the required parameter '
|
309
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
310
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.partial_update"
|
304
312
|
end
|
305
313
|
# verify the required parameter 'patchedmaven_maven_remote' is set
|
306
314
|
if @api_client.config.client_side_validation && patchedmaven_maven_remote.nil?
|
307
315
|
fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_remote' when calling RemotesMavenApi.partial_update"
|
308
316
|
end
|
309
317
|
# resource path
|
310
|
-
local_var_path = '{
|
318
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
311
319
|
|
312
320
|
# query parameters
|
313
321
|
query_params = opts[:query_params] || {}
|
@@ -356,33 +364,35 @@ module PulpMavenClient
|
|
356
364
|
return data, status_code, headers
|
357
365
|
end
|
358
366
|
|
367
|
+
# Inspect a maven remote
|
359
368
|
# A ViewSet for MavenRemote.
|
360
|
-
# @param
|
369
|
+
# @param maven_maven_remote_href [String]
|
361
370
|
# @param [Hash] opts the optional parameters
|
362
371
|
# @option opts [String] :fields A list of fields to include in the response.
|
363
372
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
364
373
|
# @return [MavenMavenRemoteResponse]
|
365
|
-
def read(
|
366
|
-
data, _status_code, _headers = read_with_http_info(
|
374
|
+
def read(maven_maven_remote_href, opts = {})
|
375
|
+
data, _status_code, _headers = read_with_http_info(maven_maven_remote_href, opts)
|
367
376
|
data
|
368
377
|
end
|
369
378
|
|
379
|
+
# Inspect a maven remote
|
370
380
|
# A ViewSet for MavenRemote.
|
371
|
-
# @param
|
381
|
+
# @param maven_maven_remote_href [String]
|
372
382
|
# @param [Hash] opts the optional parameters
|
373
383
|
# @option opts [String] :fields A list of fields to include in the response.
|
374
384
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
375
385
|
# @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
|
376
|
-
def read_with_http_info(
|
386
|
+
def read_with_http_info(maven_maven_remote_href, opts = {})
|
377
387
|
if @api_client.config.debugging
|
378
388
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.read ...'
|
379
389
|
end
|
380
|
-
# verify the required parameter '
|
381
|
-
if @api_client.config.client_side_validation &&
|
382
|
-
fail ArgumentError, "Missing the required parameter '
|
390
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
391
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.read"
|
383
393
|
end
|
384
394
|
# resource path
|
385
|
-
local_var_path = '{
|
395
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
386
396
|
|
387
397
|
# query parameters
|
388
398
|
query_params = opts[:query_params] || {}
|
@@ -422,8 +432,9 @@ module PulpMavenClient
|
|
422
432
|
return data, status_code, headers
|
423
433
|
end
|
424
434
|
|
435
|
+
# Update a maven remote
|
425
436
|
# Trigger an asynchronous update task
|
426
|
-
# @param
|
437
|
+
# @param maven_maven_remote_href [String]
|
427
438
|
# @param maven_maven_remote [MavenMavenRemote]
|
428
439
|
# @param [Hash] opts the optional parameters
|
429
440
|
# @option opts [String] :name name
|
@@ -436,13 +447,14 @@ module PulpMavenClient
|
|
436
447
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
437
448
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
438
449
|
# @return [AsyncOperationResponse]
|
439
|
-
def update(
|
440
|
-
data, _status_code, _headers = update_with_http_info(
|
450
|
+
def update(maven_maven_remote_href, maven_maven_remote, opts = {})
|
451
|
+
data, _status_code, _headers = update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts)
|
441
452
|
data
|
442
453
|
end
|
443
454
|
|
455
|
+
# Update a maven remote
|
444
456
|
# Trigger an asynchronous update task
|
445
|
-
# @param
|
457
|
+
# @param maven_maven_remote_href [String]
|
446
458
|
# @param maven_maven_remote [MavenMavenRemote]
|
447
459
|
# @param [Hash] opts the optional parameters
|
448
460
|
# @option opts [String] :name name
|
@@ -455,20 +467,20 @@ module PulpMavenClient
|
|
455
467
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
456
468
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
457
469
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
458
|
-
def update_with_http_info(
|
470
|
+
def update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts = {})
|
459
471
|
if @api_client.config.debugging
|
460
472
|
@api_client.config.logger.debug 'Calling API: RemotesMavenApi.update ...'
|
461
473
|
end
|
462
|
-
# verify the required parameter '
|
463
|
-
if @api_client.config.client_side_validation &&
|
464
|
-
fail ArgumentError, "Missing the required parameter '
|
474
|
+
# verify the required parameter 'maven_maven_remote_href' is set
|
475
|
+
if @api_client.config.client_side_validation && maven_maven_remote_href.nil?
|
476
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_remote_href' when calling RemotesMavenApi.update"
|
465
477
|
end
|
466
478
|
# verify the required parameter 'maven_maven_remote' is set
|
467
479
|
if @api_client.config.client_side_validation && maven_maven_remote.nil?
|
468
480
|
fail ArgumentError, "Missing the required parameter 'maven_maven_remote' when calling RemotesMavenApi.update"
|
469
481
|
end
|
470
482
|
# resource path
|
471
|
-
local_var_path = '{
|
483
|
+
local_var_path = '{maven_maven_remote_href}'.sub('{' + 'maven_maven_remote_href' + '}', CGI.escape(maven_maven_remote_href.to_s).gsub('%2F', '/'))
|
472
484
|
|
473
485
|
# query parameters
|
474
486
|
query_params = opts[:query_params] || {}
|
@@ -19,6 +19,7 @@ module PulpMavenClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create a maven repository
|
22
23
|
# A ViewSet for MavenRemote.
|
23
24
|
# @param maven_maven_repository [MavenMavenRepository]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module PulpMavenClient
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Create a maven repository
|
31
33
|
# A ViewSet for MavenRemote.
|
32
34
|
# @param maven_maven_repository [MavenMavenRepository]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -81,35 +83,37 @@ module PulpMavenClient
|
|
81
83
|
return data, status_code, headers
|
82
84
|
end
|
83
85
|
|
86
|
+
# Delete a maven repository
|
84
87
|
# Trigger an asynchronous delete task
|
85
|
-
# @param
|
88
|
+
# @param maven_maven_repository_href [String]
|
86
89
|
# @param [Hash] opts the optional parameters
|
87
90
|
# @option opts [String] :name name
|
88
91
|
# @option opts [String] :name__in name__in
|
89
92
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
90
93
|
# @return [AsyncOperationResponse]
|
91
|
-
def delete(
|
92
|
-
data, _status_code, _headers = delete_with_http_info(
|
94
|
+
def delete(maven_maven_repository_href, opts = {})
|
95
|
+
data, _status_code, _headers = delete_with_http_info(maven_maven_repository_href, opts)
|
93
96
|
data
|
94
97
|
end
|
95
98
|
|
99
|
+
# Delete a maven repository
|
96
100
|
# Trigger an asynchronous delete task
|
97
|
-
# @param
|
101
|
+
# @param maven_maven_repository_href [String]
|
98
102
|
# @param [Hash] opts the optional parameters
|
99
103
|
# @option opts [String] :name name
|
100
104
|
# @option opts [String] :name__in name__in
|
101
105
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
102
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
103
|
-
def delete_with_http_info(
|
107
|
+
def delete_with_http_info(maven_maven_repository_href, opts = {})
|
104
108
|
if @api_client.config.debugging
|
105
109
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.delete ...'
|
106
110
|
end
|
107
|
-
# verify the required parameter '
|
108
|
-
if @api_client.config.client_side_validation &&
|
109
|
-
fail ArgumentError, "Missing the required parameter '
|
111
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
112
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.delete"
|
110
114
|
end
|
111
115
|
# resource path
|
112
|
-
local_var_path = '{
|
116
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
113
117
|
|
114
118
|
# query parameters
|
115
119
|
query_params = opts[:query_params] || {}
|
@@ -150,6 +154,7 @@ module PulpMavenClient
|
|
150
154
|
return data, status_code, headers
|
151
155
|
end
|
152
156
|
|
157
|
+
# List maven repositorys
|
153
158
|
# A ViewSet for MavenRemote.
|
154
159
|
# @param [Hash] opts the optional parameters
|
155
160
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -165,6 +170,7 @@ module PulpMavenClient
|
|
165
170
|
data
|
166
171
|
end
|
167
172
|
|
173
|
+
# List maven repositorys
|
168
174
|
# A ViewSet for MavenRemote.
|
169
175
|
# @param [Hash] opts the optional parameters
|
170
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -225,41 +231,43 @@ module PulpMavenClient
|
|
225
231
|
return data, status_code, headers
|
226
232
|
end
|
227
233
|
|
234
|
+
# Update a maven repository
|
228
235
|
# Trigger an asynchronous partial update task
|
229
|
-
# @param
|
236
|
+
# @param maven_maven_repository_href [String]
|
230
237
|
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
231
238
|
# @param [Hash] opts the optional parameters
|
232
239
|
# @option opts [String] :name name
|
233
240
|
# @option opts [String] :name__in name__in
|
234
241
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
235
242
|
# @return [AsyncOperationResponse]
|
236
|
-
def partial_update(
|
237
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
243
|
+
def partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
244
|
+
data, _status_code, _headers = partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts)
|
238
245
|
data
|
239
246
|
end
|
240
247
|
|
248
|
+
# Update a maven repository
|
241
249
|
# Trigger an asynchronous partial update task
|
242
|
-
# @param
|
250
|
+
# @param maven_maven_repository_href [String]
|
243
251
|
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
244
252
|
# @param [Hash] opts the optional parameters
|
245
253
|
# @option opts [String] :name name
|
246
254
|
# @option opts [String] :name__in name__in
|
247
255
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
248
256
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
249
|
-
def partial_update_with_http_info(
|
257
|
+
def partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
250
258
|
if @api_client.config.debugging
|
251
259
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.partial_update ...'
|
252
260
|
end
|
253
|
-
# verify the required parameter '
|
254
|
-
if @api_client.config.client_side_validation &&
|
255
|
-
fail ArgumentError, "Missing the required parameter '
|
261
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
262
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
263
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.partial_update"
|
256
264
|
end
|
257
265
|
# verify the required parameter 'patchedmaven_maven_repository' is set
|
258
266
|
if @api_client.config.client_side_validation && patchedmaven_maven_repository.nil?
|
259
267
|
fail ArgumentError, "Missing the required parameter 'patchedmaven_maven_repository' when calling RepositoriesMavenApi.partial_update"
|
260
268
|
end
|
261
269
|
# resource path
|
262
|
-
local_var_path = '{
|
270
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
263
271
|
|
264
272
|
# query parameters
|
265
273
|
query_params = opts[:query_params] || {}
|
@@ -302,33 +310,35 @@ module PulpMavenClient
|
|
302
310
|
return data, status_code, headers
|
303
311
|
end
|
304
312
|
|
313
|
+
# Inspect a maven repository
|
305
314
|
# A ViewSet for MavenRemote.
|
306
|
-
# @param
|
315
|
+
# @param maven_maven_repository_href [String]
|
307
316
|
# @param [Hash] opts the optional parameters
|
308
317
|
# @option opts [String] :fields A list of fields to include in the response.
|
309
318
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
310
319
|
# @return [MavenMavenRepositoryResponse]
|
311
|
-
def read(
|
312
|
-
data, _status_code, _headers = read_with_http_info(
|
320
|
+
def read(maven_maven_repository_href, opts = {})
|
321
|
+
data, _status_code, _headers = read_with_http_info(maven_maven_repository_href, opts)
|
313
322
|
data
|
314
323
|
end
|
315
324
|
|
325
|
+
# Inspect a maven repository
|
316
326
|
# A ViewSet for MavenRemote.
|
317
|
-
# @param
|
327
|
+
# @param maven_maven_repository_href [String]
|
318
328
|
# @param [Hash] opts the optional parameters
|
319
329
|
# @option opts [String] :fields A list of fields to include in the response.
|
320
330
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
321
331
|
# @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
|
322
|
-
def read_with_http_info(
|
332
|
+
def read_with_http_info(maven_maven_repository_href, opts = {})
|
323
333
|
if @api_client.config.debugging
|
324
334
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.read ...'
|
325
335
|
end
|
326
|
-
# verify the required parameter '
|
327
|
-
if @api_client.config.client_side_validation &&
|
328
|
-
fail ArgumentError, "Missing the required parameter '
|
336
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
337
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
338
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.read"
|
329
339
|
end
|
330
340
|
# resource path
|
331
|
-
local_var_path = '{
|
341
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
332
342
|
|
333
343
|
# query parameters
|
334
344
|
query_params = opts[:query_params] || {}
|
@@ -368,41 +378,43 @@ module PulpMavenClient
|
|
368
378
|
return data, status_code, headers
|
369
379
|
end
|
370
380
|
|
381
|
+
# Update a maven repository
|
371
382
|
# Trigger an asynchronous update task
|
372
|
-
# @param
|
383
|
+
# @param maven_maven_repository_href [String]
|
373
384
|
# @param maven_maven_repository [MavenMavenRepository]
|
374
385
|
# @param [Hash] opts the optional parameters
|
375
386
|
# @option opts [String] :name name
|
376
387
|
# @option opts [String] :name__in name__in
|
377
388
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
378
389
|
# @return [AsyncOperationResponse]
|
379
|
-
def update(
|
380
|
-
data, _status_code, _headers = update_with_http_info(
|
390
|
+
def update(maven_maven_repository_href, maven_maven_repository, opts = {})
|
391
|
+
data, _status_code, _headers = update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts)
|
381
392
|
data
|
382
393
|
end
|
383
394
|
|
395
|
+
# Update a maven repository
|
384
396
|
# Trigger an asynchronous update task
|
385
|
-
# @param
|
397
|
+
# @param maven_maven_repository_href [String]
|
386
398
|
# @param maven_maven_repository [MavenMavenRepository]
|
387
399
|
# @param [Hash] opts the optional parameters
|
388
400
|
# @option opts [String] :name name
|
389
401
|
# @option opts [String] :name__in name__in
|
390
402
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
391
403
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
392
|
-
def update_with_http_info(
|
404
|
+
def update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts = {})
|
393
405
|
if @api_client.config.debugging
|
394
406
|
@api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.update ...'
|
395
407
|
end
|
396
|
-
# verify the required parameter '
|
397
|
-
if @api_client.config.client_side_validation &&
|
398
|
-
fail ArgumentError, "Missing the required parameter '
|
408
|
+
# verify the required parameter 'maven_maven_repository_href' is set
|
409
|
+
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
410
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.update"
|
399
411
|
end
|
400
412
|
# verify the required parameter 'maven_maven_repository' is set
|
401
413
|
if @api_client.config.client_side_validation && maven_maven_repository.nil?
|
402
414
|
fail ArgumentError, "Missing the required parameter 'maven_maven_repository' when calling RepositoriesMavenApi.update"
|
403
415
|
end
|
404
416
|
# resource path
|
405
|
-
local_var_path = '{
|
417
|
+
local_var_path = '{maven_maven_repository_href}'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
|
406
418
|
|
407
419
|
# query parameters
|
408
420
|
query_params = opts[:query_params] || {}
|