pulp_deb_client 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +114 -64
- data/docs/ContentInstallerFileIndicesApi.md +111 -61
- data/docs/ContentInstallerPackagesApi.md +130 -80
- data/docs/ContentPackageIndicesApi.md +111 -61
- data/docs/ContentPackageReleaseComponentsApi.md +111 -61
- data/docs/ContentPackagesApi.md +144 -94
- data/docs/ContentReleaseArchitecturesApi.md +109 -59
- data/docs/ContentReleaseComponentsApi.md +110 -60
- data/docs/ContentReleaseFilesApi.md +111 -61
- data/docs/ContentReleasesApi.md +114 -64
- data/docs/ContentSourceIndicesApi.md +110 -60
- data/docs/ContentSourcePackagesApi.md +137 -87
- data/docs/ContentSourceReleaseComponentsApi.md +111 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +30 -29
- data/docs/DebInstallerFileIndex.md +16 -15
- data/docs/DebInstallerFileIndexResponse.md +22 -21
- data/docs/DebInstallerPackageResponse.md +88 -87
- data/docs/DebPackageIndex.md +16 -15
- data/docs/DebPackageIndexResponse.md +22 -21
- data/docs/DebPackageReleaseComponent.md +12 -11
- data/docs/DebPackageReleaseComponentResponse.md +18 -17
- data/docs/DebPackageResponse.md +92 -91
- data/docs/DebRelease.md +26 -25
- data/docs/DebReleaseArchitecture.md +12 -11
- data/docs/DebReleaseArchitectureResponse.md +18 -17
- data/docs/DebReleaseComponent.md +12 -11
- data/docs/DebReleaseComponentResponse.md +20 -19
- data/docs/DebReleaseFile.md +18 -17
- data/docs/DebReleaseFileResponse.md +24 -23
- data/docs/DebReleaseResponse.md +32 -31
- data/docs/DebSourceIndex.md +16 -15
- data/docs/DebSourceIndexResponse.md +22 -21
- data/docs/DebSourcePackage.md +12 -11
- data/docs/DebSourcePackageReleaseComponent.md +12 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
- data/docs/DebSourcePackageResponse.md +74 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +385 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginateddebAptDistributionResponseList.md +14 -13
- data/docs/PaginateddebAptPublicationResponseList.md +14 -13
- data/docs/PaginateddebAptRemoteResponseList.md +14 -13
- data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
- data/docs/PaginateddebGenericContentResponseList.md +14 -13
- data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
- data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
- data/docs/PaginateddebPackageIndexResponseList.md +14 -13
- data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebPackageResponseList.md +14 -13
- data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
- data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebReleaseFileResponseList.md +14 -13
- data/docs/PaginateddebReleaseResponseList.md +14 -13
- data/docs/PaginateddebSourceIndexResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageResponseList.md +14 -13
- data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
- data/docs/PatcheddebAptDistribution.md +20 -19
- data/docs/PatcheddebAptRemote.md +64 -63
- data/docs/PatcheddebAptRepository.md +22 -21
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsAptApi.md +267 -130
- data/docs/PublicationsVerbatimApi.md +267 -130
- data/docs/RemotesAptApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +444 -207
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +89 -56
- data/lib/pulp_deb_client/api/publications_apt_api.rb +67 -47
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +67 -47
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
- data/lib/pulp_deb_client/api_client.rb +137 -102
- data/lib/pulp_deb_client/api_error.rb +2 -1
- data/lib/pulp_deb_client/configuration.rb +162 -21
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
- data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_deb_client/models/copy.rb +34 -28
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_release.rb +36 -22
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +32 -22
- data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +9 -6
- data/spec/api/content_generic_contents_api_spec.rb +4 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
- data/spec/api/content_installer_packages_api_spec.rb +4 -4
- data/spec/api/content_package_indices_api_spec.rb +4 -4
- data/spec/api/content_package_release_components_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_release_architectures_api_spec.rb +4 -4
- data/spec/api/content_release_components_api_spec.rb +4 -4
- data/spec/api/content_release_files_api_spec.rb +4 -4
- data/spec/api/content_releases_api_spec.rb +4 -4
- data/spec/api/content_source_indices_api_spec.rb +4 -4
- data/spec/api/content_source_packages_api_spec.rb +4 -4
- data/spec/api/content_source_release_components_api_spec.rb +4 -4
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +13 -13
- data/spec/api/publications_apt_api_spec.rb +16 -15
- data/spec/api/publications_verbatim_api_spec.rb +16 -15
- data/spec/api/remotes_apt_api_spec.rb +20 -19
- data/spec/api/repositories_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +18 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
- data/spec/models/deb_installer_file_index_spec.rb +11 -16
- data/spec/models/deb_installer_package_response_spec.rb +47 -52
- data/spec/models/deb_package_index_response_spec.rb +14 -19
- data/spec/models/deb_package_index_spec.rb +11 -16
- data/spec/models/deb_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_package_release_component_spec.rb +9 -14
- data/spec/models/deb_package_response_spec.rb +49 -54
- data/spec/models/deb_release_architecture_response_spec.rb +12 -17
- data/spec/models/deb_release_architecture_spec.rb +9 -14
- data/spec/models/deb_release_component_response_spec.rb +13 -18
- data/spec/models/deb_release_component_spec.rb +9 -14
- data/spec/models/deb_release_file_response_spec.rb +15 -20
- data/spec/models/deb_release_file_spec.rb +12 -17
- data/spec/models/deb_release_response_spec.rb +19 -24
- data/spec/models/deb_release_spec.rb +16 -21
- data/spec/models/deb_source_index_response_spec.rb +14 -19
- data/spec/models/deb_source_index_spec.rb +11 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_source_package_release_component_spec.rb +9 -14
- data/spec/models/deb_source_package_response_spec.rb +40 -45
- data/spec/models/deb_source_package_spec.rb +9 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
- data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
- data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +115 -103
- data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
- data/docs/DebGenericContent.md +0 -27
- data/docs/DebInstallerPackage.md +0 -27
- data/docs/DebPackage.md +0 -31
- data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
- data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
- data/lib/pulp_deb_client/models/deb_package.rb +0 -338
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/deb_generic_content_spec.rb +0 -71
- data/spec/models/deb_installer_package_spec.rb +0 -71
- data/spec/models/deb_package_spec.rb +0 -83
@@ -1,297 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpDebClient
|
16
|
-
# A serializer for GenericContent.
|
17
|
-
class DebGenericContent
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
# Path where the artifact is located relative to distributions base_path
|
25
|
-
attr_accessor :relative_path
|
26
|
-
|
27
|
-
# An uploaded file that may be turned into the content unit.
|
28
|
-
attr_accessor :file
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the content unit.
|
31
|
-
attr_accessor :upload
|
32
|
-
|
33
|
-
# A url that Pulp can download and turn into the content unit.
|
34
|
-
attr_accessor :file_url
|
35
|
-
|
36
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
-
def self.attribute_map
|
38
|
-
{
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'artifact' => :'artifact',
|
41
|
-
:'relative_path' => :'relative_path',
|
42
|
-
:'file' => :'file',
|
43
|
-
:'upload' => :'upload',
|
44
|
-
:'file_url' => :'file_url'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.openapi_types
|
50
|
-
{
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'artifact' => :'String',
|
53
|
-
:'relative_path' => :'String',
|
54
|
-
:'file' => :'File',
|
55
|
-
:'upload' => :'String',
|
56
|
-
:'file_url' => :'String'
|
57
|
-
}
|
58
|
-
end
|
59
|
-
|
60
|
-
# List of attributes with nullable: true
|
61
|
-
def self.openapi_nullable
|
62
|
-
Set.new([
|
63
|
-
])
|
64
|
-
end
|
65
|
-
|
66
|
-
# Initializes the object
|
67
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
-
def initialize(attributes = {})
|
69
|
-
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebGenericContent` initialize method"
|
71
|
-
end
|
72
|
-
|
73
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebGenericContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
-
end
|
78
|
-
h[k.to_sym] = v
|
79
|
-
}
|
80
|
-
|
81
|
-
if attributes.key?(:'repository')
|
82
|
-
self.repository = attributes[:'repository']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'artifact')
|
86
|
-
self.artifact = attributes[:'artifact']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.key?(:'relative_path')
|
90
|
-
self.relative_path = attributes[:'relative_path']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'file')
|
94
|
-
self.file = attributes[:'file']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'upload')
|
98
|
-
self.upload = attributes[:'upload']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'file_url')
|
102
|
-
self.file_url = attributes[:'file_url']
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
107
|
-
# @return Array for valid properties with the reasons
|
108
|
-
def list_invalid_properties
|
109
|
-
invalid_properties = Array.new
|
110
|
-
if @relative_path.nil?
|
111
|
-
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
|
-
if @relative_path.to_s.length < 1
|
115
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
116
|
-
end
|
117
|
-
|
118
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
119
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
120
|
-
end
|
121
|
-
|
122
|
-
invalid_properties
|
123
|
-
end
|
124
|
-
|
125
|
-
# Check to see if the all the properties in the model are valid
|
126
|
-
# @return true if the model is valid
|
127
|
-
def valid?
|
128
|
-
return false if @relative_path.nil?
|
129
|
-
return false if @relative_path.to_s.length < 1
|
130
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
131
|
-
true
|
132
|
-
end
|
133
|
-
|
134
|
-
# Custom attribute writer method with validation
|
135
|
-
# @param [Object] relative_path Value to be assigned
|
136
|
-
def relative_path=(relative_path)
|
137
|
-
if relative_path.nil?
|
138
|
-
fail ArgumentError, 'relative_path cannot be nil'
|
139
|
-
end
|
140
|
-
|
141
|
-
if relative_path.to_s.length < 1
|
142
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
143
|
-
end
|
144
|
-
|
145
|
-
@relative_path = relative_path
|
146
|
-
end
|
147
|
-
|
148
|
-
# Custom attribute writer method with validation
|
149
|
-
# @param [Object] file_url Value to be assigned
|
150
|
-
def file_url=(file_url)
|
151
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
152
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
153
|
-
end
|
154
|
-
|
155
|
-
@file_url = file_url
|
156
|
-
end
|
157
|
-
|
158
|
-
# Checks equality by comparing each attribute.
|
159
|
-
# @param [Object] Object to be compared
|
160
|
-
def ==(o)
|
161
|
-
return true if self.equal?(o)
|
162
|
-
self.class == o.class &&
|
163
|
-
repository == o.repository &&
|
164
|
-
artifact == o.artifact &&
|
165
|
-
relative_path == o.relative_path &&
|
166
|
-
file == o.file &&
|
167
|
-
upload == o.upload &&
|
168
|
-
file_url == o.file_url
|
169
|
-
end
|
170
|
-
|
171
|
-
# @see the `==` method
|
172
|
-
# @param [Object] Object to be compared
|
173
|
-
def eql?(o)
|
174
|
-
self == o
|
175
|
-
end
|
176
|
-
|
177
|
-
# Calculates hash code according to all attributes.
|
178
|
-
# @return [Integer] Hash code
|
179
|
-
def hash
|
180
|
-
[repository, artifact, relative_path, file, upload, file_url].hash
|
181
|
-
end
|
182
|
-
|
183
|
-
# Builds the object from hash
|
184
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
185
|
-
# @return [Object] Returns the model itself
|
186
|
-
def self.build_from_hash(attributes)
|
187
|
-
new.build_from_hash(attributes)
|
188
|
-
end
|
189
|
-
|
190
|
-
# Builds the object from hash
|
191
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
-
# @return [Object] Returns the model itself
|
193
|
-
def build_from_hash(attributes)
|
194
|
-
return nil unless attributes.is_a?(Hash)
|
195
|
-
self.class.openapi_types.each_pair do |key, type|
|
196
|
-
if type =~ /\AArray<(.*)>/i
|
197
|
-
# check to ensure the input is an array given that the attribute
|
198
|
-
# is documented as an array but the input is not
|
199
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
200
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
201
|
-
end
|
202
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
203
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
204
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
205
|
-
end
|
206
|
-
|
207
|
-
self
|
208
|
-
end
|
209
|
-
|
210
|
-
# Deserializes the data based on type
|
211
|
-
# @param string type Data type
|
212
|
-
# @param string value Value to be deserialized
|
213
|
-
# @return [Object] Deserialized data
|
214
|
-
def _deserialize(type, value)
|
215
|
-
case type.to_sym
|
216
|
-
when :DateTime
|
217
|
-
DateTime.parse(value)
|
218
|
-
when :Date
|
219
|
-
Date.parse(value)
|
220
|
-
when :String
|
221
|
-
value.to_s
|
222
|
-
when :Integer
|
223
|
-
value.to_i
|
224
|
-
when :Float
|
225
|
-
value.to_f
|
226
|
-
when :Boolean
|
227
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
228
|
-
true
|
229
|
-
else
|
230
|
-
false
|
231
|
-
end
|
232
|
-
when :Object
|
233
|
-
# generic object (usually a Hash), return directly
|
234
|
-
value
|
235
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
236
|
-
inner_type = Regexp.last_match[:inner_type]
|
237
|
-
value.map { |v| _deserialize(inner_type, v) }
|
238
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
239
|
-
k_type = Regexp.last_match[:k_type]
|
240
|
-
v_type = Regexp.last_match[:v_type]
|
241
|
-
{}.tap do |hash|
|
242
|
-
value.each do |k, v|
|
243
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
244
|
-
end
|
245
|
-
end
|
246
|
-
else # model
|
247
|
-
PulpDebClient.const_get(type).build_from_hash(value)
|
248
|
-
end
|
249
|
-
end
|
250
|
-
|
251
|
-
# Returns the string representation of the object
|
252
|
-
# @return [String] String presentation of the object
|
253
|
-
def to_s
|
254
|
-
to_hash.to_s
|
255
|
-
end
|
256
|
-
|
257
|
-
# to_body is an alias to to_hash (backward compatibility)
|
258
|
-
# @return [Hash] Returns the object in the form of hash
|
259
|
-
def to_body
|
260
|
-
to_hash
|
261
|
-
end
|
262
|
-
|
263
|
-
# Returns the object in the form of hash
|
264
|
-
# @return [Hash] Returns the object in the form of hash
|
265
|
-
def to_hash
|
266
|
-
hash = {}
|
267
|
-
self.class.attribute_map.each_pair do |attr, param|
|
268
|
-
value = self.send(attr)
|
269
|
-
if value.nil?
|
270
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
271
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
272
|
-
end
|
273
|
-
|
274
|
-
hash[param] = _to_hash(value)
|
275
|
-
end
|
276
|
-
hash
|
277
|
-
end
|
278
|
-
|
279
|
-
# Outputs non-array value in the form of hash
|
280
|
-
# For object, use to_hash. Otherwise, just return the value
|
281
|
-
# @param [Object] value Any valid value
|
282
|
-
# @return [Hash] Returns the value in the form of hash
|
283
|
-
def _to_hash(value)
|
284
|
-
if value.is_a?(Array)
|
285
|
-
value.compact.map { |v| _to_hash(v) }
|
286
|
-
elsif value.is_a?(Hash)
|
287
|
-
{}.tap do |hash|
|
288
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
289
|
-
end
|
290
|
-
elsif value.respond_to? :to_hash
|
291
|
-
value.to_hash
|
292
|
-
else
|
293
|
-
value
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
end
|
@@ -1,288 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpDebClient
|
16
|
-
# A Serializer for InstallerPackage.
|
17
|
-
class DebInstallerPackage
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
# Path where the artifact is located relative to distributions base_path
|
25
|
-
attr_accessor :relative_path
|
26
|
-
|
27
|
-
# An uploaded file that may be turned into the content unit.
|
28
|
-
attr_accessor :file
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the content unit.
|
31
|
-
attr_accessor :upload
|
32
|
-
|
33
|
-
# A url that Pulp can download and turn into the content unit.
|
34
|
-
attr_accessor :file_url
|
35
|
-
|
36
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
-
def self.attribute_map
|
38
|
-
{
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'artifact' => :'artifact',
|
41
|
-
:'relative_path' => :'relative_path',
|
42
|
-
:'file' => :'file',
|
43
|
-
:'upload' => :'upload',
|
44
|
-
:'file_url' => :'file_url'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.openapi_types
|
50
|
-
{
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'artifact' => :'String',
|
53
|
-
:'relative_path' => :'String',
|
54
|
-
:'file' => :'File',
|
55
|
-
:'upload' => :'String',
|
56
|
-
:'file_url' => :'String'
|
57
|
-
}
|
58
|
-
end
|
59
|
-
|
60
|
-
# List of attributes with nullable: true
|
61
|
-
def self.openapi_nullable
|
62
|
-
Set.new([
|
63
|
-
])
|
64
|
-
end
|
65
|
-
|
66
|
-
# Initializes the object
|
67
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
-
def initialize(attributes = {})
|
69
|
-
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebInstallerPackage` initialize method"
|
71
|
-
end
|
72
|
-
|
73
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebInstallerPackage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
-
end
|
78
|
-
h[k.to_sym] = v
|
79
|
-
}
|
80
|
-
|
81
|
-
if attributes.key?(:'repository')
|
82
|
-
self.repository = attributes[:'repository']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'artifact')
|
86
|
-
self.artifact = attributes[:'artifact']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.key?(:'relative_path')
|
90
|
-
self.relative_path = attributes[:'relative_path']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'file')
|
94
|
-
self.file = attributes[:'file']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'upload')
|
98
|
-
self.upload = attributes[:'upload']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'file_url')
|
102
|
-
self.file_url = attributes[:'file_url']
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
107
|
-
# @return Array for valid properties with the reasons
|
108
|
-
def list_invalid_properties
|
109
|
-
invalid_properties = Array.new
|
110
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
111
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
112
|
-
end
|
113
|
-
|
114
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
115
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
116
|
-
end
|
117
|
-
|
118
|
-
invalid_properties
|
119
|
-
end
|
120
|
-
|
121
|
-
# Check to see if the all the properties in the model are valid
|
122
|
-
# @return true if the model is valid
|
123
|
-
def valid?
|
124
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
125
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
126
|
-
true
|
127
|
-
end
|
128
|
-
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] relative_path Value to be assigned
|
131
|
-
def relative_path=(relative_path)
|
132
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@relative_path = relative_path
|
137
|
-
end
|
138
|
-
|
139
|
-
# Custom attribute writer method with validation
|
140
|
-
# @param [Object] file_url Value to be assigned
|
141
|
-
def file_url=(file_url)
|
142
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
143
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
144
|
-
end
|
145
|
-
|
146
|
-
@file_url = file_url
|
147
|
-
end
|
148
|
-
|
149
|
-
# Checks equality by comparing each attribute.
|
150
|
-
# @param [Object] Object to be compared
|
151
|
-
def ==(o)
|
152
|
-
return true if self.equal?(o)
|
153
|
-
self.class == o.class &&
|
154
|
-
repository == o.repository &&
|
155
|
-
artifact == o.artifact &&
|
156
|
-
relative_path == o.relative_path &&
|
157
|
-
file == o.file &&
|
158
|
-
upload == o.upload &&
|
159
|
-
file_url == o.file_url
|
160
|
-
end
|
161
|
-
|
162
|
-
# @see the `==` method
|
163
|
-
# @param [Object] Object to be compared
|
164
|
-
def eql?(o)
|
165
|
-
self == o
|
166
|
-
end
|
167
|
-
|
168
|
-
# Calculates hash code according to all attributes.
|
169
|
-
# @return [Integer] Hash code
|
170
|
-
def hash
|
171
|
-
[repository, artifact, relative_path, file, upload, file_url].hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Builds the object from hash
|
175
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
176
|
-
# @return [Object] Returns the model itself
|
177
|
-
def self.build_from_hash(attributes)
|
178
|
-
new.build_from_hash(attributes)
|
179
|
-
end
|
180
|
-
|
181
|
-
# Builds the object from hash
|
182
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
183
|
-
# @return [Object] Returns the model itself
|
184
|
-
def build_from_hash(attributes)
|
185
|
-
return nil unless attributes.is_a?(Hash)
|
186
|
-
self.class.openapi_types.each_pair do |key, type|
|
187
|
-
if type =~ /\AArray<(.*)>/i
|
188
|
-
# check to ensure the input is an array given that the attribute
|
189
|
-
# is documented as an array but the input is not
|
190
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
191
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
192
|
-
end
|
193
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
194
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
195
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
196
|
-
end
|
197
|
-
|
198
|
-
self
|
199
|
-
end
|
200
|
-
|
201
|
-
# Deserializes the data based on type
|
202
|
-
# @param string type Data type
|
203
|
-
# @param string value Value to be deserialized
|
204
|
-
# @return [Object] Deserialized data
|
205
|
-
def _deserialize(type, value)
|
206
|
-
case type.to_sym
|
207
|
-
when :DateTime
|
208
|
-
DateTime.parse(value)
|
209
|
-
when :Date
|
210
|
-
Date.parse(value)
|
211
|
-
when :String
|
212
|
-
value.to_s
|
213
|
-
when :Integer
|
214
|
-
value.to_i
|
215
|
-
when :Float
|
216
|
-
value.to_f
|
217
|
-
when :Boolean
|
218
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
219
|
-
true
|
220
|
-
else
|
221
|
-
false
|
222
|
-
end
|
223
|
-
when :Object
|
224
|
-
# generic object (usually a Hash), return directly
|
225
|
-
value
|
226
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
227
|
-
inner_type = Regexp.last_match[:inner_type]
|
228
|
-
value.map { |v| _deserialize(inner_type, v) }
|
229
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
230
|
-
k_type = Regexp.last_match[:k_type]
|
231
|
-
v_type = Regexp.last_match[:v_type]
|
232
|
-
{}.tap do |hash|
|
233
|
-
value.each do |k, v|
|
234
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
235
|
-
end
|
236
|
-
end
|
237
|
-
else # model
|
238
|
-
PulpDebClient.const_get(type).build_from_hash(value)
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
# Returns the string representation of the object
|
243
|
-
# @return [String] String presentation of the object
|
244
|
-
def to_s
|
245
|
-
to_hash.to_s
|
246
|
-
end
|
247
|
-
|
248
|
-
# to_body is an alias to to_hash (backward compatibility)
|
249
|
-
# @return [Hash] Returns the object in the form of hash
|
250
|
-
def to_body
|
251
|
-
to_hash
|
252
|
-
end
|
253
|
-
|
254
|
-
# Returns the object in the form of hash
|
255
|
-
# @return [Hash] Returns the object in the form of hash
|
256
|
-
def to_hash
|
257
|
-
hash = {}
|
258
|
-
self.class.attribute_map.each_pair do |attr, param|
|
259
|
-
value = self.send(attr)
|
260
|
-
if value.nil?
|
261
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
262
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
263
|
-
end
|
264
|
-
|
265
|
-
hash[param] = _to_hash(value)
|
266
|
-
end
|
267
|
-
hash
|
268
|
-
end
|
269
|
-
|
270
|
-
# Outputs non-array value in the form of hash
|
271
|
-
# For object, use to_hash. Otherwise, just return the value
|
272
|
-
# @param [Object] value Any valid value
|
273
|
-
# @return [Hash] Returns the value in the form of hash
|
274
|
-
def _to_hash(value)
|
275
|
-
if value.is_a?(Array)
|
276
|
-
value.compact.map { |v| _to_hash(v) }
|
277
|
-
elsif value.is_a?(Hash)
|
278
|
-
{}.tap do |hash|
|
279
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
280
|
-
end
|
281
|
-
elsif value.respond_to? :to_hash
|
282
|
-
value.to_hash
|
283
|
-
else
|
284
|
-
value
|
285
|
-
end
|
286
|
-
end
|
287
|
-
end
|
288
|
-
end
|