pulp_deb_client 3.5.0 → 3.5.2
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 +37 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +264 -64
- data/docs/ContentInstallerFileIndicesApi.md +259 -61
- data/docs/ContentInstallerPackagesApi.md +280 -80
- data/docs/ContentPackageIndicesApi.md +259 -61
- data/docs/ContentPackageReleaseComponentsApi.md +259 -61
- data/docs/ContentPackagesApi.md +294 -94
- data/docs/ContentReleaseArchitecturesApi.md +257 -59
- data/docs/ContentReleaseComponentsApi.md +258 -60
- data/docs/ContentReleaseFilesApi.md +259 -61
- data/docs/ContentReleasesApi.md +262 -64
- data/docs/ContentSourceIndicesApi.md +258 -60
- data/docs/ContentSourcePackagesApi.md +285 -87
- data/docs/ContentSourceReleaseComponentsApi.md +259 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +32 -29
- data/docs/DebInstallerFileIndex.md +18 -15
- data/docs/DebInstallerFileIndexResponse.md +24 -21
- data/docs/DebInstallerPackageResponse.md +90 -87
- data/docs/DebPackageIndex.md +18 -15
- data/docs/DebPackageIndexResponse.md +24 -21
- data/docs/DebPackageReleaseComponent.md +14 -11
- data/docs/DebPackageReleaseComponentResponse.md +20 -17
- data/docs/DebPackageResponse.md +94 -91
- data/docs/DebRelease.md +28 -25
- data/docs/DebReleaseArchitecture.md +14 -11
- data/docs/DebReleaseArchitectureResponse.md +20 -17
- data/docs/DebReleaseComponent.md +14 -11
- data/docs/DebReleaseComponentResponse.md +22 -19
- data/docs/DebReleaseFile.md +20 -17
- data/docs/DebReleaseFileResponse.md +26 -23
- data/docs/DebReleaseResponse.md +34 -31
- data/docs/DebSourceIndex.md +18 -15
- data/docs/DebSourceIndexResponse.md +24 -21
- data/docs/DebSourcePackage.md +14 -11
- data/docs/DebSourcePackageReleaseComponent.md +14 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +20 -17
- data/docs/DebSourcePackageResponse.md +76 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +387 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginateddebAptDistributionResponseList.md +14 -13
- data/docs/PaginateddebAptPublicationResponseList.md +14 -13
- data/docs/PaginateddebAptRemoteResponseList.md +14 -13
- data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
- data/docs/PaginateddebGenericContentResponseList.md +14 -13
- data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
- data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
- data/docs/PaginateddebPackageIndexResponseList.md +14 -13
- data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebPackageResponseList.md +14 -13
- data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
- data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebReleaseFileResponseList.md +14 -13
- data/docs/PaginateddebReleaseResponseList.md +14 -13
- data/docs/PaginateddebSourceIndexResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageResponseList.md +14 -13
- data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
- data/docs/PatcheddebAptDistribution.md +20 -19
- data/docs/PatcheddebAptRemote.md +64 -63
- data/docs/PatcheddebAptRepository.md +22 -21
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsAptApi.md +269 -130
- data/docs/PublicationsVerbatimApi.md +269 -130
- data/docs/RemotesAptApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +444 -207
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +177 -17
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_files_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_releases_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +95 -59
- data/lib/pulp_deb_client/api/publications_apt_api.rb +73 -50
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +73 -50
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
- data/lib/pulp_deb_client/api_client.rb +137 -102
- data/lib/pulp_deb_client/api_error.rb +2 -1
- data/lib/pulp_deb_client/configuration.rb +162 -21
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
- data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_deb_client/models/copy.rb +34 -28
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_package_index.rb +60 -26
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_release.rb +49 -23
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file.rb +62 -26
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_package.rb +50 -24
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +33 -23
- data/lib/pulp_deb_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +7 -5
- data/spec/api/content_generic_contents_api_spec.rb +33 -5
- data/spec/api/content_installer_file_indices_api_spec.rb +32 -5
- data/spec/api/content_installer_packages_api_spec.rb +33 -5
- data/spec/api/content_package_indices_api_spec.rb +32 -5
- data/spec/api/content_package_release_components_api_spec.rb +32 -5
- data/spec/api/content_packages_api_spec.rb +33 -5
- data/spec/api/content_release_architectures_api_spec.rb +32 -5
- data/spec/api/content_release_components_api_spec.rb +32 -5
- data/spec/api/content_release_files_api_spec.rb +32 -5
- data/spec/api/content_releases_api_spec.rb +32 -5
- data/spec/api/content_source_indices_api_spec.rb +32 -5
- data/spec/api/content_source_packages_api_spec.rb +32 -5
- data/spec/api/content_source_release_components_api_spec.rb +32 -5
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +15 -14
- data/spec/api/publications_apt_api_spec.rb +18 -16
- data/spec/api/publications_verbatim_api_spec.rb +18 -16
- data/spec/api/remotes_apt_api_spec.rb +20 -19
- data/spec/api/repositories_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +24 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +20 -19
- data/spec/models/deb_installer_file_index_spec.rb +17 -16
- data/spec/models/deb_installer_package_response_spec.rb +53 -52
- data/spec/models/deb_package_index_response_spec.rb +20 -19
- data/spec/models/deb_package_index_spec.rb +17 -16
- data/spec/models/deb_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_package_release_component_spec.rb +15 -14
- data/spec/models/deb_package_response_spec.rb +55 -54
- data/spec/models/deb_release_architecture_response_spec.rb +18 -17
- data/spec/models/deb_release_architecture_spec.rb +15 -14
- data/spec/models/deb_release_component_response_spec.rb +19 -18
- data/spec/models/deb_release_component_spec.rb +15 -14
- data/spec/models/deb_release_file_response_spec.rb +21 -20
- data/spec/models/deb_release_file_spec.rb +18 -17
- data/spec/models/deb_release_response_spec.rb +25 -24
- data/spec/models/deb_release_spec.rb +22 -21
- data/spec/models/deb_source_index_response_spec.rb +20 -19
- data/spec/models/deb_source_index_spec.rb +17 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_source_package_release_component_spec.rb +15 -14
- data/spec/models/deb_source_package_response_spec.rb +46 -45
- data/spec/models/deb_source_package_spec.rb +15 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
- data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
- data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +92 -100
- data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
- data/docs/DebGenericContent.md +0 -27
- data/docs/DebInstallerPackage.md +0 -27
- data/docs/DebPackage.md +0 -31
- data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
- data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
- data/lib/pulp_deb_client/models/deb_package.rb +0 -338
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/deb_generic_content_spec.rb +0 -71
- data/spec/models/deb_installer_package_spec.rb +0 -71
- data/spec/models/deb_package_spec.rb +0 -83
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,23 +51,27 @@ module PulpDebClient
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
57
60
|
|
58
61
|
# form parameters
|
59
62
|
form_params = opts[:form_params] || {}
|
60
63
|
|
61
64
|
# http body (model)
|
62
|
-
post_body = opts[:
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_package_index)
|
63
66
|
|
64
67
|
# return_type
|
65
|
-
return_type = opts[:
|
68
|
+
return_type = opts[:debug_return_type] || 'DebPackageIndexResponse'
|
66
69
|
|
67
70
|
# auth_names
|
68
|
-
auth_names = opts[:
|
71
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
69
72
|
|
70
73
|
new_options = opts.merge(
|
74
|
+
:operation => :"ContentPackageIndicesApi.create",
|
71
75
|
:header_params => header_params,
|
72
76
|
:query_params => query_params,
|
73
77
|
:form_params => form_params,
|
@@ -90,11 +94,12 @@ module PulpDebClient
|
|
90
94
|
# @option opts [String] :component Filter results where component matches value
|
91
95
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
96
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
93
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
97
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
94
98
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
95
99
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
96
100
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
97
101
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
102
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
98
103
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
99
104
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
100
105
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -116,11 +121,12 @@ module PulpDebClient
|
|
116
121
|
# @option opts [String] :component Filter results where component matches value
|
117
122
|
# @option opts [Integer] :limit Number of results to return per page.
|
118
123
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
119
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
124
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `component` - Component * `-component` - Component (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
120
125
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
121
126
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
122
127
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
123
128
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
129
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
124
130
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
125
131
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
126
132
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -134,7 +140,7 @@ module PulpDebClient
|
|
134
140
|
if @api_client.config.debugging
|
135
141
|
@api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.list ...'
|
136
142
|
end
|
137
|
-
allowable_values = ["-architecture", "-artifact_set_sha256", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "artifact_set_sha256", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
143
|
+
allowable_values = ["-architecture", "-artifact_set_sha256", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "artifact_set_sha256", "component", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
138
144
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
139
145
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
140
146
|
end
|
@@ -152,6 +158,7 @@ module PulpDebClient
|
|
152
158
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
153
159
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
154
160
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
161
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
155
162
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
156
163
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
157
164
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -164,21 +171,22 @@ module PulpDebClient
|
|
164
171
|
# header parameters
|
165
172
|
header_params = opts[:header_params] || {}
|
166
173
|
# HTTP header 'Accept' (if needed)
|
167
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
168
175
|
|
169
176
|
# form parameters
|
170
177
|
form_params = opts[:form_params] || {}
|
171
178
|
|
172
179
|
# http body (model)
|
173
|
-
post_body = opts[:
|
180
|
+
post_body = opts[:debug_body]
|
174
181
|
|
175
182
|
# return_type
|
176
|
-
return_type = opts[:
|
183
|
+
return_type = opts[:debug_return_type] || 'PaginateddebPackageIndexResponseList'
|
177
184
|
|
178
185
|
# auth_names
|
179
|
-
auth_names = opts[:
|
186
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
180
187
|
|
181
188
|
new_options = opts.merge(
|
189
|
+
:operation => :"ContentPackageIndicesApi.list",
|
182
190
|
:header_params => header_params,
|
183
191
|
:query_params => query_params,
|
184
192
|
:form_params => form_params,
|
@@ -232,21 +240,22 @@ module PulpDebClient
|
|
232
240
|
# header parameters
|
233
241
|
header_params = opts[:header_params] || {}
|
234
242
|
# HTTP header 'Accept' (if needed)
|
235
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
236
244
|
|
237
245
|
# form parameters
|
238
246
|
form_params = opts[:form_params] || {}
|
239
247
|
|
240
248
|
# http body (model)
|
241
|
-
post_body = opts[:
|
249
|
+
post_body = opts[:debug_body]
|
242
250
|
|
243
251
|
# return_type
|
244
|
-
return_type = opts[:
|
252
|
+
return_type = opts[:debug_return_type] || 'DebPackageIndexResponse'
|
245
253
|
|
246
254
|
# auth_names
|
247
|
-
auth_names = opts[:
|
255
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
248
256
|
|
249
257
|
new_options = opts.merge(
|
258
|
+
:operation => :"ContentPackageIndicesApi.read",
|
250
259
|
:header_params => header_params,
|
251
260
|
:query_params => query_params,
|
252
261
|
:form_params => form_params,
|
@@ -261,5 +270,153 @@ module PulpDebClient
|
|
261
270
|
end
|
262
271
|
return data, status_code, headers
|
263
272
|
end
|
273
|
+
|
274
|
+
# Set a label
|
275
|
+
# Set a single pulp_label on the object to a specific value or null.
|
276
|
+
# @param deb_package_index_href [String]
|
277
|
+
# @param set_label [SetLabel]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [SetLabelResponse]
|
280
|
+
def set_label(deb_package_index_href, set_label, opts = {})
|
281
|
+
data, _status_code, _headers = set_label_with_http_info(deb_package_index_href, set_label, opts)
|
282
|
+
data
|
283
|
+
end
|
284
|
+
|
285
|
+
# Set a label
|
286
|
+
# Set a single pulp_label on the object to a specific value or null.
|
287
|
+
# @param deb_package_index_href [String]
|
288
|
+
# @param set_label [SetLabel]
|
289
|
+
# @param [Hash] opts the optional parameters
|
290
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
291
|
+
def set_label_with_http_info(deb_package_index_href, set_label, opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.set_label ...'
|
294
|
+
end
|
295
|
+
# verify the required parameter 'deb_package_index_href' is set
|
296
|
+
if @api_client.config.client_side_validation && deb_package_index_href.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'deb_package_index_href' when calling ContentPackageIndicesApi.set_label"
|
298
|
+
end
|
299
|
+
# verify the required parameter 'set_label' is set
|
300
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackageIndicesApi.set_label"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '{deb_package_index_href}set_label/'.sub('{' + 'deb_package_index_href' + '}', CGI.escape(deb_package_index_href.to_s).gsub('%2F', '/'))
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = opts[:query_params] || {}
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = opts[:header_params] || {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
313
|
+
# HTTP header 'Content-Type'
|
314
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
315
|
+
if !content_type.nil?
|
316
|
+
header_params['Content-Type'] = content_type
|
317
|
+
end
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:operation => :"ContentPackageIndicesApi.set_label",
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => return_type
|
339
|
+
)
|
340
|
+
|
341
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
342
|
+
if @api_client.config.debugging
|
343
|
+
@api_client.config.logger.debug "API called: ContentPackageIndicesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
344
|
+
end
|
345
|
+
return data, status_code, headers
|
346
|
+
end
|
347
|
+
|
348
|
+
# Unset a label
|
349
|
+
# Unset a single pulp_label on the object.
|
350
|
+
# @param deb_package_index_href [String]
|
351
|
+
# @param unset_label [UnsetLabel]
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @return [UnsetLabelResponse]
|
354
|
+
def unset_label(deb_package_index_href, unset_label, opts = {})
|
355
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_package_index_href, unset_label, opts)
|
356
|
+
data
|
357
|
+
end
|
358
|
+
|
359
|
+
# Unset a label
|
360
|
+
# Unset a single pulp_label on the object.
|
361
|
+
# @param deb_package_index_href [String]
|
362
|
+
# @param unset_label [UnsetLabel]
|
363
|
+
# @param [Hash] opts the optional parameters
|
364
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
365
|
+
def unset_label_with_http_info(deb_package_index_href, unset_label, opts = {})
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.unset_label ...'
|
368
|
+
end
|
369
|
+
# verify the required parameter 'deb_package_index_href' is set
|
370
|
+
if @api_client.config.client_side_validation && deb_package_index_href.nil?
|
371
|
+
fail ArgumentError, "Missing the required parameter 'deb_package_index_href' when calling ContentPackageIndicesApi.unset_label"
|
372
|
+
end
|
373
|
+
# verify the required parameter 'unset_label' is set
|
374
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
375
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackageIndicesApi.unset_label"
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = '{deb_package_index_href}unset_label/'.sub('{' + 'deb_package_index_href' + '}', CGI.escape(deb_package_index_href.to_s).gsub('%2F', '/'))
|
379
|
+
|
380
|
+
# query parameters
|
381
|
+
query_params = opts[:query_params] || {}
|
382
|
+
|
383
|
+
# header parameters
|
384
|
+
header_params = opts[:header_params] || {}
|
385
|
+
# HTTP header 'Accept' (if needed)
|
386
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
387
|
+
# HTTP header 'Content-Type'
|
388
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
389
|
+
if !content_type.nil?
|
390
|
+
header_params['Content-Type'] = content_type
|
391
|
+
end
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = opts[:form_params] || {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
398
|
+
|
399
|
+
# return_type
|
400
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
401
|
+
|
402
|
+
# auth_names
|
403
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
404
|
+
|
405
|
+
new_options = opts.merge(
|
406
|
+
:operation => :"ContentPackageIndicesApi.unset_label",
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => return_type
|
413
|
+
)
|
414
|
+
|
415
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
416
|
+
if @api_client.config.debugging
|
417
|
+
@api_client.config.logger.debug "API called: ContentPackageIndicesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
418
|
+
end
|
419
|
+
return data, status_code, headers
|
420
|
+
end
|
264
421
|
end
|
265
422
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,23 +51,27 @@ module PulpDebClient
|
|
51
51
|
# header parameters
|
52
52
|
header_params = opts[:header_params] || {}
|
53
53
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
55
|
# HTTP header 'Content-Type'
|
56
|
-
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
57
60
|
|
58
61
|
# form parameters
|
59
62
|
form_params = opts[:form_params] || {}
|
60
63
|
|
61
64
|
# http body (model)
|
62
|
-
post_body = opts[:
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_package_release_component)
|
63
66
|
|
64
67
|
# return_type
|
65
|
-
return_type = opts[:
|
68
|
+
return_type = opts[:debug_return_type] || 'DebPackageReleaseComponentResponse'
|
66
69
|
|
67
70
|
# auth_names
|
68
|
-
auth_names = opts[:
|
71
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
69
72
|
|
70
73
|
new_options = opts.merge(
|
74
|
+
:operation => :"ContentPackageReleaseComponentsApi.create",
|
71
75
|
:header_params => header_params,
|
72
76
|
:query_params => query_params,
|
73
77
|
:form_params => form_params,
|
@@ -88,12 +92,13 @@ module PulpDebClient
|
|
88
92
|
# @param [Hash] opts the optional parameters
|
89
93
|
# @option opts [Integer] :limit Number of results to return per page.
|
90
94
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
91
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
95
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
92
96
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
93
97
|
# @option opts [String] :package Filter results where package matches value
|
94
98
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
95
99
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
96
100
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
101
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
97
102
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
98
103
|
# @option opts [String] :release_component Filter results where release_component matches value
|
99
104
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -112,12 +117,13 @@ module PulpDebClient
|
|
112
117
|
# @param [Hash] opts the optional parameters
|
113
118
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
119
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
|
-
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
120
|
+
# @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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
116
121
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
117
122
|
# @option opts [String] :package Filter results where package matches value
|
118
123
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
119
124
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
120
125
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
126
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
121
127
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
122
128
|
# @option opts [String] :release_component Filter results where release_component matches value
|
123
129
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -130,7 +136,7 @@ module PulpDebClient
|
|
130
136
|
if @api_client.config.debugging
|
131
137
|
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.list ...'
|
132
138
|
end
|
133
|
-
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
139
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
|
134
140
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
135
141
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
136
142
|
end
|
@@ -147,6 +153,7 @@ module PulpDebClient
|
|
147
153
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
148
154
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
149
155
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
156
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
150
157
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
151
158
|
query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
|
152
159
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -158,21 +165,22 @@ module PulpDebClient
|
|
158
165
|
# header parameters
|
159
166
|
header_params = opts[:header_params] || {}
|
160
167
|
# HTTP header 'Accept' (if needed)
|
161
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
162
169
|
|
163
170
|
# form parameters
|
164
171
|
form_params = opts[:form_params] || {}
|
165
172
|
|
166
173
|
# http body (model)
|
167
|
-
post_body = opts[:
|
174
|
+
post_body = opts[:debug_body]
|
168
175
|
|
169
176
|
# return_type
|
170
|
-
return_type = opts[:
|
177
|
+
return_type = opts[:debug_return_type] || 'PaginateddebPackageReleaseComponentResponseList'
|
171
178
|
|
172
179
|
# auth_names
|
173
|
-
auth_names = opts[:
|
180
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
174
181
|
|
175
182
|
new_options = opts.merge(
|
183
|
+
:operation => :"ContentPackageReleaseComponentsApi.list",
|
176
184
|
:header_params => header_params,
|
177
185
|
:query_params => query_params,
|
178
186
|
:form_params => form_params,
|
@@ -226,21 +234,22 @@ module PulpDebClient
|
|
226
234
|
# header parameters
|
227
235
|
header_params = opts[:header_params] || {}
|
228
236
|
# HTTP header 'Accept' (if needed)
|
229
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
230
238
|
|
231
239
|
# form parameters
|
232
240
|
form_params = opts[:form_params] || {}
|
233
241
|
|
234
242
|
# http body (model)
|
235
|
-
post_body = opts[:
|
243
|
+
post_body = opts[:debug_body]
|
236
244
|
|
237
245
|
# return_type
|
238
|
-
return_type = opts[:
|
246
|
+
return_type = opts[:debug_return_type] || 'DebPackageReleaseComponentResponse'
|
239
247
|
|
240
248
|
# auth_names
|
241
|
-
auth_names = opts[:
|
249
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
242
250
|
|
243
251
|
new_options = opts.merge(
|
252
|
+
:operation => :"ContentPackageReleaseComponentsApi.read",
|
244
253
|
:header_params => header_params,
|
245
254
|
:query_params => query_params,
|
246
255
|
:form_params => form_params,
|
@@ -255,5 +264,153 @@ module PulpDebClient
|
|
255
264
|
end
|
256
265
|
return data, status_code, headers
|
257
266
|
end
|
267
|
+
|
268
|
+
# Set a label
|
269
|
+
# Set a single pulp_label on the object to a specific value or null.
|
270
|
+
# @param deb_package_release_component_href [String]
|
271
|
+
# @param set_label [SetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [SetLabelResponse]
|
274
|
+
def set_label(deb_package_release_component_href, set_label, opts = {})
|
275
|
+
data, _status_code, _headers = set_label_with_http_info(deb_package_release_component_href, set_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Set a label
|
280
|
+
# Set a single pulp_label on the object to a specific value or null.
|
281
|
+
# @param deb_package_release_component_href [String]
|
282
|
+
# @param set_label [SetLabel]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
285
|
+
def set_label_with_http_info(deb_package_release_component_href, set_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.set_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'deb_package_release_component_href' is set
|
290
|
+
if @api_client.config.client_side_validation && deb_package_release_component_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'deb_package_release_component_href' when calling ContentPackageReleaseComponentsApi.set_label"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'set_label' is set
|
294
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackageReleaseComponentsApi.set_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{deb_package_release_component_href}set_label/'.sub('{' + 'deb_package_release_component_href' + '}', CGI.escape(deb_package_release_component_href.to_s).gsub('%2F', '/'))
|
299
|
+
|
300
|
+
# query parameters
|
301
|
+
query_params = opts[:query_params] || {}
|
302
|
+
|
303
|
+
# header parameters
|
304
|
+
header_params = opts[:header_params] || {}
|
305
|
+
# HTTP header 'Accept' (if needed)
|
306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
307
|
+
# HTTP header 'Content-Type'
|
308
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
309
|
+
if !content_type.nil?
|
310
|
+
header_params['Content-Type'] = content_type
|
311
|
+
end
|
312
|
+
|
313
|
+
# form parameters
|
314
|
+
form_params = opts[:form_params] || {}
|
315
|
+
|
316
|
+
# http body (model)
|
317
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"ContentPackageReleaseComponentsApi.set_label",
|
327
|
+
:header_params => header_params,
|
328
|
+
:query_params => query_params,
|
329
|
+
:form_params => form_params,
|
330
|
+
:body => post_body,
|
331
|
+
:auth_names => auth_names,
|
332
|
+
:return_type => return_type
|
333
|
+
)
|
334
|
+
|
335
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
341
|
+
|
342
|
+
# Unset a label
|
343
|
+
# Unset a single pulp_label on the object.
|
344
|
+
# @param deb_package_release_component_href [String]
|
345
|
+
# @param unset_label [UnsetLabel]
|
346
|
+
# @param [Hash] opts the optional parameters
|
347
|
+
# @return [UnsetLabelResponse]
|
348
|
+
def unset_label(deb_package_release_component_href, unset_label, opts = {})
|
349
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_package_release_component_href, unset_label, opts)
|
350
|
+
data
|
351
|
+
end
|
352
|
+
|
353
|
+
# Unset a label
|
354
|
+
# Unset a single pulp_label on the object.
|
355
|
+
# @param deb_package_release_component_href [String]
|
356
|
+
# @param unset_label [UnsetLabel]
|
357
|
+
# @param [Hash] opts the optional parameters
|
358
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
359
|
+
def unset_label_with_http_info(deb_package_release_component_href, unset_label, opts = {})
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.unset_label ...'
|
362
|
+
end
|
363
|
+
# verify the required parameter 'deb_package_release_component_href' is set
|
364
|
+
if @api_client.config.client_side_validation && deb_package_release_component_href.nil?
|
365
|
+
fail ArgumentError, "Missing the required parameter 'deb_package_release_component_href' when calling ContentPackageReleaseComponentsApi.unset_label"
|
366
|
+
end
|
367
|
+
# verify the required parameter 'unset_label' is set
|
368
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackageReleaseComponentsApi.unset_label"
|
370
|
+
end
|
371
|
+
# resource path
|
372
|
+
local_var_path = '{deb_package_release_component_href}unset_label/'.sub('{' + 'deb_package_release_component_href' + '}', CGI.escape(deb_package_release_component_href.to_s).gsub('%2F', '/'))
|
373
|
+
|
374
|
+
# query parameters
|
375
|
+
query_params = opts[:query_params] || {}
|
376
|
+
|
377
|
+
# header parameters
|
378
|
+
header_params = opts[:header_params] || {}
|
379
|
+
# HTTP header 'Accept' (if needed)
|
380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
381
|
+
# HTTP header 'Content-Type'
|
382
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
383
|
+
if !content_type.nil?
|
384
|
+
header_params['Content-Type'] = content_type
|
385
|
+
end
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = opts[:form_params] || {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
392
|
+
|
393
|
+
# return_type
|
394
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
395
|
+
|
396
|
+
# auth_names
|
397
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
398
|
+
|
399
|
+
new_options = opts.merge(
|
400
|
+
:operation => :"ContentPackageReleaseComponentsApi.unset_label",
|
401
|
+
:header_params => header_params,
|
402
|
+
:query_params => query_params,
|
403
|
+
:form_params => form_params,
|
404
|
+
:body => post_body,
|
405
|
+
:auth_names => auth_names,
|
406
|
+
:return_type => return_type
|
407
|
+
)
|
408
|
+
|
409
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
410
|
+
if @api_client.config.debugging
|
411
|
+
@api_client.config.logger.debug "API called: ContentPackageReleaseComponentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
412
|
+
end
|
413
|
+
return data, status_code, headers
|
414
|
+
end
|
258
415
|
end
|
259
416
|
end
|