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
|
# Modulemd 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
|
# Modulemd name.
|
30
34
|
attr_accessor :name
|
31
35
|
|
@@ -66,6 +70,7 @@ module PulpRpmClient
|
|
66
70
|
:'prn' => :'prn',
|
67
71
|
:'pulp_created' => :'pulp_created',
|
68
72
|
:'pulp_last_updated' => :'pulp_last_updated',
|
73
|
+
:'pulp_labels' => :'pulp_labels',
|
69
74
|
:'name' => :'name',
|
70
75
|
:'stream' => :'stream',
|
71
76
|
:'version' => :'version',
|
@@ -80,13 +85,19 @@ module PulpRpmClient
|
|
80
85
|
}
|
81
86
|
end
|
82
87
|
|
88
|
+
# Returns all the JSON keys this model knows about
|
89
|
+
def self.acceptable_attributes
|
90
|
+
attribute_map.values
|
91
|
+
end
|
92
|
+
|
83
93
|
# Attribute type mapping.
|
84
94
|
def self.openapi_types
|
85
95
|
{
|
86
96
|
:'pulp_href' => :'String',
|
87
97
|
:'prn' => :'String',
|
88
|
-
:'pulp_created' => :'
|
89
|
-
:'pulp_last_updated' => :'
|
98
|
+
:'pulp_created' => :'Time',
|
99
|
+
:'pulp_last_updated' => :'Time',
|
100
|
+
:'pulp_labels' => :'Hash<String, String>',
|
90
101
|
:'name' => :'String',
|
91
102
|
:'stream' => :'String',
|
92
103
|
:'version' => :'String',
|
@@ -141,16 +152,28 @@ module PulpRpmClient
|
|
141
152
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
142
153
|
end
|
143
154
|
|
155
|
+
if attributes.key?(:'pulp_labels')
|
156
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
157
|
+
self.pulp_labels = value
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
144
161
|
if attributes.key?(:'name')
|
145
162
|
self.name = attributes[:'name']
|
163
|
+
else
|
164
|
+
self.name = nil
|
146
165
|
end
|
147
166
|
|
148
167
|
if attributes.key?(:'stream')
|
149
168
|
self.stream = attributes[:'stream']
|
169
|
+
else
|
170
|
+
self.stream = nil
|
150
171
|
end
|
151
172
|
|
152
173
|
if attributes.key?(:'version')
|
153
174
|
self.version = attributes[:'version']
|
175
|
+
else
|
176
|
+
self.version = nil
|
154
177
|
end
|
155
178
|
|
156
179
|
if attributes.key?(:'static_context')
|
@@ -159,18 +182,26 @@ module PulpRpmClient
|
|
159
182
|
|
160
183
|
if attributes.key?(:'context')
|
161
184
|
self.context = attributes[:'context']
|
185
|
+
else
|
186
|
+
self.context = nil
|
162
187
|
end
|
163
188
|
|
164
189
|
if attributes.key?(:'arch')
|
165
190
|
self.arch = attributes[:'arch']
|
191
|
+
else
|
192
|
+
self.arch = nil
|
166
193
|
end
|
167
194
|
|
168
195
|
if attributes.key?(:'artifacts')
|
169
196
|
self.artifacts = attributes[:'artifacts']
|
197
|
+
else
|
198
|
+
self.artifacts = nil
|
170
199
|
end
|
171
200
|
|
172
201
|
if attributes.key?(:'dependencies')
|
173
202
|
self.dependencies = attributes[:'dependencies']
|
203
|
+
else
|
204
|
+
self.dependencies = nil
|
174
205
|
end
|
175
206
|
|
176
207
|
if attributes.key?(:'packages')
|
@@ -181,16 +212,21 @@ module PulpRpmClient
|
|
181
212
|
|
182
213
|
if attributes.key?(:'profiles')
|
183
214
|
self.profiles = attributes[:'profiles']
|
215
|
+
else
|
216
|
+
self.profiles = nil
|
184
217
|
end
|
185
218
|
|
186
219
|
if attributes.key?(:'description')
|
187
220
|
self.description = attributes[:'description']
|
221
|
+
else
|
222
|
+
self.description = nil
|
188
223
|
end
|
189
224
|
end
|
190
225
|
|
191
226
|
# Show invalid properties with the reasons. Usually used together with valid?
|
192
227
|
# @return Array for valid properties with the reasons
|
193
228
|
def list_invalid_properties
|
229
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
194
230
|
invalid_properties = Array.new
|
195
231
|
if @name.nil?
|
196
232
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -222,6 +258,7 @@ module PulpRpmClient
|
|
222
258
|
# Check to see if the all the properties in the model are valid
|
223
259
|
# @return true if the model is valid
|
224
260
|
def valid?
|
261
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
225
262
|
return false if @name.nil?
|
226
263
|
return false if @stream.nil?
|
227
264
|
return false if @version.nil?
|
@@ -240,6 +277,7 @@ module PulpRpmClient
|
|
240
277
|
prn == o.prn &&
|
241
278
|
pulp_created == o.pulp_created &&
|
242
279
|
pulp_last_updated == o.pulp_last_updated &&
|
280
|
+
pulp_labels == o.pulp_labels &&
|
243
281
|
name == o.name &&
|
244
282
|
stream == o.stream &&
|
245
283
|
version == o.version &&
|
@@ -262,44 +300,40 @@ module PulpRpmClient
|
|
262
300
|
# Calculates hash code according to all attributes.
|
263
301
|
# @return [Integer] Hash code
|
264
302
|
def hash
|
265
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
|
303
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
|
266
304
|
end
|
267
305
|
|
268
306
|
# Builds the object from hash
|
269
307
|
# @param [Hash] attributes Model attributes in the form of hash
|
270
308
|
# @return [Object] Returns the model itself
|
271
309
|
def self.build_from_hash(attributes)
|
272
|
-
new.build_from_hash(attributes)
|
273
|
-
end
|
274
|
-
|
275
|
-
# Builds the object from hash
|
276
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
277
|
-
# @return [Object] Returns the model itself
|
278
|
-
def build_from_hash(attributes)
|
279
310
|
return nil unless attributes.is_a?(Hash)
|
280
|
-
|
281
|
-
|
311
|
+
attributes = attributes.transform_keys(&:to_sym)
|
312
|
+
transformed_hash = {}
|
313
|
+
openapi_types.each_pair do |key, type|
|
314
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
315
|
+
transformed_hash["#{key}"] = nil
|
316
|
+
elsif type =~ /\AArray<(.*)>/i
|
282
317
|
# check to ensure the input is an array given that the attribute
|
283
318
|
# is documented as an array but the input is not
|
284
|
-
if attributes[
|
285
|
-
|
319
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
320
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
286
321
|
end
|
287
|
-
elsif !attributes[
|
288
|
-
|
289
|
-
end
|
322
|
+
elsif !attributes[attribute_map[key]].nil?
|
323
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
324
|
+
end
|
290
325
|
end
|
291
|
-
|
292
|
-
self
|
326
|
+
new(transformed_hash)
|
293
327
|
end
|
294
328
|
|
295
329
|
# Deserializes the data based on type
|
296
330
|
# @param string type Data type
|
297
331
|
# @param string value Value to be deserialized
|
298
332
|
# @return [Object] Deserialized data
|
299
|
-
def _deserialize(type, value)
|
333
|
+
def self._deserialize(type, value)
|
300
334
|
case type.to_sym
|
301
|
-
when :
|
302
|
-
|
335
|
+
when :Time
|
336
|
+
Time.parse(value)
|
303
337
|
when :Date
|
304
338
|
Date.parse(value)
|
305
339
|
when :String
|
@@ -329,7 +363,9 @@ module PulpRpmClient
|
|
329
363
|
end
|
330
364
|
end
|
331
365
|
else # model
|
332
|
-
|
366
|
+
# models (e.g. Pet) or oneOf
|
367
|
+
klass = PulpRpmClient.const_get(type)
|
368
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
333
369
|
end
|
334
370
|
end
|
335
371
|
|
@@ -355,7 +391,7 @@ module PulpRpmClient
|
|
355
391
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
356
392
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
357
393
|
end
|
358
|
-
|
394
|
+
|
359
395
|
hash[param] = _to_hash(value)
|
360
396
|
end
|
361
397
|
hash
|
@@ -378,5 +414,7 @@ module PulpRpmClient
|
|
378
414
|
value
|
379
415
|
end
|
380
416
|
end
|
417
|
+
|
381
418
|
end
|
419
|
+
|
382
420
|
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
|
# PackageCategory 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
|
# Category id.
|
30
34
|
attr_accessor :id
|
31
35
|
|
@@ -57,6 +61,7 @@ module PulpRpmClient
|
|
57
61
|
:'prn' => :'prn',
|
58
62
|
:'pulp_created' => :'pulp_created',
|
59
63
|
:'pulp_last_updated' => :'pulp_last_updated',
|
64
|
+
:'pulp_labels' => :'pulp_labels',
|
60
65
|
:'id' => :'id',
|
61
66
|
:'name' => :'name',
|
62
67
|
:'description' => :'description',
|
@@ -68,13 +73,19 @@ 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
85
|
:'prn' => :'String',
|
76
|
-
:'pulp_created' => :'
|
77
|
-
:'pulp_last_updated' => :'
|
86
|
+
:'pulp_created' => :'Time',
|
87
|
+
:'pulp_last_updated' => :'Time',
|
88
|
+
:'pulp_labels' => :'Hash<String, String>',
|
78
89
|
:'id' => :'String',
|
79
90
|
:'name' => :'String',
|
80
91
|
:'description' => :'String',
|
@@ -127,42 +138,65 @@ module PulpRpmClient
|
|
127
138
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
128
139
|
end
|
129
140
|
|
141
|
+
if attributes.key?(:'pulp_labels')
|
142
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
143
|
+
self.pulp_labels = value
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
130
147
|
if attributes.key?(:'id')
|
131
148
|
self.id = attributes[:'id']
|
149
|
+
else
|
150
|
+
self.id = nil
|
132
151
|
end
|
133
152
|
|
134
153
|
if attributes.key?(:'name')
|
135
154
|
self.name = attributes[:'name']
|
155
|
+
else
|
156
|
+
self.name = nil
|
136
157
|
end
|
137
158
|
|
138
159
|
if attributes.key?(:'description')
|
139
160
|
self.description = attributes[:'description']
|
161
|
+
else
|
162
|
+
self.description = nil
|
140
163
|
end
|
141
164
|
|
142
165
|
if attributes.key?(:'display_order')
|
143
166
|
self.display_order = attributes[:'display_order']
|
167
|
+
else
|
168
|
+
self.display_order = nil
|
144
169
|
end
|
145
170
|
|
146
171
|
if attributes.key?(:'group_ids')
|
147
172
|
self.group_ids = attributes[:'group_ids']
|
173
|
+
else
|
174
|
+
self.group_ids = nil
|
148
175
|
end
|
149
176
|
|
150
177
|
if attributes.key?(:'desc_by_lang')
|
151
178
|
self.desc_by_lang = attributes[:'desc_by_lang']
|
179
|
+
else
|
180
|
+
self.desc_by_lang = nil
|
152
181
|
end
|
153
182
|
|
154
183
|
if attributes.key?(:'name_by_lang')
|
155
184
|
self.name_by_lang = attributes[:'name_by_lang']
|
185
|
+
else
|
186
|
+
self.name_by_lang = nil
|
156
187
|
end
|
157
188
|
|
158
189
|
if attributes.key?(:'digest')
|
159
190
|
self.digest = attributes[:'digest']
|
191
|
+
else
|
192
|
+
self.digest = nil
|
160
193
|
end
|
161
194
|
end
|
162
195
|
|
163
196
|
# Show invalid properties with the reasons. Usually used together with valid?
|
164
197
|
# @return Array for valid properties with the reasons
|
165
198
|
def list_invalid_properties
|
199
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
166
200
|
invalid_properties = Array.new
|
167
201
|
if @id.nil?
|
168
202
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
@@ -186,6 +220,7 @@ module PulpRpmClient
|
|
186
220
|
# Check to see if the all the properties in the model are valid
|
187
221
|
# @return true if the model is valid
|
188
222
|
def valid?
|
223
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
189
224
|
return false if @id.nil?
|
190
225
|
return false if @name.nil?
|
191
226
|
return false if @description.nil?
|
@@ -202,6 +237,7 @@ module PulpRpmClient
|
|
202
237
|
prn == o.prn &&
|
203
238
|
pulp_created == o.pulp_created &&
|
204
239
|
pulp_last_updated == o.pulp_last_updated &&
|
240
|
+
pulp_labels == o.pulp_labels &&
|
205
241
|
id == o.id &&
|
206
242
|
name == o.name &&
|
207
243
|
description == o.description &&
|
@@ -221,44 +257,40 @@ module PulpRpmClient
|
|
221
257
|
# Calculates hash code according to all attributes.
|
222
258
|
# @return [Integer] Hash code
|
223
259
|
def hash
|
224
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
|
260
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, name, description, display_order, group_ids, desc_by_lang, name_by_lang, digest].hash
|
225
261
|
end
|
226
262
|
|
227
263
|
# Builds the object from hash
|
228
264
|
# @param [Hash] attributes Model attributes in the form of hash
|
229
265
|
# @return [Object] Returns the model itself
|
230
266
|
def self.build_from_hash(attributes)
|
231
|
-
new.build_from_hash(attributes)
|
232
|
-
end
|
233
|
-
|
234
|
-
# Builds the object from hash
|
235
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
236
|
-
# @return [Object] Returns the model itself
|
237
|
-
def build_from_hash(attributes)
|
238
267
|
return nil unless attributes.is_a?(Hash)
|
239
|
-
|
240
|
-
|
268
|
+
attributes = attributes.transform_keys(&:to_sym)
|
269
|
+
transformed_hash = {}
|
270
|
+
openapi_types.each_pair do |key, type|
|
271
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
272
|
+
transformed_hash["#{key}"] = nil
|
273
|
+
elsif type =~ /\AArray<(.*)>/i
|
241
274
|
# check to ensure the input is an array given that the attribute
|
242
275
|
# is documented as an array but the input is not
|
243
|
-
if attributes[
|
244
|
-
|
276
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
277
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
245
278
|
end
|
246
|
-
elsif !attributes[
|
247
|
-
|
248
|
-
end
|
279
|
+
elsif !attributes[attribute_map[key]].nil?
|
280
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
281
|
+
end
|
249
282
|
end
|
250
|
-
|
251
|
-
self
|
283
|
+
new(transformed_hash)
|
252
284
|
end
|
253
285
|
|
254
286
|
# Deserializes the data based on type
|
255
287
|
# @param string type Data type
|
256
288
|
# @param string value Value to be deserialized
|
257
289
|
# @return [Object] Deserialized data
|
258
|
-
def _deserialize(type, value)
|
290
|
+
def self._deserialize(type, value)
|
259
291
|
case type.to_sym
|
260
|
-
when :
|
261
|
-
|
292
|
+
when :Time
|
293
|
+
Time.parse(value)
|
262
294
|
when :Date
|
263
295
|
Date.parse(value)
|
264
296
|
when :String
|
@@ -288,7 +320,9 @@ module PulpRpmClient
|
|
288
320
|
end
|
289
321
|
end
|
290
322
|
else # model
|
291
|
-
|
323
|
+
# models (e.g. Pet) or oneOf
|
324
|
+
klass = PulpRpmClient.const_get(type)
|
325
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
292
326
|
end
|
293
327
|
end
|
294
328
|
|
@@ -314,7 +348,7 @@ module PulpRpmClient
|
|
314
348
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
315
349
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
316
350
|
end
|
317
|
-
|
351
|
+
|
318
352
|
hash[param] = _to_hash(value)
|
319
353
|
end
|
320
354
|
hash
|
@@ -337,5 +371,7 @@ module PulpRpmClient
|
|
337
371
|
value
|
338
372
|
end
|
339
373
|
end
|
374
|
+
|
340
375
|
end
|
376
|
+
|
341
377
|
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
|
# PackageEnvironment 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
|
# Environment id.
|
30
34
|
attr_accessor :id
|
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
|
:'id' => :'id',
|
64
69
|
:'name' => :'name',
|
65
70
|
:'description' => :'description',
|
@@ -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
|
:'id' => :'String',
|
83
94
|
:'name' => :'String',
|
84
95
|
:'description' => :'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?(:'id')
|
137
154
|
self.id = attributes[:'id']
|
155
|
+
else
|
156
|
+
self.id = nil
|
138
157
|
end
|
139
158
|
|
140
159
|
if attributes.key?(:'name')
|
141
160
|
self.name = attributes[:'name']
|
161
|
+
else
|
162
|
+
self.name = nil
|
142
163
|
end
|
143
164
|
|
144
165
|
if attributes.key?(:'description')
|
145
166
|
self.description = attributes[:'description']
|
167
|
+
else
|
168
|
+
self.description = nil
|
146
169
|
end
|
147
170
|
|
148
171
|
if attributes.key?(:'display_order')
|
149
172
|
self.display_order = attributes[:'display_order']
|
173
|
+
else
|
174
|
+
self.display_order = nil
|
150
175
|
end
|
151
176
|
|
152
177
|
if attributes.key?(:'group_ids')
|
153
178
|
self.group_ids = attributes[:'group_ids']
|
179
|
+
else
|
180
|
+
self.group_ids = nil
|
154
181
|
end
|
155
182
|
|
156
183
|
if attributes.key?(:'option_ids')
|
157
184
|
self.option_ids = attributes[:'option_ids']
|
185
|
+
else
|
186
|
+
self.option_ids = nil
|
158
187
|
end
|
159
188
|
|
160
189
|
if attributes.key?(:'desc_by_lang')
|
161
190
|
self.desc_by_lang = attributes[:'desc_by_lang']
|
191
|
+
else
|
192
|
+
self.desc_by_lang = nil
|
162
193
|
end
|
163
194
|
|
164
195
|
if attributes.key?(:'name_by_lang')
|
165
196
|
self.name_by_lang = attributes[:'name_by_lang']
|
197
|
+
else
|
198
|
+
self.name_by_lang = nil
|
166
199
|
end
|
167
200
|
|
168
201
|
if attributes.key?(:'digest')
|
169
202
|
self.digest = attributes[:'digest']
|
203
|
+
else
|
204
|
+
self.digest = 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 @id.nil?
|
178
214
|
invalid_properties.push('invalid value for "id", id 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 @id.nil?
|
200
237
|
return false if @name.nil?
|
201
238
|
return false if @description.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
|
id == o.id &&
|
216
254
|
name == o.name &&
|
217
255
|
description == o.description &&
|
@@ -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, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].hash
|
273
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, id, name, description, display_order, group_ids, option_ids, desc_by_lang, name_by_lang, digest].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
|