pulp_deb_client 2.21.2 → 3.1.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 +35 -7
- data/docs/ContentGenericContentsApi.md +7 -5
- data/docs/ContentInstallerFileIndicesApi.md +3 -1
- data/docs/ContentInstallerPackagesApi.md +7 -5
- data/docs/ContentPackageIndicesApi.md +3 -1
- data/docs/ContentPackageReleaseComponentsApi.md +3 -1
- data/docs/ContentPackagesApi.md +27 -5
- data/docs/ContentReleaseArchitecturesApi.md +5 -7
- data/docs/ContentReleaseComponentsApi.md +7 -7
- data/docs/ContentReleaseFilesApi.md +3 -1
- data/docs/ContentReleasesApi.md +13 -3
- data/docs/ContentSourceIndicesApi.md +204 -0
- data/docs/ContentSourcePackagesApi.md +258 -0
- data/docs/ContentSourceReleaseComponentsApi.md +202 -0
- data/docs/DebAptPublication.md +4 -2
- data/docs/DebAptPublicationResponse.md +4 -2
- data/docs/DebAptRepository.md +7 -1
- data/docs/DebAptRepositoryResponse.md +7 -1
- data/docs/DebCopyApi.md +1 -1
- data/docs/DebGenericContent.md +2 -2
- data/docs/DebInstallerPackage.md +2 -2
- data/docs/DebPackage.md +2 -2
- data/docs/DebRelease.md +9 -1
- data/docs/DebReleaseArchitecture.md +1 -5
- data/docs/DebReleaseArchitectureResponse.md +1 -5
- data/docs/DebReleaseComponent.md +1 -5
- data/docs/DebReleaseComponentResponse.md +1 -5
- data/docs/DebReleaseFile.md +3 -3
- data/docs/DebReleaseFileResponse.md +3 -3
- data/docs/DebReleaseResponse.md +9 -1
- data/docs/DebSourceIndex.md +25 -0
- data/docs/DebSourceIndexResponse.md +27 -0
- data/docs/DebSourcePackage.md +21 -0
- data/docs/DebSourcePackageReleaseComponent.md +21 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +23 -0
- data/docs/DebSourcePackageResponse.md +77 -0
- data/docs/DistributionsAptApi.md +123 -1
- data/docs/PaginateddebSourceIndexResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +23 -0
- data/docs/PaginateddebSourcePackageResponseList.md +23 -0
- data/docs/PatcheddebAptRepository.md +7 -1
- data/docs/PublicationsAptApi.md +3 -1
- data/docs/PublicationsVerbatimApi.md +3 -1
- data/docs/RemotesAptApi.md +123 -1
- data/docs/RepositoriesAptApi.md +123 -1
- data/docs/RepositoriesAptVersionsApi.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_deb_client/api/content_generic_contents_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -4
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +37 -4
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
- data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
- data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +256 -0
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +337 -0
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +253 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
- data/lib/pulp_deb_client/models/deb_generic_content.rb +2 -2
- data/lib/pulp_deb_client/models/deb_installer_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_package.rb +2 -2
- data/lib/pulp_deb_client/models/deb_release.rb +104 -4
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
- data/lib/pulp_deb_client/models/deb_source_index.rb +297 -0
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +272 -0
- data/lib/pulp_deb_client/models/deb_source_package.rb +248 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +238 -0
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +247 -0
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +485 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +237 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/set_label.rb +252 -0
- data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
- data/lib/pulp_deb_client/models/unset_label.rb +242 -0
- data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +16 -0
- data/spec/api/content_generic_contents_api_spec.rb +3 -2
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +3 -2
- data/spec/api/content_package_indices_api_spec.rb +1 -0
- data/spec/api/content_package_release_components_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +13 -2
- data/spec/api/content_release_architectures_api_spec.rb +2 -3
- data/spec/api/content_release_components_api_spec.rb +3 -3
- data/spec/api/content_release_files_api_spec.rb +1 -0
- data/spec/api/content_releases_api_spec.rb +6 -1
- data/spec/api/content_source_indices_api_spec.rb +86 -0
- data/spec/api/content_source_packages_api_spec.rb +113 -0
- data/spec/api/content_source_release_components_api_spec.rb +85 -0
- data/spec/api/distributions_apt_api_spec.rb +31 -0
- data/spec/api/publications_apt_api_spec.rb +1 -0
- data/spec/api/publications_verbatim_api_spec.rb +1 -0
- data/spec/api/remotes_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- data/spec/models/deb_apt_repository_response_spec.rb +18 -0
- data/spec/models/deb_apt_repository_spec.rb +18 -0
- data/spec/models/deb_release_architecture_response_spec.rb +0 -12
- data/spec/models/deb_release_architecture_spec.rb +0 -12
- data/spec/models/deb_release_component_response_spec.rb +0 -12
- data/spec/models/deb_release_component_spec.rb +0 -12
- data/spec/models/deb_release_response_spec.rb +24 -0
- data/spec/models/deb_release_spec.rb +24 -0
- data/spec/models/deb_source_index_response_spec.rb +71 -0
- data/spec/models/deb_source_index_spec.rb +65 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +59 -0
- data/spec/models/deb_source_package_release_component_spec.rb +53 -0
- data/spec/models/deb_source_package_response_spec.rb +221 -0
- data/spec/models/deb_source_package_spec.rb +53 -0
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +59 -0
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +59 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +18 -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 +122 -58
@@ -153,13 +153,18 @@ module PulpDebClient
|
|
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 PulpDebClient
|
|
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 PulpDebClient
|
|
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 PulpDebClient
|
|
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 deb_apt_repository_href [String]
|
506
|
+
# @param set_label [SetLabel]
|
507
|
+
# @param [Hash] opts the optional parameters
|
508
|
+
# @return [SetLabelResponse]
|
509
|
+
def set_label(deb_apt_repository_href, set_label, opts = {})
|
510
|
+
data, _status_code, _headers = set_label_with_http_info(deb_apt_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 deb_apt_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(deb_apt_repository_href, set_label, opts = {})
|
521
|
+
if @api_client.config.debugging
|
522
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.set_label ...'
|
523
|
+
end
|
524
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
525
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
526
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.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 RepositoriesAptApi.set_label"
|
531
|
+
end
|
532
|
+
# resource path
|
533
|
+
local_var_path = '{deb_apt_repository_href}set_label/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_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: RepositoriesAptApi#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 content
|
490
575
|
# @param deb_apt_repository_href [String]
|
@@ -555,6 +640,76 @@ module PulpDebClient
|
|
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 deb_apt_repository_href [String]
|
646
|
+
# @param unset_label [UnsetLabel]
|
647
|
+
# @param [Hash] opts the optional parameters
|
648
|
+
# @return [UnsetLabelResponse]
|
649
|
+
def unset_label(deb_apt_repository_href, unset_label, opts = {})
|
650
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_apt_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 deb_apt_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(deb_apt_repository_href, unset_label, opts = {})
|
661
|
+
if @api_client.config.debugging
|
662
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.unset_label ...'
|
663
|
+
end
|
664
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
665
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
666
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.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 RepositoriesAptApi.unset_label"
|
671
|
+
end
|
672
|
+
# resource path
|
673
|
+
local_var_path = '{deb_apt_repository_href}unset_label/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_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: RepositoriesAptApi#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 an apt repository
|
559
714
|
# Trigger an asynchronous update task
|
560
715
|
# @param deb_apt_repository_href [String]
|
@@ -103,6 +103,7 @@ module PulpDebClient
|
|
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 PulpDebClient
|
|
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 PulpDebClient
|
|
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 PulpDebClient
|
|
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 PulpDebClient
|
|
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
|
]
|
@@ -29,6 +29,8 @@ module PulpDebClient
|
|
29
29
|
# Sign Release files with this signing key
|
30
30
|
attr_accessor :signing_service
|
31
31
|
|
32
|
+
attr_accessor :publish_upstream_release_fields
|
33
|
+
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
@@ -36,7 +38,8 @@ module PulpDebClient
|
|
36
38
|
:'repository' => :'repository',
|
37
39
|
:'simple' => :'simple',
|
38
40
|
:'structured' => :'structured',
|
39
|
-
:'signing_service' => :'signing_service'
|
41
|
+
:'signing_service' => :'signing_service',
|
42
|
+
:'publish_upstream_release_fields' => :'publish_upstream_release_fields'
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
@@ -47,7 +50,8 @@ module PulpDebClient
|
|
47
50
|
:'repository' => :'String',
|
48
51
|
:'simple' => :'Boolean',
|
49
52
|
:'structured' => :'Boolean',
|
50
|
-
:'signing_service' => :'String'
|
53
|
+
:'signing_service' => :'String',
|
54
|
+
:'publish_upstream_release_fields' => :'Boolean'
|
51
55
|
}
|
52
56
|
end
|
53
57
|
|
@@ -89,12 +93,16 @@ module PulpDebClient
|
|
89
93
|
if attributes.key?(:'structured')
|
90
94
|
self.structured = attributes[:'structured']
|
91
95
|
else
|
92
|
-
self.structured =
|
96
|
+
self.structured = true
|
93
97
|
end
|
94
98
|
|
95
99
|
if attributes.key?(:'signing_service')
|
96
100
|
self.signing_service = attributes[:'signing_service']
|
97
101
|
end
|
102
|
+
|
103
|
+
if attributes.key?(:'publish_upstream_release_fields')
|
104
|
+
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
105
|
+
end
|
98
106
|
end
|
99
107
|
|
100
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,7 +127,8 @@ module PulpDebClient
|
|
119
127
|
repository == o.repository &&
|
120
128
|
simple == o.simple &&
|
121
129
|
structured == o.structured &&
|
122
|
-
signing_service == o.signing_service
|
130
|
+
signing_service == o.signing_service &&
|
131
|
+
publish_upstream_release_fields == o.publish_upstream_release_fields
|
123
132
|
end
|
124
133
|
|
125
134
|
# @see the `==` method
|
@@ -131,7 +140,7 @@ module PulpDebClient
|
|
131
140
|
# Calculates hash code according to all attributes.
|
132
141
|
# @return [Integer] Hash code
|
133
142
|
def hash
|
134
|
-
[repository_version, repository, simple, structured, signing_service].hash
|
143
|
+
[repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
|
135
144
|
end
|
136
145
|
|
137
146
|
# Builds the object from hash
|
@@ -34,6 +34,8 @@ module PulpDebClient
|
|
34
34
|
# Sign Release files with this signing key
|
35
35
|
attr_accessor :signing_service
|
36
36
|
|
37
|
+
attr_accessor :publish_upstream_release_fields
|
38
|
+
|
37
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
40
|
def self.attribute_map
|
39
41
|
{
|
@@ -43,7 +45,8 @@ module PulpDebClient
|
|
43
45
|
:'repository' => :'repository',
|
44
46
|
:'simple' => :'simple',
|
45
47
|
:'structured' => :'structured',
|
46
|
-
:'signing_service' => :'signing_service'
|
48
|
+
:'signing_service' => :'signing_service',
|
49
|
+
:'publish_upstream_release_fields' => :'publish_upstream_release_fields'
|
47
50
|
}
|
48
51
|
end
|
49
52
|
|
@@ -56,7 +59,8 @@ module PulpDebClient
|
|
56
59
|
:'repository' => :'String',
|
57
60
|
:'simple' => :'Boolean',
|
58
61
|
:'structured' => :'Boolean',
|
59
|
-
:'signing_service' => :'String'
|
62
|
+
:'signing_service' => :'String',
|
63
|
+
:'publish_upstream_release_fields' => :'Boolean'
|
60
64
|
}
|
61
65
|
end
|
62
66
|
|
@@ -106,12 +110,16 @@ module PulpDebClient
|
|
106
110
|
if attributes.key?(:'structured')
|
107
111
|
self.structured = attributes[:'structured']
|
108
112
|
else
|
109
|
-
self.structured =
|
113
|
+
self.structured = true
|
110
114
|
end
|
111
115
|
|
112
116
|
if attributes.key?(:'signing_service')
|
113
117
|
self.signing_service = attributes[:'signing_service']
|
114
118
|
end
|
119
|
+
|
120
|
+
if attributes.key?(:'publish_upstream_release_fields')
|
121
|
+
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
122
|
+
end
|
115
123
|
end
|
116
124
|
|
117
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -138,7 +146,8 @@ module PulpDebClient
|
|
138
146
|
repository == o.repository &&
|
139
147
|
simple == o.simple &&
|
140
148
|
structured == o.structured &&
|
141
|
-
signing_service == o.signing_service
|
149
|
+
signing_service == o.signing_service &&
|
150
|
+
publish_upstream_release_fields == o.publish_upstream_release_fields
|
142
151
|
end
|
143
152
|
|
144
153
|
# @see the `==` method
|
@@ -150,7 +159,7 @@ module PulpDebClient
|
|
150
159
|
# Calculates hash code according to all attributes.
|
151
160
|
# @return [Integer] Hash code
|
152
161
|
def hash
|
153
|
-
[pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service].hash
|
162
|
+
[pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
|
154
163
|
end
|
155
164
|
|
156
165
|
# Builds the object from hash
|
@@ -29,6 +29,15 @@ module PulpDebClient
|
|
29
29
|
# An optional remote to use by default when syncing.
|
30
30
|
attr_accessor :remote
|
31
31
|
|
32
|
+
# Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
|
33
|
+
attr_accessor :publish_upstream_release_fields
|
34
|
+
|
35
|
+
# A reference to an associated signing service. Used if AptPublication.signing_service is not set
|
36
|
+
attr_accessor :signing_service
|
37
|
+
|
38
|
+
# A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
|
39
|
+
attr_accessor :signing_service_release_overrides
|
40
|
+
|
32
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
42
|
def self.attribute_map
|
34
43
|
{
|
@@ -36,7 +45,10 @@ module PulpDebClient
|
|
36
45
|
:'name' => :'name',
|
37
46
|
:'description' => :'description',
|
38
47
|
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
-
:'remote' => :'remote'
|
48
|
+
:'remote' => :'remote',
|
49
|
+
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
50
|
+
:'signing_service' => :'signing_service',
|
51
|
+
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
40
52
|
}
|
41
53
|
end
|
42
54
|
|
@@ -47,7 +59,10 @@ module PulpDebClient
|
|
47
59
|
:'name' => :'String',
|
48
60
|
:'description' => :'String',
|
49
61
|
:'retain_repo_versions' => :'Integer',
|
50
|
-
:'remote' => :'String'
|
62
|
+
:'remote' => :'String',
|
63
|
+
:'publish_upstream_release_fields' => :'Boolean',
|
64
|
+
:'signing_service' => :'String',
|
65
|
+
:'signing_service_release_overrides' => :'Hash<String, String>'
|
51
66
|
}
|
52
67
|
end
|
53
68
|
|
@@ -56,7 +71,8 @@ module PulpDebClient
|
|
56
71
|
Set.new([
|
57
72
|
:'description',
|
58
73
|
:'retain_repo_versions',
|
59
|
-
:'remote'
|
74
|
+
:'remote',
|
75
|
+
:'signing_service',
|
60
76
|
])
|
61
77
|
end
|
62
78
|
|
@@ -96,6 +112,20 @@ module PulpDebClient
|
|
96
112
|
if attributes.key?(:'remote')
|
97
113
|
self.remote = attributes[:'remote']
|
98
114
|
end
|
115
|
+
|
116
|
+
if attributes.key?(:'publish_upstream_release_fields')
|
117
|
+
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'signing_service')
|
121
|
+
self.signing_service = attributes[:'signing_service']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'signing_service_release_overrides')
|
125
|
+
if (value = attributes[:'signing_service_release_overrides']).is_a?(Hash)
|
126
|
+
self.signing_service_release_overrides = value
|
127
|
+
end
|
128
|
+
end
|
99
129
|
end
|
100
130
|
|
101
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -174,7 +204,10 @@ module PulpDebClient
|
|
174
204
|
name == o.name &&
|
175
205
|
description == o.description &&
|
176
206
|
retain_repo_versions == o.retain_repo_versions &&
|
177
|
-
remote == o.remote
|
207
|
+
remote == o.remote &&
|
208
|
+
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
209
|
+
signing_service == o.signing_service &&
|
210
|
+
signing_service_release_overrides == o.signing_service_release_overrides
|
178
211
|
end
|
179
212
|
|
180
213
|
# @see the `==` method
|
@@ -186,7 +219,7 @@ module PulpDebClient
|
|
186
219
|
# Calculates hash code according to all attributes.
|
187
220
|
# @return [Integer] Hash code
|
188
221
|
def hash
|
189
|
-
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
222
|
+
[pulp_labels, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
190
223
|
end
|
191
224
|
|
192
225
|
# Builds the object from hash
|
@@ -38,6 +38,15 @@ module PulpDebClient
|
|
38
38
|
# An optional remote to use by default when syncing.
|
39
39
|
attr_accessor :remote
|
40
40
|
|
41
|
+
# Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
|
42
|
+
attr_accessor :publish_upstream_release_fields
|
43
|
+
|
44
|
+
# A reference to an associated signing service. Used if AptPublication.signing_service is not set
|
45
|
+
attr_accessor :signing_service
|
46
|
+
|
47
|
+
# A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
|
48
|
+
attr_accessor :signing_service_release_overrides
|
49
|
+
|
41
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
51
|
def self.attribute_map
|
43
52
|
{
|
@@ -49,7 +58,10 @@ module PulpDebClient
|
|
49
58
|
:'name' => :'name',
|
50
59
|
:'description' => :'description',
|
51
60
|
:'retain_repo_versions' => :'retain_repo_versions',
|
52
|
-
:'remote' => :'remote'
|
61
|
+
:'remote' => :'remote',
|
62
|
+
:'publish_upstream_release_fields' => :'publish_upstream_release_fields',
|
63
|
+
:'signing_service' => :'signing_service',
|
64
|
+
:'signing_service_release_overrides' => :'signing_service_release_overrides'
|
53
65
|
}
|
54
66
|
end
|
55
67
|
|
@@ -64,7 +76,10 @@ module PulpDebClient
|
|
64
76
|
:'name' => :'String',
|
65
77
|
:'description' => :'String',
|
66
78
|
:'retain_repo_versions' => :'Integer',
|
67
|
-
:'remote' => :'String'
|
79
|
+
:'remote' => :'String',
|
80
|
+
:'publish_upstream_release_fields' => :'Boolean',
|
81
|
+
:'signing_service' => :'String',
|
82
|
+
:'signing_service_release_overrides' => :'Hash<String, String>'
|
68
83
|
}
|
69
84
|
end
|
70
85
|
|
@@ -73,7 +88,8 @@ module PulpDebClient
|
|
73
88
|
Set.new([
|
74
89
|
:'description',
|
75
90
|
:'retain_repo_versions',
|
76
|
-
:'remote'
|
91
|
+
:'remote',
|
92
|
+
:'signing_service',
|
77
93
|
])
|
78
94
|
end
|
79
95
|
|
@@ -129,6 +145,20 @@ module PulpDebClient
|
|
129
145
|
if attributes.key?(:'remote')
|
130
146
|
self.remote = attributes[:'remote']
|
131
147
|
end
|
148
|
+
|
149
|
+
if attributes.key?(:'publish_upstream_release_fields')
|
150
|
+
self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'signing_service')
|
154
|
+
self.signing_service = attributes[:'signing_service']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'signing_service_release_overrides')
|
158
|
+
if (value = attributes[:'signing_service_release_overrides']).is_a?(Hash)
|
159
|
+
self.signing_service_release_overrides = value
|
160
|
+
end
|
161
|
+
end
|
132
162
|
end
|
133
163
|
|
134
164
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -177,7 +207,10 @@ module PulpDebClient
|
|
177
207
|
name == o.name &&
|
178
208
|
description == o.description &&
|
179
209
|
retain_repo_versions == o.retain_repo_versions &&
|
180
|
-
remote == o.remote
|
210
|
+
remote == o.remote &&
|
211
|
+
publish_upstream_release_fields == o.publish_upstream_release_fields &&
|
212
|
+
signing_service == o.signing_service &&
|
213
|
+
signing_service_release_overrides == o.signing_service_release_overrides
|
181
214
|
end
|
182
215
|
|
183
216
|
# @see the `==` method
|
@@ -189,7 +222,7 @@ module PulpDebClient
|
|
189
222
|
# Calculates hash code according to all attributes.
|
190
223
|
# @return [Integer] Hash code
|
191
224
|
def hash
|
192
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
|
225
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
|
193
226
|
end
|
194
227
|
|
195
228
|
# Builds the object from hash
|
@@ -24,10 +24,10 @@ module PulpDebClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,10 +24,10 @@ module PulpDebClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,10 +24,10 @@ module PulpDebClient
|
|
24
24
|
# Path where the artifact is located relative to distributions base_path
|
25
25
|
attr_accessor :relative_path
|
26
26
|
|
27
|
-
# An uploaded file that may be turned into the
|
27
|
+
# An uploaded file that may be turned into the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
30
|
-
# An uncommitted upload that may be turned into the
|
30
|
+
# An uncommitted upload that may be turned into the content unit.
|
31
31
|
attr_accessor :upload
|
32
32
|
|
33
33
|
# Name of the distribution.
|