pulp_python_client 3.9.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/docs/ContentPackagesApi.md +17 -11
- data/docs/DistributionsPypiApi.md +130 -4
- data/docs/PatchedpythonPythonDistribution.md +2 -0
- data/docs/PatchedpythonPythonRemote.md +1 -1
- data/docs/PublicationsPypiApi.md +9 -3
- data/docs/PypiApi.md +1 -1
- data/docs/PypiLegacyApi.md +1 -1
- data/docs/PypiMetadataApi.md +1 -1
- data/docs/PypiSimpleApi.md +1 -1
- data/docs/PythonBanderRemote.md +1 -1
- data/docs/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContent.md +5 -5
- data/docs/PythonPythonRemote.md +1 -1
- data/docs/PythonPythonRemoteResponse.md +1 -1
- data/docs/RemotesPythonApi.md +131 -5
- data/docs/RepositoriesPythonApi.md +134 -4
- data/docs/RepositoriesPythonVersionsApi.md +7 -3
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +20 -11
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +164 -3
- data/lib/pulp_python_client/api/publications_pypi_api.rb +11 -2
- data/lib/pulp_python_client/api/remotes_python_api.rb +165 -4
- data/lib/pulp_python_client/api/repositories_python_api.rb +169 -2
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +8 -2
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +13 -1
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_distribution.rb +13 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +13 -1
- data/lib/pulp_python_client/models/python_python_package_content.rb +13 -13
- data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
- data/lib/pulp_python_client/models/set_label.rb +252 -0
- data/lib/pulp_python_client/models/set_label_response.rb +243 -0
- data/lib/pulp_python_client/models/unset_label.rb +242 -0
- data/lib/pulp_python_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/content_packages_api_spec.rb +8 -5
- data/spec/api/distributions_pypi_api_spec.rb +34 -1
- data/spec/api/publications_pypi_api_spec.rb +4 -1
- data/spec/api/remotes_python_api_spec.rb +35 -2
- data/spec/api/repositories_python_api_spec.rb +36 -1
- data/spec/api/repositories_python_versions_api_spec.rb +3 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_spec.rb +4 -4
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +50 -34
@@ -156,11 +156,18 @@ module PulpPythonClient
|
|
156
156
|
# @option opts [String] :name Filter results where name matches value
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
159
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
159
160
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
161
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
162
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
163
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
160
164
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
161
165
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
|
-
# @option opts [Array<String>] :ordering Ordering
|
166
|
+
# @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) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
167
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
168
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
163
169
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
170
|
+
# @option opts [String] :q
|
164
171
|
# @option opts [String] :repository Filter results where repository matches value
|
165
172
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
166
173
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -183,11 +190,18 @@ module PulpPythonClient
|
|
183
190
|
# @option opts [String] :name Filter results where name matches value
|
184
191
|
# @option opts [String] :name__contains Filter results where name contains value
|
185
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
193
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
186
194
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
195
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
196
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
197
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
187
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
188
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
189
|
-
# @option opts [Array<String>] :ordering Ordering
|
200
|
+
# @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) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
201
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
202
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
190
203
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
204
|
+
# @option opts [String] :q
|
191
205
|
# @option opts [String] :repository Filter results where repository matches value
|
192
206
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
193
207
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -198,7 +212,7 @@ module PulpPythonClient
|
|
198
212
|
if @api_client.config.debugging
|
199
213
|
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list ...'
|
200
214
|
end
|
201
|
-
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
215
|
+
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
202
216
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
203
217
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
204
218
|
end
|
@@ -215,11 +229,18 @@ module PulpPythonClient
|
|
215
229
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
216
230
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
217
231
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
232
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
218
233
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
234
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
235
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
236
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
219
237
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
220
238
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
221
239
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
240
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
241
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
222
242
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
243
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
223
244
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
224
245
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
225
246
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
@@ -397,6 +418,146 @@ module PulpPythonClient
|
|
397
418
|
return data, status_code, headers
|
398
419
|
end
|
399
420
|
|
421
|
+
# Set a label
|
422
|
+
# Set a single pulp_label on the object to a specific value or null.
|
423
|
+
# @param python_python_distribution_href [String]
|
424
|
+
# @param set_label [SetLabel]
|
425
|
+
# @param [Hash] opts the optional parameters
|
426
|
+
# @return [SetLabelResponse]
|
427
|
+
def set_label(python_python_distribution_href, set_label, opts = {})
|
428
|
+
data, _status_code, _headers = set_label_with_http_info(python_python_distribution_href, set_label, opts)
|
429
|
+
data
|
430
|
+
end
|
431
|
+
|
432
|
+
# Set a label
|
433
|
+
# Set a single pulp_label on the object to a specific value or null.
|
434
|
+
# @param python_python_distribution_href [String]
|
435
|
+
# @param set_label [SetLabel]
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
438
|
+
def set_label_with_http_info(python_python_distribution_href, set_label, opts = {})
|
439
|
+
if @api_client.config.debugging
|
440
|
+
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.set_label ...'
|
441
|
+
end
|
442
|
+
# verify the required parameter 'python_python_distribution_href' is set
|
443
|
+
if @api_client.config.client_side_validation && python_python_distribution_href.nil?
|
444
|
+
fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.set_label"
|
445
|
+
end
|
446
|
+
# verify the required parameter 'set_label' is set
|
447
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
448
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsPypiApi.set_label"
|
449
|
+
end
|
450
|
+
# resource path
|
451
|
+
local_var_path = '{python_python_distribution_href}set_label/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
|
452
|
+
|
453
|
+
# query parameters
|
454
|
+
query_params = opts[:query_params] || {}
|
455
|
+
|
456
|
+
# header parameters
|
457
|
+
header_params = opts[:header_params] || {}
|
458
|
+
# HTTP header 'Accept' (if needed)
|
459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
460
|
+
# HTTP header 'Content-Type'
|
461
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
462
|
+
|
463
|
+
# form parameters
|
464
|
+
form_params = opts[:form_params] || {}
|
465
|
+
|
466
|
+
# http body (model)
|
467
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
468
|
+
|
469
|
+
# return_type
|
470
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
471
|
+
|
472
|
+
# auth_names
|
473
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
474
|
+
|
475
|
+
new_options = opts.merge(
|
476
|
+
:header_params => header_params,
|
477
|
+
:query_params => query_params,
|
478
|
+
:form_params => form_params,
|
479
|
+
:body => post_body,
|
480
|
+
:auth_names => auth_names,
|
481
|
+
:return_type => return_type
|
482
|
+
)
|
483
|
+
|
484
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
485
|
+
if @api_client.config.debugging
|
486
|
+
@api_client.config.logger.debug "API called: DistributionsPypiApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
487
|
+
end
|
488
|
+
return data, status_code, headers
|
489
|
+
end
|
490
|
+
|
491
|
+
# Unset a label
|
492
|
+
# Unset a single pulp_label on the object.
|
493
|
+
# @param python_python_distribution_href [String]
|
494
|
+
# @param unset_label [UnsetLabel]
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @return [UnsetLabelResponse]
|
497
|
+
def unset_label(python_python_distribution_href, unset_label, opts = {})
|
498
|
+
data, _status_code, _headers = unset_label_with_http_info(python_python_distribution_href, unset_label, opts)
|
499
|
+
data
|
500
|
+
end
|
501
|
+
|
502
|
+
# Unset a label
|
503
|
+
# Unset a single pulp_label on the object.
|
504
|
+
# @param python_python_distribution_href [String]
|
505
|
+
# @param unset_label [UnsetLabel]
|
506
|
+
# @param [Hash] opts the optional parameters
|
507
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
508
|
+
def unset_label_with_http_info(python_python_distribution_href, unset_label, opts = {})
|
509
|
+
if @api_client.config.debugging
|
510
|
+
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.unset_label ...'
|
511
|
+
end
|
512
|
+
# verify the required parameter 'python_python_distribution_href' is set
|
513
|
+
if @api_client.config.client_side_validation && python_python_distribution_href.nil?
|
514
|
+
fail ArgumentError, "Missing the required parameter 'python_python_distribution_href' when calling DistributionsPypiApi.unset_label"
|
515
|
+
end
|
516
|
+
# verify the required parameter 'unset_label' is set
|
517
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
518
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsPypiApi.unset_label"
|
519
|
+
end
|
520
|
+
# resource path
|
521
|
+
local_var_path = '{python_python_distribution_href}unset_label/'.sub('{' + 'python_python_distribution_href' + '}', CGI.escape(python_python_distribution_href.to_s).gsub('%2F', '/'))
|
522
|
+
|
523
|
+
# query parameters
|
524
|
+
query_params = opts[:query_params] || {}
|
525
|
+
|
526
|
+
# header parameters
|
527
|
+
header_params = opts[:header_params] || {}
|
528
|
+
# HTTP header 'Accept' (if needed)
|
529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
530
|
+
# HTTP header 'Content-Type'
|
531
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
532
|
+
|
533
|
+
# form parameters
|
534
|
+
form_params = opts[:form_params] || {}
|
535
|
+
|
536
|
+
# http body (model)
|
537
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
538
|
+
|
539
|
+
# return_type
|
540
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
541
|
+
|
542
|
+
# auth_names
|
543
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
544
|
+
|
545
|
+
new_options = opts.merge(
|
546
|
+
:header_params => header_params,
|
547
|
+
:query_params => query_params,
|
548
|
+
:form_params => form_params,
|
549
|
+
:body => post_body,
|
550
|
+
:auth_names => auth_names,
|
551
|
+
:return_type => return_type
|
552
|
+
)
|
553
|
+
|
554
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
555
|
+
if @api_client.config.debugging
|
556
|
+
@api_client.config.logger.debug "API called: DistributionsPypiApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
557
|
+
end
|
558
|
+
return data, status_code, headers
|
559
|
+
end
|
560
|
+
|
400
561
|
# Update a python distribution
|
401
562
|
# Trigger an asynchronous update task
|
402
563
|
# @param python_python_distribution_href [String]
|
@@ -150,13 +150,16 @@ module PulpPythonClient
|
|
150
150
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
-
# @option opts [Array<String>] :ordering Ordering
|
153
|
+
# @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) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
154
154
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
155
155
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
156
156
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
157
157
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
158
158
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
161
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
162
|
+
# @option opts [String] :q
|
160
163
|
# @option opts [String] :repository Repository referenced by HREF
|
161
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
162
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -174,13 +177,16 @@ module PulpPythonClient
|
|
174
177
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
175
178
|
# @option opts [Integer] :limit Number of results to return per page.
|
176
179
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
177
|
-
# @option opts [Array<String>] :ordering Ordering
|
180
|
+
# @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) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
178
181
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
179
182
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
180
183
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
181
184
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
182
185
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
183
186
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
187
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
188
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
189
|
+
# @option opts [String] :q
|
184
190
|
# @option opts [String] :repository Repository referenced by HREF
|
185
191
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
186
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -210,6 +216,9 @@ module PulpPythonClient
|
|
210
216
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
211
217
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
212
218
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
219
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
220
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
221
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
213
222
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
214
223
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
215
224
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
@@ -150,7 +150,7 @@ module PulpPythonClient
|
|
150
150
|
# @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
|
151
151
|
# @param name [String] A unique name for this remote
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
|
-
# @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
153
|
+
# @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
154
154
|
# @return [PythonPythonRemoteResponse]
|
155
155
|
def from_bandersnatch(config, name, opts = {})
|
156
156
|
data, _status_code, _headers = from_bandersnatch_with_http_info(config, name, opts)
|
@@ -162,7 +162,7 @@ module PulpPythonClient
|
|
162
162
|
# @param config [File] A Bandersnatch config that may be used to construct a Python Remote.
|
163
163
|
# @param name [String] A unique name for this remote
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
|
-
# @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
165
|
+
# @option opts [PolicyEnum] :policy The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
166
166
|
# @return [Array<(PythonPythonRemoteResponse, Integer, Hash)>] PythonPythonRemoteResponse data, response status code and response headers
|
167
167
|
def from_bandersnatch_with_http_info(config, name, opts = {})
|
168
168
|
if @api_client.config.debugging
|
@@ -231,10 +231,16 @@ module PulpPythonClient
|
|
231
231
|
# @option opts [String] :name Filter results where name matches value
|
232
232
|
# @option opts [String] :name__contains Filter results where name contains value
|
233
233
|
# @option opts [String] :name__icontains Filter results where name contains value
|
234
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
234
235
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
236
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
237
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
238
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
235
239
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
236
240
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
237
|
-
# @option opts [Array<String>] :ordering Ordering
|
241
|
+
# @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) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
242
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
243
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
238
244
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
239
245
|
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
240
246
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
@@ -242,6 +248,7 @@ module PulpPythonClient
|
|
242
248
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
243
249
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
244
250
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
251
|
+
# @option opts [String] :q
|
245
252
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
246
253
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
247
254
|
# @return [PaginatedpythonPythonRemoteResponseList]
|
@@ -257,10 +264,16 @@ module PulpPythonClient
|
|
257
264
|
# @option opts [String] :name Filter results where name matches value
|
258
265
|
# @option opts [String] :name__contains Filter results where name contains value
|
259
266
|
# @option opts [String] :name__icontains Filter results where name contains value
|
267
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
260
268
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
269
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
270
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
271
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
261
272
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
262
273
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
263
|
-
# @option opts [Array<String>] :ordering Ordering
|
274
|
+
# @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) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
275
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
276
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
264
277
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
265
278
|
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
266
279
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
@@ -268,6 +281,7 @@ module PulpPythonClient
|
|
268
281
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
269
282
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
270
283
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
284
|
+
# @option opts [String] :q
|
271
285
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
272
286
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
273
287
|
# @return [Array<(PaginatedpythonPythonRemoteResponseList, Integer, Hash)>] PaginatedpythonPythonRemoteResponseList data, response status code and response headers
|
@@ -288,10 +302,16 @@ module PulpPythonClient
|
|
288
302
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
289
303
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
290
304
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
305
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
291
306
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
307
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
308
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
309
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
292
310
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
293
311
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
294
312
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
313
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
314
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
295
315
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
296
316
|
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
297
317
|
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
@@ -299,6 +319,7 @@ module PulpPythonClient
|
|
299
319
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
300
320
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
301
321
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
322
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
302
323
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
303
324
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
304
325
|
|
@@ -473,6 +494,146 @@ module PulpPythonClient
|
|
473
494
|
return data, status_code, headers
|
474
495
|
end
|
475
496
|
|
497
|
+
# Set a label
|
498
|
+
# Set a single pulp_label on the object to a specific value or null.
|
499
|
+
# @param python_python_remote_href [String]
|
500
|
+
# @param set_label [SetLabel]
|
501
|
+
# @param [Hash] opts the optional parameters
|
502
|
+
# @return [SetLabelResponse]
|
503
|
+
def set_label(python_python_remote_href, set_label, opts = {})
|
504
|
+
data, _status_code, _headers = set_label_with_http_info(python_python_remote_href, set_label, opts)
|
505
|
+
data
|
506
|
+
end
|
507
|
+
|
508
|
+
# Set a label
|
509
|
+
# Set a single pulp_label on the object to a specific value or null.
|
510
|
+
# @param python_python_remote_href [String]
|
511
|
+
# @param set_label [SetLabel]
|
512
|
+
# @param [Hash] opts the optional parameters
|
513
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
514
|
+
def set_label_with_http_info(python_python_remote_href, set_label, opts = {})
|
515
|
+
if @api_client.config.debugging
|
516
|
+
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.set_label ...'
|
517
|
+
end
|
518
|
+
# verify the required parameter 'python_python_remote_href' is set
|
519
|
+
if @api_client.config.client_side_validation && python_python_remote_href.nil?
|
520
|
+
fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.set_label"
|
521
|
+
end
|
522
|
+
# verify the required parameter 'set_label' is set
|
523
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
524
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesPythonApi.set_label"
|
525
|
+
end
|
526
|
+
# resource path
|
527
|
+
local_var_path = '{python_python_remote_href}set_label/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
|
528
|
+
|
529
|
+
# query parameters
|
530
|
+
query_params = opts[:query_params] || {}
|
531
|
+
|
532
|
+
# header parameters
|
533
|
+
header_params = opts[:header_params] || {}
|
534
|
+
# HTTP header 'Accept' (if needed)
|
535
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
536
|
+
# HTTP header 'Content-Type'
|
537
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
538
|
+
|
539
|
+
# form parameters
|
540
|
+
form_params = opts[:form_params] || {}
|
541
|
+
|
542
|
+
# http body (model)
|
543
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
544
|
+
|
545
|
+
# return_type
|
546
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
547
|
+
|
548
|
+
# auth_names
|
549
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
550
|
+
|
551
|
+
new_options = opts.merge(
|
552
|
+
:header_params => header_params,
|
553
|
+
:query_params => query_params,
|
554
|
+
:form_params => form_params,
|
555
|
+
:body => post_body,
|
556
|
+
:auth_names => auth_names,
|
557
|
+
:return_type => return_type
|
558
|
+
)
|
559
|
+
|
560
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
561
|
+
if @api_client.config.debugging
|
562
|
+
@api_client.config.logger.debug "API called: RemotesPythonApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
563
|
+
end
|
564
|
+
return data, status_code, headers
|
565
|
+
end
|
566
|
+
|
567
|
+
# Unset a label
|
568
|
+
# Unset a single pulp_label on the object.
|
569
|
+
# @param python_python_remote_href [String]
|
570
|
+
# @param unset_label [UnsetLabel]
|
571
|
+
# @param [Hash] opts the optional parameters
|
572
|
+
# @return [UnsetLabelResponse]
|
573
|
+
def unset_label(python_python_remote_href, unset_label, opts = {})
|
574
|
+
data, _status_code, _headers = unset_label_with_http_info(python_python_remote_href, unset_label, opts)
|
575
|
+
data
|
576
|
+
end
|
577
|
+
|
578
|
+
# Unset a label
|
579
|
+
# Unset a single pulp_label on the object.
|
580
|
+
# @param python_python_remote_href [String]
|
581
|
+
# @param unset_label [UnsetLabel]
|
582
|
+
# @param [Hash] opts the optional parameters
|
583
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
584
|
+
def unset_label_with_http_info(python_python_remote_href, unset_label, opts = {})
|
585
|
+
if @api_client.config.debugging
|
586
|
+
@api_client.config.logger.debug 'Calling API: RemotesPythonApi.unset_label ...'
|
587
|
+
end
|
588
|
+
# verify the required parameter 'python_python_remote_href' is set
|
589
|
+
if @api_client.config.client_side_validation && python_python_remote_href.nil?
|
590
|
+
fail ArgumentError, "Missing the required parameter 'python_python_remote_href' when calling RemotesPythonApi.unset_label"
|
591
|
+
end
|
592
|
+
# verify the required parameter 'unset_label' is set
|
593
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
594
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesPythonApi.unset_label"
|
595
|
+
end
|
596
|
+
# resource path
|
597
|
+
local_var_path = '{python_python_remote_href}unset_label/'.sub('{' + 'python_python_remote_href' + '}', CGI.escape(python_python_remote_href.to_s).gsub('%2F', '/'))
|
598
|
+
|
599
|
+
# query parameters
|
600
|
+
query_params = opts[:query_params] || {}
|
601
|
+
|
602
|
+
# header parameters
|
603
|
+
header_params = opts[:header_params] || {}
|
604
|
+
# HTTP header 'Accept' (if needed)
|
605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
606
|
+
# HTTP header 'Content-Type'
|
607
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
608
|
+
|
609
|
+
# form parameters
|
610
|
+
form_params = opts[:form_params] || {}
|
611
|
+
|
612
|
+
# http body (model)
|
613
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
614
|
+
|
615
|
+
# return_type
|
616
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
617
|
+
|
618
|
+
# auth_names
|
619
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
620
|
+
|
621
|
+
new_options = opts.merge(
|
622
|
+
:header_params => header_params,
|
623
|
+
:query_params => query_params,
|
624
|
+
:form_params => form_params,
|
625
|
+
:body => post_body,
|
626
|
+
:auth_names => auth_names,
|
627
|
+
:return_type => return_type
|
628
|
+
)
|
629
|
+
|
630
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
631
|
+
if @api_client.config.debugging
|
632
|
+
@api_client.config.logger.debug "API called: RemotesPythonApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
633
|
+
end
|
634
|
+
return data, status_code, headers
|
635
|
+
end
|
636
|
+
|
476
637
|
# Update a python remote
|
477
638
|
# Trigger an asynchronous update task
|
478
639
|
# @param python_python_remote_href [String]
|