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
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpDebClient
|
16
17
|
# A serializer for GenericContent.
|
@@ -68,13 +69,18 @@ module PulpDebClient
|
|
68
69
|
}
|
69
70
|
end
|
70
71
|
|
72
|
+
# Returns all the JSON keys this model knows about
|
73
|
+
def self.acceptable_attributes
|
74
|
+
attribute_map.values
|
75
|
+
end
|
76
|
+
|
71
77
|
# Attribute type mapping.
|
72
78
|
def self.openapi_types
|
73
79
|
{
|
74
80
|
:'pulp_href' => :'String',
|
75
81
|
:'prn' => :'String',
|
76
|
-
:'pulp_created' => :'
|
77
|
-
:'pulp_last_updated' => :'
|
82
|
+
:'pulp_created' => :'Time',
|
83
|
+
:'pulp_last_updated' => :'Time',
|
78
84
|
:'artifact' => :'String',
|
79
85
|
:'relative_path' => :'String',
|
80
86
|
:'md5' => :'String',
|
@@ -129,6 +135,8 @@ module PulpDebClient
|
|
129
135
|
|
130
136
|
if attributes.key?(:'relative_path')
|
131
137
|
self.relative_path = attributes[:'relative_path']
|
138
|
+
else
|
139
|
+
self.relative_path = nil
|
132
140
|
end
|
133
141
|
|
134
142
|
if attributes.key?(:'md5')
|
@@ -159,6 +167,7 @@ module PulpDebClient
|
|
159
167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
160
168
|
# @return Array for valid properties with the reasons
|
161
169
|
def list_invalid_properties
|
170
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
162
171
|
invalid_properties = Array.new
|
163
172
|
if @relative_path.nil?
|
164
173
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
@@ -170,6 +179,7 @@ module PulpDebClient
|
|
170
179
|
# Check to see if the all the properties in the model are valid
|
171
180
|
# @return true if the model is valid
|
172
181
|
def valid?
|
182
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
173
183
|
return false if @relative_path.nil?
|
174
184
|
true
|
175
185
|
end
|
@@ -209,37 +219,33 @@ module PulpDebClient
|
|
209
219
|
# @param [Hash] attributes Model attributes in the form of hash
|
210
220
|
# @return [Object] Returns the model itself
|
211
221
|
def self.build_from_hash(attributes)
|
212
|
-
new.build_from_hash(attributes)
|
213
|
-
end
|
214
|
-
|
215
|
-
# Builds the object from hash
|
216
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
-
# @return [Object] Returns the model itself
|
218
|
-
def build_from_hash(attributes)
|
219
222
|
return nil unless attributes.is_a?(Hash)
|
220
|
-
|
221
|
-
|
223
|
+
attributes = attributes.transform_keys(&:to_sym)
|
224
|
+
transformed_hash = {}
|
225
|
+
openapi_types.each_pair do |key, type|
|
226
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
227
|
+
transformed_hash["#{key}"] = nil
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
222
229
|
# check to ensure the input is an array given that the attribute
|
223
230
|
# is documented as an array but the input is not
|
224
|
-
if attributes[
|
225
|
-
|
231
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
232
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
226
233
|
end
|
227
|
-
elsif !attributes[
|
228
|
-
|
229
|
-
end
|
234
|
+
elsif !attributes[attribute_map[key]].nil?
|
235
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
236
|
+
end
|
230
237
|
end
|
231
|
-
|
232
|
-
self
|
238
|
+
new(transformed_hash)
|
233
239
|
end
|
234
240
|
|
235
241
|
# Deserializes the data based on type
|
236
242
|
# @param string type Data type
|
237
243
|
# @param string value Value to be deserialized
|
238
244
|
# @return [Object] Deserialized data
|
239
|
-
def _deserialize(type, value)
|
245
|
+
def self._deserialize(type, value)
|
240
246
|
case type.to_sym
|
241
|
-
when :
|
242
|
-
|
247
|
+
when :Time
|
248
|
+
Time.parse(value)
|
243
249
|
when :Date
|
244
250
|
Date.parse(value)
|
245
251
|
when :String
|
@@ -269,7 +275,9 @@ module PulpDebClient
|
|
269
275
|
end
|
270
276
|
end
|
271
277
|
else # model
|
272
|
-
|
278
|
+
# models (e.g. Pet) or oneOf
|
279
|
+
klass = PulpDebClient.const_get(type)
|
280
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
273
281
|
end
|
274
282
|
end
|
275
283
|
|
@@ -295,7 +303,7 @@ module PulpDebClient
|
|
295
303
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
304
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
305
|
end
|
298
|
-
|
306
|
+
|
299
307
|
hash[param] = _to_hash(value)
|
300
308
|
end
|
301
309
|
hash
|
@@ -318,5 +326,7 @@ module PulpDebClient
|
|
318
326
|
value
|
319
327
|
end
|
320
328
|
end
|
329
|
+
|
321
330
|
end
|
331
|
+
|
322
332
|
end
|
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpDebClient
|
16
17
|
# A serializer for InstallerFileIndex.
|
@@ -41,6 +42,11 @@ module PulpDebClient
|
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
44
50
|
# Attribute type mapping.
|
45
51
|
def self.openapi_types
|
46
52
|
{
|
@@ -79,14 +85,20 @@ module PulpDebClient
|
|
79
85
|
|
80
86
|
if attributes.key?(:'artifacts')
|
81
87
|
self.artifacts = attributes[:'artifacts']
|
88
|
+
else
|
89
|
+
self.artifacts = nil
|
82
90
|
end
|
83
91
|
|
84
92
|
if attributes.key?(:'component')
|
85
93
|
self.component = attributes[:'component']
|
94
|
+
else
|
95
|
+
self.component = nil
|
86
96
|
end
|
87
97
|
|
88
98
|
if attributes.key?(:'architecture')
|
89
99
|
self.architecture = attributes[:'architecture']
|
100
|
+
else
|
101
|
+
self.architecture = nil
|
90
102
|
end
|
91
103
|
|
92
104
|
if attributes.key?(:'relative_path')
|
@@ -97,6 +109,7 @@ module PulpDebClient
|
|
97
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
98
110
|
# @return Array for valid properties with the reasons
|
99
111
|
def list_invalid_properties
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
100
113
|
invalid_properties = Array.new
|
101
114
|
if @artifacts.nil?
|
102
115
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -128,6 +141,7 @@ module PulpDebClient
|
|
128
141
|
# Check to see if the all the properties in the model are valid
|
129
142
|
# @return true if the model is valid
|
130
143
|
def valid?
|
144
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
131
145
|
return false if @artifacts.nil?
|
132
146
|
return false if @component.nil?
|
133
147
|
return false if @component.to_s.length < 1
|
@@ -168,7 +182,11 @@ module PulpDebClient
|
|
168
182
|
# Custom attribute writer method with validation
|
169
183
|
# @param [Object] relative_path Value to be assigned
|
170
184
|
def relative_path=(relative_path)
|
171
|
-
if
|
185
|
+
if relative_path.nil?
|
186
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
187
|
+
end
|
188
|
+
|
189
|
+
if relative_path.to_s.length < 1
|
172
190
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
173
191
|
end
|
174
192
|
|
@@ -203,37 +221,33 @@ module PulpDebClient
|
|
203
221
|
# @param [Hash] attributes Model attributes in the form of hash
|
204
222
|
# @return [Object] Returns the model itself
|
205
223
|
def self.build_from_hash(attributes)
|
206
|
-
new.build_from_hash(attributes)
|
207
|
-
end
|
208
|
-
|
209
|
-
# Builds the object from hash
|
210
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
211
|
-
# @return [Object] Returns the model itself
|
212
|
-
def build_from_hash(attributes)
|
213
224
|
return nil unless attributes.is_a?(Hash)
|
214
|
-
|
215
|
-
|
225
|
+
attributes = attributes.transform_keys(&:to_sym)
|
226
|
+
transformed_hash = {}
|
227
|
+
openapi_types.each_pair do |key, type|
|
228
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
229
|
+
transformed_hash["#{key}"] = nil
|
230
|
+
elsif type =~ /\AArray<(.*)>/i
|
216
231
|
# check to ensure the input is an array given that the attribute
|
217
232
|
# is documented as an array but the input is not
|
218
|
-
if attributes[
|
219
|
-
|
233
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
234
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
220
235
|
end
|
221
|
-
elsif !attributes[
|
222
|
-
|
223
|
-
end
|
236
|
+
elsif !attributes[attribute_map[key]].nil?
|
237
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
238
|
+
end
|
224
239
|
end
|
225
|
-
|
226
|
-
self
|
240
|
+
new(transformed_hash)
|
227
241
|
end
|
228
242
|
|
229
243
|
# Deserializes the data based on type
|
230
244
|
# @param string type Data type
|
231
245
|
# @param string value Value to be deserialized
|
232
246
|
# @return [Object] Deserialized data
|
233
|
-
def _deserialize(type, value)
|
247
|
+
def self._deserialize(type, value)
|
234
248
|
case type.to_sym
|
235
|
-
when :
|
236
|
-
|
249
|
+
when :Time
|
250
|
+
Time.parse(value)
|
237
251
|
when :Date
|
238
252
|
Date.parse(value)
|
239
253
|
when :String
|
@@ -263,7 +277,9 @@ module PulpDebClient
|
|
263
277
|
end
|
264
278
|
end
|
265
279
|
else # model
|
266
|
-
|
280
|
+
# models (e.g. Pet) or oneOf
|
281
|
+
klass = PulpDebClient.const_get(type)
|
282
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
267
283
|
end
|
268
284
|
end
|
269
285
|
|
@@ -289,7 +305,7 @@ module PulpDebClient
|
|
289
305
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
290
306
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
291
307
|
end
|
292
|
-
|
308
|
+
|
293
309
|
hash[param] = _to_hash(value)
|
294
310
|
end
|
295
311
|
hash
|
@@ -312,5 +328,7 @@ module PulpDebClient
|
|
312
328
|
value
|
313
329
|
end
|
314
330
|
end
|
331
|
+
|
315
332
|
end
|
333
|
+
|
316
334
|
end
|
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpDebClient
|
16
17
|
# A serializer for InstallerFileIndex.
|
@@ -52,13 +53,18 @@ module PulpDebClient
|
|
52
53
|
}
|
53
54
|
end
|
54
55
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
57
|
+
def self.acceptable_attributes
|
58
|
+
attribute_map.values
|
59
|
+
end
|
60
|
+
|
55
61
|
# Attribute type mapping.
|
56
62
|
def self.openapi_types
|
57
63
|
{
|
58
64
|
:'pulp_href' => :'String',
|
59
65
|
:'prn' => :'String',
|
60
|
-
:'pulp_created' => :'
|
61
|
-
:'pulp_last_updated' => :'
|
66
|
+
:'pulp_created' => :'Time',
|
67
|
+
:'pulp_last_updated' => :'Time',
|
62
68
|
:'artifacts' => :'Object',
|
63
69
|
:'component' => :'String',
|
64
70
|
:'architecture' => :'String',
|
@@ -105,14 +111,20 @@ module PulpDebClient
|
|
105
111
|
|
106
112
|
if attributes.key?(:'artifacts')
|
107
113
|
self.artifacts = attributes[:'artifacts']
|
114
|
+
else
|
115
|
+
self.artifacts = nil
|
108
116
|
end
|
109
117
|
|
110
118
|
if attributes.key?(:'component')
|
111
119
|
self.component = attributes[:'component']
|
120
|
+
else
|
121
|
+
self.component = nil
|
112
122
|
end
|
113
123
|
|
114
124
|
if attributes.key?(:'architecture')
|
115
125
|
self.architecture = attributes[:'architecture']
|
126
|
+
else
|
127
|
+
self.architecture = nil
|
116
128
|
end
|
117
129
|
|
118
130
|
if attributes.key?(:'relative_path')
|
@@ -123,6 +135,7 @@ module PulpDebClient
|
|
123
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
136
|
# @return Array for valid properties with the reasons
|
125
137
|
def list_invalid_properties
|
138
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
126
139
|
invalid_properties = Array.new
|
127
140
|
if @artifacts.nil?
|
128
141
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -142,6 +155,7 @@ module PulpDebClient
|
|
142
155
|
# Check to see if the all the properties in the model are valid
|
143
156
|
# @return true if the model is valid
|
144
157
|
def valid?
|
158
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
145
159
|
return false if @artifacts.nil?
|
146
160
|
return false if @component.nil?
|
147
161
|
return false if @architecture.nil?
|
@@ -179,37 +193,33 @@ module PulpDebClient
|
|
179
193
|
# @param [Hash] attributes Model attributes in the form of hash
|
180
194
|
# @return [Object] Returns the model itself
|
181
195
|
def self.build_from_hash(attributes)
|
182
|
-
new.build_from_hash(attributes)
|
183
|
-
end
|
184
|
-
|
185
|
-
# Builds the object from hash
|
186
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
-
# @return [Object] Returns the model itself
|
188
|
-
def build_from_hash(attributes)
|
189
196
|
return nil unless attributes.is_a?(Hash)
|
190
|
-
|
191
|
-
|
197
|
+
attributes = attributes.transform_keys(&:to_sym)
|
198
|
+
transformed_hash = {}
|
199
|
+
openapi_types.each_pair do |key, type|
|
200
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
201
|
+
transformed_hash["#{key}"] = nil
|
202
|
+
elsif type =~ /\AArray<(.*)>/i
|
192
203
|
# check to ensure the input is an array given that the attribute
|
193
204
|
# is documented as an array but the input is not
|
194
|
-
if attributes[
|
195
|
-
|
205
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
206
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
196
207
|
end
|
197
|
-
elsif !attributes[
|
198
|
-
|
199
|
-
end
|
208
|
+
elsif !attributes[attribute_map[key]].nil?
|
209
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
210
|
+
end
|
200
211
|
end
|
201
|
-
|
202
|
-
self
|
212
|
+
new(transformed_hash)
|
203
213
|
end
|
204
214
|
|
205
215
|
# Deserializes the data based on type
|
206
216
|
# @param string type Data type
|
207
217
|
# @param string value Value to be deserialized
|
208
218
|
# @return [Object] Deserialized data
|
209
|
-
def _deserialize(type, value)
|
219
|
+
def self._deserialize(type, value)
|
210
220
|
case type.to_sym
|
211
|
-
when :
|
212
|
-
|
221
|
+
when :Time
|
222
|
+
Time.parse(value)
|
213
223
|
when :Date
|
214
224
|
Date.parse(value)
|
215
225
|
when :String
|
@@ -239,7 +249,9 @@ module PulpDebClient
|
|
239
249
|
end
|
240
250
|
end
|
241
251
|
else # model
|
242
|
-
|
252
|
+
# models (e.g. Pet) or oneOf
|
253
|
+
klass = PulpDebClient.const_get(type)
|
254
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
243
255
|
end
|
244
256
|
end
|
245
257
|
|
@@ -265,7 +277,7 @@ module PulpDebClient
|
|
265
277
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
278
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
279
|
end
|
268
|
-
|
280
|
+
|
269
281
|
hash[param] = _to_hash(value)
|
270
282
|
end
|
271
283
|
hash
|
@@ -288,5 +300,7 @@ module PulpDebClient
|
|
288
300
|
value
|
289
301
|
end
|
290
302
|
end
|
303
|
+
|
291
304
|
end
|
305
|
+
|
292
306
|
end
|
@@ -6,11 +6,12 @@
|
|
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
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpDebClient
|
16
17
|
# A Serializer for InstallerPackage.
|
@@ -155,13 +156,18 @@ module PulpDebClient
|
|
155
156
|
}
|
156
157
|
end
|
157
158
|
|
159
|
+
# Returns all the JSON keys this model knows about
|
160
|
+
def self.acceptable_attributes
|
161
|
+
attribute_map.values
|
162
|
+
end
|
163
|
+
|
158
164
|
# Attribute type mapping.
|
159
165
|
def self.openapi_types
|
160
166
|
{
|
161
167
|
:'pulp_href' => :'String',
|
162
168
|
:'prn' => :'String',
|
163
|
-
:'pulp_created' => :'
|
164
|
-
:'pulp_last_updated' => :'
|
169
|
+
:'pulp_created' => :'Time',
|
170
|
+
:'pulp_last_updated' => :'Time',
|
165
171
|
:'artifact' => :'String',
|
166
172
|
:'relative_path' => :'String',
|
167
173
|
:'md5' => :'String',
|
@@ -391,6 +397,7 @@ module PulpDebClient
|
|
391
397
|
# Show invalid properties with the reasons. Usually used together with valid?
|
392
398
|
# @return Array for valid properties with the reasons
|
393
399
|
def list_invalid_properties
|
400
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
394
401
|
invalid_properties = Array.new
|
395
402
|
invalid_properties
|
396
403
|
end
|
@@ -398,6 +405,7 @@ module PulpDebClient
|
|
398
405
|
# Check to see if the all the properties in the model are valid
|
399
406
|
# @return true if the model is valid
|
400
407
|
def valid?
|
408
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
401
409
|
true
|
402
410
|
end
|
403
411
|
|
@@ -465,37 +473,33 @@ module PulpDebClient
|
|
465
473
|
# @param [Hash] attributes Model attributes in the form of hash
|
466
474
|
# @return [Object] Returns the model itself
|
467
475
|
def self.build_from_hash(attributes)
|
468
|
-
new.build_from_hash(attributes)
|
469
|
-
end
|
470
|
-
|
471
|
-
# Builds the object from hash
|
472
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
473
|
-
# @return [Object] Returns the model itself
|
474
|
-
def build_from_hash(attributes)
|
475
476
|
return nil unless attributes.is_a?(Hash)
|
476
|
-
|
477
|
-
|
477
|
+
attributes = attributes.transform_keys(&:to_sym)
|
478
|
+
transformed_hash = {}
|
479
|
+
openapi_types.each_pair do |key, type|
|
480
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
481
|
+
transformed_hash["#{key}"] = nil
|
482
|
+
elsif type =~ /\AArray<(.*)>/i
|
478
483
|
# check to ensure the input is an array given that the attribute
|
479
484
|
# is documented as an array but the input is not
|
480
|
-
if attributes[
|
481
|
-
|
485
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
486
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
482
487
|
end
|
483
|
-
elsif !attributes[
|
484
|
-
|
485
|
-
end
|
488
|
+
elsif !attributes[attribute_map[key]].nil?
|
489
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
490
|
+
end
|
486
491
|
end
|
487
|
-
|
488
|
-
self
|
492
|
+
new(transformed_hash)
|
489
493
|
end
|
490
494
|
|
491
495
|
# Deserializes the data based on type
|
492
496
|
# @param string type Data type
|
493
497
|
# @param string value Value to be deserialized
|
494
498
|
# @return [Object] Deserialized data
|
495
|
-
def _deserialize(type, value)
|
499
|
+
def self._deserialize(type, value)
|
496
500
|
case type.to_sym
|
497
|
-
when :
|
498
|
-
|
501
|
+
when :Time
|
502
|
+
Time.parse(value)
|
499
503
|
when :Date
|
500
504
|
Date.parse(value)
|
501
505
|
when :String
|
@@ -525,7 +529,9 @@ module PulpDebClient
|
|
525
529
|
end
|
526
530
|
end
|
527
531
|
else # model
|
528
|
-
|
532
|
+
# models (e.g. Pet) or oneOf
|
533
|
+
klass = PulpDebClient.const_get(type)
|
534
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
529
535
|
end
|
530
536
|
end
|
531
537
|
|
@@ -551,7 +557,7 @@ module PulpDebClient
|
|
551
557
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
552
558
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
553
559
|
end
|
554
|
-
|
560
|
+
|
555
561
|
hash[param] = _to_hash(value)
|
556
562
|
end
|
557
563
|
hash
|
@@ -574,5 +580,7 @@ module PulpDebClient
|
|
574
580
|
value
|
575
581
|
end
|
576
582
|
end
|
583
|
+
|
577
584
|
end
|
585
|
+
|
578
586
|
end
|