pulp_python_client 3.10.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 +9 -7
- data/docs/DistributionsPypiApi.md +126 -4
- data/docs/PatchedpythonPythonDistribution.md +2 -0
- data/docs/PublicationsPypiApi.md +3 -1
- 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/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContent.md +5 -5
- data/docs/RemotesPythonApi.md +123 -1
- data/docs/RepositoriesPythonApi.md +124 -2
- data/docs/RepositoriesPythonVersionsApi.md +3 -1
- 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 +10 -7
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +158 -3
- data/lib/pulp_python_client/api/publications_pypi_api.rb +3 -0
- data/lib/pulp_python_client/api/remotes_python_api.rb +155 -0
- data/lib/pulp_python_client/api/repositories_python_api.rb +155 -0
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +3 -0
- 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/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/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 +4 -3
- data/spec/api/distributions_pypi_api_spec.rb +32 -1
- data/spec/api/publications_pypi_api_spec.rb +1 -0
- data/spec/api/remotes_python_api_spec.rb +31 -0
- data/spec/api/repositories_python_api_spec.rb +31 -0
- data/spec/api/repositories_python_versions_api_spec.rb +1 -0
- 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 +48 -32
@@ -156,13 +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 * `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) * `pk` - Pk * `-pk` - Pk (descending)
|
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)
|
163
167
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
164
168
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
165
169
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
170
|
+
# @option opts [String] :q
|
166
171
|
# @option opts [String] :repository Filter results where repository matches value
|
167
172
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
168
173
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -185,13 +190,18 @@ module PulpPythonClient
|
|
185
190
|
# @option opts [String] :name Filter results where name matches value
|
186
191
|
# @option opts [String] :name__contains Filter results where name contains value
|
187
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
193
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
188
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
|
189
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
190
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
191
|
-
# @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) * `pk` - Pk * `-pk` - Pk (descending)
|
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)
|
192
201
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
193
202
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
194
203
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
204
|
+
# @option opts [String] :q
|
195
205
|
# @option opts [String] :repository Filter results where repository matches value
|
196
206
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
197
207
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -202,7 +212,7 @@ module PulpPythonClient
|
|
202
212
|
if @api_client.config.debugging
|
203
213
|
@api_client.config.logger.debug 'Calling API: DistributionsPypiApi.list ...'
|
204
214
|
end
|
205
|
-
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"]
|
206
216
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
207
217
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
208
218
|
end
|
@@ -219,13 +229,18 @@ module PulpPythonClient
|
|
219
229
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
220
230
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
221
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?
|
222
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?
|
223
237
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
224
238
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
225
239
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
226
240
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
227
241
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
228
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?
|
229
244
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
230
245
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
231
246
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
@@ -403,6 +418,146 @@ module PulpPythonClient
|
|
403
418
|
return data, status_code, headers
|
404
419
|
end
|
405
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
|
+
|
406
561
|
# Update a python distribution
|
407
562
|
# Trigger an asynchronous update task
|
408
563
|
# @param python_python_distribution_href [String]
|
@@ -159,6 +159,7 @@ module PulpPythonClient
|
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
160
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
161
161
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
162
|
+
# @option opts [String] :q
|
162
163
|
# @option opts [String] :repository Repository referenced by HREF
|
163
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
164
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -185,6 +186,7 @@ module PulpPythonClient
|
|
185
186
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
186
187
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
187
188
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
189
|
+
# @option opts [String] :q
|
188
190
|
# @option opts [String] :repository Repository referenced by HREF
|
189
191
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
190
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -216,6 +218,7 @@ module PulpPythonClient
|
|
216
218
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
217
219
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
218
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?
|
219
222
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
220
223
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
221
224
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
@@ -231,7 +231,11 @@ 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
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)
|
@@ -244,6 +248,7 @@ module PulpPythonClient
|
|
244
248
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
245
249
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
246
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
|
247
252
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
248
253
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
249
254
|
# @return [PaginatedpythonPythonRemoteResponseList]
|
@@ -259,7 +264,11 @@ module PulpPythonClient
|
|
259
264
|
# @option opts [String] :name Filter results where name matches value
|
260
265
|
# @option opts [String] :name__contains Filter results where name contains value
|
261
266
|
# @option opts [String] :name__icontains Filter results where name contains value
|
267
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
262
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
|
263
272
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
264
273
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
265
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)
|
@@ -272,6 +281,7 @@ module PulpPythonClient
|
|
272
281
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
273
282
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
274
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
|
275
285
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
276
286
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
277
287
|
# @return [Array<(PaginatedpythonPythonRemoteResponseList, Integer, Hash)>] PaginatedpythonPythonRemoteResponseList data, response status code and response headers
|
@@ -292,7 +302,11 @@ module PulpPythonClient
|
|
292
302
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
293
303
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
294
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?
|
295
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?
|
296
310
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
297
311
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
298
312
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -305,6 +319,7 @@ module PulpPythonClient
|
|
305
319
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
306
320
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
307
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?
|
308
323
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
309
324
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
310
325
|
|
@@ -479,6 +494,146 @@ module PulpPythonClient
|
|
479
494
|
return data, status_code, headers
|
480
495
|
end
|
481
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
|
+
|
482
637
|
# Update a python remote
|
483
638
|
# Trigger an asynchronous update task
|
484
639
|
# @param python_python_remote_href [String]
|