pulp_python_client 3.10.0 → 3.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/docs/ContentPackagesApi.md +11 -7
- data/docs/DistributionsPypiApi.md +126 -4
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
- data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
- data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
- data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
- data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
- 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 +4 -0
- data/docs/PythonPythonPackageContent.md +5 -5
- data/docs/PythonPythonPackageContentResponse.md +2 -0
- data/docs/PythonPythonPublicationResponse.md +2 -0
- data/docs/PythonPythonRemoteResponse.md +2 -2
- data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
- data/docs/PythonPythonRepositoryResponse.md +2 -0
- data/docs/RemotesPythonApi.md +123 -1
- data/docs/RepositoriesPythonApi.md +124 -2
- data/docs/RepositoriesPythonVersionsApi.md +3 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- 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 +13 -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/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
- 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 +23 -1
- data/lib/pulp_python_client/models/python_python_package_content.rb +13 -13
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +11 -1
- data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
- data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
- data/lib/pulp_python_client/models/repository_version_response.rb +11 -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 +5 -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 +12 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_response_spec.rb +6 -0
- data/spec/models/python_python_package_content_spec.rb +4 -4
- data/spec/models/python_python_publication_response_spec.rb +6 -0
- data/spec/models/python_python_remote_response_spec.rb +6 -6
- data/spec/models/python_python_repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- 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 +47 -31
@@ -153,13 +153,18 @@ module PulpPythonClient
|
|
153
153
|
# @option opts [String] :name Filter results where name matches value
|
154
154
|
# @option opts [String] :name__contains Filter results where name contains value
|
155
155
|
# @option opts [String] :name__icontains Filter results where name contains value
|
156
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
156
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
|
157
161
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
158
162
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
159
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)
|
160
164
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
161
165
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
162
166
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
167
|
+
# @option opts [String] :q
|
163
168
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
164
169
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
165
170
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -186,13 +191,18 @@ module PulpPythonClient
|
|
186
191
|
# @option opts [String] :name Filter results where name matches value
|
187
192
|
# @option opts [String] :name__contains Filter results where name contains value
|
188
193
|
# @option opts [String] :name__icontains Filter results where name contains value
|
194
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
189
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
|
190
199
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
191
200
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
192
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)
|
193
202
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
194
203
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
195
204
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
205
|
+
# @option opts [String] :q
|
196
206
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
197
207
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
198
208
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -224,13 +234,18 @@ module PulpPythonClient
|
|
224
234
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
225
235
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
226
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?
|
227
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?
|
228
242
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
229
243
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
230
244
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
231
245
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
232
246
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
233
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?
|
234
249
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
235
250
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
236
251
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -485,6 +500,76 @@ module PulpPythonClient
|
|
485
500
|
return data, status_code, headers
|
486
501
|
end
|
487
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
|
+
|
488
573
|
# Sync from remote
|
489
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`.
|
490
575
|
# @param python_python_repository_href [String]
|
@@ -555,6 +640,76 @@ module PulpPythonClient
|
|
555
640
|
return data, status_code, headers
|
556
641
|
end
|
557
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
|
+
|
558
713
|
# Update a python repository
|
559
714
|
# Trigger an asynchronous update task
|
560
715
|
# @param python_python_repository_href [String]
|
@@ -103,6 +103,7 @@ module PulpPythonClient
|
|
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
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
+
# @option opts [String] :q
|
106
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -133,6 +134,7 @@ module PulpPythonClient
|
|
133
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
136
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -171,6 +173,7 @@ module PulpPythonClient
|
|
171
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
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?
|
174
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
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
|
]
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -88,12 +88,22 @@ module PulpPythonClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
+
if @count.nil?
|
92
|
+
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @results.nil?
|
96
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
97
|
+
end
|
98
|
+
|
91
99
|
invalid_properties
|
92
100
|
end
|
93
101
|
|
94
102
|
# Check to see if the all the properties in the model are valid
|
95
103
|
# @return true if the model is valid
|
96
104
|
def valid?
|
105
|
+
return false if @count.nil?
|
106
|
+
return false if @results.nil?
|
97
107
|
true
|
98
108
|
end
|
99
109
|
|
@@ -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
|
@@ -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
|
@@ -20,6 +20,9 @@ module PulpPythonClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
27
|
attr_accessor :base_path
|
25
28
|
|
@@ -28,6 +31,9 @@ module PulpPythonClient
|
|
28
31
|
# An optional content-guard.
|
29
32
|
attr_accessor :content_guard
|
30
33
|
|
34
|
+
# Whether this distribution should be shown in the content app.
|
35
|
+
attr_accessor :hidden
|
36
|
+
|
31
37
|
attr_accessor :pulp_labels
|
32
38
|
|
33
39
|
# A unique name. Ex, `rawhide` and `stable`.
|
@@ -50,9 +56,11 @@ module PulpPythonClient
|
|
50
56
|
{
|
51
57
|
:'pulp_href' => :'pulp_href',
|
52
58
|
:'pulp_created' => :'pulp_created',
|
59
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
53
60
|
:'base_path' => :'base_path',
|
54
61
|
:'base_url' => :'base_url',
|
55
62
|
:'content_guard' => :'content_guard',
|
63
|
+
:'hidden' => :'hidden',
|
56
64
|
:'pulp_labels' => :'pulp_labels',
|
57
65
|
:'name' => :'name',
|
58
66
|
:'repository' => :'repository',
|
@@ -67,9 +75,11 @@ module PulpPythonClient
|
|
67
75
|
{
|
68
76
|
:'pulp_href' => :'String',
|
69
77
|
:'pulp_created' => :'DateTime',
|
78
|
+
:'pulp_last_updated' => :'DateTime',
|
70
79
|
:'base_path' => :'String',
|
71
80
|
:'base_url' => :'String',
|
72
81
|
:'content_guard' => :'String',
|
82
|
+
:'hidden' => :'Boolean',
|
73
83
|
:'pulp_labels' => :'Hash<String, String>',
|
74
84
|
:'name' => :'String',
|
75
85
|
:'repository' => :'String',
|
@@ -112,6 +122,10 @@ module PulpPythonClient
|
|
112
122
|
self.pulp_created = attributes[:'pulp_created']
|
113
123
|
end
|
114
124
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
127
|
+
end
|
128
|
+
|
115
129
|
if attributes.key?(:'base_path')
|
116
130
|
self.base_path = attributes[:'base_path']
|
117
131
|
end
|
@@ -124,6 +138,12 @@ module PulpPythonClient
|
|
124
138
|
self.content_guard = attributes[:'content_guard']
|
125
139
|
end
|
126
140
|
|
141
|
+
if attributes.key?(:'hidden')
|
142
|
+
self.hidden = attributes[:'hidden']
|
143
|
+
else
|
144
|
+
self.hidden = false
|
145
|
+
end
|
146
|
+
|
127
147
|
if attributes.key?(:'pulp_labels')
|
128
148
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
149
|
self.pulp_labels = value
|
@@ -183,9 +203,11 @@ module PulpPythonClient
|
|
183
203
|
self.class == o.class &&
|
184
204
|
pulp_href == o.pulp_href &&
|
185
205
|
pulp_created == o.pulp_created &&
|
206
|
+
pulp_last_updated == o.pulp_last_updated &&
|
186
207
|
base_path == o.base_path &&
|
187
208
|
base_url == o.base_url &&
|
188
209
|
content_guard == o.content_guard &&
|
210
|
+
hidden == o.hidden &&
|
189
211
|
pulp_labels == o.pulp_labels &&
|
190
212
|
name == o.name &&
|
191
213
|
repository == o.repository &&
|
@@ -203,7 +225,7 @@ module PulpPythonClient
|
|
203
225
|
# Calculates hash code according to all attributes.
|
204
226
|
# @return [Integer] Hash code
|
205
227
|
def hash
|
206
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
228
|
+
[pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
207
229
|
end
|
208
230
|
|
209
231
|
# Builds the object from hash
|