pulp_deb_client 3.5.0 → 3.5.1
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 +10 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +114 -64
- data/docs/ContentInstallerFileIndicesApi.md +111 -61
- data/docs/ContentInstallerPackagesApi.md +130 -80
- data/docs/ContentPackageIndicesApi.md +111 -61
- data/docs/ContentPackageReleaseComponentsApi.md +111 -61
- data/docs/ContentPackagesApi.md +144 -94
- data/docs/ContentReleaseArchitecturesApi.md +109 -59
- data/docs/ContentReleaseComponentsApi.md +110 -60
- data/docs/ContentReleaseFilesApi.md +111 -61
- data/docs/ContentReleasesApi.md +114 -64
- data/docs/ContentSourceIndicesApi.md +110 -60
- data/docs/ContentSourcePackagesApi.md +137 -87
- data/docs/ContentSourceReleaseComponentsApi.md +111 -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 +30 -29
- data/docs/DebInstallerFileIndex.md +16 -15
- data/docs/DebInstallerFileIndexResponse.md +22 -21
- data/docs/DebInstallerPackageResponse.md +88 -87
- data/docs/DebPackageIndex.md +16 -15
- data/docs/DebPackageIndexResponse.md +22 -21
- data/docs/DebPackageReleaseComponent.md +12 -11
- data/docs/DebPackageReleaseComponentResponse.md +18 -17
- data/docs/DebPackageResponse.md +92 -91
- data/docs/DebRelease.md +26 -25
- data/docs/DebReleaseArchitecture.md +12 -11
- data/docs/DebReleaseArchitectureResponse.md +18 -17
- data/docs/DebReleaseComponent.md +12 -11
- data/docs/DebReleaseComponentResponse.md +20 -19
- data/docs/DebReleaseFile.md +18 -17
- data/docs/DebReleaseFileResponse.md +24 -23
- data/docs/DebReleaseResponse.md +32 -31
- data/docs/DebSourceIndex.md +16 -15
- data/docs/DebSourceIndexResponse.md +22 -21
- data/docs/DebSourcePackage.md +12 -11
- data/docs/DebSourcePackageReleaseComponent.md +12 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
- data/docs/DebSourcePackageResponse.md +74 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +385 -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 +267 -130
- data/docs/PublicationsVerbatimApi.md +267 -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 +20 -14
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +89 -56
- data/lib/pulp_deb_client/api/publications_apt_api.rb +67 -47
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +67 -47
- 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 +34 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_release.rb +36 -22
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +34 -24
- 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 +32 -22
- data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +9 -6
- data/spec/api/content_generic_contents_api_spec.rb +4 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
- data/spec/api/content_installer_packages_api_spec.rb +4 -4
- data/spec/api/content_package_indices_api_spec.rb +4 -4
- data/spec/api/content_package_release_components_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_release_architectures_api_spec.rb +4 -4
- data/spec/api/content_release_components_api_spec.rb +4 -4
- data/spec/api/content_release_files_api_spec.rb +4 -4
- data/spec/api/content_releases_api_spec.rb +4 -4
- data/spec/api/content_source_indices_api_spec.rb +4 -4
- data/spec/api/content_source_packages_api_spec.rb +4 -4
- data/spec/api/content_source_release_components_api_spec.rb +4 -4
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +13 -13
- data/spec/api/publications_apt_api_spec.rb +16 -15
- data/spec/api/publications_verbatim_api_spec.rb +16 -15
- 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 +18 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
- data/spec/models/deb_installer_file_index_spec.rb +11 -16
- data/spec/models/deb_installer_package_response_spec.rb +47 -52
- data/spec/models/deb_package_index_response_spec.rb +14 -19
- data/spec/models/deb_package_index_spec.rb +11 -16
- data/spec/models/deb_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_package_release_component_spec.rb +9 -14
- data/spec/models/deb_package_response_spec.rb +49 -54
- data/spec/models/deb_release_architecture_response_spec.rb +12 -17
- data/spec/models/deb_release_architecture_spec.rb +9 -14
- data/spec/models/deb_release_component_response_spec.rb +13 -18
- data/spec/models/deb_release_component_spec.rb +9 -14
- data/spec/models/deb_release_file_response_spec.rb +15 -20
- data/spec/models/deb_release_file_spec.rb +12 -17
- data/spec/models/deb_release_response_spec.rb +19 -24
- data/spec/models/deb_release_spec.rb +16 -21
- data/spec/models/deb_source_index_response_spec.rb +14 -19
- data/spec/models/deb_source_index_spec.rb +11 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_source_package_release_component_spec.rb +9 -14
- data/spec/models/deb_source_package_response_spec.rb +40 -45
- data/spec/models/deb_source_package_spec.rb +9 -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 +115 -103
- 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
data/docs/ContentPackagesApi.md
CHANGED
@@ -2,26 +2,25 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/packages/ | Create a package
|
8
|
-
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/packages/ | List packages
|
9
|
-
[**read**](ContentPackagesApi.md#read) | **GET** {deb_package_href} | Inspect a package
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/deb/packages/ | Create a package |
|
8
|
+
| [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/deb/packages/ | List packages |
|
9
|
+
| [**read**](ContentPackagesApi.md#read) | **GET** {deb_package_href} | Inspect a package |
|
11
10
|
|
12
11
|
|
13
12
|
## create
|
14
13
|
|
15
|
-
> AsyncOperationResponse create(opts)
|
14
|
+
> <AsyncOperationResponse> create(opts)
|
16
15
|
|
17
16
|
Create a package
|
18
17
|
|
19
18
|
Trigger an asynchronous task to create content,optionally create new repository version.
|
20
19
|
|
21
|
-
###
|
20
|
+
### Examples
|
22
21
|
|
23
22
|
```ruby
|
24
|
-
|
23
|
+
require 'time'
|
25
24
|
require 'pulp_deb_client'
|
26
25
|
# setup authorization
|
27
26
|
PulpDebClient.configure do |config|
|
@@ -35,7 +34,7 @@ opts = {
|
|
35
34
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
36
35
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
36
|
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.
|
37
|
+
file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
|
39
38
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
39
|
file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
|
41
40
|
distribution: 'distribution_example', # String | Name of the distribution.
|
@@ -43,27 +42,44 @@ opts = {
|
|
43
42
|
}
|
44
43
|
|
45
44
|
begin
|
46
|
-
#Create a package
|
45
|
+
# Create a package
|
47
46
|
result = api_instance.create(opts)
|
48
47
|
p result
|
49
48
|
rescue PulpDebClient::ApiError => e
|
50
|
-
puts "
|
49
|
+
puts "Error when calling ContentPackagesApi->create: #{e}"
|
51
50
|
end
|
52
51
|
```
|
53
52
|
|
54
|
-
|
53
|
+
#### Using the create_with_http_info variant
|
54
|
+
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
56
|
+
|
57
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(opts)
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
begin
|
61
|
+
# Create a package
|
62
|
+
data, status_code, headers = api_instance.create_with_http_info(opts)
|
63
|
+
p status_code # => 2xx
|
64
|
+
p headers # => { ... }
|
65
|
+
p data # => <AsyncOperationResponse>
|
66
|
+
rescue PulpDebClient::ApiError => e
|
67
|
+
puts "Error when calling ContentPackagesApi->create_with_http_info: #{e}"
|
68
|
+
end
|
69
|
+
```
|
55
70
|
|
71
|
+
### Parameters
|
56
72
|
|
57
|
-
Name | Type | Description
|
58
|
-
|
59
|
-
**repository** | **String
|
60
|
-
**artifact** | **String
|
61
|
-
**relative_path** | **String
|
62
|
-
**file** | **File
|
63
|
-
**upload** | **String
|
64
|
-
**file_url** | **String
|
65
|
-
**distribution** | **String
|
66
|
-
**component** | **String
|
73
|
+
| Name | Type | Description | Notes |
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
75
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
76
|
+
| **artifact** | **String** | Artifact file representing the physical content | [optional] |
|
77
|
+
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional] |
|
78
|
+
| **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
|
79
|
+
| **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
|
80
|
+
| **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
|
81
|
+
| **distribution** | **String** | Name of the distribution. | [optional] |
|
82
|
+
| **component** | **String** | Name of the component. | [optional] |
|
67
83
|
|
68
84
|
### Return type
|
69
85
|
|
@@ -81,16 +97,16 @@ Name | Type | Description | Notes
|
|
81
97
|
|
82
98
|
## list
|
83
99
|
|
84
|
-
> PaginateddebPackageResponseList list(opts)
|
100
|
+
> <PaginateddebPackageResponseList> list(opts)
|
85
101
|
|
86
102
|
List packages
|
87
103
|
|
88
104
|
A Package represents a '.deb' binary package. Associated artifacts: Exactly one '.deb' package file.
|
89
105
|
|
90
|
-
###
|
106
|
+
### Examples
|
91
107
|
|
92
108
|
```ruby
|
93
|
-
|
109
|
+
require 'time'
|
94
110
|
require 'pulp_deb_client'
|
95
111
|
# setup authorization
|
96
112
|
PulpDebClient.configure do |config|
|
@@ -109,25 +125,25 @@ opts = {
|
|
109
125
|
installed_size: 56, # Integer | Filter results where installed_size matches value
|
110
126
|
limit: 56, # Integer | Number of results to return per page.
|
111
127
|
maintainer: 'maintainer_example', # String | Filter results where maintainer matches value
|
112
|
-
multi_arch: '
|
128
|
+
multi_arch: 'allowed', # String | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed
|
113
129
|
offset: 56, # Integer | The initial index from which to return the results.
|
114
|
-
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) * `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)
|
115
131
|
origin: 'origin_example', # String | Filter results where origin matches value
|
116
132
|
original_maintainer: 'original_maintainer_example', # String | Filter results where original_maintainer matches value
|
117
|
-
orphaned_for:
|
133
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
118
134
|
package: 'package_example', # String | Filter results where package matches value
|
119
135
|
package__contains: 'package__contains_example', # String | Filter results where package contains value
|
120
136
|
package__icontains: 'package__icontains_example', # String | Filter results where package contains value
|
121
137
|
package__iexact: 'package__iexact_example', # String | Filter results where package matches value
|
122
|
-
package__in: ['
|
138
|
+
package__in: ['inner_example'], # Array<String> | Filter results where package is in a comma-separated list of values
|
123
139
|
package__iregex: 'package__iregex_example', # String | Filter results where package matches regex value
|
124
140
|
package__istartswith: 'package__istartswith_example', # String | Filter results where package starts with value
|
125
141
|
package__regex: 'package__regex_example', # String | Filter results where package matches regex value
|
126
142
|
package__startswith: 'package__startswith_example', # String | Filter results where package starts with value
|
127
143
|
priority: 'priority_example', # String | Filter results where priority matches value
|
128
|
-
prn__in: ['
|
129
|
-
pulp_href__in: ['
|
130
|
-
pulp_id__in: ['
|
144
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
145
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
146
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
131
147
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
132
148
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
133
149
|
release: 'release_example', # String | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
@@ -140,65 +156,82 @@ opts = {
|
|
140
156
|
source: 'source_example', # String | Filter results where source matches value
|
141
157
|
tag: 'tag_example', # String | Filter results where tag matches value
|
142
158
|
version: 'version_example', # String | Filter results where version matches value
|
143
|
-
fields: ['
|
144
|
-
exclude_fields: ['
|
159
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
160
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
145
161
|
}
|
146
162
|
|
147
163
|
begin
|
148
|
-
#List packages
|
164
|
+
# List packages
|
149
165
|
result = api_instance.list(opts)
|
150
166
|
p result
|
151
167
|
rescue PulpDebClient::ApiError => e
|
152
|
-
puts "
|
168
|
+
puts "Error when calling ContentPackagesApi->list: #{e}"
|
153
169
|
end
|
154
170
|
```
|
155
171
|
|
156
|
-
|
172
|
+
#### Using the list_with_http_info variant
|
157
173
|
|
174
|
+
This returns an Array which contains the response data, status code and headers.
|
158
175
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
180
|
-
**
|
181
|
-
**
|
182
|
-
**
|
183
|
-
**
|
184
|
-
**
|
185
|
-
**
|
186
|
-
**
|
187
|
-
**
|
188
|
-
**
|
189
|
-
**
|
190
|
-
**
|
191
|
-
**
|
192
|
-
**
|
193
|
-
**
|
194
|
-
**
|
195
|
-
**
|
196
|
-
**
|
197
|
-
**
|
198
|
-
**
|
199
|
-
**
|
200
|
-
**
|
201
|
-
**
|
176
|
+
> <Array(<PaginateddebPackageResponseList>, Integer, Hash)> list_with_http_info(opts)
|
177
|
+
|
178
|
+
```ruby
|
179
|
+
begin
|
180
|
+
# List packages
|
181
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
182
|
+
p status_code # => 2xx
|
183
|
+
p headers # => { ... }
|
184
|
+
p data # => <PaginateddebPackageResponseList>
|
185
|
+
rescue PulpDebClient::ApiError => e
|
186
|
+
puts "Error when calling ContentPackagesApi->list_with_http_info: #{e}"
|
187
|
+
end
|
188
|
+
```
|
189
|
+
|
190
|
+
### Parameters
|
191
|
+
|
192
|
+
| Name | Type | Description | Notes |
|
193
|
+
| ---- | ---- | ----------- | ----- |
|
194
|
+
| **architecture** | **String** | Filter results where architecture matches value | [optional] |
|
195
|
+
| **auto_built_package** | **String** | Filter results where auto_built_package matches value | [optional] |
|
196
|
+
| **build_essential** | **Boolean** | Filter results where build_essential matches value * `True` - yes * `False` - no | [optional] |
|
197
|
+
| **built_using** | **String** | Filter results where built_using matches value | [optional] |
|
198
|
+
| **essential** | **Boolean** | Filter results where essential matches value * `True` - yes * `False` - no | [optional] |
|
199
|
+
| **installed_size** | **Integer** | Filter results where installed_size matches value | [optional] |
|
200
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
201
|
+
| **maintainer** | **String** | Filter results where maintainer matches value | [optional] |
|
202
|
+
| **multi_arch** | **String** | Filter results where multi_arch matches value * `no` - no * `same` - same * `foreign` - foreign * `allowed` - allowed | [optional] |
|
203
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
204
|
+
| **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] |
|
205
|
+
| **origin** | **String** | Filter results where origin matches value | [optional] |
|
206
|
+
| **original_maintainer** | **String** | Filter results where original_maintainer matches value | [optional] |
|
207
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
208
|
+
| **package** | **String** | Filter results where package matches value | [optional] |
|
209
|
+
| **package__contains** | **String** | Filter results where package contains value | [optional] |
|
210
|
+
| **package__icontains** | **String** | Filter results where package contains value | [optional] |
|
211
|
+
| **package__iexact** | **String** | Filter results where package matches value | [optional] |
|
212
|
+
| **package__in** | [**Array<String>**](String.md) | Filter results where package is in a comma-separated list of values | [optional] |
|
213
|
+
| **package__iregex** | **String** | Filter results where package matches regex value | [optional] |
|
214
|
+
| **package__istartswith** | **String** | Filter results where package starts with value | [optional] |
|
215
|
+
| **package__regex** | **String** | Filter results where package matches regex value | [optional] |
|
216
|
+
| **package__startswith** | **String** | Filter results where package starts with value | [optional] |
|
217
|
+
| **priority** | **String** | Filter results where priority matches value | [optional] |
|
218
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
219
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
220
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
221
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
222
|
+
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
223
|
+
| **release** | **String** | Must be a comma-separated string: \"release_href,repository_or_repository_version_href\" release_href: Filter results where Package in Release repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
224
|
+
| **release_component** | **String** | Must be a comma-separated string: \"release_component_href,repository_or_repository_version_href\" release_component_href: Filter results where Package in ReleaseComponent repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version) | [optional] |
|
225
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
226
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
227
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
228
|
+
| **section** | **String** | Filter results where section matches value | [optional] |
|
229
|
+
| **sha256** | **String** | Filter results where sha256 matches value | [optional] |
|
230
|
+
| **source** | **String** | Filter results where source matches value | [optional] |
|
231
|
+
| **tag** | **String** | Filter results where tag matches value | [optional] |
|
232
|
+
| **version** | **String** | Filter results where version matches value | [optional] |
|
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] |
|
202
235
|
|
203
236
|
### Return type
|
204
237
|
|
@@ -216,16 +249,16 @@ Name | Type | Description | Notes
|
|
216
249
|
|
217
250
|
## read
|
218
251
|
|
219
|
-
> DebPackageResponse read(deb_package_href, opts)
|
252
|
+
> <DebPackageResponse> read(deb_package_href, opts)
|
220
253
|
|
221
254
|
Inspect a package
|
222
255
|
|
223
256
|
A Package represents a '.deb' binary package. Associated artifacts: Exactly one '.deb' package file.
|
224
257
|
|
225
|
-
###
|
258
|
+
### Examples
|
226
259
|
|
227
260
|
```ruby
|
228
|
-
|
261
|
+
require 'time'
|
229
262
|
require 'pulp_deb_client'
|
230
263
|
# setup authorization
|
231
264
|
PulpDebClient.configure do |config|
|
@@ -237,27 +270,44 @@ end
|
|
237
270
|
api_instance = PulpDebClient::ContentPackagesApi.new
|
238
271
|
deb_package_href = 'deb_package_href_example' # String |
|
239
272
|
opts = {
|
240
|
-
fields: ['
|
241
|
-
exclude_fields: ['
|
273
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
274
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
242
275
|
}
|
243
276
|
|
244
277
|
begin
|
245
|
-
#Inspect a package
|
278
|
+
# Inspect a package
|
246
279
|
result = api_instance.read(deb_package_href, opts)
|
247
280
|
p result
|
248
281
|
rescue PulpDebClient::ApiError => e
|
249
|
-
puts "
|
282
|
+
puts "Error when calling ContentPackagesApi->read: #{e}"
|
250
283
|
end
|
251
284
|
```
|
252
285
|
|
253
|
-
|
286
|
+
#### Using the read_with_http_info variant
|
287
|
+
|
288
|
+
This returns an Array which contains the response data, status code and headers.
|
289
|
+
|
290
|
+
> <Array(<DebPackageResponse>, Integer, Hash)> read_with_http_info(deb_package_href, opts)
|
254
291
|
|
292
|
+
```ruby
|
293
|
+
begin
|
294
|
+
# Inspect a package
|
295
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_package_href, opts)
|
296
|
+
p status_code # => 2xx
|
297
|
+
p headers # => { ... }
|
298
|
+
p data # => <DebPackageResponse>
|
299
|
+
rescue PulpDebClient::ApiError => e
|
300
|
+
puts "Error when calling ContentPackagesApi->read_with_http_info: #{e}"
|
301
|
+
end
|
302
|
+
```
|
303
|
+
|
304
|
+
### Parameters
|
255
305
|
|
256
|
-
Name | Type | Description
|
257
|
-
|
258
|
-
**deb_package_href** | **String
|
259
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
260
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
306
|
+
| Name | Type | Description | Notes |
|
307
|
+
| ---- | ---- | ----------- | ----- |
|
308
|
+
| **deb_package_href** | **String** | | |
|
309
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
310
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
261
311
|
|
262
312
|
### Return type
|
263
313
|
|