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
|
# Serializer for RPM Distributions.
|
17
18
|
class RpmRpmDistributionResponse
|
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
|
|
@@ -32,6 +36,9 @@ module PulpRpmClient
|
|
32
36
|
# An optional content-guard.
|
33
37
|
attr_accessor :content_guard
|
34
38
|
|
39
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
40
|
+
attr_accessor :no_content_change_since
|
41
|
+
|
35
42
|
# Whether this distribution should be shown in the content app.
|
36
43
|
attr_accessor :hidden
|
37
44
|
|
@@ -53,11 +60,13 @@ module PulpRpmClient
|
|
53
60
|
def self.attribute_map
|
54
61
|
{
|
55
62
|
:'pulp_href' => :'pulp_href',
|
63
|
+
:'prn' => :'prn',
|
56
64
|
:'pulp_created' => :'pulp_created',
|
57
65
|
:'pulp_last_updated' => :'pulp_last_updated',
|
58
66
|
:'base_path' => :'base_path',
|
59
67
|
:'base_url' => :'base_url',
|
60
68
|
:'content_guard' => :'content_guard',
|
69
|
+
:'no_content_change_since' => :'no_content_change_since',
|
61
70
|
:'hidden' => :'hidden',
|
62
71
|
:'pulp_labels' => :'pulp_labels',
|
63
72
|
:'name' => :'name',
|
@@ -67,15 +76,22 @@ module PulpRpmClient
|
|
67
76
|
}
|
68
77
|
end
|
69
78
|
|
79
|
+
# Returns all the JSON keys this model knows about
|
80
|
+
def self.acceptable_attributes
|
81
|
+
attribute_map.values
|
82
|
+
end
|
83
|
+
|
70
84
|
# Attribute type mapping.
|
71
85
|
def self.openapi_types
|
72
86
|
{
|
73
87
|
:'pulp_href' => :'String',
|
74
|
-
:'
|
75
|
-
:'
|
88
|
+
:'prn' => :'String',
|
89
|
+
:'pulp_created' => :'Time',
|
90
|
+
:'pulp_last_updated' => :'Time',
|
76
91
|
:'base_path' => :'String',
|
77
92
|
:'base_url' => :'String',
|
78
93
|
:'content_guard' => :'String',
|
94
|
+
:'no_content_change_since' => :'String',
|
79
95
|
:'hidden' => :'Boolean',
|
80
96
|
:'pulp_labels' => :'Hash<String, String>',
|
81
97
|
:'name' => :'String',
|
@@ -113,6 +129,10 @@ module PulpRpmClient
|
|
113
129
|
self.pulp_href = attributes[:'pulp_href']
|
114
130
|
end
|
115
131
|
|
132
|
+
if attributes.key?(:'prn')
|
133
|
+
self.prn = attributes[:'prn']
|
134
|
+
end
|
135
|
+
|
116
136
|
if attributes.key?(:'pulp_created')
|
117
137
|
self.pulp_created = attributes[:'pulp_created']
|
118
138
|
end
|
@@ -123,6 +143,8 @@ module PulpRpmClient
|
|
123
143
|
|
124
144
|
if attributes.key?(:'base_path')
|
125
145
|
self.base_path = attributes[:'base_path']
|
146
|
+
else
|
147
|
+
self.base_path = nil
|
126
148
|
end
|
127
149
|
|
128
150
|
if attributes.key?(:'base_url')
|
@@ -133,6 +155,10 @@ module PulpRpmClient
|
|
133
155
|
self.content_guard = attributes[:'content_guard']
|
134
156
|
end
|
135
157
|
|
158
|
+
if attributes.key?(:'no_content_change_since')
|
159
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
160
|
+
end
|
161
|
+
|
136
162
|
if attributes.key?(:'hidden')
|
137
163
|
self.hidden = attributes[:'hidden']
|
138
164
|
else
|
@@ -147,6 +173,8 @@ module PulpRpmClient
|
|
147
173
|
|
148
174
|
if attributes.key?(:'name')
|
149
175
|
self.name = attributes[:'name']
|
176
|
+
else
|
177
|
+
self.name = nil
|
150
178
|
end
|
151
179
|
|
152
180
|
if attributes.key?(:'repository')
|
@@ -167,6 +195,7 @@ module PulpRpmClient
|
|
167
195
|
# Show invalid properties with the reasons. Usually used together with valid?
|
168
196
|
# @return Array for valid properties with the reasons
|
169
197
|
def list_invalid_properties
|
198
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
170
199
|
invalid_properties = Array.new
|
171
200
|
if @base_path.nil?
|
172
201
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
@@ -182,6 +211,7 @@ module PulpRpmClient
|
|
182
211
|
# Check to see if the all the properties in the model are valid
|
183
212
|
# @return true if the model is valid
|
184
213
|
def valid?
|
214
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
185
215
|
return false if @base_path.nil?
|
186
216
|
return false if @name.nil?
|
187
217
|
true
|
@@ -193,11 +223,13 @@ module PulpRpmClient
|
|
193
223
|
return true if self.equal?(o)
|
194
224
|
self.class == o.class &&
|
195
225
|
pulp_href == o.pulp_href &&
|
226
|
+
prn == o.prn &&
|
196
227
|
pulp_created == o.pulp_created &&
|
197
228
|
pulp_last_updated == o.pulp_last_updated &&
|
198
229
|
base_path == o.base_path &&
|
199
230
|
base_url == o.base_url &&
|
200
231
|
content_guard == o.content_guard &&
|
232
|
+
no_content_change_since == o.no_content_change_since &&
|
201
233
|
hidden == o.hidden &&
|
202
234
|
pulp_labels == o.pulp_labels &&
|
203
235
|
name == o.name &&
|
@@ -215,44 +247,40 @@ module PulpRpmClient
|
|
215
247
|
# Calculates hash code according to all attributes.
|
216
248
|
# @return [Integer] Hash code
|
217
249
|
def hash
|
218
|
-
[pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config].hash
|
250
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, generate_repo_config].hash
|
219
251
|
end
|
220
252
|
|
221
253
|
# Builds the object from hash
|
222
254
|
# @param [Hash] attributes Model attributes in the form of hash
|
223
255
|
# @return [Object] Returns the model itself
|
224
256
|
def self.build_from_hash(attributes)
|
225
|
-
new.build_from_hash(attributes)
|
226
|
-
end
|
227
|
-
|
228
|
-
# Builds the object from hash
|
229
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
230
|
-
# @return [Object] Returns the model itself
|
231
|
-
def build_from_hash(attributes)
|
232
257
|
return nil unless attributes.is_a?(Hash)
|
233
|
-
|
234
|
-
|
258
|
+
attributes = attributes.transform_keys(&:to_sym)
|
259
|
+
transformed_hash = {}
|
260
|
+
openapi_types.each_pair do |key, type|
|
261
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
262
|
+
transformed_hash["#{key}"] = nil
|
263
|
+
elsif type =~ /\AArray<(.*)>/i
|
235
264
|
# check to ensure the input is an array given that the attribute
|
236
265
|
# is documented as an array but the input is not
|
237
|
-
if attributes[
|
238
|
-
|
266
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
267
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
239
268
|
end
|
240
|
-
elsif !attributes[
|
241
|
-
|
242
|
-
end
|
269
|
+
elsif !attributes[attribute_map[key]].nil?
|
270
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
271
|
+
end
|
243
272
|
end
|
244
|
-
|
245
|
-
self
|
273
|
+
new(transformed_hash)
|
246
274
|
end
|
247
275
|
|
248
276
|
# Deserializes the data based on type
|
249
277
|
# @param string type Data type
|
250
278
|
# @param string value Value to be deserialized
|
251
279
|
# @return [Object] Deserialized data
|
252
|
-
def _deserialize(type, value)
|
280
|
+
def self._deserialize(type, value)
|
253
281
|
case type.to_sym
|
254
|
-
when :
|
255
|
-
|
282
|
+
when :Time
|
283
|
+
Time.parse(value)
|
256
284
|
when :Date
|
257
285
|
Date.parse(value)
|
258
286
|
when :String
|
@@ -282,7 +310,9 @@ module PulpRpmClient
|
|
282
310
|
end
|
283
311
|
end
|
284
312
|
else # model
|
285
|
-
|
313
|
+
# models (e.g. Pet) or oneOf
|
314
|
+
klass = PulpRpmClient.const_get(type)
|
315
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
286
316
|
end
|
287
317
|
end
|
288
318
|
|
@@ -308,7 +338,7 @@ module PulpRpmClient
|
|
308
338
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
309
339
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
310
340
|
end
|
311
|
-
|
341
|
+
|
312
342
|
hash[param] = _to_hash(value)
|
313
343
|
end
|
314
344
|
hash
|
@@ -331,5 +361,7 @@ module PulpRpmClient
|
|
331
361
|
value
|
332
362
|
end
|
333
363
|
end
|
364
|
+
|
334
365
|
end
|
366
|
+
|
335
367
|
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
|
# A Serializer for RpmPublication.
|
@@ -41,6 +42,28 @@ module PulpRpmClient
|
|
41
42
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
42
43
|
attr_accessor :compression_type
|
43
44
|
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
44
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
68
|
def self.attribute_map
|
46
69
|
{
|
@@ -56,6 +79,11 @@ module PulpRpmClient
|
|
56
79
|
}
|
57
80
|
end
|
58
81
|
|
82
|
+
# Returns all the JSON keys this model knows about
|
83
|
+
def self.acceptable_attributes
|
84
|
+
attribute_map.values
|
85
|
+
end
|
86
|
+
|
59
87
|
# Attribute type mapping.
|
60
88
|
def self.openapi_types
|
61
89
|
{
|
@@ -66,7 +94,7 @@ module PulpRpmClient
|
|
66
94
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
67
95
|
:'gpgcheck' => :'Integer',
|
68
96
|
:'repo_gpgcheck' => :'Integer',
|
69
|
-
:'repo_config' => :'
|
97
|
+
:'repo_config' => :'Object',
|
70
98
|
:'compression_type' => :'CompressionTypeEnum'
|
71
99
|
}
|
72
100
|
end
|
@@ -76,6 +104,7 @@ module PulpRpmClient
|
|
76
104
|
Set.new([
|
77
105
|
:'gpgcheck',
|
78
106
|
:'repo_gpgcheck',
|
107
|
+
:'repo_config',
|
79
108
|
])
|
80
109
|
end
|
81
110
|
|
@@ -134,6 +163,7 @@ module PulpRpmClient
|
|
134
163
|
# Show invalid properties with the reasons. Usually used together with valid?
|
135
164
|
# @return Array for valid properties with the reasons
|
136
165
|
def list_invalid_properties
|
166
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
137
167
|
invalid_properties = Array.new
|
138
168
|
if !@gpgcheck.nil? && @gpgcheck > 1
|
139
169
|
invalid_properties.push('invalid value for "gpgcheck", must be smaller than or equal to 1.')
|
@@ -157,6 +187,7 @@ module PulpRpmClient
|
|
157
187
|
# Check to see if the all the properties in the model are valid
|
158
188
|
# @return true if the model is valid
|
159
189
|
def valid?
|
190
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
160
191
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
161
192
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
162
193
|
return false if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
|
@@ -224,37 +255,33 @@ module PulpRpmClient
|
|
224
255
|
# @param [Hash] attributes Model attributes in the form of hash
|
225
256
|
# @return [Object] Returns the model itself
|
226
257
|
def self.build_from_hash(attributes)
|
227
|
-
new.build_from_hash(attributes)
|
228
|
-
end
|
229
|
-
|
230
|
-
# Builds the object from hash
|
231
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
232
|
-
# @return [Object] Returns the model itself
|
233
|
-
def build_from_hash(attributes)
|
234
258
|
return nil unless attributes.is_a?(Hash)
|
235
|
-
|
236
|
-
|
259
|
+
attributes = attributes.transform_keys(&:to_sym)
|
260
|
+
transformed_hash = {}
|
261
|
+
openapi_types.each_pair do |key, type|
|
262
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
263
|
+
transformed_hash["#{key}"] = nil
|
264
|
+
elsif type =~ /\AArray<(.*)>/i
|
237
265
|
# check to ensure the input is an array given that the attribute
|
238
266
|
# is documented as an array but the input is not
|
239
|
-
if attributes[
|
240
|
-
|
267
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
268
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
241
269
|
end
|
242
|
-
elsif !attributes[
|
243
|
-
|
244
|
-
end
|
270
|
+
elsif !attributes[attribute_map[key]].nil?
|
271
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
272
|
+
end
|
245
273
|
end
|
246
|
-
|
247
|
-
self
|
274
|
+
new(transformed_hash)
|
248
275
|
end
|
249
276
|
|
250
277
|
# Deserializes the data based on type
|
251
278
|
# @param string type Data type
|
252
279
|
# @param string value Value to be deserialized
|
253
280
|
# @return [Object] Deserialized data
|
254
|
-
def _deserialize(type, value)
|
281
|
+
def self._deserialize(type, value)
|
255
282
|
case type.to_sym
|
256
|
-
when :
|
257
|
-
|
283
|
+
when :Time
|
284
|
+
Time.parse(value)
|
258
285
|
when :Date
|
259
286
|
Date.parse(value)
|
260
287
|
when :String
|
@@ -284,7 +311,9 @@ module PulpRpmClient
|
|
284
311
|
end
|
285
312
|
end
|
286
313
|
else # model
|
287
|
-
|
314
|
+
# models (e.g. Pet) or oneOf
|
315
|
+
klass = PulpRpmClient.const_get(type)
|
316
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
288
317
|
end
|
289
318
|
end
|
290
319
|
|
@@ -310,7 +339,7 @@ module PulpRpmClient
|
|
310
339
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
311
340
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
312
341
|
end
|
313
|
-
|
342
|
+
|
314
343
|
hash[param] = _to_hash(value)
|
315
344
|
end
|
316
345
|
hash
|
@@ -333,5 +362,7 @@ module PulpRpmClient
|
|
333
362
|
value
|
334
363
|
end
|
335
364
|
end
|
365
|
+
|
336
366
|
end
|
367
|
+
|
337
368
|
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
|
# A Serializer for RpmPublication.
|
17
18
|
class RpmRpmPublicationResponse
|
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
|
|
@@ -52,10 +56,33 @@ module PulpRpmClient
|
|
52
56
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
53
57
|
attr_accessor :compression_type
|
54
58
|
|
59
|
+
class EnumAttributeValidator
|
60
|
+
attr_reader :datatype
|
61
|
+
attr_reader :allowable_values
|
62
|
+
|
63
|
+
def initialize(datatype, allowable_values)
|
64
|
+
@allowable_values = allowable_values.map do |value|
|
65
|
+
case datatype.to_s
|
66
|
+
when /Integer/i
|
67
|
+
value.to_i
|
68
|
+
when /Float/i
|
69
|
+
value.to_f
|
70
|
+
else
|
71
|
+
value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def valid?(value)
|
77
|
+
!value || allowable_values.include?(value)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
55
81
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
82
|
def self.attribute_map
|
57
83
|
{
|
58
84
|
:'pulp_href' => :'pulp_href',
|
85
|
+
:'prn' => :'prn',
|
59
86
|
:'pulp_created' => :'pulp_created',
|
60
87
|
:'pulp_last_updated' => :'pulp_last_updated',
|
61
88
|
:'repository_version' => :'repository_version',
|
@@ -71,12 +98,18 @@ module PulpRpmClient
|
|
71
98
|
}
|
72
99
|
end
|
73
100
|
|
101
|
+
# Returns all the JSON keys this model knows about
|
102
|
+
def self.acceptable_attributes
|
103
|
+
attribute_map.values
|
104
|
+
end
|
105
|
+
|
74
106
|
# Attribute type mapping.
|
75
107
|
def self.openapi_types
|
76
108
|
{
|
77
109
|
:'pulp_href' => :'String',
|
78
|
-
:'
|
79
|
-
:'
|
110
|
+
:'prn' => :'String',
|
111
|
+
:'pulp_created' => :'Time',
|
112
|
+
:'pulp_last_updated' => :'Time',
|
80
113
|
:'repository_version' => :'String',
|
81
114
|
:'repository' => :'String',
|
82
115
|
:'checksum_type' => :'PackageChecksumTypeEnum',
|
@@ -85,7 +118,7 @@ module PulpRpmClient
|
|
85
118
|
:'gpgcheck' => :'Integer',
|
86
119
|
:'repo_gpgcheck' => :'Integer',
|
87
120
|
:'sqlite_metadata' => :'Boolean',
|
88
|
-
:'repo_config' => :'
|
121
|
+
:'repo_config' => :'Object',
|
89
122
|
:'compression_type' => :'CompressionTypeEnum'
|
90
123
|
}
|
91
124
|
end
|
@@ -95,6 +128,7 @@ module PulpRpmClient
|
|
95
128
|
Set.new([
|
96
129
|
:'gpgcheck',
|
97
130
|
:'repo_gpgcheck',
|
131
|
+
:'repo_config',
|
98
132
|
])
|
99
133
|
end
|
100
134
|
|
@@ -117,6 +151,10 @@ module PulpRpmClient
|
|
117
151
|
self.pulp_href = attributes[:'pulp_href']
|
118
152
|
end
|
119
153
|
|
154
|
+
if attributes.key?(:'prn')
|
155
|
+
self.prn = attributes[:'prn']
|
156
|
+
end
|
157
|
+
|
120
158
|
if attributes.key?(:'pulp_created')
|
121
159
|
self.pulp_created = attributes[:'pulp_created']
|
122
160
|
end
|
@@ -171,6 +209,7 @@ module PulpRpmClient
|
|
171
209
|
# Show invalid properties with the reasons. Usually used together with valid?
|
172
210
|
# @return Array for valid properties with the reasons
|
173
211
|
def list_invalid_properties
|
212
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
174
213
|
invalid_properties = Array.new
|
175
214
|
if !@gpgcheck.nil? && @gpgcheck > 1
|
176
215
|
invalid_properties.push('invalid value for "gpgcheck", must be smaller than or equal to 1.')
|
@@ -194,6 +233,7 @@ module PulpRpmClient
|
|
194
233
|
# Check to see if the all the properties in the model are valid
|
195
234
|
# @return true if the model is valid
|
196
235
|
def valid?
|
236
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
197
237
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
198
238
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
199
239
|
return false if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
|
@@ -235,6 +275,7 @@ module PulpRpmClient
|
|
235
275
|
return true if self.equal?(o)
|
236
276
|
self.class == o.class &&
|
237
277
|
pulp_href == o.pulp_href &&
|
278
|
+
prn == o.prn &&
|
238
279
|
pulp_created == o.pulp_created &&
|
239
280
|
pulp_last_updated == o.pulp_last_updated &&
|
240
281
|
repository_version == o.repository_version &&
|
@@ -258,44 +299,40 @@ module PulpRpmClient
|
|
258
299
|
# Calculates hash code according to all attributes.
|
259
300
|
# @return [Integer] Hash code
|
260
301
|
def hash
|
261
|
-
[pulp_href, pulp_created, pulp_last_updated, repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
|
302
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type].hash
|
262
303
|
end
|
263
304
|
|
264
305
|
# Builds the object from hash
|
265
306
|
# @param [Hash] attributes Model attributes in the form of hash
|
266
307
|
# @return [Object] Returns the model itself
|
267
308
|
def self.build_from_hash(attributes)
|
268
|
-
new.build_from_hash(attributes)
|
269
|
-
end
|
270
|
-
|
271
|
-
# Builds the object from hash
|
272
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
273
|
-
# @return [Object] Returns the model itself
|
274
|
-
def build_from_hash(attributes)
|
275
309
|
return nil unless attributes.is_a?(Hash)
|
276
|
-
|
277
|
-
|
310
|
+
attributes = attributes.transform_keys(&:to_sym)
|
311
|
+
transformed_hash = {}
|
312
|
+
openapi_types.each_pair do |key, type|
|
313
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
314
|
+
transformed_hash["#{key}"] = nil
|
315
|
+
elsif type =~ /\AArray<(.*)>/i
|
278
316
|
# check to ensure the input is an array given that the attribute
|
279
317
|
# is documented as an array but the input is not
|
280
|
-
if attributes[
|
281
|
-
|
318
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
319
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
282
320
|
end
|
283
|
-
elsif !attributes[
|
284
|
-
|
285
|
-
end
|
321
|
+
elsif !attributes[attribute_map[key]].nil?
|
322
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
323
|
+
end
|
286
324
|
end
|
287
|
-
|
288
|
-
self
|
325
|
+
new(transformed_hash)
|
289
326
|
end
|
290
327
|
|
291
328
|
# Deserializes the data based on type
|
292
329
|
# @param string type Data type
|
293
330
|
# @param string value Value to be deserialized
|
294
331
|
# @return [Object] Deserialized data
|
295
|
-
def _deserialize(type, value)
|
332
|
+
def self._deserialize(type, value)
|
296
333
|
case type.to_sym
|
297
|
-
when :
|
298
|
-
|
334
|
+
when :Time
|
335
|
+
Time.parse(value)
|
299
336
|
when :Date
|
300
337
|
Date.parse(value)
|
301
338
|
when :String
|
@@ -325,7 +362,9 @@ module PulpRpmClient
|
|
325
362
|
end
|
326
363
|
end
|
327
364
|
else # model
|
328
|
-
|
365
|
+
# models (e.g. Pet) or oneOf
|
366
|
+
klass = PulpRpmClient.const_get(type)
|
367
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
329
368
|
end
|
330
369
|
end
|
331
370
|
|
@@ -351,7 +390,7 @@ module PulpRpmClient
|
|
351
390
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
352
391
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
353
392
|
end
|
354
|
-
|
393
|
+
|
355
394
|
hash[param] = _to_hash(value)
|
356
395
|
end
|
357
396
|
hash
|
@@ -374,5 +413,7 @@ module PulpRpmClient
|
|
374
413
|
value
|
375
414
|
end
|
376
415
|
end
|
416
|
+
|
377
417
|
end
|
418
|
+
|
378
419
|
end
|