pulp_rpm_client 3.27.1 → 3.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -10
- data/docs/AcsRpmApi.md +346 -157
- data/docs/AddonResponse.md +16 -15
- data/docs/ArtifactResponse.md +30 -27
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ChecksumResponse.md +10 -9
- data/docs/CompressionTypeEnum.md +4 -5
- data/docs/ContentAdvisoriesApi.md +132 -78
- data/docs/ContentDistributionTreesApi.md +84 -49
- data/docs/ContentModulemdDefaultsApi.md +119 -67
- data/docs/ContentModulemdObsoletesApi.md +112 -60
- data/docs/ContentModulemdsApi.md +128 -76
- data/docs/ContentPackagecategoriesApi.md +84 -49
- data/docs/ContentPackageenvironmentsApi.md +84 -49
- data/docs/ContentPackagegroupsApi.md +84 -49
- data/docs/ContentPackagelangpacksApi.md +84 -49
- data/docs/ContentPackagesApi.md +155 -101
- data/docs/ContentRepoMetadataFilesApi.md +84 -49
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +10 -9
- data/docs/DistributionsRpmApi.md +388 -183
- data/docs/ImageResponse.md +14 -13
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PackageChecksumTypeEnum.md +4 -5
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedrpmDistributionTreeResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdDefaultsResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdObsoleteResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdResponseList.md +14 -13
- data/docs/PaginatedrpmPackageCategoryResponseList.md +14 -13
- data/docs/PaginatedrpmPackageEnvironmentResponseList.md +14 -13
- data/docs/PaginatedrpmPackageGroupResponseList.md +14 -13
- data/docs/PaginatedrpmPackageLangpacksResponseList.md +14 -13
- data/docs/PaginatedrpmPackageResponseList.md +14 -13
- data/docs/PaginatedrpmRepoMetadataFileResponseList.md +14 -13
- data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedrpmRpmDistributionResponseList.md +14 -13
- data/docs/PaginatedrpmRpmPublicationResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRepositoryResponseList.md +14 -13
- data/docs/PaginatedrpmUlnRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmUpdateRecordResponseList.md +14 -13
- data/docs/PatchedrpmRpmAlternateContentSource.md +14 -13
- data/docs/PatchedrpmRpmDistribution.md +22 -21
- data/docs/PatchedrpmRpmRemote.md +50 -49
- data/docs/PatchedrpmRpmRepository.md +40 -39
- data/docs/PatchedrpmUlnRemote.md +50 -49
- data/docs/PolicyEnum.md +4 -5
- data/docs/PrunePackages.md +12 -11
- data/docs/PublicationsRpmApi.md +271 -132
- data/docs/RemotesRpmApi.md +392 -185
- data/docs/RemotesUlnApi.md +392 -185
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesRpmApi.md +449 -210
- data/docs/RepositoriesRpmVersionsApi.md +155 -83
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -19
- data/docs/RpmCompsApi.md +33 -17
- data/docs/RpmCopyApi.md +31 -15
- data/docs/RpmDistributionTreeResponse.md +46 -43
- data/docs/RpmModulemd.md +32 -31
- data/docs/RpmModulemdDefaults.md +16 -15
- data/docs/RpmModulemdDefaultsResponse.md +20 -17
- data/docs/RpmModulemdObsolete.md +28 -27
- data/docs/RpmModulemdObsoleteResponse.md +32 -29
- data/docs/RpmModulemdResponse.md +36 -33
- data/docs/RpmPackageCategoryResponse.md +30 -27
- data/docs/RpmPackageEnvironmentResponse.md +32 -29
- data/docs/RpmPackageGroupResponse.md +36 -33
- data/docs/RpmPackageLangpacksResponse.md +18 -15
- data/docs/RpmPackageResponse.md +100 -97
- data/docs/RpmPruneApi.md +31 -14
- data/docs/RpmRepoMetadataFileResponse.md +36 -33
- data/docs/RpmRepositorySyncURL.md +16 -15
- data/docs/RpmRpmAlternateContentSource.md +14 -13
- data/docs/RpmRpmAlternateContentSourceResponse.md +22 -19
- data/docs/RpmRpmDistribution.md +22 -21
- data/docs/RpmRpmDistributionResponse.md +34 -29
- data/docs/RpmRpmPublication.md +24 -23
- data/docs/RpmRpmPublicationResponse.md +34 -31
- data/docs/RpmRpmRemote.md +50 -49
- data/docs/RpmRpmRemoteResponse.md +50 -47
- data/docs/RpmRpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/RpmRpmRepository.md +40 -39
- data/docs/RpmRpmRepositoryResponse.md +54 -51
- data/docs/RpmUlnRemote.md +50 -49
- data/docs/RpmUlnRemoteResponse.md +50 -47
- data/docs/RpmUpdateCollection.md +12 -11
- data/docs/RpmUpdateCollectionResponse.md +14 -13
- data/docs/RpmUpdateRecordResponse.md +50 -47
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/SkipTypesEnum.md +4 -5
- data/docs/SyncPolicyEnum.md +4 -5
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/VariantResponse.md +26 -25
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +81 -52
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +38 -22
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +31 -22
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +22 -17
- data/lib/pulp_rpm_client/api/content_packages_api.rb +38 -22
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +22 -17
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +94 -58
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +81 -58
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +109 -70
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +109 -70
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +116 -72
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +50 -37
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +10 -6
- data/lib/pulp_rpm_client/api_client.rb +137 -102
- data/lib/pulp_rpm_client/api_error.rb +2 -1
- data/lib/pulp_rpm_client/configuration.rb +162 -21
- data/lib/pulp_rpm_client/models/addon_response.rb +40 -22
- data/lib/pulp_rpm_client/models/artifact_response.rb +46 -26
- data/lib/pulp_rpm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/checksum_response.rb +34 -22
- data/lib/pulp_rpm_client/models/compression_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_rpm_client/models/copy.rb +35 -29
- data/lib/pulp_rpm_client/models/image_response.rb +38 -22
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_rpm_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +36 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +40 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +62 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +69 -26
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +72 -26
- data/lib/pulp_rpm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/prune_packages.rb +37 -23
- data/lib/pulp_rpm_client/models/repair.rb +30 -22
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +31 -23
- data/lib/pulp_rpm_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +77 -23
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +53 -25
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +40 -28
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +51 -31
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +55 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +61 -25
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +64 -28
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +62 -28
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +65 -29
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +62 -28
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +48 -26
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +63 -35
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +51 -25
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +52 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +35 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +48 -26
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +57 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +54 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +67 -26
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +56 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +70 -26
- data/lib/pulp_rpm_client/models/{rpm_rpm_remote_response_hidden_fields.rb → rpm_rpm_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +66 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +79 -28
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +60 -22
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +70 -26
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +37 -23
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +37 -23
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +43 -25
- data/lib/pulp_rpm_client/models/set_label.rb +34 -22
- data/lib/pulp_rpm_client/models/set_label_response.rb +34 -22
- data/lib/pulp_rpm_client/models/skip_types_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/sync_policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_rpm_client/models/variant_response.rb +50 -22
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +2 -5
- data/pulp_rpm_client.gemspec +9 -6
- data/spec/api/acs_rpm_api_spec.rb +14 -13
- data/spec/api/content_advisories_api_spec.rb +10 -8
- data/spec/api/content_distribution_trees_api_spec.rb +8 -7
- data/spec/api/content_modulemd_defaults_api_spec.rb +9 -8
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +9 -8
- data/spec/api/content_modulemds_api_spec.rb +9 -8
- data/spec/api/content_packagecategories_api_spec.rb +8 -7
- data/spec/api/content_packageenvironments_api_spec.rb +8 -7
- data/spec/api/content_packagegroups_api_spec.rb +8 -7
- data/spec/api/content_packagelangpacks_api_spec.rb +8 -7
- data/spec/api/content_packages_api_spec.rb +10 -8
- data/spec/api/content_repo_metadata_files_api_spec.rb +8 -7
- data/spec/api/distributions_rpm_api_spec.rb +15 -14
- data/spec/api/publications_rpm_api_spec.rb +22 -20
- data/spec/api/remotes_rpm_api_spec.rb +22 -20
- data/spec/api/remotes_uln_api_spec.rb +22 -20
- data/spec/api/repositories_rpm_api_spec.rb +19 -18
- data/spec/api/repositories_rpm_versions_api_spec.rb +16 -14
- data/spec/api/rpm_comps_api_spec.rb +2 -2
- data/spec/api/rpm_copy_api_spec.rb +2 -2
- data/spec/api/rpm_prune_api_spec.rb +2 -2
- data/spec/models/addon_response_spec.rb +11 -16
- data/spec/models/artifact_response_spec.rb +23 -22
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/checksum_response_spec.rb +8 -13
- data/spec/models/compression_type_enum_spec.rb +6 -11
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +8 -13
- data/spec/models/image_response_spec.rb +10 -15
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/package_checksum_type_enum_spec.rb +6 -11
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_distribution_tree_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_category_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_environment_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_group_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_langpacks_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_uln_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_update_record_response_list_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/patchedrpm_rpm_remote_spec.rb +28 -33
- data/spec/models/patchedrpm_rpm_repository_spec.rb +23 -28
- data/spec/models/patchedrpm_uln_remote_spec.rb +28 -33
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/prune_packages_spec.rb +9 -14
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +19 -18
- data/spec/models/rpm_distribution_tree_response_spec.rb +31 -30
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +18 -17
- data/spec/models/rpm_modulemd_defaults_spec.rb +11 -16
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +24 -23
- data/spec/models/rpm_modulemd_obsolete_spec.rb +17 -22
- data/spec/models/rpm_modulemd_response_spec.rb +26 -25
- data/spec/models/rpm_modulemd_spec.rb +19 -24
- data/spec/models/rpm_package_category_response_spec.rb +23 -22
- data/spec/models/rpm_package_environment_response_spec.rb +24 -23
- data/spec/models/rpm_package_group_response_spec.rb +26 -25
- data/spec/models/rpm_package_langpacks_response_spec.rb +17 -16
- data/spec/models/rpm_package_response_spec.rb +58 -57
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +26 -25
- data/spec/models/rpm_repository_sync_url_spec.rb +11 -16
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +19 -18
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/rpm_rpm_distribution_response_spec.rb +30 -23
- data/spec/models/rpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/rpm_rpm_publication_response_spec.rb +25 -24
- data/spec/models/rpm_rpm_publication_spec.rb +15 -20
- data/spec/models/{rpm_rpm_remote_response_hidden_fields_spec.rb → rpm_rpm_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/rpm_rpm_remote_response_spec.rb +33 -32
- data/spec/models/rpm_rpm_remote_spec.rb +28 -33
- data/spec/models/rpm_rpm_repository_response_spec.rb +35 -34
- data/spec/models/rpm_rpm_repository_spec.rb +23 -28
- data/spec/models/rpm_uln_remote_response_spec.rb +33 -32
- data/spec/models/rpm_uln_remote_spec.rb +28 -33
- data/spec/models/rpm_update_collection_response_spec.rb +10 -15
- data/spec/models/rpm_update_collection_spec.rb +9 -14
- data/spec/models/rpm_update_record_response_spec.rb +33 -32
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/skip_types_enum_spec.rb +6 -11
- data/spec/models/sync_policy_enum_spec.rb +6 -11
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/models/variant_response_spec.rb +16 -21
- data/spec/spec_helper.rb +1 -1
- metadata +133 -121
- data/docs/CompsXml.md +0 -21
- data/docs/RpmPackage.md +0 -25
- data/docs/RpmRpmRemoteResponseHiddenFields.md +0 -19
- data/docs/RpmUpdateRecord.md +0 -21
- data/lib/pulp_rpm_client/models/comps_xml.rb +0 -233
- data/lib/pulp_rpm_client/models/rpm_package.rb +0 -263
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +0 -228
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/comps_xml_spec.rb +0 -53
- data/spec/models/rpm_package_spec.rb +0 -65
- data/spec/models/rpm_update_record_spec.rb +0 -53
@@ -6,17 +6,21 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpRpmClient
|
16
17
|
# ModulemdDefaults serializer.
|
17
18
|
class RpmModulemdDefaultsResponse
|
18
19
|
attr_accessor :pulp_href
|
19
20
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
20
24
|
# Timestamp of creation.
|
21
25
|
attr_accessor :pulp_created
|
22
26
|
|
@@ -36,6 +40,7 @@ module PulpRpmClient
|
|
36
40
|
def self.attribute_map
|
37
41
|
{
|
38
42
|
:'pulp_href' => :'pulp_href',
|
43
|
+
:'prn' => :'prn',
|
39
44
|
:'pulp_created' => :'pulp_created',
|
40
45
|
:'pulp_last_updated' => :'pulp_last_updated',
|
41
46
|
:'_module' => :'module',
|
@@ -44,21 +49,28 @@ module PulpRpmClient
|
|
44
49
|
}
|
45
50
|
end
|
46
51
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
53
|
+
def self.acceptable_attributes
|
54
|
+
attribute_map.values
|
55
|
+
end
|
56
|
+
|
47
57
|
# Attribute type mapping.
|
48
58
|
def self.openapi_types
|
49
59
|
{
|
50
60
|
:'pulp_href' => :'String',
|
51
|
-
:'
|
52
|
-
:'
|
61
|
+
:'prn' => :'String',
|
62
|
+
:'pulp_created' => :'Time',
|
63
|
+
:'pulp_last_updated' => :'Time',
|
53
64
|
:'_module' => :'String',
|
54
65
|
:'stream' => :'String',
|
55
|
-
:'profiles' => :'
|
66
|
+
:'profiles' => :'Object'
|
56
67
|
}
|
57
68
|
end
|
58
69
|
|
59
70
|
# List of attributes with nullable: true
|
60
71
|
def self.openapi_nullable
|
61
72
|
Set.new([
|
73
|
+
:'profiles'
|
62
74
|
])
|
63
75
|
end
|
64
76
|
|
@@ -81,6 +93,10 @@ module PulpRpmClient
|
|
81
93
|
self.pulp_href = attributes[:'pulp_href']
|
82
94
|
end
|
83
95
|
|
96
|
+
if attributes.key?(:'prn')
|
97
|
+
self.prn = attributes[:'prn']
|
98
|
+
end
|
99
|
+
|
84
100
|
if attributes.key?(:'pulp_created')
|
85
101
|
self.pulp_created = attributes[:'pulp_created']
|
86
102
|
end
|
@@ -91,20 +107,27 @@ module PulpRpmClient
|
|
91
107
|
|
92
108
|
if attributes.key?(:'_module')
|
93
109
|
self._module = attributes[:'_module']
|
110
|
+
else
|
111
|
+
self._module = nil
|
94
112
|
end
|
95
113
|
|
96
114
|
if attributes.key?(:'stream')
|
97
115
|
self.stream = attributes[:'stream']
|
116
|
+
else
|
117
|
+
self.stream = nil
|
98
118
|
end
|
99
119
|
|
100
120
|
if attributes.key?(:'profiles')
|
101
121
|
self.profiles = attributes[:'profiles']
|
122
|
+
else
|
123
|
+
self.profiles = nil
|
102
124
|
end
|
103
125
|
end
|
104
126
|
|
105
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
106
128
|
# @return Array for valid properties with the reasons
|
107
129
|
def list_invalid_properties
|
130
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
108
131
|
invalid_properties = Array.new
|
109
132
|
if @_module.nil?
|
110
133
|
invalid_properties.push('invalid value for "_module", _module cannot be nil.')
|
@@ -114,19 +137,15 @@ module PulpRpmClient
|
|
114
137
|
invalid_properties.push('invalid value for "stream", stream cannot be nil.')
|
115
138
|
end
|
116
139
|
|
117
|
-
if @profiles.nil?
|
118
|
-
invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
|
119
|
-
end
|
120
|
-
|
121
140
|
invalid_properties
|
122
141
|
end
|
123
142
|
|
124
143
|
# Check to see if the all the properties in the model are valid
|
125
144
|
# @return true if the model is valid
|
126
145
|
def valid?
|
146
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
127
147
|
return false if @_module.nil?
|
128
148
|
return false if @stream.nil?
|
129
|
-
return false if @profiles.nil?
|
130
149
|
true
|
131
150
|
end
|
132
151
|
|
@@ -136,6 +155,7 @@ module PulpRpmClient
|
|
136
155
|
return true if self.equal?(o)
|
137
156
|
self.class == o.class &&
|
138
157
|
pulp_href == o.pulp_href &&
|
158
|
+
prn == o.prn &&
|
139
159
|
pulp_created == o.pulp_created &&
|
140
160
|
pulp_last_updated == o.pulp_last_updated &&
|
141
161
|
_module == o._module &&
|
@@ -152,44 +172,40 @@ module PulpRpmClient
|
|
152
172
|
# Calculates hash code according to all attributes.
|
153
173
|
# @return [Integer] Hash code
|
154
174
|
def hash
|
155
|
-
[pulp_href, pulp_created, pulp_last_updated, _module, stream, profiles].hash
|
175
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, _module, stream, profiles].hash
|
156
176
|
end
|
157
177
|
|
158
178
|
# Builds the object from hash
|
159
179
|
# @param [Hash] attributes Model attributes in the form of hash
|
160
180
|
# @return [Object] Returns the model itself
|
161
181
|
def self.build_from_hash(attributes)
|
162
|
-
new.build_from_hash(attributes)
|
163
|
-
end
|
164
|
-
|
165
|
-
# Builds the object from hash
|
166
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
167
|
-
# @return [Object] Returns the model itself
|
168
|
-
def build_from_hash(attributes)
|
169
182
|
return nil unless attributes.is_a?(Hash)
|
170
|
-
|
171
|
-
|
183
|
+
attributes = attributes.transform_keys(&:to_sym)
|
184
|
+
transformed_hash = {}
|
185
|
+
openapi_types.each_pair do |key, type|
|
186
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
187
|
+
transformed_hash["#{key}"] = nil
|
188
|
+
elsif type =~ /\AArray<(.*)>/i
|
172
189
|
# check to ensure the input is an array given that the attribute
|
173
190
|
# is documented as an array but the input is not
|
174
|
-
if attributes[
|
175
|
-
|
191
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
192
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
176
193
|
end
|
177
|
-
elsif !attributes[
|
178
|
-
|
179
|
-
end
|
194
|
+
elsif !attributes[attribute_map[key]].nil?
|
195
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
196
|
+
end
|
180
197
|
end
|
181
|
-
|
182
|
-
self
|
198
|
+
new(transformed_hash)
|
183
199
|
end
|
184
200
|
|
185
201
|
# Deserializes the data based on type
|
186
202
|
# @param string type Data type
|
187
203
|
# @param string value Value to be deserialized
|
188
204
|
# @return [Object] Deserialized data
|
189
|
-
def _deserialize(type, value)
|
205
|
+
def self._deserialize(type, value)
|
190
206
|
case type.to_sym
|
191
|
-
when :
|
192
|
-
|
207
|
+
when :Time
|
208
|
+
Time.parse(value)
|
193
209
|
when :Date
|
194
210
|
Date.parse(value)
|
195
211
|
when :String
|
@@ -219,7 +235,9 @@ module PulpRpmClient
|
|
219
235
|
end
|
220
236
|
end
|
221
237
|
else # model
|
222
|
-
|
238
|
+
# models (e.g. Pet) or oneOf
|
239
|
+
klass = PulpRpmClient.const_get(type)
|
240
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
241
|
end
|
224
242
|
end
|
225
243
|
|
@@ -245,7 +263,7 @@ module PulpRpmClient
|
|
245
263
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
246
264
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
247
265
|
end
|
248
|
-
|
266
|
+
|
249
267
|
hash[param] = _to_hash(value)
|
250
268
|
end
|
251
269
|
hash
|
@@ -268,5 +286,7 @@ module PulpRpmClient
|
|
268
286
|
value
|
269
287
|
end
|
270
288
|
end
|
289
|
+
|
271
290
|
end
|
291
|
+
|
272
292
|
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
|
# ModulemdObsolete serializer.
|
@@ -65,6 +66,11 @@ module PulpRpmClient
|
|
65
66
|
}
|
66
67
|
end
|
67
68
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
70
|
+
def self.acceptable_attributes
|
71
|
+
attribute_map.values
|
72
|
+
end
|
73
|
+
|
68
74
|
# Attribute type mapping.
|
69
75
|
def self.openapi_types
|
70
76
|
{
|
@@ -114,48 +120,69 @@ module PulpRpmClient
|
|
114
120
|
|
115
121
|
if attributes.key?(:'modified')
|
116
122
|
self.modified = attributes[:'modified']
|
123
|
+
else
|
124
|
+
self.modified = nil
|
117
125
|
end
|
118
126
|
|
119
127
|
if attributes.key?(:'module_name')
|
120
128
|
self.module_name = attributes[:'module_name']
|
129
|
+
else
|
130
|
+
self.module_name = nil
|
121
131
|
end
|
122
132
|
|
123
133
|
if attributes.key?(:'module_stream')
|
124
134
|
self.module_stream = attributes[:'module_stream']
|
135
|
+
else
|
136
|
+
self.module_stream = nil
|
125
137
|
end
|
126
138
|
|
127
139
|
if attributes.key?(:'message')
|
128
140
|
self.message = attributes[:'message']
|
141
|
+
else
|
142
|
+
self.message = nil
|
129
143
|
end
|
130
144
|
|
131
145
|
if attributes.key?(:'override_previous')
|
132
146
|
self.override_previous = attributes[:'override_previous']
|
147
|
+
else
|
148
|
+
self.override_previous = nil
|
133
149
|
end
|
134
150
|
|
135
151
|
if attributes.key?(:'module_context')
|
136
152
|
self.module_context = attributes[:'module_context']
|
153
|
+
else
|
154
|
+
self.module_context = nil
|
137
155
|
end
|
138
156
|
|
139
157
|
if attributes.key?(:'eol_date')
|
140
158
|
self.eol_date = attributes[:'eol_date']
|
159
|
+
else
|
160
|
+
self.eol_date = nil
|
141
161
|
end
|
142
162
|
|
143
163
|
if attributes.key?(:'obsoleted_by_module_name')
|
144
164
|
self.obsoleted_by_module_name = attributes[:'obsoleted_by_module_name']
|
165
|
+
else
|
166
|
+
self.obsoleted_by_module_name = nil
|
145
167
|
end
|
146
168
|
|
147
169
|
if attributes.key?(:'obsoleted_by_module_stream')
|
148
170
|
self.obsoleted_by_module_stream = attributes[:'obsoleted_by_module_stream']
|
171
|
+
else
|
172
|
+
self.obsoleted_by_module_stream = nil
|
149
173
|
end
|
150
174
|
|
151
175
|
if attributes.key?(:'snippet')
|
152
176
|
self.snippet = attributes[:'snippet']
|
177
|
+
else
|
178
|
+
self.snippet = nil
|
153
179
|
end
|
154
180
|
end
|
155
181
|
|
156
182
|
# Show invalid properties with the reasons. Usually used together with valid?
|
157
183
|
# @return Array for valid properties with the reasons
|
158
184
|
def list_invalid_properties
|
185
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
159
186
|
invalid_properties = Array.new
|
160
187
|
if @modified.nil?
|
161
188
|
invalid_properties.push('invalid value for "modified", modified cannot be nil.')
|
@@ -223,6 +250,7 @@ module PulpRpmClient
|
|
223
250
|
# Check to see if the all the properties in the model are valid
|
224
251
|
# @return true if the model is valid
|
225
252
|
def valid?
|
253
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
226
254
|
return false if @modified.nil?
|
227
255
|
return false if @modified.to_s.length < 1
|
228
256
|
return false if @module_name.nil?
|
@@ -300,7 +328,7 @@ module PulpRpmClient
|
|
300
328
|
# Custom attribute writer method with validation
|
301
329
|
# @param [Object] override_previous Value to be assigned
|
302
330
|
def override_previous=(override_previous)
|
303
|
-
if override_previous.to_s.length < 1
|
331
|
+
if !override_previous.nil? && override_previous.to_s.length < 1
|
304
332
|
fail ArgumentError, 'invalid value for "override_previous", the character length must be great than or equal to 1.'
|
305
333
|
end
|
306
334
|
|
@@ -310,7 +338,7 @@ module PulpRpmClient
|
|
310
338
|
# Custom attribute writer method with validation
|
311
339
|
# @param [Object] module_context Value to be assigned
|
312
340
|
def module_context=(module_context)
|
313
|
-
if module_context.to_s.length < 1
|
341
|
+
if !module_context.nil? && module_context.to_s.length < 1
|
314
342
|
fail ArgumentError, 'invalid value for "module_context", the character length must be great than or equal to 1.'
|
315
343
|
end
|
316
344
|
|
@@ -320,7 +348,7 @@ module PulpRpmClient
|
|
320
348
|
# Custom attribute writer method with validation
|
321
349
|
# @param [Object] eol_date Value to be assigned
|
322
350
|
def eol_date=(eol_date)
|
323
|
-
if eol_date.to_s.length < 1
|
351
|
+
if !eol_date.nil? && eol_date.to_s.length < 1
|
324
352
|
fail ArgumentError, 'invalid value for "eol_date", the character length must be great than or equal to 1.'
|
325
353
|
end
|
326
354
|
|
@@ -330,7 +358,7 @@ module PulpRpmClient
|
|
330
358
|
# Custom attribute writer method with validation
|
331
359
|
# @param [Object] obsoleted_by_module_name Value to be assigned
|
332
360
|
def obsoleted_by_module_name=(obsoleted_by_module_name)
|
333
|
-
if obsoleted_by_module_name.to_s.length < 1
|
361
|
+
if !obsoleted_by_module_name.nil? && obsoleted_by_module_name.to_s.length < 1
|
334
362
|
fail ArgumentError, 'invalid value for "obsoleted_by_module_name", the character length must be great than or equal to 1.'
|
335
363
|
end
|
336
364
|
|
@@ -340,7 +368,7 @@ module PulpRpmClient
|
|
340
368
|
# Custom attribute writer method with validation
|
341
369
|
# @param [Object] obsoleted_by_module_stream Value to be assigned
|
342
370
|
def obsoleted_by_module_stream=(obsoleted_by_module_stream)
|
343
|
-
if obsoleted_by_module_stream.to_s.length < 1
|
371
|
+
if !obsoleted_by_module_stream.nil? && obsoleted_by_module_stream.to_s.length < 1
|
344
372
|
fail ArgumentError, 'invalid value for "obsoleted_by_module_stream", the character length must be great than or equal to 1.'
|
345
373
|
end
|
346
374
|
|
@@ -395,37 +423,33 @@ module PulpRpmClient
|
|
395
423
|
# @param [Hash] attributes Model attributes in the form of hash
|
396
424
|
# @return [Object] Returns the model itself
|
397
425
|
def self.build_from_hash(attributes)
|
398
|
-
new.build_from_hash(attributes)
|
399
|
-
end
|
400
|
-
|
401
|
-
# Builds the object from hash
|
402
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
403
|
-
# @return [Object] Returns the model itself
|
404
|
-
def build_from_hash(attributes)
|
405
426
|
return nil unless attributes.is_a?(Hash)
|
406
|
-
|
407
|
-
|
427
|
+
attributes = attributes.transform_keys(&:to_sym)
|
428
|
+
transformed_hash = {}
|
429
|
+
openapi_types.each_pair do |key, type|
|
430
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
431
|
+
transformed_hash["#{key}"] = nil
|
432
|
+
elsif type =~ /\AArray<(.*)>/i
|
408
433
|
# check to ensure the input is an array given that the attribute
|
409
434
|
# is documented as an array but the input is not
|
410
|
-
if attributes[
|
411
|
-
|
435
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
436
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
412
437
|
end
|
413
|
-
elsif !attributes[
|
414
|
-
|
415
|
-
end
|
438
|
+
elsif !attributes[attribute_map[key]].nil?
|
439
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
440
|
+
end
|
416
441
|
end
|
417
|
-
|
418
|
-
self
|
442
|
+
new(transformed_hash)
|
419
443
|
end
|
420
444
|
|
421
445
|
# Deserializes the data based on type
|
422
446
|
# @param string type Data type
|
423
447
|
# @param string value Value to be deserialized
|
424
448
|
# @return [Object] Deserialized data
|
425
|
-
def _deserialize(type, value)
|
449
|
+
def self._deserialize(type, value)
|
426
450
|
case type.to_sym
|
427
|
-
when :
|
428
|
-
|
451
|
+
when :Time
|
452
|
+
Time.parse(value)
|
429
453
|
when :Date
|
430
454
|
Date.parse(value)
|
431
455
|
when :String
|
@@ -455,7 +479,9 @@ module PulpRpmClient
|
|
455
479
|
end
|
456
480
|
end
|
457
481
|
else # model
|
458
|
-
|
482
|
+
# models (e.g. Pet) or oneOf
|
483
|
+
klass = PulpRpmClient.const_get(type)
|
484
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
459
485
|
end
|
460
486
|
end
|
461
487
|
|
@@ -481,7 +507,7 @@ module PulpRpmClient
|
|
481
507
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
482
508
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
483
509
|
end
|
484
|
-
|
510
|
+
|
485
511
|
hash[param] = _to_hash(value)
|
486
512
|
end
|
487
513
|
hash
|
@@ -504,5 +530,7 @@ module PulpRpmClient
|
|
504
530
|
value
|
505
531
|
end
|
506
532
|
end
|
533
|
+
|
507
534
|
end
|
535
|
+
|
508
536
|
end
|
@@ -6,17 +6,21 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpRpmClient
|
16
17
|
# ModulemdObsolete serializer.
|
17
18
|
class RpmModulemdObsoleteResponse
|
18
19
|
attr_accessor :pulp_href
|
19
20
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
20
24
|
# Timestamp of creation.
|
21
25
|
attr_accessor :pulp_created
|
22
26
|
|
@@ -54,6 +58,7 @@ module PulpRpmClient
|
|
54
58
|
def self.attribute_map
|
55
59
|
{
|
56
60
|
:'pulp_href' => :'pulp_href',
|
61
|
+
:'prn' => :'prn',
|
57
62
|
:'pulp_created' => :'pulp_created',
|
58
63
|
:'pulp_last_updated' => :'pulp_last_updated',
|
59
64
|
:'modified' => :'modified',
|
@@ -68,12 +73,18 @@ module PulpRpmClient
|
|
68
73
|
}
|
69
74
|
end
|
70
75
|
|
76
|
+
# Returns all the JSON keys this model knows about
|
77
|
+
def self.acceptable_attributes
|
78
|
+
attribute_map.values
|
79
|
+
end
|
80
|
+
|
71
81
|
# Attribute type mapping.
|
72
82
|
def self.openapi_types
|
73
83
|
{
|
74
84
|
:'pulp_href' => :'String',
|
75
|
-
:'
|
76
|
-
:'
|
85
|
+
:'prn' => :'String',
|
86
|
+
:'pulp_created' => :'Time',
|
87
|
+
:'pulp_last_updated' => :'Time',
|
77
88
|
:'modified' => :'String',
|
78
89
|
:'module_name' => :'String',
|
79
90
|
:'module_stream' => :'String',
|
@@ -116,6 +127,10 @@ module PulpRpmClient
|
|
116
127
|
self.pulp_href = attributes[:'pulp_href']
|
117
128
|
end
|
118
129
|
|
130
|
+
if attributes.key?(:'prn')
|
131
|
+
self.prn = attributes[:'prn']
|
132
|
+
end
|
133
|
+
|
119
134
|
if attributes.key?(:'pulp_created')
|
120
135
|
self.pulp_created = attributes[:'pulp_created']
|
121
136
|
end
|
@@ -126,44 +141,63 @@ module PulpRpmClient
|
|
126
141
|
|
127
142
|
if attributes.key?(:'modified')
|
128
143
|
self.modified = attributes[:'modified']
|
144
|
+
else
|
145
|
+
self.modified = nil
|
129
146
|
end
|
130
147
|
|
131
148
|
if attributes.key?(:'module_name')
|
132
149
|
self.module_name = attributes[:'module_name']
|
150
|
+
else
|
151
|
+
self.module_name = nil
|
133
152
|
end
|
134
153
|
|
135
154
|
if attributes.key?(:'module_stream')
|
136
155
|
self.module_stream = attributes[:'module_stream']
|
156
|
+
else
|
157
|
+
self.module_stream = nil
|
137
158
|
end
|
138
159
|
|
139
160
|
if attributes.key?(:'message')
|
140
161
|
self.message = attributes[:'message']
|
162
|
+
else
|
163
|
+
self.message = nil
|
141
164
|
end
|
142
165
|
|
143
166
|
if attributes.key?(:'override_previous')
|
144
167
|
self.override_previous = attributes[:'override_previous']
|
168
|
+
else
|
169
|
+
self.override_previous = nil
|
145
170
|
end
|
146
171
|
|
147
172
|
if attributes.key?(:'module_context')
|
148
173
|
self.module_context = attributes[:'module_context']
|
174
|
+
else
|
175
|
+
self.module_context = nil
|
149
176
|
end
|
150
177
|
|
151
178
|
if attributes.key?(:'eol_date')
|
152
179
|
self.eol_date = attributes[:'eol_date']
|
180
|
+
else
|
181
|
+
self.eol_date = nil
|
153
182
|
end
|
154
183
|
|
155
184
|
if attributes.key?(:'obsoleted_by_module_name')
|
156
185
|
self.obsoleted_by_module_name = attributes[:'obsoleted_by_module_name']
|
186
|
+
else
|
187
|
+
self.obsoleted_by_module_name = nil
|
157
188
|
end
|
158
189
|
|
159
190
|
if attributes.key?(:'obsoleted_by_module_stream')
|
160
191
|
self.obsoleted_by_module_stream = attributes[:'obsoleted_by_module_stream']
|
192
|
+
else
|
193
|
+
self.obsoleted_by_module_stream = nil
|
161
194
|
end
|
162
195
|
end
|
163
196
|
|
164
197
|
# Show invalid properties with the reasons. Usually used together with valid?
|
165
198
|
# @return Array for valid properties with the reasons
|
166
199
|
def list_invalid_properties
|
200
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
167
201
|
invalid_properties = Array.new
|
168
202
|
if @modified.nil?
|
169
203
|
invalid_properties.push('invalid value for "modified", modified cannot be nil.')
|
@@ -187,6 +221,7 @@ module PulpRpmClient
|
|
187
221
|
# Check to see if the all the properties in the model are valid
|
188
222
|
# @return true if the model is valid
|
189
223
|
def valid?
|
224
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
190
225
|
return false if @modified.nil?
|
191
226
|
return false if @module_name.nil?
|
192
227
|
return false if @module_stream.nil?
|
@@ -200,6 +235,7 @@ module PulpRpmClient
|
|
200
235
|
return true if self.equal?(o)
|
201
236
|
self.class == o.class &&
|
202
237
|
pulp_href == o.pulp_href &&
|
238
|
+
prn == o.prn &&
|
203
239
|
pulp_created == o.pulp_created &&
|
204
240
|
pulp_last_updated == o.pulp_last_updated &&
|
205
241
|
modified == o.modified &&
|
@@ -222,44 +258,40 @@ module PulpRpmClient
|
|
222
258
|
# Calculates hash code according to all attributes.
|
223
259
|
# @return [Integer] Hash code
|
224
260
|
def hash
|
225
|
-
[pulp_href, pulp_created, pulp_last_updated, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
|
261
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
|
226
262
|
end
|
227
263
|
|
228
264
|
# Builds the object from hash
|
229
265
|
# @param [Hash] attributes Model attributes in the form of hash
|
230
266
|
# @return [Object] Returns the model itself
|
231
267
|
def self.build_from_hash(attributes)
|
232
|
-
new.build_from_hash(attributes)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Builds the object from hash
|
236
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
237
|
-
# @return [Object] Returns the model itself
|
238
|
-
def build_from_hash(attributes)
|
239
268
|
return nil unless attributes.is_a?(Hash)
|
240
|
-
|
241
|
-
|
269
|
+
attributes = attributes.transform_keys(&:to_sym)
|
270
|
+
transformed_hash = {}
|
271
|
+
openapi_types.each_pair do |key, type|
|
272
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
273
|
+
transformed_hash["#{key}"] = nil
|
274
|
+
elsif type =~ /\AArray<(.*)>/i
|
242
275
|
# check to ensure the input is an array given that the attribute
|
243
276
|
# is documented as an array but the input is not
|
244
|
-
if attributes[
|
245
|
-
|
277
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
278
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
246
279
|
end
|
247
|
-
elsif !attributes[
|
248
|
-
|
249
|
-
end
|
280
|
+
elsif !attributes[attribute_map[key]].nil?
|
281
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
282
|
+
end
|
250
283
|
end
|
251
|
-
|
252
|
-
self
|
284
|
+
new(transformed_hash)
|
253
285
|
end
|
254
286
|
|
255
287
|
# Deserializes the data based on type
|
256
288
|
# @param string type Data type
|
257
289
|
# @param string value Value to be deserialized
|
258
290
|
# @return [Object] Deserialized data
|
259
|
-
def _deserialize(type, value)
|
291
|
+
def self._deserialize(type, value)
|
260
292
|
case type.to_sym
|
261
|
-
when :
|
262
|
-
|
293
|
+
when :Time
|
294
|
+
Time.parse(value)
|
263
295
|
when :Date
|
264
296
|
Date.parse(value)
|
265
297
|
when :String
|
@@ -289,7 +321,9 @@ module PulpRpmClient
|
|
289
321
|
end
|
290
322
|
end
|
291
323
|
else # model
|
292
|
-
|
324
|
+
# models (e.g. Pet) or oneOf
|
325
|
+
klass = PulpRpmClient.const_get(type)
|
326
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
293
327
|
end
|
294
328
|
end
|
295
329
|
|
@@ -315,7 +349,7 @@ module PulpRpmClient
|
|
315
349
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
316
350
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
317
351
|
end
|
318
|
-
|
352
|
+
|
319
353
|
hash[param] = _to_hash(value)
|
320
354
|
end
|
321
355
|
hash
|
@@ -338,5 +372,7 @@ module PulpRpmClient
|
|
338
372
|
value
|
339
373
|
end
|
340
374
|
end
|
375
|
+
|
341
376
|
end
|
377
|
+
|
342
378
|
end
|