pulp_rpm_client 3.27.1 → 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 +11 -10
- data/docs/AcsRpmApi.md +346 -157
- data/docs/AddonResponse.md +16 -15
- data/docs/ArtifactResponse.md +30 -27
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ChecksumResponse.md +10 -9
- data/docs/CompressionTypeEnum.md +4 -5
- data/docs/ContentAdvisoriesApi.md +132 -78
- data/docs/ContentDistributionTreesApi.md +84 -49
- data/docs/ContentModulemdDefaultsApi.md +119 -67
- data/docs/ContentModulemdObsoletesApi.md +112 -60
- data/docs/ContentModulemdsApi.md +128 -76
- data/docs/ContentPackagecategoriesApi.md +84 -49
- data/docs/ContentPackageenvironmentsApi.md +84 -49
- data/docs/ContentPackagegroupsApi.md +84 -49
- data/docs/ContentPackagelangpacksApi.md +84 -49
- data/docs/ContentPackagesApi.md +155 -101
- data/docs/ContentRepoMetadataFilesApi.md +84 -49
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +10 -9
- data/docs/DistributionsRpmApi.md +388 -183
- 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 +271 -132
- data/docs/RemotesRpmApi.md +392 -185
- data/docs/RemotesUlnApi.md +392 -185
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesRpmApi.md +449 -210
- data/docs/RepositoriesRpmVersionsApi.md +155 -83
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/RpmCompsApi.md +33 -17
- data/docs/RpmCopyApi.md +31 -15
- data/docs/RpmDistributionTreeResponse.md +46 -43
- data/docs/RpmModulemd.md +32 -31
- data/docs/RpmModulemdDefaults.md +16 -15
- data/docs/RpmModulemdDefaultsResponse.md +20 -17
- data/docs/RpmModulemdObsolete.md +28 -27
- data/docs/RpmModulemdObsoleteResponse.md +32 -29
- data/docs/RpmModulemdResponse.md +36 -33
- data/docs/RpmPackageCategoryResponse.md +30 -27
- data/docs/RpmPackageEnvironmentResponse.md +32 -29
- data/docs/RpmPackageGroupResponse.md +36 -33
- data/docs/RpmPackageLangpacksResponse.md +18 -15
- data/docs/RpmPackageResponse.md +100 -97
- data/docs/RpmPruneApi.md +31 -14
- data/docs/RpmRepoMetadataFileResponse.md +36 -33
- data/docs/RpmRepositorySyncURL.md +16 -15
- data/docs/RpmRpmAlternateContentSource.md +14 -13
- data/docs/RpmRpmAlternateContentSourceResponse.md +22 -19
- data/docs/RpmRpmDistribution.md +22 -21
- data/docs/RpmRpmDistributionResponse.md +34 -29
- data/docs/RpmRpmPublication.md +24 -23
- data/docs/RpmRpmPublicationResponse.md +34 -31
- data/docs/RpmRpmRemote.md +50 -49
- data/docs/RpmRpmRemoteResponse.md +50 -47
- data/docs/RpmRpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/RpmRpmRepository.md +40 -39
- data/docs/RpmRpmRepositoryResponse.md +54 -51
- data/docs/RpmUlnRemote.md +50 -49
- data/docs/RpmUlnRemoteResponse.md +50 -47
- data/docs/RpmUpdateCollection.md +12 -11
- data/docs/RpmUpdateCollectionResponse.md +14 -13
- data/docs/RpmUpdateRecordResponse.md +50 -47
- 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 +81 -52
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +38 -22
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packages_api.rb +38 -22
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +22 -17
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +94 -58
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +81 -58
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +109 -70
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +109 -70
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +116 -72
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +50 -37
- 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 +46 -26
- 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 +35 -29
- 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 +62 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +69 -26
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +72 -26
- 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 +31 -23
- data/lib/pulp_rpm_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +77 -23
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +53 -25
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +40 -28
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +51 -31
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +55 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +61 -25
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +64 -28
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +62 -28
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +65 -29
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +62 -28
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +48 -26
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +63 -35
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +51 -25
- 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 +48 -26
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +57 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +54 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +67 -26
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +56 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +70 -26
- 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 +66 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +79 -28
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +60 -22
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +70 -26
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +37 -23
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +37 -23
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +43 -25
- 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 +14 -13
- data/spec/api/content_advisories_api_spec.rb +10 -8
- data/spec/api/content_distribution_trees_api_spec.rb +8 -7
- data/spec/api/content_modulemd_defaults_api_spec.rb +9 -8
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +9 -8
- data/spec/api/content_modulemds_api_spec.rb +9 -8
- data/spec/api/content_packagecategories_api_spec.rb +8 -7
- data/spec/api/content_packageenvironments_api_spec.rb +8 -7
- data/spec/api/content_packagegroups_api_spec.rb +8 -7
- data/spec/api/content_packagelangpacks_api_spec.rb +8 -7
- data/spec/api/content_packages_api_spec.rb +10 -8
- data/spec/api/content_repo_metadata_files_api_spec.rb +8 -7
- data/spec/api/distributions_rpm_api_spec.rb +15 -14
- data/spec/api/publications_rpm_api_spec.rb +22 -20
- data/spec/api/remotes_rpm_api_spec.rb +22 -20
- data/spec/api/remotes_uln_api_spec.rb +22 -20
- data/spec/api/repositories_rpm_api_spec.rb +19 -18
- data/spec/api/repositories_rpm_versions_api_spec.rb +16 -14
- 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 +23 -22
- 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 +19 -18
- data/spec/models/rpm_distribution_tree_response_spec.rb +31 -30
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +18 -17
- data/spec/models/rpm_modulemd_defaults_spec.rb +11 -16
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +24 -23
- data/spec/models/rpm_modulemd_obsolete_spec.rb +17 -22
- data/spec/models/rpm_modulemd_response_spec.rb +26 -25
- data/spec/models/rpm_modulemd_spec.rb +19 -24
- data/spec/models/rpm_package_category_response_spec.rb +23 -22
- data/spec/models/rpm_package_environment_response_spec.rb +24 -23
- data/spec/models/rpm_package_group_response_spec.rb +26 -25
- data/spec/models/rpm_package_langpacks_response_spec.rb +17 -16
- data/spec/models/rpm_package_response_spec.rb +58 -57
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +26 -25
- data/spec/models/rpm_repository_sync_url_spec.rb +11 -16
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +19 -18
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/rpm_rpm_distribution_response_spec.rb +30 -23
- data/spec/models/rpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/rpm_rpm_publication_response_spec.rb +25 -24
- 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 +33 -32
- data/spec/models/rpm_rpm_remote_spec.rb +28 -33
- data/spec/models/rpm_rpm_repository_response_spec.rb +35 -34
- data/spec/models/rpm_rpm_repository_spec.rb +23 -28
- data/spec/models/rpm_uln_remote_response_spec.rb +33 -32
- 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 +33 -32
- 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 +133 -121
- data/docs/CompsXml.md +0 -21
- data/docs/RpmPackage.md +0 -25
- data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
- data/docs/RpmUpdateRecord.md +0 -21
- data/lib/pulp_rpm_client/models/comps_xml.rb +0 -233
- data/lib/pulp_rpm_client/models/rpm_package.rb +0 -263
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +0 -228
- 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 -65
- data/spec/models/rpm_update_record_spec.rb +0 -53
@@ -6,17 +6,21 @@
|
|
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
|
# PackageEnvironment serializer.
|
17
18
|
class RpmPackageEnvironmentResponse
|
18
19
|
attr_accessor :pulp_href
|
19
20
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
20
24
|
# Timestamp of creation.
|
21
25
|
attr_accessor :pulp_created
|
22
26
|
|
@@ -54,6 +58,7 @@ module PulpRpmClient
|
|
54
58
|
def self.attribute_map
|
55
59
|
{
|
56
60
|
:'pulp_href' => :'pulp_href',
|
61
|
+
:'prn' => :'prn',
|
57
62
|
:'pulp_created' => :'pulp_created',
|
58
63
|
:'pulp_last_updated' => :'pulp_last_updated',
|
59
64
|
:'id' => :'id',
|
@@ -68,20 +73,26 @@ module PulpRpmClient
|
|
68
73
|
}
|
69
74
|
end
|
70
75
|
|
76
|
+
# Returns all the JSON keys this model knows about
|
77
|
+
def self.acceptable_attributes
|
78
|
+
attribute_map.values
|
79
|
+
end
|
80
|
+
|
71
81
|
# Attribute type mapping.
|
72
82
|
def self.openapi_types
|
73
83
|
{
|
74
84
|
:'pulp_href' => :'String',
|
75
|
-
:'
|
76
|
-
:'
|
85
|
+
:'prn' => :'String',
|
86
|
+
:'pulp_created' => :'Time',
|
87
|
+
:'pulp_last_updated' => :'Time',
|
77
88
|
:'id' => :'String',
|
78
89
|
:'name' => :'String',
|
79
90
|
:'description' => :'String',
|
80
91
|
:'display_order' => :'Integer',
|
81
|
-
:'group_ids' => :'
|
82
|
-
:'option_ids' => :'
|
83
|
-
:'desc_by_lang' => :'
|
84
|
-
:'name_by_lang' => :'
|
92
|
+
:'group_ids' => :'Object',
|
93
|
+
:'option_ids' => :'Object',
|
94
|
+
:'desc_by_lang' => :'Object',
|
95
|
+
:'name_by_lang' => :'Object',
|
85
96
|
:'digest' => :'String'
|
86
97
|
}
|
87
98
|
end
|
@@ -116,6 +127,10 @@ module PulpRpmClient
|
|
116
127
|
self.pulp_href = attributes[:'pulp_href']
|
117
128
|
end
|
118
129
|
|
130
|
+
if attributes.key?(:'prn')
|
131
|
+
self.prn = attributes[:'prn']
|
132
|
+
end
|
133
|
+
|
119
134
|
if attributes.key?(:'pulp_created')
|
120
135
|
self.pulp_created = attributes[:'pulp_created']
|
121
136
|
end
|
@@ -126,44 +141,63 @@ module PulpRpmClient
|
|
126
141
|
|
127
142
|
if attributes.key?(:'id')
|
128
143
|
self.id = attributes[:'id']
|
144
|
+
else
|
145
|
+
self.id = nil
|
129
146
|
end
|
130
147
|
|
131
148
|
if attributes.key?(:'name')
|
132
149
|
self.name = attributes[:'name']
|
150
|
+
else
|
151
|
+
self.name = nil
|
133
152
|
end
|
134
153
|
|
135
154
|
if attributes.key?(:'description')
|
136
155
|
self.description = attributes[:'description']
|
156
|
+
else
|
157
|
+
self.description = nil
|
137
158
|
end
|
138
159
|
|
139
160
|
if attributes.key?(:'display_order')
|
140
161
|
self.display_order = attributes[:'display_order']
|
162
|
+
else
|
163
|
+
self.display_order = nil
|
141
164
|
end
|
142
165
|
|
143
166
|
if attributes.key?(:'group_ids')
|
144
167
|
self.group_ids = attributes[:'group_ids']
|
168
|
+
else
|
169
|
+
self.group_ids = nil
|
145
170
|
end
|
146
171
|
|
147
172
|
if attributes.key?(:'option_ids')
|
148
173
|
self.option_ids = attributes[:'option_ids']
|
174
|
+
else
|
175
|
+
self.option_ids = nil
|
149
176
|
end
|
150
177
|
|
151
178
|
if attributes.key?(:'desc_by_lang')
|
152
179
|
self.desc_by_lang = attributes[:'desc_by_lang']
|
180
|
+
else
|
181
|
+
self.desc_by_lang = nil
|
153
182
|
end
|
154
183
|
|
155
184
|
if attributes.key?(:'name_by_lang')
|
156
185
|
self.name_by_lang = attributes[:'name_by_lang']
|
186
|
+
else
|
187
|
+
self.name_by_lang = nil
|
157
188
|
end
|
158
189
|
|
159
190
|
if attributes.key?(:'digest')
|
160
191
|
self.digest = attributes[:'digest']
|
192
|
+
else
|
193
|
+
self.digest = nil
|
161
194
|
end
|
162
195
|
end
|
163
196
|
|
164
197
|
# Show invalid properties with the reasons. Usually used together with valid?
|
165
198
|
# @return Array for valid properties with the reasons
|
166
199
|
def list_invalid_properties
|
200
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
167
201
|
invalid_properties = Array.new
|
168
202
|
if @id.nil?
|
169
203
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
@@ -187,6 +221,7 @@ module PulpRpmClient
|
|
187
221
|
# Check to see if the all the properties in the model are valid
|
188
222
|
# @return true if the model is valid
|
189
223
|
def valid?
|
224
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
190
225
|
return false if @id.nil?
|
191
226
|
return false if @name.nil?
|
192
227
|
return false if @description.nil?
|
@@ -200,6 +235,7 @@ module PulpRpmClient
|
|
200
235
|
return true if self.equal?(o)
|
201
236
|
self.class == o.class &&
|
202
237
|
pulp_href == o.pulp_href &&
|
238
|
+
prn == o.prn &&
|
203
239
|
pulp_created == o.pulp_created &&
|
204
240
|
pulp_last_updated == o.pulp_last_updated &&
|
205
241
|
id == o.id &&
|
@@ -222,44 +258,40 @@ module PulpRpmClient
|
|
222
258
|
# Calculates hash code according to all attributes.
|
223
259
|
# @return [Integer] Hash code
|
224
260
|
def hash
|
225
|
-
[pulp_href, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
|
261
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
|
226
262
|
end
|
227
263
|
|
228
264
|
# Builds the object from hash
|
229
265
|
# @param [Hash] attributes Model attributes in the form of hash
|
230
266
|
# @return [Object] Returns the model itself
|
231
267
|
def self.build_from_hash(attributes)
|
232
|
-
new.build_from_hash(attributes)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Builds the object from hash
|
236
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
237
|
-
# @return [Object] Returns the model itself
|
238
|
-
def build_from_hash(attributes)
|
239
268
|
return nil unless attributes.is_a?(Hash)
|
240
|
-
|
241
|
-
|
269
|
+
attributes = attributes.transform_keys(&:to_sym)
|
270
|
+
transformed_hash = {}
|
271
|
+
openapi_types.each_pair do |key, type|
|
272
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
273
|
+
transformed_hash["#{key}"] = nil
|
274
|
+
elsif type =~ /\AArray<(.*)>/i
|
242
275
|
# check to ensure the input is an array given that the attribute
|
243
276
|
# is documented as an array but the input is not
|
244
|
-
if attributes[
|
245
|
-
|
277
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
278
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
246
279
|
end
|
247
|
-
elsif !attributes[
|
248
|
-
|
249
|
-
end
|
280
|
+
elsif !attributes[attribute_map[key]].nil?
|
281
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
282
|
+
end
|
250
283
|
end
|
251
|
-
|
252
|
-
self
|
284
|
+
new(transformed_hash)
|
253
285
|
end
|
254
286
|
|
255
287
|
# Deserializes the data based on type
|
256
288
|
# @param string type Data type
|
257
289
|
# @param string value Value to be deserialized
|
258
290
|
# @return [Object] Deserialized data
|
259
|
-
def _deserialize(type, value)
|
291
|
+
def self._deserialize(type, value)
|
260
292
|
case type.to_sym
|
261
|
-
when :
|
262
|
-
|
293
|
+
when :Time
|
294
|
+
Time.parse(value)
|
263
295
|
when :Date
|
264
296
|
Date.parse(value)
|
265
297
|
when :String
|
@@ -289,7 +321,9 @@ module PulpRpmClient
|
|
289
321
|
end
|
290
322
|
end
|
291
323
|
else # model
|
292
|
-
|
324
|
+
# models (e.g. Pet) or oneOf
|
325
|
+
klass = PulpRpmClient.const_get(type)
|
326
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
293
327
|
end
|
294
328
|
end
|
295
329
|
|
@@ -315,7 +349,7 @@ module PulpRpmClient
|
|
315
349
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
316
350
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
317
351
|
end
|
318
|
-
|
352
|
+
|
319
353
|
hash[param] = _to_hash(value)
|
320
354
|
end
|
321
355
|
hash
|
@@ -338,5 +372,7 @@ module PulpRpmClient
|
|
338
372
|
value
|
339
373
|
end
|
340
374
|
end
|
375
|
+
|
341
376
|
end
|
377
|
+
|
342
378
|
end
|
@@ -6,17 +6,21 @@
|
|
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
|
# PackageGroup serializer.
|
17
18
|
class RpmPackageGroupResponse
|
18
19
|
attr_accessor :pulp_href
|
19
20
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
20
24
|
# Timestamp of creation.
|
21
25
|
attr_accessor :pulp_created
|
22
26
|
|
@@ -60,6 +64,7 @@ module PulpRpmClient
|
|
60
64
|
def self.attribute_map
|
61
65
|
{
|
62
66
|
:'pulp_href' => :'pulp_href',
|
67
|
+
:'prn' => :'prn',
|
63
68
|
:'pulp_created' => :'pulp_created',
|
64
69
|
:'pulp_last_updated' => :'pulp_last_updated',
|
65
70
|
:'id' => :'id',
|
@@ -76,22 +81,28 @@ module PulpRpmClient
|
|
76
81
|
}
|
77
82
|
end
|
78
83
|
|
84
|
+
# Returns all the JSON keys this model knows about
|
85
|
+
def self.acceptable_attributes
|
86
|
+
attribute_map.values
|
87
|
+
end
|
88
|
+
|
79
89
|
# Attribute type mapping.
|
80
90
|
def self.openapi_types
|
81
91
|
{
|
82
92
|
:'pulp_href' => :'String',
|
83
|
-
:'
|
84
|
-
:'
|
93
|
+
:'prn' => :'String',
|
94
|
+
:'pulp_created' => :'Time',
|
95
|
+
:'pulp_last_updated' => :'Time',
|
85
96
|
:'id' => :'String',
|
86
97
|
:'default' => :'Boolean',
|
87
98
|
:'user_visible' => :'Boolean',
|
88
99
|
:'display_order' => :'Integer',
|
89
100
|
:'name' => :'String',
|
90
101
|
:'description' => :'String',
|
91
|
-
:'packages' => :'
|
102
|
+
:'packages' => :'Object',
|
92
103
|
:'biarch_only' => :'Boolean',
|
93
|
-
:'desc_by_lang' => :'
|
94
|
-
:'name_by_lang' => :'
|
104
|
+
:'desc_by_lang' => :'Object',
|
105
|
+
:'name_by_lang' => :'Object',
|
95
106
|
:'digest' => :'String'
|
96
107
|
}
|
97
108
|
end
|
@@ -125,6 +136,10 @@ module PulpRpmClient
|
|
125
136
|
self.pulp_href = attributes[:'pulp_href']
|
126
137
|
end
|
127
138
|
|
139
|
+
if attributes.key?(:'prn')
|
140
|
+
self.prn = attributes[:'prn']
|
141
|
+
end
|
142
|
+
|
128
143
|
if attributes.key?(:'pulp_created')
|
129
144
|
self.pulp_created = attributes[:'pulp_created']
|
130
145
|
end
|
@@ -135,6 +150,8 @@ module PulpRpmClient
|
|
135
150
|
|
136
151
|
if attributes.key?(:'id')
|
137
152
|
self.id = attributes[:'id']
|
153
|
+
else
|
154
|
+
self.id = nil
|
138
155
|
end
|
139
156
|
|
140
157
|
if attributes.key?(:'default')
|
@@ -147,18 +164,26 @@ module PulpRpmClient
|
|
147
164
|
|
148
165
|
if attributes.key?(:'display_order')
|
149
166
|
self.display_order = attributes[:'display_order']
|
167
|
+
else
|
168
|
+
self.display_order = nil
|
150
169
|
end
|
151
170
|
|
152
171
|
if attributes.key?(:'name')
|
153
172
|
self.name = attributes[:'name']
|
173
|
+
else
|
174
|
+
self.name = nil
|
154
175
|
end
|
155
176
|
|
156
177
|
if attributes.key?(:'description')
|
157
178
|
self.description = attributes[:'description']
|
179
|
+
else
|
180
|
+
self.description = nil
|
158
181
|
end
|
159
182
|
|
160
183
|
if attributes.key?(:'packages')
|
161
184
|
self.packages = attributes[:'packages']
|
185
|
+
else
|
186
|
+
self.packages = nil
|
162
187
|
end
|
163
188
|
|
164
189
|
if attributes.key?(:'biarch_only')
|
@@ -167,20 +192,27 @@ module PulpRpmClient
|
|
167
192
|
|
168
193
|
if attributes.key?(:'desc_by_lang')
|
169
194
|
self.desc_by_lang = attributes[:'desc_by_lang']
|
195
|
+
else
|
196
|
+
self.desc_by_lang = nil
|
170
197
|
end
|
171
198
|
|
172
199
|
if attributes.key?(:'name_by_lang')
|
173
200
|
self.name_by_lang = attributes[:'name_by_lang']
|
201
|
+
else
|
202
|
+
self.name_by_lang = nil
|
174
203
|
end
|
175
204
|
|
176
205
|
if attributes.key?(:'digest')
|
177
206
|
self.digest = attributes[:'digest']
|
207
|
+
else
|
208
|
+
self.digest = nil
|
178
209
|
end
|
179
210
|
end
|
180
211
|
|
181
212
|
# Show invalid properties with the reasons. Usually used together with valid?
|
182
213
|
# @return Array for valid properties with the reasons
|
183
214
|
def list_invalid_properties
|
215
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
184
216
|
invalid_properties = Array.new
|
185
217
|
if @id.nil?
|
186
218
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
@@ -204,6 +236,7 @@ module PulpRpmClient
|
|
204
236
|
# Check to see if the all the properties in the model are valid
|
205
237
|
# @return true if the model is valid
|
206
238
|
def valid?
|
239
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
207
240
|
return false if @id.nil?
|
208
241
|
return false if @name.nil?
|
209
242
|
return false if @description.nil?
|
@@ -217,6 +250,7 @@ module PulpRpmClient
|
|
217
250
|
return true if self.equal?(o)
|
218
251
|
self.class == o.class &&
|
219
252
|
pulp_href == o.pulp_href &&
|
253
|
+
prn == o.prn &&
|
220
254
|
pulp_created == o.pulp_created &&
|
221
255
|
pulp_last_updated == o.pulp_last_updated &&
|
222
256
|
id == o.id &&
|
@@ -241,44 +275,40 @@ module PulpRpmClient
|
|
241
275
|
# Calculates hash code according to all attributes.
|
242
276
|
# @return [Integer] Hash code
|
243
277
|
def hash
|
244
|
-
[pulp_href, pulp_created, pulp_last_updated, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest].hash
|
278
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest].hash
|
245
279
|
end
|
246
280
|
|
247
281
|
# Builds the object from hash
|
248
282
|
# @param [Hash] attributes Model attributes in the form of hash
|
249
283
|
# @return [Object] Returns the model itself
|
250
284
|
def self.build_from_hash(attributes)
|
251
|
-
new.build_from_hash(attributes)
|
252
|
-
end
|
253
|
-
|
254
|
-
# Builds the object from hash
|
255
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
256
|
-
# @return [Object] Returns the model itself
|
257
|
-
def build_from_hash(attributes)
|
258
285
|
return nil unless attributes.is_a?(Hash)
|
259
|
-
|
260
|
-
|
286
|
+
attributes = attributes.transform_keys(&:to_sym)
|
287
|
+
transformed_hash = {}
|
288
|
+
openapi_types.each_pair do |key, type|
|
289
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
290
|
+
transformed_hash["#{key}"] = nil
|
291
|
+
elsif type =~ /\AArray<(.*)>/i
|
261
292
|
# check to ensure the input is an array given that the attribute
|
262
293
|
# is documented as an array but the input is not
|
263
|
-
if attributes[
|
264
|
-
|
294
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
295
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
265
296
|
end
|
266
|
-
elsif !attributes[
|
267
|
-
|
268
|
-
end
|
297
|
+
elsif !attributes[attribute_map[key]].nil?
|
298
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
299
|
+
end
|
269
300
|
end
|
270
|
-
|
271
|
-
self
|
301
|
+
new(transformed_hash)
|
272
302
|
end
|
273
303
|
|
274
304
|
# Deserializes the data based on type
|
275
305
|
# @param string type Data type
|
276
306
|
# @param string value Value to be deserialized
|
277
307
|
# @return [Object] Deserialized data
|
278
|
-
def _deserialize(type, value)
|
308
|
+
def self._deserialize(type, value)
|
279
309
|
case type.to_sym
|
280
|
-
when :
|
281
|
-
|
310
|
+
when :Time
|
311
|
+
Time.parse(value)
|
282
312
|
when :Date
|
283
313
|
Date.parse(value)
|
284
314
|
when :String
|
@@ -308,7 +338,9 @@ module PulpRpmClient
|
|
308
338
|
end
|
309
339
|
end
|
310
340
|
else # model
|
311
|
-
|
341
|
+
# models (e.g. Pet) or oneOf
|
342
|
+
klass = PulpRpmClient.const_get(type)
|
343
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
312
344
|
end
|
313
345
|
end
|
314
346
|
|
@@ -334,7 +366,7 @@ module PulpRpmClient
|
|
334
366
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
335
367
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
336
368
|
end
|
337
|
-
|
369
|
+
|
338
370
|
hash[param] = _to_hash(value)
|
339
371
|
end
|
340
372
|
hash
|
@@ -357,5 +389,7 @@ module PulpRpmClient
|
|
357
389
|
value
|
358
390
|
end
|
359
391
|
end
|
392
|
+
|
360
393
|
end
|
394
|
+
|
361
395
|
end
|
@@ -6,17 +6,21 @@
|
|
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
|
# PackageLangpacks serializer.
|
17
18
|
class RpmPackageLangpacksResponse
|
18
19
|
attr_accessor :pulp_href
|
19
20
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
20
24
|
# Timestamp of creation.
|
21
25
|
attr_accessor :pulp_created
|
22
26
|
|
@@ -33,6 +37,7 @@ module PulpRpmClient
|
|
33
37
|
def self.attribute_map
|
34
38
|
{
|
35
39
|
:'pulp_href' => :'pulp_href',
|
40
|
+
:'prn' => :'prn',
|
36
41
|
:'pulp_created' => :'pulp_created',
|
37
42
|
:'pulp_last_updated' => :'pulp_last_updated',
|
38
43
|
:'matches' => :'matches',
|
@@ -40,13 +45,19 @@ module PulpRpmClient
|
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
43
53
|
# Attribute type mapping.
|
44
54
|
def self.openapi_types
|
45
55
|
{
|
46
56
|
:'pulp_href' => :'String',
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
57
|
+
:'prn' => :'String',
|
58
|
+
:'pulp_created' => :'Time',
|
59
|
+
:'pulp_last_updated' => :'Time',
|
60
|
+
:'matches' => :'Object',
|
50
61
|
:'digest' => :'String'
|
51
62
|
}
|
52
63
|
end
|
@@ -78,6 +89,10 @@ module PulpRpmClient
|
|
78
89
|
self.pulp_href = attributes[:'pulp_href']
|
79
90
|
end
|
80
91
|
|
92
|
+
if attributes.key?(:'prn')
|
93
|
+
self.prn = attributes[:'prn']
|
94
|
+
end
|
95
|
+
|
81
96
|
if attributes.key?(:'pulp_created')
|
82
97
|
self.pulp_created = attributes[:'pulp_created']
|
83
98
|
end
|
@@ -88,16 +103,21 @@ module PulpRpmClient
|
|
88
103
|
|
89
104
|
if attributes.key?(:'matches')
|
90
105
|
self.matches = attributes[:'matches']
|
106
|
+
else
|
107
|
+
self.matches = nil
|
91
108
|
end
|
92
109
|
|
93
110
|
if attributes.key?(:'digest')
|
94
111
|
self.digest = attributes[:'digest']
|
112
|
+
else
|
113
|
+
self.digest = nil
|
95
114
|
end
|
96
115
|
end
|
97
116
|
|
98
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
99
118
|
# @return Array for valid properties with the reasons
|
100
119
|
def list_invalid_properties
|
120
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
101
121
|
invalid_properties = Array.new
|
102
122
|
invalid_properties
|
103
123
|
end
|
@@ -105,6 +125,7 @@ module PulpRpmClient
|
|
105
125
|
# Check to see if the all the properties in the model are valid
|
106
126
|
# @return true if the model is valid
|
107
127
|
def valid?
|
128
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
108
129
|
true
|
109
130
|
end
|
110
131
|
|
@@ -114,6 +135,7 @@ module PulpRpmClient
|
|
114
135
|
return true if self.equal?(o)
|
115
136
|
self.class == o.class &&
|
116
137
|
pulp_href == o.pulp_href &&
|
138
|
+
prn == o.prn &&
|
117
139
|
pulp_created == o.pulp_created &&
|
118
140
|
pulp_last_updated == o.pulp_last_updated &&
|
119
141
|
matches == o.matches &&
|
@@ -129,44 +151,40 @@ module PulpRpmClient
|
|
129
151
|
# Calculates hash code according to all attributes.
|
130
152
|
# @return [Integer] Hash code
|
131
153
|
def hash
|
132
|
-
[pulp_href, pulp_created, pulp_last_updated, matches, digest].hash
|
154
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, matches, digest].hash
|
133
155
|
end
|
134
156
|
|
135
157
|
# Builds the object from hash
|
136
158
|
# @param [Hash] attributes Model attributes in the form of hash
|
137
159
|
# @return [Object] Returns the model itself
|
138
160
|
def self.build_from_hash(attributes)
|
139
|
-
new.build_from_hash(attributes)
|
140
|
-
end
|
141
|
-
|
142
|
-
# Builds the object from hash
|
143
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
-
# @return [Object] Returns the model itself
|
145
|
-
def build_from_hash(attributes)
|
146
161
|
return nil unless attributes.is_a?(Hash)
|
147
|
-
|
148
|
-
|
162
|
+
attributes = attributes.transform_keys(&:to_sym)
|
163
|
+
transformed_hash = {}
|
164
|
+
openapi_types.each_pair do |key, type|
|
165
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
166
|
+
transformed_hash["#{key}"] = nil
|
167
|
+
elsif type =~ /\AArray<(.*)>/i
|
149
168
|
# check to ensure the input is an array given that the attribute
|
150
169
|
# is documented as an array but the input is not
|
151
|
-
if attributes[
|
152
|
-
|
170
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
171
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
153
172
|
end
|
154
|
-
elsif !attributes[
|
155
|
-
|
156
|
-
end
|
173
|
+
elsif !attributes[attribute_map[key]].nil?
|
174
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
175
|
+
end
|
157
176
|
end
|
158
|
-
|
159
|
-
self
|
177
|
+
new(transformed_hash)
|
160
178
|
end
|
161
179
|
|
162
180
|
# Deserializes the data based on type
|
163
181
|
# @param string type Data type
|
164
182
|
# @param string value Value to be deserialized
|
165
183
|
# @return [Object] Deserialized data
|
166
|
-
def _deserialize(type, value)
|
184
|
+
def self._deserialize(type, value)
|
167
185
|
case type.to_sym
|
168
|
-
when :
|
169
|
-
|
186
|
+
when :Time
|
187
|
+
Time.parse(value)
|
170
188
|
when :Date
|
171
189
|
Date.parse(value)
|
172
190
|
when :String
|
@@ -196,7 +214,9 @@ module PulpRpmClient
|
|
196
214
|
end
|
197
215
|
end
|
198
216
|
else # model
|
199
|
-
|
217
|
+
# models (e.g. Pet) or oneOf
|
218
|
+
klass = PulpRpmClient.const_get(type)
|
219
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
200
220
|
end
|
201
221
|
end
|
202
222
|
|
@@ -222,7 +242,7 @@ module PulpRpmClient
|
|
222
242
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
223
243
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
224
244
|
end
|
225
|
-
|
245
|
+
|
226
246
|
hash[param] = _to_hash(value)
|
227
247
|
end
|
228
248
|
hash
|
@@ -245,5 +265,7 @@ module PulpRpmClient
|
|
245
265
|
value
|
246
266
|
end
|
247
267
|
end
|
268
|
+
|
248
269
|
end
|
270
|
+
|
249
271
|
end
|