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 ReleaseComponent.
|
@@ -48,13 +49,18 @@ module PulpDebClient
|
|
48
49
|
}
|
49
50
|
end
|
50
51
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
53
|
+
def self.acceptable_attributes
|
54
|
+
attribute_map.values
|
55
|
+
end
|
56
|
+
|
51
57
|
# Attribute type mapping.
|
52
58
|
def self.openapi_types
|
53
59
|
{
|
54
60
|
:'pulp_href' => :'String',
|
55
61
|
:'prn' => :'String',
|
56
|
-
:'pulp_created' => :'
|
57
|
-
:'pulp_last_updated' => :'
|
62
|
+
:'pulp_created' => :'Time',
|
63
|
+
:'pulp_last_updated' => :'Time',
|
58
64
|
:'component' => :'String',
|
59
65
|
:'distribution' => :'String',
|
60
66
|
:'plain_component' => :'String'
|
@@ -100,10 +106,14 @@ module PulpDebClient
|
|
100
106
|
|
101
107
|
if attributes.key?(:'component')
|
102
108
|
self.component = attributes[:'component']
|
109
|
+
else
|
110
|
+
self.component = nil
|
103
111
|
end
|
104
112
|
|
105
113
|
if attributes.key?(:'distribution')
|
106
114
|
self.distribution = attributes[:'distribution']
|
115
|
+
else
|
116
|
+
self.distribution = nil
|
107
117
|
end
|
108
118
|
|
109
119
|
if attributes.key?(:'plain_component')
|
@@ -114,6 +124,7 @@ module PulpDebClient
|
|
114
124
|
# Show invalid properties with the reasons. Usually used together with valid?
|
115
125
|
# @return Array for valid properties with the reasons
|
116
126
|
def list_invalid_properties
|
127
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
117
128
|
invalid_properties = Array.new
|
118
129
|
if @component.nil?
|
119
130
|
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
@@ -129,6 +140,7 @@ module PulpDebClient
|
|
129
140
|
# Check to see if the all the properties in the model are valid
|
130
141
|
# @return true if the model is valid
|
131
142
|
def valid?
|
143
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
132
144
|
return false if @component.nil?
|
133
145
|
return false if @distribution.nil?
|
134
146
|
true
|
@@ -164,37 +176,33 @@ module PulpDebClient
|
|
164
176
|
# @param [Hash] attributes Model attributes in the form of hash
|
165
177
|
# @return [Object] Returns the model itself
|
166
178
|
def self.build_from_hash(attributes)
|
167
|
-
new.build_from_hash(attributes)
|
168
|
-
end
|
169
|
-
|
170
|
-
# Builds the object from hash
|
171
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
172
|
-
# @return [Object] Returns the model itself
|
173
|
-
def build_from_hash(attributes)
|
174
179
|
return nil unless attributes.is_a?(Hash)
|
175
|
-
|
176
|
-
|
180
|
+
attributes = attributes.transform_keys(&:to_sym)
|
181
|
+
transformed_hash = {}
|
182
|
+
openapi_types.each_pair do |key, type|
|
183
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
184
|
+
transformed_hash["#{key}"] = nil
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
177
186
|
# check to ensure the input is an array given that the attribute
|
178
187
|
# is documented as an array but the input is not
|
179
|
-
if attributes[
|
180
|
-
|
188
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
189
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
181
190
|
end
|
182
|
-
elsif !attributes[
|
183
|
-
|
184
|
-
end
|
191
|
+
elsif !attributes[attribute_map[key]].nil?
|
192
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
193
|
+
end
|
185
194
|
end
|
186
|
-
|
187
|
-
self
|
195
|
+
new(transformed_hash)
|
188
196
|
end
|
189
197
|
|
190
198
|
# Deserializes the data based on type
|
191
199
|
# @param string type Data type
|
192
200
|
# @param string value Value to be deserialized
|
193
201
|
# @return [Object] Deserialized data
|
194
|
-
def _deserialize(type, value)
|
202
|
+
def self._deserialize(type, value)
|
195
203
|
case type.to_sym
|
196
|
-
when :
|
197
|
-
|
204
|
+
when :Time
|
205
|
+
Time.parse(value)
|
198
206
|
when :Date
|
199
207
|
Date.parse(value)
|
200
208
|
when :String
|
@@ -224,7 +232,9 @@ module PulpDebClient
|
|
224
232
|
end
|
225
233
|
end
|
226
234
|
else # model
|
227
|
-
|
235
|
+
# models (e.g. Pet) or oneOf
|
236
|
+
klass = PulpDebClient.const_get(type)
|
237
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
228
238
|
end
|
229
239
|
end
|
230
240
|
|
@@ -250,7 +260,7 @@ module PulpDebClient
|
|
250
260
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
251
261
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
252
262
|
end
|
253
|
-
|
263
|
+
|
254
264
|
hash[param] = _to_hash(value)
|
255
265
|
end
|
256
266
|
hash
|
@@ -273,5 +283,7 @@ module PulpDebClient
|
|
273
283
|
value
|
274
284
|
end
|
275
285
|
end
|
286
|
+
|
276
287
|
end
|
288
|
+
|
277
289
|
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 ReleaseFile.
|
@@ -45,6 +46,11 @@ module PulpDebClient
|
|
45
46
|
}
|
46
47
|
end
|
47
48
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
50
|
+
def self.acceptable_attributes
|
51
|
+
attribute_map.values
|
52
|
+
end
|
53
|
+
|
48
54
|
# Attribute type mapping.
|
49
55
|
def self.openapi_types
|
50
56
|
{
|
@@ -84,6 +90,8 @@ module PulpDebClient
|
|
84
90
|
|
85
91
|
if attributes.key?(:'artifacts')
|
86
92
|
self.artifacts = attributes[:'artifacts']
|
93
|
+
else
|
94
|
+
self.artifacts = nil
|
87
95
|
end
|
88
96
|
|
89
97
|
if attributes.key?(:'codename')
|
@@ -96,6 +104,8 @@ module PulpDebClient
|
|
96
104
|
|
97
105
|
if attributes.key?(:'distribution')
|
98
106
|
self.distribution = attributes[:'distribution']
|
107
|
+
else
|
108
|
+
self.distribution = nil
|
99
109
|
end
|
100
110
|
|
101
111
|
if attributes.key?(:'relative_path')
|
@@ -106,6 +116,7 @@ module PulpDebClient
|
|
106
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
107
117
|
# @return Array for valid properties with the reasons
|
108
118
|
def list_invalid_properties
|
119
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
109
120
|
invalid_properties = Array.new
|
110
121
|
if @artifacts.nil?
|
111
122
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -137,6 +148,7 @@ module PulpDebClient
|
|
137
148
|
# Check to see if the all the properties in the model are valid
|
138
149
|
# @return true if the model is valid
|
139
150
|
def valid?
|
151
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
140
152
|
return false if @artifacts.nil?
|
141
153
|
return false if !@codename.nil? && @codename.to_s.length < 1
|
142
154
|
return false if !@suite.nil? && @suite.to_s.length < 1
|
@@ -149,7 +161,11 @@ module PulpDebClient
|
|
149
161
|
# Custom attribute writer method with validation
|
150
162
|
# @param [Object] codename Value to be assigned
|
151
163
|
def codename=(codename)
|
152
|
-
if
|
164
|
+
if codename.nil?
|
165
|
+
fail ArgumentError, 'codename cannot be nil'
|
166
|
+
end
|
167
|
+
|
168
|
+
if codename.to_s.length < 1
|
153
169
|
fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
|
154
170
|
end
|
155
171
|
|
@@ -159,7 +175,11 @@ module PulpDebClient
|
|
159
175
|
# Custom attribute writer method with validation
|
160
176
|
# @param [Object] suite Value to be assigned
|
161
177
|
def suite=(suite)
|
162
|
-
if
|
178
|
+
if suite.nil?
|
179
|
+
fail ArgumentError, 'suite cannot be nil'
|
180
|
+
end
|
181
|
+
|
182
|
+
if suite.to_s.length < 1
|
163
183
|
fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
|
164
184
|
end
|
165
185
|
|
@@ -183,7 +203,11 @@ module PulpDebClient
|
|
183
203
|
# Custom attribute writer method with validation
|
184
204
|
# @param [Object] relative_path Value to be assigned
|
185
205
|
def relative_path=(relative_path)
|
186
|
-
if
|
206
|
+
if relative_path.nil?
|
207
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
208
|
+
end
|
209
|
+
|
210
|
+
if relative_path.to_s.length < 1
|
187
211
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
188
212
|
end
|
189
213
|
|
@@ -219,37 +243,33 @@ module PulpDebClient
|
|
219
243
|
# @param [Hash] attributes Model attributes in the form of hash
|
220
244
|
# @return [Object] Returns the model itself
|
221
245
|
def self.build_from_hash(attributes)
|
222
|
-
new.build_from_hash(attributes)
|
223
|
-
end
|
224
|
-
|
225
|
-
# Builds the object from hash
|
226
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
227
|
-
# @return [Object] Returns the model itself
|
228
|
-
def build_from_hash(attributes)
|
229
246
|
return nil unless attributes.is_a?(Hash)
|
230
|
-
|
231
|
-
|
247
|
+
attributes = attributes.transform_keys(&:to_sym)
|
248
|
+
transformed_hash = {}
|
249
|
+
openapi_types.each_pair do |key, type|
|
250
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
251
|
+
transformed_hash["#{key}"] = nil
|
252
|
+
elsif type =~ /\AArray<(.*)>/i
|
232
253
|
# check to ensure the input is an array given that the attribute
|
233
254
|
# is documented as an array but the input is not
|
234
|
-
if attributes[
|
235
|
-
|
255
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
256
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
236
257
|
end
|
237
|
-
elsif !attributes[
|
238
|
-
|
239
|
-
end
|
258
|
+
elsif !attributes[attribute_map[key]].nil?
|
259
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
260
|
+
end
|
240
261
|
end
|
241
|
-
|
242
|
-
self
|
262
|
+
new(transformed_hash)
|
243
263
|
end
|
244
264
|
|
245
265
|
# Deserializes the data based on type
|
246
266
|
# @param string type Data type
|
247
267
|
# @param string value Value to be deserialized
|
248
268
|
# @return [Object] Deserialized data
|
249
|
-
def _deserialize(type, value)
|
269
|
+
def self._deserialize(type, value)
|
250
270
|
case type.to_sym
|
251
|
-
when :
|
252
|
-
|
271
|
+
when :Time
|
272
|
+
Time.parse(value)
|
253
273
|
when :Date
|
254
274
|
Date.parse(value)
|
255
275
|
when :String
|
@@ -279,7 +299,9 @@ module PulpDebClient
|
|
279
299
|
end
|
280
300
|
end
|
281
301
|
else # model
|
282
|
-
|
302
|
+
# models (e.g. Pet) or oneOf
|
303
|
+
klass = PulpDebClient.const_get(type)
|
304
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
283
305
|
end
|
284
306
|
end
|
285
307
|
|
@@ -305,7 +327,7 @@ module PulpDebClient
|
|
305
327
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
306
328
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
307
329
|
end
|
308
|
-
|
330
|
+
|
309
331
|
hash[param] = _to_hash(value)
|
310
332
|
end
|
311
333
|
hash
|
@@ -328,5 +350,7 @@ module PulpDebClient
|
|
328
350
|
value
|
329
351
|
end
|
330
352
|
end
|
353
|
+
|
331
354
|
end
|
355
|
+
|
332
356
|
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 ReleaseFile.
|
@@ -56,13 +57,18 @@ module PulpDebClient
|
|
56
57
|
}
|
57
58
|
end
|
58
59
|
|
60
|
+
# Returns all the JSON keys this model knows about
|
61
|
+
def self.acceptable_attributes
|
62
|
+
attribute_map.values
|
63
|
+
end
|
64
|
+
|
59
65
|
# Attribute type mapping.
|
60
66
|
def self.openapi_types
|
61
67
|
{
|
62
68
|
:'pulp_href' => :'String',
|
63
69
|
:'prn' => :'String',
|
64
|
-
:'pulp_created' => :'
|
65
|
-
:'pulp_last_updated' => :'
|
70
|
+
:'pulp_created' => :'Time',
|
71
|
+
:'pulp_last_updated' => :'Time',
|
66
72
|
:'artifacts' => :'Object',
|
67
73
|
:'codename' => :'String',
|
68
74
|
:'suite' => :'String',
|
@@ -110,6 +116,8 @@ module PulpDebClient
|
|
110
116
|
|
111
117
|
if attributes.key?(:'artifacts')
|
112
118
|
self.artifacts = attributes[:'artifacts']
|
119
|
+
else
|
120
|
+
self.artifacts = nil
|
113
121
|
end
|
114
122
|
|
115
123
|
if attributes.key?(:'codename')
|
@@ -122,6 +130,8 @@ module PulpDebClient
|
|
122
130
|
|
123
131
|
if attributes.key?(:'distribution')
|
124
132
|
self.distribution = attributes[:'distribution']
|
133
|
+
else
|
134
|
+
self.distribution = nil
|
125
135
|
end
|
126
136
|
|
127
137
|
if attributes.key?(:'relative_path')
|
@@ -132,6 +142,7 @@ module PulpDebClient
|
|
132
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
133
143
|
# @return Array for valid properties with the reasons
|
134
144
|
def list_invalid_properties
|
145
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
135
146
|
invalid_properties = Array.new
|
136
147
|
if @artifacts.nil?
|
137
148
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -147,6 +158,7 @@ module PulpDebClient
|
|
147
158
|
# Check to see if the all the properties in the model are valid
|
148
159
|
# @return true if the model is valid
|
149
160
|
def valid?
|
161
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
150
162
|
return false if @artifacts.nil?
|
151
163
|
return false if @distribution.nil?
|
152
164
|
true
|
@@ -184,37 +196,33 @@ module PulpDebClient
|
|
184
196
|
# @param [Hash] attributes Model attributes in the form of hash
|
185
197
|
# @return [Object] Returns the model itself
|
186
198
|
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
199
|
return nil unless attributes.is_a?(Hash)
|
195
|
-
|
196
|
-
|
200
|
+
attributes = attributes.transform_keys(&:to_sym)
|
201
|
+
transformed_hash = {}
|
202
|
+
openapi_types.each_pair do |key, type|
|
203
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
204
|
+
transformed_hash["#{key}"] = nil
|
205
|
+
elsif type =~ /\AArray<(.*)>/i
|
197
206
|
# check to ensure the input is an array given that the attribute
|
198
207
|
# is documented as an array but the input is not
|
199
|
-
if attributes[
|
200
|
-
|
208
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
209
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
201
210
|
end
|
202
|
-
elsif !attributes[
|
203
|
-
|
204
|
-
end
|
211
|
+
elsif !attributes[attribute_map[key]].nil?
|
212
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
213
|
+
end
|
205
214
|
end
|
206
|
-
|
207
|
-
self
|
215
|
+
new(transformed_hash)
|
208
216
|
end
|
209
217
|
|
210
218
|
# Deserializes the data based on type
|
211
219
|
# @param string type Data type
|
212
220
|
# @param string value Value to be deserialized
|
213
221
|
# @return [Object] Deserialized data
|
214
|
-
def _deserialize(type, value)
|
222
|
+
def self._deserialize(type, value)
|
215
223
|
case type.to_sym
|
216
|
-
when :
|
217
|
-
|
224
|
+
when :Time
|
225
|
+
Time.parse(value)
|
218
226
|
when :Date
|
219
227
|
Date.parse(value)
|
220
228
|
when :String
|
@@ -244,7 +252,9 @@ module PulpDebClient
|
|
244
252
|
end
|
245
253
|
end
|
246
254
|
else # model
|
247
|
-
|
255
|
+
# models (e.g. Pet) or oneOf
|
256
|
+
klass = PulpDebClient.const_get(type)
|
257
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
248
258
|
end
|
249
259
|
end
|
250
260
|
|
@@ -270,7 +280,7 @@ module PulpDebClient
|
|
270
280
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
271
281
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
272
282
|
end
|
273
|
-
|
283
|
+
|
274
284
|
hash[param] = _to_hash(value)
|
275
285
|
end
|
276
286
|
hash
|
@@ -293,5 +303,7 @@ module PulpDebClient
|
|
293
303
|
value
|
294
304
|
end
|
295
305
|
end
|
306
|
+
|
296
307
|
end
|
308
|
+
|
297
309
|
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 Release.
|
@@ -63,13 +64,18 @@ module PulpDebClient
|
|
63
64
|
}
|
64
65
|
end
|
65
66
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
68
|
+
def self.acceptable_attributes
|
69
|
+
attribute_map.values
|
70
|
+
end
|
71
|
+
|
66
72
|
# Attribute type mapping.
|
67
73
|
def self.openapi_types
|
68
74
|
{
|
69
75
|
:'pulp_href' => :'String',
|
70
76
|
:'prn' => :'String',
|
71
|
-
:'pulp_created' => :'
|
72
|
-
:'pulp_last_updated' => :'
|
77
|
+
:'pulp_created' => :'Time',
|
78
|
+
:'pulp_last_updated' => :'Time',
|
73
79
|
:'codename' => :'String',
|
74
80
|
:'suite' => :'String',
|
75
81
|
:'distribution' => :'String',
|
@@ -125,14 +131,20 @@ module PulpDebClient
|
|
125
131
|
|
126
132
|
if attributes.key?(:'codename')
|
127
133
|
self.codename = attributes[:'codename']
|
134
|
+
else
|
135
|
+
self.codename = nil
|
128
136
|
end
|
129
137
|
|
130
138
|
if attributes.key?(:'suite')
|
131
139
|
self.suite = attributes[:'suite']
|
140
|
+
else
|
141
|
+
self.suite = nil
|
132
142
|
end
|
133
143
|
|
134
144
|
if attributes.key?(:'distribution')
|
135
145
|
self.distribution = attributes[:'distribution']
|
146
|
+
else
|
147
|
+
self.distribution = nil
|
136
148
|
end
|
137
149
|
|
138
150
|
if attributes.key?(:'version')
|
@@ -167,6 +179,7 @@ module PulpDebClient
|
|
167
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
168
180
|
# @return Array for valid properties with the reasons
|
169
181
|
def list_invalid_properties
|
182
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
170
183
|
invalid_properties = Array.new
|
171
184
|
if @codename.nil?
|
172
185
|
invalid_properties.push('invalid value for "codename", codename cannot be nil.')
|
@@ -186,6 +199,7 @@ module PulpDebClient
|
|
186
199
|
# Check to see if the all the properties in the model are valid
|
187
200
|
# @return true if the model is valid
|
188
201
|
def valid?
|
202
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
189
203
|
return false if @codename.nil?
|
190
204
|
return false if @suite.nil?
|
191
205
|
return false if @distribution.nil?
|
@@ -228,37 +242,33 @@ module PulpDebClient
|
|
228
242
|
# @param [Hash] attributes Model attributes in the form of hash
|
229
243
|
# @return [Object] Returns the model itself
|
230
244
|
def self.build_from_hash(attributes)
|
231
|
-
new.build_from_hash(attributes)
|
232
|
-
end
|
233
|
-
|
234
|
-
# Builds the object from hash
|
235
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
236
|
-
# @return [Object] Returns the model itself
|
237
|
-
def build_from_hash(attributes)
|
238
245
|
return nil unless attributes.is_a?(Hash)
|
239
|
-
|
240
|
-
|
246
|
+
attributes = attributes.transform_keys(&:to_sym)
|
247
|
+
transformed_hash = {}
|
248
|
+
openapi_types.each_pair do |key, type|
|
249
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
250
|
+
transformed_hash["#{key}"] = nil
|
251
|
+
elsif type =~ /\AArray<(.*)>/i
|
241
252
|
# check to ensure the input is an array given that the attribute
|
242
253
|
# is documented as an array but the input is not
|
243
|
-
if attributes[
|
244
|
-
|
254
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
255
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
245
256
|
end
|
246
|
-
elsif !attributes[
|
247
|
-
|
248
|
-
end
|
257
|
+
elsif !attributes[attribute_map[key]].nil?
|
258
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
259
|
+
end
|
249
260
|
end
|
250
|
-
|
251
|
-
self
|
261
|
+
new(transformed_hash)
|
252
262
|
end
|
253
263
|
|
254
264
|
# Deserializes the data based on type
|
255
265
|
# @param string type Data type
|
256
266
|
# @param string value Value to be deserialized
|
257
267
|
# @return [Object] Deserialized data
|
258
|
-
def _deserialize(type, value)
|
268
|
+
def self._deserialize(type, value)
|
259
269
|
case type.to_sym
|
260
|
-
when :
|
261
|
-
|
270
|
+
when :Time
|
271
|
+
Time.parse(value)
|
262
272
|
when :Date
|
263
273
|
Date.parse(value)
|
264
274
|
when :String
|
@@ -288,7 +298,9 @@ module PulpDebClient
|
|
288
298
|
end
|
289
299
|
end
|
290
300
|
else # model
|
291
|
-
|
301
|
+
# models (e.g. Pet) or oneOf
|
302
|
+
klass = PulpDebClient.const_get(type)
|
303
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
292
304
|
end
|
293
305
|
end
|
294
306
|
|
@@ -314,7 +326,7 @@ module PulpDebClient
|
|
314
326
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
315
327
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
316
328
|
end
|
317
|
-
|
329
|
+
|
318
330
|
hash[param] = _to_hash(value)
|
319
331
|
end
|
320
332
|
hash
|
@@ -337,5 +349,7 @@ module PulpDebClient
|
|
337
349
|
value
|
338
350
|
end
|
339
351
|
end
|
352
|
+
|
340
353
|
end
|
354
|
+
|
341
355
|
end
|