pulp_file_client 3.49.14 → 3.50.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 +77 -420
- data/docs/AcsFileApi.md +56 -56
- data/docs/ContentFilesApi.md +16 -16
- data/docs/DistributionsFileApi.md +61 -61
- data/docs/FileFileRemote.md +1 -1
- data/docs/FileFileRemoteResponse.md +2 -2
- data/docs/{RemoteResponseHiddenFields.md → FileFileRemoteResponseHiddenFields.md} +2 -2
- data/docs/PatchedfileFileRemote.md +1 -1
- data/docs/{MethodEnum.md → PolicyEnum.md} +2 -2
- data/docs/PublicationsFileApi.md +41 -41
- data/docs/RemotesFileApi.md +61 -61
- data/docs/RepositoriesFileApi.md +71 -71
- data/docs/RepositoriesFileVersionsApi.md +21 -21
- data/lib/pulp_file_client/api/acs_file_api.rb +69 -69
- data/lib/pulp_file_client/api/content_files_api.rb +18 -18
- data/lib/pulp_file_client/api/distributions_file_api.rb +77 -77
- data/lib/pulp_file_client/api/publications_file_api.rb +49 -49
- data/lib/pulp_file_client/api/remotes_file_api.rb +77 -77
- data/lib/pulp_file_client/api/repositories_file_api.rb +91 -91
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +25 -25
- data/lib/pulp_file_client/configuration.rb +2 -2
- data/lib/pulp_file_client/models/file_file_remote.rb +21 -21
- data/lib/pulp_file_client/models/file_file_remote_response.rb +22 -22
- data/lib/pulp_file_client/models/{remote_response_hidden_fields.rb → file_file_remote_response_hidden_fields.rb} +3 -3
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +21 -21
- data/lib/pulp_file_client/models/{policy762_enum.rb → policy_enum.rb} +3 -3
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +2 -182
- data/spec/api/acs_file_api_spec.rb +22 -22
- data/spec/api/content_files_api_spec.rb +6 -6
- data/spec/api/distributions_file_api_spec.rb +24 -24
- data/spec/api/publications_file_api_spec.rb +16 -16
- data/spec/api/remotes_file_api_spec.rb +24 -24
- data/spec/api/repositories_file_api_spec.rb +28 -28
- data/spec/api/repositories_file_versions_api_spec.rb +8 -8
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{remote_response_hidden_fields_spec.rb → file_file_remote_response_hidden_fields_spec.rb} +6 -6
- data/spec/models/{policy762_enum_spec.rb → policy_enum_spec.rb} +6 -6
- metadata +54 -774
- data/docs/AccessPoliciesApi.md +0 -323
- data/docs/AccessPolicy.md +0 -23
- data/docs/AccessPolicyResponse.md +0 -33
- data/docs/ApiAppStatusResponse.md +0 -21
- data/docs/Artifact.md +0 -31
- data/docs/ArtifactDistributionResponse.md +0 -33
- data/docs/ArtifactResponse.md +0 -37
- data/docs/ArtifactsApi.md +0 -277
- data/docs/CertguardRHSMCertGuard.md +0 -21
- data/docs/CertguardRHSMCertGuardResponse.md +0 -27
- data/docs/CertguardX509CertGuard.md +0 -21
- data/docs/CertguardX509CertGuardResponse.md +0 -27
- data/docs/CompositeContentGuard.md +0 -21
- data/docs/CompositeContentGuardResponse.md +0 -27
- data/docs/ContentApi.md +0 -90
- data/docs/ContentAppStatusResponse.md +0 -21
- data/docs/ContentGuardResponse.md +0 -25
- data/docs/ContentRedirectContentGuard.md +0 -19
- data/docs/ContentRedirectContentGuardResponse.md +0 -25
- data/docs/ContentSettingsResponse.md +0 -19
- data/docs/ContentguardsApi.md +0 -100
- data/docs/ContentguardsCompositeApi.md +0 -607
- data/docs/ContentguardsContentRedirectApi.md +0 -607
- data/docs/ContentguardsHeaderApi.md +0 -607
- data/docs/ContentguardsRbacApi.md +0 -607
- data/docs/ContentguardsRhsmApi.md +0 -375
- data/docs/ContentguardsX509Api.md +0 -375
- data/docs/DatabaseConnectionResponse.md +0 -17
- data/docs/DistributionResponse.md +0 -35
- data/docs/DistributionsApi.md +0 -116
- data/docs/DistributionsArtifactsApi.md +0 -172
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/docs/Domain.md +0 -27
- data/docs/DomainResponse.md +0 -33
- data/docs/DomainsApi.md +0 -376
- data/docs/EvaluationResponse.md +0 -21
- data/docs/ExportersFilesystemApi.md +0 -376
- data/docs/ExportersFilesystemExportsApi.md +0 -241
- data/docs/ExportersPulpApi.md +0 -376
- data/docs/ExportersPulpExportsApi.md +0 -241
- data/docs/FilesystemExport.md +0 -23
- data/docs/FilesystemExportResponse.md +0 -27
- data/docs/FilesystemExporter.md +0 -21
- data/docs/FilesystemExporterResponse.md +0 -27
- data/docs/Group.md +0 -17
- data/docs/GroupProgressReportResponse.md +0 -25
- data/docs/GroupResponse.md +0 -21
- data/docs/GroupRole.md +0 -21
- data/docs/GroupRoleResponse.md +0 -31
- data/docs/GroupUser.md +0 -17
- data/docs/GroupUserResponse.md +0 -19
- data/docs/GroupsApi.md +0 -603
- data/docs/GroupsRolesApi.md +0 -263
- data/docs/GroupsUsersApi.md +0 -181
- data/docs/HeaderContentGuard.md +0 -25
- data/docs/HeaderContentGuardResponse.md +0 -31
- data/docs/ImportResponse.md +0 -25
- data/docs/ImportersPulpApi.md +0 -375
- data/docs/ImportersPulpImportCheckApi.md +0 -62
- data/docs/ImportersPulpImportsApi.md +0 -241
- data/docs/MinimalTaskResponse.md +0 -33
- data/docs/MultipleArtifactContentResponse.md +0 -23
- data/docs/OrphansApi.md +0 -58
- data/docs/OrphansCleanup.md +0 -19
- data/docs/OrphansCleanupApi.md +0 -61
- data/docs/PaginatedAccessPolicyResponseList.md +0 -23
- data/docs/PaginatedArtifactDistributionResponseList.md +0 -23
- data/docs/PaginatedArtifactResponseList.md +0 -23
- data/docs/PaginatedCompositeContentGuardResponseList.md +0 -23
- data/docs/PaginatedContentGuardResponseList.md +0 -23
- data/docs/PaginatedContentRedirectContentGuardResponseList.md +0 -23
- data/docs/PaginatedDistributionResponseList.md +0 -23
- data/docs/PaginatedDomainResponseList.md +0 -23
- data/docs/PaginatedFilesystemExportResponseList.md +0 -23
- data/docs/PaginatedFilesystemExporterResponseList.md +0 -23
- data/docs/PaginatedGroupResponseList.md +0 -23
- data/docs/PaginatedGroupRoleResponseList.md +0 -23
- data/docs/PaginatedGroupUserResponseList.md +0 -23
- data/docs/PaginatedHeaderContentGuardResponseList.md +0 -23
- data/docs/PaginatedImportResponseList.md +0 -23
- data/docs/PaginatedMultipleArtifactContentResponseList.md +0 -23
- data/docs/PaginatedPublicationResponseList.md +0 -23
- data/docs/PaginatedPulpExportResponseList.md +0 -23
- data/docs/PaginatedPulpExporterResponseList.md +0 -23
- data/docs/PaginatedPulpImporterResponseList.md +0 -23
- data/docs/PaginatedRBACContentGuardResponseList.md +0 -23
- data/docs/PaginatedRemoteResponseList.md +0 -23
- data/docs/PaginatedRepositoryResponseList.md +0 -23
- data/docs/PaginatedRoleResponseList.md +0 -23
- data/docs/PaginatedSigningServiceResponseList.md +0 -23
- data/docs/PaginatedTaskGroupResponseList.md +0 -23
- data/docs/PaginatedTaskResponseList.md +0 -23
- data/docs/PaginatedTaskScheduleResponseList.md +0 -23
- data/docs/PaginatedUploadResponseList.md +0 -23
- data/docs/PaginatedUpstreamPulpResponseList.md +0 -23
- data/docs/PaginatedUserResponseList.md +0 -23
- data/docs/PaginatedUserRoleResponseList.md +0 -23
- data/docs/PaginatedWorkerResponseList.md +0 -23
- data/docs/PaginatedcertguardRHSMCertGuardResponseList.md +0 -23
- data/docs/PaginatedcertguardX509CertGuardResponseList.md +0 -23
- data/docs/PatchedAccessPolicy.md +0 -23
- data/docs/PatchedCompositeContentGuard.md +0 -21
- data/docs/PatchedContentRedirectContentGuard.md +0 -19
- data/docs/PatchedDomain.md +0 -27
- data/docs/PatchedFilesystemExporter.md +0 -21
- data/docs/PatchedGroup.md +0 -17
- data/docs/PatchedHeaderContentGuard.md +0 -25
- data/docs/PatchedPulpExporter.md +0 -23
- data/docs/PatchedPulpImporter.md +0 -19
- data/docs/PatchedRBACContentGuard.md +0 -19
- data/docs/PatchedRole.md +0 -21
- data/docs/PatchedTaskCancel.md +0 -17
- data/docs/PatchedUpstreamPulp.md +0 -37
- data/docs/PatchedUser.md +0 -29
- data/docs/PatchedcertguardRHSMCertGuard.md +0 -21
- data/docs/PatchedcertguardX509CertGuard.md +0 -21
- data/docs/Policy762Enum.md +0 -16
- data/docs/ProgressReportResponse.md +0 -27
- data/docs/PublicationResponse.md +0 -25
- data/docs/PublicationsApi.md +0 -102
- data/docs/PulpExport.md +0 -27
- data/docs/PulpExportResponse.md +0 -31
- data/docs/PulpExporter.md +0 -23
- data/docs/PulpExporterResponse.md +0 -29
- data/docs/PulpImport.md +0 -21
- data/docs/PulpImportCheck.md +0 -21
- data/docs/PulpImportCheckResponse.md +0 -21
- data/docs/PulpImporter.md +0 -19
- data/docs/PulpImporterResponse.md +0 -25
- data/docs/Purge.md +0 -19
- data/docs/RBACContentGuard.md +0 -19
- data/docs/RBACContentGuardResponse.md +0 -29
- data/docs/ReclaimSpace.md +0 -19
- data/docs/RedisConnectionResponse.md +0 -17
- data/docs/RemoteResponse.md +0 -55
- data/docs/RemoteResponsePolicyEnum.md +0 -16
- data/docs/RemotesApi.md +0 -114
- data/docs/RepairApi.md +0 -62
- data/docs/RepositoriesApi.md +0 -124
- data/docs/RepositoriesReclaimSpaceApi.md +0 -61
- data/docs/RepositoryResponse.md +0 -35
- data/docs/RepositoryVersionsApi.md +0 -104
- data/docs/Role.md +0 -21
- data/docs/RoleResponse.md +0 -29
- data/docs/RolesApi.md +0 -389
- data/docs/SigningServiceResponse.md +0 -29
- data/docs/SigningServicesApi.md +0 -140
- data/docs/StatesEnum.md +0 -16
- data/docs/StatusApi.md +0 -52
- data/docs/StatusResponse.md +0 -33
- data/docs/StorageClassEnum.md +0 -16
- data/docs/StorageResponse.md +0 -21
- data/docs/TaskGroupResponse.md +0 -39
- data/docs/TaskGroupsApi.md +0 -130
- data/docs/TaskResponse.md +0 -51
- data/docs/TaskScheduleResponse.md +0 -31
- data/docs/TaskSchedulesApi.md +0 -378
- data/docs/TasksApi.md +0 -603
- data/docs/Upload.md +0 -17
- data/docs/UploadChunk.md +0 -19
- data/docs/UploadChunkResponse.md +0 -19
- data/docs/UploadCommit.md +0 -17
- data/docs/UploadDetailResponse.md +0 -27
- data/docs/UploadResponse.md +0 -25
- data/docs/UploadsApi.md +0 -603
- data/docs/UpstreamPulp.md +0 -37
- data/docs/UpstreamPulpResponse.md +0 -39
- data/docs/UpstreamPulpsApi.md +0 -635
- data/docs/User.md +0 -29
- data/docs/UserGroup.md +0 -17
- data/docs/UserGroupResponse.md +0 -19
- data/docs/UserResponse.md +0 -37
- data/docs/UserRole.md +0 -21
- data/docs/UserRoleResponse.md +0 -31
- data/docs/UsersApi.md +0 -401
- data/docs/UsersRolesApi.md +0 -263
- data/docs/VersionResponse.md +0 -25
- data/docs/WorkerResponse.md +0 -29
- data/docs/WorkersApi.md +0 -172
- data/lib/pulp_file_client/api/access_policies_api.rb +0 -404
- data/lib/pulp_file_client/api/artifacts_api.rb +0 -368
- data/lib/pulp_file_client/api/content_api.rb +0 -132
- data/lib/pulp_file_client/api/contentguards_api.rb +0 -147
- data/lib/pulp_file_client/api/contentguards_composite_api.rb +0 -741
- data/lib/pulp_file_client/api/contentguards_content_redirect_api.rb +0 -741
- data/lib/pulp_file_client/api/contentguards_header_api.rb +0 -741
- data/lib/pulp_file_client/api/contentguards_rbac_api.rb +0 -741
- data/lib/pulp_file_client/api/contentguards_rhsm_api.rb +0 -465
- data/lib/pulp_file_client/api/contentguards_x509_api.rb +0 -465
- data/lib/pulp_file_client/api/distributions_api.rb +0 -171
- data/lib/pulp_file_client/api/distributions_artifacts_api.rb +0 -225
- data/lib/pulp_file_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulp_file_client/api/docs_api_yaml_api.rb +0 -89
- data/lib/pulp_file_client/api/domains_api.rb +0 -467
- data/lib/pulp_file_client/api/exporters_filesystem_api.rb +0 -467
- data/lib/pulp_file_client/api/exporters_filesystem_exports_api.rb +0 -294
- data/lib/pulp_file_client/api/exporters_pulp_api.rb +0 -467
- data/lib/pulp_file_client/api/exporters_pulp_exports_api.rb +0 -294
- data/lib/pulp_file_client/api/groups_api.rb +0 -735
- data/lib/pulp_file_client/api/groups_roles_api.rb +0 -331
- data/lib/pulp_file_client/api/groups_users_api.rb +0 -226
- data/lib/pulp_file_client/api/importers_pulp_api.rb +0 -465
- data/lib/pulp_file_client/api/importers_pulp_import_check_api.rb +0 -86
- data/lib/pulp_file_client/api/importers_pulp_imports_api.rb +0 -294
- data/lib/pulp_file_client/api/orphans_api.rb +0 -78
- data/lib/pulp_file_client/api/orphans_cleanup_api.rb +0 -84
- data/lib/pulp_file_client/api/publications_api.rb +0 -150
- data/lib/pulp_file_client/api/remotes_api.rb +0 -168
- data/lib/pulp_file_client/api/repair_api.rb +0 -86
- data/lib/pulp_file_client/api/repositories_api.rb +0 -183
- data/lib/pulp_file_client/api/repositories_reclaim_space_api.rb +0 -84
- data/lib/pulp_file_client/api/repository_versions_api.rb +0 -145
- data/lib/pulp_file_client/api/roles_api.rb +0 -486
- data/lib/pulp_file_client/api/signing_services_api.rb +0 -177
- data/lib/pulp_file_client/api/status_api.rb +0 -78
- data/lib/pulp_file_client/api/task_groups_api.rb +0 -158
- data/lib/pulp_file_client/api/task_schedules_api.rb +0 -462
- data/lib/pulp_file_client/api/tasks_api.rb +0 -753
- data/lib/pulp_file_client/api/uploads_api.rb +0 -741
- data/lib/pulp_file_client/api/upstream_pulps_api.rb +0 -760
- data/lib/pulp_file_client/api/users_api.rb +0 -504
- data/lib/pulp_file_client/api/users_roles_api.rb +0 -331
- data/lib/pulp_file_client/api/workers_api.rb +0 -225
- data/lib/pulp_file_client/models/access_policy.rb +0 -249
- data/lib/pulp_file_client/models/access_policy_response.rb +0 -298
- data/lib/pulp_file_client/models/api_app_status_response.rb +0 -230
- data/lib/pulp_file_client/models/artifact.rb +0 -379
- data/lib/pulp_file_client/models/artifact_distribution_response.rb +0 -301
- data/lib/pulp_file_client/models/artifact_response.rb +0 -318
- data/lib/pulp_file_client/models/certguard_rhsm_cert_guard.rb +0 -292
- data/lib/pulp_file_client/models/certguard_rhsm_cert_guard_response.rb +0 -268
- data/lib/pulp_file_client/models/certguard_x509_cert_guard.rb +0 -292
- data/lib/pulp_file_client/models/certguard_x509_cert_guard_response.rb +0 -268
- data/lib/pulp_file_client/models/composite_content_guard.rb +0 -270
- data/lib/pulp_file_client/models/composite_content_guard_response.rb +0 -265
- data/lib/pulp_file_client/models/content_app_status_response.rb +0 -230
- data/lib/pulp_file_client/models/content_guard_response.rb +0 -253
- data/lib/pulp_file_client/models/content_redirect_content_guard.rb +0 -258
- data/lib/pulp_file_client/models/content_redirect_content_guard_response.rb +0 -253
- data/lib/pulp_file_client/models/content_settings_response.rb +0 -228
- data/lib/pulp_file_client/models/database_connection_response.rb +0 -213
- data/lib/pulp_file_client/models/distribution_response.rb +0 -312
- data/lib/pulp_file_client/models/domain.rb +0 -332
- data/lib/pulp_file_client/models/domain_response.rb +0 -337
- data/lib/pulp_file_client/models/evaluation_response.rb +0 -245
- data/lib/pulp_file_client/models/filesystem_export.rb +0 -239
- data/lib/pulp_file_client/models/filesystem_export_response.rb +0 -260
- data/lib/pulp_file_client/models/filesystem_exporter.rb +0 -276
- data/lib/pulp_file_client/models/filesystem_exporter_response.rb +0 -267
- data/lib/pulp_file_client/models/group.rb +0 -241
- data/lib/pulp_file_client/models/group_progress_report_response.rb +0 -249
- data/lib/pulp_file_client/models/group_response.rb +0 -250
- data/lib/pulp_file_client/models/group_role.rb +0 -268
- data/lib/pulp_file_client/models/group_role_response.rb +0 -283
- data/lib/pulp_file_client/models/group_user.rb +0 -241
- data/lib/pulp_file_client/models/group_user_response.rb +0 -241
- data/lib/pulp_file_client/models/header_content_guard.rb +0 -352
- data/lib/pulp_file_client/models/header_content_guard_response.rb +0 -294
- data/lib/pulp_file_client/models/import_response.rb +0 -257
- data/lib/pulp_file_client/models/method_enum.rb +0 -37
- data/lib/pulp_file_client/models/minimal_task_response.rb +0 -292
- data/lib/pulp_file_client/models/multiple_artifact_content_response.rb +0 -242
- data/lib/pulp_file_client/models/orphans_cleanup.rb +0 -220
- data/lib/pulp_file_client/models/paginated_access_policy_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_artifact_distribution_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_artifact_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_composite_content_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_content_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_distribution_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_domain_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_filesystem_export_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_filesystem_exporter_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_group_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_group_role_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_group_user_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_header_content_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_import_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_multiple_artifact_content_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_publication_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_pulp_export_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_pulp_exporter_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_pulp_importer_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_rbac_content_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_remote_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_repository_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_role_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_signing_service_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_task_group_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_task_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_task_schedule_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_upload_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_upstream_pulp_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_user_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_user_role_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginated_worker_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginatedcertguard_rhsm_cert_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/paginatedcertguard_x509_cert_guard_response_list.rb +0 -247
- data/lib/pulp_file_client/models/patched_access_policy.rb +0 -244
- data/lib/pulp_file_client/models/patched_composite_content_guard.rb +0 -261
- data/lib/pulp_file_client/models/patched_content_redirect_content_guard.rb +0 -249
- data/lib/pulp_file_client/models/patched_domain.rb +0 -313
- data/lib/pulp_file_client/models/patched_filesystem_exporter.rb +0 -258
- data/lib/pulp_file_client/models/patched_group.rb +0 -232
- data/lib/pulp_file_client/models/patched_header_content_guard.rb +0 -325
- data/lib/pulp_file_client/models/patched_pulp_exporter.rb +0 -270
- data/lib/pulp_file_client/models/patched_pulp_importer.rb +0 -235
- data/lib/pulp_file_client/models/patched_rbac_content_guard.rb +0 -249
- data/lib/pulp_file_client/models/patched_role.rb +0 -261
- data/lib/pulp_file_client/models/patched_task_cancel.rb +0 -223
- data/lib/pulp_file_client/models/patched_upstream_pulp.rb +0 -450
- data/lib/pulp_file_client/models/patched_user.rb +0 -342
- data/lib/pulp_file_client/models/patchedcertguard_rhsm_cert_guard.rb +0 -274
- data/lib/pulp_file_client/models/patchedcertguard_x509_cert_guard.rb +0 -274
- data/lib/pulp_file_client/models/progress_report_response.rb +0 -259
- data/lib/pulp_file_client/models/publication_response.rb +0 -246
- data/lib/pulp_file_client/models/pulp_export.rb +0 -282
- data/lib/pulp_file_client/models/pulp_export_response.rb +0 -280
- data/lib/pulp_file_client/models/pulp_exporter.rb +0 -293
- data/lib/pulp_file_client/models/pulp_exporter_response.rb +0 -284
- data/lib/pulp_file_client/models/pulp_import.rb +0 -260
- data/lib/pulp_file_client/models/pulp_import_check.rb +0 -273
- data/lib/pulp_file_client/models/pulp_import_check_response.rb +0 -228
- data/lib/pulp_file_client/models/pulp_importer.rb +0 -244
- data/lib/pulp_file_client/models/pulp_importer_response.rb +0 -254
- data/lib/pulp_file_client/models/purge.rb +0 -219
- data/lib/pulp_file_client/models/rbac_content_guard.rb +0 -258
- data/lib/pulp_file_client/models/rbac_content_guard_response.rb +0 -275
- data/lib/pulp_file_client/models/reclaim_space.rb +0 -227
- data/lib/pulp_file_client/models/redis_connection_response.rb +0 -213
- data/lib/pulp_file_client/models/remote_response.rb +0 -497
- data/lib/pulp_file_client/models/remote_response_policy_enum.rb +0 -36
- data/lib/pulp_file_client/models/repository_response.rb +0 -319
- data/lib/pulp_file_client/models/role.rb +0 -275
- data/lib/pulp_file_client/models/role_response.rb +0 -280
- data/lib/pulp_file_client/models/signing_service_response.rb +0 -287
- data/lib/pulp_file_client/models/states_enum.rb +0 -38
- data/lib/pulp_file_client/models/status_response.rb +0 -331
- data/lib/pulp_file_client/models/storage_class_enum.rb +0 -37
- data/lib/pulp_file_client/models/storage_response.rb +0 -276
- data/lib/pulp_file_client/models/task_group_response.rb +0 -329
- data/lib/pulp_file_client/models/task_response.rb +0 -396
- data/lib/pulp_file_client/models/task_schedule_response.rb +0 -289
- data/lib/pulp_file_client/models/upload.rb +0 -213
- data/lib/pulp_file_client/models/upload_chunk.rb +0 -239
- data/lib/pulp_file_client/models/upload_chunk_response.rb +0 -216
- data/lib/pulp_file_client/models/upload_commit.rb +0 -232
- data/lib/pulp_file_client/models/upload_detail_response.rb +0 -263
- data/lib/pulp_file_client/models/upload_response.rb +0 -252
- data/lib/pulp_file_client/models/upstream_pulp.rb +0 -477
- data/lib/pulp_file_client/models/upstream_pulp_response.rb +0 -338
- data/lib/pulp_file_client/models/user.rb +0 -351
- data/lib/pulp_file_client/models/user_group.rb +0 -241
- data/lib/pulp_file_client/models/user_group_response.rb +0 -241
- data/lib/pulp_file_client/models/user_response.rb +0 -367
- data/lib/pulp_file_client/models/user_role.rb +0 -268
- data/lib/pulp_file_client/models/user_role_response.rb +0 -283
- data/lib/pulp_file_client/models/version_response.rb +0 -273
- data/lib/pulp_file_client/models/worker_response.rb +0 -269
- data/spec/api/access_policies_api_spec.rb +0 -115
- data/spec/api/artifacts_api_spec.rb +0 -107
- data/spec/api/content_api_spec.rb +0 -60
- data/spec/api/contentguards_api_spec.rb +0 -65
- data/spec/api/contentguards_composite_api_spec.rb +0 -181
- data/spec/api/contentguards_content_redirect_api_spec.rb +0 -181
- data/spec/api/contentguards_header_api_spec.rb +0 -181
- data/spec/api/contentguards_rbac_api_spec.rb +0 -181
- data/spec/api/contentguards_rhsm_api_spec.rb +0 -127
- data/spec/api/contentguards_x509_api_spec.rb +0 -127
- data/spec/api/distributions_api_spec.rb +0 -73
- data/spec/api/distributions_artifacts_api_spec.rb +0 -85
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
- data/spec/api/domains_api_spec.rb +0 -127
- data/spec/api/exporters_filesystem_api_spec.rb +0 -127
- data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -90
- data/spec/api/exporters_pulp_api_spec.rb +0 -127
- data/spec/api/exporters_pulp_exports_api_spec.rb +0 -90
- data/spec/api/groups_api_spec.rb +0 -179
- data/spec/api/groups_roles_api_spec.rb +0 -101
- data/spec/api/groups_users_api_spec.rb +0 -76
- data/spec/api/importers_pulp_api_spec.rb +0 -127
- data/spec/api/importers_pulp_import_check_api_spec.rb +0 -47
- data/spec/api/importers_pulp_imports_api_spec.rb +0 -90
- data/spec/api/orphans_api_spec.rb +0 -46
- data/spec/api/orphans_cleanup_api_spec.rb +0 -46
- data/spec/api/publications_api_spec.rb +0 -66
- data/spec/api/remotes_api_spec.rb +0 -72
- data/spec/api/repair_api_spec.rb +0 -47
- data/spec/api/repositories_api_spec.rb +0 -77
- data/spec/api/repositories_reclaim_space_api_spec.rb +0 -46
- data/spec/api/repository_versions_api_spec.rb +0 -67
- data/spec/api/roles_api_spec.rb +0 -134
- data/spec/api/signing_services_api_spec.rb +0 -69
- data/spec/api/status_api_spec.rb +0 -46
- data/spec/api/task_groups_api_spec.rb +0 -64
- data/spec/api/task_schedules_api_spec.rb +0 -126
- data/spec/api/tasks_api_spec.rb +0 -194
- data/spec/api/uploads_api_spec.rb +0 -178
- data/spec/api/upstream_pulps_api_spec.rb +0 -180
- data/spec/api/users_api_spec.rb +0 -140
- data/spec/api/users_roles_api_spec.rb +0 -101
- data/spec/api/workers_api_spec.rb +0 -85
- data/spec/models/access_policy_response_spec.rb +0 -89
- data/spec/models/access_policy_spec.rb +0 -59
- data/spec/models/api_app_status_response_spec.rb +0 -53
- data/spec/models/artifact_distribution_response_spec.rb +0 -89
- data/spec/models/artifact_response_spec.rb +0 -101
- data/spec/models/artifact_spec.rb +0 -83
- data/spec/models/certguard_rhsm_cert_guard_response_spec.rb +0 -71
- data/spec/models/certguard_rhsm_cert_guard_spec.rb +0 -53
- data/spec/models/certguard_x509_cert_guard_response_spec.rb +0 -71
- data/spec/models/certguard_x509_cert_guard_spec.rb +0 -53
- data/spec/models/composite_content_guard_response_spec.rb +0 -71
- data/spec/models/composite_content_guard_spec.rb +0 -53
- data/spec/models/content_app_status_response_spec.rb +0 -53
- data/spec/models/content_guard_response_spec.rb +0 -65
- data/spec/models/content_redirect_content_guard_response_spec.rb +0 -65
- data/spec/models/content_redirect_content_guard_spec.rb +0 -47
- data/spec/models/content_settings_response_spec.rb +0 -47
- data/spec/models/database_connection_response_spec.rb +0 -41
- data/spec/models/distribution_response_spec.rb +0 -95
- data/spec/models/domain_response_spec.rb +0 -89
- data/spec/models/domain_spec.rb +0 -71
- data/spec/models/evaluation_response_spec.rb +0 -53
- data/spec/models/filesystem_export_response_spec.rb +0 -71
- data/spec/models/filesystem_export_spec.rb +0 -59
- data/spec/models/filesystem_exporter_response_spec.rb +0 -71
- data/spec/models/filesystem_exporter_spec.rb +0 -53
- data/spec/models/group_progress_report_response_spec.rb +0 -65
- data/spec/models/group_response_spec.rb +0 -53
- data/spec/models/group_role_response_spec.rb +0 -83
- data/spec/models/group_role_spec.rb +0 -53
- data/spec/models/group_spec.rb +0 -41
- data/spec/models/group_user_response_spec.rb +0 -47
- data/spec/models/group_user_spec.rb +0 -41
- data/spec/models/header_content_guard_response_spec.rb +0 -83
- data/spec/models/header_content_guard_spec.rb +0 -65
- data/spec/models/import_response_spec.rb +0 -65
- data/spec/models/method_enum_spec.rb +0 -35
- data/spec/models/minimal_task_response_spec.rb +0 -89
- data/spec/models/multiple_artifact_content_response_spec.rb +0 -59
- data/spec/models/orphans_cleanup_spec.rb +0 -47
- data/spec/models/paginated_access_policy_response_list_spec.rb +0 -59
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +0 -59
- data/spec/models/paginated_artifact_response_list_spec.rb +0 -59
- data/spec/models/paginated_composite_content_guard_response_list_spec.rb +0 -59
- data/spec/models/paginated_content_guard_response_list_spec.rb +0 -59
- data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +0 -59
- data/spec/models/paginated_distribution_response_list_spec.rb +0 -59
- data/spec/models/paginated_domain_response_list_spec.rb +0 -59
- data/spec/models/paginated_filesystem_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_filesystem_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_group_response_list_spec.rb +0 -59
- data/spec/models/paginated_group_role_response_list_spec.rb +0 -59
- data/spec/models/paginated_group_user_response_list_spec.rb +0 -59
- data/spec/models/paginated_header_content_guard_response_list_spec.rb +0 -59
- data/spec/models/paginated_import_response_list_spec.rb +0 -59
- data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +0 -59
- data/spec/models/paginated_publication_response_list_spec.rb +0 -59
- data/spec/models/paginated_pulp_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_pulp_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_pulp_importer_response_list_spec.rb +0 -59
- data/spec/models/paginated_rbac_content_guard_response_list_spec.rb +0 -59
- data/spec/models/paginated_remote_response_list_spec.rb +0 -59
- data/spec/models/paginated_repository_response_list_spec.rb +0 -59
- data/spec/models/paginated_role_response_list_spec.rb +0 -59
- data/spec/models/paginated_signing_service_response_list_spec.rb +0 -59
- data/spec/models/paginated_task_group_response_list_spec.rb +0 -59
- data/spec/models/paginated_task_response_list_spec.rb +0 -59
- data/spec/models/paginated_task_schedule_response_list_spec.rb +0 -59
- data/spec/models/paginated_upload_response_list_spec.rb +0 -59
- data/spec/models/paginated_upstream_pulp_response_list_spec.rb +0 -59
- data/spec/models/paginated_user_response_list_spec.rb +0 -59
- data/spec/models/paginated_user_role_response_list_spec.rb +0 -59
- data/spec/models/paginated_worker_response_list_spec.rb +0 -59
- data/spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb +0 -59
- data/spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb +0 -59
- data/spec/models/patched_access_policy_spec.rb +0 -59
- data/spec/models/patched_composite_content_guard_spec.rb +0 -53
- data/spec/models/patched_content_redirect_content_guard_spec.rb +0 -47
- data/spec/models/patched_domain_spec.rb +0 -71
- data/spec/models/patched_filesystem_exporter_spec.rb +0 -53
- data/spec/models/patched_group_spec.rb +0 -41
- data/spec/models/patched_header_content_guard_spec.rb +0 -65
- data/spec/models/patched_pulp_exporter_spec.rb +0 -59
- data/spec/models/patched_pulp_importer_spec.rb +0 -47
- data/spec/models/patched_rbac_content_guard_spec.rb +0 -47
- data/spec/models/patched_role_spec.rb +0 -53
- data/spec/models/patched_task_cancel_spec.rb +0 -41
- data/spec/models/patched_upstream_pulp_spec.rb +0 -101
- data/spec/models/patched_user_spec.rb +0 -77
- data/spec/models/patchedcertguard_rhsm_cert_guard_spec.rb +0 -53
- data/spec/models/patchedcertguard_x509_cert_guard_spec.rb +0 -53
- data/spec/models/progress_report_response_spec.rb +0 -71
- data/spec/models/publication_response_spec.rb +0 -65
- data/spec/models/pulp_export_response_spec.rb +0 -83
- data/spec/models/pulp_export_spec.rb +0 -71
- data/spec/models/pulp_exporter_response_spec.rb +0 -77
- data/spec/models/pulp_exporter_spec.rb +0 -59
- data/spec/models/pulp_import_check_response_spec.rb +0 -53
- data/spec/models/pulp_import_check_spec.rb +0 -53
- data/spec/models/pulp_import_spec.rb +0 -53
- data/spec/models/pulp_importer_response_spec.rb +0 -65
- data/spec/models/pulp_importer_spec.rb +0 -47
- data/spec/models/purge_spec.rb +0 -47
- data/spec/models/rbac_content_guard_response_spec.rb +0 -77
- data/spec/models/rbac_content_guard_spec.rb +0 -47
- data/spec/models/reclaim_space_spec.rb +0 -47
- data/spec/models/redis_connection_response_spec.rb +0 -41
- data/spec/models/remote_response_policy_enum_spec.rb +0 -35
- data/spec/models/remote_response_spec.rb +0 -155
- data/spec/models/repository_response_spec.rb +0 -95
- data/spec/models/role_response_spec.rb +0 -77
- data/spec/models/role_spec.rb +0 -53
- data/spec/models/signing_service_response_spec.rb +0 -77
- data/spec/models/states_enum_spec.rb +0 -35
- data/spec/models/status_response_spec.rb +0 -89
- data/spec/models/storage_class_enum_spec.rb +0 -35
- data/spec/models/storage_response_spec.rb +0 -53
- data/spec/models/task_group_response_spec.rb +0 -107
- data/spec/models/task_response_spec.rb +0 -143
- data/spec/models/task_schedule_response_spec.rb +0 -83
- data/spec/models/upload_chunk_response_spec.rb +0 -47
- data/spec/models/upload_chunk_spec.rb +0 -47
- data/spec/models/upload_commit_spec.rb +0 -41
- data/spec/models/upload_detail_response_spec.rb +0 -71
- data/spec/models/upload_response_spec.rb +0 -65
- data/spec/models/upload_spec.rb +0 -41
- data/spec/models/upstream_pulp_response_spec.rb +0 -107
- data/spec/models/upstream_pulp_spec.rb +0 -101
- data/spec/models/user_group_response_spec.rb +0 -47
- data/spec/models/user_group_spec.rb +0 -41
- data/spec/models/user_response_spec.rb +0 -101
- data/spec/models/user_role_response_spec.rb +0 -83
- data/spec/models/user_role_spec.rb +0 -53
- data/spec/models/user_spec.rb +0 -77
- data/spec/models/version_response_spec.rb +0 -65
- data/spec/models/worker_response_spec.rb +0 -77
@@ -24,8 +24,8 @@ module PulpFileClient
|
|
24
24
|
# @param file_file_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def delete(file_file_repository_version_href, opts = {})
|
28
|
+
data, _status_code, _headers = delete_with_http_info(file_file_repository_version_href, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpFileClient
|
|
34
34
|
# @param file_file_repository_version_href [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def delete_with_http_info(file_file_repository_version_href, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.delete ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'file_file_repository_version_href' is set
|
42
42
|
if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.delete"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '{file_file_repository_version_href}'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -76,7 +76,7 @@ module PulpFileClient
|
|
76
76
|
|
77
77
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
78
78
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
80
|
end
|
81
81
|
return data, status_code, headers
|
82
82
|
end
|
@@ -107,8 +107,8 @@ module PulpFileClient
|
|
107
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
110
|
-
def
|
111
|
-
data, _status_code, _headers =
|
110
|
+
def list(file_file_repository_href, opts = {})
|
111
|
+
data, _status_code, _headers = list_with_http_info(file_file_repository_href, opts)
|
112
112
|
data
|
113
113
|
end
|
114
114
|
|
@@ -138,13 +138,13 @@ module PulpFileClient
|
|
138
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
141
|
-
def
|
141
|
+
def list_with_http_info(file_file_repository_href, opts = {})
|
142
142
|
if @api_client.config.debugging
|
143
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.
|
143
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.list ...'
|
144
144
|
end
|
145
145
|
# verify the required parameter 'file_file_repository_href' is set
|
146
146
|
if @api_client.config.client_side_validation && file_file_repository_href.nil?
|
147
|
-
fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileVersionsApi.
|
147
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileVersionsApi.list"
|
148
148
|
end
|
149
149
|
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
150
150
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
@@ -205,7 +205,7 @@ module PulpFileClient
|
|
205
205
|
|
206
206
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
207
207
|
if @api_client.config.debugging
|
208
|
-
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#
|
208
|
+
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
209
|
end
|
210
210
|
return data, status_code, headers
|
211
211
|
end
|
@@ -217,8 +217,8 @@ module PulpFileClient
|
|
217
217
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
218
218
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
219
219
|
# @return [RepositoryVersionResponse]
|
220
|
-
def
|
221
|
-
data, _status_code, _headers =
|
220
|
+
def read(file_file_repository_version_href, opts = {})
|
221
|
+
data, _status_code, _headers = read_with_http_info(file_file_repository_version_href, opts)
|
222
222
|
data
|
223
223
|
end
|
224
224
|
|
@@ -229,13 +229,13 @@ module PulpFileClient
|
|
229
229
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
230
230
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
231
231
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
232
|
-
def
|
232
|
+
def read_with_http_info(file_file_repository_version_href, opts = {})
|
233
233
|
if @api_client.config.debugging
|
234
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.
|
234
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.read ...'
|
235
235
|
end
|
236
236
|
# verify the required parameter 'file_file_repository_version_href' is set
|
237
237
|
if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
|
238
|
-
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.
|
238
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.read"
|
239
239
|
end
|
240
240
|
# resource path
|
241
241
|
local_var_path = '{file_file_repository_version_href}'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -273,7 +273,7 @@ module PulpFileClient
|
|
273
273
|
|
274
274
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
275
275
|
if @api_client.config.debugging
|
276
|
-
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#
|
276
|
+
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
277
277
|
end
|
278
278
|
return data, status_code, headers
|
279
279
|
end
|
@@ -283,8 +283,8 @@ module PulpFileClient
|
|
283
283
|
# @param repair [Repair]
|
284
284
|
# @param [Hash] opts the optional parameters
|
285
285
|
# @return [AsyncOperationResponse]
|
286
|
-
def
|
287
|
-
data, _status_code, _headers =
|
286
|
+
def repair(file_file_repository_version_href, repair, opts = {})
|
287
|
+
data, _status_code, _headers = repair_with_http_info(file_file_repository_version_href, repair, opts)
|
288
288
|
data
|
289
289
|
end
|
290
290
|
|
@@ -293,17 +293,17 @@ module PulpFileClient
|
|
293
293
|
# @param repair [Repair]
|
294
294
|
# @param [Hash] opts the optional parameters
|
295
295
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
296
|
-
def
|
296
|
+
def repair_with_http_info(file_file_repository_version_href, repair, opts = {})
|
297
297
|
if @api_client.config.debugging
|
298
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.
|
298
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.repair ...'
|
299
299
|
end
|
300
300
|
# verify the required parameter 'file_file_repository_version_href' is set
|
301
301
|
if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
|
302
|
-
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.
|
302
|
+
fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.repair"
|
303
303
|
end
|
304
304
|
# verify the required parameter 'repair' is set
|
305
305
|
if @api_client.config.client_side_validation && repair.nil?
|
306
|
-
fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesFileVersionsApi.
|
306
|
+
fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesFileVersionsApi.repair"
|
307
307
|
end
|
308
308
|
# resource path
|
309
309
|
local_var_path = '{file_file_repository_version_href}repair/'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
|
@@ -341,7 +341,7 @@ module PulpFileClient
|
|
341
341
|
|
342
342
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
343
343
|
if @api_client.config.debugging
|
344
|
-
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#
|
344
|
+
@api_client.config.logger.debug "API called: RepositoriesFileVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
345
|
end
|
346
346
|
return data, status_code, headers
|
347
347
|
end
|
@@ -128,7 +128,7 @@ module PulpFileClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpFileClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -121,7 +121,7 @@ module PulpFileClient
|
|
121
121
|
:'pulp_labels' => :'Hash<String, String>',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
123
|
:'max_retries' => :'Integer',
|
124
|
-
:'policy' => :'
|
124
|
+
:'policy' => :'PolicyEnum',
|
125
125
|
:'total_timeout' => :'Float',
|
126
126
|
:'connect_timeout' => :'Float',
|
127
127
|
:'sock_connect_timeout' => :'Float',
|
@@ -312,20 +312,20 @@ module PulpFileClient
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -347,10 +347,10 @@ module PulpFileClient
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
352
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
353
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
351
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
352
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
354
354
|
true
|
355
355
|
end
|
356
356
|
|
@@ -475,8 +475,8 @@ module PulpFileClient
|
|
475
475
|
# Custom attribute writer method with validation
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
477
477
|
def total_timeout=(total_timeout)
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
478
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
480
480
|
end
|
481
481
|
|
482
482
|
@total_timeout = total_timeout
|
@@ -485,8 +485,8 @@ module PulpFileClient
|
|
485
485
|
# Custom attribute writer method with validation
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
487
487
|
def connect_timeout=(connect_timeout)
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
490
490
|
end
|
491
491
|
|
492
492
|
@connect_timeout = connect_timeout
|
@@ -495,8 +495,8 @@ module PulpFileClient
|
|
495
495
|
# Custom attribute writer method with validation
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
500
500
|
end
|
501
501
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -505,8 +505,8 @@ module PulpFileClient
|
|
505
505
|
# Custom attribute writer method with validation
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
510
510
|
end
|
511
511
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|
@@ -114,14 +114,14 @@ module PulpFileClient
|
|
114
114
|
:'pulp_labels' => :'Hash<String, String>',
|
115
115
|
:'download_concurrency' => :'Integer',
|
116
116
|
:'max_retries' => :'Integer',
|
117
|
-
:'policy' => :'
|
117
|
+
:'policy' => :'PolicyEnum',
|
118
118
|
:'total_timeout' => :'Float',
|
119
119
|
:'connect_timeout' => :'Float',
|
120
120
|
:'sock_connect_timeout' => :'Float',
|
121
121
|
:'sock_read_timeout' => :'Float',
|
122
122
|
:'headers' => :'Array<Object>',
|
123
123
|
:'rate_limit' => :'Integer',
|
124
|
-
:'hidden_fields' => :'Array<
|
124
|
+
:'hidden_fields' => :'Array<FileFileRemoteResponseHiddenFields>'
|
125
125
|
}
|
126
126
|
end
|
127
127
|
|
@@ -259,20 +259,20 @@ module PulpFileClient
|
|
259
259
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
260
260
|
end
|
261
261
|
|
262
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
263
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
262
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
264
264
|
end
|
265
265
|
|
266
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
267
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
266
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
267
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
268
268
|
end
|
269
269
|
|
270
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
271
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
270
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
271
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
272
272
|
end
|
273
273
|
|
274
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
275
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
274
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
276
276
|
end
|
277
277
|
|
278
278
|
invalid_properties
|
@@ -284,10 +284,10 @@ module PulpFileClient
|
|
284
284
|
return false if @name.nil?
|
285
285
|
return false if @url.nil?
|
286
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
287
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
288
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
290
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
287
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
288
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
289
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
290
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
291
291
|
true
|
292
292
|
end
|
293
293
|
|
@@ -304,8 +304,8 @@ module PulpFileClient
|
|
304
304
|
# Custom attribute writer method with validation
|
305
305
|
# @param [Object] total_timeout Value to be assigned
|
306
306
|
def total_timeout=(total_timeout)
|
307
|
-
if !total_timeout.nil? && total_timeout < 0
|
308
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
307
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
308
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
309
309
|
end
|
310
310
|
|
311
311
|
@total_timeout = total_timeout
|
@@ -314,8 +314,8 @@ module PulpFileClient
|
|
314
314
|
# Custom attribute writer method with validation
|
315
315
|
# @param [Object] connect_timeout Value to be assigned
|
316
316
|
def connect_timeout=(connect_timeout)
|
317
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
318
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
317
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
318
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
319
319
|
end
|
320
320
|
|
321
321
|
@connect_timeout = connect_timeout
|
@@ -324,8 +324,8 @@ module PulpFileClient
|
|
324
324
|
# Custom attribute writer method with validation
|
325
325
|
# @param [Object] sock_connect_timeout Value to be assigned
|
326
326
|
def sock_connect_timeout=(sock_connect_timeout)
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
329
329
|
end
|
330
330
|
|
331
331
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -334,8 +334,8 @@ module PulpFileClient
|
|
334
334
|
# Custom attribute writer method with validation
|
335
335
|
# @param [Object] sock_read_timeout Value to be assigned
|
336
336
|
def sock_read_timeout=(sock_read_timeout)
|
337
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
338
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
337
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
338
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
339
339
|
end
|
340
340
|
|
341
341
|
@sock_read_timeout = sock_read_timeout
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpFileClient
|
16
|
-
class
|
16
|
+
class FileFileRemoteResponseHiddenFields
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
19
|
attr_accessor :is_set
|
@@ -44,13 +44,13 @@ module PulpFileClient
|
|
44
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
45
|
def initialize(attributes = {})
|
46
46
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpFileClient::FileFileRemoteResponseHiddenFields` initialize method"
|
48
48
|
end
|
49
49
|
|
50
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
51
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
52
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpFileClient::FileFileRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
54
|
end
|
55
55
|
h[k.to_sym] = v
|
56
56
|
}
|
@@ -121,7 +121,7 @@ module PulpFileClient
|
|
121
121
|
:'pulp_labels' => :'Hash<String, String>',
|
122
122
|
:'download_concurrency' => :'Integer',
|
123
123
|
:'max_retries' => :'Integer',
|
124
|
-
:'policy' => :'
|
124
|
+
:'policy' => :'PolicyEnum',
|
125
125
|
:'total_timeout' => :'Float',
|
126
126
|
:'connect_timeout' => :'Float',
|
127
127
|
:'sock_connect_timeout' => :'Float',
|
@@ -304,20 +304,20 @@ module PulpFileClient
|
|
304
304
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
305
305
|
end
|
306
306
|
|
307
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
308
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
307
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
308
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
309
309
|
end
|
310
310
|
|
311
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
312
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
311
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
312
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
315
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
316
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
319
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
321
321
|
end
|
322
322
|
|
323
323
|
invalid_properties
|
@@ -337,10 +337,10 @@ module PulpFileClient
|
|
337
337
|
return false if !@username.nil? && @username.to_s.length < 1
|
338
338
|
return false if !@password.nil? && @password.to_s.length < 1
|
339
339
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
340
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
341
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
342
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
343
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
340
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
341
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
342
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
343
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
344
344
|
true
|
345
345
|
end
|
346
346
|
|
@@ -457,8 +457,8 @@ module PulpFileClient
|
|
457
457
|
# Custom attribute writer method with validation
|
458
458
|
# @param [Object] total_timeout Value to be assigned
|
459
459
|
def total_timeout=(total_timeout)
|
460
|
-
if !total_timeout.nil? && total_timeout < 0
|
461
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
460
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
461
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
462
462
|
end
|
463
463
|
|
464
464
|
@total_timeout = total_timeout
|
@@ -467,8 +467,8 @@ module PulpFileClient
|
|
467
467
|
# Custom attribute writer method with validation
|
468
468
|
# @param [Object] connect_timeout Value to be assigned
|
469
469
|
def connect_timeout=(connect_timeout)
|
470
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
471
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
470
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
471
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
472
472
|
end
|
473
473
|
|
474
474
|
@connect_timeout = connect_timeout
|
@@ -477,8 +477,8 @@ module PulpFileClient
|
|
477
477
|
# Custom attribute writer method with validation
|
478
478
|
# @param [Object] sock_connect_timeout Value to be assigned
|
479
479
|
def sock_connect_timeout=(sock_connect_timeout)
|
480
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
481
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
480
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
481
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
482
482
|
end
|
483
483
|
|
484
484
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -487,8 +487,8 @@ module PulpFileClient
|
|
487
487
|
# Custom attribute writer method with validation
|
488
488
|
# @param [Object] sock_read_timeout Value to be assigned
|
489
489
|
def sock_read_timeout=(sock_read_timeout)
|
490
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
491
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
490
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
491
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
492
492
|
end
|
493
493
|
|
494
494
|
@sock_read_timeout = sock_read_timeout
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpFileClient
|
16
|
-
class
|
16
|
+
class PolicyEnum
|
17
17
|
IMMEDIATE = "immediate".freeze
|
18
18
|
ON_DEMAND = "on_demand".freeze
|
19
19
|
STREAMED = "streamed".freeze
|
@@ -29,8 +29,8 @@ module PulpFileClient
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
30
30
|
# @return [String] The enum value
|
31
31
|
def build_from_hash(value)
|
32
|
-
constantValues =
|
33
|
-
raise "Invalid ENUM value #{value} for class #
|
32
|
+
constantValues = PolicyEnum.constants.select { |c| PolicyEnum::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #PolicyEnum" if constantValues.empty?
|
34
34
|
value
|
35
35
|
end
|
36
36
|
end
|