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
|
# Serializer for RPM Distributions.
|
@@ -52,6 +53,11 @@ module PulpRpmClient
|
|
52
53
|
}
|
53
54
|
end
|
54
55
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
57
|
+
def self.acceptable_attributes
|
58
|
+
attribute_map.values
|
59
|
+
end
|
60
|
+
|
55
61
|
# Attribute type mapping.
|
56
62
|
def self.openapi_types
|
57
63
|
{
|
@@ -132,6 +138,7 @@ module PulpRpmClient
|
|
132
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
133
139
|
# @return Array for valid properties with the reasons
|
134
140
|
def list_invalid_properties
|
141
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
135
142
|
invalid_properties = Array.new
|
136
143
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
137
144
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
@@ -147,6 +154,7 @@ module PulpRpmClient
|
|
147
154
|
# Check to see if the all the properties in the model are valid
|
148
155
|
# @return true if the model is valid
|
149
156
|
def valid?
|
157
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
150
158
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
151
159
|
return false if !@name.nil? && @name.to_s.length < 1
|
152
160
|
true
|
@@ -155,7 +163,11 @@ module PulpRpmClient
|
|
155
163
|
# Custom attribute writer method with validation
|
156
164
|
# @param [Object] base_path Value to be assigned
|
157
165
|
def base_path=(base_path)
|
158
|
-
if
|
166
|
+
if base_path.nil?
|
167
|
+
fail ArgumentError, 'base_path cannot be nil'
|
168
|
+
end
|
169
|
+
|
170
|
+
if base_path.to_s.length < 1
|
159
171
|
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
160
172
|
end
|
161
173
|
|
@@ -165,7 +177,11 @@ module PulpRpmClient
|
|
165
177
|
# Custom attribute writer method with validation
|
166
178
|
# @param [Object] name Value to be assigned
|
167
179
|
def name=(name)
|
168
|
-
if
|
180
|
+
if name.nil?
|
181
|
+
fail ArgumentError, 'name cannot be nil'
|
182
|
+
end
|
183
|
+
|
184
|
+
if name.to_s.length < 1
|
169
185
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
170
186
|
end
|
171
187
|
|
@@ -203,37 +219,33 @@ module PulpRpmClient
|
|
203
219
|
# @param [Hash] attributes Model attributes in the form of hash
|
204
220
|
# @return [Object] Returns the model itself
|
205
221
|
def self.build_from_hash(attributes)
|
206
|
-
new.build_from_hash(attributes)
|
207
|
-
end
|
208
|
-
|
209
|
-
# Builds the object from hash
|
210
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
211
|
-
# @return [Object] Returns the model itself
|
212
|
-
def build_from_hash(attributes)
|
213
222
|
return nil unless attributes.is_a?(Hash)
|
214
|
-
|
215
|
-
|
223
|
+
attributes = attributes.transform_keys(&:to_sym)
|
224
|
+
transformed_hash = {}
|
225
|
+
openapi_types.each_pair do |key, type|
|
226
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
227
|
+
transformed_hash["#{key}"] = nil
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
216
229
|
# check to ensure the input is an array given that the attribute
|
217
230
|
# is documented as an array but the input is not
|
218
|
-
if attributes[
|
219
|
-
|
231
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
232
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
220
233
|
end
|
221
|
-
elsif !attributes[
|
222
|
-
|
223
|
-
end
|
234
|
+
elsif !attributes[attribute_map[key]].nil?
|
235
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
236
|
+
end
|
224
237
|
end
|
225
|
-
|
226
|
-
self
|
238
|
+
new(transformed_hash)
|
227
239
|
end
|
228
240
|
|
229
241
|
# Deserializes the data based on type
|
230
242
|
# @param string type Data type
|
231
243
|
# @param string value Value to be deserialized
|
232
244
|
# @return [Object] Deserialized data
|
233
|
-
def _deserialize(type, value)
|
245
|
+
def self._deserialize(type, value)
|
234
246
|
case type.to_sym
|
235
|
-
when :
|
236
|
-
|
247
|
+
when :Time
|
248
|
+
Time.parse(value)
|
237
249
|
when :Date
|
238
250
|
Date.parse(value)
|
239
251
|
when :String
|
@@ -263,7 +275,9 @@ module PulpRpmClient
|
|
263
275
|
end
|
264
276
|
end
|
265
277
|
else # model
|
266
|
-
|
278
|
+
# models (e.g. Pet) or oneOf
|
279
|
+
klass = PulpRpmClient.const_get(type)
|
280
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
267
281
|
end
|
268
282
|
end
|
269
283
|
|
@@ -289,7 +303,7 @@ module PulpRpmClient
|
|
289
303
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
290
304
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
291
305
|
end
|
292
|
-
|
306
|
+
|
293
307
|
hash[param] = _to_hash(value)
|
294
308
|
end
|
295
309
|
hash
|
@@ -312,5 +326,7 @@ module PulpRpmClient
|
|
312
326
|
value
|
313
327
|
end
|
314
328
|
end
|
329
|
+
|
315
330
|
end
|
331
|
+
|
316
332
|
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 RpmRemote.
|
@@ -80,6 +81,28 @@ module PulpRpmClient
|
|
80
81
|
# Authentication token for SLES repositories.
|
81
82
|
attr_accessor :sles_auth_token
|
82
83
|
|
84
|
+
class EnumAttributeValidator
|
85
|
+
attr_reader :datatype
|
86
|
+
attr_reader :allowable_values
|
87
|
+
|
88
|
+
def initialize(datatype, allowable_values)
|
89
|
+
@allowable_values = allowable_values.map do |value|
|
90
|
+
case datatype.to_s
|
91
|
+
when /Integer/i
|
92
|
+
value.to_i
|
93
|
+
when /Float/i
|
94
|
+
value.to_f
|
95
|
+
else
|
96
|
+
value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def valid?(value)
|
102
|
+
!value || allowable_values.include?(value)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
83
106
|
# Attribute mapping from ruby-style variable name to JSON key.
|
84
107
|
def self.attribute_map
|
85
108
|
{
|
@@ -108,6 +131,11 @@ module PulpRpmClient
|
|
108
131
|
}
|
109
132
|
end
|
110
133
|
|
134
|
+
# Returns all the JSON keys this model knows about
|
135
|
+
def self.acceptable_attributes
|
136
|
+
attribute_map.values
|
137
|
+
end
|
138
|
+
|
111
139
|
# Attribute type mapping.
|
112
140
|
def self.openapi_types
|
113
141
|
{
|
@@ -269,6 +297,7 @@ module PulpRpmClient
|
|
269
297
|
# Show invalid properties with the reasons. Usually used together with valid?
|
270
298
|
# @return Array for valid properties with the reasons
|
271
299
|
def list_invalid_properties
|
300
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
272
301
|
invalid_properties = Array.new
|
273
302
|
if !@name.nil? && @name.to_s.length < 1
|
274
303
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
@@ -314,20 +343,20 @@ module PulpRpmClient
|
|
314
343
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
315
344
|
end
|
316
345
|
|
317
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
318
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
346
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
347
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
319
348
|
end
|
320
349
|
|
321
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
322
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
350
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
351
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
323
352
|
end
|
324
353
|
|
325
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
326
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
354
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
355
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
327
356
|
end
|
328
357
|
|
329
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
330
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
358
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
359
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
331
360
|
end
|
332
361
|
|
333
362
|
if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
@@ -340,6 +369,7 @@ module PulpRpmClient
|
|
340
369
|
# Check to see if the all the properties in the model are valid
|
341
370
|
# @return true if the model is valid
|
342
371
|
def valid?
|
372
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
343
373
|
return false if !@name.nil? && @name.to_s.length < 1
|
344
374
|
return false if !@url.nil? && @url.to_s.length < 1
|
345
375
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
@@ -351,10 +381,10 @@ module PulpRpmClient
|
|
351
381
|
return false if !@username.nil? && @username.to_s.length < 1
|
352
382
|
return false if !@password.nil? && @password.to_s.length < 1
|
353
383
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
354
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
355
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
356
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
357
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
384
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
385
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
386
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
387
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
358
388
|
return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
359
389
|
true
|
360
390
|
end
|
@@ -362,7 +392,11 @@ module PulpRpmClient
|
|
362
392
|
# Custom attribute writer method with validation
|
363
393
|
# @param [Object] name Value to be assigned
|
364
394
|
def name=(name)
|
365
|
-
if
|
395
|
+
if name.nil?
|
396
|
+
fail ArgumentError, 'name cannot be nil'
|
397
|
+
end
|
398
|
+
|
399
|
+
if name.to_s.length < 1
|
366
400
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
367
401
|
end
|
368
402
|
|
@@ -372,7 +406,11 @@ module PulpRpmClient
|
|
372
406
|
# Custom attribute writer method with validation
|
373
407
|
# @param [Object] url Value to be assigned
|
374
408
|
def url=(url)
|
375
|
-
if
|
409
|
+
if url.nil?
|
410
|
+
fail ArgumentError, 'url cannot be nil'
|
411
|
+
end
|
412
|
+
|
413
|
+
if url.to_s.length < 1
|
376
414
|
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
377
415
|
end
|
378
416
|
|
@@ -472,8 +510,8 @@ module PulpRpmClient
|
|
472
510
|
# Custom attribute writer method with validation
|
473
511
|
# @param [Object] total_timeout Value to be assigned
|
474
512
|
def total_timeout=(total_timeout)
|
475
|
-
if !total_timeout.nil? && total_timeout < 0
|
476
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
513
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
514
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
477
515
|
end
|
478
516
|
|
479
517
|
@total_timeout = total_timeout
|
@@ -482,8 +520,8 @@ module PulpRpmClient
|
|
482
520
|
# Custom attribute writer method with validation
|
483
521
|
# @param [Object] connect_timeout Value to be assigned
|
484
522
|
def connect_timeout=(connect_timeout)
|
485
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
486
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
523
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
524
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
487
525
|
end
|
488
526
|
|
489
527
|
@connect_timeout = connect_timeout
|
@@ -492,8 +530,8 @@ module PulpRpmClient
|
|
492
530
|
# Custom attribute writer method with validation
|
493
531
|
# @param [Object] sock_connect_timeout Value to be assigned
|
494
532
|
def sock_connect_timeout=(sock_connect_timeout)
|
495
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
496
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
533
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
534
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
497
535
|
end
|
498
536
|
|
499
537
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -502,8 +540,8 @@ module PulpRpmClient
|
|
502
540
|
# Custom attribute writer method with validation
|
503
541
|
# @param [Object] sock_read_timeout Value to be assigned
|
504
542
|
def sock_read_timeout=(sock_read_timeout)
|
505
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
506
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
543
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
544
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
507
545
|
end
|
508
546
|
|
509
547
|
@sock_read_timeout = sock_read_timeout
|
@@ -564,37 +602,33 @@ module PulpRpmClient
|
|
564
602
|
# @param [Hash] attributes Model attributes in the form of hash
|
565
603
|
# @return [Object] Returns the model itself
|
566
604
|
def self.build_from_hash(attributes)
|
567
|
-
new.build_from_hash(attributes)
|
568
|
-
end
|
569
|
-
|
570
|
-
# Builds the object from hash
|
571
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
572
|
-
# @return [Object] Returns the model itself
|
573
|
-
def build_from_hash(attributes)
|
574
605
|
return nil unless attributes.is_a?(Hash)
|
575
|
-
|
576
|
-
|
606
|
+
attributes = attributes.transform_keys(&:to_sym)
|
607
|
+
transformed_hash = {}
|
608
|
+
openapi_types.each_pair do |key, type|
|
609
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
610
|
+
transformed_hash["#{key}"] = nil
|
611
|
+
elsif type =~ /\AArray<(.*)>/i
|
577
612
|
# check to ensure the input is an array given that the attribute
|
578
613
|
# is documented as an array but the input is not
|
579
|
-
if attributes[
|
580
|
-
|
614
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
615
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
581
616
|
end
|
582
|
-
elsif !attributes[
|
583
|
-
|
584
|
-
end
|
617
|
+
elsif !attributes[attribute_map[key]].nil?
|
618
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
619
|
+
end
|
585
620
|
end
|
586
|
-
|
587
|
-
self
|
621
|
+
new(transformed_hash)
|
588
622
|
end
|
589
623
|
|
590
624
|
# Deserializes the data based on type
|
591
625
|
# @param string type Data type
|
592
626
|
# @param string value Value to be deserialized
|
593
627
|
# @return [Object] Deserialized data
|
594
|
-
def _deserialize(type, value)
|
628
|
+
def self._deserialize(type, value)
|
595
629
|
case type.to_sym
|
596
|
-
when :
|
597
|
-
|
630
|
+
when :Time
|
631
|
+
Time.parse(value)
|
598
632
|
when :Date
|
599
633
|
Date.parse(value)
|
600
634
|
when :String
|
@@ -624,7 +658,9 @@ module PulpRpmClient
|
|
624
658
|
end
|
625
659
|
end
|
626
660
|
else # model
|
627
|
-
|
661
|
+
# models (e.g. Pet) or oneOf
|
662
|
+
klass = PulpRpmClient.const_get(type)
|
663
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
628
664
|
end
|
629
665
|
end
|
630
666
|
|
@@ -650,7 +686,7 @@ module PulpRpmClient
|
|
650
686
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
651
687
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
652
688
|
end
|
653
|
-
|
689
|
+
|
654
690
|
hash[param] = _to_hash(value)
|
655
691
|
end
|
656
692
|
hash
|
@@ -673,5 +709,7 @@ module PulpRpmClient
|
|
673
709
|
value
|
674
710
|
end
|
675
711
|
end
|
712
|
+
|
676
713
|
end
|
714
|
+
|
677
715
|
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 Repositories.
|
@@ -65,6 +66,28 @@ module PulpRpmClient
|
|
65
66
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
66
67
|
attr_accessor :compression_type
|
67
68
|
|
69
|
+
class EnumAttributeValidator
|
70
|
+
attr_reader :datatype
|
71
|
+
attr_reader :allowable_values
|
72
|
+
|
73
|
+
def initialize(datatype, allowable_values)
|
74
|
+
@allowable_values = allowable_values.map do |value|
|
75
|
+
case datatype.to_s
|
76
|
+
when /Integer/i
|
77
|
+
value.to_i
|
78
|
+
when /Float/i
|
79
|
+
value.to_f
|
80
|
+
else
|
81
|
+
value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def valid?(value)
|
87
|
+
!value || allowable_values.include?(value)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
68
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
92
|
def self.attribute_map
|
70
93
|
{
|
@@ -88,6 +111,11 @@ module PulpRpmClient
|
|
88
111
|
}
|
89
112
|
end
|
90
113
|
|
114
|
+
# Returns all the JSON keys this model knows about
|
115
|
+
def self.acceptable_attributes
|
116
|
+
attribute_map.values
|
117
|
+
end
|
118
|
+
|
91
119
|
# Attribute type mapping.
|
92
120
|
def self.openapi_types
|
93
121
|
{
|
@@ -124,6 +152,7 @@ module PulpRpmClient
|
|
124
152
|
:'package_checksum_type',
|
125
153
|
:'gpgcheck',
|
126
154
|
:'repo_gpgcheck',
|
155
|
+
:'repo_config',
|
127
156
|
:'compression_type'
|
128
157
|
])
|
129
158
|
end
|
@@ -221,6 +250,7 @@ module PulpRpmClient
|
|
221
250
|
# Show invalid properties with the reasons. Usually used together with valid?
|
222
251
|
# @return Array for valid properties with the reasons
|
223
252
|
def list_invalid_properties
|
253
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
224
254
|
invalid_properties = Array.new
|
225
255
|
if !@name.nil? && @name.to_s.length < 1
|
226
256
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
@@ -264,6 +294,7 @@ module PulpRpmClient
|
|
264
294
|
# Check to see if the all the properties in the model are valid
|
265
295
|
# @return true if the model is valid
|
266
296
|
def valid?
|
297
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
267
298
|
return false if !@name.nil? && @name.to_s.length < 1
|
268
299
|
return false if !@description.nil? && @description.to_s.length < 1
|
269
300
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
@@ -279,7 +310,11 @@ module PulpRpmClient
|
|
279
310
|
# Custom attribute writer method with validation
|
280
311
|
# @param [Object] name Value to be assigned
|
281
312
|
def name=(name)
|
282
|
-
if
|
313
|
+
if name.nil?
|
314
|
+
fail ArgumentError, 'name cannot be nil'
|
315
|
+
end
|
316
|
+
|
317
|
+
if name.to_s.length < 1
|
283
318
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
284
319
|
end
|
285
320
|
|
@@ -309,7 +344,11 @@ module PulpRpmClient
|
|
309
344
|
# Custom attribute writer method with validation
|
310
345
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
311
346
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
312
|
-
if
|
347
|
+
if package_signing_fingerprint.nil?
|
348
|
+
fail ArgumentError, 'package_signing_fingerprint cannot be nil'
|
349
|
+
end
|
350
|
+
|
351
|
+
if package_signing_fingerprint.to_s.length > 40
|
313
352
|
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
314
353
|
end
|
315
354
|
|
@@ -319,7 +358,11 @@ module PulpRpmClient
|
|
319
358
|
# Custom attribute writer method with validation
|
320
359
|
# @param [Object] retain_package_versions Value to be assigned
|
321
360
|
def retain_package_versions=(retain_package_versions)
|
322
|
-
if
|
361
|
+
if retain_package_versions.nil?
|
362
|
+
fail ArgumentError, 'retain_package_versions cannot be nil'
|
363
|
+
end
|
364
|
+
|
365
|
+
if retain_package_versions < 0
|
323
366
|
fail ArgumentError, 'invalid value for "retain_package_versions", must be greater than or equal to 0.'
|
324
367
|
end
|
325
368
|
|
@@ -394,37 +437,33 @@ module PulpRpmClient
|
|
394
437
|
# @param [Hash] attributes Model attributes in the form of hash
|
395
438
|
# @return [Object] Returns the model itself
|
396
439
|
def self.build_from_hash(attributes)
|
397
|
-
new.build_from_hash(attributes)
|
398
|
-
end
|
399
|
-
|
400
|
-
# Builds the object from hash
|
401
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
402
|
-
# @return [Object] Returns the model itself
|
403
|
-
def build_from_hash(attributes)
|
404
440
|
return nil unless attributes.is_a?(Hash)
|
405
|
-
|
406
|
-
|
441
|
+
attributes = attributes.transform_keys(&:to_sym)
|
442
|
+
transformed_hash = {}
|
443
|
+
openapi_types.each_pair do |key, type|
|
444
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
445
|
+
transformed_hash["#{key}"] = nil
|
446
|
+
elsif type =~ /\AArray<(.*)>/i
|
407
447
|
# check to ensure the input is an array given that the attribute
|
408
448
|
# is documented as an array but the input is not
|
409
|
-
if attributes[
|
410
|
-
|
449
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
450
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
411
451
|
end
|
412
|
-
elsif !attributes[
|
413
|
-
|
414
|
-
end
|
452
|
+
elsif !attributes[attribute_map[key]].nil?
|
453
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
454
|
+
end
|
415
455
|
end
|
416
|
-
|
417
|
-
self
|
456
|
+
new(transformed_hash)
|
418
457
|
end
|
419
458
|
|
420
459
|
# Deserializes the data based on type
|
421
460
|
# @param string type Data type
|
422
461
|
# @param string value Value to be deserialized
|
423
462
|
# @return [Object] Deserialized data
|
424
|
-
def _deserialize(type, value)
|
463
|
+
def self._deserialize(type, value)
|
425
464
|
case type.to_sym
|
426
|
-
when :
|
427
|
-
|
465
|
+
when :Time
|
466
|
+
Time.parse(value)
|
428
467
|
when :Date
|
429
468
|
Date.parse(value)
|
430
469
|
when :String
|
@@ -454,7 +493,9 @@ module PulpRpmClient
|
|
454
493
|
end
|
455
494
|
end
|
456
495
|
else # model
|
457
|
-
|
496
|
+
# models (e.g. Pet) or oneOf
|
497
|
+
klass = PulpRpmClient.const_get(type)
|
498
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
458
499
|
end
|
459
500
|
end
|
460
501
|
|
@@ -480,7 +521,7 @@ module PulpRpmClient
|
|
480
521
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
481
522
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
482
523
|
end
|
483
|
-
|
524
|
+
|
484
525
|
hash[param] = _to_hash(value)
|
485
526
|
end
|
486
527
|
hash
|
@@ -503,5 +544,7 @@ module PulpRpmClient
|
|
503
544
|
value
|
504
545
|
end
|
505
546
|
end
|
547
|
+
|
506
548
|
end
|
549
|
+
|
507
550
|
end
|