pulp_rpm_client 3.27.2 → 3.28.1
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 +32 -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 +275 -75
- data/docs/ContentDistributionTreesApi.md +227 -46
- data/docs/ContentModulemdDefaultsApi.md +262 -64
- data/docs/ContentModulemdObsoletesApi.md +255 -57
- data/docs/ContentModulemdsApi.md +271 -73
- data/docs/ContentPackagecategoriesApi.md +227 -46
- data/docs/ContentPackageenvironmentsApi.md +227 -46
- data/docs/ContentPackagegroupsApi.md +227 -46
- data/docs/ContentPackagelangpacksApi.md +227 -46
- data/docs/ContentPackagesApi.md +298 -98
- data/docs/ContentRepoMetadataFilesApi.md +227 -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 +34 -31
- data/docs/RpmModulemdDefaults.md +18 -15
- data/docs/RpmModulemdDefaultsResponse.md +22 -19
- data/docs/RpmModulemdObsolete.md +30 -27
- data/docs/RpmModulemdObsoleteResponse.md +34 -31
- data/docs/RpmModulemdResponse.md +38 -35
- data/docs/RpmPackageCategoryResponse.md +32 -29
- data/docs/RpmPackageEnvironmentResponse.md +34 -31
- data/docs/RpmPackageGroupResponse.md +38 -35
- data/docs/RpmPackageLangpacksResponse.md +20 -17
- data/docs/RpmPackageResponse.md +102 -99
- data/docs/RpmPruneApi.md +30 -13
- data/docs/RpmRepoMetadataFileResponse.md +38 -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 +52 -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 +177 -17
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +162 -9
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +174 -17
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +171 -14
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +174 -17
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +162 -9
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +162 -9
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +162 -9
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +162 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +177 -17
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +162 -9
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +89 -56
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +67 -47
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +104 -68
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +104 -68
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +107 -66
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +40 -30
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +10 -6
- data/lib/pulp_rpm_client/api_client.rb +137 -102
- data/lib/pulp_rpm_client/api_error.rb +2 -1
- data/lib/pulp_rpm_client/configuration.rb +162 -21
- data/lib/pulp_rpm_client/models/addon_response.rb +40 -22
- data/lib/pulp_rpm_client/models/artifact_response.rb +34 -24
- data/lib/pulp_rpm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/checksum_response.rb +34 -22
- data/lib/pulp_rpm_client/models/compression_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_rpm_client/models/copy.rb +34 -28
- data/lib/pulp_rpm_client/models/image_response.rb +38 -22
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_rpm_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +36 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +40 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +82 -44
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +68 -25
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +92 -46
- data/lib/pulp_rpm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/prune_packages.rb +37 -23
- data/lib/pulp_rpm_client/models/repair.rb +30 -22
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_rpm_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_rpm_client/models/rpm_distribution_tree_response.rb +77 -23
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +63 -23
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +52 -28
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +52 -30
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +68 -28
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +63 -25
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +63 -25
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +61 -25
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +63 -25
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +61 -25
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +49 -25
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +55 -25
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +53 -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 +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +36 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +53 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +55 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +76 -42
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +79 -45
- data/lib/pulp_rpm_client/models/{rpm_rpm_remote_response_hidden_fields.rb → rpm_rpm_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +65 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +67 -26
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +80 -42
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +79 -45
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +36 -22
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +36 -22
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +45 -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 +33 -23
- data/lib/pulp_rpm_client/models/unset_label_response.rb +33 -23
- 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 +33 -5
- data/spec/api/content_distribution_trees_api_spec.rb +30 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +32 -5
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +31 -4
- data/spec/api/content_modulemds_api_spec.rb +32 -5
- data/spec/api/content_packagecategories_api_spec.rb +30 -3
- data/spec/api/content_packageenvironments_api_spec.rb +30 -3
- data/spec/api/content_packagegroups_api_spec.rb +30 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +30 -3
- data/spec/api/content_packages_api_spec.rb +33 -5
- data/spec/api/content_repo_metadata_files_api_spec.rb +30 -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 +19 -18
- data/spec/models/rpm_modulemd_defaults_spec.rb +17 -16
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +25 -24
- data/spec/models/rpm_modulemd_obsolete_spec.rb +23 -22
- data/spec/models/rpm_modulemd_response_spec.rb +27 -26
- data/spec/models/rpm_modulemd_spec.rb +25 -24
- data/spec/models/rpm_package_category_response_spec.rb +24 -23
- data/spec/models/rpm_package_environment_response_spec.rb +25 -24
- data/spec/models/rpm_package_group_response_spec.rb +27 -26
- data/spec/models/rpm_package_langpacks_response_spec.rb +18 -17
- data/spec/models/rpm_package_response_spec.rb +59 -58
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +27 -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 +34 -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 +127 -115
- 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
|
# ModulemdObsolete serializer.
|
@@ -18,6 +19,9 @@ module PulpRpmClient
|
|
18
19
|
# A URI of a repository the new content unit should be associated with.
|
19
20
|
attr_accessor :repository
|
20
21
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
21
25
|
# Obsolete modified time.
|
22
26
|
attr_accessor :modified
|
23
27
|
|
@@ -52,6 +56,7 @@ module PulpRpmClient
|
|
52
56
|
def self.attribute_map
|
53
57
|
{
|
54
58
|
:'repository' => :'repository',
|
59
|
+
:'pulp_labels' => :'pulp_labels',
|
55
60
|
:'modified' => :'modified',
|
56
61
|
:'module_name' => :'module_name',
|
57
62
|
:'module_stream' => :'module_stream',
|
@@ -65,10 +70,16 @@ module PulpRpmClient
|
|
65
70
|
}
|
66
71
|
end
|
67
72
|
|
73
|
+
# Returns all the JSON keys this model knows about
|
74
|
+
def self.acceptable_attributes
|
75
|
+
attribute_map.values
|
76
|
+
end
|
77
|
+
|
68
78
|
# Attribute type mapping.
|
69
79
|
def self.openapi_types
|
70
80
|
{
|
71
81
|
:'repository' => :'String',
|
82
|
+
:'pulp_labels' => :'Hash<String, String>',
|
72
83
|
:'modified' => :'String',
|
73
84
|
:'module_name' => :'String',
|
74
85
|
:'module_stream' => :'String',
|
@@ -112,50 +123,77 @@ module PulpRpmClient
|
|
112
123
|
self.repository = attributes[:'repository']
|
113
124
|
end
|
114
125
|
|
126
|
+
if attributes.key?(:'pulp_labels')
|
127
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
128
|
+
self.pulp_labels = value
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
115
132
|
if attributes.key?(:'modified')
|
116
133
|
self.modified = attributes[:'modified']
|
134
|
+
else
|
135
|
+
self.modified = nil
|
117
136
|
end
|
118
137
|
|
119
138
|
if attributes.key?(:'module_name')
|
120
139
|
self.module_name = attributes[:'module_name']
|
140
|
+
else
|
141
|
+
self.module_name = nil
|
121
142
|
end
|
122
143
|
|
123
144
|
if attributes.key?(:'module_stream')
|
124
145
|
self.module_stream = attributes[:'module_stream']
|
146
|
+
else
|
147
|
+
self.module_stream = nil
|
125
148
|
end
|
126
149
|
|
127
150
|
if attributes.key?(:'message')
|
128
151
|
self.message = attributes[:'message']
|
152
|
+
else
|
153
|
+
self.message = nil
|
129
154
|
end
|
130
155
|
|
131
156
|
if attributes.key?(:'override_previous')
|
132
157
|
self.override_previous = attributes[:'override_previous']
|
158
|
+
else
|
159
|
+
self.override_previous = nil
|
133
160
|
end
|
134
161
|
|
135
162
|
if attributes.key?(:'module_context')
|
136
163
|
self.module_context = attributes[:'module_context']
|
164
|
+
else
|
165
|
+
self.module_context = nil
|
137
166
|
end
|
138
167
|
|
139
168
|
if attributes.key?(:'eol_date')
|
140
169
|
self.eol_date = attributes[:'eol_date']
|
170
|
+
else
|
171
|
+
self.eol_date = nil
|
141
172
|
end
|
142
173
|
|
143
174
|
if attributes.key?(:'obsoleted_by_module_name')
|
144
175
|
self.obsoleted_by_module_name = attributes[:'obsoleted_by_module_name']
|
176
|
+
else
|
177
|
+
self.obsoleted_by_module_name = nil
|
145
178
|
end
|
146
179
|
|
147
180
|
if attributes.key?(:'obsoleted_by_module_stream')
|
148
181
|
self.obsoleted_by_module_stream = attributes[:'obsoleted_by_module_stream']
|
182
|
+
else
|
183
|
+
self.obsoleted_by_module_stream = nil
|
149
184
|
end
|
150
185
|
|
151
186
|
if attributes.key?(:'snippet')
|
152
187
|
self.snippet = attributes[:'snippet']
|
188
|
+
else
|
189
|
+
self.snippet = nil
|
153
190
|
end
|
154
191
|
end
|
155
192
|
|
156
193
|
# Show invalid properties with the reasons. Usually used together with valid?
|
157
194
|
# @return Array for valid properties with the reasons
|
158
195
|
def list_invalid_properties
|
196
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
159
197
|
invalid_properties = Array.new
|
160
198
|
if @modified.nil?
|
161
199
|
invalid_properties.push('invalid value for "modified", modified cannot be nil.')
|
@@ -223,6 +261,7 @@ module PulpRpmClient
|
|
223
261
|
# Check to see if the all the properties in the model are valid
|
224
262
|
# @return true if the model is valid
|
225
263
|
def valid?
|
264
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
226
265
|
return false if @modified.nil?
|
227
266
|
return false if @modified.to_s.length < 1
|
228
267
|
return false if @module_name.nil?
|
@@ -300,7 +339,7 @@ module PulpRpmClient
|
|
300
339
|
# Custom attribute writer method with validation
|
301
340
|
# @param [Object] override_previous Value to be assigned
|
302
341
|
def override_previous=(override_previous)
|
303
|
-
if override_previous.to_s.length < 1
|
342
|
+
if !override_previous.nil? && override_previous.to_s.length < 1
|
304
343
|
fail ArgumentError, 'invalid value for "override_previous", the character length must be great than or equal to 1.'
|
305
344
|
end
|
306
345
|
|
@@ -310,7 +349,7 @@ module PulpRpmClient
|
|
310
349
|
# Custom attribute writer method with validation
|
311
350
|
# @param [Object] module_context Value to be assigned
|
312
351
|
def module_context=(module_context)
|
313
|
-
if module_context.to_s.length < 1
|
352
|
+
if !module_context.nil? && module_context.to_s.length < 1
|
314
353
|
fail ArgumentError, 'invalid value for "module_context", the character length must be great than or equal to 1.'
|
315
354
|
end
|
316
355
|
|
@@ -320,7 +359,7 @@ module PulpRpmClient
|
|
320
359
|
# Custom attribute writer method with validation
|
321
360
|
# @param [Object] eol_date Value to be assigned
|
322
361
|
def eol_date=(eol_date)
|
323
|
-
if eol_date.to_s.length < 1
|
362
|
+
if !eol_date.nil? && eol_date.to_s.length < 1
|
324
363
|
fail ArgumentError, 'invalid value for "eol_date", the character length must be great than or equal to 1.'
|
325
364
|
end
|
326
365
|
|
@@ -330,7 +369,7 @@ module PulpRpmClient
|
|
330
369
|
# Custom attribute writer method with validation
|
331
370
|
# @param [Object] obsoleted_by_module_name Value to be assigned
|
332
371
|
def obsoleted_by_module_name=(obsoleted_by_module_name)
|
333
|
-
if obsoleted_by_module_name.to_s.length < 1
|
372
|
+
if !obsoleted_by_module_name.nil? && obsoleted_by_module_name.to_s.length < 1
|
334
373
|
fail ArgumentError, 'invalid value for "obsoleted_by_module_name", the character length must be great than or equal to 1.'
|
335
374
|
end
|
336
375
|
|
@@ -340,7 +379,7 @@ module PulpRpmClient
|
|
340
379
|
# Custom attribute writer method with validation
|
341
380
|
# @param [Object] obsoleted_by_module_stream Value to be assigned
|
342
381
|
def obsoleted_by_module_stream=(obsoleted_by_module_stream)
|
343
|
-
if obsoleted_by_module_stream.to_s.length < 1
|
382
|
+
if !obsoleted_by_module_stream.nil? && obsoleted_by_module_stream.to_s.length < 1
|
344
383
|
fail ArgumentError, 'invalid value for "obsoleted_by_module_stream", the character length must be great than or equal to 1.'
|
345
384
|
end
|
346
385
|
|
@@ -367,6 +406,7 @@ module PulpRpmClient
|
|
367
406
|
return true if self.equal?(o)
|
368
407
|
self.class == o.class &&
|
369
408
|
repository == o.repository &&
|
409
|
+
pulp_labels == o.pulp_labels &&
|
370
410
|
modified == o.modified &&
|
371
411
|
module_name == o.module_name &&
|
372
412
|
module_stream == o.module_stream &&
|
@@ -388,44 +428,40 @@ module PulpRpmClient
|
|
388
428
|
# Calculates hash code according to all attributes.
|
389
429
|
# @return [Integer] Hash code
|
390
430
|
def hash
|
391
|
-
[repository, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
|
431
|
+
[repository, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
|
392
432
|
end
|
393
433
|
|
394
434
|
# Builds the object from hash
|
395
435
|
# @param [Hash] attributes Model attributes in the form of hash
|
396
436
|
# @return [Object] Returns the model itself
|
397
437
|
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
438
|
return nil unless attributes.is_a?(Hash)
|
406
|
-
|
407
|
-
|
439
|
+
attributes = attributes.transform_keys(&:to_sym)
|
440
|
+
transformed_hash = {}
|
441
|
+
openapi_types.each_pair do |key, type|
|
442
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
443
|
+
transformed_hash["#{key}"] = nil
|
444
|
+
elsif type =~ /\AArray<(.*)>/i
|
408
445
|
# check to ensure the input is an array given that the attribute
|
409
446
|
# is documented as an array but the input is not
|
410
|
-
if attributes[
|
411
|
-
|
447
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
448
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
412
449
|
end
|
413
|
-
elsif !attributes[
|
414
|
-
|
415
|
-
end
|
450
|
+
elsif !attributes[attribute_map[key]].nil?
|
451
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
452
|
+
end
|
416
453
|
end
|
417
|
-
|
418
|
-
self
|
454
|
+
new(transformed_hash)
|
419
455
|
end
|
420
456
|
|
421
457
|
# Deserializes the data based on type
|
422
458
|
# @param string type Data type
|
423
459
|
# @param string value Value to be deserialized
|
424
460
|
# @return [Object] Deserialized data
|
425
|
-
def _deserialize(type, value)
|
461
|
+
def self._deserialize(type, value)
|
426
462
|
case type.to_sym
|
427
|
-
when :
|
428
|
-
|
463
|
+
when :Time
|
464
|
+
Time.parse(value)
|
429
465
|
when :Date
|
430
466
|
Date.parse(value)
|
431
467
|
when :String
|
@@ -455,7 +491,9 @@ module PulpRpmClient
|
|
455
491
|
end
|
456
492
|
end
|
457
493
|
else # model
|
458
|
-
|
494
|
+
# models (e.g. Pet) or oneOf
|
495
|
+
klass = PulpRpmClient.const_get(type)
|
496
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
459
497
|
end
|
460
498
|
end
|
461
499
|
|
@@ -481,7 +519,7 @@ module PulpRpmClient
|
|
481
519
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
482
520
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
483
521
|
end
|
484
|
-
|
522
|
+
|
485
523
|
hash[param] = _to_hash(value)
|
486
524
|
end
|
487
525
|
hash
|
@@ -504,5 +542,7 @@ module PulpRpmClient
|
|
504
542
|
value
|
505
543
|
end
|
506
544
|
end
|
545
|
+
|
507
546
|
end
|
547
|
+
|
508
548
|
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.
|
@@ -26,6 +27,9 @@ module PulpRpmClient
|
|
26
27
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
27
28
|
attr_accessor :pulp_last_updated
|
28
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
29
33
|
# Obsolete modified time.
|
30
34
|
attr_accessor :modified
|
31
35
|
|
@@ -60,6 +64,7 @@ module PulpRpmClient
|
|
60
64
|
:'prn' => :'prn',
|
61
65
|
:'pulp_created' => :'pulp_created',
|
62
66
|
:'pulp_last_updated' => :'pulp_last_updated',
|
67
|
+
:'pulp_labels' => :'pulp_labels',
|
63
68
|
:'modified' => :'modified',
|
64
69
|
:'module_name' => :'module_name',
|
65
70
|
:'module_stream' => :'module_stream',
|
@@ -72,13 +77,19 @@ module PulpRpmClient
|
|
72
77
|
}
|
73
78
|
end
|
74
79
|
|
80
|
+
# Returns all the JSON keys this model knows about
|
81
|
+
def self.acceptable_attributes
|
82
|
+
attribute_map.values
|
83
|
+
end
|
84
|
+
|
75
85
|
# Attribute type mapping.
|
76
86
|
def self.openapi_types
|
77
87
|
{
|
78
88
|
:'pulp_href' => :'String',
|
79
89
|
:'prn' => :'String',
|
80
|
-
:'pulp_created' => :'
|
81
|
-
:'pulp_last_updated' => :'
|
90
|
+
:'pulp_created' => :'Time',
|
91
|
+
:'pulp_last_updated' => :'Time',
|
92
|
+
:'pulp_labels' => :'Hash<String, String>',
|
82
93
|
:'modified' => :'String',
|
83
94
|
:'module_name' => :'String',
|
84
95
|
:'module_stream' => :'String',
|
@@ -133,46 +144,71 @@ module PulpRpmClient
|
|
133
144
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
134
145
|
end
|
135
146
|
|
147
|
+
if attributes.key?(:'pulp_labels')
|
148
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
149
|
+
self.pulp_labels = value
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
136
153
|
if attributes.key?(:'modified')
|
137
154
|
self.modified = attributes[:'modified']
|
155
|
+
else
|
156
|
+
self.modified = nil
|
138
157
|
end
|
139
158
|
|
140
159
|
if attributes.key?(:'module_name')
|
141
160
|
self.module_name = attributes[:'module_name']
|
161
|
+
else
|
162
|
+
self.module_name = nil
|
142
163
|
end
|
143
164
|
|
144
165
|
if attributes.key?(:'module_stream')
|
145
166
|
self.module_stream = attributes[:'module_stream']
|
167
|
+
else
|
168
|
+
self.module_stream = nil
|
146
169
|
end
|
147
170
|
|
148
171
|
if attributes.key?(:'message')
|
149
172
|
self.message = attributes[:'message']
|
173
|
+
else
|
174
|
+
self.message = nil
|
150
175
|
end
|
151
176
|
|
152
177
|
if attributes.key?(:'override_previous')
|
153
178
|
self.override_previous = attributes[:'override_previous']
|
179
|
+
else
|
180
|
+
self.override_previous = nil
|
154
181
|
end
|
155
182
|
|
156
183
|
if attributes.key?(:'module_context')
|
157
184
|
self.module_context = attributes[:'module_context']
|
185
|
+
else
|
186
|
+
self.module_context = nil
|
158
187
|
end
|
159
188
|
|
160
189
|
if attributes.key?(:'eol_date')
|
161
190
|
self.eol_date = attributes[:'eol_date']
|
191
|
+
else
|
192
|
+
self.eol_date = nil
|
162
193
|
end
|
163
194
|
|
164
195
|
if attributes.key?(:'obsoleted_by_module_name')
|
165
196
|
self.obsoleted_by_module_name = attributes[:'obsoleted_by_module_name']
|
197
|
+
else
|
198
|
+
self.obsoleted_by_module_name = nil
|
166
199
|
end
|
167
200
|
|
168
201
|
if attributes.key?(:'obsoleted_by_module_stream')
|
169
202
|
self.obsoleted_by_module_stream = attributes[:'obsoleted_by_module_stream']
|
203
|
+
else
|
204
|
+
self.obsoleted_by_module_stream = nil
|
170
205
|
end
|
171
206
|
end
|
172
207
|
|
173
208
|
# Show invalid properties with the reasons. Usually used together with valid?
|
174
209
|
# @return Array for valid properties with the reasons
|
175
210
|
def list_invalid_properties
|
211
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
176
212
|
invalid_properties = Array.new
|
177
213
|
if @modified.nil?
|
178
214
|
invalid_properties.push('invalid value for "modified", modified cannot be nil.')
|
@@ -196,6 +232,7 @@ module PulpRpmClient
|
|
196
232
|
# Check to see if the all the properties in the model are valid
|
197
233
|
# @return true if the model is valid
|
198
234
|
def valid?
|
235
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
199
236
|
return false if @modified.nil?
|
200
237
|
return false if @module_name.nil?
|
201
238
|
return false if @module_stream.nil?
|
@@ -212,6 +249,7 @@ module PulpRpmClient
|
|
212
249
|
prn == o.prn &&
|
213
250
|
pulp_created == o.pulp_created &&
|
214
251
|
pulp_last_updated == o.pulp_last_updated &&
|
252
|
+
pulp_labels == o.pulp_labels &&
|
215
253
|
modified == o.modified &&
|
216
254
|
module_name == o.module_name &&
|
217
255
|
module_stream == o.module_stream &&
|
@@ -232,44 +270,40 @@ module PulpRpmClient
|
|
232
270
|
# Calculates hash code according to all attributes.
|
233
271
|
# @return [Integer] Hash code
|
234
272
|
def hash
|
235
|
-
[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
|
273
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
|
236
274
|
end
|
237
275
|
|
238
276
|
# Builds the object from hash
|
239
277
|
# @param [Hash] attributes Model attributes in the form of hash
|
240
278
|
# @return [Object] Returns the model itself
|
241
279
|
def self.build_from_hash(attributes)
|
242
|
-
new.build_from_hash(attributes)
|
243
|
-
end
|
244
|
-
|
245
|
-
# Builds the object from hash
|
246
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
247
|
-
# @return [Object] Returns the model itself
|
248
|
-
def build_from_hash(attributes)
|
249
280
|
return nil unless attributes.is_a?(Hash)
|
250
|
-
|
251
|
-
|
281
|
+
attributes = attributes.transform_keys(&:to_sym)
|
282
|
+
transformed_hash = {}
|
283
|
+
openapi_types.each_pair do |key, type|
|
284
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
285
|
+
transformed_hash["#{key}"] = nil
|
286
|
+
elsif type =~ /\AArray<(.*)>/i
|
252
287
|
# check to ensure the input is an array given that the attribute
|
253
288
|
# is documented as an array but the input is not
|
254
|
-
if attributes[
|
255
|
-
|
289
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
290
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
256
291
|
end
|
257
|
-
elsif !attributes[
|
258
|
-
|
259
|
-
end
|
292
|
+
elsif !attributes[attribute_map[key]].nil?
|
293
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
294
|
+
end
|
260
295
|
end
|
261
|
-
|
262
|
-
self
|
296
|
+
new(transformed_hash)
|
263
297
|
end
|
264
298
|
|
265
299
|
# Deserializes the data based on type
|
266
300
|
# @param string type Data type
|
267
301
|
# @param string value Value to be deserialized
|
268
302
|
# @return [Object] Deserialized data
|
269
|
-
def _deserialize(type, value)
|
303
|
+
def self._deserialize(type, value)
|
270
304
|
case type.to_sym
|
271
|
-
when :
|
272
|
-
|
305
|
+
when :Time
|
306
|
+
Time.parse(value)
|
273
307
|
when :Date
|
274
308
|
Date.parse(value)
|
275
309
|
when :String
|
@@ -299,7 +333,9 @@ module PulpRpmClient
|
|
299
333
|
end
|
300
334
|
end
|
301
335
|
else # model
|
302
|
-
|
336
|
+
# models (e.g. Pet) or oneOf
|
337
|
+
klass = PulpRpmClient.const_get(type)
|
338
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
303
339
|
end
|
304
340
|
end
|
305
341
|
|
@@ -325,7 +361,7 @@ module PulpRpmClient
|
|
325
361
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
326
362
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
327
363
|
end
|
328
|
-
|
364
|
+
|
329
365
|
hash[param] = _to_hash(value)
|
330
366
|
end
|
331
367
|
hash
|
@@ -348,5 +384,7 @@ module PulpRpmClient
|
|
348
384
|
value
|
349
385
|
end
|
350
386
|
end
|
387
|
+
|
351
388
|
end
|
389
|
+
|
352
390
|
end
|