pulpcore_client 3.69.2 → 3.70.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -17
- data/docs/AccessPoliciesApi.md +169 -84
- data/docs/AccessPolicy.md +14 -13
- data/docs/AccessPolicyResponse.md +26 -25
- data/docs/ApiAppStatusResponse.md +12 -11
- data/docs/ArtifactDistributionResponse.md +28 -27
- data/docs/ArtifactResponse.md +30 -29
- data/docs/ArtifactsApi.md +145 -78
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/CompositeContentGuard.md +12 -11
- data/docs/CompositeContentGuardResponse.md +20 -19
- data/docs/ContentApi.md +52 -36
- data/docs/ContentAppStatusResponse.md +12 -11
- data/docs/ContentGuardResponse.md +18 -17
- data/docs/ContentOpenpgpPublickeyApi.md +111 -61
- data/docs/ContentOpenpgpPublicsubkeyApi.md +80 -47
- data/docs/ContentOpenpgpSignatureApi.md +80 -47
- data/docs/ContentOpenpgpUserattributeApi.md +80 -47
- data/docs/ContentOpenpgpUseridApi.md +89 -56
- data/docs/ContentRedirectContentGuard.md +10 -9
- data/docs/ContentRedirectContentGuardResponse.md +18 -17
- data/docs/ContentSettingsResponse.md +10 -9
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/ContentguardsApi.md +57 -41
- data/docs/ContentguardsCompositeApi.md +315 -146
- data/docs/ContentguardsContentRedirectApi.md +315 -146
- data/docs/ContentguardsHeaderApi.md +315 -146
- data/docs/ContentguardsRbacApi.md +315 -146
- data/docs/DatabaseConnectionResponse.md +8 -7
- data/docs/DistributionResponse.md +30 -29
- data/docs/DistributionsApi.md +68 -52
- data/docs/DistributionsArtifactsApi.md +95 -62
- data/docs/DistributionsOpenpgpApi.md +248 -113
- data/docs/Domain.md +18 -17
- data/docs/DomainBackendMigrator.md +10 -9
- data/docs/DomainResponse.md +26 -25
- data/docs/DomainsApi.md +224 -106
- data/docs/EvaluationResponse.md +12 -11
- data/docs/ExportersFilesystemApi.md +196 -95
- data/docs/ExportersFilesystemExportsApi.md +120 -53
- data/docs/ExportersPulpApi.md +196 -95
- data/docs/ExportersPulpExportsApi.md +120 -53
- data/docs/FilesystemExport.md +14 -13
- data/docs/FilesystemExportResponse.md +20 -19
- data/docs/FilesystemExporter.md +12 -11
- data/docs/FilesystemExporterResponse.md +20 -19
- data/docs/GenericRemoteResponse.md +58 -0
- data/docs/GenericRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/Group.md +8 -7
- data/docs/GroupProgressReportResponse.md +16 -15
- data/docs/GroupResponse.md +14 -13
- data/docs/GroupRole.md +12 -11
- data/docs/GroupRoleResponse.md +24 -23
- data/docs/GroupUser.md +8 -7
- data/docs/GroupUserResponse.md +12 -11
- data/docs/GroupsApi.md +314 -145
- data/docs/GroupsRolesApi.md +139 -72
- data/docs/GroupsUsersApi.md +90 -40
- data/docs/HeaderContentGuard.md +16 -15
- data/docs/HeaderContentGuardResponse.md +24 -23
- data/docs/ImportResponse.md +18 -17
- data/docs/ImportersPulpApi.md +195 -94
- data/docs/ImportersPulpImportCheckApi.md +29 -13
- data/docs/ImportersPulpImportsApi.md +120 -53
- data/docs/LivezApi.md +25 -8
- data/docs/LoginApi.md +204 -0
- data/docs/LoginResponse.md +22 -0
- data/docs/MethodEnum.md +4 -5
- data/docs/MinimalTaskResponse.md +26 -25
- data/docs/MultipleArtifactContentResponse.md +16 -15
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedOpenPGPPublicSubkey.md +10 -9
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +12 -11
- data/docs/NestedOpenPGPSignature.md +18 -17
- data/docs/NestedOpenPGPSignatureResponse.md +20 -19
- data/docs/NestedOpenPGPUserAttribute.md +8 -7
- data/docs/NestedOpenPGPUserAttributeResponse.md +10 -9
- data/docs/NestedOpenPGPUserID.md +8 -7
- data/docs/NestedOpenPGPUserIDResponse.md +10 -9
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/OpenPGPDistribution.md +20 -19
- data/docs/OpenPGPDistributionResponse.md +32 -31
- data/docs/OpenPGPKeyring.md +16 -15
- data/docs/OpenPGPKeyringResponse.md +28 -27
- data/docs/OpenPGPPublicKeyResponse.md +24 -23
- data/docs/OpenPGPPublicSubkeyResponse.md +22 -21
- data/docs/OpenPGPSignatureResponse.md +30 -29
- data/docs/OpenPGPUserAttributeResponse.md +20 -19
- data/docs/OpenPGPUserIDResponse.md +20 -19
- data/docs/OrphansApi.md +26 -9
- data/docs/OrphansCleanup.md +10 -9
- data/docs/OrphansCleanupApi.md +29 -12
- data/docs/PaginatedAccessPolicyResponseList.md +14 -13
- data/docs/PaginatedArtifactDistributionResponseList.md +14 -13
- data/docs/PaginatedArtifactResponseList.md +14 -13
- data/docs/PaginatedCompositeContentGuardResponseList.md +14 -13
- data/docs/PaginatedContentGuardResponseList.md +14 -13
- data/docs/PaginatedContentRedirectContentGuardResponseList.md +14 -13
- data/docs/PaginatedDistributionResponseList.md +14 -13
- data/docs/PaginatedDomainResponseList.md +14 -13
- data/docs/PaginatedFilesystemExportResponseList.md +14 -13
- data/docs/PaginatedFilesystemExporterResponseList.md +14 -13
- data/docs/PaginatedGenericRemoteResponseList.md +24 -0
- data/docs/PaginatedGroupResponseList.md +14 -13
- data/docs/PaginatedGroupRoleResponseList.md +14 -13
- data/docs/PaginatedGroupUserResponseList.md +14 -13
- data/docs/PaginatedHeaderContentGuardResponseList.md +14 -13
- data/docs/PaginatedImportResponseList.md +14 -13
- data/docs/PaginatedMultipleArtifactContentResponseList.md +14 -13
- data/docs/PaginatedOpenPGPDistributionResponseList.md +14 -13
- data/docs/PaginatedOpenPGPKeyringResponseList.md +14 -13
- data/docs/PaginatedOpenPGPPublicKeyResponseList.md +14 -13
- data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +14 -13
- data/docs/PaginatedOpenPGPSignatureResponseList.md +14 -13
- data/docs/PaginatedOpenPGPUserAttributeResponseList.md +14 -13
- data/docs/PaginatedOpenPGPUserIDResponseList.md +14 -13
- data/docs/PaginatedPublicationResponseList.md +14 -13
- data/docs/PaginatedPulpExportResponseList.md +14 -13
- data/docs/PaginatedPulpExporterResponseList.md +14 -13
- data/docs/PaginatedPulpImporterResponseList.md +14 -13
- data/docs/PaginatedRBACContentGuardResponseList.md +14 -13
- data/docs/PaginatedRepositoryResponseList.md +14 -13
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedRoleResponseList.md +14 -13
- data/docs/PaginatedSigningServiceResponseList.md +14 -13
- data/docs/PaginatedTaskGroupResponseList.md +14 -13
- data/docs/PaginatedTaskResponseList.md +14 -13
- data/docs/PaginatedTaskScheduleResponseList.md +14 -13
- data/docs/PaginatedUploadResponseList.md +14 -13
- data/docs/PaginatedUpstreamPulpResponseList.md +14 -13
- data/docs/PaginatedUserResponseList.md +14 -13
- data/docs/PaginatedUserRoleResponseList.md +14 -13
- data/docs/PaginatedWorkerResponseList.md +14 -13
- data/docs/PatchedAccessPolicy.md +14 -13
- data/docs/PatchedCompositeContentGuard.md +12 -11
- data/docs/PatchedContentRedirectContentGuard.md +10 -9
- data/docs/PatchedDomain.md +18 -17
- data/docs/PatchedFilesystemExporter.md +12 -11
- data/docs/PatchedGroup.md +8 -7
- data/docs/PatchedHeaderContentGuard.md +16 -15
- data/docs/PatchedOpenPGPDistribution.md +20 -19
- data/docs/PatchedOpenPGPKeyring.md +16 -15
- data/docs/PatchedPulpExporter.md +14 -13
- data/docs/PatchedPulpImporter.md +10 -9
- data/docs/PatchedRBACContentGuard.md +10 -9
- data/docs/PatchedRole.md +12 -11
- data/docs/PatchedTaskCancel.md +8 -7
- data/docs/PatchedUpstreamPulp.md +28 -27
- data/docs/PatchedUser.md +20 -19
- data/docs/PolicyEnum.md +4 -5
- data/docs/ProfileArtifactResponse.md +8 -7
- data/docs/ProgressReportResponse.md +18 -17
- data/docs/PublicationResponse.md +18 -17
- data/docs/PublicationsApi.md +67 -49
- data/docs/PulpExport.md +18 -17
- data/docs/PulpExportResponse.md +24 -23
- data/docs/PulpExporter.md +14 -13
- data/docs/PulpExporterResponse.md +22 -21
- data/docs/PulpImport.md +12 -11
- data/docs/PulpImportCheck.md +12 -11
- data/docs/PulpImportCheckResponse.md +12 -11
- data/docs/PulpImporter.md +10 -9
- data/docs/PulpImporterResponse.md +18 -17
- data/docs/Purge.md +10 -9
- data/docs/RBACContentGuard.md +10 -9
- data/docs/RBACContentGuardResponse.md +22 -21
- data/docs/ReclaimSpace.md +10 -9
- data/docs/RedisConnectionResponse.md +8 -7
- data/docs/RemotesApi.md +73 -55
- data/docs/Repair.md +8 -7
- data/docs/RepairApi.md +29 -13
- data/docs/RepositoriesApi.md +71 -55
- data/docs/RepositoriesOpenpgpKeyringApi.md +416 -196
- data/docs/RepositoriesReclaimSpaceApi.md +30 -13
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryResponse.md +28 -27
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/RepositoryVersionsApi.md +65 -47
- data/docs/Role.md +12 -11
- data/docs/RoleResponse.md +22 -21
- data/docs/RolesApi.md +203 -102
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/SigningServiceResponse.md +22 -21
- data/docs/SigningServicesApi.md +75 -42
- data/docs/StatesEnum.md +4 -5
- data/docs/StatusApi.md +26 -9
- data/docs/StatusResponse.md +24 -23
- data/docs/StorageClassEnum.md +4 -5
- data/docs/StorageResponse.md +12 -11
- data/docs/TaskGroupOperationResponse.md +8 -7
- data/docs/TaskGroupResponse.md +32 -31
- data/docs/TaskGroupsApi.md +93 -43
- data/docs/TaskResponse.md +44 -43
- data/docs/TaskScheduleResponse.md +24 -23
- data/docs/TaskSchedulesApi.md +198 -97
- data/docs/TasksApi.md +382 -195
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/docs/Upload.md +8 -7
- data/docs/UploadChunkResponse.md +10 -9
- data/docs/UploadCommit.md +8 -7
- data/docs/UploadDetailResponse.md +20 -19
- data/docs/UploadResponse.md +18 -17
- data/docs/UploadsApi.md +313 -144
- data/docs/UpstreamPulp.md +28 -27
- data/docs/UpstreamPulpResponse.md +34 -33
- data/docs/UpstreamPulpsApi.md +366 -178
- data/docs/User.md +20 -19
- data/docs/UserGroup.md +8 -7
- data/docs/UserGroupResponse.md +12 -11
- data/docs/UserResponse.md +30 -29
- data/docs/UserRole.md +12 -11
- data/docs/UserRoleResponse.md +24 -23
- data/docs/UsersApi.md +211 -110
- data/docs/UsersRolesApi.md +139 -72
- data/docs/VersionResponse.md +16 -15
- data/docs/WorkerResponse.md +22 -21
- data/docs/WorkersApi.md +100 -65
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -23
- data/lib/pulpcore_client/api/artifacts_api.rb +24 -17
- data/lib/pulpcore_client/api/content_api.rb +6 -5
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +20 -14
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +11 -9
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +11 -9
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +11 -9
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +11 -9
- data/lib/pulpcore_client/api/contentguards_api.rb +6 -5
- data/lib/pulpcore_client/api/contentguards_composite_api.rb +70 -45
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +70 -45
- data/lib/pulpcore_client/api/contentguards_header_api.rb +70 -45
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +70 -45
- data/lib/pulpcore_client/api/distributions_api.rb +6 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -9
- data/lib/pulpcore_client/api/distributions_openpgp_api.rb +61 -38
- data/lib/pulpcore_client/api/domains_api.rb +52 -33
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +43 -28
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +24 -17
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +43 -28
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +24 -17
- data/lib/pulpcore_client/api/groups_api.rb +70 -45
- data/lib/pulpcore_client/api/groups_roles_api.rb +24 -17
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -13
- data/lib/pulpcore_client/api/importers_pulp_api.rb +42 -27
- data/lib/pulpcore_client/api/importers_pulp_import_check_api.rb +10 -6
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +24 -17
- data/lib/pulpcore_client/api/livez_api.rb +5 -4
- data/lib/pulpcore_client/api/login_api.rb +179 -0
- data/lib/pulpcore_client/api/orphans_api.rb +6 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +10 -6
- data/lib/pulpcore_client/api/publications_api.rb +21 -17
- data/lib/pulpcore_client/api/remotes_api.rb +23 -19
- data/lib/pulpcore_client/api/repair_api.rb +10 -6
- data/lib/pulpcore_client/api/repositories_api.rb +6 -5
- data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +98 -61
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +10 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +21 -17
- data/lib/pulpcore_client/api/roles_api.rb +42 -27
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -9
- data/lib/pulpcore_client/api/status_api.rb +6 -5
- data/lib/pulpcore_client/api/task_groups_api.rb +20 -14
- data/lib/pulpcore_client/api/task_schedules_api.rb +39 -27
- data/lib/pulpcore_client/api/tasks_api.rb +117 -68
- data/lib/pulpcore_client/api/uploads_api.rb +70 -45
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +93 -64
- data/lib/pulpcore_client/api/users_api.rb +42 -27
- data/lib/pulpcore_client/api/users_roles_api.rb +24 -17
- data/lib/pulpcore_client/api/workers_api.rb +26 -21
- data/lib/pulpcore_client/api_client.rb +137 -102
- data/lib/pulpcore_client/api_error.rb +2 -1
- data/lib/pulpcore_client/configuration.rb +162 -21
- data/lib/pulpcore_client/models/access_policy.rb +32 -22
- data/lib/pulpcore_client/models/access_policy_response.rb +34 -24
- data/lib/pulpcore_client/models/api_app_status_response.rb +31 -23
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +93 -81
- data/lib/pulpcore_client/models/artifact_response.rb +34 -24
- data/lib/pulpcore_client/models/async_operation_response.rb +32 -22
- data/lib/pulpcore_client/models/composite_content_guard.rb +32 -22
- data/lib/pulpcore_client/models/composite_content_guard_response.rb +34 -24
- data/lib/pulpcore_client/models/content_app_status_response.rb +31 -23
- data/lib/pulpcore_client/models/content_guard_response.rb +34 -24
- data/lib/pulpcore_client/models/content_redirect_content_guard.rb +32 -22
- data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +34 -24
- data/lib/pulpcore_client/models/content_settings_response.rb +33 -27
- data/lib/pulpcore_client/models/content_summary_response.rb +36 -22
- data/lib/pulpcore_client/models/database_connection_response.rb +32 -22
- data/lib/pulpcore_client/models/distribution_response.rb +36 -24
- data/lib/pulpcore_client/models/domain.rb +58 -22
- data/lib/pulpcore_client/models/domain_backend_migrator.rb +56 -22
- data/lib/pulpcore_client/models/domain_response.rb +60 -24
- data/lib/pulpcore_client/models/evaluation_response.rb +36 -22
- data/lib/pulpcore_client/models/filesystem_export.rb +30 -22
- data/lib/pulpcore_client/models/filesystem_export_response.rb +32 -24
- data/lib/pulpcore_client/models/filesystem_exporter.rb +56 -22
- data/lib/pulpcore_client/models/filesystem_exporter_response.rb +58 -24
- data/lib/pulpcore_client/models/{remote_response.rb → generic_remote_response.rb} +63 -29
- data/lib/pulpcore_client/models/{remote_response_hidden_fields.rb → generic_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulpcore_client/models/group.rb +32 -22
- data/lib/pulpcore_client/models/group_progress_report_response.rb +30 -22
- data/lib/pulpcore_client/models/group_response.rb +32 -22
- data/lib/pulpcore_client/models/group_role.rb +35 -23
- data/lib/pulpcore_client/models/group_role_response.rb +36 -24
- data/lib/pulpcore_client/models/group_user.rb +32 -22
- data/lib/pulpcore_client/models/group_user_response.rb +32 -22
- data/lib/pulpcore_client/models/header_content_guard.rb +36 -22
- data/lib/pulpcore_client/models/header_content_guard_response.rb +38 -24
- data/lib/pulpcore_client/models/import_response.rb +36 -24
- data/lib/pulpcore_client/models/{upload_chunk.rb → login_response.rb} +55 -62
- data/lib/pulpcore_client/models/method_enum.rb +8 -4
- data/lib/pulpcore_client/models/minimal_task_response.rb +37 -27
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +34 -24
- data/lib/pulpcore_client/models/my_permissions_response.rb +32 -22
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +35 -23
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +35 -23
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +35 -23
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +35 -23
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +32 -22
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +32 -22
- data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +32 -22
- data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +32 -22
- data/lib/pulpcore_client/models/nested_role.rb +32 -22
- data/lib/pulpcore_client/models/nested_role_response.rb +32 -22
- data/lib/pulpcore_client/models/object_roles_response.rb +32 -22
- data/lib/pulpcore_client/models/open_pgp_distribution.rb +34 -22
- data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +36 -24
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +32 -22
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +34 -24
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +38 -26
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +37 -25
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +37 -25
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +34 -24
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +34 -24
- data/lib/pulpcore_client/models/orphans_cleanup.rb +31 -23
- data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_domain_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +34 -22
- data/lib/pulpcore_client/models/{paginated_remote_response_list.rb → paginated_generic_remote_response_list.rb} +38 -26
- data/lib/pulpcore_client/models/paginated_group_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_import_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_task_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_upload_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_user_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +34 -22
- data/lib/pulpcore_client/models/paginated_worker_response_list.rb +34 -22
- data/lib/pulpcore_client/models/patched_access_policy.rb +30 -22
- data/lib/pulpcore_client/models/patched_composite_content_guard.rb +35 -23
- data/lib/pulpcore_client/models/patched_content_redirect_content_guard.rb +35 -23
- data/lib/pulpcore_client/models/patched_domain.rb +59 -25
- data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +62 -24
- data/lib/pulpcore_client/models/patched_group.rb +36 -24
- data/lib/pulpcore_client/models/patched_header_content_guard.rb +45 -25
- data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +40 -24
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +35 -23
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +40 -24
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +35 -23
- data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +35 -23
- data/lib/pulpcore_client/models/patched_role.rb +35 -23
- data/lib/pulpcore_client/models/patched_task_cancel.rb +35 -23
- data/lib/pulpcore_client/models/patched_upstream_pulp.rb +45 -25
- data/lib/pulpcore_client/models/patched_user.rb +46 -26
- data/lib/pulpcore_client/models/policy_enum.rb +10 -5
- data/lib/pulpcore_client/models/profile_artifact_response.rb +32 -22
- data/lib/pulpcore_client/models/progress_report_response.rb +30 -22
- data/lib/pulpcore_client/models/publication_response.rb +32 -24
- data/lib/pulpcore_client/models/pulp_export.rb +35 -23
- data/lib/pulpcore_client/models/pulp_export_response.rb +32 -24
- data/lib/pulpcore_client/models/pulp_exporter.rb +36 -22
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +38 -24
- data/lib/pulpcore_client/models/pulp_import.rb +40 -24
- data/lib/pulpcore_client/models/pulp_import_check.rb +45 -25
- data/lib/pulpcore_client/models/pulp_import_check_response.rb +30 -22
- data/lib/pulpcore_client/models/pulp_importer.rb +32 -22
- data/lib/pulpcore_client/models/pulp_importer_response.rb +34 -24
- data/lib/pulpcore_client/models/purge.rb +31 -23
- data/lib/pulpcore_client/models/rbac_content_guard.rb +32 -22
- data/lib/pulpcore_client/models/rbac_content_guard_response.rb +34 -24
- data/lib/pulpcore_client/models/reclaim_space.rb +33 -23
- data/lib/pulpcore_client/models/redis_connection_response.rb +32 -22
- data/lib/pulpcore_client/models/repair.rb +30 -22
- data/lib/pulpcore_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulpcore_client/models/repository_response.rb +34 -24
- data/lib/pulpcore_client/models/repository_version_response.rb +32 -24
- data/lib/pulpcore_client/models/role.rb +34 -22
- data/lib/pulpcore_client/models/role_response.rb +36 -24
- data/lib/pulpcore_client/models/set_label.rb +34 -22
- data/lib/pulpcore_client/models/set_label_response.rb +34 -22
- data/lib/pulpcore_client/models/signing_service_response.rb +40 -24
- data/lib/pulpcore_client/models/states_enum.rb +8 -4
- data/lib/pulpcore_client/models/status_response.rb +44 -22
- data/lib/pulpcore_client/models/storage_class_enum.rb +8 -4
- data/lib/pulpcore_client/models/storage_response.rb +39 -25
- data/lib/pulpcore_client/models/task_group_operation_response.rb +32 -22
- data/lib/pulpcore_client/models/task_group_response.rb +34 -22
- data/lib/pulpcore_client/models/task_response.rb +39 -27
- data/lib/pulpcore_client/models/task_schedule_response.rb +39 -25
- data/lib/pulpcore_client/models/unset_label.rb +32 -22
- data/lib/pulpcore_client/models/unset_label_response.rb +32 -22
- data/lib/pulpcore_client/models/upload.rb +32 -22
- data/lib/pulpcore_client/models/upload_chunk_response.rb +30 -22
- data/lib/pulpcore_client/models/upload_commit.rb +32 -22
- data/lib/pulpcore_client/models/upload_detail_response.rb +35 -25
- data/lib/pulpcore_client/models/upload_response.rb +35 -25
- data/lib/pulpcore_client/models/upstream_pulp.rb +36 -22
- data/lib/pulpcore_client/models/upstream_pulp_response.rb +40 -26
- data/lib/pulpcore_client/models/user.rb +42 -24
- data/lib/pulpcore_client/models/user_group.rb +32 -22
- data/lib/pulpcore_client/models/user_group_response.rb +32 -22
- data/lib/pulpcore_client/models/user_response.rb +44 -26
- data/lib/pulpcore_client/models/user_role.rb +35 -23
- data/lib/pulpcore_client/models/user_role_response.rb +36 -24
- data/lib/pulpcore_client/models/version_response.rb +40 -22
- data/lib/pulpcore_client/models/worker_response.rb +33 -25
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +6 -7
- data/pulpcore_client.gemspec +9 -6
- data/spec/api/access_policies_api_spec.rb +6 -6
- data/spec/api/artifacts_api_spec.rb +5 -5
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/content_openpgp_publickey_api_spec.rb +4 -4
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +3 -3
- data/spec/api/content_openpgp_signature_api_spec.rb +3 -3
- data/spec/api/content_openpgp_userattribute_api_spec.rb +3 -3
- data/spec/api/content_openpgp_userid_api_spec.rb +3 -3
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_composite_api_spec.rb +11 -11
- data/spec/api/contentguards_content_redirect_api_spec.rb +11 -11
- data/spec/api/contentguards_header_api_spec.rb +11 -11
- data/spec/api/contentguards_rbac_api_spec.rb +11 -11
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +3 -3
- data/spec/api/distributions_openpgp_api_spec.rb +9 -9
- data/spec/api/domains_api_spec.rb +8 -8
- data/spec/api/exporters_filesystem_api_spec.rb +7 -7
- data/spec/api/exporters_filesystem_exports_api_spec.rb +5 -5
- data/spec/api/exporters_pulp_api_spec.rb +7 -7
- data/spec/api/exporters_pulp_exports_api_spec.rb +5 -5
- data/spec/api/groups_api_spec.rb +11 -11
- data/spec/api/groups_roles_api_spec.rb +5 -5
- data/spec/api/groups_users_api_spec.rb +4 -4
- data/spec/api/importers_pulp_api_spec.rb +7 -7
- data/spec/api/importers_pulp_import_check_api_spec.rb +2 -2
- data/spec/api/importers_pulp_imports_api_spec.rb +5 -5
- data/spec/api/livez_api_spec.rb +2 -2
- data/spec/api/login_api_spec.rb +62 -0
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +9 -8
- data/spec/api/remotes_api_spec.rb +10 -9
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_openpgp_keyring_api_spec.rb +14 -14
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +9 -8
- data/spec/api/roles_api_spec.rb +7 -7
- data/spec/api/signing_services_api_spec.rb +3 -3
- data/spec/api/status_api_spec.rb +2 -2
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +7 -7
- data/spec/api/tasks_api_spec.rb +32 -23
- data/spec/api/uploads_api_spec.rb +11 -11
- data/spec/api/upstream_pulps_api_spec.rb +20 -19
- data/spec/api/users_api_spec.rb +7 -7
- data/spec/api/users_roles_api_spec.rb +5 -5
- data/spec/api/workers_api_spec.rb +10 -9
- data/spec/models/access_policy_response_spec.rb +16 -21
- data/spec/models/access_policy_spec.rb +10 -15
- data/spec/models/api_app_status_response_spec.rb +9 -14
- data/spec/models/artifact_distribution_response_spec.rb +26 -31
- data/spec/models/artifact_response_spec.rb +18 -23
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/composite_content_guard_response_spec.rb +13 -18
- data/spec/models/composite_content_guard_spec.rb +9 -14
- data/spec/models/content_app_status_response_spec.rb +9 -14
- data/spec/models/content_guard_response_spec.rb +12 -17
- data/spec/models/content_redirect_content_guard_response_spec.rb +12 -17
- data/spec/models/content_redirect_content_guard_spec.rb +8 -13
- data/spec/models/content_settings_response_spec.rb +8 -13
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/database_connection_response_spec.rb +7 -12
- data/spec/models/distribution_response_spec.rb +18 -23
- data/spec/models/domain_backend_migrator_spec.rb +8 -13
- data/spec/models/domain_response_spec.rb +16 -21
- data/spec/models/domain_spec.rb +12 -17
- data/spec/models/evaluation_response_spec.rb +9 -14
- data/spec/models/filesystem_export_response_spec.rb +13 -18
- data/spec/models/filesystem_export_spec.rb +10 -15
- data/spec/models/filesystem_exporter_response_spec.rb +13 -18
- data/spec/models/filesystem_exporter_spec.rb +9 -14
- data/spec/models/generic_remote_response_hidden_fields_inner_spec.rb +42 -0
- data/spec/models/generic_remote_response_spec.rb +156 -0
- data/spec/models/group_progress_report_response_spec.rb +11 -16
- data/spec/models/group_response_spec.rb +10 -15
- data/spec/models/group_role_response_spec.rb +15 -20
- data/spec/models/group_role_spec.rb +9 -14
- data/spec/models/group_spec.rb +7 -12
- data/spec/models/group_user_response_spec.rb +9 -14
- data/spec/models/group_user_spec.rb +7 -12
- data/spec/models/header_content_guard_response_spec.rb +15 -20
- data/spec/models/header_content_guard_spec.rb +11 -16
- data/spec/models/import_response_spec.rb +12 -17
- data/spec/models/login_response_spec.rb +48 -0
- data/spec/models/method_enum_spec.rb +6 -11
- data/spec/models/minimal_task_response_spec.rb +16 -21
- data/spec/models/multiple_artifact_content_response_spec.rb +11 -16
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +9 -14
- data/spec/models/nested_open_pgp_public_subkey_spec.rb +8 -13
- data/spec/models/nested_open_pgp_signature_response_spec.rb +13 -18
- data/spec/models/nested_open_pgp_signature_spec.rb +12 -17
- data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +8 -13
- data/spec/models/nested_open_pgp_user_attribute_spec.rb +7 -12
- data/spec/models/nested_open_pgp_user_id_response_spec.rb +8 -13
- data/spec/models/nested_open_pgp_user_id_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/open_pgp_distribution_response_spec.rb +19 -24
- data/spec/models/open_pgp_distribution_spec.rb +13 -18
- data/spec/models/open_pgp_keyring_response_spec.rb +17 -22
- data/spec/models/open_pgp_keyring_spec.rb +11 -16
- data/spec/models/open_pgp_public_key_response_spec.rb +15 -20
- data/spec/models/open_pgp_public_subkey_response_spec.rb +14 -19
- data/spec/models/open_pgp_signature_response_spec.rb +18 -23
- data/spec/models/open_pgp_user_attribute_response_spec.rb +13 -18
- data/spec/models/open_pgp_user_id_response_spec.rb +13 -18
- data/spec/models/orphans_cleanup_spec.rb +8 -13
- data/spec/models/paginated_access_policy_response_list_spec.rb +10 -15
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginated_artifact_response_list_spec.rb +10 -15
- data/spec/models/paginated_composite_content_guard_response_list_spec.rb +10 -15
- data/spec/models/paginated_content_guard_response_list_spec.rb +10 -15
- data/spec/models/paginated_content_redirect_content_guard_response_list_spec.rb +10 -15
- data/spec/models/paginated_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginated_domain_response_list_spec.rb +10 -15
- data/spec/models/paginated_filesystem_export_response_list_spec.rb +10 -15
- data/spec/models/paginated_filesystem_exporter_response_list_spec.rb +10 -15
- data/spec/models/paginated_generic_remote_response_list_spec.rb +54 -0
- data/spec/models/paginated_group_response_list_spec.rb +10 -15
- data/spec/models/paginated_group_role_response_list_spec.rb +10 -15
- data/spec/models/paginated_group_user_response_list_spec.rb +10 -15
- data/spec/models/paginated_header_content_guard_response_list_spec.rb +10 -15
- data/spec/models/paginated_import_response_list_spec.rb +10 -15
- data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +10 -15
- data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +10 -15
- data/spec/models/paginated_publication_response_list_spec.rb +10 -15
- data/spec/models/paginated_pulp_export_response_list_spec.rb +10 -15
- data/spec/models/paginated_pulp_exporter_response_list_spec.rb +10 -15
- data/spec/models/paginated_pulp_importer_response_list_spec.rb +10 -15
- data/spec/models/paginated_rbac_content_guard_response_list_spec.rb +10 -15
- data/spec/models/paginated_repository_response_list_spec.rb +10 -15
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginated_role_response_list_spec.rb +10 -15
- data/spec/models/paginated_signing_service_response_list_spec.rb +10 -15
- data/spec/models/paginated_task_group_response_list_spec.rb +10 -15
- data/spec/models/paginated_task_response_list_spec.rb +10 -15
- data/spec/models/paginated_task_schedule_response_list_spec.rb +10 -15
- data/spec/models/paginated_upload_response_list_spec.rb +10 -15
- data/spec/models/paginated_upstream_pulp_response_list_spec.rb +10 -15
- data/spec/models/paginated_user_response_list_spec.rb +10 -15
- data/spec/models/paginated_user_role_response_list_spec.rb +10 -15
- data/spec/models/paginated_worker_response_list_spec.rb +10 -15
- data/spec/models/patched_access_policy_spec.rb +10 -15
- data/spec/models/patched_composite_content_guard_spec.rb +9 -14
- data/spec/models/patched_content_redirect_content_guard_spec.rb +8 -13
- data/spec/models/patched_domain_spec.rb +12 -17
- data/spec/models/patched_filesystem_exporter_spec.rb +9 -14
- data/spec/models/patched_group_spec.rb +7 -12
- data/spec/models/patched_header_content_guard_spec.rb +11 -16
- data/spec/models/patched_open_pgp_distribution_spec.rb +13 -18
- data/spec/models/patched_open_pgp_keyring_spec.rb +11 -16
- data/spec/models/patched_pulp_exporter_spec.rb +10 -15
- data/spec/models/patched_pulp_importer_spec.rb +8 -13
- data/spec/models/patched_rbac_content_guard_spec.rb +8 -13
- data/spec/models/patched_role_spec.rb +9 -14
- data/spec/models/patched_task_cancel_spec.rb +7 -12
- data/spec/models/patched_upstream_pulp_spec.rb +17 -22
- data/spec/models/patched_user_spec.rb +13 -18
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/profile_artifact_response_spec.rb +7 -12
- data/spec/models/progress_report_response_spec.rb +12 -17
- data/spec/models/publication_response_spec.rb +12 -17
- data/spec/models/pulp_export_response_spec.rb +15 -20
- data/spec/models/pulp_export_spec.rb +12 -17
- data/spec/models/pulp_exporter_response_spec.rb +14 -19
- data/spec/models/pulp_exporter_spec.rb +10 -15
- data/spec/models/pulp_import_check_response_spec.rb +9 -14
- data/spec/models/pulp_import_check_spec.rb +9 -14
- data/spec/models/pulp_import_spec.rb +9 -14
- data/spec/models/pulp_importer_response_spec.rb +12 -17
- data/spec/models/pulp_importer_spec.rb +8 -13
- data/spec/models/purge_spec.rb +8 -13
- data/spec/models/rbac_content_guard_response_spec.rb +14 -19
- data/spec/models/rbac_content_guard_spec.rb +8 -13
- data/spec/models/reclaim_space_spec.rb +8 -13
- data/spec/models/redis_connection_response_spec.rb +7 -12
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_response_spec.rb +17 -22
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/role_response_spec.rb +14 -19
- data/spec/models/role_spec.rb +9 -14
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/signing_service_response_spec.rb +14 -19
- data/spec/models/states_enum_spec.rb +6 -11
- data/spec/models/status_response_spec.rb +15 -20
- data/spec/models/storage_class_enum_spec.rb +6 -11
- data/spec/models/storage_response_spec.rb +9 -14
- data/spec/models/task_group_operation_response_spec.rb +7 -12
- data/spec/models/task_group_response_spec.rb +19 -24
- data/spec/models/task_response_spec.rb +25 -30
- data/spec/models/task_schedule_response_spec.rb +15 -20
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/models/upload_chunk_response_spec.rb +8 -13
- data/spec/models/upload_commit_spec.rb +7 -12
- data/spec/models/upload_detail_response_spec.rb +13 -18
- data/spec/models/upload_response_spec.rb +12 -17
- data/spec/models/upload_spec.rb +7 -12
- data/spec/models/upstream_pulp_response_spec.rb +20 -25
- data/spec/models/upstream_pulp_spec.rb +17 -22
- data/spec/models/user_group_response_spec.rb +9 -14
- data/spec/models/user_group_spec.rb +7 -12
- data/spec/models/user_response_spec.rb +18 -23
- data/spec/models/user_role_response_spec.rb +15 -20
- data/spec/models/user_role_spec.rb +9 -14
- data/spec/models/user_spec.rb +13 -18
- data/spec/models/version_response_spec.rb +11 -16
- data/spec/models/worker_response_spec.rb +14 -19
- data/spec/spec_helper.rb +1 -1
- metadata +241 -221
- data/docs/Artifact.md +0 -31
- data/docs/OpenPGPPublicKey.md +0 -23
- data/docs/PaginatedRemoteResponseList.md +0 -23
- data/docs/RemoteResponse.md +0 -57
- data/docs/RemoteResponseHiddenFields.md +0 -19
- data/docs/UploadChunk.md +0 -19
- data/lib/pulpcore_client/models/artifact.rb +0 -379
- data/lib/pulpcore_client/models/open_pgp_public_key.rb +0 -253
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/artifact_spec.rb +0 -83
- data/spec/models/open_pgp_public_key_spec.rb +0 -59
- data/spec/models/paginated_remote_response_list_spec.rb +0 -59
- data/spec/models/remote_response_hidden_fields_spec.rb +0 -47
- data/spec/models/remote_response_spec.rb +0 -161
- data/spec/models/upload_chunk_spec.rb +0 -47
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,6 +21,18 @@ module PulpcoreClient
|
|
21
21
|
# Defines url base path
|
22
22
|
attr_accessor :base_path
|
23
23
|
|
24
|
+
# Define server configuration index
|
25
|
+
attr_accessor :server_index
|
26
|
+
|
27
|
+
# Define server operation configuration index
|
28
|
+
attr_accessor :server_operation_index
|
29
|
+
|
30
|
+
# Default server variables
|
31
|
+
attr_accessor :server_variables
|
32
|
+
|
33
|
+
# Default server operation variables
|
34
|
+
attr_accessor :server_operation_variables
|
35
|
+
|
24
36
|
# Defines API keys used with API Key authentications.
|
25
37
|
#
|
26
38
|
# @return [Hash] key: parameter name, value: parameter value (API key)
|
@@ -50,6 +62,16 @@ module PulpcoreClient
|
|
50
62
|
# Defines the access token (Bearer) used with OAuth2.
|
51
63
|
attr_accessor :access_token
|
52
64
|
|
65
|
+
# Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
|
66
|
+
# Overrides the access_token if set
|
67
|
+
# @return [Proc]
|
68
|
+
attr_accessor :access_token_getter
|
69
|
+
|
70
|
+
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
71
|
+
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
72
|
+
# Default to false.
|
73
|
+
attr_accessor :return_binary_data
|
74
|
+
|
53
75
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
54
76
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
55
77
|
# Default to false.
|
@@ -57,6 +79,14 @@ module PulpcoreClient
|
|
57
79
|
# @return [true, false]
|
58
80
|
attr_accessor :debugging
|
59
81
|
|
82
|
+
# Set this to ignore operation servers for the API client. This is useful when you need to
|
83
|
+
# send requests to a different server than the one specified in the OpenAPI document.
|
84
|
+
# Will default to the base url defined in the spec but can be overridden by setting
|
85
|
+
# `scheme`, `host`, `base_path` directly.
|
86
|
+
# Default to false.
|
87
|
+
# @return [true, false]
|
88
|
+
attr_accessor :ignore_operation_servers
|
89
|
+
|
60
90
|
# Defines the logger used for debugging.
|
61
91
|
# Default to `Rails.logger` (when in Rails) or logging to STDOUT.
|
62
92
|
#
|
@@ -109,18 +139,17 @@ module PulpcoreClient
|
|
109
139
|
# Client private key file (for client certificate)
|
110
140
|
attr_accessor :ssl_client_key
|
111
141
|
|
142
|
+
### Proxy setting
|
143
|
+
# HTTP Proxy settings
|
144
|
+
attr_accessor :proxy
|
145
|
+
|
112
146
|
# Set this to customize parameters encoder of array parameter.
|
113
147
|
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
148
|
#
|
115
149
|
# @see The params_encoder option of Faraday. Related source code:
|
116
150
|
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
151
|
attr_accessor :params_encoder
|
118
|
-
|
119
|
-
# Default to nil.
|
120
|
-
#
|
121
|
-
# @see The params_encoding option of Ethon. Related source code:
|
122
|
-
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
123
|
-
attr_accessor :params_encoding
|
152
|
+
|
124
153
|
|
125
154
|
attr_accessor :inject_format
|
126
155
|
|
@@ -128,20 +157,28 @@ module PulpcoreClient
|
|
128
157
|
|
129
158
|
def initialize
|
130
159
|
@scheme = 'http'
|
131
|
-
@host = 'localhost'
|
160
|
+
@host = 'localhost:24817'
|
132
161
|
@base_path = ''
|
162
|
+
@server_index = nil
|
163
|
+
@server_operation_index = {}
|
164
|
+
@server_variables = {}
|
165
|
+
@server_operation_variables = {}
|
133
166
|
@api_key = {}
|
134
167
|
@api_key_prefix = {}
|
135
|
-
@timeout = 0
|
136
168
|
@client_side_validation = true
|
137
169
|
@ssl_verify = true
|
138
170
|
@ssl_verify_mode = nil
|
139
171
|
@ssl_ca_file = nil
|
140
172
|
@ssl_client_cert = nil
|
141
173
|
@ssl_client_key = nil
|
142
|
-
@
|
174
|
+
@middlewares = Hash.new { |h, k| h[k] = [] }
|
175
|
+
@configure_connection_blocks = []
|
143
176
|
@timeout = 60
|
177
|
+
# return data as binary instead of file
|
178
|
+
@return_binary_data = false
|
179
|
+
@params_encoder = nil
|
144
180
|
@debugging = false
|
181
|
+
@ignore_operation_servers = false
|
145
182
|
@inject_format = false
|
146
183
|
@force_ending_format = false
|
147
184
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -174,20 +211,35 @@ module PulpcoreClient
|
|
174
211
|
@base_path = '' if @base_path == '/'
|
175
212
|
end
|
176
213
|
|
177
|
-
|
178
|
-
|
214
|
+
# Returns base URL for specified operation based on server settings
|
215
|
+
def base_url(operation = nil)
|
216
|
+
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if ignore_operation_servers
|
217
|
+
if operation_server_settings.key?(operation) then
|
218
|
+
index = server_operation_index.fetch(operation, server_index)
|
219
|
+
server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
220
|
+
else
|
221
|
+
server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil)
|
222
|
+
end
|
179
223
|
end
|
180
224
|
|
181
225
|
# Gets API key (with prefix if set).
|
182
226
|
# @param [String] param_name the parameter name of API key auth
|
183
|
-
def api_key_with_prefix(param_name)
|
227
|
+
def api_key_with_prefix(param_name, param_alias = nil)
|
228
|
+
key = @api_key[param_name]
|
229
|
+
key = @api_key.fetch(param_alias, key) unless param_alias.nil?
|
184
230
|
if @api_key_prefix[param_name]
|
185
|
-
"#{@api_key_prefix[param_name]} #{
|
231
|
+
"#{@api_key_prefix[param_name]} #{key}"
|
186
232
|
else
|
187
|
-
|
233
|
+
key
|
188
234
|
end
|
189
235
|
end
|
190
236
|
|
237
|
+
# Gets access_token using access_token_getter or uses the static access_token
|
238
|
+
def access_token_with_refresh
|
239
|
+
return access_token if access_token_getter.nil?
|
240
|
+
access_token_getter.call
|
241
|
+
end
|
242
|
+
|
191
243
|
# Gets Basic Auth token string
|
192
244
|
def basic_auth_token
|
193
245
|
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
@@ -210,31 +262,38 @@ module PulpcoreClient
|
|
210
262
|
def server_settings
|
211
263
|
[
|
212
264
|
{
|
213
|
-
url: "http://localhost:24817
|
265
|
+
url: "http://localhost:24817",
|
214
266
|
description: "No description provided",
|
215
267
|
}
|
216
268
|
]
|
217
269
|
end
|
218
270
|
|
271
|
+
def operation_server_settings
|
272
|
+
{
|
273
|
+
}
|
274
|
+
end
|
275
|
+
|
219
276
|
# Returns URL based on server settings
|
220
277
|
#
|
221
278
|
# @param index array index of the server settings
|
222
279
|
# @param variables hash of variable and the corresponding value
|
223
|
-
def server_url(index, variables = {})
|
224
|
-
servers = server_settings
|
280
|
+
def server_url(index, variables = {}, servers = nil)
|
281
|
+
servers = server_settings if servers == nil
|
225
282
|
|
226
283
|
# check array index out of bound
|
227
|
-
if (index < 0 || index >= servers.size)
|
228
|
-
fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
|
284
|
+
if (index.nil? || index < 0 || index >= servers.size)
|
285
|
+
fail ArgumentError, "Invalid index #{index} when selecting the server. Must not be nil and must be less than #{servers.size}"
|
229
286
|
end
|
230
287
|
|
231
288
|
server = servers[index]
|
232
289
|
url = server[:url]
|
233
290
|
|
291
|
+
return url unless server.key? :variables
|
292
|
+
|
234
293
|
# go through variable and assign a value
|
235
294
|
server[:variables].each do |name, variable|
|
236
295
|
if variables.key?(name)
|
237
|
-
if (server[:variables][name][:enum_values].include?
|
296
|
+
if (!server[:variables][name].key?(:enum_values) || server[:variables][name][:enum_values].include?(variables[name]))
|
238
297
|
url.gsub! "{" + name.to_s + "}", variables[name]
|
239
298
|
else
|
240
299
|
fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
|
@@ -247,5 +306,87 @@ module PulpcoreClient
|
|
247
306
|
|
248
307
|
url
|
249
308
|
end
|
309
|
+
|
310
|
+
# Configure Faraday connection directly.
|
311
|
+
#
|
312
|
+
# ```
|
313
|
+
# c.configure_faraday_connection do |conn|
|
314
|
+
# conn.use Faraday::HttpCache, shared_cache: false, logger: logger
|
315
|
+
# conn.response :logger, nil, headers: true, bodies: true, log_level: :debug do |logger|
|
316
|
+
# logger.filter(/(Authorization: )(.*)/, '\1[REDACTED]')
|
317
|
+
# end
|
318
|
+
# end
|
319
|
+
#
|
320
|
+
# c.configure_faraday_connection do |conn|
|
321
|
+
# conn.adapter :typhoeus
|
322
|
+
# end
|
323
|
+
# ```
|
324
|
+
#
|
325
|
+
# @param block [Proc] `#call`able object that takes one arg, the connection
|
326
|
+
def configure_faraday_connection(&block)
|
327
|
+
@configure_connection_blocks << block
|
328
|
+
end
|
329
|
+
|
330
|
+
def configure_connection(conn)
|
331
|
+
@configure_connection_blocks.each do |block|
|
332
|
+
block.call(conn)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
# Adds middleware to the stack
|
337
|
+
def use(*middleware)
|
338
|
+
set_faraday_middleware(:use, *middleware)
|
339
|
+
end
|
340
|
+
|
341
|
+
# Adds request middleware to the stack
|
342
|
+
def request(*middleware)
|
343
|
+
set_faraday_middleware(:request, *middleware)
|
344
|
+
end
|
345
|
+
|
346
|
+
# Adds response middleware to the stack
|
347
|
+
def response(*middleware)
|
348
|
+
set_faraday_middleware(:response, *middleware)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Adds Faraday middleware setting information to the stack
|
352
|
+
#
|
353
|
+
# @example Use the `set_faraday_middleware` method to set middleware information
|
354
|
+
# config.set_faraday_middleware(:request, :retry, max: 3, methods: [:get, :post], retry_statuses: [503])
|
355
|
+
# config.set_faraday_middleware(:response, :logger, nil, { bodies: true, log_level: :debug })
|
356
|
+
# config.set_faraday_middleware(:use, Faraday::HttpCache, store: Rails.cache, shared_cache: false)
|
357
|
+
# config.set_faraday_middleware(:insert, 0, FaradayMiddleware::FollowRedirects, { standards_compliant: true, limit: 1 })
|
358
|
+
# config.set_faraday_middleware(:swap, 0, Faraday::Response::Logger)
|
359
|
+
# config.set_faraday_middleware(:delete, Faraday::Multipart::Middleware)
|
360
|
+
#
|
361
|
+
# @see https://github.com/lostisland/faraday/blob/v2.3.0/lib/faraday/rack_builder.rb#L92-L143
|
362
|
+
def set_faraday_middleware(operation, key, *args, &block)
|
363
|
+
unless [:request, :response, :use, :insert, :insert_before, :insert_after, :swap, :delete].include?(operation)
|
364
|
+
fail ArgumentError, "Invalid faraday middleware operation #{operation}. Must be" \
|
365
|
+
" :request, :response, :use, :insert, :insert_before, :insert_after, :swap or :delete."
|
366
|
+
end
|
367
|
+
|
368
|
+
@middlewares[operation] << [key, args, block]
|
369
|
+
end
|
370
|
+
ruby2_keywords(:set_faraday_middleware) if respond_to?(:ruby2_keywords, true)
|
371
|
+
|
372
|
+
# Set up middleware on the connection
|
373
|
+
def configure_middleware(connection)
|
374
|
+
return if @middlewares.empty?
|
375
|
+
|
376
|
+
[:request, :response, :use, :insert, :insert_before, :insert_after, :swap].each do |operation|
|
377
|
+
next unless @middlewares.key?(operation)
|
378
|
+
|
379
|
+
@middlewares[operation].each do |key, args, block|
|
380
|
+
connection.builder.send(operation, key, *args, &block)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
if @middlewares.key?(:delete)
|
385
|
+
@middlewares[:delete].each do |key, _args, _block|
|
386
|
+
connection.builder.delete(key)
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
250
391
|
end
|
251
392
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpcoreClient
|
16
17
|
# Serializer for AccessPolicy.
|
@@ -37,6 +38,11 @@ module PulpcoreClient
|
|
37
38
|
}
|
38
39
|
end
|
39
40
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
40
46
|
# Attribute type mapping.
|
41
47
|
def self.openapi_types
|
42
48
|
{
|
@@ -84,6 +90,8 @@ module PulpcoreClient
|
|
84
90
|
if (value = attributes[:'statements']).is_a?(Array)
|
85
91
|
self.statements = value
|
86
92
|
end
|
93
|
+
else
|
94
|
+
self.statements = nil
|
87
95
|
end
|
88
96
|
|
89
97
|
if attributes.key?(:'queryset_scoping')
|
@@ -94,6 +102,7 @@ module PulpcoreClient
|
|
94
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
95
103
|
# @return Array for valid properties with the reasons
|
96
104
|
def list_invalid_properties
|
105
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
97
106
|
invalid_properties = Array.new
|
98
107
|
if @statements.nil?
|
99
108
|
invalid_properties.push('invalid value for "statements", statements cannot be nil.')
|
@@ -105,6 +114,7 @@ module PulpcoreClient
|
|
105
114
|
# Check to see if the all the properties in the model are valid
|
106
115
|
# @return true if the model is valid
|
107
116
|
def valid?
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
108
118
|
return false if @statements.nil?
|
109
119
|
true
|
110
120
|
end
|
@@ -136,37 +146,33 @@ module PulpcoreClient
|
|
136
146
|
# @param [Hash] attributes Model attributes in the form of hash
|
137
147
|
# @return [Object] Returns the model itself
|
138
148
|
def self.build_from_hash(attributes)
|
139
|
-
new.build_from_hash(attributes)
|
140
|
-
end
|
141
|
-
|
142
|
-
# Builds the object from hash
|
143
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
-
# @return [Object] Returns the model itself
|
145
|
-
def build_from_hash(attributes)
|
146
149
|
return nil unless attributes.is_a?(Hash)
|
147
|
-
|
148
|
-
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
149
156
|
# check to ensure the input is an array given that the attribute
|
150
157
|
# is documented as an array but the input is not
|
151
|
-
if attributes[
|
152
|
-
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
153
160
|
end
|
154
|
-
elsif !attributes[
|
155
|
-
|
156
|
-
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
157
164
|
end
|
158
|
-
|
159
|
-
self
|
165
|
+
new(transformed_hash)
|
160
166
|
end
|
161
167
|
|
162
168
|
# Deserializes the data based on type
|
163
169
|
# @param string type Data type
|
164
170
|
# @param string value Value to be deserialized
|
165
171
|
# @return [Object] Deserialized data
|
166
|
-
def _deserialize(type, value)
|
172
|
+
def self._deserialize(type, value)
|
167
173
|
case type.to_sym
|
168
|
-
when :
|
169
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
170
176
|
when :Date
|
171
177
|
Date.parse(value)
|
172
178
|
when :String
|
@@ -196,7 +202,9 @@ module PulpcoreClient
|
|
196
202
|
end
|
197
203
|
end
|
198
204
|
else # model
|
199
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = PulpcoreClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
200
208
|
end
|
201
209
|
end
|
202
210
|
|
@@ -222,7 +230,7 @@ module PulpcoreClient
|
|
222
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
223
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
224
232
|
end
|
225
|
-
|
233
|
+
|
226
234
|
hash[param] = _to_hash(value)
|
227
235
|
end
|
228
236
|
hash
|
@@ -245,5 +253,7 @@ module PulpcoreClient
|
|
245
253
|
value
|
246
254
|
end
|
247
255
|
end
|
256
|
+
|
248
257
|
end
|
258
|
+
|
249
259
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpcoreClient
|
16
17
|
# Serializer for AccessPolicy.
|
@@ -60,13 +61,18 @@ module PulpcoreClient
|
|
60
61
|
}
|
61
62
|
end
|
62
63
|
|
64
|
+
# Returns all the JSON keys this model knows about
|
65
|
+
def self.acceptable_attributes
|
66
|
+
attribute_map.values
|
67
|
+
end
|
68
|
+
|
63
69
|
# Attribute type mapping.
|
64
70
|
def self.openapi_types
|
65
71
|
{
|
66
72
|
:'pulp_href' => :'String',
|
67
73
|
:'prn' => :'String',
|
68
|
-
:'pulp_created' => :'
|
69
|
-
:'pulp_last_updated' => :'
|
74
|
+
:'pulp_created' => :'Time',
|
75
|
+
:'pulp_last_updated' => :'Time',
|
70
76
|
:'permissions_assignment' => :'Array<Object>',
|
71
77
|
:'creation_hooks' => :'Array<Object>',
|
72
78
|
:'statements' => :'Array<Object>',
|
@@ -129,6 +135,8 @@ module PulpcoreClient
|
|
129
135
|
if (value = attributes[:'statements']).is_a?(Array)
|
130
136
|
self.statements = value
|
131
137
|
end
|
138
|
+
else
|
139
|
+
self.statements = nil
|
132
140
|
end
|
133
141
|
|
134
142
|
if attributes.key?(:'viewset_name')
|
@@ -147,6 +155,7 @@ module PulpcoreClient
|
|
147
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
148
156
|
# @return Array for valid properties with the reasons
|
149
157
|
def list_invalid_properties
|
158
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
150
159
|
invalid_properties = Array.new
|
151
160
|
if @statements.nil?
|
152
161
|
invalid_properties.push('invalid value for "statements", statements cannot be nil.')
|
@@ -158,6 +167,7 @@ module PulpcoreClient
|
|
158
167
|
# Check to see if the all the properties in the model are valid
|
159
168
|
# @return true if the model is valid
|
160
169
|
def valid?
|
170
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
161
171
|
return false if @statements.nil?
|
162
172
|
true
|
163
173
|
end
|
@@ -195,37 +205,33 @@ module PulpcoreClient
|
|
195
205
|
# @param [Hash] attributes Model attributes in the form of hash
|
196
206
|
# @return [Object] Returns the model itself
|
197
207
|
def self.build_from_hash(attributes)
|
198
|
-
new.build_from_hash(attributes)
|
199
|
-
end
|
200
|
-
|
201
|
-
# Builds the object from hash
|
202
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
203
|
-
# @return [Object] Returns the model itself
|
204
|
-
def build_from_hash(attributes)
|
205
208
|
return nil unless attributes.is_a?(Hash)
|
206
|
-
|
207
|
-
|
209
|
+
attributes = attributes.transform_keys(&:to_sym)
|
210
|
+
transformed_hash = {}
|
211
|
+
openapi_types.each_pair do |key, type|
|
212
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
213
|
+
transformed_hash["#{key}"] = nil
|
214
|
+
elsif type =~ /\AArray<(.*)>/i
|
208
215
|
# check to ensure the input is an array given that the attribute
|
209
216
|
# is documented as an array but the input is not
|
210
|
-
if attributes[
|
211
|
-
|
217
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
218
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
212
219
|
end
|
213
|
-
elsif !attributes[
|
214
|
-
|
215
|
-
end
|
220
|
+
elsif !attributes[attribute_map[key]].nil?
|
221
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
222
|
+
end
|
216
223
|
end
|
217
|
-
|
218
|
-
self
|
224
|
+
new(transformed_hash)
|
219
225
|
end
|
220
226
|
|
221
227
|
# Deserializes the data based on type
|
222
228
|
# @param string type Data type
|
223
229
|
# @param string value Value to be deserialized
|
224
230
|
# @return [Object] Deserialized data
|
225
|
-
def _deserialize(type, value)
|
231
|
+
def self._deserialize(type, value)
|
226
232
|
case type.to_sym
|
227
|
-
when :
|
228
|
-
|
233
|
+
when :Time
|
234
|
+
Time.parse(value)
|
229
235
|
when :Date
|
230
236
|
Date.parse(value)
|
231
237
|
when :String
|
@@ -255,7 +261,9 @@ module PulpcoreClient
|
|
255
261
|
end
|
256
262
|
end
|
257
263
|
else # model
|
258
|
-
|
264
|
+
# models (e.g. Pet) or oneOf
|
265
|
+
klass = PulpcoreClient.const_get(type)
|
266
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
259
267
|
end
|
260
268
|
end
|
261
269
|
|
@@ -281,7 +289,7 @@ module PulpcoreClient
|
|
281
289
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
282
290
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
283
291
|
end
|
284
|
-
|
292
|
+
|
285
293
|
hash[param] = _to_hash(value)
|
286
294
|
end
|
287
295
|
hash
|
@@ -304,5 +312,7 @@ module PulpcoreClient
|
|
304
312
|
value
|
305
313
|
end
|
306
314
|
end
|
315
|
+
|
307
316
|
end
|
317
|
+
|
308
318
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpcoreClient
|
16
17
|
# Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
@@ -33,11 +34,16 @@ module PulpcoreClient
|
|
33
34
|
}
|
34
35
|
end
|
35
36
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
36
42
|
# Attribute type mapping.
|
37
43
|
def self.openapi_types
|
38
44
|
{
|
39
45
|
:'name' => :'String',
|
40
|
-
:'last_heartbeat' => :'
|
46
|
+
:'last_heartbeat' => :'Time',
|
41
47
|
:'versions' => :'Hash<String, String>'
|
42
48
|
}
|
43
49
|
end
|
@@ -81,6 +87,7 @@ module PulpcoreClient
|
|
81
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
82
88
|
# @return Array for valid properties with the reasons
|
83
89
|
def list_invalid_properties
|
90
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
84
91
|
invalid_properties = Array.new
|
85
92
|
invalid_properties
|
86
93
|
end
|
@@ -88,6 +95,7 @@ module PulpcoreClient
|
|
88
95
|
# Check to see if the all the properties in the model are valid
|
89
96
|
# @return true if the model is valid
|
90
97
|
def valid?
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
91
99
|
true
|
92
100
|
end
|
93
101
|
|
@@ -117,37 +125,33 @@ module PulpcoreClient
|
|
117
125
|
# @param [Hash] attributes Model attributes in the form of hash
|
118
126
|
# @return [Object] Returns the model itself
|
119
127
|
def self.build_from_hash(attributes)
|
120
|
-
new.build_from_hash(attributes)
|
121
|
-
end
|
122
|
-
|
123
|
-
# Builds the object from hash
|
124
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
-
# @return [Object] Returns the model itself
|
126
|
-
def build_from_hash(attributes)
|
127
128
|
return nil unless attributes.is_a?(Hash)
|
128
|
-
|
129
|
-
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
130
|
+
transformed_hash = {}
|
131
|
+
openapi_types.each_pair do |key, type|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
133
|
+
transformed_hash["#{key}"] = nil
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
130
135
|
# check to ensure the input is an array given that the attribute
|
131
136
|
# is documented as an array but the input is not
|
132
|
-
if attributes[
|
133
|
-
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
134
139
|
end
|
135
|
-
elsif !attributes[
|
136
|
-
|
137
|
-
end
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
142
|
+
end
|
138
143
|
end
|
139
|
-
|
140
|
-
self
|
144
|
+
new(transformed_hash)
|
141
145
|
end
|
142
146
|
|
143
147
|
# Deserializes the data based on type
|
144
148
|
# @param string type Data type
|
145
149
|
# @param string value Value to be deserialized
|
146
150
|
# @return [Object] Deserialized data
|
147
|
-
def _deserialize(type, value)
|
151
|
+
def self._deserialize(type, value)
|
148
152
|
case type.to_sym
|
149
|
-
when :
|
150
|
-
|
153
|
+
when :Time
|
154
|
+
Time.parse(value)
|
151
155
|
when :Date
|
152
156
|
Date.parse(value)
|
153
157
|
when :String
|
@@ -177,7 +181,9 @@ module PulpcoreClient
|
|
177
181
|
end
|
178
182
|
end
|
179
183
|
else # model
|
180
|
-
|
184
|
+
# models (e.g. Pet) or oneOf
|
185
|
+
klass = PulpcoreClient.const_get(type)
|
186
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
181
187
|
end
|
182
188
|
end
|
183
189
|
|
@@ -203,7 +209,7 @@ module PulpcoreClient
|
|
203
209
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
210
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
205
211
|
end
|
206
|
-
|
212
|
+
|
207
213
|
hash[param] = _to_hash(value)
|
208
214
|
end
|
209
215
|
hash
|
@@ -226,5 +232,7 @@ module PulpcoreClient
|
|
226
232
|
value
|
227
233
|
end
|
228
234
|
end
|
235
|
+
|
229
236
|
end
|
237
|
+
|
230
238
|
end
|