pulp_deb_client 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +34 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +114 -64
- data/docs/ContentInstallerFileIndicesApi.md +111 -61
- data/docs/ContentInstallerPackagesApi.md +130 -80
- data/docs/ContentPackageIndicesApi.md +111 -61
- data/docs/ContentPackageReleaseComponentsApi.md +111 -61
- data/docs/ContentPackagesApi.md +144 -94
- data/docs/ContentReleaseArchitecturesApi.md +109 -59
- data/docs/ContentReleaseComponentsApi.md +110 -60
- data/docs/ContentReleaseFilesApi.md +111 -61
- data/docs/ContentReleasesApi.md +114 -64
- data/docs/ContentSourceIndicesApi.md +110 -60
- data/docs/ContentSourcePackagesApi.md +137 -87
- data/docs/ContentSourceReleaseComponentsApi.md +111 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +30 -29
- data/docs/DebInstallerFileIndex.md +16 -15
- data/docs/DebInstallerFileIndexResponse.md +22 -21
- data/docs/DebInstallerPackageResponse.md +88 -87
- data/docs/DebPackageIndex.md +16 -15
- data/docs/DebPackageIndexResponse.md +22 -21
- data/docs/DebPackageReleaseComponent.md +12 -11
- data/docs/DebPackageReleaseComponentResponse.md +18 -17
- data/docs/DebPackageResponse.md +92 -91
- data/docs/DebRelease.md +26 -25
- data/docs/DebReleaseArchitecture.md +12 -11
- data/docs/DebReleaseArchitectureResponse.md +18 -17
- data/docs/DebReleaseComponent.md +12 -11
- data/docs/DebReleaseComponentResponse.md +20 -17
- data/docs/DebReleaseFile.md +18 -17
- data/docs/DebReleaseFileResponse.md +24 -23
- data/docs/DebReleaseResponse.md +32 -31
- data/docs/DebSourceIndex.md +16 -15
- data/docs/DebSourceIndexResponse.md +22 -21
- data/docs/DebSourcePackage.md +12 -11
- data/docs/DebSourcePackageReleaseComponent.md +12 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
- data/docs/DebSourcePackageResponse.md +74 -71
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +564 -129
- data/docs/MyPermissionsResponse.md +18 -0
- data/docs/NestedRole.md +22 -0
- data/docs/NestedRoleResponse.md +22 -0
- data/docs/ObjectRolesResponse.md +18 -0
- 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 +446 -77
- data/docs/PublicationsVerbatimApi.md +446 -77
- data/docs/RemotesAptApi.md +568 -131
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +623 -154
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +347 -38
- data/lib/pulp_deb_client/api/publications_apt_api.rb +325 -29
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +325 -29
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +362 -50
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +365 -48
- 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 +78 -42
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +81 -45
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_release.rb +36 -22
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +50 -28
- data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +45 -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 +223 -0
- data/lib/pulp_deb_client/models/{deb_installer_package.rb → nested_role.rb} +72 -97
- data/lib/pulp_deb_client/models/{deb_generic_content.rb → nested_role_response.rb} +62 -115
- data/lib/pulp_deb_client/models/object_roles_response.rb +223 -0
- 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 +87 -45
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +32 -22
- data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +6 -5
- data/pulp_deb_client.gemspec +9 -6
- data/spec/api/content_generic_contents_api_spec.rb +4 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
- data/spec/api/content_installer_packages_api_spec.rb +4 -4
- data/spec/api/content_package_indices_api_spec.rb +4 -4
- data/spec/api/content_package_release_components_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_release_architectures_api_spec.rb +4 -4
- data/spec/api/content_release_components_api_spec.rb +4 -4
- data/spec/api/content_release_files_api_spec.rb +4 -4
- data/spec/api/content_releases_api_spec.rb +4 -4
- data/spec/api/content_source_indices_api_spec.rb +4 -4
- data/spec/api/content_source_packages_api_spec.rb +4 -4
- data/spec/api/content_source_release_components_api_spec.rb +4 -4
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +63 -9
- data/spec/api/publications_apt_api_spec.rb +66 -11
- data/spec/api/publications_verbatim_api_spec.rb +66 -11
- data/spec/api/remotes_apt_api_spec.rb +70 -15
- data/spec/api/repositories_apt_api_spec.rb +65 -11
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +18 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
- data/spec/models/deb_installer_file_index_spec.rb +11 -16
- data/spec/models/deb_installer_package_response_spec.rb +47 -52
- data/spec/models/deb_package_index_response_spec.rb +14 -19
- data/spec/models/deb_package_index_spec.rb +11 -16
- data/spec/models/deb_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_package_release_component_spec.rb +9 -14
- data/spec/models/deb_package_response_spec.rb +49 -54
- data/spec/models/deb_release_architecture_response_spec.rb +12 -17
- data/spec/models/deb_release_architecture_spec.rb +9 -14
- data/spec/models/deb_release_component_response_spec.rb +18 -17
- data/spec/models/deb_release_component_spec.rb +9 -14
- data/spec/models/deb_release_file_response_spec.rb +15 -20
- data/spec/models/deb_release_file_spec.rb +12 -17
- data/spec/models/deb_release_response_spec.rb +19 -24
- data/spec/models/deb_release_spec.rb +16 -21
- data/spec/models/deb_source_index_response_spec.rb +14 -19
- data/spec/models/deb_source_index_spec.rb +11 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_source_package_release_component_spec.rb +9 -14
- data/spec/models/deb_source_package_response_spec.rb +45 -44
- data/spec/models/deb_source_package_spec.rb +9 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +36 -0
- data/spec/models/nested_role_response_spec.rb +48 -0
- data/spec/models/nested_role_spec.rb +48 -0
- data/spec/models/object_roles_response_spec.rb +36 -0
- 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 +136 -108
- 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_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/RepositoriesAptApi.md
CHANGED
@@ -2,33 +2,108 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
13
|
-
[**
|
14
|
-
[**
|
15
|
-
[**
|
16
|
-
[**
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_role**](RepositoriesAptApi.md#add_role) | **POST** {deb_apt_repository_href}add_role/ | Add a role |
|
8
|
+
| [**create**](RepositoriesAptApi.md#create) | **POST** /pulp/api/v3/repositories/deb/apt/ | Create an apt repository |
|
9
|
+
| [**delete**](RepositoriesAptApi.md#delete) | **DELETE** {deb_apt_repository_href} | Delete an apt repository |
|
10
|
+
| [**list**](RepositoriesAptApi.md#list) | **GET** /pulp/api/v3/repositories/deb/apt/ | List apt repositorys |
|
11
|
+
| [**list_roles**](RepositoriesAptApi.md#list_roles) | **GET** {deb_apt_repository_href}list_roles/ | List roles |
|
12
|
+
| [**modify**](RepositoriesAptApi.md#modify) | **POST** {deb_apt_repository_href}modify/ | Modify Repository Content |
|
13
|
+
| [**my_permissions**](RepositoriesAptApi.md#my_permissions) | **GET** {deb_apt_repository_href}my_permissions/ | List user permissions |
|
14
|
+
| [**partial_update**](RepositoriesAptApi.md#partial_update) | **PATCH** {deb_apt_repository_href} | Update an apt repository |
|
15
|
+
| [**read**](RepositoriesAptApi.md#read) | **GET** {deb_apt_repository_href} | Inspect an apt repository |
|
16
|
+
| [**remove_role**](RepositoriesAptApi.md#remove_role) | **POST** {deb_apt_repository_href}remove_role/ | Remove a role |
|
17
|
+
| [**set_label**](RepositoriesAptApi.md#set_label) | **POST** {deb_apt_repository_href}set_label/ | Set a label |
|
18
|
+
| [**sync**](RepositoriesAptApi.md#sync) | **POST** {deb_apt_repository_href}sync/ | Sync from remote |
|
19
|
+
| [**unset_label**](RepositoriesAptApi.md#unset_label) | **POST** {deb_apt_repository_href}unset_label/ | Unset a label |
|
20
|
+
| [**update**](RepositoriesAptApi.md#update) | **PUT** {deb_apt_repository_href} | Update an apt repository |
|
17
21
|
|
18
22
|
|
23
|
+
## add_role
|
24
|
+
|
25
|
+
> <NestedRoleResponse> add_role(deb_apt_repository_href, nested_role)
|
26
|
+
|
27
|
+
Add a role
|
28
|
+
|
29
|
+
Add a role for this object to users/groups.
|
30
|
+
|
31
|
+
### Examples
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require 'time'
|
35
|
+
require 'pulp_deb_client'
|
36
|
+
# setup authorization
|
37
|
+
PulpDebClient.configure do |config|
|
38
|
+
# Configure HTTP basic authorization: basicAuth
|
39
|
+
config.username = 'YOUR USERNAME'
|
40
|
+
config.password = 'YOUR PASSWORD'
|
41
|
+
end
|
42
|
+
|
43
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
44
|
+
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
45
|
+
nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
46
|
+
|
47
|
+
begin
|
48
|
+
# Add a role
|
49
|
+
result = api_instance.add_role(deb_apt_repository_href, nested_role)
|
50
|
+
p result
|
51
|
+
rescue PulpDebClient::ApiError => e
|
52
|
+
puts "Error when calling RepositoriesAptApi->add_role: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the add_role_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> add_role_with_http_info(deb_apt_repository_href, nested_role)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
# Add a role
|
65
|
+
data, status_code, headers = api_instance.add_role_with_http_info(deb_apt_repository_href, nested_role)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <NestedRoleResponse>
|
69
|
+
rescue PulpDebClient::ApiError => e
|
70
|
+
puts "Error when calling RepositoriesAptApi->add_role_with_http_info: #{e}"
|
71
|
+
end
|
72
|
+
```
|
73
|
+
|
74
|
+
### Parameters
|
75
|
+
|
76
|
+
| Name | Type | Description | Notes |
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
78
|
+
| **deb_apt_repository_href** | **String** | | |
|
79
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
80
|
+
|
81
|
+
### Return type
|
82
|
+
|
83
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
84
|
+
|
85
|
+
### Authorization
|
86
|
+
|
87
|
+
[basicAuth](../README.md#basicAuth)
|
88
|
+
|
89
|
+
### HTTP request headers
|
90
|
+
|
91
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
92
|
+
- **Accept**: application/json
|
93
|
+
|
19
94
|
|
20
95
|
## create
|
21
96
|
|
22
|
-
> DebAptRepositoryResponse create(deb_apt_repository)
|
97
|
+
> <DebAptRepositoryResponse> create(deb_apt_repository)
|
23
98
|
|
24
99
|
Create an apt repository
|
25
100
|
|
26
101
|
An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
27
102
|
|
28
|
-
###
|
103
|
+
### Examples
|
29
104
|
|
30
105
|
```ruby
|
31
|
-
|
106
|
+
require 'time'
|
32
107
|
require 'pulp_deb_client'
|
33
108
|
# setup authorization
|
34
109
|
PulpDebClient.configure do |config|
|
@@ -38,23 +113,40 @@ PulpDebClient.configure do |config|
|
|
38
113
|
end
|
39
114
|
|
40
115
|
api_instance = PulpDebClient::RepositoriesAptApi.new
|
41
|
-
deb_apt_repository = PulpDebClient::DebAptRepository.new # DebAptRepository |
|
116
|
+
deb_apt_repository = PulpDebClient::DebAptRepository.new({name: 'name_example'}) # DebAptRepository |
|
42
117
|
|
43
118
|
begin
|
44
|
-
#Create an apt repository
|
119
|
+
# Create an apt repository
|
45
120
|
result = api_instance.create(deb_apt_repository)
|
46
121
|
p result
|
47
122
|
rescue PulpDebClient::ApiError => e
|
48
|
-
puts "
|
123
|
+
puts "Error when calling RepositoriesAptApi->create: #{e}"
|
49
124
|
end
|
50
125
|
```
|
51
126
|
|
52
|
-
|
127
|
+
#### Using the create_with_http_info variant
|
128
|
+
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
53
130
|
|
131
|
+
> <Array(<DebAptRepositoryResponse>, Integer, Hash)> create_with_http_info(deb_apt_repository)
|
54
132
|
|
55
|
-
|
56
|
-
|
57
|
-
|
133
|
+
```ruby
|
134
|
+
begin
|
135
|
+
# Create an apt repository
|
136
|
+
data, status_code, headers = api_instance.create_with_http_info(deb_apt_repository)
|
137
|
+
p status_code # => 2xx
|
138
|
+
p headers # => { ... }
|
139
|
+
p data # => <DebAptRepositoryResponse>
|
140
|
+
rescue PulpDebClient::ApiError => e
|
141
|
+
puts "Error when calling RepositoriesAptApi->create_with_http_info: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
| Name | Type | Description | Notes |
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
149
|
+
| **deb_apt_repository** | [**DebAptRepository**](DebAptRepository.md) | | |
|
58
150
|
|
59
151
|
### Return type
|
60
152
|
|
@@ -72,16 +164,16 @@ Name | Type | Description | Notes
|
|
72
164
|
|
73
165
|
## delete
|
74
166
|
|
75
|
-
> AsyncOperationResponse delete(deb_apt_repository_href)
|
167
|
+
> <AsyncOperationResponse> delete(deb_apt_repository_href)
|
76
168
|
|
77
169
|
Delete an apt repository
|
78
170
|
|
79
171
|
Trigger an asynchronous delete task
|
80
172
|
|
81
|
-
###
|
173
|
+
### Examples
|
82
174
|
|
83
175
|
```ruby
|
84
|
-
|
176
|
+
require 'time'
|
85
177
|
require 'pulp_deb_client'
|
86
178
|
# setup authorization
|
87
179
|
PulpDebClient.configure do |config|
|
@@ -94,20 +186,37 @@ api_instance = PulpDebClient::RepositoriesAptApi.new
|
|
94
186
|
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
95
187
|
|
96
188
|
begin
|
97
|
-
#Delete an apt repository
|
189
|
+
# Delete an apt repository
|
98
190
|
result = api_instance.delete(deb_apt_repository_href)
|
99
191
|
p result
|
100
192
|
rescue PulpDebClient::ApiError => e
|
101
|
-
puts "
|
193
|
+
puts "Error when calling RepositoriesAptApi->delete: #{e}"
|
102
194
|
end
|
103
195
|
```
|
104
196
|
|
105
|
-
|
197
|
+
#### Using the delete_with_http_info variant
|
198
|
+
|
199
|
+
This returns an Array which contains the response data, status code and headers.
|
200
|
+
|
201
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(deb_apt_repository_href)
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
begin
|
205
|
+
# Delete an apt repository
|
206
|
+
data, status_code, headers = api_instance.delete_with_http_info(deb_apt_repository_href)
|
207
|
+
p status_code # => 2xx
|
208
|
+
p headers # => { ... }
|
209
|
+
p data # => <AsyncOperationResponse>
|
210
|
+
rescue PulpDebClient::ApiError => e
|
211
|
+
puts "Error when calling RepositoriesAptApi->delete_with_http_info: #{e}"
|
212
|
+
end
|
213
|
+
```
|
106
214
|
|
215
|
+
### Parameters
|
107
216
|
|
108
|
-
Name | Type | Description
|
109
|
-
|
110
|
-
**deb_apt_repository_href** | **String
|
217
|
+
| Name | Type | Description | Notes |
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
219
|
+
| **deb_apt_repository_href** | **String** | | |
|
111
220
|
|
112
221
|
### Return type
|
113
222
|
|
@@ -125,16 +234,16 @@ Name | Type | Description | Notes
|
|
125
234
|
|
126
235
|
## list
|
127
236
|
|
128
|
-
> PaginateddebAptRepositoryResponseList list(opts)
|
237
|
+
> <PaginateddebAptRepositoryResponseList> list(opts)
|
129
238
|
|
130
239
|
List apt repositorys
|
131
240
|
|
132
241
|
An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
133
242
|
|
134
|
-
###
|
243
|
+
### Examples
|
135
244
|
|
136
245
|
```ruby
|
137
|
-
|
246
|
+
require 'time'
|
138
247
|
require 'pulp_deb_client'
|
139
248
|
# setup authorization
|
140
249
|
PulpDebClient.configure do |config|
|
@@ -151,19 +260,19 @@ opts = {
|
|
151
260
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
152
261
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
153
262
|
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
154
|
-
name__in: ['
|
263
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
155
264
|
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
156
265
|
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
157
266
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
158
267
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
159
268
|
offset: 56, # Integer | The initial index from which to return the results.
|
160
|
-
ordering: ['
|
161
|
-
prn__in: ['
|
162
|
-
pulp_href__in: ['
|
163
|
-
pulp_id__in: ['
|
269
|
+
ordering: ['-description'], # 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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
270
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
271
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
272
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
164
273
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
165
274
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
166
|
-
remote: '
|
275
|
+
remote: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Foreign Key referenced by HREF
|
167
276
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
168
277
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
169
278
|
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
@@ -171,56 +280,73 @@ opts = {
|
|
171
280
|
retain_repo_versions__lt: 56, # Integer | Filter results where retain_repo_versions is less than value
|
172
281
|
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
173
282
|
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
174
|
-
retain_repo_versions__range: [
|
283
|
+
retain_repo_versions__range: [37], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
175
284
|
with_content: 'with_content_example', # String | Content Unit referenced by HREF/PRN
|
176
|
-
fields: ['
|
177
|
-
exclude_fields: ['
|
285
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
286
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
178
287
|
}
|
179
288
|
|
180
289
|
begin
|
181
|
-
#List apt repositorys
|
290
|
+
# List apt repositorys
|
182
291
|
result = api_instance.list(opts)
|
183
292
|
p result
|
184
293
|
rescue PulpDebClient::ApiError => e
|
185
|
-
puts "
|
294
|
+
puts "Error when calling RepositoriesAptApi->list: #{e}"
|
186
295
|
end
|
187
296
|
```
|
188
297
|
|
189
|
-
|
298
|
+
#### Using the list_with_http_info variant
|
299
|
+
|
300
|
+
This returns an Array which contains the response data, status code and headers.
|
301
|
+
|
302
|
+
> <Array(<PaginateddebAptRepositoryResponseList>, Integer, Hash)> list_with_http_info(opts)
|
303
|
+
|
304
|
+
```ruby
|
305
|
+
begin
|
306
|
+
# List apt repositorys
|
307
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
308
|
+
p status_code # => 2xx
|
309
|
+
p headers # => { ... }
|
310
|
+
p data # => <PaginateddebAptRepositoryResponseList>
|
311
|
+
rescue PulpDebClient::ApiError => e
|
312
|
+
puts "Error when calling RepositoriesAptApi->list_with_http_info: #{e}"
|
313
|
+
end
|
314
|
+
```
|
190
315
|
|
316
|
+
### Parameters
|
191
317
|
|
192
|
-
Name | Type | Description
|
193
|
-
|
194
|
-
**latest_with_content** | **String
|
195
|
-
**limit** | **Integer
|
196
|
-
**name** | **String
|
197
|
-
**name__contains** | **String
|
198
|
-
**name__icontains** | **String
|
199
|
-
**name__iexact** | **String
|
200
|
-
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
201
|
-
**name__iregex** | **String
|
202
|
-
**name__istartswith** | **String
|
203
|
-
**name__regex** | **String
|
204
|
-
**name__startswith** | **String
|
205
|
-
**offset** | **Integer
|
206
|
-
**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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
207
|
-
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
208
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
209
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
210
|
-
**pulp_label_select** | **String
|
211
|
-
**q** | **String
|
212
|
-
**remote** |
|
213
|
-
**retain_repo_versions** | **Integer
|
214
|
-
**retain_repo_versions__gt** | **Integer
|
215
|
-
**retain_repo_versions__gte** | **Integer
|
216
|
-
**retain_repo_versions__isnull** | **Boolean
|
217
|
-
**retain_repo_versions__lt** | **Integer
|
218
|
-
**retain_repo_versions__lte** | **Integer
|
219
|
-
**retain_repo_versions__ne** | **Integer
|
220
|
-
**retain_repo_versions__range** | [**Array<Integer>**](Integer.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
221
|
-
**with_content** | **String
|
222
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
223
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
318
|
+
| Name | Type | Description | Notes |
|
319
|
+
| ---- | ---- | ----------- | ----- |
|
320
|
+
| **latest_with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
321
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
322
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
323
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
324
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
325
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
326
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
327
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
328
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
329
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
330
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
331
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
332
|
+
| **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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
333
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
334
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
335
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
336
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
337
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
338
|
+
| **remote** | **String** | Foreign Key referenced by HREF | [optional] |
|
339
|
+
| **retain_repo_versions** | **Integer** | Filter results where retain_repo_versions matches value | [optional] |
|
340
|
+
| **retain_repo_versions__gt** | **Integer** | Filter results where retain_repo_versions is greater than value | [optional] |
|
341
|
+
| **retain_repo_versions__gte** | **Integer** | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
|
342
|
+
| **retain_repo_versions__isnull** | **Boolean** | Filter results where retain_repo_versions has a null value | [optional] |
|
343
|
+
| **retain_repo_versions__lt** | **Integer** | Filter results where retain_repo_versions is less than value | [optional] |
|
344
|
+
| **retain_repo_versions__lte** | **Integer** | Filter results where retain_repo_versions is less than or equal to value | [optional] |
|
345
|
+
| **retain_repo_versions__ne** | **Integer** | Filter results where retain_repo_versions not equal to value | [optional] |
|
346
|
+
| **retain_repo_versions__range** | [**Array<Integer>**](Integer.md) | Filter results where retain_repo_versions is between two comma separated values | [optional] |
|
347
|
+
| **with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
348
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
349
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
224
350
|
|
225
351
|
### Return type
|
226
352
|
|
@@ -236,18 +362,94 @@ Name | Type | Description | Notes
|
|
236
362
|
- **Accept**: application/json
|
237
363
|
|
238
364
|
|
365
|
+
## list_roles
|
366
|
+
|
367
|
+
> <ObjectRolesResponse> list_roles(deb_apt_repository_href, opts)
|
368
|
+
|
369
|
+
List roles
|
370
|
+
|
371
|
+
List roles assigned to this object.
|
372
|
+
|
373
|
+
### Examples
|
374
|
+
|
375
|
+
```ruby
|
376
|
+
require 'time'
|
377
|
+
require 'pulp_deb_client'
|
378
|
+
# setup authorization
|
379
|
+
PulpDebClient.configure do |config|
|
380
|
+
# Configure HTTP basic authorization: basicAuth
|
381
|
+
config.username = 'YOUR USERNAME'
|
382
|
+
config.password = 'YOUR PASSWORD'
|
383
|
+
end
|
384
|
+
|
385
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
386
|
+
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
387
|
+
opts = {
|
388
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
389
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
390
|
+
}
|
391
|
+
|
392
|
+
begin
|
393
|
+
# List roles
|
394
|
+
result = api_instance.list_roles(deb_apt_repository_href, opts)
|
395
|
+
p result
|
396
|
+
rescue PulpDebClient::ApiError => e
|
397
|
+
puts "Error when calling RepositoriesAptApi->list_roles: #{e}"
|
398
|
+
end
|
399
|
+
```
|
400
|
+
|
401
|
+
#### Using the list_roles_with_http_info variant
|
402
|
+
|
403
|
+
This returns an Array which contains the response data, status code and headers.
|
404
|
+
|
405
|
+
> <Array(<ObjectRolesResponse>, Integer, Hash)> list_roles_with_http_info(deb_apt_repository_href, opts)
|
406
|
+
|
407
|
+
```ruby
|
408
|
+
begin
|
409
|
+
# List roles
|
410
|
+
data, status_code, headers = api_instance.list_roles_with_http_info(deb_apt_repository_href, opts)
|
411
|
+
p status_code # => 2xx
|
412
|
+
p headers # => { ... }
|
413
|
+
p data # => <ObjectRolesResponse>
|
414
|
+
rescue PulpDebClient::ApiError => e
|
415
|
+
puts "Error when calling RepositoriesAptApi->list_roles_with_http_info: #{e}"
|
416
|
+
end
|
417
|
+
```
|
418
|
+
|
419
|
+
### Parameters
|
420
|
+
|
421
|
+
| Name | Type | Description | Notes |
|
422
|
+
| ---- | ---- | ----------- | ----- |
|
423
|
+
| **deb_apt_repository_href** | **String** | | |
|
424
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
425
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
426
|
+
|
427
|
+
### Return type
|
428
|
+
|
429
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
430
|
+
|
431
|
+
### Authorization
|
432
|
+
|
433
|
+
[basicAuth](../README.md#basicAuth)
|
434
|
+
|
435
|
+
### HTTP request headers
|
436
|
+
|
437
|
+
- **Content-Type**: Not defined
|
438
|
+
- **Accept**: application/json
|
439
|
+
|
440
|
+
|
239
441
|
## modify
|
240
442
|
|
241
|
-
> AsyncOperationResponse modify(deb_apt_repository_href, repository_add_remove_content)
|
443
|
+
> <AsyncOperationResponse> modify(deb_apt_repository_href, repository_add_remove_content)
|
242
444
|
|
243
445
|
Modify Repository Content
|
244
446
|
|
245
447
|
Trigger an asynchronous task to create a new repository version.
|
246
448
|
|
247
|
-
###
|
449
|
+
### Examples
|
248
450
|
|
249
451
|
```ruby
|
250
|
-
|
452
|
+
require 'time'
|
251
453
|
require 'pulp_deb_client'
|
252
454
|
# setup authorization
|
253
455
|
PulpDebClient.configure do |config|
|
@@ -261,21 +463,38 @@ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
|
261
463
|
repository_add_remove_content = PulpDebClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
262
464
|
|
263
465
|
begin
|
264
|
-
#Modify Repository Content
|
466
|
+
# Modify Repository Content
|
265
467
|
result = api_instance.modify(deb_apt_repository_href, repository_add_remove_content)
|
266
468
|
p result
|
267
469
|
rescue PulpDebClient::ApiError => e
|
268
|
-
puts "
|
470
|
+
puts "Error when calling RepositoriesAptApi->modify: #{e}"
|
269
471
|
end
|
270
472
|
```
|
271
473
|
|
272
|
-
|
474
|
+
#### Using the modify_with_http_info variant
|
273
475
|
|
476
|
+
This returns an Array which contains the response data, status code and headers.
|
274
477
|
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
478
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> modify_with_http_info(deb_apt_repository_href, repository_add_remove_content)
|
479
|
+
|
480
|
+
```ruby
|
481
|
+
begin
|
482
|
+
# Modify Repository Content
|
483
|
+
data, status_code, headers = api_instance.modify_with_http_info(deb_apt_repository_href, repository_add_remove_content)
|
484
|
+
p status_code # => 2xx
|
485
|
+
p headers # => { ... }
|
486
|
+
p data # => <AsyncOperationResponse>
|
487
|
+
rescue PulpDebClient::ApiError => e
|
488
|
+
puts "Error when calling RepositoriesAptApi->modify_with_http_info: #{e}"
|
489
|
+
end
|
490
|
+
```
|
491
|
+
|
492
|
+
### Parameters
|
493
|
+
|
494
|
+
| Name | Type | Description | Notes |
|
495
|
+
| ---- | ---- | ----------- | ----- |
|
496
|
+
| **deb_apt_repository_href** | **String** | | |
|
497
|
+
| **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md) | | |
|
279
498
|
|
280
499
|
### Return type
|
281
500
|
|
@@ -291,18 +510,94 @@ Name | Type | Description | Notes
|
|
291
510
|
- **Accept**: application/json
|
292
511
|
|
293
512
|
|
513
|
+
## my_permissions
|
514
|
+
|
515
|
+
> <MyPermissionsResponse> my_permissions(deb_apt_repository_href, opts)
|
516
|
+
|
517
|
+
List user permissions
|
518
|
+
|
519
|
+
List permissions available to the current user on this object.
|
520
|
+
|
521
|
+
### Examples
|
522
|
+
|
523
|
+
```ruby
|
524
|
+
require 'time'
|
525
|
+
require 'pulp_deb_client'
|
526
|
+
# setup authorization
|
527
|
+
PulpDebClient.configure do |config|
|
528
|
+
# Configure HTTP basic authorization: basicAuth
|
529
|
+
config.username = 'YOUR USERNAME'
|
530
|
+
config.password = 'YOUR PASSWORD'
|
531
|
+
end
|
532
|
+
|
533
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
534
|
+
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
535
|
+
opts = {
|
536
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
537
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
538
|
+
}
|
539
|
+
|
540
|
+
begin
|
541
|
+
# List user permissions
|
542
|
+
result = api_instance.my_permissions(deb_apt_repository_href, opts)
|
543
|
+
p result
|
544
|
+
rescue PulpDebClient::ApiError => e
|
545
|
+
puts "Error when calling RepositoriesAptApi->my_permissions: #{e}"
|
546
|
+
end
|
547
|
+
```
|
548
|
+
|
549
|
+
#### Using the my_permissions_with_http_info variant
|
550
|
+
|
551
|
+
This returns an Array which contains the response data, status code and headers.
|
552
|
+
|
553
|
+
> <Array(<MyPermissionsResponse>, Integer, Hash)> my_permissions_with_http_info(deb_apt_repository_href, opts)
|
554
|
+
|
555
|
+
```ruby
|
556
|
+
begin
|
557
|
+
# List user permissions
|
558
|
+
data, status_code, headers = api_instance.my_permissions_with_http_info(deb_apt_repository_href, opts)
|
559
|
+
p status_code # => 2xx
|
560
|
+
p headers # => { ... }
|
561
|
+
p data # => <MyPermissionsResponse>
|
562
|
+
rescue PulpDebClient::ApiError => e
|
563
|
+
puts "Error when calling RepositoriesAptApi->my_permissions_with_http_info: #{e}"
|
564
|
+
end
|
565
|
+
```
|
566
|
+
|
567
|
+
### Parameters
|
568
|
+
|
569
|
+
| Name | Type | Description | Notes |
|
570
|
+
| ---- | ---- | ----------- | ----- |
|
571
|
+
| **deb_apt_repository_href** | **String** | | |
|
572
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
573
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
574
|
+
|
575
|
+
### Return type
|
576
|
+
|
577
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
578
|
+
|
579
|
+
### Authorization
|
580
|
+
|
581
|
+
[basicAuth](../README.md#basicAuth)
|
582
|
+
|
583
|
+
### HTTP request headers
|
584
|
+
|
585
|
+
- **Content-Type**: Not defined
|
586
|
+
- **Accept**: application/json
|
587
|
+
|
588
|
+
|
294
589
|
## partial_update
|
295
590
|
|
296
|
-
> AsyncOperationResponse partial_update(deb_apt_repository_href, patcheddeb_apt_repository)
|
591
|
+
> <AsyncOperationResponse> partial_update(deb_apt_repository_href, patcheddeb_apt_repository)
|
297
592
|
|
298
593
|
Update an apt repository
|
299
594
|
|
300
595
|
Trigger an asynchronous partial update task
|
301
596
|
|
302
|
-
###
|
597
|
+
### Examples
|
303
598
|
|
304
599
|
```ruby
|
305
|
-
|
600
|
+
require 'time'
|
306
601
|
require 'pulp_deb_client'
|
307
602
|
# setup authorization
|
308
603
|
PulpDebClient.configure do |config|
|
@@ -316,21 +611,38 @@ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
|
316
611
|
patcheddeb_apt_repository = PulpDebClient::PatcheddebAptRepository.new # PatcheddebAptRepository |
|
317
612
|
|
318
613
|
begin
|
319
|
-
#Update an apt repository
|
614
|
+
# Update an apt repository
|
320
615
|
result = api_instance.partial_update(deb_apt_repository_href, patcheddeb_apt_repository)
|
321
616
|
p result
|
322
617
|
rescue PulpDebClient::ApiError => e
|
323
|
-
puts "
|
618
|
+
puts "Error when calling RepositoriesAptApi->partial_update: #{e}"
|
324
619
|
end
|
325
620
|
```
|
326
621
|
|
327
|
-
|
622
|
+
#### Using the partial_update_with_http_info variant
|
328
623
|
|
624
|
+
This returns an Array which contains the response data, status code and headers.
|
329
625
|
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
626
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(deb_apt_repository_href, patcheddeb_apt_repository)
|
627
|
+
|
628
|
+
```ruby
|
629
|
+
begin
|
630
|
+
# Update an apt repository
|
631
|
+
data, status_code, headers = api_instance.partial_update_with_http_info(deb_apt_repository_href, patcheddeb_apt_repository)
|
632
|
+
p status_code # => 2xx
|
633
|
+
p headers # => { ... }
|
634
|
+
p data # => <AsyncOperationResponse>
|
635
|
+
rescue PulpDebClient::ApiError => e
|
636
|
+
puts "Error when calling RepositoriesAptApi->partial_update_with_http_info: #{e}"
|
637
|
+
end
|
638
|
+
```
|
639
|
+
|
640
|
+
### Parameters
|
641
|
+
|
642
|
+
| Name | Type | Description | Notes |
|
643
|
+
| ---- | ---- | ----------- | ----- |
|
644
|
+
| **deb_apt_repository_href** | **String** | | |
|
645
|
+
| **patcheddeb_apt_repository** | [**PatcheddebAptRepository**](PatcheddebAptRepository.md) | | |
|
334
646
|
|
335
647
|
### Return type
|
336
648
|
|
@@ -348,16 +660,16 @@ Name | Type | Description | Notes
|
|
348
660
|
|
349
661
|
## read
|
350
662
|
|
351
|
-
> DebAptRepositoryResponse read(deb_apt_repository_href, opts)
|
663
|
+
> <DebAptRepositoryResponse> read(deb_apt_repository_href, opts)
|
352
664
|
|
353
665
|
Inspect an apt repository
|
354
666
|
|
355
667
|
An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
356
668
|
|
357
|
-
###
|
669
|
+
### Examples
|
358
670
|
|
359
671
|
```ruby
|
360
|
-
|
672
|
+
require 'time'
|
361
673
|
require 'pulp_deb_client'
|
362
674
|
# setup authorization
|
363
675
|
PulpDebClient.configure do |config|
|
@@ -369,27 +681,44 @@ end
|
|
369
681
|
api_instance = PulpDebClient::RepositoriesAptApi.new
|
370
682
|
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
371
683
|
opts = {
|
372
|
-
fields: ['
|
373
|
-
exclude_fields: ['
|
684
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
685
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
374
686
|
}
|
375
687
|
|
376
688
|
begin
|
377
|
-
#Inspect an apt repository
|
689
|
+
# Inspect an apt repository
|
378
690
|
result = api_instance.read(deb_apt_repository_href, opts)
|
379
691
|
p result
|
380
692
|
rescue PulpDebClient::ApiError => e
|
381
|
-
puts "
|
693
|
+
puts "Error when calling RepositoriesAptApi->read: #{e}"
|
382
694
|
end
|
383
695
|
```
|
384
696
|
|
385
|
-
|
697
|
+
#### Using the read_with_http_info variant
|
386
698
|
|
699
|
+
This returns an Array which contains the response data, status code and headers.
|
387
700
|
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
701
|
+
> <Array(<DebAptRepositoryResponse>, Integer, Hash)> read_with_http_info(deb_apt_repository_href, opts)
|
702
|
+
|
703
|
+
```ruby
|
704
|
+
begin
|
705
|
+
# Inspect an apt repository
|
706
|
+
data, status_code, headers = api_instance.read_with_http_info(deb_apt_repository_href, opts)
|
707
|
+
p status_code # => 2xx
|
708
|
+
p headers # => { ... }
|
709
|
+
p data # => <DebAptRepositoryResponse>
|
710
|
+
rescue PulpDebClient::ApiError => e
|
711
|
+
puts "Error when calling RepositoriesAptApi->read_with_http_info: #{e}"
|
712
|
+
end
|
713
|
+
```
|
714
|
+
|
715
|
+
### Parameters
|
716
|
+
|
717
|
+
| Name | Type | Description | Notes |
|
718
|
+
| ---- | ---- | ----------- | ----- |
|
719
|
+
| **deb_apt_repository_href** | **String** | | |
|
720
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
721
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
393
722
|
|
394
723
|
### Return type
|
395
724
|
|
@@ -405,18 +734,90 @@ Name | Type | Description | Notes
|
|
405
734
|
- **Accept**: application/json
|
406
735
|
|
407
736
|
|
737
|
+
## remove_role
|
738
|
+
|
739
|
+
> <NestedRoleResponse> remove_role(deb_apt_repository_href, nested_role)
|
740
|
+
|
741
|
+
Remove a role
|
742
|
+
|
743
|
+
Remove a role for this object from users/groups.
|
744
|
+
|
745
|
+
### Examples
|
746
|
+
|
747
|
+
```ruby
|
748
|
+
require 'time'
|
749
|
+
require 'pulp_deb_client'
|
750
|
+
# setup authorization
|
751
|
+
PulpDebClient.configure do |config|
|
752
|
+
# Configure HTTP basic authorization: basicAuth
|
753
|
+
config.username = 'YOUR USERNAME'
|
754
|
+
config.password = 'YOUR PASSWORD'
|
755
|
+
end
|
756
|
+
|
757
|
+
api_instance = PulpDebClient::RepositoriesAptApi.new
|
758
|
+
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
759
|
+
nested_role = PulpDebClient::NestedRole.new({role: 'role_example'}) # NestedRole |
|
760
|
+
|
761
|
+
begin
|
762
|
+
# Remove a role
|
763
|
+
result = api_instance.remove_role(deb_apt_repository_href, nested_role)
|
764
|
+
p result
|
765
|
+
rescue PulpDebClient::ApiError => e
|
766
|
+
puts "Error when calling RepositoriesAptApi->remove_role: #{e}"
|
767
|
+
end
|
768
|
+
```
|
769
|
+
|
770
|
+
#### Using the remove_role_with_http_info variant
|
771
|
+
|
772
|
+
This returns an Array which contains the response data, status code and headers.
|
773
|
+
|
774
|
+
> <Array(<NestedRoleResponse>, Integer, Hash)> remove_role_with_http_info(deb_apt_repository_href, nested_role)
|
775
|
+
|
776
|
+
```ruby
|
777
|
+
begin
|
778
|
+
# Remove a role
|
779
|
+
data, status_code, headers = api_instance.remove_role_with_http_info(deb_apt_repository_href, nested_role)
|
780
|
+
p status_code # => 2xx
|
781
|
+
p headers # => { ... }
|
782
|
+
p data # => <NestedRoleResponse>
|
783
|
+
rescue PulpDebClient::ApiError => e
|
784
|
+
puts "Error when calling RepositoriesAptApi->remove_role_with_http_info: #{e}"
|
785
|
+
end
|
786
|
+
```
|
787
|
+
|
788
|
+
### Parameters
|
789
|
+
|
790
|
+
| Name | Type | Description | Notes |
|
791
|
+
| ---- | ---- | ----------- | ----- |
|
792
|
+
| **deb_apt_repository_href** | **String** | | |
|
793
|
+
| **nested_role** | [**NestedRole**](NestedRole.md) | | |
|
794
|
+
|
795
|
+
### Return type
|
796
|
+
|
797
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
798
|
+
|
799
|
+
### Authorization
|
800
|
+
|
801
|
+
[basicAuth](../README.md#basicAuth)
|
802
|
+
|
803
|
+
### HTTP request headers
|
804
|
+
|
805
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
806
|
+
- **Accept**: application/json
|
807
|
+
|
808
|
+
|
408
809
|
## set_label
|
409
810
|
|
410
|
-
> SetLabelResponse set_label(deb_apt_repository_href, set_label)
|
811
|
+
> <SetLabelResponse> set_label(deb_apt_repository_href, set_label)
|
411
812
|
|
412
813
|
Set a label
|
413
814
|
|
414
815
|
Set a single pulp_label on the object to a specific value or null.
|
415
816
|
|
416
|
-
###
|
817
|
+
### Examples
|
417
818
|
|
418
819
|
```ruby
|
419
|
-
|
820
|
+
require 'time'
|
420
821
|
require 'pulp_deb_client'
|
421
822
|
# setup authorization
|
422
823
|
PulpDebClient.configure do |config|
|
@@ -427,24 +828,41 @@ end
|
|
427
828
|
|
428
829
|
api_instance = PulpDebClient::RepositoriesAptApi.new
|
429
830
|
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
430
|
-
set_label = PulpDebClient::SetLabel.new # SetLabel |
|
831
|
+
set_label = PulpDebClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
431
832
|
|
432
833
|
begin
|
433
|
-
#Set a label
|
834
|
+
# Set a label
|
434
835
|
result = api_instance.set_label(deb_apt_repository_href, set_label)
|
435
836
|
p result
|
436
837
|
rescue PulpDebClient::ApiError => e
|
437
|
-
puts "
|
838
|
+
puts "Error when calling RepositoriesAptApi->set_label: #{e}"
|
438
839
|
end
|
439
840
|
```
|
440
841
|
|
441
|
-
|
842
|
+
#### Using the set_label_with_http_info variant
|
442
843
|
|
844
|
+
This returns an Array which contains the response data, status code and headers.
|
443
845
|
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
846
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(deb_apt_repository_href, set_label)
|
847
|
+
|
848
|
+
```ruby
|
849
|
+
begin
|
850
|
+
# Set a label
|
851
|
+
data, status_code, headers = api_instance.set_label_with_http_info(deb_apt_repository_href, set_label)
|
852
|
+
p status_code # => 2xx
|
853
|
+
p headers # => { ... }
|
854
|
+
p data # => <SetLabelResponse>
|
855
|
+
rescue PulpDebClient::ApiError => e
|
856
|
+
puts "Error when calling RepositoriesAptApi->set_label_with_http_info: #{e}"
|
857
|
+
end
|
858
|
+
```
|
859
|
+
|
860
|
+
### Parameters
|
861
|
+
|
862
|
+
| Name | Type | Description | Notes |
|
863
|
+
| ---- | ---- | ----------- | ----- |
|
864
|
+
| **deb_apt_repository_href** | **String** | | |
|
865
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
448
866
|
|
449
867
|
### Return type
|
450
868
|
|
@@ -462,16 +880,16 @@ Name | Type | Description | Notes
|
|
462
880
|
|
463
881
|
## sync
|
464
882
|
|
465
|
-
> AsyncOperationResponse sync(deb_apt_repository_href, apt_repository_sync_url)
|
883
|
+
> <AsyncOperationResponse> sync(deb_apt_repository_href, apt_repository_sync_url)
|
466
884
|
|
467
885
|
Sync from remote
|
468
886
|
|
469
887
|
Trigger an asynchronous task to sync content
|
470
888
|
|
471
|
-
###
|
889
|
+
### Examples
|
472
890
|
|
473
891
|
```ruby
|
474
|
-
|
892
|
+
require 'time'
|
475
893
|
require 'pulp_deb_client'
|
476
894
|
# setup authorization
|
477
895
|
PulpDebClient.configure do |config|
|
@@ -485,21 +903,38 @@ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
|
485
903
|
apt_repository_sync_url = PulpDebClient::AptRepositorySyncURL.new # AptRepositorySyncURL |
|
486
904
|
|
487
905
|
begin
|
488
|
-
#Sync from remote
|
906
|
+
# Sync from remote
|
489
907
|
result = api_instance.sync(deb_apt_repository_href, apt_repository_sync_url)
|
490
908
|
p result
|
491
909
|
rescue PulpDebClient::ApiError => e
|
492
|
-
puts "
|
910
|
+
puts "Error when calling RepositoriesAptApi->sync: #{e}"
|
493
911
|
end
|
494
912
|
```
|
495
913
|
|
496
|
-
|
914
|
+
#### Using the sync_with_http_info variant
|
915
|
+
|
916
|
+
This returns an Array which contains the response data, status code and headers.
|
917
|
+
|
918
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> sync_with_http_info(deb_apt_repository_href, apt_repository_sync_url)
|
497
919
|
|
920
|
+
```ruby
|
921
|
+
begin
|
922
|
+
# Sync from remote
|
923
|
+
data, status_code, headers = api_instance.sync_with_http_info(deb_apt_repository_href, apt_repository_sync_url)
|
924
|
+
p status_code # => 2xx
|
925
|
+
p headers # => { ... }
|
926
|
+
p data # => <AsyncOperationResponse>
|
927
|
+
rescue PulpDebClient::ApiError => e
|
928
|
+
puts "Error when calling RepositoriesAptApi->sync_with_http_info: #{e}"
|
929
|
+
end
|
930
|
+
```
|
498
931
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
932
|
+
### Parameters
|
933
|
+
|
934
|
+
| Name | Type | Description | Notes |
|
935
|
+
| ---- | ---- | ----------- | ----- |
|
936
|
+
| **deb_apt_repository_href** | **String** | | |
|
937
|
+
| **apt_repository_sync_url** | [**AptRepositorySyncURL**](AptRepositorySyncURL.md) | | |
|
503
938
|
|
504
939
|
### Return type
|
505
940
|
|
@@ -517,16 +952,16 @@ Name | Type | Description | Notes
|
|
517
952
|
|
518
953
|
## unset_label
|
519
954
|
|
520
|
-
> UnsetLabelResponse unset_label(deb_apt_repository_href, unset_label)
|
955
|
+
> <UnsetLabelResponse> unset_label(deb_apt_repository_href, unset_label)
|
521
956
|
|
522
957
|
Unset a label
|
523
958
|
|
524
959
|
Unset a single pulp_label on the object.
|
525
960
|
|
526
|
-
###
|
961
|
+
### Examples
|
527
962
|
|
528
963
|
```ruby
|
529
|
-
|
964
|
+
require 'time'
|
530
965
|
require 'pulp_deb_client'
|
531
966
|
# setup authorization
|
532
967
|
PulpDebClient.configure do |config|
|
@@ -537,24 +972,41 @@ end
|
|
537
972
|
|
538
973
|
api_instance = PulpDebClient::RepositoriesAptApi.new
|
539
974
|
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
540
|
-
unset_label = PulpDebClient::UnsetLabel.new # UnsetLabel |
|
975
|
+
unset_label = PulpDebClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
541
976
|
|
542
977
|
begin
|
543
|
-
#Unset a label
|
978
|
+
# Unset a label
|
544
979
|
result = api_instance.unset_label(deb_apt_repository_href, unset_label)
|
545
980
|
p result
|
546
981
|
rescue PulpDebClient::ApiError => e
|
547
|
-
puts "
|
982
|
+
puts "Error when calling RepositoriesAptApi->unset_label: #{e}"
|
548
983
|
end
|
549
984
|
```
|
550
985
|
|
551
|
-
|
986
|
+
#### Using the unset_label_with_http_info variant
|
987
|
+
|
988
|
+
This returns an Array which contains the response data, status code and headers.
|
552
989
|
|
990
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(deb_apt_repository_href, unset_label)
|
553
991
|
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
992
|
+
```ruby
|
993
|
+
begin
|
994
|
+
# Unset a label
|
995
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(deb_apt_repository_href, unset_label)
|
996
|
+
p status_code # => 2xx
|
997
|
+
p headers # => { ... }
|
998
|
+
p data # => <UnsetLabelResponse>
|
999
|
+
rescue PulpDebClient::ApiError => e
|
1000
|
+
puts "Error when calling RepositoriesAptApi->unset_label_with_http_info: #{e}"
|
1001
|
+
end
|
1002
|
+
```
|
1003
|
+
|
1004
|
+
### Parameters
|
1005
|
+
|
1006
|
+
| Name | Type | Description | Notes |
|
1007
|
+
| ---- | ---- | ----------- | ----- |
|
1008
|
+
| **deb_apt_repository_href** | **String** | | |
|
1009
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
558
1010
|
|
559
1011
|
### Return type
|
560
1012
|
|
@@ -572,16 +1024,16 @@ Name | Type | Description | Notes
|
|
572
1024
|
|
573
1025
|
## update
|
574
1026
|
|
575
|
-
> AsyncOperationResponse update(deb_apt_repository_href, deb_apt_repository)
|
1027
|
+
> <AsyncOperationResponse> update(deb_apt_repository_href, deb_apt_repository)
|
576
1028
|
|
577
1029
|
Update an apt repository
|
578
1030
|
|
579
1031
|
Trigger an asynchronous update task
|
580
1032
|
|
581
|
-
###
|
1033
|
+
### Examples
|
582
1034
|
|
583
1035
|
```ruby
|
584
|
-
|
1036
|
+
require 'time'
|
585
1037
|
require 'pulp_deb_client'
|
586
1038
|
# setup authorization
|
587
1039
|
PulpDebClient.configure do |config|
|
@@ -592,24 +1044,41 @@ end
|
|
592
1044
|
|
593
1045
|
api_instance = PulpDebClient::RepositoriesAptApi.new
|
594
1046
|
deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
|
595
|
-
deb_apt_repository = PulpDebClient::DebAptRepository.new # DebAptRepository |
|
1047
|
+
deb_apt_repository = PulpDebClient::DebAptRepository.new({name: 'name_example'}) # DebAptRepository |
|
596
1048
|
|
597
1049
|
begin
|
598
|
-
#Update an apt repository
|
1050
|
+
# Update an apt repository
|
599
1051
|
result = api_instance.update(deb_apt_repository_href, deb_apt_repository)
|
600
1052
|
p result
|
601
1053
|
rescue PulpDebClient::ApiError => e
|
602
|
-
puts "
|
1054
|
+
puts "Error when calling RepositoriesAptApi->update: #{e}"
|
603
1055
|
end
|
604
1056
|
```
|
605
1057
|
|
606
|
-
|
1058
|
+
#### Using the update_with_http_info variant
|
607
1059
|
|
1060
|
+
This returns an Array which contains the response data, status code and headers.
|
1061
|
+
|
1062
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(deb_apt_repository_href, deb_apt_repository)
|
1063
|
+
|
1064
|
+
```ruby
|
1065
|
+
begin
|
1066
|
+
# Update an apt repository
|
1067
|
+
data, status_code, headers = api_instance.update_with_http_info(deb_apt_repository_href, deb_apt_repository)
|
1068
|
+
p status_code # => 2xx
|
1069
|
+
p headers # => { ... }
|
1070
|
+
p data # => <AsyncOperationResponse>
|
1071
|
+
rescue PulpDebClient::ApiError => e
|
1072
|
+
puts "Error when calling RepositoriesAptApi->update_with_http_info: #{e}"
|
1073
|
+
end
|
1074
|
+
```
|
1075
|
+
|
1076
|
+
### Parameters
|
608
1077
|
|
609
|
-
Name | Type | Description
|
610
|
-
|
611
|
-
**deb_apt_repository_href** | **String
|
612
|
-
**deb_apt_repository** | [**DebAptRepository**](DebAptRepository.md)| |
|
1078
|
+
| Name | Type | Description | Notes |
|
1079
|
+
| ---- | ---- | ----------- | ----- |
|
1080
|
+
| **deb_apt_repository_href** | **String** | | |
|
1081
|
+
| **deb_apt_repository** | [**DebAptRepository**](DebAptRepository.md) | | |
|
613
1082
|
|
614
1083
|
### Return type
|
615
1084
|
|