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**](ContentSourcePackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/source_packages/ | Create a source package
|
8
|
-
[**list**](ContentSourcePackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/source_packages/ | List source packages
|
9
|
-
[**read**](ContentSourcePackagesApi.md#read) | **GET** {deb_source_package_href} | Inspect a source package
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentSourcePackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/source_packages/ | Create a source package |
|
8
|
+
| [**list**](ContentSourcePackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/source_packages/ | List source packages |
|
9
|
+
| [**read**](ContentSourcePackagesApi.md#read) | **GET** {deb_source_package_href} | Inspect a source package |
|
10
|
+
| [**set_label**](ContentSourcePackagesApi.md#set_label) | **POST** {deb_source_package_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentSourcePackagesApi.md#unset_label) | **POST** {deb_source_package_href}unset_label/ | Unset a label |
|
11
12
|
|
12
13
|
|
13
14
|
## create
|
14
15
|
|
15
|
-
> AsyncOperationResponse create(deb_source_package)
|
16
|
+
> <AsyncOperationResponse> create(deb_source_package)
|
16
17
|
|
17
18
|
Create a source 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|
|
@@ -31,23 +32,40 @@ PulpDebClient.configure do |config|
|
|
31
32
|
end
|
32
33
|
|
33
34
|
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
34
|
-
deb_source_package = PulpDebClient::DebSourcePackage.new # DebSourcePackage |
|
35
|
+
deb_source_package = PulpDebClient::DebSourcePackage.new({artifact: 'artifact_example'}) # DebSourcePackage |
|
35
36
|
|
36
37
|
begin
|
37
|
-
#Create a source package
|
38
|
+
# Create a source package
|
38
39
|
result = api_instance.create(deb_source_package)
|
39
40
|
p result
|
40
41
|
rescue PulpDebClient::ApiError => e
|
41
|
-
puts "
|
42
|
+
puts "Error when calling ContentSourcePackagesApi->create: #{e}"
|
42
43
|
end
|
43
44
|
```
|
44
45
|
|
45
|
-
|
46
|
+
#### Using the create_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(deb_source_package)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Create a source package
|
55
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_source_package)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <AsyncOperationResponse>
|
59
|
+
rescue PulpDebClient::ApiError => e
|
60
|
+
puts "Error when calling ContentSourcePackagesApi->create_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
46
63
|
|
64
|
+
### Parameters
|
47
65
|
|
48
|
-
Name | Type | Description
|
49
|
-
|
50
|
-
**deb_source_package** | [**DebSourcePackage**](DebSourcePackage.md)| |
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **deb_source_package** | [**DebSourcePackage**](DebSourcePackage.md) | | |
|
51
69
|
|
52
70
|
### Return type
|
53
71
|
|
@@ -65,16 +83,16 @@ Name | Type | Description | Notes
|
|
65
83
|
|
66
84
|
## list
|
67
85
|
|
68
|
-
> PaginateddebSourcePackageResponseList list(opts)
|
86
|
+
> <PaginateddebSourcePackageResponseList> list(opts)
|
69
87
|
|
70
88
|
List source packages
|
71
89
|
|
72
90
|
A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
73
91
|
|
74
|
-
###
|
92
|
+
### Examples
|
75
93
|
|
76
94
|
```ruby
|
77
|
-
|
95
|
+
require 'time'
|
78
96
|
require 'pulp_deb_client'
|
79
97
|
# setup authorization
|
80
98
|
PulpDebClient.configure do |config|
|
@@ -99,12 +117,13 @@ opts = {
|
|
99
117
|
limit: 56, # Integer | Number of results to return per page.
|
100
118
|
maintainer: 'maintainer_example', # String | Filter results where maintainer matches value
|
101
119
|
offset: 56, # Integer | The initial index from which to return the results.
|
102
|
-
ordering: ['
|
103
|
-
orphaned_for:
|
120
|
+
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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
121
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
104
122
|
package_list: 'package_list_example', # String | Filter results where package_list matches value
|
105
|
-
prn__in: ['
|
106
|
-
pulp_href__in: ['
|
107
|
-
pulp_id__in: ['
|
123
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
124
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
125
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
126
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
108
127
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
109
128
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
110
129
|
release: 'release_example', # String | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -126,67 +145,85 @@ opts = {
|
|
126
145
|
vcs_mtn: 'vcs_mtn_example', # String | Filter results where vcs_mtn matches value
|
127
146
|
vcs_snv: 'vcs_snv_example', # String | Filter results where vcs_snv matches value
|
128
147
|
version: 'version_example', # String | Filter results where version matches value
|
129
|
-
fields: ['
|
130
|
-
exclude_fields: ['
|
148
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
149
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
131
150
|
}
|
132
151
|
|
133
152
|
begin
|
134
|
-
#List source packages
|
153
|
+
# List source packages
|
135
154
|
result = api_instance.list(opts)
|
136
155
|
p result
|
137
156
|
rescue PulpDebClient::ApiError => e
|
138
|
-
puts "
|
157
|
+
puts "Error when calling ContentSourcePackagesApi->list: #{e}"
|
139
158
|
end
|
140
159
|
```
|
141
160
|
|
142
|
-
|
161
|
+
#### Using the list_with_http_info variant
|
162
|
+
|
163
|
+
This returns an Array which contains the response data, status code and headers.
|
164
|
+
|
165
|
+
> <Array(<PaginateddebSourcePackageResponseList>, Integer, Hash)> list_with_http_info(opts)
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
begin
|
169
|
+
# List source packages
|
170
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
171
|
+
p status_code # => 2xx
|
172
|
+
p headers # => { ... }
|
173
|
+
p data # => <PaginateddebSourcePackageResponseList>
|
174
|
+
rescue PulpDebClient::ApiError => e
|
175
|
+
puts "Error when calling ContentSourcePackagesApi->list_with_http_info: #{e}"
|
176
|
+
end
|
177
|
+
```
|
143
178
|
|
179
|
+
### Parameters
|
144
180
|
|
145
|
-
Name | Type | Description
|
146
|
-
|
147
|
-
**architecture** | **String
|
148
|
-
**binary** | **String
|
149
|
-
**build_conflicts** | **String
|
150
|
-
**build_conflicts_arch** | **String
|
151
|
-
**build_conflicts_indep** | **String
|
152
|
-
**build_depends** | **String
|
153
|
-
**build_depends_arch** | **String
|
154
|
-
**build_depends_indep** | **String
|
155
|
-
**dgit** | **String
|
156
|
-
**format** | **String
|
157
|
-
**homepage** | **String
|
158
|
-
**limit** | **Integer
|
159
|
-
**maintainer** | **String
|
160
|
-
**offset** | **Integer
|
161
|
-
**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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
162
|
-
**orphaned_for** | **Float
|
163
|
-
**package_list** | **String
|
164
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
165
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
166
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
167
|
-
**
|
168
|
-
**
|
169
|
-
**
|
170
|
-
**
|
171
|
-
**
|
172
|
-
**
|
173
|
-
**
|
174
|
-
**
|
175
|
-
**
|
176
|
-
**
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
180
|
-
**
|
181
|
-
**
|
182
|
-
**
|
183
|
-
**
|
184
|
-
**
|
185
|
-
**
|
186
|
-
**
|
187
|
-
**
|
188
|
-
**
|
189
|
-
**
|
181
|
+
| Name | Type | Description | Notes |
|
182
|
+
| ---- | ---- | ----------- | ----- |
|
183
|
+
| **architecture** | **String** | Filter results where architecture matches value | [optional] |
|
184
|
+
| **binary** | **String** | Filter results where binary matches value | [optional] |
|
185
|
+
| **build_conflicts** | **String** | Filter results where build_conflicts matches value | [optional] |
|
186
|
+
| **build_conflicts_arch** | **String** | Filter results where build_conflicts_arch matches value | [optional] |
|
187
|
+
| **build_conflicts_indep** | **String** | Filter results where build_conflicts_indep matches value | [optional] |
|
188
|
+
| **build_depends** | **String** | Filter results where build_depends matches value | [optional] |
|
189
|
+
| **build_depends_arch** | **String** | Filter results where build_depends_arch matches value | [optional] |
|
190
|
+
| **build_depends_indep** | **String** | Filter results where build_depends_indep matches value | [optional] |
|
191
|
+
| **dgit** | **String** | Filter results where dgit matches value | [optional] |
|
192
|
+
| **format** | **String** | Filter results where format matches value | [optional] |
|
193
|
+
| **homepage** | **String** | Filter results where homepage matches value | [optional] |
|
194
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
195
|
+
| **maintainer** | **String** | Filter results where maintainer matches value | [optional] |
|
196
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
197
|
+
| **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) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `format` - Format * `-format` - Format (descending) * `source` - Source * `-source` - Source (descending) * `binary` - Binary * `-binary` - Binary (descending) * `architecture` - Architecture * `-architecture` - Architecture (descending) * `version` - Version * `-version` - Version (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `uploaders` - Uploaders * `-uploaders` - Uploaders (descending) * `homepage` - Homepage * `-homepage` - Homepage (descending) * `vcs_browser` - Vcs browser * `-vcs_browser` - Vcs browser (descending) * `vcs_arch` - Vcs arch * `-vcs_arch` - Vcs arch (descending) * `vcs_bzr` - Vcs bzr * `-vcs_bzr` - Vcs bzr (descending) * `vcs_cvs` - Vcs cvs * `-vcs_cvs` - Vcs cvs (descending) * `vcs_darcs` - Vcs darcs * `-vcs_darcs` - Vcs darcs (descending) * `vcs_git` - Vcs git * `-vcs_git` - Vcs git (descending) * `vcs_hg` - Vcs hg * `-vcs_hg` - Vcs hg (descending) * `vcs_mtn` - Vcs mtn * `-vcs_mtn` - Vcs mtn (descending) * `vcs_snv` - Vcs snv * `-vcs_snv` - Vcs snv (descending) * `testsuite` - Testsuite * `-testsuite` - Testsuite (descending) * `dgit` - Dgit * `-dgit` - Dgit (descending) * `standards_version` - Standards version * `-standards_version` - Standards version (descending) * `build_depends` - Build depends * `-build_depends` - Build depends (descending) * `build_depends_indep` - Build depends indep * `-build_depends_indep` - Build depends indep (descending) * `build_depends_arch` - Build depends arch * `-build_depends_arch` - Build depends arch (descending) * `build_conflicts` - Build conflicts * `-build_conflicts` - Build conflicts (descending) * `build_conflicts_indep` - Build conflicts indep * `-build_conflicts_indep` - Build conflicts indep (descending) * `build_conflicts_arch` - Build conflicts arch * `-build_conflicts_arch` - Build conflicts arch (descending) * `package_list` - Package list * `-package_list` - Package list (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
198
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
199
|
+
| **package_list** | **String** | Filter results where package_list 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
|
+
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
206
|
+
| **release** | **String** | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where SourcePackage in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
207
|
+
| **release_component** | **String** | Must be a comma-separated string: \"release_component_href,repository_or_repository_version_href\" release_component_href: Filter results where SourcePackage in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
208
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
209
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
210
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
211
|
+
| **source** | **String** | Filter results where source matches value | [optional] |
|
212
|
+
| **standards_version** | **String** | Filter results where standards_version matches value | [optional] |
|
213
|
+
| **testsuite** | **String** | Filter results where testsuite matches value | [optional] |
|
214
|
+
| **uploaders** | **String** | Filter results where uploaders matches value | [optional] |
|
215
|
+
| **vcs_arch** | **String** | Filter results where vcs_arch matches value | [optional] |
|
216
|
+
| **vcs_browser** | **String** | Filter results where vcs_browser matches value | [optional] |
|
217
|
+
| **vcs_bzr** | **String** | Filter results where vcs_bzr matches value | [optional] |
|
218
|
+
| **vcs_cvs** | **String** | Filter results where vcs_cvs matches value | [optional] |
|
219
|
+
| **vcs_darcs** | **String** | Filter results where vcs_darcs matches value | [optional] |
|
220
|
+
| **vcs_git** | **String** | Filter results where vcs_git matches value | [optional] |
|
221
|
+
| **vcs_hg** | **String** | Filter results where vcs_hg matches value | [optional] |
|
222
|
+
| **vcs_mtn** | **String** | Filter results where vcs_mtn matches value | [optional] |
|
223
|
+
| **vcs_snv** | **String** | Filter results where vcs_snv matches value | [optional] |
|
224
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
225
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
226
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
190
227
|
|
191
228
|
### Return type
|
192
229
|
|
@@ -204,16 +241,16 @@ Name | Type | Description | Notes
|
|
204
241
|
|
205
242
|
## read
|
206
243
|
|
207
|
-
> DebSourcePackageResponse read(deb_source_package_href, opts)
|
244
|
+
> <DebSourcePackageResponse> read(deb_source_package_href, opts)
|
208
245
|
|
209
246
|
Inspect a source package
|
210
247
|
|
211
248
|
A Debian Source Package file represents a '.dsc' file along with its associated artifacts such as orig.tar.gz, debian.tar.gz... Associated artifacts: Exactly one '.dsc' file.
|
212
249
|
|
213
|
-
###
|
250
|
+
### Examples
|
214
251
|
|
215
252
|
```ruby
|
216
|
-
|
253
|
+
require 'time'
|
217
254
|
require 'pulp_deb_client'
|
218
255
|
# setup authorization
|
219
256
|
PulpDebClient.configure do |config|
|
@@ -225,27 +262,44 @@ end
|
|
225
262
|
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
226
263
|
deb_source_package_href = 'deb_source_package_href_example' # String |
|
227
264
|
opts = {
|
228
|
-
fields: ['
|
229
|
-
exclude_fields: ['
|
265
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
266
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
230
267
|
}
|
231
268
|
|
232
269
|
begin
|
233
|
-
#Inspect a source package
|
270
|
+
# Inspect a source package
|
234
271
|
result = api_instance.read(deb_source_package_href, opts)
|
235
272
|
p result
|
236
273
|
rescue PulpDebClient::ApiError => e
|
237
|
-
puts "
|
274
|
+
puts "Error when calling ContentSourcePackagesApi->read: #{e}"
|
238
275
|
end
|
239
276
|
```
|
240
277
|
|
241
|
-
|
278
|
+
#### Using the read_with_http_info variant
|
279
|
+
|
280
|
+
This returns an Array which contains the response data, status code and headers.
|
281
|
+
|
282
|
+
> <Array(<DebSourcePackageResponse>, Integer, Hash)> read_with_http_info(deb_source_package_href, opts)
|
242
283
|
|
284
|
+
```ruby
|
285
|
+
begin
|
286
|
+
# Inspect a source package
|
287
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_source_package_href, opts)
|
288
|
+
p status_code # => 2xx
|
289
|
+
p headers # => { ... }
|
290
|
+
p data # => <DebSourcePackageResponse>
|
291
|
+
rescue PulpDebClient::ApiError => e
|
292
|
+
puts "Error when calling ContentSourcePackagesApi->read_with_http_info: #{e}"
|
293
|
+
end
|
294
|
+
```
|
295
|
+
|
296
|
+
### Parameters
|
243
297
|
|
244
|
-
Name | Type | Description
|
245
|
-
|
246
|
-
**deb_source_package_href** | **String
|
247
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
248
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
298
|
+
| Name | Type | Description | Notes |
|
299
|
+
| ---- | ---- | ----------- | ----- |
|
300
|
+
| **deb_source_package_href** | **String** | | |
|
301
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
302
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
249
303
|
|
250
304
|
### Return type
|
251
305
|
|
@@ -260,3 +314,147 @@ Name | Type | Description | Notes
|
|
260
314
|
- **Content-Type**: Not defined
|
261
315
|
- **Accept**: application/json
|
262
316
|
|
317
|
+
|
318
|
+
## set_label
|
319
|
+
|
320
|
+
> <SetLabelResponse> set_label(deb_source_package_href, set_label)
|
321
|
+
|
322
|
+
Set a label
|
323
|
+
|
324
|
+
Set a single pulp_label on the object to a specific value or null.
|
325
|
+
|
326
|
+
### Examples
|
327
|
+
|
328
|
+
```ruby
|
329
|
+
require 'time'
|
330
|
+
require 'pulp_deb_client'
|
331
|
+
# setup authorization
|
332
|
+
PulpDebClient.configure do |config|
|
333
|
+
# Configure HTTP basic authorization: basicAuth
|
334
|
+
config.username = 'YOUR USERNAME'
|
335
|
+
config.password = 'YOUR PASSWORD'
|
336
|
+
end
|
337
|
+
|
338
|
+
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
339
|
+
deb_source_package_href = 'deb_source_package_href_example' # String |
|
340
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
341
|
+
|
342
|
+
begin
|
343
|
+
# Set a label
|
344
|
+
result = api_instance.set_label(deb_source_package_href, set_label)
|
345
|
+
p result
|
346
|
+
rescue PulpDebClient::ApiError => e
|
347
|
+
puts "Error when calling ContentSourcePackagesApi->set_label: #{e}"
|
348
|
+
end
|
349
|
+
```
|
350
|
+
|
351
|
+
#### Using the set_label_with_http_info variant
|
352
|
+
|
353
|
+
This returns an Array which contains the response data, status code and headers.
|
354
|
+
|
355
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_source_package_href, set_label)
|
356
|
+
|
357
|
+
```ruby
|
358
|
+
begin
|
359
|
+
# Set a label
|
360
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_source_package_href, set_label)
|
361
|
+
p status_code # => 2xx
|
362
|
+
p headers # => { ... }
|
363
|
+
p data # => <SetLabelResponse>
|
364
|
+
rescue PulpDebClient::ApiError => e
|
365
|
+
puts "Error when calling ContentSourcePackagesApi->set_label_with_http_info: #{e}"
|
366
|
+
end
|
367
|
+
```
|
368
|
+
|
369
|
+
### Parameters
|
370
|
+
|
371
|
+
| Name | Type | Description | Notes |
|
372
|
+
| ---- | ---- | ----------- | ----- |
|
373
|
+
| **deb_source_package_href** | **String** | | |
|
374
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
375
|
+
|
376
|
+
### Return type
|
377
|
+
|
378
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
379
|
+
|
380
|
+
### Authorization
|
381
|
+
|
382
|
+
[basicAuth](../README.md#basicAuth)
|
383
|
+
|
384
|
+
### HTTP request headers
|
385
|
+
|
386
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
387
|
+
- **Accept**: application/json
|
388
|
+
|
389
|
+
|
390
|
+
## unset_label
|
391
|
+
|
392
|
+
> <UnsetLabelResponse> unset_label(deb_source_package_href, unset_label)
|
393
|
+
|
394
|
+
Unset a label
|
395
|
+
|
396
|
+
Unset a single pulp_label on the object.
|
397
|
+
|
398
|
+
### Examples
|
399
|
+
|
400
|
+
```ruby
|
401
|
+
require 'time'
|
402
|
+
require 'pulp_deb_client'
|
403
|
+
# setup authorization
|
404
|
+
PulpDebClient.configure do |config|
|
405
|
+
# Configure HTTP basic authorization: basicAuth
|
406
|
+
config.username = 'YOUR USERNAME'
|
407
|
+
config.password = 'YOUR PASSWORD'
|
408
|
+
end
|
409
|
+
|
410
|
+
api_instance = PulpDebClient::ContentSourcePackagesApi.new
|
411
|
+
deb_source_package_href = 'deb_source_package_href_example' # String |
|
412
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
413
|
+
|
414
|
+
begin
|
415
|
+
# Unset a label
|
416
|
+
result = api_instance.unset_label(deb_source_package_href, unset_label)
|
417
|
+
p result
|
418
|
+
rescue PulpDebClient::ApiError => e
|
419
|
+
puts "Error when calling ContentSourcePackagesApi->unset_label: #{e}"
|
420
|
+
end
|
421
|
+
```
|
422
|
+
|
423
|
+
#### Using the unset_label_with_http_info variant
|
424
|
+
|
425
|
+
This returns an Array which contains the response data, status code and headers.
|
426
|
+
|
427
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_source_package_href, unset_label)
|
428
|
+
|
429
|
+
```ruby
|
430
|
+
begin
|
431
|
+
# Unset a label
|
432
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_source_package_href, unset_label)
|
433
|
+
p status_code # => 2xx
|
434
|
+
p headers # => { ... }
|
435
|
+
p data # => <UnsetLabelResponse>
|
436
|
+
rescue PulpDebClient::ApiError => e
|
437
|
+
puts "Error when calling ContentSourcePackagesApi->unset_label_with_http_info: #{e}"
|
438
|
+
end
|
439
|
+
```
|
440
|
+
|
441
|
+
### Parameters
|
442
|
+
|
443
|
+
| Name | Type | Description | Notes |
|
444
|
+
| ---- | ---- | ----------- | ----- |
|
445
|
+
| **deb_source_package_href** | **String** | | |
|
446
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
447
|
+
|
448
|
+
### Return type
|
449
|
+
|
450
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
451
|
+
|
452
|
+
### Authorization
|
453
|
+
|
454
|
+
[basicAuth](../README.md#basicAuth)
|
455
|
+
|
456
|
+
### HTTP request headers
|
457
|
+
|
458
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
459
|
+
- **Accept**: application/json
|
460
|
+
|