pulp_maven_client 0.8.1 → 0.8.3
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 +11 -7
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentArtifactApi.md +116 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsMavenApi.md +267 -130
- data/docs/MavenMavenArtifact.md +12 -11
- data/docs/MavenMavenArtifactResponse.md +24 -21
- data/docs/MavenMavenDistribution.md +20 -19
- data/docs/MavenMavenDistributionResponse.md +32 -27
- data/docs/MavenMavenRemote.md +48 -47
- data/docs/MavenMavenRemoteResponse.md +48 -45
- data/docs/MavenMavenRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/MavenMavenRepository.md +16 -15
- data/docs/MavenMavenRepositoryResponse.md +28 -25
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedmavenMavenArtifactResponseList.md +14 -13
- data/docs/PaginatedmavenMavenDistributionResponseList.md +14 -13
- data/docs/PaginatedmavenMavenRemoteResponseList.md +14 -13
- data/docs/PaginatedmavenMavenRepositoryResponseList.md +14 -13
- data/docs/PatchedmavenMavenDistribution.md +20 -19
- data/docs/PatchedmavenMavenRemote.md +48 -47
- data/docs/PatchedmavenMavenRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/PulpMavenApi.md +61 -26
- data/docs/RemotesMavenApi.md +271 -132
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesMavenApi.md +300 -146
- data/docs/RepositoriesMavenVersionsApi.md +155 -83
- data/docs/RepositoryAddCachedContent.md +8 -7
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_maven_client/api/content_artifact_api.rb +31 -22
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +66 -40
- data/lib/pulp_maven_client/api/pulp_maven_api.rb +9 -7
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +81 -52
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +79 -49
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +50 -37
- data/lib/pulp_maven_client/api_client.rb +137 -102
- data/lib/pulp_maven_client/api_error.rb +2 -1
- data/lib/pulp_maven_client/configuration.rb +162 -21
- data/lib/pulp_maven_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_maven_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +34 -22
- data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +45 -25
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +34 -22
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +57 -25
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +57 -38
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +71 -42
- data/lib/pulp_maven_client/models/{maven_maven_remote_response_hidden_fields.rb → maven_maven_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +32 -37
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +45 -40
- data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +34 -24
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +40 -24
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +63 -40
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +35 -38
- data/lib/pulp_maven_client/models/policy_enum.rb +8 -5
- data/lib/pulp_maven_client/models/repair.rb +30 -22
- data/lib/pulp_maven_client/models/repository_add_cached_content.rb +30 -22
- data/lib/pulp_maven_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_maven_client/models/set_label.rb +34 -22
- data/lib/pulp_maven_client/models/set_label_response.rb +34 -22
- data/lib/pulp_maven_client/models/unset_label.rb +32 -22
- data/lib/pulp_maven_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_maven_client/version.rb +2 -2
- data/lib/pulp_maven_client.rb +2 -2
- data/pulp_maven_client.gemspec +9 -6
- data/spec/api/content_artifact_api_spec.rb +9 -8
- data/spec/api/distributions_maven_api_spec.rb +11 -10
- data/spec/api/pulp_maven_api_spec.rb +3 -3
- data/spec/api/remotes_maven_api_spec.rb +18 -16
- data/spec/api/repositories_maven_api_spec.rb +14 -13
- data/spec/api/repositories_maven_versions_api_spec.rb +16 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/maven_maven_artifact_response_spec.rb +20 -19
- data/spec/models/maven_maven_artifact_spec.rb +9 -14
- data/spec/models/maven_maven_distribution_response_spec.rb +29 -22
- data/spec/models/maven_maven_distribution_spec.rb +13 -18
- data/spec/models/{maven_maven_remote_response_hidden_fields_spec.rb → maven_maven_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/maven_maven_remote_response_spec.rb +32 -31
- data/spec/models/maven_maven_remote_spec.rb +27 -32
- data/spec/models/maven_maven_repository_response_spec.rb +22 -21
- data/spec/models/maven_maven_repository_spec.rb +11 -16
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_artifact_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedmaven_maven_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedmaven_maven_distribution_spec.rb +13 -18
- data/spec/models/patchedmaven_maven_remote_spec.rb +27 -32
- data/spec/models/patchedmaven_maven_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_cached_content_spec.rb +7 -12
- data/spec/models/repository_version_response_spec.rb +19 -18
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +78 -54
- data/docs/MavenMavenRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -57,23 +57,27 @@ module PulpMavenClient
|
|
57
57
|
# header parameters
|
58
58
|
header_params = opts[:header_params] || {}
|
59
59
|
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
61
61
|
# HTTP header 'Content-Type'
|
62
|
-
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
if !content_type.nil?
|
64
|
+
header_params['Content-Type'] = content_type
|
65
|
+
end
|
63
66
|
|
64
67
|
# form parameters
|
65
68
|
form_params = opts[:form_params] || {}
|
66
69
|
|
67
70
|
# http body (model)
|
68
|
-
post_body = opts[:
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(repository_add_cached_content)
|
69
72
|
|
70
73
|
# return_type
|
71
|
-
return_type = opts[:
|
74
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
72
75
|
|
73
76
|
# auth_names
|
74
|
-
auth_names = opts[:
|
77
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
75
78
|
|
76
79
|
new_options = opts.merge(
|
80
|
+
:operation => :"RepositoriesMavenApi.add_cached_content",
|
77
81
|
:header_params => header_params,
|
78
82
|
:query_params => query_params,
|
79
83
|
:form_params => form_params,
|
@@ -121,23 +125,27 @@ module PulpMavenClient
|
|
121
125
|
# header parameters
|
122
126
|
header_params = opts[:header_params] || {}
|
123
127
|
# HTTP header 'Accept' (if needed)
|
124
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
125
129
|
# HTTP header 'Content-Type'
|
126
|
-
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
127
134
|
|
128
135
|
# form parameters
|
129
136
|
form_params = opts[:form_params] || {}
|
130
137
|
|
131
138
|
# http body (model)
|
132
|
-
post_body = opts[:
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(maven_maven_repository)
|
133
140
|
|
134
141
|
# return_type
|
135
|
-
return_type = opts[:
|
142
|
+
return_type = opts[:debug_return_type] || 'MavenMavenRepositoryResponse'
|
136
143
|
|
137
144
|
# auth_names
|
138
|
-
auth_names = opts[:
|
145
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
139
146
|
|
140
147
|
new_options = opts.merge(
|
148
|
+
:operation => :"RepositoriesMavenApi.create",
|
141
149
|
:header_params => header_params,
|
142
150
|
:query_params => query_params,
|
143
151
|
:form_params => form_params,
|
@@ -185,21 +193,22 @@ module PulpMavenClient
|
|
185
193
|
# header parameters
|
186
194
|
header_params = opts[:header_params] || {}
|
187
195
|
# HTTP header 'Accept' (if needed)
|
188
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
189
197
|
|
190
198
|
# form parameters
|
191
199
|
form_params = opts[:form_params] || {}
|
192
200
|
|
193
201
|
# http body (model)
|
194
|
-
post_body = opts[:
|
202
|
+
post_body = opts[:debug_body]
|
195
203
|
|
196
204
|
# return_type
|
197
|
-
return_type = opts[:
|
205
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
198
206
|
|
199
207
|
# auth_names
|
200
|
-
auth_names = opts[:
|
208
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
201
209
|
|
202
210
|
new_options = opts.merge(
|
211
|
+
:operation => :"RepositoriesMavenApi.delete",
|
203
212
|
:header_params => header_params,
|
204
213
|
:query_params => query_params,
|
205
214
|
:form_params => form_params,
|
@@ -218,7 +227,7 @@ module PulpMavenClient
|
|
218
227
|
# List maven repositorys
|
219
228
|
# A ViewSet for MavenRemote.
|
220
229
|
# @param [Hash] opts the optional parameters
|
221
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
230
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
222
231
|
# @option opts [Integer] :limit Number of results to return per page.
|
223
232
|
# @option opts [String] :name Filter results where name matches value
|
224
233
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -231,10 +240,11 @@ module PulpMavenClient
|
|
231
240
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
232
241
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
233
242
|
# @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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
243
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
234
244
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
235
245
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
236
246
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
237
|
-
# @option opts [String] :q
|
247
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
238
248
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
239
249
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
240
250
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -244,7 +254,7 @@ module PulpMavenClient
|
|
244
254
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
245
255
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
246
256
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
247
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
257
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
248
258
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
249
259
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
250
260
|
# @return [PaginatedmavenMavenRepositoryResponseList]
|
@@ -256,7 +266,7 @@ module PulpMavenClient
|
|
256
266
|
# List maven repositorys
|
257
267
|
# A ViewSet for MavenRemote.
|
258
268
|
# @param [Hash] opts the optional parameters
|
259
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
269
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
260
270
|
# @option opts [Integer] :limit Number of results to return per page.
|
261
271
|
# @option opts [String] :name Filter results where name matches value
|
262
272
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -269,10 +279,11 @@ module PulpMavenClient
|
|
269
279
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
270
280
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
271
281
|
# @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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
282
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
272
283
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
273
284
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
274
285
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
275
|
-
# @option opts [String] :q
|
286
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
276
287
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
277
288
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
278
289
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -282,7 +293,7 @@ module PulpMavenClient
|
|
282
293
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
283
294
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
284
295
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
285
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
296
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
286
297
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
287
298
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
288
299
|
# @return [Array<(PaginatedmavenMavenRepositoryResponseList, Integer, Hash)>] PaginatedmavenMavenRepositoryResponseList data, response status code and response headers
|
@@ -312,6 +323,7 @@ module PulpMavenClient
|
|
312
323
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
313
324
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
314
325
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
326
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
315
327
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
316
328
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
317
329
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
@@ -332,21 +344,22 @@ module PulpMavenClient
|
|
332
344
|
# header parameters
|
333
345
|
header_params = opts[:header_params] || {}
|
334
346
|
# HTTP header 'Accept' (if needed)
|
335
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
336
348
|
|
337
349
|
# form parameters
|
338
350
|
form_params = opts[:form_params] || {}
|
339
351
|
|
340
352
|
# http body (model)
|
341
|
-
post_body = opts[:
|
353
|
+
post_body = opts[:debug_body]
|
342
354
|
|
343
355
|
# return_type
|
344
|
-
return_type = opts[:
|
356
|
+
return_type = opts[:debug_return_type] || 'PaginatedmavenMavenRepositoryResponseList'
|
345
357
|
|
346
358
|
# auth_names
|
347
|
-
auth_names = opts[:
|
359
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
348
360
|
|
349
361
|
new_options = opts.merge(
|
362
|
+
:operation => :"RepositoriesMavenApi.list",
|
350
363
|
:header_params => header_params,
|
351
364
|
:query_params => query_params,
|
352
365
|
:form_params => form_params,
|
@@ -400,23 +413,27 @@ module PulpMavenClient
|
|
400
413
|
# header parameters
|
401
414
|
header_params = opts[:header_params] || {}
|
402
415
|
# HTTP header 'Accept' (if needed)
|
403
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
416
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
404
417
|
# HTTP header 'Content-Type'
|
405
|
-
|
418
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
419
|
+
if !content_type.nil?
|
420
|
+
header_params['Content-Type'] = content_type
|
421
|
+
end
|
406
422
|
|
407
423
|
# form parameters
|
408
424
|
form_params = opts[:form_params] || {}
|
409
425
|
|
410
426
|
# http body (model)
|
411
|
-
post_body = opts[:
|
427
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedmaven_maven_repository)
|
412
428
|
|
413
429
|
# return_type
|
414
|
-
return_type = opts[:
|
430
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
415
431
|
|
416
432
|
# auth_names
|
417
|
-
auth_names = opts[:
|
433
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
418
434
|
|
419
435
|
new_options = opts.merge(
|
436
|
+
:operation => :"RepositoriesMavenApi.partial_update",
|
420
437
|
:header_params => header_params,
|
421
438
|
:query_params => query_params,
|
422
439
|
:form_params => form_params,
|
@@ -470,21 +487,22 @@ module PulpMavenClient
|
|
470
487
|
# header parameters
|
471
488
|
header_params = opts[:header_params] || {}
|
472
489
|
# HTTP header 'Accept' (if needed)
|
473
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
474
491
|
|
475
492
|
# form parameters
|
476
493
|
form_params = opts[:form_params] || {}
|
477
494
|
|
478
495
|
# http body (model)
|
479
|
-
post_body = opts[:
|
496
|
+
post_body = opts[:debug_body]
|
480
497
|
|
481
498
|
# return_type
|
482
|
-
return_type = opts[:
|
499
|
+
return_type = opts[:debug_return_type] || 'MavenMavenRepositoryResponse'
|
483
500
|
|
484
501
|
# auth_names
|
485
|
-
auth_names = opts[:
|
502
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
486
503
|
|
487
504
|
new_options = opts.merge(
|
505
|
+
:operation => :"RepositoriesMavenApi.read",
|
488
506
|
:header_params => header_params,
|
489
507
|
:query_params => query_params,
|
490
508
|
:form_params => form_params,
|
@@ -538,23 +556,27 @@ module PulpMavenClient
|
|
538
556
|
# header parameters
|
539
557
|
header_params = opts[:header_params] || {}
|
540
558
|
# HTTP header 'Accept' (if needed)
|
541
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
559
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
542
560
|
# HTTP header 'Content-Type'
|
543
|
-
|
561
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
562
|
+
if !content_type.nil?
|
563
|
+
header_params['Content-Type'] = content_type
|
564
|
+
end
|
544
565
|
|
545
566
|
# form parameters
|
546
567
|
form_params = opts[:form_params] || {}
|
547
568
|
|
548
569
|
# http body (model)
|
549
|
-
post_body = opts[:
|
570
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
550
571
|
|
551
572
|
# return_type
|
552
|
-
return_type = opts[:
|
573
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
553
574
|
|
554
575
|
# auth_names
|
555
|
-
auth_names = opts[:
|
576
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
556
577
|
|
557
578
|
new_options = opts.merge(
|
579
|
+
:operation => :"RepositoriesMavenApi.set_label",
|
558
580
|
:header_params => header_params,
|
559
581
|
:query_params => query_params,
|
560
582
|
:form_params => form_params,
|
@@ -608,23 +630,27 @@ module PulpMavenClient
|
|
608
630
|
# header parameters
|
609
631
|
header_params = opts[:header_params] || {}
|
610
632
|
# HTTP header 'Accept' (if needed)
|
611
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
633
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
612
634
|
# HTTP header 'Content-Type'
|
613
|
-
|
635
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
636
|
+
if !content_type.nil?
|
637
|
+
header_params['Content-Type'] = content_type
|
638
|
+
end
|
614
639
|
|
615
640
|
# form parameters
|
616
641
|
form_params = opts[:form_params] || {}
|
617
642
|
|
618
643
|
# http body (model)
|
619
|
-
post_body = opts[:
|
644
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
620
645
|
|
621
646
|
# return_type
|
622
|
-
return_type = opts[:
|
647
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
623
648
|
|
624
649
|
# auth_names
|
625
|
-
auth_names = opts[:
|
650
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
626
651
|
|
627
652
|
new_options = opts.merge(
|
653
|
+
:operation => :"RepositoriesMavenApi.unset_label",
|
628
654
|
:header_params => header_params,
|
629
655
|
:query_params => query_params,
|
630
656
|
:form_params => form_params,
|
@@ -678,23 +704,27 @@ module PulpMavenClient
|
|
678
704
|
# header parameters
|
679
705
|
header_params = opts[:header_params] || {}
|
680
706
|
# HTTP header 'Accept' (if needed)
|
681
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
707
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
682
708
|
# HTTP header 'Content-Type'
|
683
|
-
|
709
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
710
|
+
if !content_type.nil?
|
711
|
+
header_params['Content-Type'] = content_type
|
712
|
+
end
|
684
713
|
|
685
714
|
# form parameters
|
686
715
|
form_params = opts[:form_params] || {}
|
687
716
|
|
688
717
|
# http body (model)
|
689
|
-
post_body = opts[:
|
718
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(maven_maven_repository)
|
690
719
|
|
691
720
|
# return_type
|
692
|
-
return_type = opts[:
|
721
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
693
722
|
|
694
723
|
# auth_names
|
695
|
-
auth_names = opts[:
|
724
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
696
725
|
|
697
726
|
new_options = opts.merge(
|
727
|
+
:operation => :"RepositoriesMavenApi.update",
|
698
728
|
:header_params => header_params,
|
699
729
|
:query_params => query_params,
|
700
730
|
:form_params => form_params,
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,21 +51,22 @@ module PulpMavenClient
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = opts[:form_params] || {}
|
58
58
|
|
59
59
|
# http body (model)
|
60
|
-
post_body = opts[:
|
60
|
+
post_body = opts[:debug_body]
|
61
61
|
|
62
62
|
# return_type
|
63
|
-
return_type = opts[:
|
63
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
64
64
|
|
65
65
|
# auth_names
|
66
|
-
auth_names = opts[:
|
66
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
67
67
|
|
68
68
|
new_options = opts.merge(
|
69
|
+
:operation => :"RepositoriesMavenVersionsApi.delete",
|
69
70
|
:header_params => header_params,
|
70
71
|
:query_params => query_params,
|
71
72
|
:form_params => form_params,
|
@@ -85,8 +86,8 @@ module PulpMavenClient
|
|
85
86
|
# MavenRepositoryVersion represents a single Maven repository version.
|
86
87
|
# @param maven_maven_repository_href [String]
|
87
88
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
-
# @option opts [String] :content__in
|
89
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
90
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
90
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
92
|
# @option opts [Integer] :number Filter results where number matches value
|
92
93
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -96,14 +97,16 @@ module PulpMavenClient
|
|
96
97
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
98
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
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)
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
100
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
101
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
102
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
103
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
104
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
105
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
106
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
107
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
108
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
-
# @option opts [String] :q
|
109
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
107
110
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
111
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
112
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -116,8 +119,8 @@ module PulpMavenClient
|
|
116
119
|
# MavenRepositoryVersion represents a single Maven repository version.
|
117
120
|
# @param maven_maven_repository_href [String]
|
118
121
|
# @param [Hash] opts the optional parameters
|
119
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
120
|
-
# @option opts [String] :content__in
|
122
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
123
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
121
124
|
# @option opts [Integer] :limit Number of results to return per page.
|
122
125
|
# @option opts [Integer] :number Filter results where number matches value
|
123
126
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -127,14 +130,16 @@ module PulpMavenClient
|
|
127
130
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
128
131
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
129
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)
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
134
|
-
# @option opts [
|
135
|
-
# @option opts [
|
133
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
134
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
135
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
136
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
137
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
138
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
139
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
140
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
141
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
-
# @option opts [String] :q
|
142
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
138
143
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
144
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
145
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -156,7 +161,7 @@ module PulpMavenClient
|
|
156
161
|
# query parameters
|
157
162
|
query_params = opts[:query_params] || {}
|
158
163
|
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
159
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
164
|
+
query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
|
160
165
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
161
166
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
162
167
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
@@ -166,9 +171,11 @@ module PulpMavenClient
|
|
166
171
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
167
172
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
168
173
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
174
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
169
175
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
170
176
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
171
177
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
178
|
+
query_params[:'pulp_created__isnull'] = opts[:'pulp_created__isnull'] if !opts[:'pulp_created__isnull'].nil?
|
172
179
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
173
180
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
174
181
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
@@ -180,21 +187,22 @@ module PulpMavenClient
|
|
180
187
|
# header parameters
|
181
188
|
header_params = opts[:header_params] || {}
|
182
189
|
# HTTP header 'Accept' (if needed)
|
183
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
184
191
|
|
185
192
|
# form parameters
|
186
193
|
form_params = opts[:form_params] || {}
|
187
194
|
|
188
195
|
# http body (model)
|
189
|
-
post_body = opts[:
|
196
|
+
post_body = opts[:debug_body]
|
190
197
|
|
191
198
|
# return_type
|
192
|
-
return_type = opts[:
|
199
|
+
return_type = opts[:debug_return_type] || 'PaginatedRepositoryVersionResponseList'
|
193
200
|
|
194
201
|
# auth_names
|
195
|
-
auth_names = opts[:
|
202
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
196
203
|
|
197
204
|
new_options = opts.merge(
|
205
|
+
:operation => :"RepositoriesMavenVersionsApi.list",
|
198
206
|
:header_params => header_params,
|
199
207
|
:query_params => query_params,
|
200
208
|
:form_params => form_params,
|
@@ -248,21 +256,22 @@ module PulpMavenClient
|
|
248
256
|
# header parameters
|
249
257
|
header_params = opts[:header_params] || {}
|
250
258
|
# HTTP header 'Accept' (if needed)
|
251
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
252
260
|
|
253
261
|
# form parameters
|
254
262
|
form_params = opts[:form_params] || {}
|
255
263
|
|
256
264
|
# http body (model)
|
257
|
-
post_body = opts[:
|
265
|
+
post_body = opts[:debug_body]
|
258
266
|
|
259
267
|
# return_type
|
260
|
-
return_type = opts[:
|
268
|
+
return_type = opts[:debug_return_type] || 'RepositoryVersionResponse'
|
261
269
|
|
262
270
|
# auth_names
|
263
|
-
auth_names = opts[:
|
271
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
264
272
|
|
265
273
|
new_options = opts.merge(
|
274
|
+
:operation => :"RepositoriesMavenVersionsApi.read",
|
266
275
|
:header_params => header_params,
|
267
276
|
:query_params => query_params,
|
268
277
|
:form_params => form_params,
|
@@ -314,23 +323,27 @@ module PulpMavenClient
|
|
314
323
|
# header parameters
|
315
324
|
header_params = opts[:header_params] || {}
|
316
325
|
# HTTP header 'Accept' (if needed)
|
317
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
318
327
|
# HTTP header 'Content-Type'
|
319
|
-
|
328
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
329
|
+
if !content_type.nil?
|
330
|
+
header_params['Content-Type'] = content_type
|
331
|
+
end
|
320
332
|
|
321
333
|
# form parameters
|
322
334
|
form_params = opts[:form_params] || {}
|
323
335
|
|
324
336
|
# http body (model)
|
325
|
-
post_body = opts[:
|
337
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(repair)
|
326
338
|
|
327
339
|
# return_type
|
328
|
-
return_type = opts[:
|
340
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
329
341
|
|
330
342
|
# auth_names
|
331
|
-
auth_names = opts[:
|
343
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
332
344
|
|
333
345
|
new_options = opts.merge(
|
346
|
+
:operation => :"RepositoriesMavenVersionsApi.repair",
|
334
347
|
:header_params => header_params,
|
335
348
|
:query_params => query_params,
|
336
349
|
:form_params => form_params,
|