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
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,80 @@ module PulpDebClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param deb_apt_publication_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(deb_apt_publication_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(deb_apt_publication_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param deb_apt_publication_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(deb_apt_publication_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'deb_apt_publication_href' is set
|
44
|
+
if @api_client.config.client_side_validation && deb_apt_publication_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_publication_href' when calling PublicationsAptApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsAptApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{deb_apt_publication_href}add_role/'.sub('{' + 'deb_apt_publication_href' + '}', CGI.escape(deb_apt_publication_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
if !content_type.nil?
|
64
|
+
header_params['Content-Type'] = content_type
|
65
|
+
end
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = opts[:form_params] || {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
72
|
+
|
73
|
+
# return_type
|
74
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
75
|
+
|
76
|
+
# auth_names
|
77
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
78
|
+
|
79
|
+
new_options = opts.merge(
|
80
|
+
:operation => :"PublicationsAptApi.add_role",
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: PublicationsAptApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
|
22
96
|
# Create an apt publication
|
23
97
|
# Trigger an asynchronous task to publish content
|
24
98
|
# @param deb_apt_publication [DebAptPublication]
|
@@ -51,23 +125,27 @@ module PulpDebClient
|
|
51
125
|
# header parameters
|
52
126
|
header_params = opts[:header_params] || {}
|
53
127
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
129
|
# HTTP header 'Content-Type'
|
56
|
-
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
57
134
|
|
58
135
|
# form parameters
|
59
136
|
form_params = opts[:form_params] || {}
|
60
137
|
|
61
138
|
# http body (model)
|
62
|
-
post_body = opts[:
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(deb_apt_publication)
|
63
140
|
|
64
141
|
# return_type
|
65
|
-
return_type = opts[:
|
142
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
66
143
|
|
67
144
|
# auth_names
|
68
|
-
auth_names = opts[:
|
145
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
69
146
|
|
70
147
|
new_options = opts.merge(
|
148
|
+
:operation => :"PublicationsAptApi.create",
|
71
149
|
:header_params => header_params,
|
72
150
|
:query_params => query_params,
|
73
151
|
:form_params => form_params,
|
@@ -119,15 +197,16 @@ module PulpDebClient
|
|
119
197
|
form_params = opts[:form_params] || {}
|
120
198
|
|
121
199
|
# http body (model)
|
122
|
-
post_body = opts[:
|
200
|
+
post_body = opts[:debug_body]
|
123
201
|
|
124
202
|
# return_type
|
125
|
-
return_type = opts[:
|
203
|
+
return_type = opts[:debug_return_type]
|
126
204
|
|
127
205
|
# auth_names
|
128
|
-
auth_names = opts[:
|
206
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
129
207
|
|
130
208
|
new_options = opts.merge(
|
209
|
+
:operation => :"PublicationsAptApi.delete",
|
131
210
|
:header_params => header_params,
|
132
211
|
:query_params => query_params,
|
133
212
|
:form_params => form_params,
|
@@ -152,12 +231,13 @@ module PulpDebClient
|
|
152
231
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
232
|
# @option opts [Array<String>] :ordering 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) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
154
233
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
155
|
-
# @option opts [
|
156
|
-
# @option opts [
|
157
|
-
# @option opts [
|
158
|
-
# @option opts [
|
159
|
-
# @option opts [
|
160
|
-
# @option opts [
|
234
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
235
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
236
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
237
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
238
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
239
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
240
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
161
241
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
162
242
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
163
243
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
@@ -180,12 +260,13 @@ module PulpDebClient
|
|
180
260
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
181
261
|
# @option opts [Array<String>] :ordering 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) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
182
262
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
183
|
-
# @option opts [
|
184
|
-
# @option opts [
|
185
|
-
# @option opts [
|
186
|
-
# @option opts [
|
187
|
-
# @option opts [
|
188
|
-
# @option opts [
|
263
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
264
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
265
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
266
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
267
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
268
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
269
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
189
270
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
190
271
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
191
272
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
@@ -216,6 +297,7 @@ module PulpDebClient
|
|
216
297
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
217
298
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
218
299
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
300
|
+
query_params[:'pulp_created__isnull'] = opts[:'pulp_created__isnull'] if !opts[:'pulp_created__isnull'].nil?
|
219
301
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
220
302
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
221
303
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
@@ -230,21 +312,22 @@ module PulpDebClient
|
|
230
312
|
# header parameters
|
231
313
|
header_params = opts[:header_params] || {}
|
232
314
|
# HTTP header 'Accept' (if needed)
|
233
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
234
316
|
|
235
317
|
# form parameters
|
236
318
|
form_params = opts[:form_params] || {}
|
237
319
|
|
238
320
|
# http body (model)
|
239
|
-
post_body = opts[:
|
321
|
+
post_body = opts[:debug_body]
|
240
322
|
|
241
323
|
# return_type
|
242
|
-
return_type = opts[:
|
324
|
+
return_type = opts[:debug_return_type] || 'PaginateddebAptPublicationResponseList'
|
243
325
|
|
244
326
|
# auth_names
|
245
|
-
auth_names = opts[:
|
327
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
246
328
|
|
247
329
|
new_options = opts.merge(
|
330
|
+
:operation => :"PublicationsAptApi.list",
|
248
331
|
:header_params => header_params,
|
249
332
|
:query_params => query_params,
|
250
333
|
:form_params => form_params,
|
@@ -260,6 +343,144 @@ module PulpDebClient
|
|
260
343
|
return data, status_code, headers
|
261
344
|
end
|
262
345
|
|
346
|
+
# List roles
|
347
|
+
# List roles assigned to this object.
|
348
|
+
# @param deb_apt_publication_href [String]
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
351
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
352
|
+
# @return [ObjectRolesResponse]
|
353
|
+
def list_roles(deb_apt_publication_href, opts = {})
|
354
|
+
data, _status_code, _headers = list_roles_with_http_info(deb_apt_publication_href, opts)
|
355
|
+
data
|
356
|
+
end
|
357
|
+
|
358
|
+
# List roles
|
359
|
+
# List roles assigned to this object.
|
360
|
+
# @param deb_apt_publication_href [String]
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
363
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
364
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
365
|
+
def list_roles_with_http_info(deb_apt_publication_href, opts = {})
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.list_roles ...'
|
368
|
+
end
|
369
|
+
# verify the required parameter 'deb_apt_publication_href' is set
|
370
|
+
if @api_client.config.client_side_validation && deb_apt_publication_href.nil?
|
371
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_publication_href' when calling PublicationsAptApi.list_roles"
|
372
|
+
end
|
373
|
+
# resource path
|
374
|
+
local_var_path = '{deb_apt_publication_href}list_roles/'.sub('{' + 'deb_apt_publication_href' + '}', CGI.escape(deb_apt_publication_href.to_s).gsub('%2F', '/'))
|
375
|
+
|
376
|
+
# query parameters
|
377
|
+
query_params = opts[:query_params] || {}
|
378
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
379
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
380
|
+
|
381
|
+
# header parameters
|
382
|
+
header_params = opts[:header_params] || {}
|
383
|
+
# HTTP header 'Accept' (if needed)
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
385
|
+
|
386
|
+
# form parameters
|
387
|
+
form_params = opts[:form_params] || {}
|
388
|
+
|
389
|
+
# http body (model)
|
390
|
+
post_body = opts[:debug_body]
|
391
|
+
|
392
|
+
# return_type
|
393
|
+
return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
|
394
|
+
|
395
|
+
# auth_names
|
396
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
397
|
+
|
398
|
+
new_options = opts.merge(
|
399
|
+
:operation => :"PublicationsAptApi.list_roles",
|
400
|
+
:header_params => header_params,
|
401
|
+
:query_params => query_params,
|
402
|
+
:form_params => form_params,
|
403
|
+
:body => post_body,
|
404
|
+
:auth_names => auth_names,
|
405
|
+
:return_type => return_type
|
406
|
+
)
|
407
|
+
|
408
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
409
|
+
if @api_client.config.debugging
|
410
|
+
@api_client.config.logger.debug "API called: PublicationsAptApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
411
|
+
end
|
412
|
+
return data, status_code, headers
|
413
|
+
end
|
414
|
+
|
415
|
+
# List user permissions
|
416
|
+
# List permissions available to the current user on this object.
|
417
|
+
# @param deb_apt_publication_href [String]
|
418
|
+
# @param [Hash] opts the optional parameters
|
419
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
420
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
421
|
+
# @return [MyPermissionsResponse]
|
422
|
+
def my_permissions(deb_apt_publication_href, opts = {})
|
423
|
+
data, _status_code, _headers = my_permissions_with_http_info(deb_apt_publication_href, opts)
|
424
|
+
data
|
425
|
+
end
|
426
|
+
|
427
|
+
# List user permissions
|
428
|
+
# List permissions available to the current user on this object.
|
429
|
+
# @param deb_apt_publication_href [String]
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
432
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
433
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
434
|
+
def my_permissions_with_http_info(deb_apt_publication_href, opts = {})
|
435
|
+
if @api_client.config.debugging
|
436
|
+
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.my_permissions ...'
|
437
|
+
end
|
438
|
+
# verify the required parameter 'deb_apt_publication_href' is set
|
439
|
+
if @api_client.config.client_side_validation && deb_apt_publication_href.nil?
|
440
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_publication_href' when calling PublicationsAptApi.my_permissions"
|
441
|
+
end
|
442
|
+
# resource path
|
443
|
+
local_var_path = '{deb_apt_publication_href}my_permissions/'.sub('{' + 'deb_apt_publication_href' + '}', CGI.escape(deb_apt_publication_href.to_s).gsub('%2F', '/'))
|
444
|
+
|
445
|
+
# query parameters
|
446
|
+
query_params = opts[:query_params] || {}
|
447
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
448
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
449
|
+
|
450
|
+
# header parameters
|
451
|
+
header_params = opts[:header_params] || {}
|
452
|
+
# HTTP header 'Accept' (if needed)
|
453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
454
|
+
|
455
|
+
# form parameters
|
456
|
+
form_params = opts[:form_params] || {}
|
457
|
+
|
458
|
+
# http body (model)
|
459
|
+
post_body = opts[:debug_body]
|
460
|
+
|
461
|
+
# return_type
|
462
|
+
return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
|
463
|
+
|
464
|
+
# auth_names
|
465
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
466
|
+
|
467
|
+
new_options = opts.merge(
|
468
|
+
:operation => :"PublicationsAptApi.my_permissions",
|
469
|
+
:header_params => header_params,
|
470
|
+
:query_params => query_params,
|
471
|
+
:form_params => form_params,
|
472
|
+
:body => post_body,
|
473
|
+
:auth_names => auth_names,
|
474
|
+
:return_type => return_type
|
475
|
+
)
|
476
|
+
|
477
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
478
|
+
if @api_client.config.debugging
|
479
|
+
@api_client.config.logger.debug "API called: PublicationsAptApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
480
|
+
end
|
481
|
+
return data, status_code, headers
|
482
|
+
end
|
483
|
+
|
263
484
|
# Inspect an apt publication
|
264
485
|
# An AptPublication is the ready to serve Pulp-internal representation of an AptRepositoryVersion. When creating an APT publication, users must use simple or structured mode (or both). If the publication should include '.deb' packages that were manually uploaded to the relevant AptRepository, users must use 'simple=true'. Conversely, 'structured=true' is only useful for publishing content obtained via synchronization. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
265
486
|
# @param deb_apt_publication_href [String]
|
@@ -298,21 +519,22 @@ module PulpDebClient
|
|
298
519
|
# header parameters
|
299
520
|
header_params = opts[:header_params] || {}
|
300
521
|
# HTTP header 'Accept' (if needed)
|
301
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
522
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
302
523
|
|
303
524
|
# form parameters
|
304
525
|
form_params = opts[:form_params] || {}
|
305
526
|
|
306
527
|
# http body (model)
|
307
|
-
post_body = opts[:
|
528
|
+
post_body = opts[:debug_body]
|
308
529
|
|
309
530
|
# return_type
|
310
|
-
return_type = opts[:
|
531
|
+
return_type = opts[:debug_return_type] || 'DebAptPublicationResponse'
|
311
532
|
|
312
533
|
# auth_names
|
313
|
-
auth_names = opts[:
|
534
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
314
535
|
|
315
536
|
new_options = opts.merge(
|
537
|
+
:operation => :"PublicationsAptApi.read",
|
316
538
|
:header_params => header_params,
|
317
539
|
:query_params => query_params,
|
318
540
|
:form_params => form_params,
|
@@ -327,5 +549,79 @@ module PulpDebClient
|
|
327
549
|
end
|
328
550
|
return data, status_code, headers
|
329
551
|
end
|
552
|
+
|
553
|
+
# Remove a role
|
554
|
+
# Remove a role for this object from users/groups.
|
555
|
+
# @param deb_apt_publication_href [String]
|
556
|
+
# @param nested_role [NestedRole]
|
557
|
+
# @param [Hash] opts the optional parameters
|
558
|
+
# @return [NestedRoleResponse]
|
559
|
+
def remove_role(deb_apt_publication_href, nested_role, opts = {})
|
560
|
+
data, _status_code, _headers = remove_role_with_http_info(deb_apt_publication_href, nested_role, opts)
|
561
|
+
data
|
562
|
+
end
|
563
|
+
|
564
|
+
# Remove a role
|
565
|
+
# Remove a role for this object from users/groups.
|
566
|
+
# @param deb_apt_publication_href [String]
|
567
|
+
# @param nested_role [NestedRole]
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
570
|
+
def remove_role_with_http_info(deb_apt_publication_href, nested_role, opts = {})
|
571
|
+
if @api_client.config.debugging
|
572
|
+
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.remove_role ...'
|
573
|
+
end
|
574
|
+
# verify the required parameter 'deb_apt_publication_href' is set
|
575
|
+
if @api_client.config.client_side_validation && deb_apt_publication_href.nil?
|
576
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_publication_href' when calling PublicationsAptApi.remove_role"
|
577
|
+
end
|
578
|
+
# verify the required parameter 'nested_role' is set
|
579
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
580
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsAptApi.remove_role"
|
581
|
+
end
|
582
|
+
# resource path
|
583
|
+
local_var_path = '{deb_apt_publication_href}remove_role/'.sub('{' + 'deb_apt_publication_href' + '}', CGI.escape(deb_apt_publication_href.to_s).gsub('%2F', '/'))
|
584
|
+
|
585
|
+
# query parameters
|
586
|
+
query_params = opts[:query_params] || {}
|
587
|
+
|
588
|
+
# header parameters
|
589
|
+
header_params = opts[:header_params] || {}
|
590
|
+
# HTTP header 'Accept' (if needed)
|
591
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
592
|
+
# HTTP header 'Content-Type'
|
593
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
594
|
+
if !content_type.nil?
|
595
|
+
header_params['Content-Type'] = content_type
|
596
|
+
end
|
597
|
+
|
598
|
+
# form parameters
|
599
|
+
form_params = opts[:form_params] || {}
|
600
|
+
|
601
|
+
# http body (model)
|
602
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
|
603
|
+
|
604
|
+
# return_type
|
605
|
+
return_type = opts[:debug_return_type] || 'NestedRoleResponse'
|
606
|
+
|
607
|
+
# auth_names
|
608
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
609
|
+
|
610
|
+
new_options = opts.merge(
|
611
|
+
:operation => :"PublicationsAptApi.remove_role",
|
612
|
+
:header_params => header_params,
|
613
|
+
:query_params => query_params,
|
614
|
+
:form_params => form_params,
|
615
|
+
:body => post_body,
|
616
|
+
:auth_names => auth_names,
|
617
|
+
:return_type => return_type
|
618
|
+
)
|
619
|
+
|
620
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
621
|
+
if @api_client.config.debugging
|
622
|
+
@api_client.config.logger.debug "API called: PublicationsAptApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
623
|
+
end
|
624
|
+
return data, status_code, headers
|
625
|
+
end
|
330
626
|
end
|
331
627
|
end
|