pulp_maven_client 0.10.1 → 0.11.0
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/README.md +8 -5
- data/docs/ContentArtifactApi.md +28 -12
- data/docs/DistributionsMavenApi.md +52 -24
- data/docs/MavenMavenArtifactResponse.md +2 -0
- data/docs/MavenMavenRemoteResponse.md +1 -1
- data/docs/PulpMavenApi.md +10 -4
- data/docs/RemotesMavenApi.md +52 -24
- data/docs/RepositoriesMavenApi.md +60 -28
- data/docs/RepositoriesMavenVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_maven_client/api/content_artifact_api.rb +15 -0
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +24 -0
- data/lib/pulp_maven_client/api/pulp_maven_api.rb +6 -0
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +24 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +27 -0
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +15 -3
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +10 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +0 -15
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +0 -15
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +0 -15
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +0 -15
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +0 -2
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +0 -2
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +0 -2
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +0 -2
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +0 -15
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +0 -15
- data/lib/pulp_maven_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_maven_client/version.rb +1 -1
- data/spec/api/content_artifact_api_spec.rb +5 -0
- data/spec/api/distributions_maven_api_spec.rb +8 -0
- data/spec/api/pulp_maven_api_spec.rb +2 -0
- data/spec/api/remotes_maven_api_spec.rb +8 -0
- data/spec/api/repositories_maven_api_spec.rb +9 -0
- data/spec/api/repositories_maven_versions_api_spec.rb +5 -1
- data/spec/models/maven_maven_artifact_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +22 -22
@@ -23,6 +23,7 @@ module PulpMavenClient
|
|
23
23
|
# A ViewSet for MavenRemote.
|
24
24
|
# @param maven_maven_remote [MavenMavenRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [MavenMavenRemoteResponse]
|
27
28
|
def create(maven_maven_remote, opts = {})
|
28
29
|
data, _status_code, _headers = create_with_http_info(maven_maven_remote, opts)
|
@@ -33,6 +34,7 @@ module PulpMavenClient
|
|
33
34
|
# A ViewSet for MavenRemote.
|
34
35
|
# @param maven_maven_remote [MavenMavenRemote]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
|
37
39
|
def create_with_http_info(maven_maven_remote, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -57,6 +59,7 @@ module PulpMavenClient
|
|
57
59
|
if !content_type.nil?
|
58
60
|
header_params['Content-Type'] = content_type
|
59
61
|
end
|
62
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
60
63
|
|
61
64
|
# form parameters
|
62
65
|
form_params = opts[:form_params] || {}
|
@@ -91,6 +94,7 @@ module PulpMavenClient
|
|
91
94
|
# Trigger an asynchronous delete task
|
92
95
|
# @param maven_maven_remote_href [String]
|
93
96
|
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
94
98
|
# @return [AsyncOperationResponse]
|
95
99
|
def delete(maven_maven_remote_href, opts = {})
|
96
100
|
data, _status_code, _headers = delete_with_http_info(maven_maven_remote_href, opts)
|
@@ -101,6 +105,7 @@ module PulpMavenClient
|
|
101
105
|
# Trigger an asynchronous delete task
|
102
106
|
# @param maven_maven_remote_href [String]
|
103
107
|
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
104
109
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
105
110
|
def delete_with_http_info(maven_maven_remote_href, opts = {})
|
106
111
|
if @api_client.config.debugging
|
@@ -120,6 +125,7 @@ module PulpMavenClient
|
|
120
125
|
header_params = opts[:header_params] || {}
|
121
126
|
# HTTP header 'Accept' (if needed)
|
122
127
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
128
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
123
129
|
|
124
130
|
# form parameters
|
125
131
|
form_params = opts[:form_params] || {}
|
@@ -153,6 +159,7 @@ module PulpMavenClient
|
|
153
159
|
# List maven remotes
|
154
160
|
# A ViewSet for MavenRemote.
|
155
161
|
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
156
163
|
# @option opts [Integer] :limit Number of results to return per page.
|
157
164
|
# @option opts [String] :name Filter results where name matches value
|
158
165
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -188,6 +195,7 @@ module PulpMavenClient
|
|
188
195
|
# List maven remotes
|
189
196
|
# A ViewSet for MavenRemote.
|
190
197
|
# @param [Hash] opts the optional parameters
|
198
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
191
199
|
# @option opts [Integer] :limit Number of results to return per page.
|
192
200
|
# @option opts [String] :name Filter results where name matches value
|
193
201
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -259,6 +267,7 @@ module PulpMavenClient
|
|
259
267
|
header_params = opts[:header_params] || {}
|
260
268
|
# HTTP header 'Accept' (if needed)
|
261
269
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
270
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
262
271
|
|
263
272
|
# form parameters
|
264
273
|
form_params = opts[:form_params] || {}
|
@@ -294,6 +303,7 @@ module PulpMavenClient
|
|
294
303
|
# @param maven_maven_remote_href [String]
|
295
304
|
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
296
305
|
# @param [Hash] opts the optional parameters
|
306
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
297
307
|
# @return [AsyncOperationResponse]
|
298
308
|
def partial_update(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
299
309
|
data, _status_code, _headers = partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts)
|
@@ -305,6 +315,7 @@ module PulpMavenClient
|
|
305
315
|
# @param maven_maven_remote_href [String]
|
306
316
|
# @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
|
307
317
|
# @param [Hash] opts the optional parameters
|
318
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
308
319
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
309
320
|
def partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
|
310
321
|
if @api_client.config.debugging
|
@@ -333,6 +344,7 @@ module PulpMavenClient
|
|
333
344
|
if !content_type.nil?
|
334
345
|
header_params['Content-Type'] = content_type
|
335
346
|
end
|
347
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
336
348
|
|
337
349
|
# form parameters
|
338
350
|
form_params = opts[:form_params] || {}
|
@@ -367,6 +379,7 @@ module PulpMavenClient
|
|
367
379
|
# A ViewSet for MavenRemote.
|
368
380
|
# @param maven_maven_remote_href [String]
|
369
381
|
# @param [Hash] opts the optional parameters
|
382
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
370
383
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
371
384
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
372
385
|
# @return [MavenMavenRemoteResponse]
|
@@ -379,6 +392,7 @@ module PulpMavenClient
|
|
379
392
|
# A ViewSet for MavenRemote.
|
380
393
|
# @param maven_maven_remote_href [String]
|
381
394
|
# @param [Hash] opts the optional parameters
|
395
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
382
396
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
383
397
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
384
398
|
# @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
|
@@ -402,6 +416,7 @@ module PulpMavenClient
|
|
402
416
|
header_params = opts[:header_params] || {}
|
403
417
|
# HTTP header 'Accept' (if needed)
|
404
418
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
419
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
405
420
|
|
406
421
|
# form parameters
|
407
422
|
form_params = opts[:form_params] || {}
|
@@ -437,6 +452,7 @@ module PulpMavenClient
|
|
437
452
|
# @param maven_maven_remote_href [String]
|
438
453
|
# @param set_label [SetLabel]
|
439
454
|
# @param [Hash] opts the optional parameters
|
455
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
440
456
|
# @return [SetLabelResponse]
|
441
457
|
def set_label(maven_maven_remote_href, set_label, opts = {})
|
442
458
|
data, _status_code, _headers = set_label_with_http_info(maven_maven_remote_href, set_label, opts)
|
@@ -448,6 +464,7 @@ module PulpMavenClient
|
|
448
464
|
# @param maven_maven_remote_href [String]
|
449
465
|
# @param set_label [SetLabel]
|
450
466
|
# @param [Hash] opts the optional parameters
|
467
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
451
468
|
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
452
469
|
def set_label_with_http_info(maven_maven_remote_href, set_label, opts = {})
|
453
470
|
if @api_client.config.debugging
|
@@ -476,6 +493,7 @@ module PulpMavenClient
|
|
476
493
|
if !content_type.nil?
|
477
494
|
header_params['Content-Type'] = content_type
|
478
495
|
end
|
496
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
479
497
|
|
480
498
|
# form parameters
|
481
499
|
form_params = opts[:form_params] || {}
|
@@ -511,6 +529,7 @@ module PulpMavenClient
|
|
511
529
|
# @param maven_maven_remote_href [String]
|
512
530
|
# @param unset_label [UnsetLabel]
|
513
531
|
# @param [Hash] opts the optional parameters
|
532
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
514
533
|
# @return [UnsetLabelResponse]
|
515
534
|
def unset_label(maven_maven_remote_href, unset_label, opts = {})
|
516
535
|
data, _status_code, _headers = unset_label_with_http_info(maven_maven_remote_href, unset_label, opts)
|
@@ -522,6 +541,7 @@ module PulpMavenClient
|
|
522
541
|
# @param maven_maven_remote_href [String]
|
523
542
|
# @param unset_label [UnsetLabel]
|
524
543
|
# @param [Hash] opts the optional parameters
|
544
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
525
545
|
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
526
546
|
def unset_label_with_http_info(maven_maven_remote_href, unset_label, opts = {})
|
527
547
|
if @api_client.config.debugging
|
@@ -550,6 +570,7 @@ module PulpMavenClient
|
|
550
570
|
if !content_type.nil?
|
551
571
|
header_params['Content-Type'] = content_type
|
552
572
|
end
|
573
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
553
574
|
|
554
575
|
# form parameters
|
555
576
|
form_params = opts[:form_params] || {}
|
@@ -585,6 +606,7 @@ module PulpMavenClient
|
|
585
606
|
# @param maven_maven_remote_href [String]
|
586
607
|
# @param maven_maven_remote [MavenMavenRemote]
|
587
608
|
# @param [Hash] opts the optional parameters
|
609
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
588
610
|
# @return [AsyncOperationResponse]
|
589
611
|
def update(maven_maven_remote_href, maven_maven_remote, opts = {})
|
590
612
|
data, _status_code, _headers = update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts)
|
@@ -596,6 +618,7 @@ module PulpMavenClient
|
|
596
618
|
# @param maven_maven_remote_href [String]
|
597
619
|
# @param maven_maven_remote [MavenMavenRemote]
|
598
620
|
# @param [Hash] opts the optional parameters
|
621
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
599
622
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
600
623
|
def update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts = {})
|
601
624
|
if @api_client.config.debugging
|
@@ -624,6 +647,7 @@ module PulpMavenClient
|
|
624
647
|
if !content_type.nil?
|
625
648
|
header_params['Content-Type'] = content_type
|
626
649
|
end
|
650
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
627
651
|
|
628
652
|
# form parameters
|
629
653
|
form_params = opts[:form_params] || {}
|
@@ -24,6 +24,7 @@ module PulpMavenClient
|
|
24
24
|
# @param maven_maven_repository_href [String]
|
25
25
|
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
27
28
|
# @return [AsyncOperationResponse]
|
28
29
|
def add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
29
30
|
data, _status_code, _headers = add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
|
@@ -35,6 +36,7 @@ module PulpMavenClient
|
|
35
36
|
# @param maven_maven_repository_href [String]
|
36
37
|
# @param repository_add_cached_content [RepositoryAddCachedContent]
|
37
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
38
40
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
39
41
|
def add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts = {})
|
40
42
|
if @api_client.config.debugging
|
@@ -63,6 +65,7 @@ module PulpMavenClient
|
|
63
65
|
if !content_type.nil?
|
64
66
|
header_params['Content-Type'] = content_type
|
65
67
|
end
|
68
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
66
69
|
|
67
70
|
# form parameters
|
68
71
|
form_params = opts[:form_params] || {}
|
@@ -97,6 +100,7 @@ module PulpMavenClient
|
|
97
100
|
# A ViewSet for MavenRemote.
|
98
101
|
# @param maven_maven_repository [MavenMavenRepository]
|
99
102
|
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
100
104
|
# @return [MavenMavenRepositoryResponse]
|
101
105
|
def create(maven_maven_repository, opts = {})
|
102
106
|
data, _status_code, _headers = create_with_http_info(maven_maven_repository, opts)
|
@@ -107,6 +111,7 @@ module PulpMavenClient
|
|
107
111
|
# A ViewSet for MavenRemote.
|
108
112
|
# @param maven_maven_repository [MavenMavenRepository]
|
109
113
|
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
110
115
|
# @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
|
111
116
|
def create_with_http_info(maven_maven_repository, opts = {})
|
112
117
|
if @api_client.config.debugging
|
@@ -131,6 +136,7 @@ module PulpMavenClient
|
|
131
136
|
if !content_type.nil?
|
132
137
|
header_params['Content-Type'] = content_type
|
133
138
|
end
|
139
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
134
140
|
|
135
141
|
# form parameters
|
136
142
|
form_params = opts[:form_params] || {}
|
@@ -165,6 +171,7 @@ module PulpMavenClient
|
|
165
171
|
# Trigger an asynchronous delete task
|
166
172
|
# @param maven_maven_repository_href [String]
|
167
173
|
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
168
175
|
# @return [AsyncOperationResponse]
|
169
176
|
def delete(maven_maven_repository_href, opts = {})
|
170
177
|
data, _status_code, _headers = delete_with_http_info(maven_maven_repository_href, opts)
|
@@ -175,6 +182,7 @@ module PulpMavenClient
|
|
175
182
|
# Trigger an asynchronous delete task
|
176
183
|
# @param maven_maven_repository_href [String]
|
177
184
|
# @param [Hash] opts the optional parameters
|
185
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
178
186
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
179
187
|
def delete_with_http_info(maven_maven_repository_href, opts = {})
|
180
188
|
if @api_client.config.debugging
|
@@ -194,6 +202,7 @@ module PulpMavenClient
|
|
194
202
|
header_params = opts[:header_params] || {}
|
195
203
|
# HTTP header 'Accept' (if needed)
|
196
204
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
205
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
197
206
|
|
198
207
|
# form parameters
|
199
208
|
form_params = opts[:form_params] || {}
|
@@ -227,6 +236,7 @@ module PulpMavenClient
|
|
227
236
|
# List maven repositorys
|
228
237
|
# A ViewSet for MavenRemote.
|
229
238
|
# @param [Hash] opts the optional parameters
|
239
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
230
240
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
231
241
|
# @option opts [Integer] :limit Number of results to return per page.
|
232
242
|
# @option opts [String] :name Filter results where name matches value
|
@@ -266,6 +276,7 @@ module PulpMavenClient
|
|
266
276
|
# List maven repositorys
|
267
277
|
# A ViewSet for MavenRemote.
|
268
278
|
# @param [Hash] opts the optional parameters
|
279
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
269
280
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
270
281
|
# @option opts [Integer] :limit Number of results to return per page.
|
271
282
|
# @option opts [String] :name Filter results where name matches value
|
@@ -345,6 +356,7 @@ module PulpMavenClient
|
|
345
356
|
header_params = opts[:header_params] || {}
|
346
357
|
# HTTP header 'Accept' (if needed)
|
347
358
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
359
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
348
360
|
|
349
361
|
# form parameters
|
350
362
|
form_params = opts[:form_params] || {}
|
@@ -380,6 +392,7 @@ module PulpMavenClient
|
|
380
392
|
# @param maven_maven_repository_href [String]
|
381
393
|
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
382
394
|
# @param [Hash] opts the optional parameters
|
395
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
383
396
|
# @return [AsyncOperationResponse]
|
384
397
|
def partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
385
398
|
data, _status_code, _headers = partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts)
|
@@ -391,6 +404,7 @@ module PulpMavenClient
|
|
391
404
|
# @param maven_maven_repository_href [String]
|
392
405
|
# @param patchedmaven_maven_repository [PatchedmavenMavenRepository]
|
393
406
|
# @param [Hash] opts the optional parameters
|
407
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
394
408
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
395
409
|
def partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts = {})
|
396
410
|
if @api_client.config.debugging
|
@@ -419,6 +433,7 @@ module PulpMavenClient
|
|
419
433
|
if !content_type.nil?
|
420
434
|
header_params['Content-Type'] = content_type
|
421
435
|
end
|
436
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
422
437
|
|
423
438
|
# form parameters
|
424
439
|
form_params = opts[:form_params] || {}
|
@@ -453,6 +468,7 @@ module PulpMavenClient
|
|
453
468
|
# A ViewSet for MavenRemote.
|
454
469
|
# @param maven_maven_repository_href [String]
|
455
470
|
# @param [Hash] opts the optional parameters
|
471
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
456
472
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
457
473
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
458
474
|
# @return [MavenMavenRepositoryResponse]
|
@@ -465,6 +481,7 @@ module PulpMavenClient
|
|
465
481
|
# A ViewSet for MavenRemote.
|
466
482
|
# @param maven_maven_repository_href [String]
|
467
483
|
# @param [Hash] opts the optional parameters
|
484
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
468
485
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
469
486
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
470
487
|
# @return [Array<(MavenMavenRepositoryResponse, Integer, Hash)>] MavenMavenRepositoryResponse data, response status code and response headers
|
@@ -488,6 +505,7 @@ module PulpMavenClient
|
|
488
505
|
header_params = opts[:header_params] || {}
|
489
506
|
# HTTP header 'Accept' (if needed)
|
490
507
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
508
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
491
509
|
|
492
510
|
# form parameters
|
493
511
|
form_params = opts[:form_params] || {}
|
@@ -523,6 +541,7 @@ module PulpMavenClient
|
|
523
541
|
# @param maven_maven_repository_href [String]
|
524
542
|
# @param set_label [SetLabel]
|
525
543
|
# @param [Hash] opts the optional parameters
|
544
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
526
545
|
# @return [SetLabelResponse]
|
527
546
|
def set_label(maven_maven_repository_href, set_label, opts = {})
|
528
547
|
data, _status_code, _headers = set_label_with_http_info(maven_maven_repository_href, set_label, opts)
|
@@ -534,6 +553,7 @@ module PulpMavenClient
|
|
534
553
|
# @param maven_maven_repository_href [String]
|
535
554
|
# @param set_label [SetLabel]
|
536
555
|
# @param [Hash] opts the optional parameters
|
556
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
537
557
|
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
538
558
|
def set_label_with_http_info(maven_maven_repository_href, set_label, opts = {})
|
539
559
|
if @api_client.config.debugging
|
@@ -562,6 +582,7 @@ module PulpMavenClient
|
|
562
582
|
if !content_type.nil?
|
563
583
|
header_params['Content-Type'] = content_type
|
564
584
|
end
|
585
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
565
586
|
|
566
587
|
# form parameters
|
567
588
|
form_params = opts[:form_params] || {}
|
@@ -597,6 +618,7 @@ module PulpMavenClient
|
|
597
618
|
# @param maven_maven_repository_href [String]
|
598
619
|
# @param unset_label [UnsetLabel]
|
599
620
|
# @param [Hash] opts the optional parameters
|
621
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
600
622
|
# @return [UnsetLabelResponse]
|
601
623
|
def unset_label(maven_maven_repository_href, unset_label, opts = {})
|
602
624
|
data, _status_code, _headers = unset_label_with_http_info(maven_maven_repository_href, unset_label, opts)
|
@@ -608,6 +630,7 @@ module PulpMavenClient
|
|
608
630
|
# @param maven_maven_repository_href [String]
|
609
631
|
# @param unset_label [UnsetLabel]
|
610
632
|
# @param [Hash] opts the optional parameters
|
633
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
611
634
|
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
612
635
|
def unset_label_with_http_info(maven_maven_repository_href, unset_label, opts = {})
|
613
636
|
if @api_client.config.debugging
|
@@ -636,6 +659,7 @@ module PulpMavenClient
|
|
636
659
|
if !content_type.nil?
|
637
660
|
header_params['Content-Type'] = content_type
|
638
661
|
end
|
662
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
639
663
|
|
640
664
|
# form parameters
|
641
665
|
form_params = opts[:form_params] || {}
|
@@ -671,6 +695,7 @@ module PulpMavenClient
|
|
671
695
|
# @param maven_maven_repository_href [String]
|
672
696
|
# @param maven_maven_repository [MavenMavenRepository]
|
673
697
|
# @param [Hash] opts the optional parameters
|
698
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
674
699
|
# @return [AsyncOperationResponse]
|
675
700
|
def update(maven_maven_repository_href, maven_maven_repository, opts = {})
|
676
701
|
data, _status_code, _headers = update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts)
|
@@ -682,6 +707,7 @@ module PulpMavenClient
|
|
682
707
|
# @param maven_maven_repository_href [String]
|
683
708
|
# @param maven_maven_repository [MavenMavenRepository]
|
684
709
|
# @param [Hash] opts the optional parameters
|
710
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
685
711
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
686
712
|
def update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts = {})
|
687
713
|
if @api_client.config.debugging
|
@@ -710,6 +736,7 @@ module PulpMavenClient
|
|
710
736
|
if !content_type.nil?
|
711
737
|
header_params['Content-Type'] = content_type
|
712
738
|
end
|
739
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
713
740
|
|
714
741
|
# form parameters
|
715
742
|
form_params = opts[:form_params] || {}
|
@@ -23,6 +23,7 @@ module PulpMavenClient
|
|
23
23
|
# Trigger an asynchronous task to delete a repository version.
|
24
24
|
# @param maven_maven_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [AsyncOperationResponse]
|
27
28
|
def delete(maven_maven_repository_version_href, opts = {})
|
28
29
|
data, _status_code, _headers = delete_with_http_info(maven_maven_repository_version_href, opts)
|
@@ -33,6 +34,7 @@ module PulpMavenClient
|
|
33
34
|
# Trigger an asynchronous task to delete a repository version.
|
34
35
|
# @param maven_maven_repository_version_href [String]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
39
|
def delete_with_http_info(maven_maven_repository_version_href, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -52,6 +54,7 @@ module PulpMavenClient
|
|
52
54
|
header_params = opts[:header_params] || {}
|
53
55
|
# HTTP header 'Accept' (if needed)
|
54
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
57
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
@@ -86,6 +89,7 @@ module PulpMavenClient
|
|
86
89
|
# MavenRepositoryVersion represents a single Maven repository version.
|
87
90
|
# @param maven_maven_repository_href [String]
|
88
91
|
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
89
93
|
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
90
94
|
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
91
95
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -96,7 +100,7 @@ module PulpMavenClient
|
|
96
100
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
97
101
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
98
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
99
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
103
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
100
104
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
101
105
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
102
106
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
@@ -119,6 +123,7 @@ module PulpMavenClient
|
|
119
123
|
# MavenRepositoryVersion represents a single Maven repository version.
|
120
124
|
# @param maven_maven_repository_href [String]
|
121
125
|
# @param [Hash] opts the optional parameters
|
126
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
122
127
|
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
123
128
|
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
124
129
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -129,7 +134,7 @@ module PulpMavenClient
|
|
129
134
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
130
135
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
131
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
132
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
137
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
133
138
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
134
139
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
135
140
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
@@ -151,7 +156,7 @@ module PulpMavenClient
|
|
151
156
|
if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
|
152
157
|
fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenVersionsApi.list"
|
153
158
|
end
|
154
|
-
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
159
|
+
allowable_values = ["-complete", "-content_ids", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "content_ids", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
155
160
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
156
161
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
157
162
|
end
|
@@ -188,6 +193,7 @@ module PulpMavenClient
|
|
188
193
|
header_params = opts[:header_params] || {}
|
189
194
|
# HTTP header 'Accept' (if needed)
|
190
195
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
196
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
191
197
|
|
192
198
|
# form parameters
|
193
199
|
form_params = opts[:form_params] || {}
|
@@ -222,6 +228,7 @@ module PulpMavenClient
|
|
222
228
|
# MavenRepositoryVersion represents a single Maven repository version.
|
223
229
|
# @param maven_maven_repository_version_href [String]
|
224
230
|
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
225
232
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
226
233
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
227
234
|
# @return [RepositoryVersionResponse]
|
@@ -234,6 +241,7 @@ module PulpMavenClient
|
|
234
241
|
# MavenRepositoryVersion represents a single Maven repository version.
|
235
242
|
# @param maven_maven_repository_version_href [String]
|
236
243
|
# @param [Hash] opts the optional parameters
|
244
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
237
245
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
238
246
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
239
247
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
@@ -257,6 +265,7 @@ module PulpMavenClient
|
|
257
265
|
header_params = opts[:header_params] || {}
|
258
266
|
# HTTP header 'Accept' (if needed)
|
259
267
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
268
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
260
269
|
|
261
270
|
# form parameters
|
262
271
|
form_params = opts[:form_params] || {}
|
@@ -291,6 +300,7 @@ module PulpMavenClient
|
|
291
300
|
# @param maven_maven_repository_version_href [String]
|
292
301
|
# @param repair [Repair]
|
293
302
|
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
294
304
|
# @return [AsyncOperationResponse]
|
295
305
|
def repair(maven_maven_repository_version_href, repair, opts = {})
|
296
306
|
data, _status_code, _headers = repair_with_http_info(maven_maven_repository_version_href, repair, opts)
|
@@ -301,6 +311,7 @@ module PulpMavenClient
|
|
301
311
|
# @param maven_maven_repository_version_href [String]
|
302
312
|
# @param repair [Repair]
|
303
313
|
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
304
315
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
305
316
|
def repair_with_http_info(maven_maven_repository_version_href, repair, opts = {})
|
306
317
|
if @api_client.config.debugging
|
@@ -329,6 +340,7 @@ module PulpMavenClient
|
|
329
340
|
if !content_type.nil?
|
330
341
|
header_params['Content-Type'] = content_type
|
331
342
|
end
|
343
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
332
344
|
|
333
345
|
# form parameters
|
334
346
|
form_params = opts[:form_params] || {}
|
@@ -30,6 +30,8 @@ module PulpMavenClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# Artifact file representing the physical content
|
34
36
|
attr_accessor :artifact
|
35
37
|
|
@@ -53,6 +55,7 @@ module PulpMavenClient
|
|
53
55
|
:'pulp_created' => :'pulp_created',
|
54
56
|
:'pulp_last_updated' => :'pulp_last_updated',
|
55
57
|
:'pulp_labels' => :'pulp_labels',
|
58
|
+
:'vuln_report' => :'vuln_report',
|
56
59
|
:'artifact' => :'artifact',
|
57
60
|
:'group_id' => :'group_id',
|
58
61
|
:'artifact_id' => :'artifact_id',
|
@@ -74,6 +77,7 @@ module PulpMavenClient
|
|
74
77
|
:'pulp_created' => :'Time',
|
75
78
|
:'pulp_last_updated' => :'Time',
|
76
79
|
:'pulp_labels' => :'Hash<String, String>',
|
80
|
+
:'vuln_report' => :'String',
|
77
81
|
:'artifact' => :'String',
|
78
82
|
:'group_id' => :'String',
|
79
83
|
:'artifact_id' => :'String',
|
@@ -125,6 +129,10 @@ module PulpMavenClient
|
|
125
129
|
end
|
126
130
|
end
|
127
131
|
|
132
|
+
if attributes.key?(:'vuln_report')
|
133
|
+
self.vuln_report = attributes[:'vuln_report']
|
134
|
+
end
|
135
|
+
|
128
136
|
if attributes.key?(:'artifact')
|
129
137
|
self.artifact = attributes[:'artifact']
|
130
138
|
else
|
@@ -178,6 +186,7 @@ module PulpMavenClient
|
|
178
186
|
pulp_created == o.pulp_created &&
|
179
187
|
pulp_last_updated == o.pulp_last_updated &&
|
180
188
|
pulp_labels == o.pulp_labels &&
|
189
|
+
vuln_report == o.vuln_report &&
|
181
190
|
artifact == o.artifact &&
|
182
191
|
group_id == o.group_id &&
|
183
192
|
artifact_id == o.artifact_id &&
|
@@ -194,7 +203,7 @@ module PulpMavenClient
|
|
194
203
|
# Calculates hash code according to all attributes.
|
195
204
|
# @return [Integer] Hash code
|
196
205
|
def hash
|
197
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, group_id, artifact_id, version, filename].hash
|
206
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, group_id, artifact_id, version, filename].hash
|
198
207
|
end
|
199
208
|
|
200
209
|
# Builds the object from hash
|
@@ -341,10 +341,6 @@ module PulpMavenClient
|
|
341
341
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
342
342
|
end
|
343
343
|
|
344
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
345
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
346
|
-
end
|
347
|
-
|
348
344
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
349
345
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
350
346
|
end
|
@@ -380,7 +376,6 @@ module PulpMavenClient
|
|
380
376
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
381
377
|
return false if !@username.nil? && @username.to_s.length < 1
|
382
378
|
return false if !@password.nil? && @password.to_s.length < 1
|
383
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
384
379
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
385
380
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
386
381
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -496,16 +491,6 @@ module PulpMavenClient
|
|
496
491
|
@password = password
|
497
492
|
end
|
498
493
|
|
499
|
-
# Custom attribute writer method with validation
|
500
|
-
# @param [Object] download_concurrency Value to be assigned
|
501
|
-
def download_concurrency=(download_concurrency)
|
502
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
503
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
504
|
-
end
|
505
|
-
|
506
|
-
@download_concurrency = download_concurrency
|
507
|
-
end
|
508
|
-
|
509
494
|
# Custom attribute writer method with validation
|
510
495
|
# @param [Object] total_timeout Value to be assigned
|
511
496
|
def total_timeout=(total_timeout)
|
@@ -297,10 +297,6 @@ module PulpMavenClient
|
|
297
297
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
298
298
|
end
|
299
299
|
|
300
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
301
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
|
-
end
|
303
|
-
|
304
300
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
301
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
302
|
end
|
@@ -326,7 +322,6 @@ module PulpMavenClient
|
|
326
322
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
327
323
|
return false if @name.nil?
|
328
324
|
return false if @url.nil?
|
329
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
330
325
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
331
326
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
332
327
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -334,16 +329,6 @@ module PulpMavenClient
|
|
334
329
|
true
|
335
330
|
end
|
336
331
|
|
337
|
-
# Custom attribute writer method with validation
|
338
|
-
# @param [Object] download_concurrency Value to be assigned
|
339
|
-
def download_concurrency=(download_concurrency)
|
340
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
341
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
342
|
-
end
|
343
|
-
|
344
|
-
@download_concurrency = download_concurrency
|
345
|
-
end
|
346
|
-
|
347
332
|
# Custom attribute writer method with validation
|
348
333
|
# @param [Object] total_timeout Value to be assigned
|
349
334
|
def total_timeout=(total_timeout)
|