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,253 +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 UpdateRecord.
|
17
|
-
class RpmUpdateRecord
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# An uploaded file that may be turned into the content unit.
|
22
|
-
attr_accessor :file
|
23
|
-
|
24
|
-
# An uncommitted upload that may be turned into the content unit.
|
25
|
-
attr_accessor :upload
|
26
|
-
|
27
|
-
# A url that Pulp can download and turn into the content unit.
|
28
|
-
attr_accessor :file_url
|
29
|
-
|
30
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
-
def self.attribute_map
|
32
|
-
{
|
33
|
-
:'repository' => :'repository',
|
34
|
-
:'file' => :'file',
|
35
|
-
:'upload' => :'upload',
|
36
|
-
:'file_url' => :'file_url'
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
# Attribute type mapping.
|
41
|
-
def self.openapi_types
|
42
|
-
{
|
43
|
-
:'repository' => :'String',
|
44
|
-
:'file' => :'File',
|
45
|
-
:'upload' => :'String',
|
46
|
-
:'file_url' => :'String'
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# List of attributes with nullable: true
|
51
|
-
def self.openapi_nullable
|
52
|
-
Set.new([
|
53
|
-
])
|
54
|
-
end
|
55
|
-
|
56
|
-
# Initializes the object
|
57
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
-
def initialize(attributes = {})
|
59
|
-
if (!attributes.is_a?(Hash))
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmUpdateRecord` initialize method"
|
61
|
-
end
|
62
|
-
|
63
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmUpdateRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
-
end
|
68
|
-
h[k.to_sym] = v
|
69
|
-
}
|
70
|
-
|
71
|
-
if attributes.key?(:'repository')
|
72
|
-
self.repository = attributes[:'repository']
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.key?(:'file')
|
76
|
-
self.file = attributes[:'file']
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.key?(:'upload')
|
80
|
-
self.upload = attributes[:'upload']
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.key?(:'file_url')
|
84
|
-
self.file_url = attributes[:'file_url']
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
-
# @return Array for valid properties with the reasons
|
90
|
-
def list_invalid_properties
|
91
|
-
invalid_properties = Array.new
|
92
|
-
if !@file_url.nil? && @file_url.to_s.length < 1
|
93
|
-
invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
|
94
|
-
end
|
95
|
-
|
96
|
-
invalid_properties
|
97
|
-
end
|
98
|
-
|
99
|
-
# Check to see if the all the properties in the model are valid
|
100
|
-
# @return true if the model is valid
|
101
|
-
def valid?
|
102
|
-
return false if !@file_url.nil? && @file_url.to_s.length < 1
|
103
|
-
true
|
104
|
-
end
|
105
|
-
|
106
|
-
# Custom attribute writer method with validation
|
107
|
-
# @param [Object] file_url Value to be assigned
|
108
|
-
def file_url=(file_url)
|
109
|
-
if !file_url.nil? && file_url.to_s.length < 1
|
110
|
-
fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
|
111
|
-
end
|
112
|
-
|
113
|
-
@file_url = file_url
|
114
|
-
end
|
115
|
-
|
116
|
-
# Checks equality by comparing each attribute.
|
117
|
-
# @param [Object] Object to be compared
|
118
|
-
def ==(o)
|
119
|
-
return true if self.equal?(o)
|
120
|
-
self.class == o.class &&
|
121
|
-
repository == o.repository &&
|
122
|
-
file == o.file &&
|
123
|
-
upload == o.upload &&
|
124
|
-
file_url == o.file_url
|
125
|
-
end
|
126
|
-
|
127
|
-
# @see the `==` method
|
128
|
-
# @param [Object] Object to be compared
|
129
|
-
def eql?(o)
|
130
|
-
self == o
|
131
|
-
end
|
132
|
-
|
133
|
-
# Calculates hash code according to all attributes.
|
134
|
-
# @return [Integer] Hash code
|
135
|
-
def hash
|
136
|
-
[repository, file, upload, file_url].hash
|
137
|
-
end
|
138
|
-
|
139
|
-
# Builds the object from hash
|
140
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
-
# @return [Object] Returns the model itself
|
142
|
-
def self.build_from_hash(attributes)
|
143
|
-
new.build_from_hash(attributes)
|
144
|
-
end
|
145
|
-
|
146
|
-
# Builds the object from hash
|
147
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
-
# @return [Object] Returns the model itself
|
149
|
-
def build_from_hash(attributes)
|
150
|
-
return nil unless attributes.is_a?(Hash)
|
151
|
-
self.class.openapi_types.each_pair do |key, type|
|
152
|
-
if type =~ /\AArray<(.*)>/i
|
153
|
-
# check to ensure the input is an array given that the attribute
|
154
|
-
# is documented as an array but the input is not
|
155
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
157
|
-
end
|
158
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
160
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
161
|
-
end
|
162
|
-
|
163
|
-
self
|
164
|
-
end
|
165
|
-
|
166
|
-
# Deserializes the data based on type
|
167
|
-
# @param string type Data type
|
168
|
-
# @param string value Value to be deserialized
|
169
|
-
# @return [Object] Deserialized data
|
170
|
-
def _deserialize(type, value)
|
171
|
-
case type.to_sym
|
172
|
-
when :DateTime
|
173
|
-
DateTime.parse(value)
|
174
|
-
when :Date
|
175
|
-
Date.parse(value)
|
176
|
-
when :String
|
177
|
-
value.to_s
|
178
|
-
when :Integer
|
179
|
-
value.to_i
|
180
|
-
when :Float
|
181
|
-
value.to_f
|
182
|
-
when :Boolean
|
183
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
184
|
-
true
|
185
|
-
else
|
186
|
-
false
|
187
|
-
end
|
188
|
-
when :Object
|
189
|
-
# generic object (usually a Hash), return directly
|
190
|
-
value
|
191
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
192
|
-
inner_type = Regexp.last_match[:inner_type]
|
193
|
-
value.map { |v| _deserialize(inner_type, v) }
|
194
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
195
|
-
k_type = Regexp.last_match[:k_type]
|
196
|
-
v_type = Regexp.last_match[:v_type]
|
197
|
-
{}.tap do |hash|
|
198
|
-
value.each do |k, v|
|
199
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
200
|
-
end
|
201
|
-
end
|
202
|
-
else # model
|
203
|
-
PulpRpmClient.const_get(type).build_from_hash(value)
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
|
-
# Returns the string representation of the object
|
208
|
-
# @return [String] String presentation of the object
|
209
|
-
def to_s
|
210
|
-
to_hash.to_s
|
211
|
-
end
|
212
|
-
|
213
|
-
# to_body is an alias to to_hash (backward compatibility)
|
214
|
-
# @return [Hash] Returns the object in the form of hash
|
215
|
-
def to_body
|
216
|
-
to_hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Returns the object in the form of hash
|
220
|
-
# @return [Hash] Returns the object in the form of hash
|
221
|
-
def to_hash
|
222
|
-
hash = {}
|
223
|
-
self.class.attribute_map.each_pair do |attr, param|
|
224
|
-
value = self.send(attr)
|
225
|
-
if value.nil?
|
226
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
227
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
228
|
-
end
|
229
|
-
|
230
|
-
hash[param] = _to_hash(value)
|
231
|
-
end
|
232
|
-
hash
|
233
|
-
end
|
234
|
-
|
235
|
-
# Outputs non-array value in the form of hash
|
236
|
-
# For object, use to_hash. Otherwise, just return the value
|
237
|
-
# @param [Object] value Any valid value
|
238
|
-
# @return [Hash] Returns the value in the form of hash
|
239
|
-
def _to_hash(value)
|
240
|
-
if value.is_a?(Array)
|
241
|
-
value.compact.map { |v| _to_hash(v) }
|
242
|
-
elsif value.is_a?(Hash)
|
243
|
-
{}.tap do |hash|
|
244
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
-
end
|
246
|
-
elsif value.respond_to? :to_hash
|
247
|
-
value.to_hash
|
248
|
-
else
|
249
|
-
value
|
250
|
-
end
|
251
|
-
end
|
252
|
-
end
|
253
|
-
end
|
data/spec/api_client_spec.rb
DELETED
@@ -1,188 +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 'spec_helper'
|
14
|
-
|
15
|
-
describe PulpRpmClient::ApiClient do
|
16
|
-
context 'initialization' do
|
17
|
-
context 'URL stuff' do
|
18
|
-
context 'host' do
|
19
|
-
it 'removes http from host' do
|
20
|
-
PulpRpmClient.configure { |c| c.host = 'http://example.com' }
|
21
|
-
expect(PulpRpmClient::Configuration.default.host).to eq('example.com')
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'removes https from host' do
|
25
|
-
PulpRpmClient.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
-
expect(PulpRpmClient::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'removes trailing path from host' do
|
30
|
-
PulpRpmClient.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
-
expect(PulpRpmClient::Configuration.default.host).to eq('hobo.com')
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
context 'base_path' do
|
36
|
-
it "prepends a slash to base_path" do
|
37
|
-
PulpRpmClient.configure { |c| c.base_path = 'v4/dog' }
|
38
|
-
expect(PulpRpmClient::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
-
end
|
40
|
-
|
41
|
-
it "doesn't prepend a slash if one is already there" do
|
42
|
-
PulpRpmClient.configure { |c| c.base_path = '/v4/dog' }
|
43
|
-
expect(PulpRpmClient::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
-
end
|
45
|
-
|
46
|
-
it "ends up as a blank string if nil" do
|
47
|
-
PulpRpmClient.configure { |c| c.base_path = nil }
|
48
|
-
expect(PulpRpmClient::Configuration.default.base_path).to eq('')
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe '#deserialize' do
|
55
|
-
it "handles Array<Integer>" do
|
56
|
-
api_client = PulpRpmClient::ApiClient.new
|
57
|
-
headers = { 'Content-Type' => 'application/json' }
|
58
|
-
response = double('response', headers: headers, body: '[12, 34]')
|
59
|
-
data = api_client.deserialize(response, 'Array<Integer>')
|
60
|
-
expect(data).to be_instance_of(Array)
|
61
|
-
expect(data).to eq([12, 34])
|
62
|
-
end
|
63
|
-
|
64
|
-
it 'handles Array<Array<Integer>>' do
|
65
|
-
api_client = PulpRpmClient::ApiClient.new
|
66
|
-
headers = { 'Content-Type' => 'application/json' }
|
67
|
-
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
68
|
-
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
69
|
-
expect(data).to be_instance_of(Array)
|
70
|
-
expect(data).to eq([[12, 34], [56]])
|
71
|
-
end
|
72
|
-
|
73
|
-
it 'handles Hash<String, String>' do
|
74
|
-
api_client = PulpRpmClient::ApiClient.new
|
75
|
-
headers = { 'Content-Type' => 'application/json' }
|
76
|
-
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
77
|
-
data = api_client.deserialize(response, 'Hash<String, String>')
|
78
|
-
expect(data).to be_instance_of(Hash)
|
79
|
-
expect(data).to eq(:message => 'Hello')
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe "#object_to_hash" do
|
84
|
-
it 'ignores nils and includes empty arrays' do
|
85
|
-
# uncomment below to test object_to_hash for model
|
86
|
-
# api_client = PulpRpmClient::ApiClient.new
|
87
|
-
# _model = PulpRpmClient::ModelName.new
|
88
|
-
# update the model attribute below
|
89
|
-
# _model.id = 1
|
90
|
-
# update the expected value (hash) below
|
91
|
-
# expected = {id: 1, name: '', tags: []}
|
92
|
-
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
describe '#build_collection_param' do
|
97
|
-
let(:param) { ['aa', 'bb', 'cc'] }
|
98
|
-
let(:api_client) { PulpRpmClient::ApiClient.new }
|
99
|
-
|
100
|
-
it 'works for csv' do
|
101
|
-
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
102
|
-
end
|
103
|
-
|
104
|
-
it 'works for ssv' do
|
105
|
-
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
106
|
-
end
|
107
|
-
|
108
|
-
it 'works for tsv' do
|
109
|
-
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
110
|
-
end
|
111
|
-
|
112
|
-
it 'works for pipes' do
|
113
|
-
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
114
|
-
end
|
115
|
-
|
116
|
-
it 'works for multi' do
|
117
|
-
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
118
|
-
end
|
119
|
-
|
120
|
-
it 'fails for invalid collection format' do
|
121
|
-
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
describe '#json_mime?' do
|
126
|
-
let(:api_client) { PulpRpmClient::ApiClient.new }
|
127
|
-
|
128
|
-
it 'works' do
|
129
|
-
expect(api_client.json_mime?(nil)).to eq false
|
130
|
-
expect(api_client.json_mime?('')).to eq false
|
131
|
-
|
132
|
-
expect(api_client.json_mime?('application/json')).to eq true
|
133
|
-
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
134
|
-
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
135
|
-
|
136
|
-
expect(api_client.json_mime?('application/xml')).to eq false
|
137
|
-
expect(api_client.json_mime?('text/plain')).to eq false
|
138
|
-
expect(api_client.json_mime?('application/jsonp')).to eq false
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
describe '#select_header_accept' do
|
143
|
-
let(:api_client) { PulpRpmClient::ApiClient.new }
|
144
|
-
|
145
|
-
it 'works' do
|
146
|
-
expect(api_client.select_header_accept(nil)).to be_nil
|
147
|
-
expect(api_client.select_header_accept([])).to be_nil
|
148
|
-
|
149
|
-
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
150
|
-
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
151
|
-
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
152
|
-
|
153
|
-
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
154
|
-
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
describe '#select_header_content_type' do
|
159
|
-
let(:api_client) { PulpRpmClient::ApiClient.new }
|
160
|
-
|
161
|
-
it 'works' do
|
162
|
-
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
163
|
-
expect(api_client.select_header_content_type([])).to eq('application/json')
|
164
|
-
|
165
|
-
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
166
|
-
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
167
|
-
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
168
|
-
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
169
|
-
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
describe '#sanitize_filename' do
|
174
|
-
let(:api_client) { PulpRpmClient::ApiClient.new }
|
175
|
-
|
176
|
-
it 'works' do
|
177
|
-
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
178
|
-
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
179
|
-
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
180
|
-
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
181
|
-
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
182
|
-
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
183
|
-
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
184
|
-
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
185
|
-
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
data/spec/configuration_spec.rb
DELETED
@@ -1,42 +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 'spec_helper'
|
14
|
-
|
15
|
-
describe PulpRpmClient::Configuration do
|
16
|
-
let(:config) { PulpRpmClient::Configuration.default }
|
17
|
-
|
18
|
-
before(:each) do
|
19
|
-
# uncomment below to setup host and base_path
|
20
|
-
# require 'URI'
|
21
|
-
# uri = URI.parse("http://localhost:24817")
|
22
|
-
# PulpRpmClient.configure do |c|
|
23
|
-
# c.host = uri.host
|
24
|
-
# c.base_path = uri.path
|
25
|
-
# end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe '#base_url' do
|
29
|
-
it 'should have the default value' do
|
30
|
-
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://localhost:24817")
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should remove trailing slashes' do
|
35
|
-
[nil, '', '/', '//'].each do |base_path|
|
36
|
-
config.base_path = base_path
|
37
|
-
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://localhost:24817")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,53 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::CompsXml
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'CompsXml' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::CompsXml.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of CompsXml' do
|
31
|
-
it 'should create an instance of CompsXml' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::CompsXml)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "file"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "repository"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "replace"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
@@ -1,71 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::RpmPackage
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RpmPackage' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::RpmPackage.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RpmPackage' do
|
31
|
-
it 'should create an instance of RpmPackage' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::RpmPackage)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "repository"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "artifact"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "relative_path"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "file"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "upload"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
describe 'test attribute "file_url"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
end
|
@@ -1,59 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpRpmClient::RpmUpdateRecord
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'RpmUpdateRecord' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpRpmClient::RpmUpdateRecord.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of RpmUpdateRecord' do
|
31
|
-
it 'should create an instance of RpmUpdateRecord' do
|
32
|
-
expect(@instance).to be_instance_of(PulpRpmClient::RpmUpdateRecord)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "repository"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "file"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe 'test attribute "upload"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "file_url"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|