pulpcore_client 3.69.2 → 3.70.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 +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 +91 -79
- 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 +27 -32
- 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 +61 -41
- 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,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 to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
|
@@ -30,6 +31,11 @@ module PulpcoreClient
|
|
30
31
|
}
|
31
32
|
end
|
32
33
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
35
|
+
def self.acceptable_attributes
|
36
|
+
attribute_map.values
|
37
|
+
end
|
38
|
+
|
33
39
|
# Attribute type mapping.
|
34
40
|
def self.openapi_types
|
35
41
|
{
|
@@ -74,12 +80,15 @@ module PulpcoreClient
|
|
74
80
|
|
75
81
|
if attributes.key?(:'role')
|
76
82
|
self.role = attributes[:'role']
|
83
|
+
else
|
84
|
+
self.role = nil
|
77
85
|
end
|
78
86
|
end
|
79
87
|
|
80
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
81
89
|
# @return Array for valid properties with the reasons
|
82
90
|
def list_invalid_properties
|
91
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
83
92
|
invalid_properties = Array.new
|
84
93
|
if @role.nil?
|
85
94
|
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
@@ -91,6 +100,7 @@ module PulpcoreClient
|
|
91
100
|
# Check to see if the all the properties in the model are valid
|
92
101
|
# @return true if the model is valid
|
93
102
|
def valid?
|
103
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
94
104
|
return false if @role.nil?
|
95
105
|
true
|
96
106
|
end
|
@@ -121,37 +131,33 @@ module PulpcoreClient
|
|
121
131
|
# @param [Hash] attributes Model attributes in the form of hash
|
122
132
|
# @return [Object] Returns the model itself
|
123
133
|
def self.build_from_hash(attributes)
|
124
|
-
new.build_from_hash(attributes)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Builds the object from hash
|
128
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
-
# @return [Object] Returns the model itself
|
130
|
-
def build_from_hash(attributes)
|
131
134
|
return nil unless attributes.is_a?(Hash)
|
132
|
-
|
133
|
-
|
135
|
+
attributes = attributes.transform_keys(&:to_sym)
|
136
|
+
transformed_hash = {}
|
137
|
+
openapi_types.each_pair do |key, type|
|
138
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
139
|
+
transformed_hash["#{key}"] = nil
|
140
|
+
elsif type =~ /\AArray<(.*)>/i
|
134
141
|
# check to ensure the input is an array given that the attribute
|
135
142
|
# is documented as an array but the input is not
|
136
|
-
if attributes[
|
137
|
-
|
143
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
144
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
138
145
|
end
|
139
|
-
elsif !attributes[
|
140
|
-
|
141
|
-
end
|
146
|
+
elsif !attributes[attribute_map[key]].nil?
|
147
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
148
|
+
end
|
142
149
|
end
|
143
|
-
|
144
|
-
self
|
150
|
+
new(transformed_hash)
|
145
151
|
end
|
146
152
|
|
147
153
|
# Deserializes the data based on type
|
148
154
|
# @param string type Data type
|
149
155
|
# @param string value Value to be deserialized
|
150
156
|
# @return [Object] Deserialized data
|
151
|
-
def _deserialize(type, value)
|
157
|
+
def self._deserialize(type, value)
|
152
158
|
case type.to_sym
|
153
|
-
when :
|
154
|
-
|
159
|
+
when :Time
|
160
|
+
Time.parse(value)
|
155
161
|
when :Date
|
156
162
|
Date.parse(value)
|
157
163
|
when :String
|
@@ -181,7 +187,9 @@ module PulpcoreClient
|
|
181
187
|
end
|
182
188
|
end
|
183
189
|
else # model
|
184
|
-
|
190
|
+
# models (e.g. Pet) or oneOf
|
191
|
+
klass = PulpcoreClient.const_get(type)
|
192
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
185
193
|
end
|
186
194
|
end
|
187
195
|
|
@@ -207,7 +215,7 @@ module PulpcoreClient
|
|
207
215
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
208
216
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
209
217
|
end
|
210
|
-
|
218
|
+
|
211
219
|
hash[param] = _to_hash(value)
|
212
220
|
end
|
213
221
|
hash
|
@@ -230,5 +238,7 @@ module PulpcoreClient
|
|
230
238
|
value
|
231
239
|
end
|
232
240
|
end
|
241
|
+
|
233
242
|
end
|
243
|
+
|
234
244
|
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
|
class ObjectRolesResponse
|
@@ -23,6 +24,11 @@ module PulpcoreClient
|
|
23
24
|
}
|
24
25
|
end
|
25
26
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
26
32
|
# Attribute type mapping.
|
27
33
|
def self.openapi_types
|
28
34
|
{
|
@@ -55,12 +61,15 @@ module PulpcoreClient
|
|
55
61
|
if (value = attributes[:'roles']).is_a?(Array)
|
56
62
|
self.roles = value
|
57
63
|
end
|
64
|
+
else
|
65
|
+
self.roles = nil
|
58
66
|
end
|
59
67
|
end
|
60
68
|
|
61
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
62
70
|
# @return Array for valid properties with the reasons
|
63
71
|
def list_invalid_properties
|
72
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
64
73
|
invalid_properties = Array.new
|
65
74
|
if @roles.nil?
|
66
75
|
invalid_properties.push('invalid value for "roles", roles cannot be nil.')
|
@@ -72,6 +81,7 @@ module PulpcoreClient
|
|
72
81
|
# Check to see if the all the properties in the model are valid
|
73
82
|
# @return true if the model is valid
|
74
83
|
def valid?
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
75
85
|
return false if @roles.nil?
|
76
86
|
true
|
77
87
|
end
|
@@ -100,37 +110,33 @@ module PulpcoreClient
|
|
100
110
|
# @param [Hash] attributes Model attributes in the form of hash
|
101
111
|
# @return [Object] Returns the model itself
|
102
112
|
def self.build_from_hash(attributes)
|
103
|
-
new.build_from_hash(attributes)
|
104
|
-
end
|
105
|
-
|
106
|
-
# Builds the object from hash
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
-
# @return [Object] Returns the model itself
|
109
|
-
def build_from_hash(attributes)
|
110
113
|
return nil unless attributes.is_a?(Hash)
|
111
|
-
|
112
|
-
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
115
|
+
transformed_hash = {}
|
116
|
+
openapi_types.each_pair do |key, type|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash["#{key}"] = nil
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
113
120
|
# check to ensure the input is an array given that the attribute
|
114
121
|
# is documented as an array but the input is not
|
115
|
-
if attributes[
|
116
|
-
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
117
124
|
end
|
118
|
-
elsif !attributes[
|
119
|
-
|
120
|
-
end
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
127
|
+
end
|
121
128
|
end
|
122
|
-
|
123
|
-
self
|
129
|
+
new(transformed_hash)
|
124
130
|
end
|
125
131
|
|
126
132
|
# Deserializes the data based on type
|
127
133
|
# @param string type Data type
|
128
134
|
# @param string value Value to be deserialized
|
129
135
|
# @return [Object] Deserialized data
|
130
|
-
def _deserialize(type, value)
|
136
|
+
def self._deserialize(type, value)
|
131
137
|
case type.to_sym
|
132
|
-
when :
|
133
|
-
|
138
|
+
when :Time
|
139
|
+
Time.parse(value)
|
134
140
|
when :Date
|
135
141
|
Date.parse(value)
|
136
142
|
when :String
|
@@ -160,7 +166,9 @@ module PulpcoreClient
|
|
160
166
|
end
|
161
167
|
end
|
162
168
|
else # model
|
163
|
-
|
169
|
+
# models (e.g. Pet) or oneOf
|
170
|
+
klass = PulpcoreClient.const_get(type)
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
172
|
end
|
165
173
|
end
|
166
174
|
|
@@ -186,7 +194,7 @@ module PulpcoreClient
|
|
186
194
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
195
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
196
|
end
|
189
|
-
|
197
|
+
|
190
198
|
hash[param] = _to_hash(value)
|
191
199
|
end
|
192
200
|
hash
|
@@ -209,5 +217,7 @@ module PulpcoreClient
|
|
209
217
|
value
|
210
218
|
end
|
211
219
|
end
|
220
|
+
|
212
221
|
end
|
222
|
+
|
213
223
|
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
|
# The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
|
@@ -48,6 +49,11 @@ module PulpcoreClient
|
|
48
49
|
}
|
49
50
|
end
|
50
51
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
53
|
+
def self.acceptable_attributes
|
54
|
+
attribute_map.values
|
55
|
+
end
|
56
|
+
|
51
57
|
# Attribute type mapping.
|
52
58
|
def self.openapi_types
|
53
59
|
{
|
@@ -87,6 +93,8 @@ module PulpcoreClient
|
|
87
93
|
|
88
94
|
if attributes.key?(:'base_path')
|
89
95
|
self.base_path = attributes[:'base_path']
|
96
|
+
else
|
97
|
+
self.base_path = nil
|
90
98
|
end
|
91
99
|
|
92
100
|
if attributes.key?(:'content_guard')
|
@@ -107,6 +115,8 @@ module PulpcoreClient
|
|
107
115
|
|
108
116
|
if attributes.key?(:'name')
|
109
117
|
self.name = attributes[:'name']
|
118
|
+
else
|
119
|
+
self.name = nil
|
110
120
|
end
|
111
121
|
|
112
122
|
if attributes.key?(:'repository')
|
@@ -121,6 +131,7 @@ module PulpcoreClient
|
|
121
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
122
132
|
# @return Array for valid properties with the reasons
|
123
133
|
def list_invalid_properties
|
134
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
124
135
|
invalid_properties = Array.new
|
125
136
|
if @base_path.nil?
|
126
137
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
@@ -144,6 +155,7 @@ module PulpcoreClient
|
|
144
155
|
# Check to see if the all the properties in the model are valid
|
145
156
|
# @return true if the model is valid
|
146
157
|
def valid?
|
158
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
147
159
|
return false if @base_path.nil?
|
148
160
|
return false if @base_path.to_s.length < 1
|
149
161
|
return false if @name.nil?
|
@@ -209,37 +221,33 @@ module PulpcoreClient
|
|
209
221
|
# @param [Hash] attributes Model attributes in the form of hash
|
210
222
|
# @return [Object] Returns the model itself
|
211
223
|
def self.build_from_hash(attributes)
|
212
|
-
new.build_from_hash(attributes)
|
213
|
-
end
|
214
|
-
|
215
|
-
# Builds the object from hash
|
216
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
-
# @return [Object] Returns the model itself
|
218
|
-
def build_from_hash(attributes)
|
219
224
|
return nil unless attributes.is_a?(Hash)
|
220
|
-
|
221
|
-
|
225
|
+
attributes = attributes.transform_keys(&:to_sym)
|
226
|
+
transformed_hash = {}
|
227
|
+
openapi_types.each_pair do |key, type|
|
228
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
229
|
+
transformed_hash["#{key}"] = nil
|
230
|
+
elsif type =~ /\AArray<(.*)>/i
|
222
231
|
# check to ensure the input is an array given that the attribute
|
223
232
|
# is documented as an array but the input is not
|
224
|
-
if attributes[
|
225
|
-
|
233
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
234
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
226
235
|
end
|
227
|
-
elsif !attributes[
|
228
|
-
|
229
|
-
end
|
236
|
+
elsif !attributes[attribute_map[key]].nil?
|
237
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
238
|
+
end
|
230
239
|
end
|
231
|
-
|
232
|
-
self
|
240
|
+
new(transformed_hash)
|
233
241
|
end
|
234
242
|
|
235
243
|
# Deserializes the data based on type
|
236
244
|
# @param string type Data type
|
237
245
|
# @param string value Value to be deserialized
|
238
246
|
# @return [Object] Deserialized data
|
239
|
-
def _deserialize(type, value)
|
247
|
+
def self._deserialize(type, value)
|
240
248
|
case type.to_sym
|
241
|
-
when :
|
242
|
-
|
249
|
+
when :Time
|
250
|
+
Time.parse(value)
|
243
251
|
when :Date
|
244
252
|
Date.parse(value)
|
245
253
|
when :String
|
@@ -269,7 +277,9 @@ module PulpcoreClient
|
|
269
277
|
end
|
270
278
|
end
|
271
279
|
else # model
|
272
|
-
|
280
|
+
# models (e.g. Pet) or oneOf
|
281
|
+
klass = PulpcoreClient.const_get(type)
|
282
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
273
283
|
end
|
274
284
|
end
|
275
285
|
|
@@ -295,7 +305,7 @@ module PulpcoreClient
|
|
295
305
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
306
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
307
|
end
|
298
|
-
|
308
|
+
|
299
309
|
hash[param] = _to_hash(value)
|
300
310
|
end
|
301
311
|
hash
|
@@ -318,5 +328,7 @@ module PulpcoreClient
|
|
318
328
|
value
|
319
329
|
end
|
320
330
|
end
|
331
|
+
|
321
332
|
end
|
333
|
+
|
322
334
|
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
|
# The Serializer for the Distribution model. The serializer deliberately omits the `publication` and `repository_version` field due to plugins typically requiring one or the other but not both. To include the ``publication`` field, it is recommended plugins define the field:: publication = DetailRelatedField( required=False, help_text=_(\"Publication to be served\"), view_name_pattern=r\"publications(-.*/.*)?-detail\", queryset=models.Publication.objects.exclude(complete=False), allow_null=True, ) To include the ``repository_version`` field, it is recommended plugins define the field:: repository_version = RepositoryVersionRelatedField( required=False, help_text=_(\"RepositoryVersion to be served\"), allow_null=True ) Additionally, the serializer omits the ``remote`` field, which is used for pull-through caching feature and only by plugins which use publications. Plugins implementing a pull-through caching should define the field in their derived serializer class like this:: remote = DetailRelatedField( required=False, help_text=_('Remote that can be used to fetch content when using pull-through caching.'), queryset=models.Remote.objects.all(), allow_null=True )
|
@@ -71,13 +72,18 @@ module PulpcoreClient
|
|
71
72
|
}
|
72
73
|
end
|
73
74
|
|
75
|
+
# Returns all the JSON keys this model knows about
|
76
|
+
def self.acceptable_attributes
|
77
|
+
attribute_map.values
|
78
|
+
end
|
79
|
+
|
74
80
|
# Attribute type mapping.
|
75
81
|
def self.openapi_types
|
76
82
|
{
|
77
83
|
:'pulp_href' => :'String',
|
78
84
|
:'prn' => :'String',
|
79
|
-
:'pulp_created' => :'
|
80
|
-
:'pulp_last_updated' => :'
|
85
|
+
:'pulp_created' => :'Time',
|
86
|
+
:'pulp_last_updated' => :'Time',
|
81
87
|
:'base_path' => :'String',
|
82
88
|
:'base_url' => :'String',
|
83
89
|
:'content_guard' => :'String',
|
@@ -132,6 +138,8 @@ module PulpcoreClient
|
|
132
138
|
|
133
139
|
if attributes.key?(:'base_path')
|
134
140
|
self.base_path = attributes[:'base_path']
|
141
|
+
else
|
142
|
+
self.base_path = nil
|
135
143
|
end
|
136
144
|
|
137
145
|
if attributes.key?(:'base_url')
|
@@ -160,6 +168,8 @@ module PulpcoreClient
|
|
160
168
|
|
161
169
|
if attributes.key?(:'name')
|
162
170
|
self.name = attributes[:'name']
|
171
|
+
else
|
172
|
+
self.name = nil
|
163
173
|
end
|
164
174
|
|
165
175
|
if attributes.key?(:'repository')
|
@@ -174,6 +184,7 @@ module PulpcoreClient
|
|
174
184
|
# Show invalid properties with the reasons. Usually used together with valid?
|
175
185
|
# @return Array for valid properties with the reasons
|
176
186
|
def list_invalid_properties
|
187
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
177
188
|
invalid_properties = Array.new
|
178
189
|
if @base_path.nil?
|
179
190
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
@@ -189,6 +200,7 @@ module PulpcoreClient
|
|
189
200
|
# Check to see if the all the properties in the model are valid
|
190
201
|
# @return true if the model is valid
|
191
202
|
def valid?
|
203
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
192
204
|
return false if @base_path.nil?
|
193
205
|
return false if @name.nil?
|
194
206
|
true
|
@@ -230,37 +242,33 @@ module PulpcoreClient
|
|
230
242
|
# @param [Hash] attributes Model attributes in the form of hash
|
231
243
|
# @return [Object] Returns the model itself
|
232
244
|
def self.build_from_hash(attributes)
|
233
|
-
new.build_from_hash(attributes)
|
234
|
-
end
|
235
|
-
|
236
|
-
# Builds the object from hash
|
237
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
238
|
-
# @return [Object] Returns the model itself
|
239
|
-
def build_from_hash(attributes)
|
240
245
|
return nil unless attributes.is_a?(Hash)
|
241
|
-
|
242
|
-
|
246
|
+
attributes = attributes.transform_keys(&:to_sym)
|
247
|
+
transformed_hash = {}
|
248
|
+
openapi_types.each_pair do |key, type|
|
249
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
250
|
+
transformed_hash["#{key}"] = nil
|
251
|
+
elsif type =~ /\AArray<(.*)>/i
|
243
252
|
# check to ensure the input is an array given that the attribute
|
244
253
|
# is documented as an array but the input is not
|
245
|
-
if attributes[
|
246
|
-
|
254
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
255
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
247
256
|
end
|
248
|
-
elsif !attributes[
|
249
|
-
|
250
|
-
end
|
257
|
+
elsif !attributes[attribute_map[key]].nil?
|
258
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
259
|
+
end
|
251
260
|
end
|
252
|
-
|
253
|
-
self
|
261
|
+
new(transformed_hash)
|
254
262
|
end
|
255
263
|
|
256
264
|
# Deserializes the data based on type
|
257
265
|
# @param string type Data type
|
258
266
|
# @param string value Value to be deserialized
|
259
267
|
# @return [Object] Deserialized data
|
260
|
-
def _deserialize(type, value)
|
268
|
+
def self._deserialize(type, value)
|
261
269
|
case type.to_sym
|
262
|
-
when :
|
263
|
-
|
270
|
+
when :Time
|
271
|
+
Time.parse(value)
|
264
272
|
when :Date
|
265
273
|
Date.parse(value)
|
266
274
|
when :String
|
@@ -290,7 +298,9 @@ module PulpcoreClient
|
|
290
298
|
end
|
291
299
|
end
|
292
300
|
else # model
|
293
|
-
|
301
|
+
# models (e.g. Pet) or oneOf
|
302
|
+
klass = PulpcoreClient.const_get(type)
|
303
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
294
304
|
end
|
295
305
|
end
|
296
306
|
|
@@ -316,7 +326,7 @@ module PulpcoreClient
|
|
316
326
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
317
327
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
318
328
|
end
|
319
|
-
|
329
|
+
|
320
330
|
hash[param] = _to_hash(value)
|
321
331
|
end
|
322
332
|
hash
|
@@ -339,5 +349,7 @@ module PulpcoreClient
|
|
339
349
|
value
|
340
350
|
end
|
341
351
|
end
|
352
|
+
|
342
353
|
end
|
354
|
+
|
343
355
|
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.
|
@@ -40,6 +41,11 @@ module PulpcoreClient
|
|
40
41
|
}
|
41
42
|
end
|
42
43
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
45
|
+
def self.acceptable_attributes
|
46
|
+
attribute_map.values
|
47
|
+
end
|
48
|
+
|
43
49
|
# Attribute type mapping.
|
44
50
|
def self.openapi_types
|
45
51
|
{
|
@@ -83,6 +89,8 @@ module PulpcoreClient
|
|
83
89
|
|
84
90
|
if attributes.key?(:'name')
|
85
91
|
self.name = attributes[:'name']
|
92
|
+
else
|
93
|
+
self.name = nil
|
86
94
|
end
|
87
95
|
|
88
96
|
if attributes.key?(:'description')
|
@@ -101,6 +109,7 @@ module PulpcoreClient
|
|
101
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
110
|
# @return Array for valid properties with the reasons
|
103
111
|
def list_invalid_properties
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
104
113
|
invalid_properties = Array.new
|
105
114
|
if @name.nil?
|
106
115
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -124,6 +133,7 @@ module PulpcoreClient
|
|
124
133
|
# Check to see if the all the properties in the model are valid
|
125
134
|
# @return true if the model is valid
|
126
135
|
def valid?
|
136
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
127
137
|
return false if @name.nil?
|
128
138
|
return false if @name.to_s.length < 1
|
129
139
|
return false if !@description.nil? && @description.to_s.length < 1
|
@@ -193,37 +203,33 @@ module PulpcoreClient
|
|
193
203
|
# @param [Hash] attributes Model attributes in the form of hash
|
194
204
|
# @return [Object] Returns the model itself
|
195
205
|
def self.build_from_hash(attributes)
|
196
|
-
new.build_from_hash(attributes)
|
197
|
-
end
|
198
|
-
|
199
|
-
# Builds the object from hash
|
200
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
201
|
-
# @return [Object] Returns the model itself
|
202
|
-
def build_from_hash(attributes)
|
203
206
|
return nil unless attributes.is_a?(Hash)
|
204
|
-
|
205
|
-
|
207
|
+
attributes = attributes.transform_keys(&:to_sym)
|
208
|
+
transformed_hash = {}
|
209
|
+
openapi_types.each_pair do |key, type|
|
210
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
211
|
+
transformed_hash["#{key}"] = nil
|
212
|
+
elsif type =~ /\AArray<(.*)>/i
|
206
213
|
# check to ensure the input is an array given that the attribute
|
207
214
|
# is documented as an array but the input is not
|
208
|
-
if attributes[
|
209
|
-
|
215
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
216
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
210
217
|
end
|
211
|
-
elsif !attributes[
|
212
|
-
|
213
|
-
end
|
218
|
+
elsif !attributes[attribute_map[key]].nil?
|
219
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
220
|
+
end
|
214
221
|
end
|
215
|
-
|
216
|
-
self
|
222
|
+
new(transformed_hash)
|
217
223
|
end
|
218
224
|
|
219
225
|
# Deserializes the data based on type
|
220
226
|
# @param string type Data type
|
221
227
|
# @param string value Value to be deserialized
|
222
228
|
# @return [Object] Deserialized data
|
223
|
-
def _deserialize(type, value)
|
229
|
+
def self._deserialize(type, value)
|
224
230
|
case type.to_sym
|
225
|
-
when :
|
226
|
-
|
231
|
+
when :Time
|
232
|
+
Time.parse(value)
|
227
233
|
when :Date
|
228
234
|
Date.parse(value)
|
229
235
|
when :String
|
@@ -253,7 +259,9 @@ module PulpcoreClient
|
|
253
259
|
end
|
254
260
|
end
|
255
261
|
else # model
|
256
|
-
|
262
|
+
# models (e.g. Pet) or oneOf
|
263
|
+
klass = PulpcoreClient.const_get(type)
|
264
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
257
265
|
end
|
258
266
|
end
|
259
267
|
|
@@ -279,7 +287,7 @@ module PulpcoreClient
|
|
279
287
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
280
288
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
281
289
|
end
|
282
|
-
|
290
|
+
|
283
291
|
hash[param] = _to_hash(value)
|
284
292
|
end
|
285
293
|
hash
|
@@ -302,5 +310,7 @@ module PulpcoreClient
|
|
302
310
|
value
|
303
311
|
end
|
304
312
|
end
|
313
|
+
|
305
314
|
end
|
315
|
+
|
306
316
|
end
|