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 synchronously setting a label.
|
|
@@ -27,6 +28,11 @@ module PulpRpmClient
|
|
|
27
28
|
}
|
|
28
29
|
end
|
|
29
30
|
|
|
31
|
+
# Returns all the JSON keys this model knows about
|
|
32
|
+
def self.acceptable_attributes
|
|
33
|
+
attribute_map.values
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
# Attribute type mapping.
|
|
31
37
|
def self.openapi_types
|
|
32
38
|
{
|
|
@@ -59,16 +65,21 @@ module PulpRpmClient
|
|
|
59
65
|
|
|
60
66
|
if attributes.key?(:'key')
|
|
61
67
|
self.key = attributes[:'key']
|
|
68
|
+
else
|
|
69
|
+
self.key = nil
|
|
62
70
|
end
|
|
63
71
|
|
|
64
72
|
if attributes.key?(:'value')
|
|
65
73
|
self.value = attributes[:'value']
|
|
74
|
+
else
|
|
75
|
+
self.value = nil
|
|
66
76
|
end
|
|
67
77
|
end
|
|
68
78
|
|
|
69
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
70
80
|
# @return Array for valid properties with the reasons
|
|
71
81
|
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
72
83
|
invalid_properties = Array.new
|
|
73
84
|
if @key.nil?
|
|
74
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
@@ -89,6 +100,7 @@ module PulpRpmClient
|
|
|
89
100
|
# Check to see if the all the properties in the model are valid
|
|
90
101
|
# @return true if the model is valid
|
|
91
102
|
def valid?
|
|
103
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
104
|
return false if @key.nil?
|
|
93
105
|
return false if @key.to_s.length < 1
|
|
94
106
|
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
@@ -139,37 +151,33 @@ module PulpRpmClient
|
|
|
139
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
140
152
|
# @return [Object] Returns the model itself
|
|
141
153
|
def self.build_from_hash(attributes)
|
|
142
|
-
new.build_from_hash(attributes)
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
# Builds the object from hash
|
|
146
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
147
|
-
# @return [Object] Returns the model itself
|
|
148
|
-
def build_from_hash(attributes)
|
|
149
154
|
return nil unless attributes.is_a?(Hash)
|
|
150
|
-
|
|
151
|
-
|
|
155
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
156
|
+
transformed_hash = {}
|
|
157
|
+
openapi_types.each_pair do |key, type|
|
|
158
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
159
|
+
transformed_hash["#{key}"] = nil
|
|
160
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
152
161
|
# check to ensure the input is an array given that the attribute
|
|
153
162
|
# is documented as an array but the input is not
|
|
154
|
-
if attributes[
|
|
155
|
-
|
|
163
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
164
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
156
165
|
end
|
|
157
|
-
elsif !attributes[
|
|
158
|
-
|
|
159
|
-
end
|
|
166
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
167
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
168
|
+
end
|
|
160
169
|
end
|
|
161
|
-
|
|
162
|
-
self
|
|
170
|
+
new(transformed_hash)
|
|
163
171
|
end
|
|
164
172
|
|
|
165
173
|
# Deserializes the data based on type
|
|
166
174
|
# @param string type Data type
|
|
167
175
|
# @param string value Value to be deserialized
|
|
168
176
|
# @return [Object] Deserialized data
|
|
169
|
-
def _deserialize(type, value)
|
|
177
|
+
def self._deserialize(type, value)
|
|
170
178
|
case type.to_sym
|
|
171
|
-
when :
|
|
172
|
-
|
|
179
|
+
when :Time
|
|
180
|
+
Time.parse(value)
|
|
173
181
|
when :Date
|
|
174
182
|
Date.parse(value)
|
|
175
183
|
when :String
|
|
@@ -199,7 +207,9 @@ module PulpRpmClient
|
|
|
199
207
|
end
|
|
200
208
|
end
|
|
201
209
|
else # model
|
|
202
|
-
|
|
210
|
+
# models (e.g. Pet) or oneOf
|
|
211
|
+
klass = PulpRpmClient.const_get(type)
|
|
212
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
203
213
|
end
|
|
204
214
|
end
|
|
205
215
|
|
|
@@ -225,7 +235,7 @@ module PulpRpmClient
|
|
|
225
235
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
226
236
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
227
237
|
end
|
|
228
|
-
|
|
238
|
+
|
|
229
239
|
hash[param] = _to_hash(value)
|
|
230
240
|
end
|
|
231
241
|
hash
|
|
@@ -248,5 +258,7 @@ module PulpRpmClient
|
|
|
248
258
|
value
|
|
249
259
|
end
|
|
250
260
|
end
|
|
261
|
+
|
|
251
262
|
end
|
|
263
|
+
|
|
252
264
|
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 synchronously setting a label.
|
|
@@ -27,6 +28,11 @@ module PulpRpmClient
|
|
|
27
28
|
}
|
|
28
29
|
end
|
|
29
30
|
|
|
31
|
+
# Returns all the JSON keys this model knows about
|
|
32
|
+
def self.acceptable_attributes
|
|
33
|
+
attribute_map.values
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
# Attribute type mapping.
|
|
31
37
|
def self.openapi_types
|
|
32
38
|
{
|
|
@@ -59,16 +65,21 @@ module PulpRpmClient
|
|
|
59
65
|
|
|
60
66
|
if attributes.key?(:'key')
|
|
61
67
|
self.key = attributes[:'key']
|
|
68
|
+
else
|
|
69
|
+
self.key = nil
|
|
62
70
|
end
|
|
63
71
|
|
|
64
72
|
if attributes.key?(:'value')
|
|
65
73
|
self.value = attributes[:'value']
|
|
74
|
+
else
|
|
75
|
+
self.value = nil
|
|
66
76
|
end
|
|
67
77
|
end
|
|
68
78
|
|
|
69
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
70
80
|
# @return Array for valid properties with the reasons
|
|
71
81
|
def list_invalid_properties
|
|
82
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
72
83
|
invalid_properties = Array.new
|
|
73
84
|
if @key.nil?
|
|
74
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
@@ -85,6 +96,7 @@ module PulpRpmClient
|
|
|
85
96
|
# Check to see if the all the properties in the model are valid
|
|
86
97
|
# @return true if the model is valid
|
|
87
98
|
def valid?
|
|
99
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
88
100
|
return false if @key.nil?
|
|
89
101
|
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
90
102
|
true
|
|
@@ -130,37 +142,33 @@ module PulpRpmClient
|
|
|
130
142
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
143
|
# @return [Object] Returns the model itself
|
|
132
144
|
def self.build_from_hash(attributes)
|
|
133
|
-
new.build_from_hash(attributes)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Builds the object from hash
|
|
137
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
-
# @return [Object] Returns the model itself
|
|
139
|
-
def build_from_hash(attributes)
|
|
140
145
|
return nil unless attributes.is_a?(Hash)
|
|
141
|
-
|
|
142
|
-
|
|
146
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
147
|
+
transformed_hash = {}
|
|
148
|
+
openapi_types.each_pair do |key, type|
|
|
149
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
150
|
+
transformed_hash["#{key}"] = nil
|
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
152
|
# check to ensure the input is an array given that the attribute
|
|
144
153
|
# is documented as an array but the input is not
|
|
145
|
-
if attributes[
|
|
146
|
-
|
|
154
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
155
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
147
156
|
end
|
|
148
|
-
elsif !attributes[
|
|
149
|
-
|
|
150
|
-
end
|
|
157
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
159
|
+
end
|
|
151
160
|
end
|
|
152
|
-
|
|
153
|
-
self
|
|
161
|
+
new(transformed_hash)
|
|
154
162
|
end
|
|
155
163
|
|
|
156
164
|
# Deserializes the data based on type
|
|
157
165
|
# @param string type Data type
|
|
158
166
|
# @param string value Value to be deserialized
|
|
159
167
|
# @return [Object] Deserialized data
|
|
160
|
-
def _deserialize(type, value)
|
|
168
|
+
def self._deserialize(type, value)
|
|
161
169
|
case type.to_sym
|
|
162
|
-
when :
|
|
163
|
-
|
|
170
|
+
when :Time
|
|
171
|
+
Time.parse(value)
|
|
164
172
|
when :Date
|
|
165
173
|
Date.parse(value)
|
|
166
174
|
when :String
|
|
@@ -190,7 +198,9 @@ module PulpRpmClient
|
|
|
190
198
|
end
|
|
191
199
|
end
|
|
192
200
|
else # model
|
|
193
|
-
|
|
201
|
+
# models (e.g. Pet) or oneOf
|
|
202
|
+
klass = PulpRpmClient.const_get(type)
|
|
203
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
194
204
|
end
|
|
195
205
|
end
|
|
196
206
|
|
|
@@ -216,7 +226,7 @@ module PulpRpmClient
|
|
|
216
226
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
217
227
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
218
228
|
end
|
|
219
|
-
|
|
229
|
+
|
|
220
230
|
hash[param] = _to_hash(value)
|
|
221
231
|
end
|
|
222
232
|
hash
|
|
@@ -239,5 +249,7 @@ module PulpRpmClient
|
|
|
239
249
|
value
|
|
240
250
|
end
|
|
241
251
|
end
|
|
252
|
+
|
|
242
253
|
end
|
|
254
|
+
|
|
243
255
|
end
|
|
@@ -6,17 +6,22 @@
|
|
|
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
|
class SkipTypesEnum
|
|
17
18
|
SRPM = "srpm".freeze
|
|
18
19
|
TREEINFO = "treeinfo".freeze
|
|
19
20
|
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [SRPM, TREEINFO].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
20
25
|
# Builds the enum from string
|
|
21
26
|
# @param [String] The enum value in the form of the string
|
|
22
27
|
# @return [String] The enum value
|
|
@@ -28,9 +33,8 @@ module PulpRpmClient
|
|
|
28
33
|
# @param [String] The enum value in the form of the string
|
|
29
34
|
# @return [String] The enum value
|
|
30
35
|
def build_from_hash(value)
|
|
31
|
-
|
|
32
|
-
raise "Invalid ENUM value #{value} for class #SkipTypesEnum"
|
|
33
|
-
value
|
|
36
|
+
return value if SkipTypesEnum.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #SkipTypesEnum"
|
|
34
38
|
end
|
|
35
39
|
end
|
|
36
40
|
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
|
class SyncPolicyEnum
|
|
@@ -18,6 +19,10 @@ module PulpRpmClient
|
|
|
18
19
|
MIRROR_COMPLETE = "mirror_complete".freeze
|
|
19
20
|
MIRROR_CONTENT_ONLY = "mirror_content_only".freeze
|
|
20
21
|
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ADDITIVE, MIRROR_COMPLETE, MIRROR_CONTENT_ONLY].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
21
26
|
# Builds the enum from string
|
|
22
27
|
# @param [String] The enum value in the form of the string
|
|
23
28
|
# @return [String] The enum value
|
|
@@ -29,9 +34,8 @@ module PulpRpmClient
|
|
|
29
34
|
# @param [String] The enum value in the form of the string
|
|
30
35
|
# @return [String] The enum value
|
|
31
36
|
def build_from_hash(value)
|
|
32
|
-
|
|
33
|
-
raise "Invalid ENUM value #{value} for class #SyncPolicyEnum"
|
|
34
|
-
value
|
|
37
|
+
return value if SyncPolicyEnum.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #SyncPolicyEnum"
|
|
35
39
|
end
|
|
36
40
|
end
|
|
37
41
|
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 asynchronous operations that return a task group.
|
|
@@ -25,6 +26,11 @@ module PulpRpmClient
|
|
|
25
26
|
}
|
|
26
27
|
end
|
|
27
28
|
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
|
30
|
+
def self.acceptable_attributes
|
|
31
|
+
attribute_map.values
|
|
32
|
+
end
|
|
33
|
+
|
|
28
34
|
# Attribute type mapping.
|
|
29
35
|
def self.openapi_types
|
|
30
36
|
{
|
|
@@ -55,12 +61,15 @@ module PulpRpmClient
|
|
|
55
61
|
|
|
56
62
|
if attributes.key?(:'task_group')
|
|
57
63
|
self.task_group = attributes[:'task_group']
|
|
64
|
+
else
|
|
65
|
+
self.task_group = nil
|
|
58
66
|
end
|
|
59
67
|
end
|
|
60
68
|
|
|
61
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
62
70
|
# @return Array for valid properties with the reasons
|
|
63
71
|
def list_invalid_properties
|
|
72
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
64
73
|
invalid_properties = Array.new
|
|
65
74
|
if @task_group.nil?
|
|
66
75
|
invalid_properties.push('invalid value for "task_group", task_group cannot be nil.')
|
|
@@ -72,6 +81,7 @@ module PulpRpmClient
|
|
|
72
81
|
# Check to see if the all the properties in the model are valid
|
|
73
82
|
# @return true if the model is valid
|
|
74
83
|
def valid?
|
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
75
85
|
return false if @task_group.nil?
|
|
76
86
|
true
|
|
77
87
|
end
|
|
@@ -100,37 +110,33 @@ module PulpRpmClient
|
|
|
100
110
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
111
|
# @return [Object] Returns the model itself
|
|
102
112
|
def self.build_from_hash(attributes)
|
|
103
|
-
new.build_from_hash(attributes)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Builds the object from hash
|
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
-
# @return [Object] Returns the model itself
|
|
109
|
-
def build_from_hash(attributes)
|
|
110
113
|
return nil unless attributes.is_a?(Hash)
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
113
120
|
# check to ensure the input is an array given that the attribute
|
|
114
121
|
# is documented as an array but the input is not
|
|
115
|
-
if attributes[
|
|
116
|
-
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
117
124
|
end
|
|
118
|
-
elsif !attributes[
|
|
119
|
-
|
|
120
|
-
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
121
128
|
end
|
|
122
|
-
|
|
123
|
-
self
|
|
129
|
+
new(transformed_hash)
|
|
124
130
|
end
|
|
125
131
|
|
|
126
132
|
# Deserializes the data based on type
|
|
127
133
|
# @param string type Data type
|
|
128
134
|
# @param string value Value to be deserialized
|
|
129
135
|
# @return [Object] Deserialized data
|
|
130
|
-
def _deserialize(type, value)
|
|
136
|
+
def self._deserialize(type, value)
|
|
131
137
|
case type.to_sym
|
|
132
|
-
when :
|
|
133
|
-
|
|
138
|
+
when :Time
|
|
139
|
+
Time.parse(value)
|
|
134
140
|
when :Date
|
|
135
141
|
Date.parse(value)
|
|
136
142
|
when :String
|
|
@@ -160,7 +166,9 @@ module PulpRpmClient
|
|
|
160
166
|
end
|
|
161
167
|
end
|
|
162
168
|
else # model
|
|
163
|
-
|
|
169
|
+
# models (e.g. Pet) or oneOf
|
|
170
|
+
klass = PulpRpmClient.const_get(type)
|
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
164
172
|
end
|
|
165
173
|
end
|
|
166
174
|
|
|
@@ -186,7 +194,7 @@ module PulpRpmClient
|
|
|
186
194
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
187
195
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
188
196
|
end
|
|
189
|
-
|
|
197
|
+
|
|
190
198
|
hash[param] = _to_hash(value)
|
|
191
199
|
end
|
|
192
200
|
hash
|
|
@@ -209,5 +217,7 @@ module PulpRpmClient
|
|
|
209
217
|
value
|
|
210
218
|
end
|
|
211
219
|
end
|
|
220
|
+
|
|
212
221
|
end
|
|
222
|
+
|
|
213
223
|
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 synchronously setting a label.
|
|
@@ -24,6 +25,11 @@ module PulpRpmClient
|
|
|
24
25
|
}
|
|
25
26
|
end
|
|
26
27
|
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
|
29
|
+
def self.acceptable_attributes
|
|
30
|
+
attribute_map.values
|
|
31
|
+
end
|
|
32
|
+
|
|
27
33
|
# Attribute type mapping.
|
|
28
34
|
def self.openapi_types
|
|
29
35
|
{
|
|
@@ -54,12 +60,15 @@ module PulpRpmClient
|
|
|
54
60
|
|
|
55
61
|
if attributes.key?(:'key')
|
|
56
62
|
self.key = attributes[:'key']
|
|
63
|
+
else
|
|
64
|
+
self.key = nil
|
|
57
65
|
end
|
|
58
66
|
end
|
|
59
67
|
|
|
60
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
61
69
|
# @return Array for valid properties with the reasons
|
|
62
70
|
def list_invalid_properties
|
|
71
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
63
72
|
invalid_properties = Array.new
|
|
64
73
|
if @key.nil?
|
|
65
74
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
@@ -80,6 +89,7 @@ module PulpRpmClient
|
|
|
80
89
|
# Check to see if the all the properties in the model are valid
|
|
81
90
|
# @return true if the model is valid
|
|
82
91
|
def valid?
|
|
92
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
93
|
return false if @key.nil?
|
|
84
94
|
return false if @key.to_s.length < 1
|
|
85
95
|
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
@@ -129,37 +139,33 @@ module PulpRpmClient
|
|
|
129
139
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
140
|
# @return [Object] Returns the model itself
|
|
131
141
|
def self.build_from_hash(attributes)
|
|
132
|
-
new.build_from_hash(attributes)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Builds the object from hash
|
|
136
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
-
# @return [Object] Returns the model itself
|
|
138
|
-
def build_from_hash(attributes)
|
|
139
142
|
return nil unless attributes.is_a?(Hash)
|
|
140
|
-
|
|
141
|
-
|
|
143
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
144
|
+
transformed_hash = {}
|
|
145
|
+
openapi_types.each_pair do |key, type|
|
|
146
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
147
|
+
transformed_hash["#{key}"] = nil
|
|
148
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
142
149
|
# check to ensure the input is an array given that the attribute
|
|
143
150
|
# is documented as an array but the input is not
|
|
144
|
-
if attributes[
|
|
145
|
-
|
|
151
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
152
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
146
153
|
end
|
|
147
|
-
elsif !attributes[
|
|
148
|
-
|
|
149
|
-
end
|
|
154
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
155
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
156
|
+
end
|
|
150
157
|
end
|
|
151
|
-
|
|
152
|
-
self
|
|
158
|
+
new(transformed_hash)
|
|
153
159
|
end
|
|
154
160
|
|
|
155
161
|
# Deserializes the data based on type
|
|
156
162
|
# @param string type Data type
|
|
157
163
|
# @param string value Value to be deserialized
|
|
158
164
|
# @return [Object] Deserialized data
|
|
159
|
-
def _deserialize(type, value)
|
|
165
|
+
def self._deserialize(type, value)
|
|
160
166
|
case type.to_sym
|
|
161
|
-
when :
|
|
162
|
-
|
|
167
|
+
when :Time
|
|
168
|
+
Time.parse(value)
|
|
163
169
|
when :Date
|
|
164
170
|
Date.parse(value)
|
|
165
171
|
when :String
|
|
@@ -189,7 +195,9 @@ module PulpRpmClient
|
|
|
189
195
|
end
|
|
190
196
|
end
|
|
191
197
|
else # model
|
|
192
|
-
|
|
198
|
+
# models (e.g. Pet) or oneOf
|
|
199
|
+
klass = PulpRpmClient.const_get(type)
|
|
200
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
193
201
|
end
|
|
194
202
|
end
|
|
195
203
|
|
|
@@ -215,7 +223,7 @@ module PulpRpmClient
|
|
|
215
223
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
216
224
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
217
225
|
end
|
|
218
|
-
|
|
226
|
+
|
|
219
227
|
hash[param] = _to_hash(value)
|
|
220
228
|
end
|
|
221
229
|
hash
|
|
@@ -238,5 +246,7 @@ module PulpRpmClient
|
|
|
238
246
|
value
|
|
239
247
|
end
|
|
240
248
|
end
|
|
249
|
+
|
|
241
250
|
end
|
|
251
|
+
|
|
242
252
|
end
|