pulp_rpm_client 3.27.13 → 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 +69 -34
- 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 +66 -33
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +69 -27
- 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 +120 -108
- 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 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
|
{
|
|
@@ -119,12 +147,12 @@ module PulpRpmClient
|
|
|
119
147
|
:'remote',
|
|
120
148
|
:'metadata_signing_service',
|
|
121
149
|
:'package_signing_service',
|
|
122
|
-
:'package_signing_fingerprint',
|
|
123
150
|
:'checksum_type',
|
|
124
151
|
:'metadata_checksum_type',
|
|
125
152
|
:'package_checksum_type',
|
|
126
153
|
:'gpgcheck',
|
|
127
154
|
:'repo_gpgcheck',
|
|
155
|
+
:'repo_config',
|
|
128
156
|
:'compression_type'
|
|
129
157
|
])
|
|
130
158
|
end
|
|
@@ -152,6 +180,8 @@ module PulpRpmClient
|
|
|
152
180
|
|
|
153
181
|
if attributes.key?(:'name')
|
|
154
182
|
self.name = attributes[:'name']
|
|
183
|
+
else
|
|
184
|
+
self.name = nil
|
|
155
185
|
end
|
|
156
186
|
|
|
157
187
|
if attributes.key?(:'description')
|
|
@@ -182,6 +212,8 @@ module PulpRpmClient
|
|
|
182
212
|
|
|
183
213
|
if attributes.key?(:'package_signing_fingerprint')
|
|
184
214
|
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
215
|
+
else
|
|
216
|
+
self.package_signing_fingerprint = ''
|
|
185
217
|
end
|
|
186
218
|
|
|
187
219
|
if attributes.key?(:'retain_package_versions')
|
|
@@ -220,6 +252,7 @@ module PulpRpmClient
|
|
|
220
252
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
221
253
|
# @return Array for valid properties with the reasons
|
|
222
254
|
def list_invalid_properties
|
|
255
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
223
256
|
invalid_properties = Array.new
|
|
224
257
|
if @name.nil?
|
|
225
258
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -241,10 +274,6 @@ module PulpRpmClient
|
|
|
241
274
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
|
242
275
|
end
|
|
243
276
|
|
|
244
|
-
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
245
|
-
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.')
|
|
246
|
-
end
|
|
247
|
-
|
|
248
277
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
|
249
278
|
invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
|
|
250
279
|
end
|
|
@@ -271,12 +300,12 @@ module PulpRpmClient
|
|
|
271
300
|
# Check to see if the all the properties in the model are valid
|
|
272
301
|
# @return true if the model is valid
|
|
273
302
|
def valid?
|
|
303
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
274
304
|
return false if @name.nil?
|
|
275
305
|
return false if @name.to_s.length < 1
|
|
276
306
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
277
307
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
278
308
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
279
|
-
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
280
309
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
|
281
310
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
|
282
311
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
|
@@ -322,12 +351,12 @@ module PulpRpmClient
|
|
|
322
351
|
# Custom attribute writer method with validation
|
|
323
352
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
324
353
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
325
|
-
if
|
|
326
|
-
fail ArgumentError, '
|
|
354
|
+
if package_signing_fingerprint.nil?
|
|
355
|
+
fail ArgumentError, 'package_signing_fingerprint cannot be nil'
|
|
327
356
|
end
|
|
328
357
|
|
|
329
|
-
if
|
|
330
|
-
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be
|
|
358
|
+
if package_signing_fingerprint.to_s.length > 40
|
|
359
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
|
331
360
|
end
|
|
332
361
|
|
|
333
362
|
@package_signing_fingerprint = package_signing_fingerprint
|
|
@@ -336,7 +365,11 @@ module PulpRpmClient
|
|
|
336
365
|
# Custom attribute writer method with validation
|
|
337
366
|
# @param [Object] retain_package_versions Value to be assigned
|
|
338
367
|
def retain_package_versions=(retain_package_versions)
|
|
339
|
-
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
|
|
340
373
|
fail ArgumentError, 'invalid value for "retain_package_versions", must be greater than or equal to 0.'
|
|
341
374
|
end
|
|
342
375
|
|
|
@@ -411,37 +444,33 @@ module PulpRpmClient
|
|
|
411
444
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
412
445
|
# @return [Object] Returns the model itself
|
|
413
446
|
def self.build_from_hash(attributes)
|
|
414
|
-
new.build_from_hash(attributes)
|
|
415
|
-
end
|
|
416
|
-
|
|
417
|
-
# Builds the object from hash
|
|
418
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
419
|
-
# @return [Object] Returns the model itself
|
|
420
|
-
def build_from_hash(attributes)
|
|
421
447
|
return nil unless attributes.is_a?(Hash)
|
|
422
|
-
|
|
423
|
-
|
|
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
|
|
424
454
|
# check to ensure the input is an array given that the attribute
|
|
425
455
|
# is documented as an array but the input is not
|
|
426
|
-
if attributes[
|
|
427
|
-
|
|
456
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
457
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
428
458
|
end
|
|
429
|
-
elsif !attributes[
|
|
430
|
-
|
|
431
|
-
end
|
|
459
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
460
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
461
|
+
end
|
|
432
462
|
end
|
|
433
|
-
|
|
434
|
-
self
|
|
463
|
+
new(transformed_hash)
|
|
435
464
|
end
|
|
436
465
|
|
|
437
466
|
# Deserializes the data based on type
|
|
438
467
|
# @param string type Data type
|
|
439
468
|
# @param string value Value to be deserialized
|
|
440
469
|
# @return [Object] Deserialized data
|
|
441
|
-
def _deserialize(type, value)
|
|
470
|
+
def self._deserialize(type, value)
|
|
442
471
|
case type.to_sym
|
|
443
|
-
when :
|
|
444
|
-
|
|
472
|
+
when :Time
|
|
473
|
+
Time.parse(value)
|
|
445
474
|
when :Date
|
|
446
475
|
Date.parse(value)
|
|
447
476
|
when :String
|
|
@@ -471,7 +500,9 @@ module PulpRpmClient
|
|
|
471
500
|
end
|
|
472
501
|
end
|
|
473
502
|
else # model
|
|
474
|
-
|
|
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)
|
|
475
506
|
end
|
|
476
507
|
end
|
|
477
508
|
|
|
@@ -497,7 +528,7 @@ module PulpRpmClient
|
|
|
497
528
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
498
529
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
499
530
|
end
|
|
500
|
-
|
|
531
|
+
|
|
501
532
|
hash[param] = _to_hash(value)
|
|
502
533
|
end
|
|
503
534
|
hash
|
|
@@ -520,5 +551,7 @@ module PulpRpmClient
|
|
|
520
551
|
value
|
|
521
552
|
end
|
|
522
553
|
end
|
|
554
|
+
|
|
523
555
|
end
|
|
556
|
+
|
|
524
557
|
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.
|
|
@@ -83,6 +84,28 @@ module PulpRpmClient
|
|
|
83
84
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
|
84
85
|
attr_accessor :compression_type
|
|
85
86
|
|
|
87
|
+
class EnumAttributeValidator
|
|
88
|
+
attr_reader :datatype
|
|
89
|
+
attr_reader :allowable_values
|
|
90
|
+
|
|
91
|
+
def initialize(datatype, allowable_values)
|
|
92
|
+
@allowable_values = allowable_values.map do |value|
|
|
93
|
+
case datatype.to_s
|
|
94
|
+
when /Integer/i
|
|
95
|
+
value.to_i
|
|
96
|
+
when /Float/i
|
|
97
|
+
value.to_f
|
|
98
|
+
else
|
|
99
|
+
value
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def valid?(value)
|
|
105
|
+
!value || allowable_values.include?(value)
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
86
109
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
87
110
|
def self.attribute_map
|
|
88
111
|
{
|
|
@@ -113,13 +136,18 @@ module PulpRpmClient
|
|
|
113
136
|
}
|
|
114
137
|
end
|
|
115
138
|
|
|
139
|
+
# Returns all the JSON keys this model knows about
|
|
140
|
+
def self.acceptable_attributes
|
|
141
|
+
attribute_map.values
|
|
142
|
+
end
|
|
143
|
+
|
|
116
144
|
# Attribute type mapping.
|
|
117
145
|
def self.openapi_types
|
|
118
146
|
{
|
|
119
147
|
:'pulp_href' => :'String',
|
|
120
148
|
:'prn' => :'String',
|
|
121
|
-
:'pulp_created' => :'
|
|
122
|
-
:'pulp_last_updated' => :'
|
|
149
|
+
:'pulp_created' => :'Time',
|
|
150
|
+
:'pulp_last_updated' => :'Time',
|
|
123
151
|
:'versions_href' => :'String',
|
|
124
152
|
:'pulp_labels' => :'Hash<String, String>',
|
|
125
153
|
:'latest_version_href' => :'String',
|
|
@@ -151,12 +179,12 @@ module PulpRpmClient
|
|
|
151
179
|
:'remote',
|
|
152
180
|
:'metadata_signing_service',
|
|
153
181
|
:'package_signing_service',
|
|
154
|
-
:'package_signing_fingerprint',
|
|
155
182
|
:'checksum_type',
|
|
156
183
|
:'metadata_checksum_type',
|
|
157
184
|
:'package_checksum_type',
|
|
158
185
|
:'gpgcheck',
|
|
159
186
|
:'repo_gpgcheck',
|
|
187
|
+
:'repo_config',
|
|
160
188
|
:'compression_type'
|
|
161
189
|
])
|
|
162
190
|
end
|
|
@@ -208,6 +236,8 @@ module PulpRpmClient
|
|
|
208
236
|
|
|
209
237
|
if attributes.key?(:'name')
|
|
210
238
|
self.name = attributes[:'name']
|
|
239
|
+
else
|
|
240
|
+
self.name = nil
|
|
211
241
|
end
|
|
212
242
|
|
|
213
243
|
if attributes.key?(:'description')
|
|
@@ -238,6 +268,8 @@ module PulpRpmClient
|
|
|
238
268
|
|
|
239
269
|
if attributes.key?(:'package_signing_fingerprint')
|
|
240
270
|
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
|
271
|
+
else
|
|
272
|
+
self.package_signing_fingerprint = ''
|
|
241
273
|
end
|
|
242
274
|
|
|
243
275
|
if attributes.key?(:'retain_package_versions')
|
|
@@ -282,6 +314,7 @@ module PulpRpmClient
|
|
|
282
314
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
283
315
|
# @return Array for valid properties with the reasons
|
|
284
316
|
def list_invalid_properties
|
|
317
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
285
318
|
invalid_properties = Array.new
|
|
286
319
|
if @name.nil?
|
|
287
320
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -321,6 +354,7 @@ module PulpRpmClient
|
|
|
321
354
|
# Check to see if the all the properties in the model are valid
|
|
322
355
|
# @return true if the model is valid
|
|
323
356
|
def valid?
|
|
357
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
324
358
|
return false if @name.nil?
|
|
325
359
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
326
360
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
@@ -345,7 +379,11 @@ module PulpRpmClient
|
|
|
345
379
|
# Custom attribute writer method with validation
|
|
346
380
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
347
381
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
348
|
-
if
|
|
382
|
+
if package_signing_fingerprint.nil?
|
|
383
|
+
fail ArgumentError, 'package_signing_fingerprint cannot be nil'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
if package_signing_fingerprint.to_s.length > 40
|
|
349
387
|
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
|
350
388
|
end
|
|
351
389
|
|
|
@@ -355,7 +393,11 @@ module PulpRpmClient
|
|
|
355
393
|
# Custom attribute writer method with validation
|
|
356
394
|
# @param [Object] retain_package_versions Value to be assigned
|
|
357
395
|
def retain_package_versions=(retain_package_versions)
|
|
358
|
-
if
|
|
396
|
+
if retain_package_versions.nil?
|
|
397
|
+
fail ArgumentError, 'retain_package_versions cannot be nil'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
if retain_package_versions < 0
|
|
359
401
|
fail ArgumentError, 'invalid value for "retain_package_versions", must be greater than or equal to 0.'
|
|
360
402
|
end
|
|
361
403
|
|
|
@@ -437,37 +479,33 @@ module PulpRpmClient
|
|
|
437
479
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
438
480
|
# @return [Object] Returns the model itself
|
|
439
481
|
def self.build_from_hash(attributes)
|
|
440
|
-
new.build_from_hash(attributes)
|
|
441
|
-
end
|
|
442
|
-
|
|
443
|
-
# Builds the object from hash
|
|
444
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
445
|
-
# @return [Object] Returns the model itself
|
|
446
|
-
def build_from_hash(attributes)
|
|
447
482
|
return nil unless attributes.is_a?(Hash)
|
|
448
|
-
|
|
449
|
-
|
|
483
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
484
|
+
transformed_hash = {}
|
|
485
|
+
openapi_types.each_pair do |key, type|
|
|
486
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
487
|
+
transformed_hash["#{key}"] = nil
|
|
488
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
450
489
|
# check to ensure the input is an array given that the attribute
|
|
451
490
|
# is documented as an array but the input is not
|
|
452
|
-
if attributes[
|
|
453
|
-
|
|
491
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
492
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
454
493
|
end
|
|
455
|
-
elsif !attributes[
|
|
456
|
-
|
|
457
|
-
end
|
|
494
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
495
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
496
|
+
end
|
|
458
497
|
end
|
|
459
|
-
|
|
460
|
-
self
|
|
498
|
+
new(transformed_hash)
|
|
461
499
|
end
|
|
462
500
|
|
|
463
501
|
# Deserializes the data based on type
|
|
464
502
|
# @param string type Data type
|
|
465
503
|
# @param string value Value to be deserialized
|
|
466
504
|
# @return [Object] Deserialized data
|
|
467
|
-
def _deserialize(type, value)
|
|
505
|
+
def self._deserialize(type, value)
|
|
468
506
|
case type.to_sym
|
|
469
|
-
when :
|
|
470
|
-
|
|
507
|
+
when :Time
|
|
508
|
+
Time.parse(value)
|
|
471
509
|
when :Date
|
|
472
510
|
Date.parse(value)
|
|
473
511
|
when :String
|
|
@@ -497,7 +535,9 @@ module PulpRpmClient
|
|
|
497
535
|
end
|
|
498
536
|
end
|
|
499
537
|
else # model
|
|
500
|
-
|
|
538
|
+
# models (e.g. Pet) or oneOf
|
|
539
|
+
klass = PulpRpmClient.const_get(type)
|
|
540
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
501
541
|
end
|
|
502
542
|
end
|
|
503
543
|
|
|
@@ -523,7 +563,7 @@ module PulpRpmClient
|
|
|
523
563
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
524
564
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
525
565
|
end
|
|
526
|
-
|
|
566
|
+
|
|
527
567
|
hash[param] = _to_hash(value)
|
|
528
568
|
end
|
|
529
569
|
hash
|
|
@@ -546,5 +586,7 @@ module PulpRpmClient
|
|
|
546
586
|
value
|
|
547
587
|
end
|
|
548
588
|
end
|
|
589
|
+
|
|
549
590
|
end
|
|
591
|
+
|
|
550
592
|
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 UlnRemote.
|
|
@@ -80,6 +81,28 @@ module PulpRpmClient
|
|
|
80
81
|
# Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead.
|
|
81
82
|
attr_accessor :uln_server_base_url
|
|
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
|
{
|
|
@@ -173,10 +201,14 @@ module PulpRpmClient
|
|
|
173
201
|
|
|
174
202
|
if attributes.key?(:'name')
|
|
175
203
|
self.name = attributes[:'name']
|
|
204
|
+
else
|
|
205
|
+
self.name = nil
|
|
176
206
|
end
|
|
177
207
|
|
|
178
208
|
if attributes.key?(:'url')
|
|
179
209
|
self.url = attributes[:'url']
|
|
210
|
+
else
|
|
211
|
+
self.url = nil
|
|
180
212
|
end
|
|
181
213
|
|
|
182
214
|
if attributes.key?(:'ca_cert')
|
|
@@ -209,10 +241,14 @@ module PulpRpmClient
|
|
|
209
241
|
|
|
210
242
|
if attributes.key?(:'username')
|
|
211
243
|
self.username = attributes[:'username']
|
|
244
|
+
else
|
|
245
|
+
self.username = nil
|
|
212
246
|
end
|
|
213
247
|
|
|
214
248
|
if attributes.key?(:'password')
|
|
215
249
|
self.password = attributes[:'password']
|
|
250
|
+
else
|
|
251
|
+
self.password = nil
|
|
216
252
|
end
|
|
217
253
|
|
|
218
254
|
if attributes.key?(:'pulp_labels')
|
|
@@ -267,6 +303,7 @@ module PulpRpmClient
|
|
|
267
303
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
268
304
|
# @return Array for valid properties with the reasons
|
|
269
305
|
def list_invalid_properties
|
|
306
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
270
307
|
invalid_properties = Array.new
|
|
271
308
|
if @name.nil?
|
|
272
309
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -354,6 +391,7 @@ module PulpRpmClient
|
|
|
354
391
|
# Check to see if the all the properties in the model are valid
|
|
355
392
|
# @return true if the model is valid
|
|
356
393
|
def valid?
|
|
394
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
357
395
|
return false if @name.nil?
|
|
358
396
|
return false if @name.to_s.length < 1
|
|
359
397
|
return false if @url.nil?
|
|
@@ -598,37 +636,33 @@ module PulpRpmClient
|
|
|
598
636
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
599
637
|
# @return [Object] Returns the model itself
|
|
600
638
|
def self.build_from_hash(attributes)
|
|
601
|
-
new.build_from_hash(attributes)
|
|
602
|
-
end
|
|
603
|
-
|
|
604
|
-
# Builds the object from hash
|
|
605
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
606
|
-
# @return [Object] Returns the model itself
|
|
607
|
-
def build_from_hash(attributes)
|
|
608
639
|
return nil unless attributes.is_a?(Hash)
|
|
609
|
-
|
|
610
|
-
|
|
640
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
641
|
+
transformed_hash = {}
|
|
642
|
+
openapi_types.each_pair do |key, type|
|
|
643
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
644
|
+
transformed_hash["#{key}"] = nil
|
|
645
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
611
646
|
# check to ensure the input is an array given that the attribute
|
|
612
647
|
# is documented as an array but the input is not
|
|
613
|
-
if attributes[
|
|
614
|
-
|
|
648
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
649
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
615
650
|
end
|
|
616
|
-
elsif !attributes[
|
|
617
|
-
|
|
618
|
-
end
|
|
651
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
652
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
653
|
+
end
|
|
619
654
|
end
|
|
620
|
-
|
|
621
|
-
self
|
|
655
|
+
new(transformed_hash)
|
|
622
656
|
end
|
|
623
657
|
|
|
624
658
|
# Deserializes the data based on type
|
|
625
659
|
# @param string type Data type
|
|
626
660
|
# @param string value Value to be deserialized
|
|
627
661
|
# @return [Object] Deserialized data
|
|
628
|
-
def _deserialize(type, value)
|
|
662
|
+
def self._deserialize(type, value)
|
|
629
663
|
case type.to_sym
|
|
630
|
-
when :
|
|
631
|
-
|
|
664
|
+
when :Time
|
|
665
|
+
Time.parse(value)
|
|
632
666
|
when :Date
|
|
633
667
|
Date.parse(value)
|
|
634
668
|
when :String
|
|
@@ -658,7 +692,9 @@ module PulpRpmClient
|
|
|
658
692
|
end
|
|
659
693
|
end
|
|
660
694
|
else # model
|
|
661
|
-
|
|
695
|
+
# models (e.g. Pet) or oneOf
|
|
696
|
+
klass = PulpRpmClient.const_get(type)
|
|
697
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
662
698
|
end
|
|
663
699
|
end
|
|
664
700
|
|
|
@@ -684,7 +720,7 @@ module PulpRpmClient
|
|
|
684
720
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
685
721
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
686
722
|
end
|
|
687
|
-
|
|
723
|
+
|
|
688
724
|
hash[param] = _to_hash(value)
|
|
689
725
|
end
|
|
690
726
|
hash
|
|
@@ -707,5 +743,7 @@ module PulpRpmClient
|
|
|
707
743
|
value
|
|
708
744
|
end
|
|
709
745
|
end
|
|
746
|
+
|
|
710
747
|
end
|
|
748
|
+
|
|
711
749
|
end
|