pulp_rpm_client 3.27.3 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +62 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +68 -25
- 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 +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 +56 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +59 -25
- 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 +60 -22
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +59 -25
- 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 +121 -109
- data/docs/CompsXml.md +0 -21
- data/docs/RpmPackage.md +0 -27
- data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
- data/docs/RpmUpdateRecord.md +0 -23
- data/lib/pulp_rpm_client/models/comps_xml.rb +0 -233
- data/lib/pulp_rpm_client/models/rpm_package.rb +0 -288
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +0 -253
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/comps_xml_spec.rb +0 -53
- data/spec/models/rpm_package_spec.rb +0 -71
- data/spec/models/rpm_update_record_spec.rb +0 -59
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpRpmClient
|
16
17
|
# A Serializer for 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
|
{
|
@@ -175,10 +203,14 @@ module PulpRpmClient
|
|
175
203
|
|
176
204
|
if attributes.key?(:'name')
|
177
205
|
self.name = attributes[:'name']
|
206
|
+
else
|
207
|
+
self.name = nil
|
178
208
|
end
|
179
209
|
|
180
210
|
if attributes.key?(:'url')
|
181
211
|
self.url = attributes[:'url']
|
212
|
+
else
|
213
|
+
self.url = nil
|
182
214
|
end
|
183
215
|
|
184
216
|
if attributes.key?(:'ca_cert')
|
@@ -269,6 +301,7 @@ module PulpRpmClient
|
|
269
301
|
# Show invalid properties with the reasons. Usually used together with valid?
|
270
302
|
# @return Array for valid properties with the reasons
|
271
303
|
def list_invalid_properties
|
304
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
272
305
|
invalid_properties = Array.new
|
273
306
|
if @name.nil?
|
274
307
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -348,6 +381,7 @@ module PulpRpmClient
|
|
348
381
|
# Check to see if the all the properties in the model are valid
|
349
382
|
# @return true if the model is valid
|
350
383
|
def valid?
|
384
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
351
385
|
return false if @name.nil?
|
352
386
|
return false if @name.to_s.length < 1
|
353
387
|
return false if @url.nil?
|
@@ -582,37 +616,33 @@ module PulpRpmClient
|
|
582
616
|
# @param [Hash] attributes Model attributes in the form of hash
|
583
617
|
# @return [Object] Returns the model itself
|
584
618
|
def self.build_from_hash(attributes)
|
585
|
-
new.build_from_hash(attributes)
|
586
|
-
end
|
587
|
-
|
588
|
-
# Builds the object from hash
|
589
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
590
|
-
# @return [Object] Returns the model itself
|
591
|
-
def build_from_hash(attributes)
|
592
619
|
return nil unless attributes.is_a?(Hash)
|
593
|
-
|
594
|
-
|
620
|
+
attributes = attributes.transform_keys(&:to_sym)
|
621
|
+
transformed_hash = {}
|
622
|
+
openapi_types.each_pair do |key, type|
|
623
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
624
|
+
transformed_hash["#{key}"] = nil
|
625
|
+
elsif type =~ /\AArray<(.*)>/i
|
595
626
|
# check to ensure the input is an array given that the attribute
|
596
627
|
# is documented as an array but the input is not
|
597
|
-
if attributes[
|
598
|
-
|
628
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
629
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
599
630
|
end
|
600
|
-
elsif !attributes[
|
601
|
-
|
602
|
-
end
|
631
|
+
elsif !attributes[attribute_map[key]].nil?
|
632
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
633
|
+
end
|
603
634
|
end
|
604
|
-
|
605
|
-
self
|
635
|
+
new(transformed_hash)
|
606
636
|
end
|
607
637
|
|
608
638
|
# Deserializes the data based on type
|
609
639
|
# @param string type Data type
|
610
640
|
# @param string value Value to be deserialized
|
611
641
|
# @return [Object] Deserialized data
|
612
|
-
def _deserialize(type, value)
|
642
|
+
def self._deserialize(type, value)
|
613
643
|
case type.to_sym
|
614
|
-
when :
|
615
|
-
|
644
|
+
when :Time
|
645
|
+
Time.parse(value)
|
616
646
|
when :Date
|
617
647
|
Date.parse(value)
|
618
648
|
when :String
|
@@ -642,7 +672,9 @@ module PulpRpmClient
|
|
642
672
|
end
|
643
673
|
end
|
644
674
|
else # model
|
645
|
-
|
675
|
+
# models (e.g. Pet) or oneOf
|
676
|
+
klass = PulpRpmClient.const_get(type)
|
677
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
646
678
|
end
|
647
679
|
end
|
648
680
|
|
@@ -668,7 +700,7 @@ module PulpRpmClient
|
|
668
700
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
669
701
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
670
702
|
end
|
671
|
-
|
703
|
+
|
672
704
|
hash[param] = _to_hash(value)
|
673
705
|
end
|
674
706
|
hash
|
@@ -691,5 +723,7 @@ module PulpRpmClient
|
|
691
723
|
value
|
692
724
|
end
|
693
725
|
end
|
726
|
+
|
694
727
|
end
|
728
|
+
|
695
729
|
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.
|
@@ -79,6 +80,28 @@ module PulpRpmClient
|
|
79
80
|
# Authentication token for SLES repositories.
|
80
81
|
attr_accessor :sles_auth_token
|
81
82
|
|
83
|
+
class EnumAttributeValidator
|
84
|
+
attr_reader :datatype
|
85
|
+
attr_reader :allowable_values
|
86
|
+
|
87
|
+
def initialize(datatype, allowable_values)
|
88
|
+
@allowable_values = allowable_values.map do |value|
|
89
|
+
case datatype.to_s
|
90
|
+
when /Integer/i
|
91
|
+
value.to_i
|
92
|
+
when /Float/i
|
93
|
+
value.to_f
|
94
|
+
else
|
95
|
+
value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def valid?(value)
|
101
|
+
!value || allowable_values.include?(value)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
82
105
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
106
|
def self.attribute_map
|
84
107
|
{
|
@@ -107,13 +130,18 @@ module PulpRpmClient
|
|
107
130
|
}
|
108
131
|
end
|
109
132
|
|
133
|
+
# Returns all the JSON keys this model knows about
|
134
|
+
def self.acceptable_attributes
|
135
|
+
attribute_map.values
|
136
|
+
end
|
137
|
+
|
110
138
|
# Attribute type mapping.
|
111
139
|
def self.openapi_types
|
112
140
|
{
|
113
141
|
:'pulp_href' => :'String',
|
114
142
|
:'prn' => :'String',
|
115
|
-
:'pulp_created' => :'
|
116
|
-
:'pulp_last_updated' => :'
|
143
|
+
:'pulp_created' => :'Time',
|
144
|
+
:'pulp_last_updated' => :'Time',
|
117
145
|
:'name' => :'String',
|
118
146
|
:'url' => :'String',
|
119
147
|
:'ca_cert' => :'String',
|
@@ -130,7 +158,7 @@ module PulpRpmClient
|
|
130
158
|
:'sock_read_timeout' => :'Float',
|
131
159
|
:'headers' => :'Array<Object>',
|
132
160
|
:'rate_limit' => :'Integer',
|
133
|
-
:'hidden_fields' => :'Array<
|
161
|
+
:'hidden_fields' => :'Array<RpmRpmRemoteResponseHiddenFieldsInner>',
|
134
162
|
:'sles_auth_token' => :'String'
|
135
163
|
}
|
136
164
|
end
|
@@ -185,10 +213,14 @@ module PulpRpmClient
|
|
185
213
|
|
186
214
|
if attributes.key?(:'name')
|
187
215
|
self.name = attributes[:'name']
|
216
|
+
else
|
217
|
+
self.name = nil
|
188
218
|
end
|
189
219
|
|
190
220
|
if attributes.key?(:'url')
|
191
221
|
self.url = attributes[:'url']
|
222
|
+
else
|
223
|
+
self.url = nil
|
192
224
|
end
|
193
225
|
|
194
226
|
if attributes.key?(:'ca_cert')
|
@@ -265,6 +297,7 @@ module PulpRpmClient
|
|
265
297
|
# Show invalid properties with the reasons. Usually used together with valid?
|
266
298
|
# @return Array for valid properties with the reasons
|
267
299
|
def list_invalid_properties
|
300
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
268
301
|
invalid_properties = Array.new
|
269
302
|
if @name.nil?
|
270
303
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -300,6 +333,7 @@ module PulpRpmClient
|
|
300
333
|
# Check to see if the all the properties in the model are valid
|
301
334
|
# @return true if the model is valid
|
302
335
|
def valid?
|
336
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
303
337
|
return false if @name.nil?
|
304
338
|
return false if @url.nil?
|
305
339
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
@@ -405,37 +439,33 @@ module PulpRpmClient
|
|
405
439
|
# @param [Hash] attributes Model attributes in the form of hash
|
406
440
|
# @return [Object] Returns the model itself
|
407
441
|
def self.build_from_hash(attributes)
|
408
|
-
new.build_from_hash(attributes)
|
409
|
-
end
|
410
|
-
|
411
|
-
# Builds the object from hash
|
412
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
413
|
-
# @return [Object] Returns the model itself
|
414
|
-
def build_from_hash(attributes)
|
415
442
|
return nil unless attributes.is_a?(Hash)
|
416
|
-
|
417
|
-
|
443
|
+
attributes = attributes.transform_keys(&:to_sym)
|
444
|
+
transformed_hash = {}
|
445
|
+
openapi_types.each_pair do |key, type|
|
446
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
447
|
+
transformed_hash["#{key}"] = nil
|
448
|
+
elsif type =~ /\AArray<(.*)>/i
|
418
449
|
# check to ensure the input is an array given that the attribute
|
419
450
|
# is documented as an array but the input is not
|
420
|
-
if attributes[
|
421
|
-
|
451
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
452
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
422
453
|
end
|
423
|
-
elsif !attributes[
|
424
|
-
|
425
|
-
end
|
454
|
+
elsif !attributes[attribute_map[key]].nil?
|
455
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
456
|
+
end
|
426
457
|
end
|
427
|
-
|
428
|
-
self
|
458
|
+
new(transformed_hash)
|
429
459
|
end
|
430
460
|
|
431
461
|
# Deserializes the data based on type
|
432
462
|
# @param string type Data type
|
433
463
|
# @param string value Value to be deserialized
|
434
464
|
# @return [Object] Deserialized data
|
435
|
-
def _deserialize(type, value)
|
465
|
+
def self._deserialize(type, value)
|
436
466
|
case type.to_sym
|
437
|
-
when :
|
438
|
-
|
467
|
+
when :Time
|
468
|
+
Time.parse(value)
|
439
469
|
when :Date
|
440
470
|
Date.parse(value)
|
441
471
|
when :String
|
@@ -465,7 +495,9 @@ module PulpRpmClient
|
|
465
495
|
end
|
466
496
|
end
|
467
497
|
else # model
|
468
|
-
|
498
|
+
# models (e.g. Pet) or oneOf
|
499
|
+
klass = PulpRpmClient.const_get(type)
|
500
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
469
501
|
end
|
470
502
|
end
|
471
503
|
|
@@ -491,7 +523,7 @@ module PulpRpmClient
|
|
491
523
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
492
524
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
493
525
|
end
|
494
|
-
|
526
|
+
|
495
527
|
hash[param] = _to_hash(value)
|
496
528
|
end
|
497
529
|
hash
|
@@ -514,5 +546,7 @@ module PulpRpmClient
|
|
514
546
|
value
|
515
547
|
end
|
516
548
|
end
|
549
|
+
|
517
550
|
end
|
551
|
+
|
518
552
|
end
|
@@ -6,14 +6,15 @@
|
|
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
|
-
class
|
17
|
+
class RpmRpmRemoteResponseHiddenFieldsInner
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
attr_accessor :is_set
|
@@ -26,6 +27,11 @@ module PulpRpmClient
|
|
26
27
|
}
|
27
28
|
end
|
28
29
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
29
35
|
# Attribute type mapping.
|
30
36
|
def self.openapi_types
|
31
37
|
{
|
@@ -44,29 +50,34 @@ module PulpRpmClient
|
|
44
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
51
|
def initialize(attributes = {})
|
46
52
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmRpmRemoteResponseHiddenFieldsInner` initialize method"
|
48
54
|
end
|
49
55
|
|
50
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmRpmRemoteResponseHiddenFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
60
|
end
|
55
61
|
h[k.to_sym] = v
|
56
62
|
}
|
57
63
|
|
58
64
|
if attributes.key?(:'name')
|
59
65
|
self.name = attributes[:'name']
|
66
|
+
else
|
67
|
+
self.name = nil
|
60
68
|
end
|
61
69
|
|
62
70
|
if attributes.key?(:'is_set')
|
63
71
|
self.is_set = attributes[:'is_set']
|
72
|
+
else
|
73
|
+
self.is_set = nil
|
64
74
|
end
|
65
75
|
end
|
66
76
|
|
67
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
78
|
# @return Array for valid properties with the reasons
|
69
79
|
def list_invalid_properties
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
70
81
|
invalid_properties = Array.new
|
71
82
|
if @name.nil?
|
72
83
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -82,6 +93,7 @@ module PulpRpmClient
|
|
82
93
|
# Check to see if the all the properties in the model are valid
|
83
94
|
# @return true if the model is valid
|
84
95
|
def valid?
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
85
97
|
return false if @name.nil?
|
86
98
|
return false if @is_set.nil?
|
87
99
|
true
|
@@ -112,37 +124,33 @@ module PulpRpmClient
|
|
112
124
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
125
|
# @return [Object] Returns the model itself
|
114
126
|
def self.build_from_hash(attributes)
|
115
|
-
new.build_from_hash(attributes)
|
116
|
-
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
127
|
return nil unless attributes.is_a?(Hash)
|
123
|
-
|
124
|
-
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
transformed_hash = {}
|
130
|
+
openapi_types.each_pair do |key, type|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
132
|
+
transformed_hash["#{key}"] = nil
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
125
134
|
# check to ensure the input is an array given that the attribute
|
126
135
|
# is documented as an array but the input is not
|
127
|
-
if attributes[
|
128
|
-
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
129
138
|
end
|
130
|
-
elsif !attributes[
|
131
|
-
|
132
|
-
end
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
141
|
+
end
|
133
142
|
end
|
134
|
-
|
135
|
-
self
|
143
|
+
new(transformed_hash)
|
136
144
|
end
|
137
145
|
|
138
146
|
# Deserializes the data based on type
|
139
147
|
# @param string type Data type
|
140
148
|
# @param string value Value to be deserialized
|
141
149
|
# @return [Object] Deserialized data
|
142
|
-
def _deserialize(type, value)
|
150
|
+
def self._deserialize(type, value)
|
143
151
|
case type.to_sym
|
144
|
-
when :
|
145
|
-
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
146
154
|
when :Date
|
147
155
|
Date.parse(value)
|
148
156
|
when :String
|
@@ -172,7 +180,9 @@ module PulpRpmClient
|
|
172
180
|
end
|
173
181
|
end
|
174
182
|
else # model
|
175
|
-
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = PulpRpmClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
176
186
|
end
|
177
187
|
end
|
178
188
|
|
@@ -198,7 +208,7 @@ module PulpRpmClient
|
|
198
208
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
209
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
210
|
end
|
201
|
-
|
211
|
+
|
202
212
|
hash[param] = _to_hash(value)
|
203
213
|
end
|
204
214
|
hash
|
@@ -221,5 +231,7 @@ module PulpRpmClient
|
|
221
231
|
value
|
222
232
|
end
|
223
233
|
end
|
234
|
+
|
224
235
|
end
|
236
|
+
|
225
237
|
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
|
@@ -151,6 +180,8 @@ module PulpRpmClient
|
|
151
180
|
|
152
181
|
if attributes.key?(:'name')
|
153
182
|
self.name = attributes[:'name']
|
183
|
+
else
|
184
|
+
self.name = nil
|
154
185
|
end
|
155
186
|
|
156
187
|
if attributes.key?(:'description')
|
@@ -221,6 +252,7 @@ module PulpRpmClient
|
|
221
252
|
# Show invalid properties with the reasons. Usually used together with valid?
|
222
253
|
# @return Array for valid properties with the reasons
|
223
254
|
def list_invalid_properties
|
255
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
224
256
|
invalid_properties = Array.new
|
225
257
|
if @name.nil?
|
226
258
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -268,6 +300,7 @@ module PulpRpmClient
|
|
268
300
|
# Check to see if the all the properties in the model are valid
|
269
301
|
# @return true if the model is valid
|
270
302
|
def valid?
|
303
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
271
304
|
return false if @name.nil?
|
272
305
|
return false if @name.to_s.length < 1
|
273
306
|
return false if !@description.nil? && @description.to_s.length < 1
|
@@ -318,7 +351,11 @@ module PulpRpmClient
|
|
318
351
|
# Custom attribute writer method with validation
|
319
352
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
320
353
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
321
|
-
if
|
354
|
+
if package_signing_fingerprint.nil?
|
355
|
+
fail ArgumentError, 'package_signing_fingerprint cannot be nil'
|
356
|
+
end
|
357
|
+
|
358
|
+
if package_signing_fingerprint.to_s.length > 40
|
322
359
|
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
323
360
|
end
|
324
361
|
|
@@ -328,7 +365,11 @@ module PulpRpmClient
|
|
328
365
|
# Custom attribute writer method with validation
|
329
366
|
# @param [Object] retain_package_versions Value to be assigned
|
330
367
|
def retain_package_versions=(retain_package_versions)
|
331
|
-
if
|
368
|
+
if retain_package_versions.nil?
|
369
|
+
fail ArgumentError, 'retain_package_versions cannot be nil'
|
370
|
+
end
|
371
|
+
|
372
|
+
if retain_package_versions < 0
|
332
373
|
fail ArgumentError, 'invalid value for "retain_package_versions", must be greater than or equal to 0.'
|
333
374
|
end
|
334
375
|
|
@@ -403,37 +444,33 @@ module PulpRpmClient
|
|
403
444
|
# @param [Hash] attributes Model attributes in the form of hash
|
404
445
|
# @return [Object] Returns the model itself
|
405
446
|
def self.build_from_hash(attributes)
|
406
|
-
new.build_from_hash(attributes)
|
407
|
-
end
|
408
|
-
|
409
|
-
# Builds the object from hash
|
410
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
411
|
-
# @return [Object] Returns the model itself
|
412
|
-
def build_from_hash(attributes)
|
413
447
|
return nil unless attributes.is_a?(Hash)
|
414
|
-
|
415
|
-
|
448
|
+
attributes = attributes.transform_keys(&:to_sym)
|
449
|
+
transformed_hash = {}
|
450
|
+
openapi_types.each_pair do |key, type|
|
451
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
452
|
+
transformed_hash["#{key}"] = nil
|
453
|
+
elsif type =~ /\AArray<(.*)>/i
|
416
454
|
# check to ensure the input is an array given that the attribute
|
417
455
|
# is documented as an array but the input is not
|
418
|
-
if attributes[
|
419
|
-
|
456
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
457
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
420
458
|
end
|
421
|
-
elsif !attributes[
|
422
|
-
|
423
|
-
end
|
459
|
+
elsif !attributes[attribute_map[key]].nil?
|
460
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
461
|
+
end
|
424
462
|
end
|
425
|
-
|
426
|
-
self
|
463
|
+
new(transformed_hash)
|
427
464
|
end
|
428
465
|
|
429
466
|
# Deserializes the data based on type
|
430
467
|
# @param string type Data type
|
431
468
|
# @param string value Value to be deserialized
|
432
469
|
# @return [Object] Deserialized data
|
433
|
-
def _deserialize(type, value)
|
470
|
+
def self._deserialize(type, value)
|
434
471
|
case type.to_sym
|
435
|
-
when :
|
436
|
-
|
472
|
+
when :Time
|
473
|
+
Time.parse(value)
|
437
474
|
when :Date
|
438
475
|
Date.parse(value)
|
439
476
|
when :String
|
@@ -463,7 +500,9 @@ module PulpRpmClient
|
|
463
500
|
end
|
464
501
|
end
|
465
502
|
else # model
|
466
|
-
|
503
|
+
# models (e.g. Pet) or oneOf
|
504
|
+
klass = PulpRpmClient.const_get(type)
|
505
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
467
506
|
end
|
468
507
|
end
|
469
508
|
|
@@ -489,7 +528,7 @@ module PulpRpmClient
|
|
489
528
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
490
529
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
491
530
|
end
|
492
|
-
|
531
|
+
|
493
532
|
hash[param] = _to_hash(value)
|
494
533
|
end
|
495
534
|
hash
|
@@ -512,5 +551,7 @@ module PulpRpmClient
|
|
512
551
|
value
|
513
552
|
end
|
514
553
|
end
|
554
|
+
|
515
555
|
end
|
556
|
+
|
516
557
|
end
|