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**](ContentGenericContentsApi.md#create) | **POST** /pulp/api/v3/content/deb/generic_contents/ | Create a generic content
|
8
|
-
[**list**](ContentGenericContentsApi.md#list) | **GET** /pulp/api/v3/content/deb/generic_contents/ | List generic contents
|
9
|
-
[**read**](ContentGenericContentsApi.md#read) | **GET** {deb_generic_content_href} | Inspect a generic content
|
10
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](ContentGenericContentsApi.md#create) | **POST** /pulp/api/v3/content/deb/generic_contents/ | Create a generic content |
|
8
|
+
| [**list**](ContentGenericContentsApi.md#list) | **GET** /pulp/api/v3/content/deb/generic_contents/ | List generic contents |
|
9
|
+
| [**read**](ContentGenericContentsApi.md#read) | **GET** {deb_generic_content_href} | Inspect a generic content |
|
10
|
+
| [**set_label**](ContentGenericContentsApi.md#set_label) | **POST** {deb_generic_content_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentGenericContentsApi.md#unset_label) | **POST** {deb_generic_content_href}unset_label/ | Unset a label |
|
11
12
|
|
12
13
|
|
13
14
|
## create
|
14
15
|
|
15
|
-
> AsyncOperationResponse create(relative_path, opts)
|
16
|
+
> <AsyncOperationResponse> create(relative_path, opts)
|
16
17
|
|
17
18
|
Create a generic content
|
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|
|
@@ -34,32 +35,51 @@ api_instance = PulpDebClient::ContentGenericContentsApi.new
|
|
34
35
|
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
35
36
|
opts = {
|
36
37
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
38
|
+
pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
37
39
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
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 a generic content
|
46
|
+
# Create a generic content
|
45
47
|
result = api_instance.create(relative_path, opts)
|
46
48
|
p result
|
47
49
|
rescue PulpDebClient::ApiError => e
|
48
|
-
puts "
|
50
|
+
puts "Error when calling ContentGenericContentsApi->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(relative_path, opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Create a generic content
|
63
|
+
data, status_code, headers = api_instance.create_with_http_info(relative_path, opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <AsyncOperationResponse>
|
67
|
+
rescue PulpDebClient::ApiError => e
|
68
|
+
puts "Error when calling ContentGenericContentsApi->create_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
53
71
|
|
72
|
+
### Parameters
|
54
73
|
|
55
|
-
Name | Type | Description
|
56
|
-
|
57
|
-
**relative_path** | **String
|
58
|
-
**repository** | **String
|
59
|
-
**
|
60
|
-
**
|
61
|
-
**
|
62
|
-
**
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
|
77
|
+
| **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
|
78
|
+
| **pulp_labels** | [**Hash<String, String>**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
79
|
+
| **artifact** | **String** | Artifact file representing the physical content | [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
|
-
> PaginateddebGenericContentResponseList list(opts)
|
100
|
+
> <PaginateddebGenericContentResponseList> list(opts)
|
81
101
|
|
82
102
|
List generic contents
|
83
103
|
|
84
104
|
GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
|
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|
|
@@ -99,50 +119,69 @@ api_instance = PulpDebClient::ContentGenericContentsApi.new
|
|
99
119
|
opts = {
|
100
120
|
limit: 56, # Integer | Number of results to return per page.
|
101
121
|
offset: 56, # Integer | The initial index from which to return the results.
|
102
|
-
ordering: ['
|
103
|
-
orphaned_for:
|
104
|
-
prn__in: ['
|
105
|
-
pulp_href__in: ['
|
106
|
-
pulp_id__in: ['
|
122
|
+
ordering: ['-pk'], # 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) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
123
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
124
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
125
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
126
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
127
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
107
128
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
108
129
|
relative_path: 'relative_path_example', # String | Filter results where relative_path matches value
|
109
130
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
110
131
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
111
132
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
112
133
|
sha256: 'sha256_example', # String | Filter results where sha256 matches value
|
113
|
-
fields: ['
|
114
|
-
exclude_fields: ['
|
134
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
135
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
115
136
|
}
|
116
137
|
|
117
138
|
begin
|
118
|
-
#List generic contents
|
139
|
+
# List generic contents
|
119
140
|
result = api_instance.list(opts)
|
120
141
|
p result
|
121
142
|
rescue PulpDebClient::ApiError => e
|
122
|
-
puts "
|
143
|
+
puts "Error when calling ContentGenericContentsApi->list: #{e}"
|
123
144
|
end
|
124
145
|
```
|
125
146
|
|
126
|
-
|
147
|
+
#### Using the list_with_http_info variant
|
148
|
+
|
149
|
+
This returns an Array which contains the response data, status code and headers.
|
150
|
+
|
151
|
+
> <Array(<PaginateddebGenericContentResponseList>, Integer, Hash)> list_with_http_info(opts)
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
begin
|
155
|
+
# List generic contents
|
156
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
157
|
+
p status_code # => 2xx
|
158
|
+
p headers # => { ... }
|
159
|
+
p data # => <PaginateddebGenericContentResponseList>
|
160
|
+
rescue PulpDebClient::ApiError => e
|
161
|
+
puts "Error when calling ContentGenericContentsApi->list_with_http_info: #{e}"
|
162
|
+
end
|
163
|
+
```
|
127
164
|
|
165
|
+
### Parameters
|
128
166
|
|
129
|
-
Name | Type | Description
|
130
|
-
|
131
|
-
**limit** | **Integer
|
132
|
-
**offset** | **Integer
|
133
|
-
**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) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
134
|
-
**orphaned_for** | **Float
|
135
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
136
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
137
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
138
|
-
**
|
139
|
-
**
|
140
|
-
**
|
141
|
-
**
|
142
|
-
**
|
143
|
-
**
|
144
|
-
**
|
145
|
-
**
|
167
|
+
| Name | Type | Description | Notes |
|
168
|
+
| ---- | ---- | ----------- | ----- |
|
169
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
170
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
171
|
+
| **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) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
172
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
173
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
174
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
175
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
176
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
177
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
178
|
+
| **relative_path** | **String** | Filter results where relative_path matches value | [optional] |
|
179
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
180
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
181
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
182
|
+
| **sha256** | **String** | Filter results where sha256 matches value | [optional] |
|
183
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
184
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
146
185
|
|
147
186
|
### Return type
|
148
187
|
|
@@ -160,16 +199,16 @@ Name | Type | Description | Notes
|
|
160
199
|
|
161
200
|
## read
|
162
201
|
|
163
|
-
> DebGenericContentResponse read(deb_generic_content_href, opts)
|
202
|
+
> <DebGenericContentResponse> read(deb_generic_content_href, opts)
|
164
203
|
|
165
204
|
Inspect a generic content
|
166
205
|
|
167
206
|
GenericContent is a catch all category for storing files not covered by any other type. Associated artifacts: Exactly one arbitrary file that does not match any other type. This is needed to store arbitrary files for use with the verbatim publisher. If you are not using the verbatim publisher, you may ignore this type.
|
168
207
|
|
169
|
-
###
|
208
|
+
### Examples
|
170
209
|
|
171
210
|
```ruby
|
172
|
-
|
211
|
+
require 'time'
|
173
212
|
require 'pulp_deb_client'
|
174
213
|
# setup authorization
|
175
214
|
PulpDebClient.configure do |config|
|
@@ -181,27 +220,44 @@ end
|
|
181
220
|
api_instance = PulpDebClient::ContentGenericContentsApi.new
|
182
221
|
deb_generic_content_href = 'deb_generic_content_href_example' # String |
|
183
222
|
opts = {
|
184
|
-
fields: ['
|
185
|
-
exclude_fields: ['
|
223
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
224
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
186
225
|
}
|
187
226
|
|
188
227
|
begin
|
189
|
-
#Inspect a generic content
|
228
|
+
# Inspect a generic content
|
190
229
|
result = api_instance.read(deb_generic_content_href, opts)
|
191
230
|
p result
|
192
231
|
rescue PulpDebClient::ApiError => e
|
193
|
-
puts "
|
232
|
+
puts "Error when calling ContentGenericContentsApi->read: #{e}"
|
194
233
|
end
|
195
234
|
```
|
196
235
|
|
197
|
-
|
236
|
+
#### Using the read_with_http_info variant
|
237
|
+
|
238
|
+
This returns an Array which contains the response data, status code and headers.
|
239
|
+
|
240
|
+
> <Array(<DebGenericContentResponse>, Integer, Hash)> read_with_http_info(deb_generic_content_href, opts)
|
198
241
|
|
242
|
+
```ruby
|
243
|
+
begin
|
244
|
+
# Inspect a generic content
|
245
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_generic_content_href, opts)
|
246
|
+
p status_code # => 2xx
|
247
|
+
p headers # => { ... }
|
248
|
+
p data # => <DebGenericContentResponse>
|
249
|
+
rescue PulpDebClient::ApiError => e
|
250
|
+
puts "Error when calling ContentGenericContentsApi->read_with_http_info: #{e}"
|
251
|
+
end
|
252
|
+
```
|
253
|
+
|
254
|
+
### Parameters
|
199
255
|
|
200
|
-
Name | Type | Description
|
201
|
-
|
202
|
-
**deb_generic_content_href** | **String
|
203
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
204
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
256
|
+
| Name | Type | Description | Notes |
|
257
|
+
| ---- | ---- | ----------- | ----- |
|
258
|
+
| **deb_generic_content_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] |
|
205
261
|
|
206
262
|
### Return type
|
207
263
|
|
@@ -216,3 +272,147 @@ Name | Type | Description | Notes
|
|
216
272
|
- **Content-Type**: Not defined
|
217
273
|
- **Accept**: application/json
|
218
274
|
|
275
|
+
|
276
|
+
## set_label
|
277
|
+
|
278
|
+
> <SetLabelResponse> set_label(deb_generic_content_href, set_label)
|
279
|
+
|
280
|
+
Set a label
|
281
|
+
|
282
|
+
Set a single pulp_label on the object to a specific value or null.
|
283
|
+
|
284
|
+
### Examples
|
285
|
+
|
286
|
+
```ruby
|
287
|
+
require 'time'
|
288
|
+
require 'pulp_deb_client'
|
289
|
+
# setup authorization
|
290
|
+
PulpDebClient.configure do |config|
|
291
|
+
# Configure HTTP basic authorization: basicAuth
|
292
|
+
config.username = 'YOUR USERNAME'
|
293
|
+
config.password = 'YOUR PASSWORD'
|
294
|
+
end
|
295
|
+
|
296
|
+
api_instance = PulpDebClient::ContentGenericContentsApi.new
|
297
|
+
deb_generic_content_href = 'deb_generic_content_href_example' # String |
|
298
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
299
|
+
|
300
|
+
begin
|
301
|
+
# Set a label
|
302
|
+
result = api_instance.set_label(deb_generic_content_href, set_label)
|
303
|
+
p result
|
304
|
+
rescue PulpDebClient::ApiError => e
|
305
|
+
puts "Error when calling ContentGenericContentsApi->set_label: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
#### Using the set_label_with_http_info variant
|
310
|
+
|
311
|
+
This returns an Array which contains the response data, status code and headers.
|
312
|
+
|
313
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_generic_content_href, set_label)
|
314
|
+
|
315
|
+
```ruby
|
316
|
+
begin
|
317
|
+
# Set a label
|
318
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_generic_content_href, set_label)
|
319
|
+
p status_code # => 2xx
|
320
|
+
p headers # => { ... }
|
321
|
+
p data # => <SetLabelResponse>
|
322
|
+
rescue PulpDebClient::ApiError => e
|
323
|
+
puts "Error when calling ContentGenericContentsApi->set_label_with_http_info: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
### Parameters
|
328
|
+
|
329
|
+
| Name | Type | Description | Notes |
|
330
|
+
| ---- | ---- | ----------- | ----- |
|
331
|
+
| **deb_generic_content_href** | **String** | | |
|
332
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
333
|
+
|
334
|
+
### Return type
|
335
|
+
|
336
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
337
|
+
|
338
|
+
### Authorization
|
339
|
+
|
340
|
+
[basicAuth](../README.md#basicAuth)
|
341
|
+
|
342
|
+
### HTTP request headers
|
343
|
+
|
344
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
345
|
+
- **Accept**: application/json
|
346
|
+
|
347
|
+
|
348
|
+
## unset_label
|
349
|
+
|
350
|
+
> <UnsetLabelResponse> unset_label(deb_generic_content_href, unset_label)
|
351
|
+
|
352
|
+
Unset a label
|
353
|
+
|
354
|
+
Unset a single pulp_label on the object.
|
355
|
+
|
356
|
+
### Examples
|
357
|
+
|
358
|
+
```ruby
|
359
|
+
require 'time'
|
360
|
+
require 'pulp_deb_client'
|
361
|
+
# setup authorization
|
362
|
+
PulpDebClient.configure do |config|
|
363
|
+
# Configure HTTP basic authorization: basicAuth
|
364
|
+
config.username = 'YOUR USERNAME'
|
365
|
+
config.password = 'YOUR PASSWORD'
|
366
|
+
end
|
367
|
+
|
368
|
+
api_instance = PulpDebClient::ContentGenericContentsApi.new
|
369
|
+
deb_generic_content_href = 'deb_generic_content_href_example' # String |
|
370
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
371
|
+
|
372
|
+
begin
|
373
|
+
# Unset a label
|
374
|
+
result = api_instance.unset_label(deb_generic_content_href, unset_label)
|
375
|
+
p result
|
376
|
+
rescue PulpDebClient::ApiError => e
|
377
|
+
puts "Error when calling ContentGenericContentsApi->unset_label: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
#### Using the unset_label_with_http_info variant
|
382
|
+
|
383
|
+
This returns an Array which contains the response data, status code and headers.
|
384
|
+
|
385
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_generic_content_href, unset_label)
|
386
|
+
|
387
|
+
```ruby
|
388
|
+
begin
|
389
|
+
# Unset a label
|
390
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_generic_content_href, unset_label)
|
391
|
+
p status_code # => 2xx
|
392
|
+
p headers # => { ... }
|
393
|
+
p data # => <UnsetLabelResponse>
|
394
|
+
rescue PulpDebClient::ApiError => e
|
395
|
+
puts "Error when calling ContentGenericContentsApi->unset_label_with_http_info: #{e}"
|
396
|
+
end
|
397
|
+
```
|
398
|
+
|
399
|
+
### Parameters
|
400
|
+
|
401
|
+
| Name | Type | Description | Notes |
|
402
|
+
| ---- | ---- | ----------- | ----- |
|
403
|
+
| **deb_generic_content_href** | **String** | | |
|
404
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
405
|
+
|
406
|
+
### Return type
|
407
|
+
|
408
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
409
|
+
|
410
|
+
### Authorization
|
411
|
+
|
412
|
+
[basicAuth](../README.md#basicAuth)
|
413
|
+
|
414
|
+
### HTTP request headers
|
415
|
+
|
416
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
417
|
+
- **Accept**: application/json
|
418
|
+
|