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
data/docs/DistributionsAptApi.md
CHANGED
@@ -2,35 +2,34 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**add_role**](DistributionsAptApi.md#add_role) | **POST** {deb_apt_distribution_href}add_role/ | Add a role
|
8
|
-
[**create**](DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution
|
9
|
-
[**delete**](DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution
|
10
|
-
[**list**](DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions
|
11
|
-
[**list_roles**](DistributionsAptApi.md#list_roles) | **GET** {deb_apt_distribution_href}list_roles/ | List roles
|
12
|
-
[**my_permissions**](DistributionsAptApi.md#my_permissions) | **GET** {deb_apt_distribution_href}my_permissions/ | List user permissions
|
13
|
-
[**partial_update**](DistributionsAptApi.md#partial_update) | **PATCH** {deb_apt_distribution_href} | Update an apt distribution
|
14
|
-
[**read**](DistributionsAptApi.md#read) | **GET** {deb_apt_distribution_href} | Inspect an apt distribution
|
15
|
-
[**remove_role**](DistributionsAptApi.md#remove_role) | **POST** {deb_apt_distribution_href}remove_role/ | Remove a role
|
16
|
-
[**set_label**](DistributionsAptApi.md#set_label) | **POST** {deb_apt_distribution_href}set_label/ | Set a label
|
17
|
-
[**unset_label**](DistributionsAptApi.md#unset_label) | **POST** {deb_apt_distribution_href}unset_label/ | Unset a label
|
18
|
-
[**update**](DistributionsAptApi.md#update) | **PUT** {deb_apt_distribution_href} | Update an apt distribution
|
19
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_role**](DistributionsAptApi.md#add_role) | **POST** {deb_apt_distribution_href}add_role/ | Add a role |
|
8
|
+
| [**create**](DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution |
|
9
|
+
| [**delete**](DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution |
|
10
|
+
| [**list**](DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions |
|
11
|
+
| [**list_roles**](DistributionsAptApi.md#list_roles) | **GET** {deb_apt_distribution_href}list_roles/ | List roles |
|
12
|
+
| [**my_permissions**](DistributionsAptApi.md#my_permissions) | **GET** {deb_apt_distribution_href}my_permissions/ | List user permissions |
|
13
|
+
| [**partial_update**](DistributionsAptApi.md#partial_update) | **PATCH** {deb_apt_distribution_href} | Update an apt distribution |
|
14
|
+
| [**read**](DistributionsAptApi.md#read) | **GET** {deb_apt_distribution_href} | Inspect an apt distribution |
|
15
|
+
| [**remove_role**](DistributionsAptApi.md#remove_role) | **POST** {deb_apt_distribution_href}remove_role/ | Remove a role |
|
16
|
+
| [**set_label**](DistributionsAptApi.md#set_label) | **POST** {deb_apt_distribution_href}set_label/ | Set a label |
|
17
|
+
| [**unset_label**](DistributionsAptApi.md#unset_label) | **POST** {deb_apt_distribution_href}unset_label/ | Unset a label |
|
18
|
+
| [**update**](DistributionsAptApi.md#update) | **PUT** {deb_apt_distribution_href} | Update an apt distribution |
|
20
19
|
|
21
20
|
|
22
21
|
## add_role
|
23
22
|
|
24
|
-
> NestedRoleResponse add_role(deb_apt_distribution_href, nested_role)
|
23
|
+
> <NestedRoleResponse> add_role(deb_apt_distribution_href, nested_role)
|
25
24
|
|
26
25
|
Add a role
|
27
26
|
|
28
27
|
Add a role for this object to users/groups.
|
29
28
|
|
30
|
-
###
|
29
|
+
### Examples
|
31
30
|
|
32
31
|
```ruby
|
33
|
-
|
32
|
+
require 'time'
|
34
33
|
require 'pulp_deb_client'
|
35
34
|
# setup authorization
|
36
35
|
PulpDebClient.configure do |config|
|
@@ -41,24 +40,41 @@ end
|
|
41
40
|
|
42
41
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
43
42
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
44
|
-
nested_role = PulpDebClient::NestedRole.new # NestedRole |
|
43
|
+
nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
45
44
|
|
46
45
|
begin
|
47
|
-
#Add a role
|
46
|
+
# Add a role
|
48
47
|
result = api_instance.add_role(deb_apt_distribution_href, nested_role)
|
49
48
|
p result
|
50
49
|
rescue PulpDebClient::ApiError => e
|
51
|
-
puts "
|
50
|
+
puts "Error when calling DistributionsAptApi->add_role: #{e}"
|
52
51
|
end
|
53
52
|
```
|
54
53
|
|
55
|
-
|
54
|
+
#### Using the add_role_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(deb_apt_distribution_href, nested_role)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Add a role
|
63
|
+
data, status_code, headers = api_instance.add_role_with_http_info(deb_apt_distribution_href, nested_role)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <NestedRoleResponse>
|
67
|
+
rescue PulpDebClient::ApiError => e
|
68
|
+
puts "Error when calling DistributionsAptApi->add_role_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
56
71
|
|
72
|
+
### Parameters
|
57
73
|
|
58
|
-
Name | Type | Description
|
59
|
-
|
60
|
-
**deb_apt_distribution_href** | **String
|
61
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **deb_apt_distribution_href** | **String** | | |
|
77
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
62
78
|
|
63
79
|
### Return type
|
64
80
|
|
@@ -76,16 +92,16 @@ Name | Type | Description | Notes
|
|
76
92
|
|
77
93
|
## create
|
78
94
|
|
79
|
-
> AsyncOperationResponse create(deb_apt_distribution)
|
95
|
+
> <AsyncOperationResponse> create(deb_apt_distribution)
|
80
96
|
|
81
97
|
Create an apt distribution
|
82
98
|
|
83
99
|
Trigger an asynchronous create task
|
84
100
|
|
85
|
-
###
|
101
|
+
### Examples
|
86
102
|
|
87
103
|
```ruby
|
88
|
-
|
104
|
+
require 'time'
|
89
105
|
require 'pulp_deb_client'
|
90
106
|
# setup authorization
|
91
107
|
PulpDebClient.configure do |config|
|
@@ -95,23 +111,40 @@ PulpDebClient.configure do |config|
|
|
95
111
|
end
|
96
112
|
|
97
113
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
98
|
-
deb_apt_distribution = PulpDebClient::DebAptDistribution.new # DebAptDistribution |
|
114
|
+
deb_apt_distribution = PulpDebClient::DebAptDistribution.new({base_path: 'base_path_example', name: 'name_example'}) # DebAptDistribution |
|
99
115
|
|
100
116
|
begin
|
101
|
-
#Create an apt distribution
|
117
|
+
# Create an apt distribution
|
102
118
|
result = api_instance.create(deb_apt_distribution)
|
103
119
|
p result
|
104
120
|
rescue PulpDebClient::ApiError => e
|
105
|
-
puts "
|
121
|
+
puts "Error when calling DistributionsAptApi->create: #{e}"
|
106
122
|
end
|
107
123
|
```
|
108
124
|
|
109
|
-
|
125
|
+
#### Using the create_with_http_info variant
|
110
126
|
|
127
|
+
This returns an Array which contains the response data, status code and headers.
|
111
128
|
|
112
|
-
|
113
|
-
|
114
|
-
|
129
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> create_with_http_info(deb_apt_distribution)
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
begin
|
133
|
+
# Create an apt distribution
|
134
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_apt_distribution)
|
135
|
+
p status_code # => 2xx
|
136
|
+
p headers # => { ... }
|
137
|
+
p data # => <AsyncOperationResponse>
|
138
|
+
rescue PulpDebClient::ApiError => e
|
139
|
+
puts "Error when calling DistributionsAptApi->create_with_http_info: #{e}"
|
140
|
+
end
|
141
|
+
```
|
142
|
+
|
143
|
+
### Parameters
|
144
|
+
|
145
|
+
| Name | Type | Description | Notes |
|
146
|
+
| ---- | ---- | ----------- | ----- |
|
147
|
+
| **deb_apt_distribution** | [**DebAptDistribution**](DebAptDistribution.md) | | |
|
115
148
|
|
116
149
|
### Return type
|
117
150
|
|
@@ -129,16 +162,16 @@ Name | Type | Description | Notes
|
|
129
162
|
|
130
163
|
## delete
|
131
164
|
|
132
|
-
> AsyncOperationResponse delete(deb_apt_distribution_href)
|
165
|
+
> <AsyncOperationResponse> delete(deb_apt_distribution_href)
|
133
166
|
|
134
167
|
Delete an apt distribution
|
135
168
|
|
136
169
|
Trigger an asynchronous delete task
|
137
170
|
|
138
|
-
###
|
171
|
+
### Examples
|
139
172
|
|
140
173
|
```ruby
|
141
|
-
|
174
|
+
require 'time'
|
142
175
|
require 'pulp_deb_client'
|
143
176
|
# setup authorization
|
144
177
|
PulpDebClient.configure do |config|
|
@@ -151,20 +184,37 @@ api_instance = PulpDebClient::DistributionsAptApi.new
|
|
151
184
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
152
185
|
|
153
186
|
begin
|
154
|
-
#Delete an apt distribution
|
187
|
+
# Delete an apt distribution
|
155
188
|
result = api_instance.delete(deb_apt_distribution_href)
|
156
189
|
p result
|
157
190
|
rescue PulpDebClient::ApiError => e
|
158
|
-
puts "
|
191
|
+
puts "Error when calling DistributionsAptApi->delete: #{e}"
|
159
192
|
end
|
160
193
|
```
|
161
194
|
|
162
|
-
|
195
|
+
#### Using the delete_with_http_info variant
|
196
|
+
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
198
|
+
|
199
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(deb_apt_distribution_href)
|
163
200
|
|
201
|
+
```ruby
|
202
|
+
begin
|
203
|
+
# Delete an apt distribution
|
204
|
+
data, status_code, headers = api_instance.delete_with_http_info(deb_apt_distribution_href)
|
205
|
+
p status_code # => 2xx
|
206
|
+
p headers # => { ... }
|
207
|
+
p data # => <AsyncOperationResponse>
|
208
|
+
rescue PulpDebClient::ApiError => e
|
209
|
+
puts "Error when calling DistributionsAptApi->delete_with_http_info: #{e}"
|
210
|
+
end
|
211
|
+
```
|
212
|
+
|
213
|
+
### Parameters
|
164
214
|
|
165
|
-
Name | Type | Description
|
166
|
-
|
167
|
-
**deb_apt_distribution_href** | **String
|
215
|
+
| Name | Type | Description | Notes |
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
217
|
+
| **deb_apt_distribution_href** | **String** | | |
|
168
218
|
|
169
219
|
### Return type
|
170
220
|
|
@@ -182,16 +232,16 @@ Name | Type | Description | Notes
|
|
182
232
|
|
183
233
|
## list
|
184
234
|
|
185
|
-
> PaginateddebAptDistributionResponseList list(opts)
|
235
|
+
> <PaginateddebAptDistributionResponseList> list(opts)
|
186
236
|
|
187
237
|
List apt distributions
|
188
238
|
|
189
239
|
An AptDistribution is just an AptPublication made available via the content app. Creating an AptDistribution is a comparatively quick action. This way Pulp users may take as much time as is needed to prepare a VerbatimPublication or AptPublication, and then control the exact moment when that publication is made available.
|
190
240
|
|
191
|
-
###
|
241
|
+
### Examples
|
192
242
|
|
193
243
|
```ruby
|
194
|
-
|
244
|
+
require 'time'
|
195
245
|
require 'pulp_deb_client'
|
196
246
|
# setup authorization
|
197
247
|
PulpDebClient.configure do |config|
|
@@ -205,71 +255,90 @@ opts = {
|
|
205
255
|
base_path: 'base_path_example', # String | Filter results where base_path matches value
|
206
256
|
base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
|
207
257
|
base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
|
208
|
-
base_path__in: ['
|
258
|
+
base_path__in: ['inner_example'], # Array<String> | Filter results where base_path is in a comma-separated list of values
|
259
|
+
checkpoint: true, # Boolean | Filter results where checkpoint matches value
|
209
260
|
limit: 56, # Integer | Number of results to return per page.
|
210
261
|
name: 'name_example', # String | Filter results where name matches value
|
211
262
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
212
263
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
213
264
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
214
|
-
name__in: ['
|
265
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
215
266
|
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
216
267
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
217
268
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
218
269
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
219
270
|
offset: 56, # Integer | The initial index from which to return the results.
|
220
|
-
ordering: ['
|
221
|
-
prn__in: ['
|
222
|
-
pulp_href__in: ['
|
223
|
-
pulp_id__in: ['
|
271
|
+
ordering: ['-base_path'], # 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
272
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
273
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
274
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
224
275
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
225
276
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
226
|
-
repository: '
|
227
|
-
repository__in: ['
|
277
|
+
repository: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Filter results where repository matches value
|
278
|
+
repository__in: ['inner_example'], # Array<String> | Filter results where repository is in a comma-separated list of values
|
228
279
|
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
229
|
-
fields: ['
|
230
|
-
exclude_fields: ['
|
280
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
281
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
231
282
|
}
|
232
283
|
|
233
284
|
begin
|
234
|
-
#List apt distributions
|
285
|
+
# List apt distributions
|
235
286
|
result = api_instance.list(opts)
|
236
287
|
p result
|
237
288
|
rescue PulpDebClient::ApiError => e
|
238
|
-
puts "
|
289
|
+
puts "Error when calling DistributionsAptApi->list: #{e}"
|
239
290
|
end
|
240
291
|
```
|
241
292
|
|
242
|
-
|
293
|
+
#### Using the list_with_http_info variant
|
294
|
+
|
295
|
+
This returns an Array which contains the response data, status code and headers.
|
243
296
|
|
297
|
+
> <Array(<PaginateddebAptDistributionResponseList>, Integer, Hash)> list_with_http_info(opts)
|
244
298
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
**
|
262
|
-
**
|
263
|
-
**
|
264
|
-
**
|
265
|
-
**
|
266
|
-
**
|
267
|
-
**
|
268
|
-
**
|
269
|
-
**
|
270
|
-
**
|
271
|
-
**
|
272
|
-
**
|
299
|
+
```ruby
|
300
|
+
begin
|
301
|
+
# List apt distributions
|
302
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
303
|
+
p status_code # => 2xx
|
304
|
+
p headers # => { ... }
|
305
|
+
p data # => <PaginateddebAptDistributionResponseList>
|
306
|
+
rescue PulpDebClient::ApiError => e
|
307
|
+
puts "Error when calling DistributionsAptApi->list_with_http_info: #{e}"
|
308
|
+
end
|
309
|
+
```
|
310
|
+
|
311
|
+
### Parameters
|
312
|
+
|
313
|
+
| Name | Type | Description | Notes |
|
314
|
+
| ---- | ---- | ----------- | ----- |
|
315
|
+
| **base_path** | **String** | Filter results where base_path matches value | [optional] |
|
316
|
+
| **base_path__contains** | **String** | Filter results where base_path contains value | [optional] |
|
317
|
+
| **base_path__icontains** | **String** | Filter results where base_path contains value | [optional] |
|
318
|
+
| **base_path__in** | [**Array<String>**](String.md) | Filter results where base_path is in a comma-separated list of values | [optional] |
|
319
|
+
| **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
|
320
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
321
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
322
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
323
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
324
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
325
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
326
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
327
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
328
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
329
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
330
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
331
|
+
| **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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
332
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
333
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
334
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
335
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
336
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
337
|
+
| **repository** | **String** | Filter results where repository matches value | [optional] |
|
338
|
+
| **repository__in** | [**Array<String>**](String.md) | Filter results where repository is in a comma-separated list of values | [optional] |
|
339
|
+
| **with_content** | **String** | Filter distributions based on the content served by them | [optional] |
|
340
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
341
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
273
342
|
|
274
343
|
### Return type
|
275
344
|
|
@@ -287,16 +356,16 @@ Name | Type | Description | Notes
|
|
287
356
|
|
288
357
|
## list_roles
|
289
358
|
|
290
|
-
> ObjectRolesResponse list_roles(deb_apt_distribution_href, opts)
|
359
|
+
> <ObjectRolesResponse> list_roles(deb_apt_distribution_href, opts)
|
291
360
|
|
292
361
|
List roles
|
293
362
|
|
294
363
|
List roles assigned to this object.
|
295
364
|
|
296
|
-
###
|
365
|
+
### Examples
|
297
366
|
|
298
367
|
```ruby
|
299
|
-
|
368
|
+
require 'time'
|
300
369
|
require 'pulp_deb_client'
|
301
370
|
# setup authorization
|
302
371
|
PulpDebClient.configure do |config|
|
@@ -308,27 +377,44 @@ end
|
|
308
377
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
309
378
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
310
379
|
opts = {
|
311
|
-
fields: ['
|
312
|
-
exclude_fields: ['
|
380
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
381
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
313
382
|
}
|
314
383
|
|
315
384
|
begin
|
316
|
-
#List roles
|
385
|
+
# List roles
|
317
386
|
result = api_instance.list_roles(deb_apt_distribution_href, opts)
|
318
387
|
p result
|
319
388
|
rescue PulpDebClient::ApiError => e
|
320
|
-
puts "
|
389
|
+
puts "Error when calling DistributionsAptApi->list_roles: #{e}"
|
321
390
|
end
|
322
391
|
```
|
323
392
|
|
324
|
-
|
393
|
+
#### Using the list_roles_with_http_info variant
|
394
|
+
|
395
|
+
This returns an Array which contains the response data, status code and headers.
|
396
|
+
|
397
|
+
> <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(deb_apt_distribution_href, opts)
|
398
|
+
|
399
|
+
```ruby
|
400
|
+
begin
|
401
|
+
# List roles
|
402
|
+
data, status_code, headers = api_instance.list_roles_with_http_info(deb_apt_distribution_href, opts)
|
403
|
+
p status_code # => 2xx
|
404
|
+
p headers # => { ... }
|
405
|
+
p data # => <ObjectRolesResponse>
|
406
|
+
rescue PulpDebClient::ApiError => e
|
407
|
+
puts "Error when calling DistributionsAptApi->list_roles_with_http_info: #{e}"
|
408
|
+
end
|
409
|
+
```
|
325
410
|
|
411
|
+
### Parameters
|
326
412
|
|
327
|
-
Name | Type | Description
|
328
|
-
|
329
|
-
**deb_apt_distribution_href** | **String
|
330
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
331
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
413
|
+
| Name | Type | Description | Notes |
|
414
|
+
| ---- | ---- | ----------- | ----- |
|
415
|
+
| **deb_apt_distribution_href** | **String** | | |
|
416
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
417
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
332
418
|
|
333
419
|
### Return type
|
334
420
|
|
@@ -346,16 +432,16 @@ Name | Type | Description | Notes
|
|
346
432
|
|
347
433
|
## my_permissions
|
348
434
|
|
349
|
-
> MyPermissionsResponse my_permissions(deb_apt_distribution_href, opts)
|
435
|
+
> <MyPermissionsResponse> my_permissions(deb_apt_distribution_href, opts)
|
350
436
|
|
351
437
|
List user permissions
|
352
438
|
|
353
439
|
List permissions available to the current user on this object.
|
354
440
|
|
355
|
-
###
|
441
|
+
### Examples
|
356
442
|
|
357
443
|
```ruby
|
358
|
-
|
444
|
+
require 'time'
|
359
445
|
require 'pulp_deb_client'
|
360
446
|
# setup authorization
|
361
447
|
PulpDebClient.configure do |config|
|
@@ -367,27 +453,44 @@ end
|
|
367
453
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
368
454
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
369
455
|
opts = {
|
370
|
-
fields: ['
|
371
|
-
exclude_fields: ['
|
456
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
457
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
372
458
|
}
|
373
459
|
|
374
460
|
begin
|
375
|
-
#List user permissions
|
461
|
+
# List user permissions
|
376
462
|
result = api_instance.my_permissions(deb_apt_distribution_href, opts)
|
377
463
|
p result
|
378
464
|
rescue PulpDebClient::ApiError => e
|
379
|
-
puts "
|
465
|
+
puts "Error when calling DistributionsAptApi->my_permissions: #{e}"
|
380
466
|
end
|
381
467
|
```
|
382
468
|
|
383
|
-
|
469
|
+
#### Using the my_permissions_with_http_info variant
|
470
|
+
|
471
|
+
This returns an Array which contains the response data, status code and headers.
|
472
|
+
|
473
|
+
> <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(deb_apt_distribution_href, opts)
|
384
474
|
|
475
|
+
```ruby
|
476
|
+
begin
|
477
|
+
# List user permissions
|
478
|
+
data, status_code, headers = api_instance.my_permissions_with_http_info(deb_apt_distribution_href, opts)
|
479
|
+
p status_code # => 2xx
|
480
|
+
p headers # => { ... }
|
481
|
+
p data # => <MyPermissionsResponse>
|
482
|
+
rescue PulpDebClient::ApiError => e
|
483
|
+
puts "Error when calling DistributionsAptApi->my_permissions_with_http_info: #{e}"
|
484
|
+
end
|
485
|
+
```
|
486
|
+
|
487
|
+
### Parameters
|
385
488
|
|
386
|
-
Name | Type | Description
|
387
|
-
|
388
|
-
**deb_apt_distribution_href** | **String
|
389
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
390
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
489
|
+
| Name | Type | Description | Notes |
|
490
|
+
| ---- | ---- | ----------- | ----- |
|
491
|
+
| **deb_apt_distribution_href** | **String** | | |
|
492
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
493
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
391
494
|
|
392
495
|
### Return type
|
393
496
|
|
@@ -405,16 +508,16 @@ Name | Type | Description | Notes
|
|
405
508
|
|
406
509
|
## partial_update
|
407
510
|
|
408
|
-
> AsyncOperationResponse partial_update(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
511
|
+
> <AsyncOperationResponse> partial_update(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
409
512
|
|
410
513
|
Update an apt distribution
|
411
514
|
|
412
515
|
Trigger an asynchronous partial update task
|
413
516
|
|
414
|
-
###
|
517
|
+
### Examples
|
415
518
|
|
416
519
|
```ruby
|
417
|
-
|
520
|
+
require 'time'
|
418
521
|
require 'pulp_deb_client'
|
419
522
|
# setup authorization
|
420
523
|
PulpDebClient.configure do |config|
|
@@ -428,21 +531,38 @@ deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
|
428
531
|
patcheddeb_apt_distribution = PulpDebClient::PatcheddebAptDistribution.new # PatcheddebAptDistribution |
|
429
532
|
|
430
533
|
begin
|
431
|
-
#Update an apt distribution
|
534
|
+
# Update an apt distribution
|
432
535
|
result = api_instance.partial_update(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
433
536
|
p result
|
434
537
|
rescue PulpDebClient::ApiError => e
|
435
|
-
puts "
|
538
|
+
puts "Error when calling DistributionsAptApi->partial_update: #{e}"
|
436
539
|
end
|
437
540
|
```
|
438
541
|
|
439
|
-
|
542
|
+
#### Using the partial_update_with_http_info variant
|
543
|
+
|
544
|
+
This returns an Array which contains the response data, status code and headers.
|
440
545
|
|
546
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
441
547
|
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
548
|
+
```ruby
|
549
|
+
begin
|
550
|
+
# Update an apt distribution
|
551
|
+
data, status_code, headers = api_instance.partial_update_with_http_info(deb_apt_distribution_href, patcheddeb_apt_distribution)
|
552
|
+
p status_code # => 2xx
|
553
|
+
p headers # => { ... }
|
554
|
+
p data # => <AsyncOperationResponse>
|
555
|
+
rescue PulpDebClient::ApiError => e
|
556
|
+
puts "Error when calling DistributionsAptApi->partial_update_with_http_info: #{e}"
|
557
|
+
end
|
558
|
+
```
|
559
|
+
|
560
|
+
### Parameters
|
561
|
+
|
562
|
+
| Name | Type | Description | Notes |
|
563
|
+
| ---- | ---- | ----------- | ----- |
|
564
|
+
| **deb_apt_distribution_href** | **String** | | |
|
565
|
+
| **patcheddeb_apt_distribution** | [**PatcheddebAptDistribution**](PatcheddebAptDistribution.md) | | |
|
446
566
|
|
447
567
|
### Return type
|
448
568
|
|
@@ -460,16 +580,16 @@ Name | Type | Description | Notes
|
|
460
580
|
|
461
581
|
## read
|
462
582
|
|
463
|
-
> DebAptDistributionResponse read(deb_apt_distribution_href, opts)
|
583
|
+
> <DebAptDistributionResponse> read(deb_apt_distribution_href, opts)
|
464
584
|
|
465
585
|
Inspect an apt distribution
|
466
586
|
|
467
587
|
An AptDistribution is just an AptPublication made available via the content app. Creating an AptDistribution is a comparatively quick action. This way Pulp users may take as much time as is needed to prepare a VerbatimPublication or AptPublication, and then control the exact moment when that publication is made available.
|
468
588
|
|
469
|
-
###
|
589
|
+
### Examples
|
470
590
|
|
471
591
|
```ruby
|
472
|
-
|
592
|
+
require 'time'
|
473
593
|
require 'pulp_deb_client'
|
474
594
|
# setup authorization
|
475
595
|
PulpDebClient.configure do |config|
|
@@ -481,27 +601,44 @@ end
|
|
481
601
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
482
602
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
483
603
|
opts = {
|
484
|
-
fields: ['
|
485
|
-
exclude_fields: ['
|
604
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
605
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
486
606
|
}
|
487
607
|
|
488
608
|
begin
|
489
|
-
#Inspect an apt distribution
|
609
|
+
# Inspect an apt distribution
|
490
610
|
result = api_instance.read(deb_apt_distribution_href, opts)
|
491
611
|
p result
|
492
612
|
rescue PulpDebClient::ApiError => e
|
493
|
-
puts "
|
613
|
+
puts "Error when calling DistributionsAptApi->read: #{e}"
|
494
614
|
end
|
495
615
|
```
|
496
616
|
|
497
|
-
|
617
|
+
#### Using the read_with_http_info variant
|
618
|
+
|
619
|
+
This returns an Array which contains the response data, status code and headers.
|
620
|
+
|
621
|
+
> <Array(<DebAptDistributionResponse>, Integer, Hash)> read_with_http_info(deb_apt_distribution_href, opts)
|
622
|
+
|
623
|
+
```ruby
|
624
|
+
begin
|
625
|
+
# Inspect an apt distribution
|
626
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_apt_distribution_href, opts)
|
627
|
+
p status_code # => 2xx
|
628
|
+
p headers # => { ... }
|
629
|
+
p data # => <DebAptDistributionResponse>
|
630
|
+
rescue PulpDebClient::ApiError => e
|
631
|
+
puts "Error when calling DistributionsAptApi->read_with_http_info: #{e}"
|
632
|
+
end
|
633
|
+
```
|
498
634
|
|
635
|
+
### Parameters
|
499
636
|
|
500
|
-
Name | Type | Description
|
501
|
-
|
502
|
-
**deb_apt_distribution_href** | **String
|
503
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
504
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
637
|
+
| Name | Type | Description | Notes |
|
638
|
+
| ---- | ---- | ----------- | ----- |
|
639
|
+
| **deb_apt_distribution_href** | **String** | | |
|
640
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
641
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
505
642
|
|
506
643
|
### Return type
|
507
644
|
|
@@ -519,16 +656,16 @@ Name | Type | Description | Notes
|
|
519
656
|
|
520
657
|
## remove_role
|
521
658
|
|
522
|
-
> NestedRoleResponse remove_role(deb_apt_distribution_href, nested_role)
|
659
|
+
> <NestedRoleResponse> remove_role(deb_apt_distribution_href, nested_role)
|
523
660
|
|
524
661
|
Remove a role
|
525
662
|
|
526
663
|
Remove a role for this object from users/groups.
|
527
664
|
|
528
|
-
###
|
665
|
+
### Examples
|
529
666
|
|
530
667
|
```ruby
|
531
|
-
|
668
|
+
require 'time'
|
532
669
|
require 'pulp_deb_client'
|
533
670
|
# setup authorization
|
534
671
|
PulpDebClient.configure do |config|
|
@@ -539,24 +676,41 @@ end
|
|
539
676
|
|
540
677
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
541
678
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
542
|
-
nested_role = PulpDebClient::NestedRole.new # NestedRole |
|
679
|
+
nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
543
680
|
|
544
681
|
begin
|
545
|
-
#Remove a role
|
682
|
+
# Remove a role
|
546
683
|
result = api_instance.remove_role(deb_apt_distribution_href, nested_role)
|
547
684
|
p result
|
548
685
|
rescue PulpDebClient::ApiError => e
|
549
|
-
puts "
|
686
|
+
puts "Error when calling DistributionsAptApi->remove_role: #{e}"
|
550
687
|
end
|
551
688
|
```
|
552
689
|
|
553
|
-
|
690
|
+
#### Using the remove_role_with_http_info variant
|
691
|
+
|
692
|
+
This returns an Array which contains the response data, status code and headers.
|
693
|
+
|
694
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(deb_apt_distribution_href, nested_role)
|
554
695
|
|
696
|
+
```ruby
|
697
|
+
begin
|
698
|
+
# Remove a role
|
699
|
+
data, status_code, headers = api_instance.remove_role_with_http_info(deb_apt_distribution_href, nested_role)
|
700
|
+
p status_code # => 2xx
|
701
|
+
p headers # => { ... }
|
702
|
+
p data # => <NestedRoleResponse>
|
703
|
+
rescue PulpDebClient::ApiError => e
|
704
|
+
puts "Error when calling DistributionsAptApi->remove_role_with_http_info: #{e}"
|
705
|
+
end
|
706
|
+
```
|
707
|
+
|
708
|
+
### Parameters
|
555
709
|
|
556
|
-
Name | Type | Description
|
557
|
-
|
558
|
-
**deb_apt_distribution_href** | **String
|
559
|
-
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
710
|
+
| Name | Type | Description | Notes |
|
711
|
+
| ---- | ---- | ----------- | ----- |
|
712
|
+
| **deb_apt_distribution_href** | **String** | | |
|
713
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
560
714
|
|
561
715
|
### Return type
|
562
716
|
|
@@ -574,16 +728,16 @@ Name | Type | Description | Notes
|
|
574
728
|
|
575
729
|
## set_label
|
576
730
|
|
577
|
-
> SetLabelResponse set_label(deb_apt_distribution_href, set_label)
|
731
|
+
> <SetLabelResponse> set_label(deb_apt_distribution_href, set_label)
|
578
732
|
|
579
733
|
Set a label
|
580
734
|
|
581
735
|
Set a single pulp_label on the object to a specific value or null.
|
582
736
|
|
583
|
-
###
|
737
|
+
### Examples
|
584
738
|
|
585
739
|
```ruby
|
586
|
-
|
740
|
+
require 'time'
|
587
741
|
require 'pulp_deb_client'
|
588
742
|
# setup authorization
|
589
743
|
PulpDebClient.configure do |config|
|
@@ -594,24 +748,41 @@ end
|
|
594
748
|
|
595
749
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
596
750
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
597
|
-
set_label = PulpDebClient::SetLabel.new # SetLabel |
|
751
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
598
752
|
|
599
753
|
begin
|
600
|
-
#Set a label
|
754
|
+
# Set a label
|
601
755
|
result = api_instance.set_label(deb_apt_distribution_href, set_label)
|
602
756
|
p result
|
603
757
|
rescue PulpDebClient::ApiError => e
|
604
|
-
puts "
|
758
|
+
puts "Error when calling DistributionsAptApi->set_label: #{e}"
|
605
759
|
end
|
606
760
|
```
|
607
761
|
|
608
|
-
|
762
|
+
#### Using the set_label_with_http_info variant
|
763
|
+
|
764
|
+
This returns an Array which contains the response data, status code and headers.
|
609
765
|
|
766
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_apt_distribution_href, set_label)
|
610
767
|
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
768
|
+
```ruby
|
769
|
+
begin
|
770
|
+
# Set a label
|
771
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_apt_distribution_href, set_label)
|
772
|
+
p status_code # => 2xx
|
773
|
+
p headers # => { ... }
|
774
|
+
p data # => <SetLabelResponse>
|
775
|
+
rescue PulpDebClient::ApiError => e
|
776
|
+
puts "Error when calling DistributionsAptApi->set_label_with_http_info: #{e}"
|
777
|
+
end
|
778
|
+
```
|
779
|
+
|
780
|
+
### Parameters
|
781
|
+
|
782
|
+
| Name | Type | Description | Notes |
|
783
|
+
| ---- | ---- | ----------- | ----- |
|
784
|
+
| **deb_apt_distribution_href** | **String** | | |
|
785
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
615
786
|
|
616
787
|
### Return type
|
617
788
|
|
@@ -629,16 +800,16 @@ Name | Type | Description | Notes
|
|
629
800
|
|
630
801
|
## unset_label
|
631
802
|
|
632
|
-
> UnsetLabelResponse unset_label(deb_apt_distribution_href, unset_label)
|
803
|
+
> <UnsetLabelResponse> unset_label(deb_apt_distribution_href, unset_label)
|
633
804
|
|
634
805
|
Unset a label
|
635
806
|
|
636
807
|
Unset a single pulp_label on the object.
|
637
808
|
|
638
|
-
###
|
809
|
+
### Examples
|
639
810
|
|
640
811
|
```ruby
|
641
|
-
|
812
|
+
require 'time'
|
642
813
|
require 'pulp_deb_client'
|
643
814
|
# setup authorization
|
644
815
|
PulpDebClient.configure do |config|
|
@@ -649,24 +820,41 @@ end
|
|
649
820
|
|
650
821
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
651
822
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
652
|
-
unset_label = PulpDebClient::UnsetLabel.new # UnsetLabel |
|
823
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
653
824
|
|
654
825
|
begin
|
655
|
-
#Unset a label
|
826
|
+
# Unset a label
|
656
827
|
result = api_instance.unset_label(deb_apt_distribution_href, unset_label)
|
657
828
|
p result
|
658
829
|
rescue PulpDebClient::ApiError => e
|
659
|
-
puts "
|
830
|
+
puts "Error when calling DistributionsAptApi->unset_label: #{e}"
|
660
831
|
end
|
661
832
|
```
|
662
833
|
|
663
|
-
|
834
|
+
#### Using the unset_label_with_http_info variant
|
835
|
+
|
836
|
+
This returns an Array which contains the response data, status code and headers.
|
837
|
+
|
838
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_apt_distribution_href, unset_label)
|
839
|
+
|
840
|
+
```ruby
|
841
|
+
begin
|
842
|
+
# Unset a label
|
843
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_apt_distribution_href, unset_label)
|
844
|
+
p status_code # => 2xx
|
845
|
+
p headers # => { ... }
|
846
|
+
p data # => <UnsetLabelResponse>
|
847
|
+
rescue PulpDebClient::ApiError => e
|
848
|
+
puts "Error when calling DistributionsAptApi->unset_label_with_http_info: #{e}"
|
849
|
+
end
|
850
|
+
```
|
664
851
|
|
852
|
+
### Parameters
|
665
853
|
|
666
|
-
Name | Type | Description
|
667
|
-
|
668
|
-
**deb_apt_distribution_href** | **String
|
669
|
-
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
854
|
+
| Name | Type | Description | Notes |
|
855
|
+
| ---- | ---- | ----------- | ----- |
|
856
|
+
| **deb_apt_distribution_href** | **String** | | |
|
857
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
670
858
|
|
671
859
|
### Return type
|
672
860
|
|
@@ -684,16 +872,16 @@ Name | Type | Description | Notes
|
|
684
872
|
|
685
873
|
## update
|
686
874
|
|
687
|
-
> AsyncOperationResponse update(deb_apt_distribution_href, deb_apt_distribution)
|
875
|
+
> <AsyncOperationResponse> update(deb_apt_distribution_href, deb_apt_distribution)
|
688
876
|
|
689
877
|
Update an apt distribution
|
690
878
|
|
691
879
|
Trigger an asynchronous update task
|
692
880
|
|
693
|
-
###
|
881
|
+
### Examples
|
694
882
|
|
695
883
|
```ruby
|
696
|
-
|
884
|
+
require 'time'
|
697
885
|
require 'pulp_deb_client'
|
698
886
|
# setup authorization
|
699
887
|
PulpDebClient.configure do |config|
|
@@ -704,24 +892,41 @@ end
|
|
704
892
|
|
705
893
|
api_instance = PulpDebClient::DistributionsAptApi.new
|
706
894
|
deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
|
707
|
-
deb_apt_distribution = PulpDebClient::DebAptDistribution.new # DebAptDistribution |
|
895
|
+
deb_apt_distribution = PulpDebClient::DebAptDistribution.new({base_path: 'base_path_example', name: 'name_example'}) # DebAptDistribution |
|
708
896
|
|
709
897
|
begin
|
710
|
-
#Update an apt distribution
|
898
|
+
# Update an apt distribution
|
711
899
|
result = api_instance.update(deb_apt_distribution_href, deb_apt_distribution)
|
712
900
|
p result
|
713
901
|
rescue PulpDebClient::ApiError => e
|
714
|
-
puts "
|
902
|
+
puts "Error when calling DistributionsAptApi->update: #{e}"
|
715
903
|
end
|
716
904
|
```
|
717
905
|
|
718
|
-
|
906
|
+
#### Using the update_with_http_info variant
|
907
|
+
|
908
|
+
This returns an Array which contains the response data, status code and headers.
|
909
|
+
|
910
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(deb_apt_distribution_href, deb_apt_distribution)
|
719
911
|
|
912
|
+
```ruby
|
913
|
+
begin
|
914
|
+
# Update an apt distribution
|
915
|
+
data, status_code, headers = api_instance.update_with_http_info(deb_apt_distribution_href, deb_apt_distribution)
|
916
|
+
p status_code # => 2xx
|
917
|
+
p headers # => { ... }
|
918
|
+
p data # => <AsyncOperationResponse>
|
919
|
+
rescue PulpDebClient::ApiError => e
|
920
|
+
puts "Error when calling DistributionsAptApi->update_with_http_info: #{e}"
|
921
|
+
end
|
922
|
+
```
|
923
|
+
|
924
|
+
### Parameters
|
720
925
|
|
721
|
-
Name | Type | Description
|
722
|
-
|
723
|
-
**deb_apt_distribution_href** | **String
|
724
|
-
**deb_apt_distribution** | [**DebAptDistribution**](DebAptDistribution.md)| |
|
926
|
+
| Name | Type | Description | Notes |
|
927
|
+
| ---- | ---- | ----------- | ----- |
|
928
|
+
| **deb_apt_distribution_href** | **String** | | |
|
929
|
+
| **deb_apt_distribution** | [**DebAptDistribution**](DebAptDistribution.md) | | |
|
725
930
|
|
726
931
|
### Return type
|
727
932
|
|