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
@@ -2,26 +2,27 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**create**](ContentInstallerPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/installer_packages/ | Create an installer package
|
8
|
-
[**list**](ContentInstallerPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/installer_packages/ | List installer packages
|
9
|
-
[**read**](ContentInstallerPackagesApi.md#read) | **GET** {deb_installer_package_href} | Inspect an installer package
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentInstallerPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/installer_packages/ | Create an installer package |
|
8
|
+
| [**list**](ContentInstallerPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/installer_packages/ | List installer packages |
|
9
|
+
| [**read**](ContentInstallerPackagesApi.md#read) | **GET** {deb_installer_package_href} | Inspect an installer package |
|
10
|
+
| [**set_label**](ContentInstallerPackagesApi.md#set_label) | **POST** {deb_installer_package_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentInstallerPackagesApi.md#unset_label) | **POST** {deb_installer_package_href}unset_label/ | Unset a label |
|
11
12
|
|
12
13
|
|
13
14
|
## create
|
14
15
|
|
15
|
-
> AsyncOperationResponse create(opts)
|
16
|
+
> <AsyncOperationResponse> create(opts)
|
16
17
|
|
17
18
|
Create an installer package
|
18
19
|
|
19
20
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
21
|
|
21
|
-
###
|
22
|
+
### Examples
|
22
23
|
|
23
24
|
```ruby
|
24
|
-
|
25
|
+
require 'time'
|
25
26
|
require 'pulp_deb_client'
|
26
27
|
# setup authorization
|
27
28
|
PulpDebClient.configure do |config|
|
@@ -33,33 +34,52 @@ end
|
|
33
34
|
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
34
35
|
opts = {
|
35
36
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
37
|
+
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
36
38
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
39
|
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
38
|
-
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
40
|
+
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
39
41
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
42
|
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
41
43
|
}
|
42
44
|
|
43
45
|
begin
|
44
|
-
#Create an installer package
|
46
|
+
# Create an installer package
|
45
47
|
result = api_instance.create(opts)
|
46
48
|
p result
|
47
49
|
rescue PulpDebClient::ApiError => e
|
48
|
-
puts "
|
50
|
+
puts "Error when calling ContentInstallerPackagesApi->create: #{e}"
|
49
51
|
end
|
50
52
|
```
|
51
53
|
|
52
|
-
|
54
|
+
#### Using the create_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Create an installer package
|
63
|
+
data, status_code, headers = api_instance.create_with_http_info(opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <AsyncOperationResponse>
|
67
|
+
rescue PulpDebClient::ApiError => e
|
68
|
+
puts "Error when calling ContentInstallerPackagesApi->create_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
53
71
|
|
72
|
+
### Parameters
|
54
73
|
|
55
|
-
Name | Type | Description
|
56
|
-
|
57
|
-
**repository** | **String
|
58
|
-
**
|
59
|
-
**
|
60
|
-
**
|
61
|
-
**
|
62
|
-
**
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
77
|
+
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
78
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
79
|
+
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
|
80
|
+
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
81
|
+
| **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
|
82
|
+
| **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
|
63
83
|
|
64
84
|
### Return type
|
65
85
|
|
@@ -77,16 +97,16 @@ Name | Type | Description | Notes
|
|
77
97
|
|
78
98
|
## list
|
79
99
|
|
80
|
-
> PaginateddebInstallerPackageResponseList list(opts)
|
100
|
+
> <PaginateddebInstallerPackageResponseList> list(opts)
|
81
101
|
|
82
102
|
List installer packages
|
83
103
|
|
84
104
|
An InstallerPackage represents a '.udeb' installer package. Associated artifacts: Exactly one '.udeb' installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
|
85
105
|
|
86
|
-
###
|
106
|
+
### Examples
|
87
107
|
|
88
108
|
```ruby
|
89
|
-
|
109
|
+
require 'time'
|
90
110
|
require 'pulp_deb_client'
|
91
111
|
# setup authorization
|
92
112
|
PulpDebClient.configure do |config|
|
@@ -105,17 +125,18 @@ opts = {
|
|
105
125
|
installed_size: 56, # Integer | Filter results where installed_size matches value
|
106
126
|
limit: 56, # Integer | Number of results to return per page.
|
107
127
|
maintainer: 'maintainer_example', # String | Filter results where maintainer matches value
|
108
|
-
multi_arch: '
|
128
|
+
multi_arch: 'allowed', # String | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed
|
109
129
|
offset: 56, # Integer | The initial index from which to return the results.
|
110
|
-
ordering: ['
|
130
|
+
ordering: ['-architecture'], # Array<String> | 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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
111
131
|
origin: 'origin_example', # String | Filter results where origin matches value
|
112
132
|
original_maintainer: 'original_maintainer_example', # String | Filter results where original_maintainer matches value
|
113
|
-
orphaned_for:
|
133
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
114
134
|
package: 'package_example', # String | Filter results where package matches value
|
115
135
|
priority: 'priority_example', # String | Filter results where priority matches value
|
116
|
-
prn__in: ['
|
117
|
-
pulp_href__in: ['
|
118
|
-
pulp_id__in: ['
|
136
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
137
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
138
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
139
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
119
140
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
120
141
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
121
142
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -125,54 +146,72 @@ opts = {
|
|
125
146
|
source: 'source_example', # String | Filter results where source matches value
|
126
147
|
tag: 'tag_example', # String | Filter results where tag matches value
|
127
148
|
version: 'version_example', # String | Filter results where version matches value
|
128
|
-
fields: ['
|
129
|
-
exclude_fields: ['
|
149
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
150
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
130
151
|
}
|
131
152
|
|
132
153
|
begin
|
133
|
-
#List installer packages
|
154
|
+
# List installer packages
|
134
155
|
result = api_instance.list(opts)
|
135
156
|
p result
|
136
157
|
rescue PulpDebClient::ApiError => e
|
137
|
-
puts "
|
158
|
+
puts "Error when calling ContentInstallerPackagesApi->list: #{e}"
|
138
159
|
end
|
139
160
|
```
|
140
161
|
|
141
|
-
|
162
|
+
#### Using the list_with_http_info variant
|
163
|
+
|
164
|
+
This returns an Array which contains the response data, status code and headers.
|
165
|
+
|
166
|
+
> <Array(<PaginateddebInstallerPackageResponseList>, Integer, Hash)> list_with_http_info(opts)
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
begin
|
170
|
+
# List installer packages
|
171
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
172
|
+
p status_code # => 2xx
|
173
|
+
p headers # => { ... }
|
174
|
+
p data # => <PaginateddebInstallerPackageResponseList>
|
175
|
+
rescue PulpDebClient::ApiError => e
|
176
|
+
puts "Error when calling ContentInstallerPackagesApi->list_with_http_info: #{e}"
|
177
|
+
end
|
178
|
+
```
|
142
179
|
|
180
|
+
### Parameters
|
143
181
|
|
144
|
-
Name | Type | Description
|
145
|
-
|
146
|
-
**architecture** | **String
|
147
|
-
**auto_built_package** | **String
|
148
|
-
**build_essential** | **Boolean
|
149
|
-
**built_using** | **String
|
150
|
-
**essential** | **Boolean
|
151
|
-
**installed_size** | **Integer
|
152
|
-
**limit** | **Integer
|
153
|
-
**maintainer** | **String
|
154
|
-
**multi_arch** | **String
|
155
|
-
**offset** | **Integer
|
156
|
-
**ordering** | [**Array<String>**](String.md)| 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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
157
|
-
**origin** | **String
|
158
|
-
**original_maintainer** | **String
|
159
|
-
**orphaned_for** | **Float
|
160
|
-
**package** | **String
|
161
|
-
**priority** | **String
|
162
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
163
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
164
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
165
|
-
**
|
166
|
-
**
|
167
|
-
**
|
168
|
-
**
|
169
|
-
**
|
170
|
-
**
|
171
|
-
**
|
172
|
-
**
|
173
|
-
**
|
174
|
-
**
|
175
|
-
**
|
182
|
+
| Name | Type | Description | Notes |
|
183
|
+
| ---- | ---- | ----------- | ----- |
|
184
|
+
| **architecture** | **String** | Filter results where architecture matches value | [optional] |
|
185
|
+
| **auto_built_package** | **String** | Filter results where auto_built_package matches value | [optional] |
|
186
|
+
| **build_essential** | **Boolean** | Filter results where build_essential matches value * `True` - yes * `False` - no | [optional] |
|
187
|
+
| **built_using** | **String** | Filter results where built_using matches value | [optional] |
|
188
|
+
| **essential** | **Boolean** | Filter results where essential matches value * `True` - yes * `False` - no | [optional] |
|
189
|
+
| **installed_size** | **Integer** | Filter results where installed_size matches value | [optional] |
|
190
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
191
|
+
| **maintainer** | **String** | Filter results where maintainer matches value | [optional] |
|
192
|
+
| **multi_arch** | **String** | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed | [optional] |
|
193
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
194
|
+
| **ordering** | [**Array<String>**](String.md) | 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) * `package` - Package * `-package` - Package (descending) * `source` - Source * `-source` - Source (descending) * `version` - Version * `-version` - Version (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `section` - Section * `-section` - Section (descending) * `priority` - Priority * `-priority` - Priority (descending) * `origin` - Origin * `-origin` - Origin (descending) * `tag` - Tag * `-tag` - Tag (descending) * `bugs` - Bugs * `-bugs` - Bugs (descending) * `essential` - Essential * `-essential` - Essential (descending) * `build_essential` - Build essential * `-build_essential` - Build essential (descending) * `installed_size` - Installed size * `-installed_size` - Installed size (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `original_maintainer` - Original maintainer * `-original_maintainer` - Original maintainer (descending) * `description` - Description * `-description` - Description (descending) * `description_md5` - Description md5 * `-description_md5` - Description md5 (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `built_using` - Built using * `-built_using` - Built using (descending) * `auto_built_package` - Auto built package * `-auto_built_package` - Auto built package (descending) * `multi_arch` - Multi arch * `-multi_arch` - Multi arch (descending) * `breaks` - Breaks * `-breaks` - Breaks (descending) * `conflicts` - Conflicts * `-conflicts` - Conflicts (descending) * `depends` - Depends * `-depends` - Depends (descending) * `recommends` - Recommends * `-recommends` - Recommends (descending) * `suggests` - Suggests * `-suggests` - Suggests (descending) * `enhances` - Enhances * `-enhances` - Enhances (descending) * `pre_depends` - Pre depends * `-pre_depends` - Pre depends (descending) * `provides` - Provides * `-provides` - Provides (descending) * `replaces` - Replaces * `-replaces` - Replaces (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `custom_fields` - Custom fields * `-custom_fields` - Custom fields (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
195
|
+
| **origin** | **String** | Filter results where origin matches value | [optional] |
|
196
|
+
| **original_maintainer** | **String** | Filter results where original_maintainer matches value | [optional] |
|
197
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
198
|
+
| **package** | **String** | Filter results where package matches value | [optional] |
|
199
|
+
| **priority** | **String** | Filter results where priority matches value | [optional] |
|
200
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
201
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
202
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
203
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
204
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
205
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
206
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
207
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
208
|
+
| **section** | **String** | Filter results where section matches value | [optional] |
|
209
|
+
| **sha256** | **String** | Filter results where sha256 matches value | [optional] |
|
210
|
+
| **source** | **String** | Filter results where source matches value | [optional] |
|
211
|
+
| **tag** | **String** | Filter results where tag matches value | [optional] |
|
212
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
213
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
214
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
176
215
|
|
177
216
|
### Return type
|
178
217
|
|
@@ -190,16 +229,16 @@ Name | Type | Description | Notes
|
|
190
229
|
|
191
230
|
## read
|
192
231
|
|
193
|
-
> DebInstallerPackageResponse read(deb_installer_package_href, opts)
|
232
|
+
> <DebInstallerPackageResponse> read(deb_installer_package_href, opts)
|
194
233
|
|
195
234
|
Inspect an installer package
|
196
235
|
|
197
236
|
An InstallerPackage represents a '.udeb' installer package. Associated artifacts: Exactly one '.udeb' installer package file. Note that installer packages are currently used exclusively for verbatim publications. The APT publisher (both simple and structured mode) will not include these packages.
|
198
237
|
|
199
|
-
###
|
238
|
+
### Examples
|
200
239
|
|
201
240
|
```ruby
|
202
|
-
|
241
|
+
require 'time'
|
203
242
|
require 'pulp_deb_client'
|
204
243
|
# setup authorization
|
205
244
|
PulpDebClient.configure do |config|
|
@@ -211,27 +250,44 @@ end
|
|
211
250
|
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
212
251
|
deb_installer_package_href = 'deb_installer_package_href_example' # String |
|
213
252
|
opts = {
|
214
|
-
fields: ['
|
215
|
-
exclude_fields: ['
|
253
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
254
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
216
255
|
}
|
217
256
|
|
218
257
|
begin
|
219
|
-
#Inspect an installer package
|
258
|
+
# Inspect an installer package
|
220
259
|
result = api_instance.read(deb_installer_package_href, opts)
|
221
260
|
p result
|
222
261
|
rescue PulpDebClient::ApiError => e
|
223
|
-
puts "
|
262
|
+
puts "Error when calling ContentInstallerPackagesApi->read: #{e}"
|
224
263
|
end
|
225
264
|
```
|
226
265
|
|
227
|
-
|
266
|
+
#### Using the read_with_http_info variant
|
267
|
+
|
268
|
+
This returns an Array which contains the response data, status code and headers.
|
269
|
+
|
270
|
+
> <Array(<DebInstallerPackageResponse>, Integer, Hash)> read_with_http_info(deb_installer_package_href, opts)
|
228
271
|
|
272
|
+
```ruby
|
273
|
+
begin
|
274
|
+
# Inspect an installer package
|
275
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_installer_package_href, opts)
|
276
|
+
p status_code # => 2xx
|
277
|
+
p headers # => { ... }
|
278
|
+
p data # => <DebInstallerPackageResponse>
|
279
|
+
rescue PulpDebClient::ApiError => e
|
280
|
+
puts "Error when calling ContentInstallerPackagesApi->read_with_http_info: #{e}"
|
281
|
+
end
|
282
|
+
```
|
283
|
+
|
284
|
+
### Parameters
|
229
285
|
|
230
|
-
Name | Type | Description
|
231
|
-
|
232
|
-
**deb_installer_package_href** | **String
|
233
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
234
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
286
|
+
| Name | Type | Description | Notes |
|
287
|
+
| ---- | ---- | ----------- | ----- |
|
288
|
+
| **deb_installer_package_href** | **String** | | |
|
289
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
290
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
235
291
|
|
236
292
|
### Return type
|
237
293
|
|
@@ -246,3 +302,147 @@ Name | Type | Description | Notes
|
|
246
302
|
- **Content-Type**: Not defined
|
247
303
|
- **Accept**: application/json
|
248
304
|
|
305
|
+
|
306
|
+
## set_label
|
307
|
+
|
308
|
+
> <SetLabelResponse> set_label(deb_installer_package_href, set_label)
|
309
|
+
|
310
|
+
Set a label
|
311
|
+
|
312
|
+
Set a single pulp_label on the object to a specific value or null.
|
313
|
+
|
314
|
+
### Examples
|
315
|
+
|
316
|
+
```ruby
|
317
|
+
require 'time'
|
318
|
+
require 'pulp_deb_client'
|
319
|
+
# setup authorization
|
320
|
+
PulpDebClient.configure do |config|
|
321
|
+
# Configure HTTP basic authorization: basicAuth
|
322
|
+
config.username = 'YOUR USERNAME'
|
323
|
+
config.password = 'YOUR PASSWORD'
|
324
|
+
end
|
325
|
+
|
326
|
+
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
327
|
+
deb_installer_package_href = 'deb_installer_package_href_example' # String |
|
328
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
329
|
+
|
330
|
+
begin
|
331
|
+
# Set a label
|
332
|
+
result = api_instance.set_label(deb_installer_package_href, set_label)
|
333
|
+
p result
|
334
|
+
rescue PulpDebClient::ApiError => e
|
335
|
+
puts "Error when calling ContentInstallerPackagesApi->set_label: #{e}"
|
336
|
+
end
|
337
|
+
```
|
338
|
+
|
339
|
+
#### Using the set_label_with_http_info variant
|
340
|
+
|
341
|
+
This returns an Array which contains the response data, status code and headers.
|
342
|
+
|
343
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_installer_package_href, set_label)
|
344
|
+
|
345
|
+
```ruby
|
346
|
+
begin
|
347
|
+
# Set a label
|
348
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_installer_package_href, set_label)
|
349
|
+
p status_code # => 2xx
|
350
|
+
p headers # => { ... }
|
351
|
+
p data # => <SetLabelResponse>
|
352
|
+
rescue PulpDebClient::ApiError => e
|
353
|
+
puts "Error when calling ContentInstallerPackagesApi->set_label_with_http_info: #{e}"
|
354
|
+
end
|
355
|
+
```
|
356
|
+
|
357
|
+
### Parameters
|
358
|
+
|
359
|
+
| Name | Type | Description | Notes |
|
360
|
+
| ---- | ---- | ----------- | ----- |
|
361
|
+
| **deb_installer_package_href** | **String** | | |
|
362
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
363
|
+
|
364
|
+
### Return type
|
365
|
+
|
366
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
367
|
+
|
368
|
+
### Authorization
|
369
|
+
|
370
|
+
[basicAuth](../README.md#basicAuth)
|
371
|
+
|
372
|
+
### HTTP request headers
|
373
|
+
|
374
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
375
|
+
- **Accept**: application/json
|
376
|
+
|
377
|
+
|
378
|
+
## unset_label
|
379
|
+
|
380
|
+
> <UnsetLabelResponse> unset_label(deb_installer_package_href, unset_label)
|
381
|
+
|
382
|
+
Unset a label
|
383
|
+
|
384
|
+
Unset a single pulp_label on the object.
|
385
|
+
|
386
|
+
### Examples
|
387
|
+
|
388
|
+
```ruby
|
389
|
+
require 'time'
|
390
|
+
require 'pulp_deb_client'
|
391
|
+
# setup authorization
|
392
|
+
PulpDebClient.configure do |config|
|
393
|
+
# Configure HTTP basic authorization: basicAuth
|
394
|
+
config.username = 'YOUR USERNAME'
|
395
|
+
config.password = 'YOUR PASSWORD'
|
396
|
+
end
|
397
|
+
|
398
|
+
api_instance = PulpDebClient::ContentInstallerPackagesApi.new
|
399
|
+
deb_installer_package_href = 'deb_installer_package_href_example' # String |
|
400
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
401
|
+
|
402
|
+
begin
|
403
|
+
# Unset a label
|
404
|
+
result = api_instance.unset_label(deb_installer_package_href, unset_label)
|
405
|
+
p result
|
406
|
+
rescue PulpDebClient::ApiError => e
|
407
|
+
puts "Error when calling ContentInstallerPackagesApi->unset_label: #{e}"
|
408
|
+
end
|
409
|
+
```
|
410
|
+
|
411
|
+
#### Using the unset_label_with_http_info variant
|
412
|
+
|
413
|
+
This returns an Array which contains the response data, status code and headers.
|
414
|
+
|
415
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_installer_package_href, unset_label)
|
416
|
+
|
417
|
+
```ruby
|
418
|
+
begin
|
419
|
+
# Unset a label
|
420
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_installer_package_href, unset_label)
|
421
|
+
p status_code # => 2xx
|
422
|
+
p headers # => { ... }
|
423
|
+
p data # => <UnsetLabelResponse>
|
424
|
+
rescue PulpDebClient::ApiError => e
|
425
|
+
puts "Error when calling ContentInstallerPackagesApi->unset_label_with_http_info: #{e}"
|
426
|
+
end
|
427
|
+
```
|
428
|
+
|
429
|
+
### Parameters
|
430
|
+
|
431
|
+
| Name | Type | Description | Notes |
|
432
|
+
| ---- | ---- | ----------- | ----- |
|
433
|
+
| **deb_installer_package_href** | **String** | | |
|
434
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
435
|
+
|
436
|
+
### Return type
|
437
|
+
|
438
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
439
|
+
|
440
|
+
### Authorization
|
441
|
+
|
442
|
+
[basicAuth](../README.md#basicAuth)
|
443
|
+
|
444
|
+
### HTTP request headers
|
445
|
+
|
446
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
447
|
+
- **Accept**: application/json
|
448
|
+
|