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
@@ -148,15 +148,23 @@ module PulpPythonClient
|
|
148
148
|
# List python repositorys
|
149
149
|
# PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
151
152
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
153
|
# @option opts [String] :name Filter results where name matches value
|
153
154
|
# @option opts [String] :name__contains Filter results where name contains value
|
154
155
|
# @option opts [String] :name__icontains Filter results where name contains value
|
156
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
155
157
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
158
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
159
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
160
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
156
161
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
157
162
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
|
-
# @option opts [Array<String>] :ordering Ordering
|
163
|
+
# @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)
|
164
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
165
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
159
166
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
167
|
+
# @option opts [String] :q
|
160
168
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
161
169
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
162
170
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -166,6 +174,7 @@ module PulpPythonClient
|
|
166
174
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
167
175
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
168
176
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
177
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
169
178
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
170
179
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
171
180
|
# @return [PaginatedpythonPythonRepositoryResponseList]
|
@@ -177,15 +186,23 @@ module PulpPythonClient
|
|
177
186
|
# List python repositorys
|
178
187
|
# PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
|
179
188
|
# @param [Hash] opts the optional parameters
|
189
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
180
190
|
# @option opts [Integer] :limit Number of results to return per page.
|
181
191
|
# @option opts [String] :name Filter results where name matches value
|
182
192
|
# @option opts [String] :name__contains Filter results where name contains value
|
183
193
|
# @option opts [String] :name__icontains Filter results where name contains value
|
194
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
184
195
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
196
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
197
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
198
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
185
199
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
186
200
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
187
|
-
# @option opts [Array<String>] :ordering Ordering
|
201
|
+
# @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)
|
202
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
203
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
188
204
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
205
|
+
# @option opts [String] :q
|
189
206
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
190
207
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
191
208
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -195,6 +212,7 @@ module PulpPythonClient
|
|
195
212
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
196
213
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
197
214
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
215
|
+
# @option opts [String] :with_content Content Unit referenced by HREF
|
198
216
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
199
217
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
200
218
|
# @return [Array<(PaginatedpythonPythonRepositoryResponseList, Integer, Hash)>] PaginatedpythonPythonRepositoryResponseList data, response status code and response headers
|
@@ -211,15 +229,23 @@ module PulpPythonClient
|
|
211
229
|
|
212
230
|
# query parameters
|
213
231
|
query_params = opts[:query_params] || {}
|
232
|
+
query_params[:'latest_with_content'] = opts[:'latest_with_content'] if !opts[:'latest_with_content'].nil?
|
214
233
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
215
234
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
216
235
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
217
236
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
237
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
218
238
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
239
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
240
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
241
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
219
242
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
220
243
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
221
244
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
245
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
246
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
222
247
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
248
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
223
249
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
224
250
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
225
251
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -229,6 +255,7 @@ module PulpPythonClient
|
|
229
255
|
query_params[:'retain_repo_versions__lte'] = opts[:'retain_repo_versions__lte'] if !opts[:'retain_repo_versions__lte'].nil?
|
230
256
|
query_params[:'retain_repo_versions__ne'] = opts[:'retain_repo_versions__ne'] if !opts[:'retain_repo_versions__ne'].nil?
|
231
257
|
query_params[:'retain_repo_versions__range'] = @api_client.build_collection_param(opts[:'retain_repo_versions__range'], :csv) if !opts[:'retain_repo_versions__range'].nil?
|
258
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
232
259
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
233
260
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
234
261
|
|
@@ -473,6 +500,76 @@ module PulpPythonClient
|
|
473
500
|
return data, status_code, headers
|
474
501
|
end
|
475
502
|
|
503
|
+
# Set a label
|
504
|
+
# Set a single pulp_label on the object to a specific value or null.
|
505
|
+
# @param python_python_repository_href [String]
|
506
|
+
# @param set_label [SetLabel]
|
507
|
+
# @param [Hash] opts the optional parameters
|
508
|
+
# @return [SetLabelResponse]
|
509
|
+
def set_label(python_python_repository_href, set_label, opts = {})
|
510
|
+
data, _status_code, _headers = set_label_with_http_info(python_python_repository_href, set_label, opts)
|
511
|
+
data
|
512
|
+
end
|
513
|
+
|
514
|
+
# Set a label
|
515
|
+
# Set a single pulp_label on the object to a specific value or null.
|
516
|
+
# @param python_python_repository_href [String]
|
517
|
+
# @param set_label [SetLabel]
|
518
|
+
# @param [Hash] opts the optional parameters
|
519
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
520
|
+
def set_label_with_http_info(python_python_repository_href, set_label, opts = {})
|
521
|
+
if @api_client.config.debugging
|
522
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.set_label ...'
|
523
|
+
end
|
524
|
+
# verify the required parameter 'python_python_repository_href' is set
|
525
|
+
if @api_client.config.client_side_validation && python_python_repository_href.nil?
|
526
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.set_label"
|
527
|
+
end
|
528
|
+
# verify the required parameter 'set_label' is set
|
529
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
530
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesPythonApi.set_label"
|
531
|
+
end
|
532
|
+
# resource path
|
533
|
+
local_var_path = '{python_python_repository_href}set_label/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
|
534
|
+
|
535
|
+
# query parameters
|
536
|
+
query_params = opts[:query_params] || {}
|
537
|
+
|
538
|
+
# header parameters
|
539
|
+
header_params = opts[:header_params] || {}
|
540
|
+
# HTTP header 'Accept' (if needed)
|
541
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
542
|
+
# HTTP header 'Content-Type'
|
543
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
544
|
+
|
545
|
+
# form parameters
|
546
|
+
form_params = opts[:form_params] || {}
|
547
|
+
|
548
|
+
# http body (model)
|
549
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
550
|
+
|
551
|
+
# return_type
|
552
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
553
|
+
|
554
|
+
# auth_names
|
555
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
556
|
+
|
557
|
+
new_options = opts.merge(
|
558
|
+
:header_params => header_params,
|
559
|
+
:query_params => query_params,
|
560
|
+
:form_params => form_params,
|
561
|
+
:body => post_body,
|
562
|
+
:auth_names => auth_names,
|
563
|
+
:return_type => return_type
|
564
|
+
)
|
565
|
+
|
566
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
567
|
+
if @api_client.config.debugging
|
568
|
+
@api_client.config.logger.debug "API called: RepositoriesPythonApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
569
|
+
end
|
570
|
+
return data, status_code, headers
|
571
|
+
end
|
572
|
+
|
476
573
|
# Sync from remote
|
477
574
|
# Trigger an asynchronous task to sync python content. The sync task will retrieve Python content from the specified `Remote` and update the specified `Respository`, creating a new `RepositoryVersion`.
|
478
575
|
# @param python_python_repository_href [String]
|
@@ -543,6 +640,76 @@ module PulpPythonClient
|
|
543
640
|
return data, status_code, headers
|
544
641
|
end
|
545
642
|
|
643
|
+
# Unset a label
|
644
|
+
# Unset a single pulp_label on the object.
|
645
|
+
# @param python_python_repository_href [String]
|
646
|
+
# @param unset_label [UnsetLabel]
|
647
|
+
# @param [Hash] opts the optional parameters
|
648
|
+
# @return [UnsetLabelResponse]
|
649
|
+
def unset_label(python_python_repository_href, unset_label, opts = {})
|
650
|
+
data, _status_code, _headers = unset_label_with_http_info(python_python_repository_href, unset_label, opts)
|
651
|
+
data
|
652
|
+
end
|
653
|
+
|
654
|
+
# Unset a label
|
655
|
+
# Unset a single pulp_label on the object.
|
656
|
+
# @param python_python_repository_href [String]
|
657
|
+
# @param unset_label [UnsetLabel]
|
658
|
+
# @param [Hash] opts the optional parameters
|
659
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
660
|
+
def unset_label_with_http_info(python_python_repository_href, unset_label, opts = {})
|
661
|
+
if @api_client.config.debugging
|
662
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.unset_label ...'
|
663
|
+
end
|
664
|
+
# verify the required parameter 'python_python_repository_href' is set
|
665
|
+
if @api_client.config.client_side_validation && python_python_repository_href.nil?
|
666
|
+
fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonApi.unset_label"
|
667
|
+
end
|
668
|
+
# verify the required parameter 'unset_label' is set
|
669
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
670
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesPythonApi.unset_label"
|
671
|
+
end
|
672
|
+
# resource path
|
673
|
+
local_var_path = '{python_python_repository_href}unset_label/'.sub('{' + 'python_python_repository_href' + '}', CGI.escape(python_python_repository_href.to_s).gsub('%2F', '/'))
|
674
|
+
|
675
|
+
# query parameters
|
676
|
+
query_params = opts[:query_params] || {}
|
677
|
+
|
678
|
+
# header parameters
|
679
|
+
header_params = opts[:header_params] || {}
|
680
|
+
# HTTP header 'Accept' (if needed)
|
681
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
682
|
+
# HTTP header 'Content-Type'
|
683
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
684
|
+
|
685
|
+
# form parameters
|
686
|
+
form_params = opts[:form_params] || {}
|
687
|
+
|
688
|
+
# http body (model)
|
689
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
690
|
+
|
691
|
+
# return_type
|
692
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
693
|
+
|
694
|
+
# auth_names
|
695
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
696
|
+
|
697
|
+
new_options = opts.merge(
|
698
|
+
:header_params => header_params,
|
699
|
+
:query_params => query_params,
|
700
|
+
:form_params => form_params,
|
701
|
+
:body => post_body,
|
702
|
+
:auth_names => auth_names,
|
703
|
+
:return_type => return_type
|
704
|
+
)
|
705
|
+
|
706
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
707
|
+
if @api_client.config.debugging
|
708
|
+
@api_client.config.logger.debug "API called: RepositoriesPythonApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
709
|
+
end
|
710
|
+
return data, status_code, headers
|
711
|
+
end
|
712
|
+
|
546
713
|
# Update a python repository
|
547
714
|
# Trigger an asynchronous update task
|
548
715
|
# @param python_python_repository_href [String]
|
@@ -95,13 +95,15 @@ module PulpPythonClient
|
|
95
95
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
96
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
|
-
# @option opts [Array<String>] :ordering Ordering
|
98
|
+
# @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
99
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
100
100
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
101
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
102
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :q
|
105
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
106
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
107
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -124,13 +126,15 @@ module PulpPythonClient
|
|
124
126
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
127
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
128
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
|
-
# @option opts [Array<String>] :ordering Ordering
|
129
|
+
# @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)
|
128
130
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
129
131
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
132
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
133
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
134
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
135
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
136
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -168,6 +172,8 @@ module PulpPythonClient
|
|
168
172
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
169
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
170
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
175
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
171
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
172
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
173
179
|
|
@@ -127,7 +127,7 @@ module PulpPythonClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'http'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -210,7 +210,7 @@ module PulpPythonClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -21,6 +21,9 @@ module PulpPythonClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
# Whether this distribution should be shown in the content app.
|
25
|
+
attr_accessor :hidden
|
26
|
+
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -43,6 +46,7 @@ module PulpPythonClient
|
|
43
46
|
{
|
44
47
|
:'base_path' => :'base_path',
|
45
48
|
:'content_guard' => :'content_guard',
|
49
|
+
:'hidden' => :'hidden',
|
46
50
|
:'pulp_labels' => :'pulp_labels',
|
47
51
|
:'name' => :'name',
|
48
52
|
:'repository' => :'repository',
|
@@ -57,6 +61,7 @@ module PulpPythonClient
|
|
57
61
|
{
|
58
62
|
:'base_path' => :'String',
|
59
63
|
:'content_guard' => :'String',
|
64
|
+
:'hidden' => :'Boolean',
|
60
65
|
:'pulp_labels' => :'Hash<String, String>',
|
61
66
|
:'name' => :'String',
|
62
67
|
:'repository' => :'String',
|
@@ -99,6 +104,12 @@ module PulpPythonClient
|
|
99
104
|
self.content_guard = attributes[:'content_guard']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.key?(:'hidden')
|
108
|
+
self.hidden = attributes[:'hidden']
|
109
|
+
else
|
110
|
+
self.hidden = false
|
111
|
+
end
|
112
|
+
|
102
113
|
if attributes.key?(:'pulp_labels')
|
103
114
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
115
|
self.pulp_labels = value
|
@@ -178,6 +189,7 @@ module PulpPythonClient
|
|
178
189
|
self.class == o.class &&
|
179
190
|
base_path == o.base_path &&
|
180
191
|
content_guard == o.content_guard &&
|
192
|
+
hidden == o.hidden &&
|
181
193
|
pulp_labels == o.pulp_labels &&
|
182
194
|
name == o.name &&
|
183
195
|
repository == o.repository &&
|
@@ -195,7 +207,7 @@ module PulpPythonClient
|
|
195
207
|
# Calculates hash code according to all attributes.
|
196
208
|
# @return [Integer] Hash code
|
197
209
|
def hash
|
198
|
-
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
210
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
199
211
|
end
|
200
212
|
|
201
213
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpPythonClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
59
|
+
# 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.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -21,7 +21,7 @@ module PulpPythonClient
|
|
21
21
|
# A unique name for this remote
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
24
|
+
# 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.
|
25
25
|
attr_accessor :policy
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -21,6 +21,9 @@ module PulpPythonClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
# Whether this distribution should be shown in the content app.
|
25
|
+
attr_accessor :hidden
|
26
|
+
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -43,6 +46,7 @@ module PulpPythonClient
|
|
43
46
|
{
|
44
47
|
:'base_path' => :'base_path',
|
45
48
|
:'content_guard' => :'content_guard',
|
49
|
+
:'hidden' => :'hidden',
|
46
50
|
:'pulp_labels' => :'pulp_labels',
|
47
51
|
:'name' => :'name',
|
48
52
|
:'repository' => :'repository',
|
@@ -57,6 +61,7 @@ module PulpPythonClient
|
|
57
61
|
{
|
58
62
|
:'base_path' => :'String',
|
59
63
|
:'content_guard' => :'String',
|
64
|
+
:'hidden' => :'Boolean',
|
60
65
|
:'pulp_labels' => :'Hash<String, String>',
|
61
66
|
:'name' => :'String',
|
62
67
|
:'repository' => :'String',
|
@@ -99,6 +104,12 @@ module PulpPythonClient
|
|
99
104
|
self.content_guard = attributes[:'content_guard']
|
100
105
|
end
|
101
106
|
|
107
|
+
if attributes.key?(:'hidden')
|
108
|
+
self.hidden = attributes[:'hidden']
|
109
|
+
else
|
110
|
+
self.hidden = false
|
111
|
+
end
|
112
|
+
|
102
113
|
if attributes.key?(:'pulp_labels')
|
103
114
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
115
|
self.pulp_labels = value
|
@@ -196,6 +207,7 @@ module PulpPythonClient
|
|
196
207
|
self.class == o.class &&
|
197
208
|
base_path == o.base_path &&
|
198
209
|
content_guard == o.content_guard &&
|
210
|
+
hidden == o.hidden &&
|
199
211
|
pulp_labels == o.pulp_labels &&
|
200
212
|
name == o.name &&
|
201
213
|
repository == o.repository &&
|
@@ -213,7 +225,7 @@ module PulpPythonClient
|
|
213
225
|
# Calculates hash code according to all attributes.
|
214
226
|
# @return [Integer] Hash code
|
215
227
|
def hash
|
216
|
-
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
228
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
217
229
|
end
|
218
230
|
|
219
231
|
# Builds the object from hash
|
@@ -28,6 +28,9 @@ module PulpPythonClient
|
|
28
28
|
# An optional content-guard.
|
29
29
|
attr_accessor :content_guard
|
30
30
|
|
31
|
+
# Whether this distribution should be shown in the content app.
|
32
|
+
attr_accessor :hidden
|
33
|
+
|
31
34
|
attr_accessor :pulp_labels
|
32
35
|
|
33
36
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -53,6 +56,7 @@ module PulpPythonClient
|
|
53
56
|
:'base_path' => :'base_path',
|
54
57
|
:'base_url' => :'base_url',
|
55
58
|
:'content_guard' => :'content_guard',
|
59
|
+
:'hidden' => :'hidden',
|
56
60
|
:'pulp_labels' => :'pulp_labels',
|
57
61
|
:'name' => :'name',
|
58
62
|
:'repository' => :'repository',
|
@@ -70,6 +74,7 @@ module PulpPythonClient
|
|
70
74
|
:'base_path' => :'String',
|
71
75
|
:'base_url' => :'String',
|
72
76
|
:'content_guard' => :'String',
|
77
|
+
:'hidden' => :'Boolean',
|
73
78
|
:'pulp_labels' => :'Hash<String, String>',
|
74
79
|
:'name' => :'String',
|
75
80
|
:'repository' => :'String',
|
@@ -124,6 +129,12 @@ module PulpPythonClient
|
|
124
129
|
self.content_guard = attributes[:'content_guard']
|
125
130
|
end
|
126
131
|
|
132
|
+
if attributes.key?(:'hidden')
|
133
|
+
self.hidden = attributes[:'hidden']
|
134
|
+
else
|
135
|
+
self.hidden = false
|
136
|
+
end
|
137
|
+
|
127
138
|
if attributes.key?(:'pulp_labels')
|
128
139
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
140
|
self.pulp_labels = value
|
@@ -186,6 +197,7 @@ module PulpPythonClient
|
|
186
197
|
base_path == o.base_path &&
|
187
198
|
base_url == o.base_url &&
|
188
199
|
content_guard == o.content_guard &&
|
200
|
+
hidden == o.hidden &&
|
189
201
|
pulp_labels == o.pulp_labels &&
|
190
202
|
name == o.name &&
|
191
203
|
repository == o.repository &&
|
@@ -203,7 +215,7 @@ module PulpPythonClient
|
|
203
215
|
# Calculates hash code according to all attributes.
|
204
216
|
# @return [Integer] Hash code
|
205
217
|
def hash
|
206
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
218
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
207
219
|
end
|
208
220
|
|
209
221
|
# Builds the object from hash
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpPythonClient
|
16
16
|
# A Serializer for PythonPackageContent.
|
17
17
|
class PythonPythonPackageContent
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# Artifact file representing the physical content
|
19
22
|
attr_accessor :artifact
|
20
23
|
|
21
24
|
# Path where the artifact is located relative to distributions base_path
|
22
25
|
attr_accessor :relative_path
|
23
26
|
|
24
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
25
28
|
attr_accessor :file
|
26
29
|
|
27
|
-
#
|
28
|
-
attr_accessor :repository
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the artifact of the content unit.
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# The SHA256 digest of this package.
|
@@ -99,10 +99,10 @@ module PulpPythonClient
|
|
99
99
|
# Attribute mapping from ruby-style variable name to JSON key.
|
100
100
|
def self.attribute_map
|
101
101
|
{
|
102
|
+
:'repository' => :'repository',
|
102
103
|
:'artifact' => :'artifact',
|
103
104
|
:'relative_path' => :'relative_path',
|
104
105
|
:'file' => :'file',
|
105
|
-
:'repository' => :'repository',
|
106
106
|
:'upload' => :'upload',
|
107
107
|
:'sha256' => :'sha256',
|
108
108
|
:'summary' => :'summary',
|
@@ -132,10 +132,10 @@ module PulpPythonClient
|
|
132
132
|
# Attribute type mapping.
|
133
133
|
def self.openapi_types
|
134
134
|
{
|
135
|
+
:'repository' => :'String',
|
135
136
|
:'artifact' => :'String',
|
136
137
|
:'relative_path' => :'String',
|
137
138
|
:'file' => :'File',
|
138
|
-
:'repository' => :'String',
|
139
139
|
:'upload' => :'String',
|
140
140
|
:'sha256' => :'String',
|
141
141
|
:'summary' => :'String',
|
@@ -183,6 +183,10 @@ module PulpPythonClient
|
|
183
183
|
h[k.to_sym] = v
|
184
184
|
}
|
185
185
|
|
186
|
+
if attributes.key?(:'repository')
|
187
|
+
self.repository = attributes[:'repository']
|
188
|
+
end
|
189
|
+
|
186
190
|
if attributes.key?(:'artifact')
|
187
191
|
self.artifact = attributes[:'artifact']
|
188
192
|
end
|
@@ -195,10 +199,6 @@ module PulpPythonClient
|
|
195
199
|
self.file = attributes[:'file']
|
196
200
|
end
|
197
201
|
|
198
|
-
if attributes.key?(:'repository')
|
199
|
-
self.repository = attributes[:'repository']
|
200
|
-
end
|
201
|
-
|
202
202
|
if attributes.key?(:'upload')
|
203
203
|
self.upload = attributes[:'upload']
|
204
204
|
end
|
@@ -351,10 +351,10 @@ module PulpPythonClient
|
|
351
351
|
def ==(o)
|
352
352
|
return true if self.equal?(o)
|
353
353
|
self.class == o.class &&
|
354
|
+
repository == o.repository &&
|
354
355
|
artifact == o.artifact &&
|
355
356
|
relative_path == o.relative_path &&
|
356
357
|
file == o.file &&
|
357
|
-
repository == o.repository &&
|
358
358
|
upload == o.upload &&
|
359
359
|
sha256 == o.sha256 &&
|
360
360
|
summary == o.summary &&
|
@@ -389,7 +389,7 @@ module PulpPythonClient
|
|
389
389
|
# Calculates hash code according to all attributes.
|
390
390
|
# @return [Integer] Hash code
|
391
391
|
def hash
|
392
|
-
[artifact, relative_path, file,
|
392
|
+
[repository, artifact, relative_path, file, upload, sha256, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
|
393
393
|
end
|
394
394
|
|
395
395
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpPythonClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
59
|
+
# 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.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -49,7 +49,7 @@ module PulpPythonClient
|
|
49
49
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
50
|
attr_accessor :max_retries
|
51
51
|
|
52
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
52
|
+
# 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.
|
53
53
|
attr_accessor :policy
|
54
54
|
|
55
55
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|