pulp_python_client 3.10.0 → 3.11.0
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 +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
@@ -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
|
]
|
@@ -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
|
@@ -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
|