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
|
|
@@ -24,6 +24,7 @@ module PulpDebClient
|
|
24
24
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
27
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
27
28
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
29
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
30
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
@@ -39,6 +40,7 @@ module PulpDebClient
|
|
39
40
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
40
41
|
# @param [Hash] opts the optional parameters
|
41
42
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
42
44
|
# @option opts [String] :artifact Artifact file representing the physical content
|
43
45
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
44
46
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
@@ -69,29 +71,34 @@ module PulpDebClient
|
|
69
71
|
# header parameters
|
70
72
|
header_params = opts[:header_params] || {}
|
71
73
|
# HTTP header 'Accept' (if needed)
|
72
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
73
75
|
# HTTP header 'Content-Type'
|
74
|
-
|
76
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
77
|
+
if !content_type.nil?
|
78
|
+
header_params['Content-Type'] = content_type
|
79
|
+
end
|
75
80
|
|
76
81
|
# form parameters
|
77
82
|
form_params = opts[:form_params] || {}
|
78
83
|
form_params['relative_path'] = relative_path
|
79
84
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
85
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
80
86
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
81
87
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
82
88
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
83
89
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
84
90
|
|
85
91
|
# http body (model)
|
86
|
-
post_body = opts[:
|
92
|
+
post_body = opts[:debug_body]
|
87
93
|
|
88
94
|
# return_type
|
89
|
-
return_type = opts[:
|
95
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
90
96
|
|
91
97
|
# auth_names
|
92
|
-
auth_names = opts[:
|
98
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
93
99
|
|
94
100
|
new_options = opts.merge(
|
101
|
+
:operation => :"ContentGenericContentsApi.create",
|
95
102
|
:header_params => header_params,
|
96
103
|
:query_params => query_params,
|
97
104
|
:form_params => form_params,
|
@@ -112,11 +119,12 @@ module PulpDebClient
|
|
112
119
|
# @param [Hash] opts the optional parameters
|
113
120
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
121
|
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
122
|
+
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
116
123
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
117
124
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
118
125
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
119
126
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
127
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
120
128
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
121
129
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
122
130
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -136,11 +144,12 @@ module PulpDebClient
|
|
136
144
|
# @param [Hash] opts the optional parameters
|
137
145
|
# @option opts [Integer] :limit Number of results to return per page.
|
138
146
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
139
|
-
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
147
|
+
# @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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
140
148
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
141
149
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
142
150
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
143
151
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
152
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
144
153
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
145
154
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
146
155
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
@@ -154,7 +163,7 @@ module PulpDebClient
|
|
154
163
|
if @api_client.config.debugging
|
155
164
|
@api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.list ...'
|
156
165
|
end
|
157
|
-
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
166
|
+
allowable_values = ["-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
158
167
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
159
168
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
160
169
|
end
|
@@ -170,6 +179,7 @@ module PulpDebClient
|
|
170
179
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
171
180
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
172
181
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
182
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
173
183
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
174
184
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
175
185
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -182,21 +192,22 @@ module PulpDebClient
|
|
182
192
|
# header parameters
|
183
193
|
header_params = opts[:header_params] || {}
|
184
194
|
# HTTP header 'Accept' (if needed)
|
185
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
186
196
|
|
187
197
|
# form parameters
|
188
198
|
form_params = opts[:form_params] || {}
|
189
199
|
|
190
200
|
# http body (model)
|
191
|
-
post_body = opts[:
|
201
|
+
post_body = opts[:debug_body]
|
192
202
|
|
193
203
|
# return_type
|
194
|
-
return_type = opts[:
|
204
|
+
return_type = opts[:debug_return_type] || 'PaginateddebGenericContentResponseList'
|
195
205
|
|
196
206
|
# auth_names
|
197
|
-
auth_names = opts[:
|
207
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
198
208
|
|
199
209
|
new_options = opts.merge(
|
210
|
+
:operation => :"ContentGenericContentsApi.list",
|
200
211
|
:header_params => header_params,
|
201
212
|
:query_params => query_params,
|
202
213
|
:form_params => form_params,
|
@@ -250,21 +261,22 @@ module PulpDebClient
|
|
250
261
|
# header parameters
|
251
262
|
header_params = opts[:header_params] || {}
|
252
263
|
# HTTP header 'Accept' (if needed)
|
253
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
254
265
|
|
255
266
|
# form parameters
|
256
267
|
form_params = opts[:form_params] || {}
|
257
268
|
|
258
269
|
# http body (model)
|
259
|
-
post_body = opts[:
|
270
|
+
post_body = opts[:debug_body]
|
260
271
|
|
261
272
|
# return_type
|
262
|
-
return_type = opts[:
|
273
|
+
return_type = opts[:debug_return_type] || 'DebGenericContentResponse'
|
263
274
|
|
264
275
|
# auth_names
|
265
|
-
auth_names = opts[:
|
276
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
266
277
|
|
267
278
|
new_options = opts.merge(
|
279
|
+
:operation => :"ContentGenericContentsApi.read",
|
268
280
|
:header_params => header_params,
|
269
281
|
:query_params => query_params,
|
270
282
|
:form_params => form_params,
|
@@ -279,5 +291,153 @@ module PulpDebClient
|
|
279
291
|
end
|
280
292
|
return data, status_code, headers
|
281
293
|
end
|
294
|
+
|
295
|
+
# Set a label
|
296
|
+
# Set a single pulp_label on the object to a specific value or null.
|
297
|
+
# @param deb_generic_content_href [String]
|
298
|
+
# @param set_label [SetLabel]
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [SetLabelResponse]
|
301
|
+
def set_label(deb_generic_content_href, set_label, opts = {})
|
302
|
+
data, _status_code, _headers = set_label_with_http_info(deb_generic_content_href, set_label, opts)
|
303
|
+
data
|
304
|
+
end
|
305
|
+
|
306
|
+
# Set a label
|
307
|
+
# Set a single pulp_label on the object to a specific value or null.
|
308
|
+
# @param deb_generic_content_href [String]
|
309
|
+
# @param set_label [SetLabel]
|
310
|
+
# @param [Hash] opts the optional parameters
|
311
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
312
|
+
def set_label_with_http_info(deb_generic_content_href, set_label, opts = {})
|
313
|
+
if @api_client.config.debugging
|
314
|
+
@api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.set_label ...'
|
315
|
+
end
|
316
|
+
# verify the required parameter 'deb_generic_content_href' is set
|
317
|
+
if @api_client.config.client_side_validation && deb_generic_content_href.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.set_label"
|
319
|
+
end
|
320
|
+
# verify the required parameter 'set_label' is set
|
321
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
322
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentGenericContentsApi.set_label"
|
323
|
+
end
|
324
|
+
# resource path
|
325
|
+
local_var_path = '{deb_generic_content_href}set_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
|
326
|
+
|
327
|
+
# query parameters
|
328
|
+
query_params = opts[:query_params] || {}
|
329
|
+
|
330
|
+
# header parameters
|
331
|
+
header_params = opts[:header_params] || {}
|
332
|
+
# HTTP header 'Accept' (if needed)
|
333
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
334
|
+
# HTTP header 'Content-Type'
|
335
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
336
|
+
if !content_type.nil?
|
337
|
+
header_params['Content-Type'] = content_type
|
338
|
+
end
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = opts[:form_params] || {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
345
|
+
|
346
|
+
# return_type
|
347
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
348
|
+
|
349
|
+
# auth_names
|
350
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
351
|
+
|
352
|
+
new_options = opts.merge(
|
353
|
+
:operation => :"ContentGenericContentsApi.set_label",
|
354
|
+
:header_params => header_params,
|
355
|
+
:query_params => query_params,
|
356
|
+
:form_params => form_params,
|
357
|
+
:body => post_body,
|
358
|
+
:auth_names => auth_names,
|
359
|
+
:return_type => return_type
|
360
|
+
)
|
361
|
+
|
362
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug "API called: ContentGenericContentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
365
|
+
end
|
366
|
+
return data, status_code, headers
|
367
|
+
end
|
368
|
+
|
369
|
+
# Unset a label
|
370
|
+
# Unset a single pulp_label on the object.
|
371
|
+
# @param deb_generic_content_href [String]
|
372
|
+
# @param unset_label [UnsetLabel]
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @return [UnsetLabelResponse]
|
375
|
+
def unset_label(deb_generic_content_href, unset_label, opts = {})
|
376
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_generic_content_href, unset_label, opts)
|
377
|
+
data
|
378
|
+
end
|
379
|
+
|
380
|
+
# Unset a label
|
381
|
+
# Unset a single pulp_label on the object.
|
382
|
+
# @param deb_generic_content_href [String]
|
383
|
+
# @param unset_label [UnsetLabel]
|
384
|
+
# @param [Hash] opts the optional parameters
|
385
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
386
|
+
def unset_label_with_http_info(deb_generic_content_href, unset_label, opts = {})
|
387
|
+
if @api_client.config.debugging
|
388
|
+
@api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.unset_label ...'
|
389
|
+
end
|
390
|
+
# verify the required parameter 'deb_generic_content_href' is set
|
391
|
+
if @api_client.config.client_side_validation && deb_generic_content_href.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'deb_generic_content_href' when calling ContentGenericContentsApi.unset_label"
|
393
|
+
end
|
394
|
+
# verify the required parameter 'unset_label' is set
|
395
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentGenericContentsApi.unset_label"
|
397
|
+
end
|
398
|
+
# resource path
|
399
|
+
local_var_path = '{deb_generic_content_href}unset_label/'.sub('{' + 'deb_generic_content_href' + '}', CGI.escape(deb_generic_content_href.to_s).gsub('%2F', '/'))
|
400
|
+
|
401
|
+
# query parameters
|
402
|
+
query_params = opts[:query_params] || {}
|
403
|
+
|
404
|
+
# header parameters
|
405
|
+
header_params = opts[:header_params] || {}
|
406
|
+
# HTTP header 'Accept' (if needed)
|
407
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
408
|
+
# HTTP header 'Content-Type'
|
409
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
410
|
+
if !content_type.nil?
|
411
|
+
header_params['Content-Type'] = content_type
|
412
|
+
end
|
413
|
+
|
414
|
+
# form parameters
|
415
|
+
form_params = opts[:form_params] || {}
|
416
|
+
|
417
|
+
# http body (model)
|
418
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
419
|
+
|
420
|
+
# return_type
|
421
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
422
|
+
|
423
|
+
# auth_names
|
424
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
425
|
+
|
426
|
+
new_options = opts.merge(
|
427
|
+
:operation => :"ContentGenericContentsApi.unset_label",
|
428
|
+
:header_params => header_params,
|
429
|
+
:query_params => query_params,
|
430
|
+
:form_params => form_params,
|
431
|
+
:body => post_body,
|
432
|
+
:auth_names => auth_names,
|
433
|
+
:return_type => return_type
|
434
|
+
)
|
435
|
+
|
436
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
437
|
+
if @api_client.config.debugging
|
438
|
+
@api_client.config.logger.debug "API called: ContentGenericContentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
439
|
+
end
|
440
|
+
return data, status_code, headers
|
441
|
+
end
|
282
442
|
end
|
283
443
|
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_installer_file_index)
|
63
66
|
|
64
67
|
# return_type
|
65
|
-
return_type = opts[:
|
68
|
+
return_type = opts[:debug_return_type] || 'DebInstallerFileIndexResponse'
|
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 => :"ContentInstallerFileIndicesApi.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) * `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) * `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) * `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) * `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: ContentInstallerFileIndicesApi.list ...'
|
136
142
|
end
|
137
|
-
allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "component", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "sha256", "timestamp_of_interest", "upstream_id"]
|
143
|
+
allowable_values = ["-architecture", "-component", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-sha256", "-timestamp_of_interest", "-upstream_id", "architecture", "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] || 'PaginateddebInstallerFileIndexResponseList'
|
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 => :"ContentInstallerFileIndicesApi.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] || 'DebInstallerFileIndexResponse'
|
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 => :"ContentInstallerFileIndicesApi.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_installer_file_index_href [String]
|
277
|
+
# @param set_label [SetLabel]
|
278
|
+
# @param [Hash] opts the optional parameters
|
279
|
+
# @return [SetLabelResponse]
|
280
|
+
def set_label(deb_installer_file_index_href, set_label, opts = {})
|
281
|
+
data, _status_code, _headers = set_label_with_http_info(deb_installer_file_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_installer_file_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_installer_file_index_href, set_label, opts = {})
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.set_label ...'
|
294
|
+
end
|
295
|
+
# verify the required parameter 'deb_installer_file_index_href' is set
|
296
|
+
if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
|
297
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.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 ContentInstallerFileIndicesApi.set_label"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = '{deb_installer_file_index_href}set_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_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 => :"ContentInstallerFileIndicesApi.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: ContentInstallerFileIndicesApi#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_installer_file_index_href [String]
|
351
|
+
# @param unset_label [UnsetLabel]
|
352
|
+
# @param [Hash] opts the optional parameters
|
353
|
+
# @return [UnsetLabelResponse]
|
354
|
+
def unset_label(deb_installer_file_index_href, unset_label, opts = {})
|
355
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_installer_file_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_installer_file_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_installer_file_index_href, unset_label, opts = {})
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.unset_label ...'
|
368
|
+
end
|
369
|
+
# verify the required parameter 'deb_installer_file_index_href' is set
|
370
|
+
if @api_client.config.client_side_validation && deb_installer_file_index_href.nil?
|
371
|
+
fail ArgumentError, "Missing the required parameter 'deb_installer_file_index_href' when calling ContentInstallerFileIndicesApi.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 ContentInstallerFileIndicesApi.unset_label"
|
376
|
+
end
|
377
|
+
# resource path
|
378
|
+
local_var_path = '{deb_installer_file_index_href}unset_label/'.sub('{' + 'deb_installer_file_index_href' + '}', CGI.escape(deb_installer_file_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 => :"ContentInstallerFileIndicesApi.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: ContentInstallerFileIndicesApi#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
|