pulp_rpm_client 3.27.2 → 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 +10 -9
- data/docs/AcsRpmApi.md +343 -156
- data/docs/AddonResponse.md +16 -15
- data/docs/ArtifactResponse.md +30 -29
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ChecksumResponse.md +10 -9
- data/docs/CompressionTypeEnum.md +4 -5
- data/docs/ContentAdvisoriesApi.md +125 -75
- data/docs/ContentDistributionTreesApi.md +79 -46
- data/docs/ContentModulemdDefaultsApi.md +114 -64
- data/docs/ContentModulemdObsoletesApi.md +107 -57
- data/docs/ContentModulemdsApi.md +123 -73
- data/docs/ContentPackagecategoriesApi.md +79 -46
- data/docs/ContentPackageenvironmentsApi.md +79 -46
- data/docs/ContentPackagegroupsApi.md +79 -46
- data/docs/ContentPackagelangpacksApi.md +79 -46
- data/docs/ContentPackagesApi.md +148 -98
- data/docs/ContentRepoMetadataFilesApi.md +79 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +10 -9
- data/docs/DistributionsRpmApi.md +385 -182
- data/docs/ImageResponse.md +14 -13
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PackageChecksumTypeEnum.md +4 -5
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedrpmDistributionTreeResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdDefaultsResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdObsoleteResponseList.md +14 -13
- data/docs/PaginatedrpmModulemdResponseList.md +14 -13
- data/docs/PaginatedrpmPackageCategoryResponseList.md +14 -13
- data/docs/PaginatedrpmPackageEnvironmentResponseList.md +14 -13
- data/docs/PaginatedrpmPackageGroupResponseList.md +14 -13
- data/docs/PaginatedrpmPackageLangpacksResponseList.md +14 -13
- data/docs/PaginatedrpmPackageResponseList.md +14 -13
- data/docs/PaginatedrpmRepoMetadataFileResponseList.md +14 -13
- data/docs/PaginatedrpmRpmAlternateContentSourceResponseList.md +14 -13
- data/docs/PaginatedrpmRpmDistributionResponseList.md +14 -13
- data/docs/PaginatedrpmRpmPublicationResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmRpmRepositoryResponseList.md +14 -13
- data/docs/PaginatedrpmUlnRemoteResponseList.md +14 -13
- data/docs/PaginatedrpmUpdateRecordResponseList.md +14 -13
- data/docs/PatchedrpmRpmAlternateContentSource.md +14 -13
- data/docs/PatchedrpmRpmDistribution.md +22 -21
- data/docs/PatchedrpmRpmRemote.md +50 -49
- data/docs/PatchedrpmRpmRepository.md +40 -39
- data/docs/PatchedrpmUlnRemote.md +50 -49
- data/docs/PolicyEnum.md +4 -5
- data/docs/PrunePackages.md +12 -11
- data/docs/PublicationsRpmApi.md +267 -130
- data/docs/RemotesRpmApi.md +389 -184
- data/docs/RemotesUlnApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesRpmApi.md +444 -207
- data/docs/RepositoriesRpmVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/RpmCompsApi.md +32 -16
- data/docs/RpmCopyApi.md +30 -14
- data/docs/RpmDistributionTreeResponse.md +46 -43
- data/docs/RpmModulemd.md +32 -31
- data/docs/RpmModulemdDefaults.md +16 -15
- data/docs/RpmModulemdDefaultsResponse.md +20 -19
- data/docs/RpmModulemdObsolete.md +28 -27
- data/docs/RpmModulemdObsoleteResponse.md +32 -31
- data/docs/RpmModulemdResponse.md +36 -35
- data/docs/RpmPackageCategoryResponse.md +30 -29
- data/docs/RpmPackageEnvironmentResponse.md +32 -31
- data/docs/RpmPackageGroupResponse.md +36 -35
- data/docs/RpmPackageLangpacksResponse.md +18 -17
- data/docs/RpmPackageResponse.md +100 -99
- data/docs/RpmPruneApi.md +30 -13
- data/docs/RpmRepoMetadataFileResponse.md +36 -35
- data/docs/RpmRepositorySyncURL.md +16 -15
- data/docs/RpmRpmAlternateContentSource.md +14 -13
- data/docs/RpmRpmAlternateContentSourceResponse.md +22 -21
- data/docs/RpmRpmDistribution.md +22 -21
- data/docs/RpmRpmDistributionResponse.md +34 -33
- data/docs/RpmRpmPublication.md +24 -23
- data/docs/RpmRpmPublicationResponse.md +34 -33
- data/docs/RpmRpmRemote.md +50 -49
- data/docs/RpmRpmRemoteResponse.md +50 -49
- data/docs/RpmRpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/RpmRpmRepository.md +40 -39
- data/docs/RpmRpmRepositoryResponse.md +54 -53
- data/docs/RpmUlnRemote.md +50 -49
- data/docs/RpmUlnRemoteResponse.md +50 -49
- data/docs/RpmUpdateCollection.md +12 -11
- data/docs/RpmUpdateCollectionResponse.md +14 -13
- data/docs/RpmUpdateRecordResponse.md +50 -49
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/SkipTypesEnum.md +4 -5
- data/docs/SyncPolicyEnum.md +4 -5
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/VariantResponse.md +26 -25
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +76 -50
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +11 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +20 -14
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +11 -9
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +89 -56
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +67 -47
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +104 -68
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +104 -68
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +107 -66
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +40 -30
- data/lib/pulp_rpm_client/api/rpm_comps_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +10 -6
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +10 -6
- data/lib/pulp_rpm_client/api_client.rb +137 -102
- data/lib/pulp_rpm_client/api_error.rb +2 -1
- data/lib/pulp_rpm_client/configuration.rb +162 -21
- data/lib/pulp_rpm_client/models/addon_response.rb +40 -22
- data/lib/pulp_rpm_client/models/artifact_response.rb +34 -24
- data/lib/pulp_rpm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/checksum_response.rb +34 -22
- data/lib/pulp_rpm_client/models/compression_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_rpm_client/models/copy.rb +34 -28
- data/lib/pulp_rpm_client/models/image_response.rb +38 -22
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role.rb +32 -22
- data/lib/pulp_rpm_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_rpm_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +34 -22
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_alternate_content_source.rb +36 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +40 -24
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +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 +50 -22
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +39 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +39 -29
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +55 -27
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +48 -24
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +50 -24
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +48 -24
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +36 -24
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +42 -24
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +40 -24
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +52 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source.rb +35 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_alternate_content_source_response.rb +37 -25
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +34 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +36 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +53 -22
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +55 -24
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +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 +32 -24
- data/lib/pulp_rpm_client/models/set_label.rb +34 -22
- data/lib/pulp_rpm_client/models/set_label_response.rb +34 -22
- data/lib/pulp_rpm_client/models/skip_types_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/sync_policy_enum.rb +8 -4
- data/lib/pulp_rpm_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label.rb +32 -22
- data/lib/pulp_rpm_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_rpm_client/models/variant_response.rb +50 -22
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +2 -5
- data/pulp_rpm_client.gemspec +9 -6
- data/spec/api/acs_rpm_api_spec.rb +12 -12
- data/spec/api/content_advisories_api_spec.rb +4 -4
- data/spec/api/content_distribution_trees_api_spec.rb +3 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +4 -4
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +4 -4
- data/spec/api/content_modulemds_api_spec.rb +4 -4
- data/spec/api/content_packagecategories_api_spec.rb +3 -3
- data/spec/api/content_packageenvironments_api_spec.rb +3 -3
- data/spec/api/content_packagegroups_api_spec.rb +3 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +3 -3
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
- data/spec/api/distributions_rpm_api_spec.rb +13 -13
- data/spec/api/publications_rpm_api_spec.rb +16 -15
- data/spec/api/remotes_rpm_api_spec.rb +20 -19
- data/spec/api/remotes_uln_api_spec.rb +20 -19
- data/spec/api/repositories_rpm_api_spec.rb +15 -15
- data/spec/api/repositories_rpm_versions_api_spec.rb +12 -11
- data/spec/api/rpm_comps_api_spec.rb +2 -2
- data/spec/api/rpm_copy_api_spec.rb +2 -2
- data/spec/api/rpm_prune_api_spec.rb +2 -2
- data/spec/models/addon_response_spec.rb +11 -16
- data/spec/models/artifact_response_spec.rb +18 -23
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/checksum_response_spec.rb +8 -13
- data/spec/models/compression_type_enum_spec.rb +6 -11
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +8 -13
- data/spec/models/image_response_spec.rb +10 -15
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/package_checksum_type_enum_spec.rb +6 -11
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_distribution_tree_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_modulemd_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_category_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_environment_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_group_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_langpacks_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_package_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_alternate_content_source_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_rpm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_uln_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedrpm_update_record_response_list_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/patchedrpm_rpm_remote_spec.rb +28 -33
- data/spec/models/patchedrpm_rpm_repository_spec.rb +23 -28
- data/spec/models/patchedrpm_uln_remote_spec.rb +28 -33
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/prune_packages_spec.rb +9 -14
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/rpm_distribution_tree_response_spec.rb +31 -30
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +13 -18
- data/spec/models/rpm_modulemd_defaults_spec.rb +11 -16
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +19 -24
- data/spec/models/rpm_modulemd_obsolete_spec.rb +17 -22
- data/spec/models/rpm_modulemd_response_spec.rb +21 -26
- data/spec/models/rpm_modulemd_spec.rb +19 -24
- data/spec/models/rpm_package_category_response_spec.rb +18 -23
- data/spec/models/rpm_package_environment_response_spec.rb +19 -24
- data/spec/models/rpm_package_group_response_spec.rb +21 -26
- data/spec/models/rpm_package_langpacks_response_spec.rb +12 -17
- data/spec/models/rpm_package_response_spec.rb +53 -58
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +21 -26
- data/spec/models/rpm_repository_sync_url_spec.rb +11 -16
- data/spec/models/rpm_rpm_alternate_content_source_response_spec.rb +14 -19
- data/spec/models/rpm_rpm_alternate_content_source_spec.rb +10 -15
- data/spec/models/rpm_rpm_distribution_response_spec.rb +20 -25
- data/spec/models/rpm_rpm_distribution_spec.rb +14 -19
- data/spec/models/rpm_rpm_publication_response_spec.rb +20 -25
- data/spec/models/rpm_rpm_publication_spec.rb +15 -20
- data/spec/models/{rpm_rpm_remote_response_hidden_fields_spec.rb → rpm_rpm_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/rpm_rpm_remote_response_spec.rb +28 -33
- data/spec/models/rpm_rpm_remote_spec.rb +28 -33
- data/spec/models/rpm_rpm_repository_response_spec.rb +30 -35
- data/spec/models/rpm_rpm_repository_spec.rb +23 -28
- data/spec/models/rpm_uln_remote_response_spec.rb +28 -33
- data/spec/models/rpm_uln_remote_spec.rb +28 -33
- data/spec/models/rpm_update_collection_response_spec.rb +10 -15
- data/spec/models/rpm_update_collection_spec.rb +9 -14
- data/spec/models/rpm_update_record_response_spec.rb +28 -33
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/skip_types_enum_spec.rb +6 -11
- data/spec/models/sync_policy_enum_spec.rb +6 -11
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/models/variant_response_spec.rb +16 -21
- data/spec/spec_helper.rb +1 -1
- metadata +124 -112
- 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
@@ -1,233 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpRpmClient
|
16
|
-
# A serializer for comps.xml Upload API.
|
17
|
-
class CompsXml
|
18
|
-
# Full path of a comps.xml file that may be parsed into comps.xml Content units.
|
19
|
-
attr_accessor :file
|
20
|
-
|
21
|
-
# URI of an RPM repository the comps.xml content units should be associated to.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
|
-
# If true, incoming comps.xml replaces existing comps-related ContentUnits in the specified repository.
|
25
|
-
attr_accessor :replace
|
26
|
-
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
-
def self.attribute_map
|
29
|
-
{
|
30
|
-
:'file' => :'file',
|
31
|
-
:'repository' => :'repository',
|
32
|
-
:'replace' => :'replace'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Attribute type mapping.
|
37
|
-
def self.openapi_types
|
38
|
-
{
|
39
|
-
:'file' => :'File',
|
40
|
-
:'repository' => :'String',
|
41
|
-
:'replace' => :'Boolean'
|
42
|
-
}
|
43
|
-
end
|
44
|
-
|
45
|
-
# List of attributes with nullable: true
|
46
|
-
def self.openapi_nullable
|
47
|
-
Set.new([
|
48
|
-
])
|
49
|
-
end
|
50
|
-
|
51
|
-
# Initializes the object
|
52
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
-
def initialize(attributes = {})
|
54
|
-
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::CompsXml` initialize method"
|
56
|
-
end
|
57
|
-
|
58
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::CompsXml`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
-
end
|
63
|
-
h[k.to_sym] = v
|
64
|
-
}
|
65
|
-
|
66
|
-
if attributes.key?(:'file')
|
67
|
-
self.file = attributes[:'file']
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes.key?(:'repository')
|
71
|
-
self.repository = attributes[:'repository']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.key?(:'replace')
|
75
|
-
self.replace = attributes[:'replace']
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid properties with the reasons
|
81
|
-
def list_invalid_properties
|
82
|
-
invalid_properties = Array.new
|
83
|
-
if @file.nil?
|
84
|
-
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
85
|
-
end
|
86
|
-
|
87
|
-
invalid_properties
|
88
|
-
end
|
89
|
-
|
90
|
-
# Check to see if the all the properties in the model are valid
|
91
|
-
# @return true if the model is valid
|
92
|
-
def valid?
|
93
|
-
return false if @file.nil?
|
94
|
-
true
|
95
|
-
end
|
96
|
-
|
97
|
-
# Checks equality by comparing each attribute.
|
98
|
-
# @param [Object] Object to be compared
|
99
|
-
def ==(o)
|
100
|
-
return true if self.equal?(o)
|
101
|
-
self.class == o.class &&
|
102
|
-
file == o.file &&
|
103
|
-
repository == o.repository &&
|
104
|
-
replace == o.replace
|
105
|
-
end
|
106
|
-
|
107
|
-
# @see the `==` method
|
108
|
-
# @param [Object] Object to be compared
|
109
|
-
def eql?(o)
|
110
|
-
self == o
|
111
|
-
end
|
112
|
-
|
113
|
-
# Calculates hash code according to all attributes.
|
114
|
-
# @return [Integer] Hash code
|
115
|
-
def hash
|
116
|
-
[file, repository, replace].hash
|
117
|
-
end
|
118
|
-
|
119
|
-
# Builds the object from hash
|
120
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
-
# @return [Object] Returns the model itself
|
122
|
-
def self.build_from_hash(attributes)
|
123
|
-
new.build_from_hash(attributes)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Builds the object from hash
|
127
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
128
|
-
# @return [Object] Returns the model itself
|
129
|
-
def build_from_hash(attributes)
|
130
|
-
return nil unless attributes.is_a?(Hash)
|
131
|
-
self.class.openapi_types.each_pair do |key, type|
|
132
|
-
if type =~ /\AArray<(.*)>/i
|
133
|
-
# check to ensure the input is an array given that the attribute
|
134
|
-
# is documented as an array but the input is not
|
135
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
136
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
137
|
-
end
|
138
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
139
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
140
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
141
|
-
end
|
142
|
-
|
143
|
-
self
|
144
|
-
end
|
145
|
-
|
146
|
-
# Deserializes the data based on type
|
147
|
-
# @param string type Data type
|
148
|
-
# @param string value Value to be deserialized
|
149
|
-
# @return [Object] Deserialized data
|
150
|
-
def _deserialize(type, value)
|
151
|
-
case type.to_sym
|
152
|
-
when :DateTime
|
153
|
-
DateTime.parse(value)
|
154
|
-
when :Date
|
155
|
-
Date.parse(value)
|
156
|
-
when :String
|
157
|
-
value.to_s
|
158
|
-
when :Integer
|
159
|
-
value.to_i
|
160
|
-
when :Float
|
161
|
-
value.to_f
|
162
|
-
when :Boolean
|
163
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
164
|
-
true
|
165
|
-
else
|
166
|
-
false
|
167
|
-
end
|
168
|
-
when :Object
|
169
|
-
# generic object (usually a Hash), return directly
|
170
|
-
value
|
171
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
172
|
-
inner_type = Regexp.last_match[:inner_type]
|
173
|
-
value.map { |v| _deserialize(inner_type, v) }
|
174
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
175
|
-
k_type = Regexp.last_match[:k_type]
|
176
|
-
v_type = Regexp.last_match[:v_type]
|
177
|
-
{}.tap do |hash|
|
178
|
-
value.each do |k, v|
|
179
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
180
|
-
end
|
181
|
-
end
|
182
|
-
else # model
|
183
|
-
PulpRpmClient.const_get(type).build_from_hash(value)
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
# Returns the string representation of the object
|
188
|
-
# @return [String] String presentation of the object
|
189
|
-
def to_s
|
190
|
-
to_hash.to_s
|
191
|
-
end
|
192
|
-
|
193
|
-
# to_body is an alias to to_hash (backward compatibility)
|
194
|
-
# @return [Hash] Returns the object in the form of hash
|
195
|
-
def to_body
|
196
|
-
to_hash
|
197
|
-
end
|
198
|
-
|
199
|
-
# Returns the object in the form of hash
|
200
|
-
# @return [Hash] Returns the object in the form of hash
|
201
|
-
def to_hash
|
202
|
-
hash = {}
|
203
|
-
self.class.attribute_map.each_pair do |attr, param|
|
204
|
-
value = self.send(attr)
|
205
|
-
if value.nil?
|
206
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
207
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
208
|
-
end
|
209
|
-
|
210
|
-
hash[param] = _to_hash(value)
|
211
|
-
end
|
212
|
-
hash
|
213
|
-
end
|
214
|
-
|
215
|
-
# Outputs non-array value in the form of hash
|
216
|
-
# For object, use to_hash. Otherwise, just return the value
|
217
|
-
# @param [Object] value Any valid value
|
218
|
-
# @return [Hash] Returns the value in the form of hash
|
219
|
-
def _to_hash(value)
|
220
|
-
if value.is_a?(Array)
|
221
|
-
value.compact.map { |v| _to_hash(v) }
|
222
|
-
elsif value.is_a?(Hash)
|
223
|
-
{}.tap do |hash|
|
224
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
225
|
-
end
|
226
|
-
elsif value.respond_to? :to_hash
|
227
|
-
value.to_hash
|
228
|
-
else
|
229
|
-
value
|
230
|
-
end
|
231
|
-
end
|
232
|
-
end
|
233
|
-
end
|
@@ -1,288 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Pulp 3 API
|
3
|
-
|
4
|
-
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v3
|
7
|
-
Contact: pulp-list@redhat.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module PulpRpmClient
|
16
|
-
# A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
|
17
|
-
class RpmPackage
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
# Path where the artifact is located relative to distributions base_path
|
25
|
-
attr_accessor :relative_path
|
26
|
-
|
27
|
-
# An uploaded file that may be turned into the content unit.
|
28
|
-
attr_accessor :file
|
29
|
-
|
30
|
-
# An uncommitted upload that may be turned into the content unit.
|
31
|
-
attr_accessor :upload
|
32
|
-
|
33
|
-
# A url that Pulp can download and turn into the content unit.
|
34
|
-
attr_accessor :file_url
|
35
|
-
|
36
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
-
def self.attribute_map
|
38
|
-
{
|
39
|
-
:'repository' => :'repository',
|
40
|
-
:'artifact' => :'artifact',
|
41
|
-
:'relative_path' => :'relative_path',
|
42
|
-
:'file' => :'file',
|
43
|
-
:'upload' => :'upload',
|
44
|
-
:'file_url' => :'file_url'
|
45
|
-
}
|
46
|
-
end
|
47
|
-
|
48
|
-
# Attribute type mapping.
|
49
|
-
def self.openapi_types
|
50
|
-
{
|
51
|
-
:'repository' => :'String',
|
52
|
-
:'artifact' => :'String',
|
53
|
-
:'relative_path' => :'String',
|
54
|
-
:'file' => :'File',
|
55
|
-
:'upload' => :'String',
|
56
|
-
:'file_url' => :'String'
|
57
|
-
}
|
58
|
-
end
|
59
|
-
|
60
|
-
# List of attributes with nullable: true
|
61
|
-
def self.openapi_nullable
|
62
|
-
Set.new([
|
63
|
-
])
|
64
|
-
end
|
65
|
-
|
66
|
-
# Initializes the object
|
67
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
-
def initialize(attributes = {})
|
69
|
-
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmPackage` initialize method"
|
71
|
-
end
|
72
|
-
|
73
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
74
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmPackage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
|
-
end
|
78
|
-
h[k.to_sym] = v
|
79
|
-
}
|
80
|
-
|
81
|
-
if attributes.key?(:'repository')
|
82
|
-
self.repository = attributes[:'repository']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.key?(:'artifact')
|
86
|
-
self.artifact = attributes[:'artifact']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.key?(:'relative_path')
|
90
|
-
self.relative_path = attributes[:'relative_path']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'file')
|
94
|
-
self.file = attributes[:'file']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'upload')
|
98
|
-
self.upload = attributes[:'upload']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'file_url')
|
102
|
-
self.file_url = attributes[:'file_url']
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
107
|
-
# @return Array for valid properties with the reasons
|
108
|
-
def list_invalid_properties
|
109
|
-
invalid_properties = Array.new
|
110
|
-
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
111
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
112
|
-
end
|
113
|
-
|
114
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
115
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
116
|
-
end
|
117
|
-
|
118
|
-
invalid_properties
|
119
|
-
end
|
120
|
-
|
121
|
-
# Check to see if the all the properties in the model are valid
|
122
|
-
# @return true if the model is valid
|
123
|
-
def valid?
|
124
|
-
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
125
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
126
|
-
true
|
127
|
-
end
|
128
|
-
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] relative_path Value to be assigned
|
131
|
-
def relative_path=(relative_path)
|
132
|
-
if !relative_path.nil? && relative_path.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@relative_path = relative_path
|
137
|
-
end
|
138
|
-
|
139
|
-
# Custom attribute writer method with validation
|
140
|
-
# @param [Object] file_url Value to be assigned
|
141
|
-
def file_url=(file_url)
|
142
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
143
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
144
|
-
end
|
145
|
-
|
146
|
-
@file_url = file_url
|
147
|
-
end
|
148
|
-
|
149
|
-
# Checks equality by comparing each attribute.
|
150
|
-
# @param [Object] Object to be compared
|
151
|
-
def ==(o)
|
152
|
-
return true if self.equal?(o)
|
153
|
-
self.class == o.class &&
|
154
|
-
repository == o.repository &&
|
155
|
-
artifact == o.artifact &&
|
156
|
-
relative_path == o.relative_path &&
|
157
|
-
file == o.file &&
|
158
|
-
upload == o.upload &&
|
159
|
-
file_url == o.file_url
|
160
|
-
end
|
161
|
-
|
162
|
-
# @see the `==` method
|
163
|
-
# @param [Object] Object to be compared
|
164
|
-
def eql?(o)
|
165
|
-
self == o
|
166
|
-
end
|
167
|
-
|
168
|
-
# Calculates hash code according to all attributes.
|
169
|
-
# @return [Integer] Hash code
|
170
|
-
def hash
|
171
|
-
[repository, artifact, relative_path, file, upload, file_url].hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Builds the object from hash
|
175
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
176
|
-
# @return [Object] Returns the model itself
|
177
|
-
def self.build_from_hash(attributes)
|
178
|
-
new.build_from_hash(attributes)
|
179
|
-
end
|
180
|
-
|
181
|
-
# Builds the object from hash
|
182
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
183
|
-
# @return [Object] Returns the model itself
|
184
|
-
def build_from_hash(attributes)
|
185
|
-
return nil unless attributes.is_a?(Hash)
|
186
|
-
self.class.openapi_types.each_pair do |key, type|
|
187
|
-
if type =~ /\AArray<(.*)>/i
|
188
|
-
# check to ensure the input is an array given that the attribute
|
189
|
-
# is documented as an array but the input is not
|
190
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
191
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
192
|
-
end
|
193
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
194
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
195
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
196
|
-
end
|
197
|
-
|
198
|
-
self
|
199
|
-
end
|
200
|
-
|
201
|
-
# Deserializes the data based on type
|
202
|
-
# @param string type Data type
|
203
|
-
# @param string value Value to be deserialized
|
204
|
-
# @return [Object] Deserialized data
|
205
|
-
def _deserialize(type, value)
|
206
|
-
case type.to_sym
|
207
|
-
when :DateTime
|
208
|
-
DateTime.parse(value)
|
209
|
-
when :Date
|
210
|
-
Date.parse(value)
|
211
|
-
when :String
|
212
|
-
value.to_s
|
213
|
-
when :Integer
|
214
|
-
value.to_i
|
215
|
-
when :Float
|
216
|
-
value.to_f
|
217
|
-
when :Boolean
|
218
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
219
|
-
true
|
220
|
-
else
|
221
|
-
false
|
222
|
-
end
|
223
|
-
when :Object
|
224
|
-
# generic object (usually a Hash), return directly
|
225
|
-
value
|
226
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
227
|
-
inner_type = Regexp.last_match[:inner_type]
|
228
|
-
value.map { |v| _deserialize(inner_type, v) }
|
229
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
230
|
-
k_type = Regexp.last_match[:k_type]
|
231
|
-
v_type = Regexp.last_match[:v_type]
|
232
|
-
{}.tap do |hash|
|
233
|
-
value.each do |k, v|
|
234
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
235
|
-
end
|
236
|
-
end
|
237
|
-
else # model
|
238
|
-
PulpRpmClient.const_get(type).build_from_hash(value)
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
# Returns the string representation of the object
|
243
|
-
# @return [String] String presentation of the object
|
244
|
-
def to_s
|
245
|
-
to_hash.to_s
|
246
|
-
end
|
247
|
-
|
248
|
-
# to_body is an alias to to_hash (backward compatibility)
|
249
|
-
# @return [Hash] Returns the object in the form of hash
|
250
|
-
def to_body
|
251
|
-
to_hash
|
252
|
-
end
|
253
|
-
|
254
|
-
# Returns the object in the form of hash
|
255
|
-
# @return [Hash] Returns the object in the form of hash
|
256
|
-
def to_hash
|
257
|
-
hash = {}
|
258
|
-
self.class.attribute_map.each_pair do |attr, param|
|
259
|
-
value = self.send(attr)
|
260
|
-
if value.nil?
|
261
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
262
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
263
|
-
end
|
264
|
-
|
265
|
-
hash[param] = _to_hash(value)
|
266
|
-
end
|
267
|
-
hash
|
268
|
-
end
|
269
|
-
|
270
|
-
# Outputs non-array value in the form of hash
|
271
|
-
# For object, use to_hash. Otherwise, just return the value
|
272
|
-
# @param [Object] value Any valid value
|
273
|
-
# @return [Hash] Returns the value in the form of hash
|
274
|
-
def _to_hash(value)
|
275
|
-
if value.is_a?(Array)
|
276
|
-
value.compact.map { |v| _to_hash(v) }
|
277
|
-
elsif value.is_a?(Hash)
|
278
|
-
{}.tap do |hash|
|
279
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
280
|
-
end
|
281
|
-
elsif value.respond_to? :to_hash
|
282
|
-
value.to_hash
|
283
|
-
else
|
284
|
-
value
|
285
|
-
end
|
286
|
-
end
|
287
|
-
end
|
288
|
-
end
|