pulp_rpm_client 3.27.2 → 3.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -9
- data/docs/AcsRpmApi.md +343 -156
- data/docs/AddonResponse.md +16 -15
- data/docs/ArtifactResponse.md +30 -29
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ChecksumResponse.md +10 -9
- data/docs/CompressionTypeEnum.md +4 -5
- data/docs/ContentAdvisoriesApi.md +125 -75
- data/docs/ContentDistributionTreesApi.md +79 -46
- data/docs/ContentModulemdDefaultsApi.md +114 -64
- data/docs/ContentModulemdObsoletesApi.md +107 -57
- data/docs/ContentModulemdsApi.md +123 -73
- data/docs/ContentPackagecategoriesApi.md +79 -46
- data/docs/ContentPackageenvironmentsApi.md +79 -46
- data/docs/ContentPackagegroupsApi.md +79 -46
- data/docs/ContentPackagelangpacksApi.md +79 -46
- data/docs/ContentPackagesApi.md +148 -98
- data/docs/ContentRepoMetadataFilesApi.md +79 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +10 -9
- data/docs/DistributionsRpmApi.md +385 -182
- data/docs/ImageResponse.md +14 -13
- 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/PackageChecksumTypeEnum.md +4 -5
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedrpmDistributionTreeResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdDefaultsResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdObsoleteResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdResponseList.md +14 -13
- data/docs/PaginatedrpmPackageCategoryResponseList.md +14 -13
- data/docs/PaginatedrpmPackageEnvironmentResponseList.md +14 -13
- data/docs/PaginatedrpmPackageGroupResponseList.md +14 -13
- data/docs/PaginatedrpmPackageLangpacksResponseList.md +14 -13
- data/docs/PaginatedrpmPackageResponseList.md +14 -13
- data/docs/PaginatedrpmRepoMetadataFileResponseList.md +14 -13
- data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedrpmRpmDistributionResponseList.md +14 -13
- data/docs/PaginatedrpmRpmPublicationResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRepositoryResponseList.md +14 -13
- data/docs/PaginatedrpmUlnRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmUpdateRecordResponseList.md +14 -13
- data/docs/PatchedrpmRpmAlternateContentSource.md +14 -13
- data/docs/PatchedrpmRpmDistribution.md +22 -21
- data/docs/PatchedrpmRpmRemote.md +50 -49
- data/docs/PatchedrpmRpmRepository.md +40 -39
- data/docs/PatchedrpmUlnRemote.md +50 -49
- data/docs/PolicyEnum.md +4 -5
- data/docs/PrunePackages.md +12 -11
- data/docs/PublicationsRpmApi.md +267 -130
- data/docs/RemotesRpmApi.md +389 -184
- data/docs/RemotesUlnApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesRpmApi.md +444 -207
- data/docs/RepositoriesRpmVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/RpmCompsApi.md +32 -16
- data/docs/RpmCopyApi.md +30 -14
- data/docs/RpmDistributionTreeResponse.md +46 -43
- data/docs/RpmModulemd.md +32 -31
- data/docs/RpmModulemdDefaults.md +16 -15
- data/docs/RpmModulemdDefaultsResponse.md +20 -19
- data/docs/RpmModulemdObsolete.md +28 -27
- data/docs/RpmModulemdObsoleteResponse.md +32 -31
- data/docs/RpmModulemdResponse.md +36 -35
- data/docs/RpmPackageCategoryResponse.md +30 -29
- data/docs/RpmPackageEnvironmentResponse.md +32 -31
- data/docs/RpmPackageGroupResponse.md +36 -35
- data/docs/RpmPackageLangpacksResponse.md +18 -17
- data/docs/RpmPackageResponse.md +100 -99
- data/docs/RpmPruneApi.md +30 -13
- data/docs/RpmRepoMetadataFileResponse.md +36 -35
- data/docs/RpmRepositorySyncURL.md +16 -15
- data/docs/RpmRpmAlternateContentSource.md +14 -13
- data/docs/RpmRpmAlternateContentSourceResponse.md +22 -21
- data/docs/RpmRpmDistribution.md +22 -21
- data/docs/RpmRpmDistributionResponse.md +34 -33
- data/docs/RpmRpmPublication.md +24 -23
- data/docs/RpmRpmPublicationResponse.md +34 -33
- data/docs/RpmRpmRemote.md +50 -49
- data/docs/RpmRpmRemoteResponse.md +50 -49
- data/docs/RpmRpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/RpmRpmRepository.md +40 -39
- data/docs/RpmRpmRepositoryResponse.md +54 -53
- data/docs/RpmUlnRemote.md +50 -49
- data/docs/RpmUlnRemoteResponse.md +50 -49
- data/docs/RpmUpdateCollection.md +12 -11
- data/docs/RpmUpdateCollectionResponse.md +14 -13
- data/docs/RpmUpdateRecordResponse.md +50 -49
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/SkipTypesEnum.md +4 -5
- data/docs/SyncPolicyEnum.md +4 -5
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/VariantResponse.md +26 -25
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +76 -50
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +11 -9
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +89 -56
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +67 -47
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +104 -68
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +104 -68
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +107 -66
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +40 -30
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +10 -6
- data/lib/pulp_rpm_client/api_client.rb +137 -102
- data/lib/pulp_rpm_client/api_error.rb +2 -1
- data/lib/pulp_rpm_client/configuration.rb +162 -21
- data/lib/pulp_rpm_client/models/addon_response.rb +40 -22
- data/lib/pulp_rpm_client/models/artifact_response.rb +34 -24
- data/lib/pulp_rpm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/checksum_response.rb +34 -22
- data/lib/pulp_rpm_client/models/compression_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_rpm_client/models/copy.rb +34 -28
- data/lib/pulp_rpm_client/models/image_response.rb +38 -22
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_rpm_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +36 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +40 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +82 -44
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +68 -25
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +92 -46
- data/lib/pulp_rpm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/prune_packages.rb +37 -23
- data/lib/pulp_rpm_client/models/repair.rb +30 -22
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_rpm_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +77 -23
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +50 -22
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +39 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +39 -29
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +55 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +48 -24
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +48 -24
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +36 -24
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +42 -24
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +40 -24
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +52 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +35 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +36 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +53 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +55 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +76 -42
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +79 -45
- data/lib/pulp_rpm_client/models/{rpm_rpm_remote_response_hidden_fields.rb → rpm_rpm_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +65 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +67 -26
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +80 -42
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +79 -45
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +36 -22
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +36 -22
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +32 -24
- data/lib/pulp_rpm_client/models/set_label.rb +34 -22
- data/lib/pulp_rpm_client/models/set_label_response.rb +34 -22
- data/lib/pulp_rpm_client/models/skip_types_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/sync_policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_rpm_client/models/variant_response.rb +50 -22
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +2 -5
- data/pulp_rpm_client.gemspec +9 -6
- data/spec/api/acs_rpm_api_spec.rb +12 -12
- data/spec/api/content_advisories_api_spec.rb +4 -4
- data/spec/api/content_distribution_trees_api_spec.rb +3 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +4 -4
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +4 -4
- data/spec/api/content_modulemds_api_spec.rb +4 -4
- data/spec/api/content_packagecategories_api_spec.rb +3 -3
- data/spec/api/content_packageenvironments_api_spec.rb +3 -3
- data/spec/api/content_packagegroups_api_spec.rb +3 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +3 -3
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
- data/spec/api/distributions_rpm_api_spec.rb +13 -13
- data/spec/api/publications_rpm_api_spec.rb +16 -15
- data/spec/api/remotes_rpm_api_spec.rb +20 -19
- data/spec/api/remotes_uln_api_spec.rb +20 -19
- data/spec/api/repositories_rpm_api_spec.rb +15 -15
- data/spec/api/repositories_rpm_versions_api_spec.rb +12 -11
- data/spec/api/rpm_comps_api_spec.rb +2 -2
- data/spec/api/rpm_copy_api_spec.rb +2 -2
- data/spec/api/rpm_prune_api_spec.rb +2 -2
- data/spec/models/addon_response_spec.rb +11 -16
- data/spec/models/artifact_response_spec.rb +18 -23
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/checksum_response_spec.rb +8 -13
- data/spec/models/compression_type_enum_spec.rb +6 -11
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +8 -13
- data/spec/models/image_response_spec.rb +10 -15
- 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/package_checksum_type_enum_spec.rb +6 -11
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_distribution_tree_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_category_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_environment_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_group_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_langpacks_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_uln_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_update_record_response_list_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/patchedrpm_rpm_remote_spec.rb +28 -33
- data/spec/models/patchedrpm_rpm_repository_spec.rb +23 -28
- data/spec/models/patchedrpm_uln_remote_spec.rb +28 -33
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/prune_packages_spec.rb +9 -14
- 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/rpm_distribution_tree_response_spec.rb +31 -30
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +13 -18
- data/spec/models/rpm_modulemd_defaults_spec.rb +11 -16
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +19 -24
- data/spec/models/rpm_modulemd_obsolete_spec.rb +17 -22
- data/spec/models/rpm_modulemd_response_spec.rb +21 -26
- data/spec/models/rpm_modulemd_spec.rb +19 -24
- data/spec/models/rpm_package_category_response_spec.rb +18 -23
- data/spec/models/rpm_package_environment_response_spec.rb +19 -24
- data/spec/models/rpm_package_group_response_spec.rb +21 -26
- data/spec/models/rpm_package_langpacks_response_spec.rb +12 -17
- data/spec/models/rpm_package_response_spec.rb +53 -58
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +21 -26
- data/spec/models/rpm_repository_sync_url_spec.rb +11 -16
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +14 -19
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/rpm_rpm_distribution_response_spec.rb +20 -25
- data/spec/models/rpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/rpm_rpm_publication_response_spec.rb +20 -25
- data/spec/models/rpm_rpm_publication_spec.rb +15 -20
- data/spec/models/{rpm_rpm_remote_response_hidden_fields_spec.rb → rpm_rpm_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/rpm_rpm_remote_response_spec.rb +28 -33
- data/spec/models/rpm_rpm_remote_spec.rb +28 -33
- data/spec/models/rpm_rpm_repository_response_spec.rb +30 -35
- data/spec/models/rpm_rpm_repository_spec.rb +23 -28
- data/spec/models/rpm_uln_remote_response_spec.rb +28 -33
- data/spec/models/rpm_uln_remote_spec.rb +28 -33
- data/spec/models/rpm_update_collection_response_spec.rb +10 -15
- data/spec/models/rpm_update_collection_spec.rb +9 -14
- data/spec/models/rpm_update_record_response_spec.rb +28 -33
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/skip_types_enum_spec.rb +6 -11
- data/spec/models/sync_policy_enum_spec.rb +6 -11
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/models/variant_response_spec.rb +16 -21
- data/spec/spec_helper.rb +1 -1
- metadata +124 -112
- data/docs/CompsXml.md +0 -21
- data/docs/RpmPackage.md +0 -27
- data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
- data/docs/RpmUpdateRecord.md +0 -23
- data/lib/pulp_rpm_client/models/comps_xml.rb +0 -233
- data/lib/pulp_rpm_client/models/rpm_package.rb +0 -288
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +0 -253
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/comps_xml_spec.rb +0 -53
- data/spec/models/rpm_package_spec.rb +0 -71
- data/spec/models/rpm_update_record_spec.rb +0 -59
@@ -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 PulpRpmClient
|
16
17
|
class PackageChecksumTypeEnum
|
@@ -22,6 +23,10 @@ module PulpRpmClient
|
|
22
23
|
SHA384 = "sha384".freeze
|
23
24
|
SHA512 = "sha512".freeze
|
24
25
|
|
26
|
+
def self.all_vars
|
27
|
+
@all_vars ||= [UNKNOWN, MD5, SHA1, SHA224, SHA256, SHA384, SHA512].freeze
|
28
|
+
end
|
29
|
+
|
25
30
|
# Builds the enum from string
|
26
31
|
# @param [String] The enum value in the form of the string
|
27
32
|
# @return [String] The enum value
|
@@ -33,9 +38,8 @@ module PulpRpmClient
|
|
33
38
|
# @param [String] The enum value in the form of the string
|
34
39
|
# @return [String] The enum value
|
35
40
|
def build_from_hash(value)
|
36
|
-
|
37
|
-
raise "Invalid ENUM value #{value} for class #PackageChecksumTypeEnum"
|
38
|
-
value
|
41
|
+
return value if PackageChecksumTypeEnum.all_vars.include?(value)
|
42
|
+
raise "Invalid ENUM value #{value} for class #PackageChecksumTypeEnum"
|
39
43
|
end
|
40
44
|
end
|
41
45
|
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 PulpRpmClient
|
16
17
|
class PaginatedRepositoryVersionResponseList
|
@@ -32,6 +33,11 @@ module PulpRpmClient
|
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
35
41
|
# Attribute type mapping.
|
36
42
|
def self.openapi_types
|
37
43
|
{
|
@@ -67,6 +73,8 @@ module PulpRpmClient
|
|
67
73
|
|
68
74
|
if attributes.key?(:'count')
|
69
75
|
self.count = attributes[:'count']
|
76
|
+
else
|
77
|
+
self.count = nil
|
70
78
|
end
|
71
79
|
|
72
80
|
if attributes.key?(:'_next')
|
@@ -81,12 +89,15 @@ module PulpRpmClient
|
|
81
89
|
if (value = attributes[:'results']).is_a?(Array)
|
82
90
|
self.results = value
|
83
91
|
end
|
92
|
+
else
|
93
|
+
self.results = nil
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
98
|
# @return Array for valid properties with the reasons
|
89
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
101
|
invalid_properties = Array.new
|
91
102
|
if @count.nil?
|
92
103
|
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
@@ -102,6 +113,7 @@ module PulpRpmClient
|
|
102
113
|
# Check to see if the all the properties in the model are valid
|
103
114
|
# @return true if the model is valid
|
104
115
|
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
105
117
|
return false if @count.nil?
|
106
118
|
return false if @results.nil?
|
107
119
|
true
|
@@ -134,37 +146,33 @@ module PulpRpmClient
|
|
134
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
135
147
|
# @return [Object] Returns the model itself
|
136
148
|
def self.build_from_hash(attributes)
|
137
|
-
new.build_from_hash(attributes)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Builds the object from hash
|
141
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
-
# @return [Object] Returns the model itself
|
143
|
-
def build_from_hash(attributes)
|
144
149
|
return nil unless attributes.is_a?(Hash)
|
145
|
-
|
146
|
-
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
156
|
# check to ensure the input is an array given that the attribute
|
148
157
|
# is documented as an array but the input is not
|
149
|
-
if attributes[
|
150
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
160
|
end
|
152
|
-
elsif !attributes[
|
153
|
-
|
154
|
-
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
155
164
|
end
|
156
|
-
|
157
|
-
self
|
165
|
+
new(transformed_hash)
|
158
166
|
end
|
159
167
|
|
160
168
|
# Deserializes the data based on type
|
161
169
|
# @param string type Data type
|
162
170
|
# @param string value Value to be deserialized
|
163
171
|
# @return [Object] Deserialized data
|
164
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
165
173
|
case type.to_sym
|
166
|
-
when :
|
167
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
168
176
|
when :Date
|
169
177
|
Date.parse(value)
|
170
178
|
when :String
|
@@ -194,7 +202,9 @@ module PulpRpmClient
|
|
194
202
|
end
|
195
203
|
end
|
196
204
|
else # model
|
197
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = PulpRpmClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
208
|
end
|
199
209
|
end
|
200
210
|
|
@@ -220,7 +230,7 @@ module PulpRpmClient
|
|
220
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
232
|
end
|
223
|
-
|
233
|
+
|
224
234
|
hash[param] = _to_hash(value)
|
225
235
|
end
|
226
236
|
hash
|
@@ -243,5 +253,7 @@ module PulpRpmClient
|
|
243
253
|
value
|
244
254
|
end
|
245
255
|
end
|
256
|
+
|
246
257
|
end
|
258
|
+
|
247
259
|
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 PulpRpmClient
|
16
17
|
class PaginatedrpmDistributionTreeResponseList
|
@@ -32,6 +33,11 @@ module PulpRpmClient
|
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
35
41
|
# Attribute type mapping.
|
36
42
|
def self.openapi_types
|
37
43
|
{
|
@@ -67,6 +73,8 @@ module PulpRpmClient
|
|
67
73
|
|
68
74
|
if attributes.key?(:'count')
|
69
75
|
self.count = attributes[:'count']
|
76
|
+
else
|
77
|
+
self.count = nil
|
70
78
|
end
|
71
79
|
|
72
80
|
if attributes.key?(:'_next')
|
@@ -81,12 +89,15 @@ module PulpRpmClient
|
|
81
89
|
if (value = attributes[:'results']).is_a?(Array)
|
82
90
|
self.results = value
|
83
91
|
end
|
92
|
+
else
|
93
|
+
self.results = nil
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
98
|
# @return Array for valid properties with the reasons
|
89
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
101
|
invalid_properties = Array.new
|
91
102
|
if @count.nil?
|
92
103
|
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
@@ -102,6 +113,7 @@ module PulpRpmClient
|
|
102
113
|
# Check to see if the all the properties in the model are valid
|
103
114
|
# @return true if the model is valid
|
104
115
|
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
105
117
|
return false if @count.nil?
|
106
118
|
return false if @results.nil?
|
107
119
|
true
|
@@ -134,37 +146,33 @@ module PulpRpmClient
|
|
134
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
135
147
|
# @return [Object] Returns the model itself
|
136
148
|
def self.build_from_hash(attributes)
|
137
|
-
new.build_from_hash(attributes)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Builds the object from hash
|
141
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
-
# @return [Object] Returns the model itself
|
143
|
-
def build_from_hash(attributes)
|
144
149
|
return nil unless attributes.is_a?(Hash)
|
145
|
-
|
146
|
-
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
156
|
# check to ensure the input is an array given that the attribute
|
148
157
|
# is documented as an array but the input is not
|
149
|
-
if attributes[
|
150
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
160
|
end
|
152
|
-
elsif !attributes[
|
153
|
-
|
154
|
-
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
155
164
|
end
|
156
|
-
|
157
|
-
self
|
165
|
+
new(transformed_hash)
|
158
166
|
end
|
159
167
|
|
160
168
|
# Deserializes the data based on type
|
161
169
|
# @param string type Data type
|
162
170
|
# @param string value Value to be deserialized
|
163
171
|
# @return [Object] Deserialized data
|
164
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
165
173
|
case type.to_sym
|
166
|
-
when :
|
167
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
168
176
|
when :Date
|
169
177
|
Date.parse(value)
|
170
178
|
when :String
|
@@ -194,7 +202,9 @@ module PulpRpmClient
|
|
194
202
|
end
|
195
203
|
end
|
196
204
|
else # model
|
197
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = PulpRpmClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
208
|
end
|
199
209
|
end
|
200
210
|
|
@@ -220,7 +230,7 @@ module PulpRpmClient
|
|
220
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
232
|
end
|
223
|
-
|
233
|
+
|
224
234
|
hash[param] = _to_hash(value)
|
225
235
|
end
|
226
236
|
hash
|
@@ -243,5 +253,7 @@ module PulpRpmClient
|
|
243
253
|
value
|
244
254
|
end
|
245
255
|
end
|
256
|
+
|
246
257
|
end
|
258
|
+
|
247
259
|
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 PulpRpmClient
|
16
17
|
class PaginatedrpmModulemdDefaultsResponseList
|
@@ -32,6 +33,11 @@ module PulpRpmClient
|
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
35
41
|
# Attribute type mapping.
|
36
42
|
def self.openapi_types
|
37
43
|
{
|
@@ -67,6 +73,8 @@ module PulpRpmClient
|
|
67
73
|
|
68
74
|
if attributes.key?(:'count')
|
69
75
|
self.count = attributes[:'count']
|
76
|
+
else
|
77
|
+
self.count = nil
|
70
78
|
end
|
71
79
|
|
72
80
|
if attributes.key?(:'_next')
|
@@ -81,12 +89,15 @@ module PulpRpmClient
|
|
81
89
|
if (value = attributes[:'results']).is_a?(Array)
|
82
90
|
self.results = value
|
83
91
|
end
|
92
|
+
else
|
93
|
+
self.results = nil
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
98
|
# @return Array for valid properties with the reasons
|
89
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
101
|
invalid_properties = Array.new
|
91
102
|
if @count.nil?
|
92
103
|
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
@@ -102,6 +113,7 @@ module PulpRpmClient
|
|
102
113
|
# Check to see if the all the properties in the model are valid
|
103
114
|
# @return true if the model is valid
|
104
115
|
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
105
117
|
return false if @count.nil?
|
106
118
|
return false if @results.nil?
|
107
119
|
true
|
@@ -134,37 +146,33 @@ module PulpRpmClient
|
|
134
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
135
147
|
# @return [Object] Returns the model itself
|
136
148
|
def self.build_from_hash(attributes)
|
137
|
-
new.build_from_hash(attributes)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Builds the object from hash
|
141
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
-
# @return [Object] Returns the model itself
|
143
|
-
def build_from_hash(attributes)
|
144
149
|
return nil unless attributes.is_a?(Hash)
|
145
|
-
|
146
|
-
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
156
|
# check to ensure the input is an array given that the attribute
|
148
157
|
# is documented as an array but the input is not
|
149
|
-
if attributes[
|
150
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
160
|
end
|
152
|
-
elsif !attributes[
|
153
|
-
|
154
|
-
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
155
164
|
end
|
156
|
-
|
157
|
-
self
|
165
|
+
new(transformed_hash)
|
158
166
|
end
|
159
167
|
|
160
168
|
# Deserializes the data based on type
|
161
169
|
# @param string type Data type
|
162
170
|
# @param string value Value to be deserialized
|
163
171
|
# @return [Object] Deserialized data
|
164
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
165
173
|
case type.to_sym
|
166
|
-
when :
|
167
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
168
176
|
when :Date
|
169
177
|
Date.parse(value)
|
170
178
|
when :String
|
@@ -194,7 +202,9 @@ module PulpRpmClient
|
|
194
202
|
end
|
195
203
|
end
|
196
204
|
else # model
|
197
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = PulpRpmClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
208
|
end
|
199
209
|
end
|
200
210
|
|
@@ -220,7 +230,7 @@ module PulpRpmClient
|
|
220
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
232
|
end
|
223
|
-
|
233
|
+
|
224
234
|
hash[param] = _to_hash(value)
|
225
235
|
end
|
226
236
|
hash
|
@@ -243,5 +253,7 @@ module PulpRpmClient
|
|
243
253
|
value
|
244
254
|
end
|
245
255
|
end
|
256
|
+
|
246
257
|
end
|
258
|
+
|
247
259
|
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 PulpRpmClient
|
16
17
|
class PaginatedrpmModulemdObsoleteResponseList
|
@@ -32,6 +33,11 @@ module PulpRpmClient
|
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
35
41
|
# Attribute type mapping.
|
36
42
|
def self.openapi_types
|
37
43
|
{
|
@@ -67,6 +73,8 @@ module PulpRpmClient
|
|
67
73
|
|
68
74
|
if attributes.key?(:'count')
|
69
75
|
self.count = attributes[:'count']
|
76
|
+
else
|
77
|
+
self.count = nil
|
70
78
|
end
|
71
79
|
|
72
80
|
if attributes.key?(:'_next')
|
@@ -81,12 +89,15 @@ module PulpRpmClient
|
|
81
89
|
if (value = attributes[:'results']).is_a?(Array)
|
82
90
|
self.results = value
|
83
91
|
end
|
92
|
+
else
|
93
|
+
self.results = nil
|
84
94
|
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
88
98
|
# @return Array for valid properties with the reasons
|
89
99
|
def list_invalid_properties
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
90
101
|
invalid_properties = Array.new
|
91
102
|
if @count.nil?
|
92
103
|
invalid_properties.push('invalid value for "count", count cannot be nil.')
|
@@ -102,6 +113,7 @@ module PulpRpmClient
|
|
102
113
|
# Check to see if the all the properties in the model are valid
|
103
114
|
# @return true if the model is valid
|
104
115
|
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
105
117
|
return false if @count.nil?
|
106
118
|
return false if @results.nil?
|
107
119
|
true
|
@@ -134,37 +146,33 @@ module PulpRpmClient
|
|
134
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
135
147
|
# @return [Object] Returns the model itself
|
136
148
|
def self.build_from_hash(attributes)
|
137
|
-
new.build_from_hash(attributes)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Builds the object from hash
|
141
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
-
# @return [Object] Returns the model itself
|
143
|
-
def build_from_hash(attributes)
|
144
149
|
return nil unless attributes.is_a?(Hash)
|
145
|
-
|
146
|
-
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
156
|
# check to ensure the input is an array given that the attribute
|
148
157
|
# is documented as an array but the input is not
|
149
|
-
if attributes[
|
150
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
151
160
|
end
|
152
|
-
elsif !attributes[
|
153
|
-
|
154
|
-
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
155
164
|
end
|
156
|
-
|
157
|
-
self
|
165
|
+
new(transformed_hash)
|
158
166
|
end
|
159
167
|
|
160
168
|
# Deserializes the data based on type
|
161
169
|
# @param string type Data type
|
162
170
|
# @param string value Value to be deserialized
|
163
171
|
# @return [Object] Deserialized data
|
164
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
165
173
|
case type.to_sym
|
166
|
-
when :
|
167
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
168
176
|
when :Date
|
169
177
|
Date.parse(value)
|
170
178
|
when :String
|
@@ -194,7 +202,9 @@ module PulpRpmClient
|
|
194
202
|
end
|
195
203
|
end
|
196
204
|
else # model
|
197
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = PulpRpmClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
208
|
end
|
199
209
|
end
|
200
210
|
|
@@ -220,7 +230,7 @@ module PulpRpmClient
|
|
220
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
232
|
end
|
223
|
-
|
233
|
+
|
224
234
|
hash[param] = _to_hash(value)
|
225
235
|
end
|
226
236
|
hash
|
@@ -243,5 +253,7 @@ module PulpRpmClient
|
|
243
253
|
value
|
244
254
|
end
|
245
255
|
end
|
256
|
+
|
246
257
|
end
|
258
|
+
|
247
259
|
end
|