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
|
# A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
|
@@ -208,13 +209,18 @@ module PulpRpmClient
|
|
208
209
|
}
|
209
210
|
end
|
210
211
|
|
212
|
+
# Returns all the JSON keys this model knows about
|
213
|
+
def self.acceptable_attributes
|
214
|
+
attribute_map.values
|
215
|
+
end
|
216
|
+
|
211
217
|
# Attribute type mapping.
|
212
218
|
def self.openapi_types
|
213
219
|
{
|
214
220
|
:'pulp_href' => :'String',
|
215
221
|
:'prn' => :'String',
|
216
|
-
:'pulp_created' => :'
|
217
|
-
:'pulp_last_updated' => :'
|
222
|
+
:'pulp_created' => :'Time',
|
223
|
+
:'pulp_last_updated' => :'Time',
|
218
224
|
:'md5' => :'String',
|
219
225
|
:'sha1' => :'String',
|
220
226
|
:'sha224' => :'String',
|
@@ -264,6 +270,16 @@ module PulpRpmClient
|
|
264
270
|
# List of attributes with nullable: true
|
265
271
|
def self.openapi_nullable
|
266
272
|
Set.new([
|
273
|
+
:'changelogs',
|
274
|
+
:'files',
|
275
|
+
:'requires',
|
276
|
+
:'provides',
|
277
|
+
:'conflicts',
|
278
|
+
:'obsoletes',
|
279
|
+
:'suggests',
|
280
|
+
:'enhances',
|
281
|
+
:'recommends',
|
282
|
+
:'supplements',
|
267
283
|
])
|
268
284
|
end
|
269
285
|
|
@@ -474,6 +490,7 @@ module PulpRpmClient
|
|
474
490
|
# Show invalid properties with the reasons. Usually used together with valid?
|
475
491
|
# @return Array for valid properties with the reasons
|
476
492
|
def list_invalid_properties
|
493
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
477
494
|
invalid_properties = Array.new
|
478
495
|
invalid_properties
|
479
496
|
end
|
@@ -481,6 +498,7 @@ module PulpRpmClient
|
|
481
498
|
# Check to see if the all the properties in the model are valid
|
482
499
|
# @return true if the model is valid
|
483
500
|
def valid?
|
501
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
484
502
|
true
|
485
503
|
end
|
486
504
|
|
@@ -554,37 +572,33 @@ module PulpRpmClient
|
|
554
572
|
# @param [Hash] attributes Model attributes in the form of hash
|
555
573
|
# @return [Object] Returns the model itself
|
556
574
|
def self.build_from_hash(attributes)
|
557
|
-
new.build_from_hash(attributes)
|
558
|
-
end
|
559
|
-
|
560
|
-
# Builds the object from hash
|
561
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
562
|
-
# @return [Object] Returns the model itself
|
563
|
-
def build_from_hash(attributes)
|
564
575
|
return nil unless attributes.is_a?(Hash)
|
565
|
-
|
566
|
-
|
576
|
+
attributes = attributes.transform_keys(&:to_sym)
|
577
|
+
transformed_hash = {}
|
578
|
+
openapi_types.each_pair do |key, type|
|
579
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
580
|
+
transformed_hash["#{key}"] = nil
|
581
|
+
elsif type =~ /\AArray<(.*)>/i
|
567
582
|
# check to ensure the input is an array given that the attribute
|
568
583
|
# is documented as an array but the input is not
|
569
|
-
if attributes[
|
570
|
-
|
584
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
585
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
571
586
|
end
|
572
|
-
elsif !attributes[
|
573
|
-
|
574
|
-
end
|
587
|
+
elsif !attributes[attribute_map[key]].nil?
|
588
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
589
|
+
end
|
575
590
|
end
|
576
|
-
|
577
|
-
self
|
591
|
+
new(transformed_hash)
|
578
592
|
end
|
579
593
|
|
580
594
|
# Deserializes the data based on type
|
581
595
|
# @param string type Data type
|
582
596
|
# @param string value Value to be deserialized
|
583
597
|
# @return [Object] Deserialized data
|
584
|
-
def _deserialize(type, value)
|
598
|
+
def self._deserialize(type, value)
|
585
599
|
case type.to_sym
|
586
|
-
when :
|
587
|
-
|
600
|
+
when :Time
|
601
|
+
Time.parse(value)
|
588
602
|
when :Date
|
589
603
|
Date.parse(value)
|
590
604
|
when :String
|
@@ -614,7 +628,9 @@ module PulpRpmClient
|
|
614
628
|
end
|
615
629
|
end
|
616
630
|
else # model
|
617
|
-
|
631
|
+
# models (e.g. Pet) or oneOf
|
632
|
+
klass = PulpRpmClient.const_get(type)
|
633
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
618
634
|
end
|
619
635
|
end
|
620
636
|
|
@@ -640,7 +656,7 @@ module PulpRpmClient
|
|
640
656
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
641
657
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
642
658
|
end
|
643
|
-
|
659
|
+
|
644
660
|
hash[param] = _to_hash(value)
|
645
661
|
end
|
646
662
|
hash
|
@@ -663,5 +679,7 @@ module PulpRpmClient
|
|
663
679
|
value
|
664
680
|
end
|
665
681
|
end
|
682
|
+
|
666
683
|
end
|
684
|
+
|
667
685
|
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
|
# RepoMetadataFile serializer.
|
@@ -80,13 +81,18 @@ module PulpRpmClient
|
|
80
81
|
}
|
81
82
|
end
|
82
83
|
|
84
|
+
# Returns all the JSON keys this model knows about
|
85
|
+
def self.acceptable_attributes
|
86
|
+
attribute_map.values
|
87
|
+
end
|
88
|
+
|
83
89
|
# Attribute type mapping.
|
84
90
|
def self.openapi_types
|
85
91
|
{
|
86
92
|
:'pulp_href' => :'String',
|
87
93
|
:'prn' => :'String',
|
88
|
-
:'pulp_created' => :'
|
89
|
-
:'pulp_last_updated' => :'
|
94
|
+
:'pulp_created' => :'Time',
|
95
|
+
:'pulp_last_updated' => :'Time',
|
90
96
|
:'md5' => :'String',
|
91
97
|
:'sha1' => :'String',
|
92
98
|
:'sha224' => :'String',
|
@@ -168,24 +174,33 @@ module PulpRpmClient
|
|
168
174
|
|
169
175
|
if attributes.key?(:'relative_path')
|
170
176
|
self.relative_path = attributes[:'relative_path']
|
177
|
+
else
|
178
|
+
self.relative_path = nil
|
171
179
|
end
|
172
180
|
|
173
181
|
if attributes.key?(:'data_type')
|
174
182
|
self.data_type = attributes[:'data_type']
|
183
|
+
else
|
184
|
+
self.data_type = nil
|
175
185
|
end
|
176
186
|
|
177
187
|
if attributes.key?(:'checksum_type')
|
178
188
|
self.checksum_type = attributes[:'checksum_type']
|
189
|
+
else
|
190
|
+
self.checksum_type = nil
|
179
191
|
end
|
180
192
|
|
181
193
|
if attributes.key?(:'checksum')
|
182
194
|
self.checksum = attributes[:'checksum']
|
195
|
+
else
|
196
|
+
self.checksum = nil
|
183
197
|
end
|
184
198
|
end
|
185
199
|
|
186
200
|
# Show invalid properties with the reasons. Usually used together with valid?
|
187
201
|
# @return Array for valid properties with the reasons
|
188
202
|
def list_invalid_properties
|
203
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
189
204
|
invalid_properties = Array.new
|
190
205
|
if @relative_path.nil?
|
191
206
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
@@ -209,6 +224,7 @@ module PulpRpmClient
|
|
209
224
|
# Check to see if the all the properties in the model are valid
|
210
225
|
# @return true if the model is valid
|
211
226
|
def valid?
|
227
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
212
228
|
return false if @relative_path.nil?
|
213
229
|
return false if @data_type.nil?
|
214
230
|
return false if @checksum_type.nil?
|
@@ -254,37 +270,33 @@ module PulpRpmClient
|
|
254
270
|
# @param [Hash] attributes Model attributes in the form of hash
|
255
271
|
# @return [Object] Returns the model itself
|
256
272
|
def self.build_from_hash(attributes)
|
257
|
-
new.build_from_hash(attributes)
|
258
|
-
end
|
259
|
-
|
260
|
-
# Builds the object from hash
|
261
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
262
|
-
# @return [Object] Returns the model itself
|
263
|
-
def build_from_hash(attributes)
|
264
273
|
return nil unless attributes.is_a?(Hash)
|
265
|
-
|
266
|
-
|
274
|
+
attributes = attributes.transform_keys(&:to_sym)
|
275
|
+
transformed_hash = {}
|
276
|
+
openapi_types.each_pair do |key, type|
|
277
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
278
|
+
transformed_hash["#{key}"] = nil
|
279
|
+
elsif type =~ /\AArray<(.*)>/i
|
267
280
|
# check to ensure the input is an array given that the attribute
|
268
281
|
# is documented as an array but the input is not
|
269
|
-
if attributes[
|
270
|
-
|
282
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
283
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
271
284
|
end
|
272
|
-
elsif !attributes[
|
273
|
-
|
274
|
-
end
|
285
|
+
elsif !attributes[attribute_map[key]].nil?
|
286
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
287
|
+
end
|
275
288
|
end
|
276
|
-
|
277
|
-
self
|
289
|
+
new(transformed_hash)
|
278
290
|
end
|
279
291
|
|
280
292
|
# Deserializes the data based on type
|
281
293
|
# @param string type Data type
|
282
294
|
# @param string value Value to be deserialized
|
283
295
|
# @return [Object] Deserialized data
|
284
|
-
def _deserialize(type, value)
|
296
|
+
def self._deserialize(type, value)
|
285
297
|
case type.to_sym
|
286
|
-
when :
|
287
|
-
|
298
|
+
when :Time
|
299
|
+
Time.parse(value)
|
288
300
|
when :Date
|
289
301
|
Date.parse(value)
|
290
302
|
when :String
|
@@ -314,7 +326,9 @@ module PulpRpmClient
|
|
314
326
|
end
|
315
327
|
end
|
316
328
|
else # model
|
317
|
-
|
329
|
+
# models (e.g. Pet) or oneOf
|
330
|
+
klass = PulpRpmClient.const_get(type)
|
331
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
318
332
|
end
|
319
333
|
end
|
320
334
|
|
@@ -340,7 +354,7 @@ module PulpRpmClient
|
|
340
354
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
341
355
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
342
356
|
end
|
343
|
-
|
357
|
+
|
344
358
|
hash[param] = _to_hash(value)
|
345
359
|
end
|
346
360
|
hash
|
@@ -363,5 +377,7 @@ module PulpRpmClient
|
|
363
377
|
value
|
364
378
|
end
|
365
379
|
end
|
380
|
+
|
366
381
|
end
|
382
|
+
|
367
383
|
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
|
# Serializer for RPM Sync.
|
@@ -30,6 +31,28 @@ module PulpRpmClient
|
|
30
31
|
# Whether or not to optimize sync.
|
31
32
|
attr_accessor :optimize
|
32
33
|
|
34
|
+
class EnumAttributeValidator
|
35
|
+
attr_reader :datatype
|
36
|
+
attr_reader :allowable_values
|
37
|
+
|
38
|
+
def initialize(datatype, allowable_values)
|
39
|
+
@allowable_values = allowable_values.map do |value|
|
40
|
+
case datatype.to_s
|
41
|
+
when /Integer/i
|
42
|
+
value.to_i
|
43
|
+
when /Float/i
|
44
|
+
value.to_f
|
45
|
+
else
|
46
|
+
value
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def valid?(value)
|
52
|
+
!value || allowable_values.include?(value)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
33
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
57
|
def self.attribute_map
|
35
58
|
{
|
@@ -41,6 +64,11 @@ module PulpRpmClient
|
|
41
64
|
}
|
42
65
|
end
|
43
66
|
|
67
|
+
# Returns all the JSON keys this model knows about
|
68
|
+
def self.acceptable_attributes
|
69
|
+
attribute_map.values
|
70
|
+
end
|
71
|
+
|
44
72
|
# Attribute type mapping.
|
45
73
|
def self.openapi_types
|
46
74
|
{
|
@@ -103,6 +131,7 @@ module PulpRpmClient
|
|
103
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
104
132
|
# @return Array for valid properties with the reasons
|
105
133
|
def list_invalid_properties
|
134
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
106
135
|
invalid_properties = Array.new
|
107
136
|
invalid_properties
|
108
137
|
end
|
@@ -110,6 +139,7 @@ module PulpRpmClient
|
|
110
139
|
# Check to see if the all the properties in the model are valid
|
111
140
|
# @return true if the model is valid
|
112
141
|
def valid?
|
142
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
113
143
|
true
|
114
144
|
end
|
115
145
|
|
@@ -141,37 +171,33 @@ module PulpRpmClient
|
|
141
171
|
# @param [Hash] attributes Model attributes in the form of hash
|
142
172
|
# @return [Object] Returns the model itself
|
143
173
|
def self.build_from_hash(attributes)
|
144
|
-
new.build_from_hash(attributes)
|
145
|
-
end
|
146
|
-
|
147
|
-
# Builds the object from hash
|
148
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
-
# @return [Object] Returns the model itself
|
150
|
-
def build_from_hash(attributes)
|
151
174
|
return nil unless attributes.is_a?(Hash)
|
152
|
-
|
153
|
-
|
175
|
+
attributes = attributes.transform_keys(&:to_sym)
|
176
|
+
transformed_hash = {}
|
177
|
+
openapi_types.each_pair do |key, type|
|
178
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
179
|
+
transformed_hash["#{key}"] = nil
|
180
|
+
elsif type =~ /\AArray<(.*)>/i
|
154
181
|
# check to ensure the input is an array given that the attribute
|
155
182
|
# is documented as an array but the input is not
|
156
|
-
if attributes[
|
157
|
-
|
183
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
184
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
158
185
|
end
|
159
|
-
elsif !attributes[
|
160
|
-
|
161
|
-
end
|
186
|
+
elsif !attributes[attribute_map[key]].nil?
|
187
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
188
|
+
end
|
162
189
|
end
|
163
|
-
|
164
|
-
self
|
190
|
+
new(transformed_hash)
|
165
191
|
end
|
166
192
|
|
167
193
|
# Deserializes the data based on type
|
168
194
|
# @param string type Data type
|
169
195
|
# @param string value Value to be deserialized
|
170
196
|
# @return [Object] Deserialized data
|
171
|
-
def _deserialize(type, value)
|
197
|
+
def self._deserialize(type, value)
|
172
198
|
case type.to_sym
|
173
|
-
when :
|
174
|
-
|
199
|
+
when :Time
|
200
|
+
Time.parse(value)
|
175
201
|
when :Date
|
176
202
|
Date.parse(value)
|
177
203
|
when :String
|
@@ -201,7 +227,9 @@ module PulpRpmClient
|
|
201
227
|
end
|
202
228
|
end
|
203
229
|
else # model
|
204
|
-
|
230
|
+
# models (e.g. Pet) or oneOf
|
231
|
+
klass = PulpRpmClient.const_get(type)
|
232
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
233
|
end
|
206
234
|
end
|
207
235
|
|
@@ -227,7 +255,7 @@ module PulpRpmClient
|
|
227
255
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
256
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
257
|
end
|
230
|
-
|
258
|
+
|
231
259
|
hash[param] = _to_hash(value)
|
232
260
|
end
|
233
261
|
hash
|
@@ -250,5 +278,7 @@ module PulpRpmClient
|
|
250
278
|
value
|
251
279
|
end
|
252
280
|
end
|
281
|
+
|
253
282
|
end
|
283
|
+
|
254
284
|
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
|
# Serializer for RPM alternate content source.
|
@@ -37,11 +38,16 @@ module PulpRpmClient
|
|
37
38
|
}
|
38
39
|
end
|
39
40
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
40
46
|
# Attribute type mapping.
|
41
47
|
def self.openapi_types
|
42
48
|
{
|
43
49
|
:'name' => :'String',
|
44
|
-
:'last_refreshed' => :'
|
50
|
+
:'last_refreshed' => :'Time',
|
45
51
|
:'paths' => :'Array<String>',
|
46
52
|
:'remote' => :'String'
|
47
53
|
}
|
@@ -71,6 +77,8 @@ module PulpRpmClient
|
|
71
77
|
|
72
78
|
if attributes.key?(:'name')
|
73
79
|
self.name = attributes[:'name']
|
80
|
+
else
|
81
|
+
self.name = nil
|
74
82
|
end
|
75
83
|
|
76
84
|
if attributes.key?(:'last_refreshed')
|
@@ -85,12 +93,15 @@ module PulpRpmClient
|
|
85
93
|
|
86
94
|
if attributes.key?(:'remote')
|
87
95
|
self.remote = attributes[:'remote']
|
96
|
+
else
|
97
|
+
self.remote = nil
|
88
98
|
end
|
89
99
|
end
|
90
100
|
|
91
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
102
|
# @return Array for valid properties with the reasons
|
93
103
|
def list_invalid_properties
|
104
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
94
105
|
invalid_properties = Array.new
|
95
106
|
if @name.nil?
|
96
107
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -110,6 +121,7 @@ module PulpRpmClient
|
|
110
121
|
# Check to see if the all the properties in the model are valid
|
111
122
|
# @return true if the model is valid
|
112
123
|
def valid?
|
124
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
113
125
|
return false if @name.nil?
|
114
126
|
return false if @name.to_s.length < 1
|
115
127
|
return false if @remote.nil?
|
@@ -157,37 +169,33 @@ module PulpRpmClient
|
|
157
169
|
# @param [Hash] attributes Model attributes in the form of hash
|
158
170
|
# @return [Object] Returns the model itself
|
159
171
|
def self.build_from_hash(attributes)
|
160
|
-
new.build_from_hash(attributes)
|
161
|
-
end
|
162
|
-
|
163
|
-
# Builds the object from hash
|
164
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
165
|
-
# @return [Object] Returns the model itself
|
166
|
-
def build_from_hash(attributes)
|
167
172
|
return nil unless attributes.is_a?(Hash)
|
168
|
-
|
169
|
-
|
173
|
+
attributes = attributes.transform_keys(&:to_sym)
|
174
|
+
transformed_hash = {}
|
175
|
+
openapi_types.each_pair do |key, type|
|
176
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
177
|
+
transformed_hash["#{key}"] = nil
|
178
|
+
elsif type =~ /\AArray<(.*)>/i
|
170
179
|
# check to ensure the input is an array given that the attribute
|
171
180
|
# is documented as an array but the input is not
|
172
|
-
if attributes[
|
173
|
-
|
181
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
182
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
174
183
|
end
|
175
|
-
elsif !attributes[
|
176
|
-
|
177
|
-
end
|
184
|
+
elsif !attributes[attribute_map[key]].nil?
|
185
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
186
|
+
end
|
178
187
|
end
|
179
|
-
|
180
|
-
self
|
188
|
+
new(transformed_hash)
|
181
189
|
end
|
182
190
|
|
183
191
|
# Deserializes the data based on type
|
184
192
|
# @param string type Data type
|
185
193
|
# @param string value Value to be deserialized
|
186
194
|
# @return [Object] Deserialized data
|
187
|
-
def _deserialize(type, value)
|
195
|
+
def self._deserialize(type, value)
|
188
196
|
case type.to_sym
|
189
|
-
when :
|
190
|
-
|
197
|
+
when :Time
|
198
|
+
Time.parse(value)
|
191
199
|
when :Date
|
192
200
|
Date.parse(value)
|
193
201
|
when :String
|
@@ -217,7 +225,9 @@ module PulpRpmClient
|
|
217
225
|
end
|
218
226
|
end
|
219
227
|
else # model
|
220
|
-
|
228
|
+
# models (e.g. Pet) or oneOf
|
229
|
+
klass = PulpRpmClient.const_get(type)
|
230
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
221
231
|
end
|
222
232
|
end
|
223
233
|
|
@@ -243,7 +253,7 @@ module PulpRpmClient
|
|
243
253
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
254
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
245
255
|
end
|
246
|
-
|
256
|
+
|
247
257
|
hash[param] = _to_hash(value)
|
248
258
|
end
|
249
259
|
hash
|
@@ -266,5 +276,7 @@ module PulpRpmClient
|
|
266
276
|
value
|
267
277
|
end
|
268
278
|
end
|
279
|
+
|
269
280
|
end
|
281
|
+
|
270
282
|
end
|