From 9ec9823718e2d56060392baa95afe6ac0c5b8f77 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Mon, 24 Nov 2025 19:55:23 +0300 Subject: [PATCH] Removed deprecated package and updated urllib3 in API clients --- README.md | 5 - qase-api-client/pyproject.toml | 2 +- qase-api-client/requirements.txt | 2 +- qase-api-v2-client/pyproject.toml | 2 +- qase-api-v2-client/requirements.txt | 3 +- qaseio/.openapi-generator-ignore | 23 - qaseio/.openapi-generator/FILES | 511 ---- qaseio/.openapi-generator/VERSION | 1 - qaseio/LICENSE.txt | 201 -- qaseio/README.md | 338 --- qaseio/docs/Attachment.md | 32 - qaseio/docs/AttachmentGet.md | 34 - qaseio/docs/AttachmentHash.md | 33 - qaseio/docs/AttachmentListResponse.md | 30 - .../docs/AttachmentListResponseAllOfResult.md | 32 - qaseio/docs/AttachmentResponse.md | 30 - qaseio/docs/AttachmentUploadsResponse.md | 30 - qaseio/docs/AttachmentsApi.md | 362 --- qaseio/docs/Attachmentupload.md | 34 - qaseio/docs/Author.md | 33 - qaseio/docs/AuthorListResponse.md | 30 - qaseio/docs/AuthorListResponseAllOfResult.md | 32 - qaseio/docs/AuthorResponse.md | 30 - qaseio/docs/AuthorsApi.md | 188 -- qaseio/docs/BaseResponse.md | 29 - qaseio/docs/Bulk200Response.md | 30 - qaseio/docs/Bulk200ResponseAllOfResult.md | 29 - qaseio/docs/CasesApi.md | 756 ----- qaseio/docs/Configuration.md | 30 - qaseio/docs/ConfigurationCreate.md | 30 - qaseio/docs/ConfigurationGroup.md | 31 - qaseio/docs/ConfigurationGroupCreate.md | 29 - qaseio/docs/ConfigurationListResponse.md | 30 - .../ConfigurationListResponseAllOfResult.md | 32 - qaseio/docs/ConfigurationsApi.md | 277 -- qaseio/docs/CustomField.md | 44 - qaseio/docs/CustomFieldCreate.md | 39 - qaseio/docs/CustomFieldCreateValueInner.md | 30 - qaseio/docs/CustomFieldListResponse.md | 30 - qaseio/docs/CustomFieldResponse.md | 30 - qaseio/docs/CustomFieldUpdate.md | 38 - qaseio/docs/CustomFieldValue.md | 30 - qaseio/docs/CustomFieldsApi.md | 453 --- qaseio/docs/CustomFieldsResponse.md | 30 - .../docs/CustomFieldsResponseAllOfResult.md | 32 - qaseio/docs/Defect.md | 45 - qaseio/docs/DefectCreate.md | 35 - qaseio/docs/DefectListResponse.md | 30 - qaseio/docs/DefectListResponseAllOfResult.md | 32 - qaseio/docs/DefectQuery.md | 43 - qaseio/docs/DefectResponse.md | 30 - qaseio/docs/DefectStatus.md | 29 - qaseio/docs/DefectUpdate.md | 35 - qaseio/docs/DefectsApi.md | 646 ---- qaseio/docs/Environment.md | 33 - qaseio/docs/EnvironmentCreate.md | 32 - qaseio/docs/EnvironmentListResponse.md | 30 - .../EnvironmentListResponseAllOfResult.md | 32 - qaseio/docs/EnvironmentResponse.md | 30 - qaseio/docs/EnvironmentUpdate.md | 32 - qaseio/docs/EnvironmentsApi.md | 460 --- qaseio/docs/ExternalIssue.md | 30 - qaseio/docs/ExternalIssueIssuesInner.md | 30 - qaseio/docs/HashResponse.md | 30 - qaseio/docs/HashResponseAllOfResult.md | 29 - qaseio/docs/IdResponse.md | 30 - qaseio/docs/IdResponseAllOfResult.md | 29 - qaseio/docs/Milestone.md | 37 - qaseio/docs/MilestoneCreate.md | 32 - qaseio/docs/MilestoneListResponse.md | 30 - .../docs/MilestoneListResponseAllOfResult.md | 32 - qaseio/docs/MilestoneResponse.md | 30 - qaseio/docs/MilestoneUpdate.md | 31 - qaseio/docs/MilestonesApi.md | 463 --- qaseio/docs/Plan.md | 36 - qaseio/docs/PlanCreate.md | 31 - qaseio/docs/PlanDetailed.md | 38 - qaseio/docs/PlanDetailedAllOfCases.md | 30 - qaseio/docs/PlanListResponse.md | 30 - qaseio/docs/PlanListResponseAllOfResult.md | 32 - qaseio/docs/PlanQuery.md | 34 - qaseio/docs/PlanResponse.md | 30 - qaseio/docs/PlanUpdate.md | 31 - qaseio/docs/PlansApi.md | 461 --- qaseio/docs/Project.md | 31 - qaseio/docs/ProjectAccess.md | 29 - qaseio/docs/ProjectCodeResponse.md | 30 - qaseio/docs/ProjectCodeResponseAllOfResult.md | 29 - qaseio/docs/ProjectCounts.md | 33 - qaseio/docs/ProjectCountsDefects.md | 30 - qaseio/docs/ProjectCountsRuns.md | 30 - qaseio/docs/ProjectCreate.md | 33 - qaseio/docs/ProjectListResponse.md | 30 - qaseio/docs/ProjectListResponseAllOfResult.md | 32 - qaseio/docs/ProjectResponse.md | 30 - qaseio/docs/ProjectsApi.md | 540 ---- qaseio/docs/QqlDefect.md | 43 - qaseio/docs/QqlPlan.md | 34 - qaseio/docs/QqlTestCase.md | 54 - qaseio/docs/Requirement.md | 37 - qaseio/docs/Response.md | 29 - qaseio/docs/Result.md | 39 - qaseio/docs/ResultCreate.md | 41 - qaseio/docs/ResultCreateBulk.md | 29 - qaseio/docs/ResultCreateCase.md | 37 - qaseio/docs/ResultCreateResponse.md | 30 - .../docs/ResultCreateResponseAllOfResult.md | 30 - qaseio/docs/ResultListResponse.md | 30 - qaseio/docs/ResultListResponseAllOfResult.md | 32 - qaseio/docs/ResultResponse.md | 30 - qaseio/docs/ResultUpdate.md | 35 - qaseio/docs/ResultsApi.md | 575 ---- qaseio/docs/Run.md | 43 - qaseio/docs/RunCreate.md | 42 - qaseio/docs/RunEnvironment.md | 32 - qaseio/docs/RunListResponse.md | 30 - qaseio/docs/RunListResponseAllOfResult.md | 32 - qaseio/docs/RunMilestone.md | 30 - qaseio/docs/RunPublic.md | 29 - qaseio/docs/RunPublicResponse.md | 30 - qaseio/docs/RunPublicResponseAllOfResult.md | 29 - qaseio/docs/RunResponse.md | 30 - qaseio/docs/RunStats.md | 37 - qaseio/docs/RunsApi.md | 566 ---- qaseio/docs/SearchApi.md | 98 - qaseio/docs/SearchResponse.md | 30 - qaseio/docs/SearchResponseAllOfResult.md | 30 - .../docs/SearchResponseAllOfResultEntities.md | 75 - qaseio/docs/SharedStep.md | 40 - qaseio/docs/SharedStepContent.md | 33 - qaseio/docs/SharedStepContentCreate.md | 33 - qaseio/docs/SharedStepCreate.md | 33 - qaseio/docs/SharedStepListResponse.md | 30 - .../docs/SharedStepListResponseAllOfResult.md | 32 - qaseio/docs/SharedStepResponse.md | 30 - qaseio/docs/SharedStepUpdate.md | 33 - qaseio/docs/SharedStepsApi.md | 462 --- qaseio/docs/Suite.md | 39 - qaseio/docs/SuiteCreate.md | 32 - qaseio/docs/SuiteDelete.md | 29 - qaseio/docs/SuiteListResponse.md | 30 - qaseio/docs/SuiteListResponseAllOfResult.md | 32 - qaseio/docs/SuiteResponse.md | 30 - qaseio/docs/SuiteUpdate.md | 32 - qaseio/docs/SuitesApi.md | 466 --- qaseio/docs/SystemField.md | 35 - qaseio/docs/SystemFieldListResponse.md | 30 - qaseio/docs/SystemFieldOption.md | 35 - qaseio/docs/SystemFieldsApi.md | 90 - qaseio/docs/TagValue.md | 30 - qaseio/docs/TestCase.md | 58 - qaseio/docs/TestCaseCreate.md | 50 - qaseio/docs/TestCaseExternalIssues.md | 30 - .../docs/TestCaseExternalIssuesLinksInner.md | 30 - qaseio/docs/TestCaseListResponse.md | 30 - .../docs/TestCaseListResponseAllOfResult.md | 32 - qaseio/docs/TestCaseParams.md | 28 - qaseio/docs/TestCaseQuery.md | 54 - qaseio/docs/TestCaseResponse.md | 30 - qaseio/docs/TestCaseUpdate.md | 47 - qaseio/docs/TestCasebulk.md | 29 - qaseio/docs/TestCasebulkCasesInner.md | 51 - qaseio/docs/TestStep.md | 37 - qaseio/docs/TestStepCreate.md | 34 - qaseio/docs/TestStepResult.md | 32 - qaseio/docs/TestStepResultCreate.md | 36 - qaseio/pyproject.toml | 89 - qaseio/requirements.txt | 5 - qaseio/src/qaseio/__init__.py | 191 -- qaseio/src/qaseio/api/__init__.py | 20 - qaseio/src/qaseio/api/attachments_api.py | 1199 -------- qaseio/src/qaseio/api/authors_api.py | 650 ---- qaseio/src/qaseio/api/cases_api.py | 2681 ----------------- qaseio/src/qaseio/api/configurations_api.py | 930 ------ qaseio/src/qaseio/api/custom_fields_api.py | 1514 ---------- qaseio/src/qaseio/api/defects_api.py | 2189 -------------- qaseio/src/qaseio/api/environments_api.py | 1557 ---------- qaseio/src/qaseio/api/milestones_api.py | 1577 ---------- qaseio/src/qaseio/api/plans_api.py | 1560 ---------- qaseio/src/qaseio/api/projects_api.py | 1782 ----------- qaseio/src/qaseio/api/results_api.py | 2049 ------------- qaseio/src/qaseio/api/runs_api.py | 1986 ------------ qaseio/src/qaseio/api/search_api.py | 354 --- qaseio/src/qaseio/api/shared_steps_api.py | 1574 ---------- qaseio/src/qaseio/api/suites_api.py | 1606 ---------- qaseio/src/qaseio/api/system_fields_api.py | 299 -- qaseio/src/qaseio/api_client.py | 738 ----- qaseio/src/qaseio/api_response.py | 21 - qaseio/src/qaseio/configuration.py | 464 --- qaseio/src/qaseio/exceptions.py | 201 -- qaseio/src/qaseio/models/__init__.py | 159 - qaseio/src/qaseio/models/attachment.py | 95 - qaseio/src/qaseio/models/attachment_get.py | 101 - qaseio/src/qaseio/models/attachment_hash.py | 97 - .../qaseio/models/attachment_list_response.py | 95 - .../attachment_list_response_all_of_result.py | 103 - .../src/qaseio/models/attachment_response.py | 95 - .../models/attachment_uploads_response.py | 99 - qaseio/src/qaseio/models/attachmentupload.py | 99 - qaseio/src/qaseio/models/author.py | 97 - .../src/qaseio/models/author_list_response.py | 95 - .../author_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/author_response.py | 95 - qaseio/src/qaseio/models/base_response.py | 89 - qaseio/src/qaseio/models/bulk200_response.py | 95 - .../models/bulk200_response_all_of_result.py | 89 - qaseio/src/qaseio/models/configuration.py | 91 - .../src/qaseio/models/configuration_create.py | 93 - .../src/qaseio/models/configuration_group.py | 101 - .../models/configuration_group_create.py | 91 - .../models/configuration_list_response.py | 95 - ...nfiguration_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/custom_field.py | 140 - .../src/qaseio/models/custom_field_create.py | 134 - .../models/custom_field_create_value_inner.py | 93 - .../models/custom_field_list_response.py | 95 - .../qaseio/models/custom_field_response.py | 95 - .../src/qaseio/models/custom_field_update.py | 137 - .../src/qaseio/models/custom_field_value.py | 91 - .../qaseio/models/custom_fields_response.py | 95 - .../custom_fields_response_all_of_result.py | 103 - qaseio/src/qaseio/models/defect.py | 156 - qaseio/src/qaseio/models/defect_create.py | 107 - .../src/qaseio/models/defect_list_response.py | 95 - .../defect_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/defect_query.py | 152 - qaseio/src/qaseio/models/defect_response.py | 95 - qaseio/src/qaseio/models/defect_status.py | 96 - qaseio/src/qaseio/models/defect_update.py | 107 - qaseio/src/qaseio/models/environment.py | 107 - .../src/qaseio/models/environment_create.py | 97 - .../models/environment_list_response.py | 95 - ...environment_list_response_all_of_result.py | 103 - .../src/qaseio/models/environment_response.py | 95 - .../src/qaseio/models/environment_update.py | 97 - qaseio/src/qaseio/models/external_issue.py | 99 - .../models/external_issue_issues_inner.py | 91 - qaseio/src/qaseio/models/hash_response.py | 95 - .../models/hash_response_all_of_result.py | 89 - qaseio/src/qaseio/models/id_response.py | 95 - .../models/id_response_all_of_result.py | 89 - qaseio/src/qaseio/models/milestone.py | 131 - qaseio/src/qaseio/models/milestone_create.py | 107 - .../qaseio/models/milestone_list_response.py | 95 - .../milestone_list_response_all_of_result.py | 103 - .../src/qaseio/models/milestone_response.py | 95 - qaseio/src/qaseio/models/milestone_update.py | 103 - qaseio/src/qaseio/models/plan.py | 109 - qaseio/src/qaseio/models/plan_create.py | 100 - qaseio/src/qaseio/models/plan_detailed.py | 121 - .../models/plan_detailed_all_of_cases.py | 96 - .../src/qaseio/models/plan_list_response.py | 95 - .../plan_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/plan_query.py | 104 - qaseio/src/qaseio/models/plan_response.py | 95 - qaseio/src/qaseio/models/plan_update.py | 100 - qaseio/src/qaseio/models/project.py | 97 - qaseio/src/qaseio/models/project_access.py | 90 - .../qaseio/models/project_code_response.py | 95 - .../project_code_response_all_of_result.py | 89 - qaseio/src/qaseio/models/project_counts.py | 105 - .../qaseio/models/project_counts_defects.py | 91 - .../src/qaseio/models/project_counts_runs.py | 91 - qaseio/src/qaseio/models/project_create.py | 118 - .../qaseio/models/project_list_response.py | 95 - .../project_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/project_response.py | 95 - qaseio/src/qaseio/models/qql_defect.py | 152 - qaseio/src/qaseio/models/qql_plan.py | 104 - qaseio/src/qaseio/models/qql_test_case.py | 206 -- qaseio/src/qaseio/models/requirement.py | 140 - qaseio/src/qaseio/models/response.py | 89 - qaseio/src/qaseio/models/result.py | 145 - qaseio/src/qaseio/models/result_create.py | 177 -- .../src/qaseio/models/result_create_bulk.py | 99 - .../src/qaseio/models/result_create_case.py | 124 - .../qaseio/models/result_create_response.py | 95 - .../result_create_response_all_of_result.py | 91 - .../src/qaseio/models/result_list_response.py | 95 - .../result_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/result_response.py | 95 - qaseio/src/qaseio/models/result_update.py | 151 - qaseio/src/qaseio/models/resultcreate_bulk.py | 99 - qaseio/src/qaseio/models/run.py | 171 -- qaseio/src/qaseio/models/run_create.py | 117 - qaseio/src/qaseio/models/run_environment.py | 95 - qaseio/src/qaseio/models/run_list_response.py | 95 - .../models/run_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/run_milestone.py | 91 - qaseio/src/qaseio/models/run_public.py | 89 - .../src/qaseio/models/run_public_response.py | 95 - .../run_public_response_all_of_result.py | 89 - qaseio/src/qaseio/models/run_response.py | 95 - qaseio/src/qaseio/models/run_stats.py | 105 - qaseio/src/qaseio/models/search_response.py | 95 - .../models/search_response_all_of_result.py | 99 - .../search_response_all_of_result_entities.py | 203 -- qaseio/src/qaseio/models/shared_step.py | 120 - .../src/qaseio/models/shared_step_content.py | 105 - .../models/shared_step_content_create.py | 98 - .../src/qaseio/models/shared_step_create.py | 107 - .../models/shared_step_list_response.py | 95 - ...shared_step_list_response_all_of_result.py | 103 - .../src/qaseio/models/shared_step_response.py | 95 - .../src/qaseio/models/shared_step_update.py | 107 - qaseio/src/qaseio/models/suite.py | 130 - qaseio/src/qaseio/models/suite_create.py | 101 - qaseio/src/qaseio/models/suite_delete.py | 90 - .../src/qaseio/models/suite_list_response.py | 95 - .../suite_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/suite_response.py | 95 - qaseio/src/qaseio/models/suite_update.py | 101 - qaseio/src/qaseio/models/system_field.py | 119 - .../models/system_field_list_response.py | 99 - .../src/qaseio/models/system_field_option.py | 111 - qaseio/src/qaseio/models/tag_value.py | 91 - qaseio/src/qaseio/models/test_case.py | 227 -- qaseio/src/qaseio/models/test_case_create.py | 146 - .../models/test_case_external_issues.py | 106 - .../test_case_external_issues_links_inner.py | 91 - .../qaseio/models/test_case_list_response.py | 95 - .../test_case_list_response_all_of_result.py | 103 - qaseio/src/qaseio/models/test_case_params.py | 146 - qaseio/src/qaseio/models/test_case_query.py | 206 -- .../src/qaseio/models/test_case_response.py | 95 - qaseio/src/qaseio/models/test_case_update.py | 140 - qaseio/src/qaseio/models/test_casebulk.py | 97 - .../models/test_casebulk_cases_inner.py | 153 - .../qaseio/models/test_caseexternal_issues.py | 106 - qaseio/src/qaseio/models/test_step.py | 134 - qaseio/src/qaseio/models/test_step_create.py | 100 - qaseio/src/qaseio/models/test_step_result.py | 104 - .../qaseio/models/test_step_result_create.py | 131 - qaseio/src/qaseio/py.typed | 0 qaseio/src/qaseio/rest.py | 268 -- qaseio/test-requirements.txt | 3 - qaseio/tests/tests_qaseio/test_attachment.py | 56 - .../tests/tests_qaseio/test_attachment_get.py | 58 - .../tests_qaseio/test_attachment_hash.py | 57 - .../test_attachment_list_response.py | 67 - ..._attachment_list_response_all_of_result.py | 65 - .../tests_qaseio/test_attachment_response.py | 61 - .../test_attachment_uploads_response.py | 62 - .../tests_qaseio/test_attachments_api.py | 60 - .../tests_qaseio/test_attachmentupload.py | 58 - qaseio/tests/tests_qaseio/test_author.py | 57 - .../tests_qaseio/test_author_list_response.py | 65 - ...test_author_list_response_all_of_result.py | 63 - .../tests_qaseio/test_author_response.py | 59 - qaseio/tests/tests_qaseio/test_authors_api.py | 46 - .../tests/tests_qaseio/test_base_response.py | 53 - .../tests_qaseio/test_bulk200_response.py | 57 - .../test_bulk200_response_all_of_result.py | 55 - qaseio/tests/tests_qaseio/test_cases_api.py | 88 - .../tests/tests_qaseio/test_configuration.py | 54 - .../tests_qaseio/test_configuration_create.py | 56 - .../tests_qaseio/test_configuration_group.py | 59 - .../test_configuration_group_create.py | 54 - .../test_configuration_list_response.py | 67 - ...nfiguration_list_response_all_of_result.py | 65 - .../tests_qaseio/test_configurations_api.py | 53 - .../tests/tests_qaseio/test_custom_field.py | 70 - .../tests_qaseio/test_custom_field_create.py | 72 - .../test_custom_field_create_value_inner.py | 54 - .../test_custom_field_list_response.py | 78 - .../test_custom_field_response.py | 72 - .../tests_qaseio/test_custom_field_update.py | 71 - .../tests_qaseio/test_custom_field_value.py | 54 - .../tests_qaseio/test_custom_fields_api.py | 67 - .../test_custom_fields_response.py | 78 - ...st_custom_fields_response_all_of_result.py | 76 - qaseio/tests/tests_qaseio/test_defect.py | 83 - .../tests/tests_qaseio/test_defect_create.py | 68 - .../tests_qaseio/test_defect_list_response.py | 91 - ...test_defect_list_response_all_of_result.py | 89 - .../tests/tests_qaseio/test_defect_query.py | 81 - .../tests_qaseio/test_defect_response.py | 85 - .../tests/tests_qaseio/test_defect_status.py | 54 - .../tests/tests_qaseio/test_defect_update.py | 65 - qaseio/tests/tests_qaseio/test_defects_api.py | 81 - qaseio/tests/tests_qaseio/test_environment.py | 57 - .../tests_qaseio/test_environment_create.py | 58 - .../test_environment_list_response.py | 65 - ...environment_list_response_all_of_result.py | 63 - .../tests_qaseio/test_environment_response.py | 59 - .../tests_qaseio/test_environment_update.py | 56 - .../tests_qaseio/test_environments_api.py | 67 - .../tests/tests_qaseio/test_external_issue.py | 58 - .../test_external_issue_issues_inner.py | 54 - .../tests/tests_qaseio/test_hash_response.py | 55 - .../test_hash_response_all_of_result.py | 53 - qaseio/tests/tests_qaseio/test_id_response.py | 55 - .../test_id_response_all_of_result.py | 53 - qaseio/tests/tests_qaseio/test_milestone.py | 61 - .../tests_qaseio/test_milestone_create.py | 57 - .../test_milestone_list_response.py | 69 - ...t_milestone_list_response_all_of_result.py | 67 - .../tests_qaseio/test_milestone_response.py | 63 - .../tests_qaseio/test_milestone_update.py | 55 - .../tests/tests_qaseio/test_milestones_api.py | 67 - qaseio/tests/tests_qaseio/test_plan.py | 60 - qaseio/tests/tests_qaseio/test_plan_create.py | 61 - .../tests/tests_qaseio/test_plan_detailed.py | 66 - .../test_plan_detailed_all_of_cases.py | 54 - .../tests_qaseio/test_plan_list_response.py | 68 - .../test_plan_list_response_all_of_result.py | 66 - qaseio/tests/tests_qaseio/test_plan_query.py | 58 - .../tests/tests_qaseio/test_plan_response.py | 54 - qaseio/tests/tests_qaseio/test_plan_update.py | 57 - qaseio/tests/tests_qaseio/test_plans_api.py | 67 - qaseio/tests/tests_qaseio/test_project.py | 64 - .../tests/tests_qaseio/test_project_access.py | 53 - .../test_project_code_response.py | 55 - ...est_project_code_response_all_of_result.py | 53 - .../tests/tests_qaseio/test_project_counts.py | 61 - .../test_project_counts_defects.py | 54 - .../tests_qaseio/test_project_counts_runs.py | 54 - .../tests/tests_qaseio/test_project_create.py | 59 - .../test_project_list_response.py | 72 - ...est_project_list_response_all_of_result.py | 70 - .../tests_qaseio/test_project_response.py | 66 - .../tests/tests_qaseio/test_projects_api.py | 74 - qaseio/tests/tests_qaseio/test_qql_defect.py | 81 - qaseio/tests/tests_qaseio/test_qql_plan.py | 58 - .../tests/tests_qaseio/test_qql_test_case.py | 111 - qaseio/tests/tests_qaseio/test_requirement.py | 61 - qaseio/tests/tests_qaseio/test_response.py | 53 - qaseio/tests/tests_qaseio/test_result.py | 83 - .../tests/tests_qaseio/test_result_create.py | 92 - .../tests_qaseio/test_result_create_bulk.py | 124 - .../tests_qaseio/test_result_create_case.py | 60 - .../test_result_create_response.py | 56 - ...st_result_create_response_all_of_result.py | 54 - .../tests_qaseio/test_result_list_response.py | 88 - ...test_result_list_response_all_of_result.py | 86 - .../tests_qaseio/test_result_response.py | 82 - .../tests/tests_qaseio/test_result_update.py | 75 - .../tests_qaseio/test_resultcreate_bulk.py | 124 - qaseio/tests/tests_qaseio/test_results_api.py | 74 - qaseio/tests/tests_qaseio/test_run.py | 92 - qaseio/tests/tests_qaseio/test_run_create.py | 75 - .../tests_qaseio/test_run_environment.py | 56 - .../tests_qaseio/test_run_list_response.py | 100 - .../test_run_list_response_all_of_result.py | 98 - .../tests/tests_qaseio/test_run_milestone.py | 54 - qaseio/tests/tests_qaseio/test_run_public.py | 54 - .../tests_qaseio/test_run_public_response.py | 55 - .../test_run_public_response_all_of_result.py | 53 - .../tests/tests_qaseio/test_run_response.py | 94 - qaseio/tests/tests_qaseio/test_run_stats.py | 61 - qaseio/tests/tests_qaseio/test_runs_api.py | 74 - qaseio/tests/tests_qaseio/test_search_api.py | 39 - .../tests_qaseio/test_search_response.py | 58 - .../test_search_response_all_of_result.py | 60 - ..._search_response_all_of_result_entities.py | 146 - qaseio/tests/tests_qaseio/test_shared_step.py | 80 - .../tests_qaseio/test_shared_step_content.py | 64 - .../test_shared_step_content_create.py | 60 - .../tests_qaseio/test_shared_step_create.py | 67 - .../test_shared_step_list_response.py | 88 - ...shared_step_list_response_all_of_result.py | 86 - .../tests_qaseio/test_shared_step_response.py | 82 - .../tests_qaseio/test_shared_step_update.py | 67 - .../tests_qaseio/test_shared_steps_api.py | 67 - qaseio/tests/tests_qaseio/test_suite.py | 63 - .../tests/tests_qaseio/test_suite_create.py | 57 - .../tests/tests_qaseio/test_suite_delete.py | 53 - .../tests_qaseio/test_suite_list_response.py | 71 - .../test_suite_list_response_all_of_result.py | 69 - .../tests/tests_qaseio/test_suite_response.py | 65 - .../tests/tests_qaseio/test_suite_update.py | 56 - qaseio/tests/tests_qaseio/test_suites_api.py | 67 - .../tests/tests_qaseio/test_system_field.py | 68 - .../test_system_field_list_response.py | 72 - .../tests_qaseio/test_system_field_option.py | 59 - .../tests_qaseio/test_system_fields_api.py | 39 - qaseio/tests/tests_qaseio/test_tag_value.py | 54 - qaseio/tests/tests_qaseio/test_test_case.py | 123 - .../tests_qaseio/test_test_case_create.py | 97 - .../test_test_case_external_issues.py | 68 - ...t_test_case_external_issues_links_inner.py | 60 - .../test_test_case_list_response.py | 121 - ...t_test_case_list_response_all_of_result.py | 119 - .../tests_qaseio/test_test_case_params.py | 52 - .../tests_qaseio/test_test_case_query.py | 111 - .../tests_qaseio/test_test_case_response.py | 115 - .../tests_qaseio/test_test_case_update.py | 93 - .../tests/tests_qaseio/test_test_casebulk.py | 58 - .../test_test_casebulk_cases_inner.py | 95 - .../test_test_caseexternal_issues.py | 68 - qaseio/tests/tests_qaseio/test_test_step.py | 69 - .../tests_qaseio/test_test_step_create.py | 62 - .../tests_qaseio/test_test_step_result.py | 64 - .../test_test_step_result_create.py | 65 - qaseio/tox.ini | 9 - 495 files changed, 5 insertions(+), 64488 deletions(-) delete mode 100644 qaseio/.openapi-generator-ignore delete mode 100644 qaseio/.openapi-generator/FILES delete mode 100644 qaseio/.openapi-generator/VERSION delete mode 100644 qaseio/LICENSE.txt delete mode 100644 qaseio/README.md delete mode 100644 qaseio/docs/Attachment.md delete mode 100644 qaseio/docs/AttachmentGet.md delete mode 100644 qaseio/docs/AttachmentHash.md delete mode 100644 qaseio/docs/AttachmentListResponse.md delete mode 100644 qaseio/docs/AttachmentListResponseAllOfResult.md delete mode 100644 qaseio/docs/AttachmentResponse.md delete mode 100644 qaseio/docs/AttachmentUploadsResponse.md delete mode 100644 qaseio/docs/AttachmentsApi.md delete mode 100644 qaseio/docs/Attachmentupload.md delete mode 100644 qaseio/docs/Author.md delete mode 100644 qaseio/docs/AuthorListResponse.md delete mode 100644 qaseio/docs/AuthorListResponseAllOfResult.md delete mode 100644 qaseio/docs/AuthorResponse.md delete mode 100644 qaseio/docs/AuthorsApi.md delete mode 100644 qaseio/docs/BaseResponse.md delete mode 100644 qaseio/docs/Bulk200Response.md delete mode 100644 qaseio/docs/Bulk200ResponseAllOfResult.md delete mode 100644 qaseio/docs/CasesApi.md delete mode 100644 qaseio/docs/Configuration.md delete mode 100644 qaseio/docs/ConfigurationCreate.md delete mode 100644 qaseio/docs/ConfigurationGroup.md delete mode 100644 qaseio/docs/ConfigurationGroupCreate.md delete mode 100644 qaseio/docs/ConfigurationListResponse.md delete mode 100644 qaseio/docs/ConfigurationListResponseAllOfResult.md delete mode 100644 qaseio/docs/ConfigurationsApi.md delete mode 100644 qaseio/docs/CustomField.md delete mode 100644 qaseio/docs/CustomFieldCreate.md delete mode 100644 qaseio/docs/CustomFieldCreateValueInner.md delete mode 100644 qaseio/docs/CustomFieldListResponse.md delete mode 100644 qaseio/docs/CustomFieldResponse.md delete mode 100644 qaseio/docs/CustomFieldUpdate.md delete mode 100644 qaseio/docs/CustomFieldValue.md delete mode 100644 qaseio/docs/CustomFieldsApi.md delete mode 100644 qaseio/docs/CustomFieldsResponse.md delete mode 100644 qaseio/docs/CustomFieldsResponseAllOfResult.md delete mode 100644 qaseio/docs/Defect.md delete mode 100644 qaseio/docs/DefectCreate.md delete mode 100644 qaseio/docs/DefectListResponse.md delete mode 100644 qaseio/docs/DefectListResponseAllOfResult.md delete mode 100644 qaseio/docs/DefectQuery.md delete mode 100644 qaseio/docs/DefectResponse.md delete mode 100644 qaseio/docs/DefectStatus.md delete mode 100644 qaseio/docs/DefectUpdate.md delete mode 100644 qaseio/docs/DefectsApi.md delete mode 100644 qaseio/docs/Environment.md delete mode 100644 qaseio/docs/EnvironmentCreate.md delete mode 100644 qaseio/docs/EnvironmentListResponse.md delete mode 100644 qaseio/docs/EnvironmentListResponseAllOfResult.md delete mode 100644 qaseio/docs/EnvironmentResponse.md delete mode 100644 qaseio/docs/EnvironmentUpdate.md delete mode 100644 qaseio/docs/EnvironmentsApi.md delete mode 100644 qaseio/docs/ExternalIssue.md delete mode 100644 qaseio/docs/ExternalIssueIssuesInner.md delete mode 100644 qaseio/docs/HashResponse.md delete mode 100644 qaseio/docs/HashResponseAllOfResult.md delete mode 100644 qaseio/docs/IdResponse.md delete mode 100644 qaseio/docs/IdResponseAllOfResult.md delete mode 100644 qaseio/docs/Milestone.md delete mode 100644 qaseio/docs/MilestoneCreate.md delete mode 100644 qaseio/docs/MilestoneListResponse.md delete mode 100644 qaseio/docs/MilestoneListResponseAllOfResult.md delete mode 100644 qaseio/docs/MilestoneResponse.md delete mode 100644 qaseio/docs/MilestoneUpdate.md delete mode 100644 qaseio/docs/MilestonesApi.md delete mode 100644 qaseio/docs/Plan.md delete mode 100644 qaseio/docs/PlanCreate.md delete mode 100644 qaseio/docs/PlanDetailed.md delete mode 100644 qaseio/docs/PlanDetailedAllOfCases.md delete mode 100644 qaseio/docs/PlanListResponse.md delete mode 100644 qaseio/docs/PlanListResponseAllOfResult.md delete mode 100644 qaseio/docs/PlanQuery.md delete mode 100644 qaseio/docs/PlanResponse.md delete mode 100644 qaseio/docs/PlanUpdate.md delete mode 100644 qaseio/docs/PlansApi.md delete mode 100644 qaseio/docs/Project.md delete mode 100644 qaseio/docs/ProjectAccess.md delete mode 100644 qaseio/docs/ProjectCodeResponse.md delete mode 100644 qaseio/docs/ProjectCodeResponseAllOfResult.md delete mode 100644 qaseio/docs/ProjectCounts.md delete mode 100644 qaseio/docs/ProjectCountsDefects.md delete mode 100644 qaseio/docs/ProjectCountsRuns.md delete mode 100644 qaseio/docs/ProjectCreate.md delete mode 100644 qaseio/docs/ProjectListResponse.md delete mode 100644 qaseio/docs/ProjectListResponseAllOfResult.md delete mode 100644 qaseio/docs/ProjectResponse.md delete mode 100644 qaseio/docs/ProjectsApi.md delete mode 100644 qaseio/docs/QqlDefect.md delete mode 100644 qaseio/docs/QqlPlan.md delete mode 100644 qaseio/docs/QqlTestCase.md delete mode 100644 qaseio/docs/Requirement.md delete mode 100644 qaseio/docs/Response.md delete mode 100644 qaseio/docs/Result.md delete mode 100644 qaseio/docs/ResultCreate.md delete mode 100644 qaseio/docs/ResultCreateBulk.md delete mode 100644 qaseio/docs/ResultCreateCase.md delete mode 100644 qaseio/docs/ResultCreateResponse.md delete mode 100644 qaseio/docs/ResultCreateResponseAllOfResult.md delete mode 100644 qaseio/docs/ResultListResponse.md delete mode 100644 qaseio/docs/ResultListResponseAllOfResult.md delete mode 100644 qaseio/docs/ResultResponse.md delete mode 100644 qaseio/docs/ResultUpdate.md delete mode 100644 qaseio/docs/ResultsApi.md delete mode 100644 qaseio/docs/Run.md delete mode 100644 qaseio/docs/RunCreate.md delete mode 100644 qaseio/docs/RunEnvironment.md delete mode 100644 qaseio/docs/RunListResponse.md delete mode 100644 qaseio/docs/RunListResponseAllOfResult.md delete mode 100644 qaseio/docs/RunMilestone.md delete mode 100644 qaseio/docs/RunPublic.md delete mode 100644 qaseio/docs/RunPublicResponse.md delete mode 100644 qaseio/docs/RunPublicResponseAllOfResult.md delete mode 100644 qaseio/docs/RunResponse.md delete mode 100644 qaseio/docs/RunStats.md delete mode 100644 qaseio/docs/RunsApi.md delete mode 100644 qaseio/docs/SearchApi.md delete mode 100644 qaseio/docs/SearchResponse.md delete mode 100644 qaseio/docs/SearchResponseAllOfResult.md delete mode 100644 qaseio/docs/SearchResponseAllOfResultEntities.md delete mode 100644 qaseio/docs/SharedStep.md delete mode 100644 qaseio/docs/SharedStepContent.md delete mode 100644 qaseio/docs/SharedStepContentCreate.md delete mode 100644 qaseio/docs/SharedStepCreate.md delete mode 100644 qaseio/docs/SharedStepListResponse.md delete mode 100644 qaseio/docs/SharedStepListResponseAllOfResult.md delete mode 100644 qaseio/docs/SharedStepResponse.md delete mode 100644 qaseio/docs/SharedStepUpdate.md delete mode 100644 qaseio/docs/SharedStepsApi.md delete mode 100644 qaseio/docs/Suite.md delete mode 100644 qaseio/docs/SuiteCreate.md delete mode 100644 qaseio/docs/SuiteDelete.md delete mode 100644 qaseio/docs/SuiteListResponse.md delete mode 100644 qaseio/docs/SuiteListResponseAllOfResult.md delete mode 100644 qaseio/docs/SuiteResponse.md delete mode 100644 qaseio/docs/SuiteUpdate.md delete mode 100644 qaseio/docs/SuitesApi.md delete mode 100644 qaseio/docs/SystemField.md delete mode 100644 qaseio/docs/SystemFieldListResponse.md delete mode 100644 qaseio/docs/SystemFieldOption.md delete mode 100644 qaseio/docs/SystemFieldsApi.md delete mode 100644 qaseio/docs/TagValue.md delete mode 100644 qaseio/docs/TestCase.md delete mode 100644 qaseio/docs/TestCaseCreate.md delete mode 100644 qaseio/docs/TestCaseExternalIssues.md delete mode 100644 qaseio/docs/TestCaseExternalIssuesLinksInner.md delete mode 100644 qaseio/docs/TestCaseListResponse.md delete mode 100644 qaseio/docs/TestCaseListResponseAllOfResult.md delete mode 100644 qaseio/docs/TestCaseParams.md delete mode 100644 qaseio/docs/TestCaseQuery.md delete mode 100644 qaseio/docs/TestCaseResponse.md delete mode 100644 qaseio/docs/TestCaseUpdate.md delete mode 100644 qaseio/docs/TestCasebulk.md delete mode 100644 qaseio/docs/TestCasebulkCasesInner.md delete mode 100644 qaseio/docs/TestStep.md delete mode 100644 qaseio/docs/TestStepCreate.md delete mode 100644 qaseio/docs/TestStepResult.md delete mode 100644 qaseio/docs/TestStepResultCreate.md delete mode 100644 qaseio/pyproject.toml delete mode 100644 qaseio/requirements.txt delete mode 100644 qaseio/src/qaseio/__init__.py delete mode 100644 qaseio/src/qaseio/api/__init__.py delete mode 100644 qaseio/src/qaseio/api/attachments_api.py delete mode 100644 qaseio/src/qaseio/api/authors_api.py delete mode 100644 qaseio/src/qaseio/api/cases_api.py delete mode 100644 qaseio/src/qaseio/api/configurations_api.py delete mode 100644 qaseio/src/qaseio/api/custom_fields_api.py delete mode 100644 qaseio/src/qaseio/api/defects_api.py delete mode 100644 qaseio/src/qaseio/api/environments_api.py delete mode 100644 qaseio/src/qaseio/api/milestones_api.py delete mode 100644 qaseio/src/qaseio/api/plans_api.py delete mode 100644 qaseio/src/qaseio/api/projects_api.py delete mode 100644 qaseio/src/qaseio/api/results_api.py delete mode 100644 qaseio/src/qaseio/api/runs_api.py delete mode 100644 qaseio/src/qaseio/api/search_api.py delete mode 100644 qaseio/src/qaseio/api/shared_steps_api.py delete mode 100644 qaseio/src/qaseio/api/suites_api.py delete mode 100644 qaseio/src/qaseio/api/system_fields_api.py delete mode 100644 qaseio/src/qaseio/api_client.py delete mode 100644 qaseio/src/qaseio/api_response.py delete mode 100644 qaseio/src/qaseio/configuration.py delete mode 100644 qaseio/src/qaseio/exceptions.py delete mode 100644 qaseio/src/qaseio/models/__init__.py delete mode 100644 qaseio/src/qaseio/models/attachment.py delete mode 100644 qaseio/src/qaseio/models/attachment_get.py delete mode 100644 qaseio/src/qaseio/models/attachment_hash.py delete mode 100644 qaseio/src/qaseio/models/attachment_list_response.py delete mode 100644 qaseio/src/qaseio/models/attachment_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/attachment_response.py delete mode 100644 qaseio/src/qaseio/models/attachment_uploads_response.py delete mode 100644 qaseio/src/qaseio/models/attachmentupload.py delete mode 100644 qaseio/src/qaseio/models/author.py delete mode 100644 qaseio/src/qaseio/models/author_list_response.py delete mode 100644 qaseio/src/qaseio/models/author_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/author_response.py delete mode 100644 qaseio/src/qaseio/models/base_response.py delete mode 100644 qaseio/src/qaseio/models/bulk200_response.py delete mode 100644 qaseio/src/qaseio/models/bulk200_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/configuration.py delete mode 100644 qaseio/src/qaseio/models/configuration_create.py delete mode 100644 qaseio/src/qaseio/models/configuration_group.py delete mode 100644 qaseio/src/qaseio/models/configuration_group_create.py delete mode 100644 qaseio/src/qaseio/models/configuration_list_response.py delete mode 100644 qaseio/src/qaseio/models/configuration_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/custom_field.py delete mode 100644 qaseio/src/qaseio/models/custom_field_create.py delete mode 100644 qaseio/src/qaseio/models/custom_field_create_value_inner.py delete mode 100644 qaseio/src/qaseio/models/custom_field_list_response.py delete mode 100644 qaseio/src/qaseio/models/custom_field_response.py delete mode 100644 qaseio/src/qaseio/models/custom_field_update.py delete mode 100644 qaseio/src/qaseio/models/custom_field_value.py delete mode 100644 qaseio/src/qaseio/models/custom_fields_response.py delete mode 100644 qaseio/src/qaseio/models/custom_fields_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/defect.py delete mode 100644 qaseio/src/qaseio/models/defect_create.py delete mode 100644 qaseio/src/qaseio/models/defect_list_response.py delete mode 100644 qaseio/src/qaseio/models/defect_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/defect_query.py delete mode 100644 qaseio/src/qaseio/models/defect_response.py delete mode 100644 qaseio/src/qaseio/models/defect_status.py delete mode 100644 qaseio/src/qaseio/models/defect_update.py delete mode 100644 qaseio/src/qaseio/models/environment.py delete mode 100644 qaseio/src/qaseio/models/environment_create.py delete mode 100644 qaseio/src/qaseio/models/environment_list_response.py delete mode 100644 qaseio/src/qaseio/models/environment_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/environment_response.py delete mode 100644 qaseio/src/qaseio/models/environment_update.py delete mode 100644 qaseio/src/qaseio/models/external_issue.py delete mode 100644 qaseio/src/qaseio/models/external_issue_issues_inner.py delete mode 100644 qaseio/src/qaseio/models/hash_response.py delete mode 100644 qaseio/src/qaseio/models/hash_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/id_response.py delete mode 100644 qaseio/src/qaseio/models/id_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/milestone.py delete mode 100644 qaseio/src/qaseio/models/milestone_create.py delete mode 100644 qaseio/src/qaseio/models/milestone_list_response.py delete mode 100644 qaseio/src/qaseio/models/milestone_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/milestone_response.py delete mode 100644 qaseio/src/qaseio/models/milestone_update.py delete mode 100644 qaseio/src/qaseio/models/plan.py delete mode 100644 qaseio/src/qaseio/models/plan_create.py delete mode 100644 qaseio/src/qaseio/models/plan_detailed.py delete mode 100644 qaseio/src/qaseio/models/plan_detailed_all_of_cases.py delete mode 100644 qaseio/src/qaseio/models/plan_list_response.py delete mode 100644 qaseio/src/qaseio/models/plan_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/plan_query.py delete mode 100644 qaseio/src/qaseio/models/plan_response.py delete mode 100644 qaseio/src/qaseio/models/plan_update.py delete mode 100644 qaseio/src/qaseio/models/project.py delete mode 100644 qaseio/src/qaseio/models/project_access.py delete mode 100644 qaseio/src/qaseio/models/project_code_response.py delete mode 100644 qaseio/src/qaseio/models/project_code_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/project_counts.py delete mode 100644 qaseio/src/qaseio/models/project_counts_defects.py delete mode 100644 qaseio/src/qaseio/models/project_counts_runs.py delete mode 100644 qaseio/src/qaseio/models/project_create.py delete mode 100644 qaseio/src/qaseio/models/project_list_response.py delete mode 100644 qaseio/src/qaseio/models/project_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/project_response.py delete mode 100644 qaseio/src/qaseio/models/qql_defect.py delete mode 100644 qaseio/src/qaseio/models/qql_plan.py delete mode 100644 qaseio/src/qaseio/models/qql_test_case.py delete mode 100644 qaseio/src/qaseio/models/requirement.py delete mode 100644 qaseio/src/qaseio/models/response.py delete mode 100644 qaseio/src/qaseio/models/result.py delete mode 100644 qaseio/src/qaseio/models/result_create.py delete mode 100644 qaseio/src/qaseio/models/result_create_bulk.py delete mode 100644 qaseio/src/qaseio/models/result_create_case.py delete mode 100644 qaseio/src/qaseio/models/result_create_response.py delete mode 100644 qaseio/src/qaseio/models/result_create_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/result_list_response.py delete mode 100644 qaseio/src/qaseio/models/result_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/result_response.py delete mode 100644 qaseio/src/qaseio/models/result_update.py delete mode 100644 qaseio/src/qaseio/models/resultcreate_bulk.py delete mode 100644 qaseio/src/qaseio/models/run.py delete mode 100644 qaseio/src/qaseio/models/run_create.py delete mode 100644 qaseio/src/qaseio/models/run_environment.py delete mode 100644 qaseio/src/qaseio/models/run_list_response.py delete mode 100644 qaseio/src/qaseio/models/run_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/run_milestone.py delete mode 100644 qaseio/src/qaseio/models/run_public.py delete mode 100644 qaseio/src/qaseio/models/run_public_response.py delete mode 100644 qaseio/src/qaseio/models/run_public_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/run_response.py delete mode 100644 qaseio/src/qaseio/models/run_stats.py delete mode 100644 qaseio/src/qaseio/models/search_response.py delete mode 100644 qaseio/src/qaseio/models/search_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/search_response_all_of_result_entities.py delete mode 100644 qaseio/src/qaseio/models/shared_step.py delete mode 100644 qaseio/src/qaseio/models/shared_step_content.py delete mode 100644 qaseio/src/qaseio/models/shared_step_content_create.py delete mode 100644 qaseio/src/qaseio/models/shared_step_create.py delete mode 100644 qaseio/src/qaseio/models/shared_step_list_response.py delete mode 100644 qaseio/src/qaseio/models/shared_step_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/shared_step_response.py delete mode 100644 qaseio/src/qaseio/models/shared_step_update.py delete mode 100644 qaseio/src/qaseio/models/suite.py delete mode 100644 qaseio/src/qaseio/models/suite_create.py delete mode 100644 qaseio/src/qaseio/models/suite_delete.py delete mode 100644 qaseio/src/qaseio/models/suite_list_response.py delete mode 100644 qaseio/src/qaseio/models/suite_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/suite_response.py delete mode 100644 qaseio/src/qaseio/models/suite_update.py delete mode 100644 qaseio/src/qaseio/models/system_field.py delete mode 100644 qaseio/src/qaseio/models/system_field_list_response.py delete mode 100644 qaseio/src/qaseio/models/system_field_option.py delete mode 100644 qaseio/src/qaseio/models/tag_value.py delete mode 100644 qaseio/src/qaseio/models/test_case.py delete mode 100644 qaseio/src/qaseio/models/test_case_create.py delete mode 100644 qaseio/src/qaseio/models/test_case_external_issues.py delete mode 100644 qaseio/src/qaseio/models/test_case_external_issues_links_inner.py delete mode 100644 qaseio/src/qaseio/models/test_case_list_response.py delete mode 100644 qaseio/src/qaseio/models/test_case_list_response_all_of_result.py delete mode 100644 qaseio/src/qaseio/models/test_case_params.py delete mode 100644 qaseio/src/qaseio/models/test_case_query.py delete mode 100644 qaseio/src/qaseio/models/test_case_response.py delete mode 100644 qaseio/src/qaseio/models/test_case_update.py delete mode 100644 qaseio/src/qaseio/models/test_casebulk.py delete mode 100644 qaseio/src/qaseio/models/test_casebulk_cases_inner.py delete mode 100644 qaseio/src/qaseio/models/test_caseexternal_issues.py delete mode 100644 qaseio/src/qaseio/models/test_step.py delete mode 100644 qaseio/src/qaseio/models/test_step_create.py delete mode 100644 qaseio/src/qaseio/models/test_step_result.py delete mode 100644 qaseio/src/qaseio/models/test_step_result_create.py delete mode 100644 qaseio/src/qaseio/py.typed delete mode 100644 qaseio/src/qaseio/rest.py delete mode 100644 qaseio/test-requirements.txt delete mode 100644 qaseio/tests/tests_qaseio/test_attachment.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_get.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_hash.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachment_uploads_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachments_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_attachmentupload.py delete mode 100644 qaseio/tests/tests_qaseio/test_author.py delete mode 100644 qaseio/tests/tests_qaseio/test_author_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_author_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_author_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_authors_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_base_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_bulk200_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_bulk200_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_cases_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration_group.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration_group_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_configuration_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_configurations_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_create_value_inner.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_field_value.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_fields_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_fields_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_custom_fields_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_query.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_status.py delete mode 100644 qaseio/tests/tests_qaseio/test_defect_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_defects_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_environment_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_environments_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_external_issue.py delete mode 100644 qaseio/tests/tests_qaseio/test_external_issue_issues_inner.py delete mode 100644 qaseio/tests/tests_qaseio/test_hash_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_hash_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_id_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_id_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestone_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_milestones_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_detailed.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_detailed_all_of_cases.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_query.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_plan_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_plans_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_project.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_access.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_code_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_code_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_counts.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_counts_defects.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_counts_runs.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_project_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_projects_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_qql_defect.py delete mode 100644 qaseio/tests/tests_qaseio/test_qql_plan.py delete mode 100644 qaseio/tests/tests_qaseio/test_qql_test_case.py delete mode 100644 qaseio/tests/tests_qaseio/test_requirement.py delete mode 100644 qaseio/tests/tests_qaseio/test_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_create_bulk.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_create_case.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_create_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_create_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_result_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_resultcreate_bulk.py delete mode 100644 qaseio/tests/tests_qaseio/test_results_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_run.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_environment.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_milestone.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_public.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_public_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_public_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_run_stats.py delete mode 100644 qaseio/tests/tests_qaseio/test_runs_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_search_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_search_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_search_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_search_response_all_of_result_entities.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_content.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_content_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_step_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_shared_steps_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_delete.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_suite_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_suites_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_system_field.py delete mode 100644 qaseio/tests/tests_qaseio/test_system_field_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_system_field_option.py delete mode 100644 qaseio/tests/tests_qaseio/test_system_fields_api.py delete mode 100644 qaseio/tests/tests_qaseio/test_tag_value.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_external_issues.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_external_issues_links_inner.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_list_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_list_response_all_of_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_params.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_query.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_response.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_case_update.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_casebulk.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_casebulk_cases_inner.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_caseexternal_issues.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_step.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_step_create.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_step_result.py delete mode 100644 qaseio/tests/tests_qaseio/test_test_step_result_create.py delete mode 100644 qaseio/tox.ini diff --git a/README.md b/README.md index 8c051bf9..b39ba02c 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,3 @@ Monorepo containing [Qase TestOps](https://qase.io) integration tools for Python - **[qase-api-v2-client](/qase-api-v2-client)** API client supporting the new Qase TestOps API (v2). Use this client for projects leveraging the latest API features. - -### Deprecated - -- **[qaseio](/qaseio)** - Legacy client for the Qase TestOps API (v1). Deprecated in favor of `qase-api-client` and should not be used in new projects. diff --git a/qase-api-client/pyproject.toml b/qase-api-client/pyproject.toml index 8f294637..2025f9e5 100644 --- a/qase-api-client/pyproject.toml +++ b/qase-api-client/pyproject.toml @@ -22,7 +22,7 @@ urls = {"Homepage" = "https://github.com/qase-tms/qase-python"} keywords = ["OpenAPI", "OpenAPI-Generator", "Qase.io TestOps API"] requires-python = ">=3.9" dependencies = [ - "urllib3 >= 1.25.3, <= 2.5.0", + "urllib3 >= 2.5.0", "python-dateutil", "pydantic >= 2", "typing-extensions >= 4.7.1", diff --git a/qase-api-client/requirements.txt b/qase-api-client/requirements.txt index 9c868cb5..27a1c818 100644 --- a/qase-api-client/requirements.txt +++ b/qase-api-client/requirements.txt @@ -1,6 +1,6 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 -urllib3 >= 1.25.3, < 2.3.0 +urllib3 >= 2.5.0 pydantic >= 2 typing-extensions >= 4.7.1 lazy-imports >= 1, < 2 diff --git a/qase-api-v2-client/pyproject.toml b/qase-api-v2-client/pyproject.toml index eb3eede7..d8bceb6b 100644 --- a/qase-api-v2-client/pyproject.toml +++ b/qase-api-v2-client/pyproject.toml @@ -22,7 +22,7 @@ urls = {"Homepage" = "https://github.com/qase-tms/qase-python"} keywords = ["OpenAPI", "OpenAPI-Generator", "Qase.io TestOps API"] requires-python = ">=3.9" dependencies = [ - "urllib3 >= 1.25.3, <= 2.5.0", + "urllib3 >= 2.5.0", "python-dateutil", "pydantic >= 2", "typing-extensions >= 4.7.1", diff --git a/qase-api-v2-client/requirements.txt b/qase-api-v2-client/requirements.txt index 0e1c0c54..27a1c818 100644 --- a/qase-api-v2-client/requirements.txt +++ b/qase-api-v2-client/requirements.txt @@ -1,5 +1,6 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 -urllib3 >= 1.25.3, < 2.3.0 +urllib3 >= 2.5.0 pydantic >= 2 typing-extensions >= 4.7.1 +lazy-imports >= 1, < 2 diff --git a/qaseio/.openapi-generator-ignore b/qaseio/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/qaseio/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/qaseio/.openapi-generator/FILES b/qaseio/.openapi-generator/FILES deleted file mode 100644 index 851fe16a..00000000 --- a/qaseio/.openapi-generator/FILES +++ /dev/null @@ -1,511 +0,0 @@ -.gitignore -.gitlab-ci.yml -.openapi-generator-ignore -.travis.yml -README.md -docs/Attachment.md -docs/AttachmentGet.md -docs/AttachmentHash.md -docs/AttachmentHashList.md -docs/AttachmentListResponse.md -docs/AttachmentListResponseAllOf.md -docs/AttachmentListResponseAllOfResult.md -docs/AttachmentResponse.md -docs/AttachmentResponseAllOf.md -docs/AttachmentUploadsResponse.md -docs/AttachmentUploadsResponseAllOf.md -docs/AttachmentsApi.md -docs/CasesApi.md -docs/CustomField.md -docs/CustomFieldCreate.md -docs/CustomFieldCreateValue.md -docs/CustomFieldResponse.md -docs/CustomFieldResponseAllOf.md -docs/CustomFieldUpdate.md -docs/CustomFieldValue.md -docs/CustomFieldsApi.md -docs/CustomFieldsResponse.md -docs/CustomFieldsResponseAllOf.md -docs/CustomFieldsResponseAllOfResult.md -docs/Defect.md -docs/DefectCreate.md -docs/DefectListResponse.md -docs/DefectListResponseAllOf.md -docs/DefectListResponseAllOfResult.md -docs/DefectResponse.md -docs/DefectResponseAllOf.md -docs/DefectStatus.md -docs/DefectUpdate.md -docs/DefectsApi.md -docs/Environment.md -docs/EnvironmentCreate.md -docs/EnvironmentListResponse.md -docs/EnvironmentListResponseAllOf.md -docs/EnvironmentListResponseAllOfResult.md -docs/EnvironmentResponse.md -docs/EnvironmentResponseAllOf.md -docs/EnvironmentUpdate.md -docs/EnvironmentsApi.md -docs/Filters.md -docs/Filters1.md -docs/Filters2.md -docs/Filters3.md -docs/Filters4.md -docs/Filters5.md -docs/Filters6.md -docs/Filters7.md -docs/HashResponse.md -docs/HashResponseAllOf.md -docs/HashResponseAllOfResult.md -docs/IdResponse.md -docs/IdResponseAllOf.md -docs/IdResponseAllOfResult.md -docs/InlineObject1.md -docs/Milestone.md -docs/MilestoneCreate.md -docs/MilestoneListResponse.md -docs/MilestoneListResponseAllOf.md -docs/MilestoneListResponseAllOfResult.md -docs/MilestoneResponse.md -docs/MilestoneResponseAllOf.md -docs/MilestoneUpdate.md -docs/MilestonesApi.md -docs/Plan.md -docs/PlanCreate.md -docs/PlanDetailed.md -docs/PlanDetailedAllOf.md -docs/PlanDetailedAllOfCases.md -docs/PlanListResponse.md -docs/PlanListResponseAllOf.md -docs/PlanListResponseAllOfResult.md -docs/PlanResponse.md -docs/PlanResponseAllOf.md -docs/PlanUpdate.md -docs/PlansApi.md -docs/Project.md -docs/ProjectAccess.md -docs/ProjectCodeResponse.md -docs/ProjectCodeResponseAllOf.md -docs/ProjectCodeResponseAllOfResult.md -docs/ProjectCounts.md -docs/ProjectCountsDefects.md -docs/ProjectCountsRuns.md -docs/ProjectCreate.md -docs/ProjectListResponse.md -docs/ProjectListResponseAllOf.md -docs/ProjectListResponseAllOfResult.md -docs/ProjectResponse.md -docs/ProjectResponseAllOf.md -docs/ProjectsApi.md -docs/QqlDefect.md -docs/QqlPlan.md -docs/QqlTestCase.md -docs/Requirement.md -docs/Response.md -docs/Result.md -docs/ResultCreate.md -docs/ResultCreateBulk.md -docs/ResultCreateCase.md -docs/ResultCreateSteps.md -docs/ResultListResponse.md -docs/ResultListResponseAllOf.md -docs/ResultListResponseAllOfResult.md -docs/ResultResponse.md -docs/ResultResponseAllOf.md -docs/ResultSteps.md -docs/ResultUpdate.md -docs/ResultUpdateSteps.md -docs/ResultsApi.md -docs/Run.md -docs/RunCreate.md -docs/RunEnvironment.md -docs/RunListResponse.md -docs/RunListResponseAllOf.md -docs/RunListResponseAllOfResult.md -docs/RunMilestone.md -docs/RunPublic.md -docs/RunPublicResponse.md -docs/RunPublicResponseAllOf.md -docs/RunPublicResponseAllOfResult.md -docs/RunResponse.md -docs/RunResponseAllOf.md -docs/RunStats.md -docs/RunsApi.md -docs/SearchApi.md -docs/SearchResponse.md -docs/SearchResponseAllOf.md -docs/SearchResponseAllOfResult.md -docs/SharedStep.md -docs/SharedStepCreate.md -docs/SharedStepCreateSteps.md -docs/SharedStepListResponse.md -docs/SharedStepListResponseAllOf.md -docs/SharedStepListResponseAllOfResult.md -docs/SharedStepResponse.md -docs/SharedStepResponseAllOf.md -docs/SharedStepSteps.md -docs/SharedStepUpdate.md -docs/SharedStepsApi.md -docs/Suite.md -docs/SuiteCreate.md -docs/SuiteDelete.md -docs/SuiteListResponse.md -docs/SuiteListResponseAllOf.md -docs/SuiteListResponseAllOfResult.md -docs/SuiteResponse.md -docs/SuiteResponseAllOf.md -docs/SuitesApi.md -docs/TagValue.md -docs/TestCase.md -docs/TestCaseCreate.md -docs/TestCaseCreateSteps.md -docs/TestCaseListResponse.md -docs/TestCaseListResponseAllOf.md -docs/TestCaseListResponseAllOfResult.md -docs/TestCaseResponse.md -docs/TestCaseResponseAllOf.md -docs/TestCaseUpdate.md -docs/TestStep.md -git_push.sh -qaseio/__init__.py -qaseio/api/__init__.py -qaseio/api/attachments_api.py -qaseio/api/cases_api.py -qaseio/api/custom_fields_api.py -qaseio/api/defects_api.py -qaseio/api/environments_api.py -qaseio/api/milestones_api.py -qaseio/api/plans_api.py -qaseio/api/projects_api.py -qaseio/api/results_api.py -qaseio/api/runs_api.py -qaseio/api/search_api.py -qaseio/api/shared_steps_api.py -qaseio/api/suites_api.py -qaseio/api_client.py -qaseio/apis/__init__.py -qaseio/configuration.py -qaseio/exceptions.py -qaseio/model/__init__.py -qaseio/model/attachment.py -qaseio/model/attachment_get.py -qaseio/model/attachment_hash.py -qaseio/model/attachment_hash_list.py -qaseio/model/attachment_list_response.py -qaseio/model/attachment_list_response_all_of.py -qaseio/model/attachment_list_response_all_of_result.py -qaseio/model/attachment_response.py -qaseio/model/attachment_response_all_of.py -qaseio/model/attachment_uploads_response.py -qaseio/model/attachment_uploads_response_all_of.py -qaseio/model/custom_field.py -qaseio/model/custom_field_create.py -qaseio/model/custom_field_create_value.py -qaseio/model/custom_field_response.py -qaseio/model/custom_field_response_all_of.py -qaseio/model/custom_field_update.py -qaseio/model/custom_field_value.py -qaseio/model/custom_fields_response.py -qaseio/model/custom_fields_response_all_of.py -qaseio/model/custom_fields_response_all_of_result.py -qaseio/model/defect.py -qaseio/model/defect_create.py -qaseio/model/defect_list_response.py -qaseio/model/defect_list_response_all_of.py -qaseio/model/defect_list_response_all_of_result.py -qaseio/model/defect_response.py -qaseio/model/defect_response_all_of.py -qaseio/model/defect_status.py -qaseio/model/defect_update.py -qaseio/model/environment.py -qaseio/model/environment_create.py -qaseio/model/environment_list_response.py -qaseio/model/environment_list_response_all_of.py -qaseio/model/environment_list_response_all_of_result.py -qaseio/model/environment_response.py -qaseio/model/environment_response_all_of.py -qaseio/model/environment_update.py -qaseio/model/filters.py -qaseio/model/filters1.py -qaseio/model/filters2.py -qaseio/model/filters3.py -qaseio/model/filters4.py -qaseio/model/filters5.py -qaseio/model/filters6.py -qaseio/model/filters7.py -qaseio/model/hash_response.py -qaseio/model/hash_response_all_of.py -qaseio/model/hash_response_all_of_result.py -qaseio/model/id_response.py -qaseio/model/id_response_all_of.py -qaseio/model/id_response_all_of_result.py -qaseio/model/inline_object1.py -qaseio/model/milestone.py -qaseio/model/milestone_create.py -qaseio/model/milestone_list_response.py -qaseio/model/milestone_list_response_all_of.py -qaseio/model/milestone_list_response_all_of_result.py -qaseio/model/milestone_response.py -qaseio/model/milestone_response_all_of.py -qaseio/model/milestone_update.py -qaseio/model/plan.py -qaseio/model/plan_create.py -qaseio/model/plan_detailed.py -qaseio/model/plan_detailed_all_of.py -qaseio/model/plan_detailed_all_of_cases.py -qaseio/model/plan_list_response.py -qaseio/model/plan_list_response_all_of.py -qaseio/model/plan_list_response_all_of_result.py -qaseio/model/plan_response.py -qaseio/model/plan_response_all_of.py -qaseio/model/plan_update.py -qaseio/model/project.py -qaseio/model/project_access.py -qaseio/model/project_code_response.py -qaseio/model/project_code_response_all_of.py -qaseio/model/project_code_response_all_of_result.py -qaseio/model/project_counts.py -qaseio/model/project_counts_defects.py -qaseio/model/project_counts_runs.py -qaseio/model/project_create.py -qaseio/model/project_list_response.py -qaseio/model/project_list_response_all_of.py -qaseio/model/project_list_response_all_of_result.py -qaseio/model/project_response.py -qaseio/model/project_response_all_of.py -qaseio/model/qql_defect.py -qaseio/model/qql_plan.py -qaseio/model/qql_test_case.py -qaseio/model/requirement.py -qaseio/model/response.py -qaseio/model/result.py -qaseio/model/result_create.py -qaseio/model/result_create_bulk.py -qaseio/model/result_create_case.py -qaseio/model/result_create_steps.py -qaseio/model/result_list_response.py -qaseio/model/result_list_response_all_of.py -qaseio/model/result_list_response_all_of_result.py -qaseio/model/result_response.py -qaseio/model/result_response_all_of.py -qaseio/model/result_steps.py -qaseio/model/result_update.py -qaseio/model/result_update_steps.py -qaseio/model/run.py -qaseio/model/run_create.py -qaseio/model/run_environment.py -qaseio/model/run_list_response.py -qaseio/model/run_list_response_all_of.py -qaseio/model/run_list_response_all_of_result.py -qaseio/model/run_milestone.py -qaseio/model/run_public.py -qaseio/model/run_public_response.py -qaseio/model/run_public_response_all_of.py -qaseio/model/run_public_response_all_of_result.py -qaseio/model/run_response.py -qaseio/model/run_response_all_of.py -qaseio/model/run_stats.py -qaseio/model/search_response.py -qaseio/model/search_response_all_of.py -qaseio/model/search_response_all_of_result.py -qaseio/model/shared_step.py -qaseio/model/shared_step_create.py -qaseio/model/shared_step_create_steps.py -qaseio/model/shared_step_list_response.py -qaseio/model/shared_step_list_response_all_of.py -qaseio/model/shared_step_list_response_all_of_result.py -qaseio/model/shared_step_response.py -qaseio/model/shared_step_response_all_of.py -qaseio/model/shared_step_steps.py -qaseio/model/shared_step_update.py -qaseio/model/suite.py -qaseio/model/suite_create.py -qaseio/model/suite_delete.py -qaseio/model/suite_list_response.py -qaseio/model/suite_list_response_all_of.py -qaseio/model/suite_list_response_all_of_result.py -qaseio/model/suite_response.py -qaseio/model/suite_response_all_of.py -qaseio/model/tag_value.py -qaseio/model/test_case.py -qaseio/model/test_case_create.py -qaseio/model/test_case_create_steps.py -qaseio/model/test_case_list_response.py -qaseio/model/test_case_list_response_all_of.py -qaseio/model/test_case_list_response_all_of_result.py -qaseio/model/test_case_response.py -qaseio/model/test_case_response_all_of.py -qaseio/model/test_case_update.py -qaseio/model/test_step.py -qaseio/model_utils.py -qaseio/models/__init__.py -qaseio/rest.py -requirements.txt -setup.cfg -setup.py -test-requirements.txt -test/__init__.py -test/test_attachment.py -test/test_attachment_get.py -test/test_attachment_hash.py -test/test_attachment_hash_list.py -test/test_attachment_list_response.py -test/test_attachment_list_response_all_of.py -test/test_attachment_list_response_all_of_result.py -test/test_attachment_response.py -test/test_attachment_response_all_of.py -test/test_attachment_uploads_response.py -test/test_attachment_uploads_response_all_of.py -test/test_attachments_api.py -test/test_cases_api.py -test/test_custom_field.py -test/test_custom_field_create.py -test/test_custom_field_create_value.py -test/test_custom_field_response.py -test/test_custom_field_response_all_of.py -test/test_custom_field_update.py -test/test_custom_field_value.py -test/test_custom_fields_api.py -test/test_custom_fields_response.py -test/test_custom_fields_response_all_of.py -test/test_custom_fields_response_all_of_result.py -test/test_defect.py -test/test_defect_create.py -test/test_defect_list_response.py -test/test_defect_list_response_all_of.py -test/test_defect_list_response_all_of_result.py -test/test_defect_response.py -test/test_defect_response_all_of.py -test/test_defect_status.py -test/test_defect_update.py -test/test_defects_api.py -test/test_environment.py -test/test_environment_create.py -test/test_environment_list_response.py -test/test_environment_list_response_all_of.py -test/test_environment_list_response_all_of_result.py -test/test_environment_response.py -test/test_environment_response_all_of.py -test/test_environment_update.py -test/test_environments_api.py -test/test_filters.py -test/test_filters1.py -test/test_filters2.py -test/test_filters3.py -test/test_filters4.py -test/test_filters5.py -test/test_filters6.py -test/test_filters7.py -test/test_hash_response.py -test/test_hash_response_all_of.py -test/test_hash_response_all_of_result.py -test/test_id_response.py -test/test_id_response_all_of.py -test/test_id_response_all_of_result.py -test/test_inline_object1.py -test/test_milestone.py -test/test_milestone_create.py -test/test_milestone_list_response.py -test/test_milestone_list_response_all_of.py -test/test_milestone_list_response_all_of_result.py -test/test_milestone_response.py -test/test_milestone_response_all_of.py -test/test_milestone_update.py -test/test_milestones_api.py -test/test_plan.py -test/test_plan_create.py -test/test_plan_detailed.py -test/test_plan_detailed_all_of.py -test/test_plan_detailed_all_of_cases.py -test/test_plan_list_response.py -test/test_plan_list_response_all_of.py -test/test_plan_list_response_all_of_result.py -test/test_plan_response.py -test/test_plan_response_all_of.py -test/test_plan_update.py -test/test_plans_api.py -test/test_project.py -test/test_project_access.py -test/test_project_code_response.py -test/test_project_code_response_all_of.py -test/test_project_code_response_all_of_result.py -test/test_project_counts.py -test/test_project_counts_defects.py -test/test_project_counts_runs.py -test/test_project_create.py -test/test_project_list_response.py -test/test_project_list_response_all_of.py -test/test_project_list_response_all_of_result.py -test/test_project_response.py -test/test_project_response_all_of.py -test/test_projects_api.py -test/test_qql_defect.py -test/test_qql_plan.py -test/test_qql_test_case.py -test/test_requirement.py -test/test_response.py -test/test_result.py -test/test_result_create.py -test/test_result_create_bulk.py -test/test_result_create_case.py -test/test_result_create_steps.py -test/test_result_list_response.py -test/test_result_list_response_all_of.py -test/test_result_list_response_all_of_result.py -test/test_result_response.py -test/test_result_response_all_of.py -test/test_result_steps.py -test/test_result_update.py -test/test_result_update_steps.py -test/test_results_api.py -test/test_run.py -test/test_run_create.py -test/test_run_environment.py -test/test_run_list_response.py -test/test_run_list_response_all_of.py -test/test_run_list_response_all_of_result.py -test/test_run_milestone.py -test/test_run_public.py -test/test_run_public_response.py -test/test_run_public_response_all_of.py -test/test_run_public_response_all_of_result.py -test/test_run_response.py -test/test_run_response_all_of.py -test/test_run_stats.py -test/test_runs_api.py -test/test_search_api.py -test/test_search_response.py -test/test_search_response_all_of.py -test/test_search_response_all_of_result.py -test/test_shared_step.py -test/test_shared_step_create.py -test/test_shared_step_create_steps.py -test/test_shared_step_list_response.py -test/test_shared_step_list_response_all_of.py -test/test_shared_step_list_response_all_of_result.py -test/test_shared_step_response.py -test/test_shared_step_response_all_of.py -test/test_shared_step_steps.py -test/test_shared_step_update.py -test/test_shared_steps_api.py -test/test_suite.py -test/test_suite_create.py -test/test_suite_delete.py -test/test_suite_list_response.py -test/test_suite_list_response_all_of.py -test/test_suite_list_response_all_of_result.py -test/test_suite_response.py -test/test_suite_response_all_of.py -test/test_suites_api.py -test/test_tag_value.py -test/test_test_case.py -test/test_test_case_create.py -test/test_test_case_create_steps.py -test/test_test_case_list_response.py -test/test_test_case_list_response_all_of.py -test/test_test_case_list_response_all_of_result.py -test/test_test_case_response.py -test/test_test_case_response_all_of.py -test/test_test_case_update.py -test/test_test_step.py -tox.ini diff --git a/qaseio/.openapi-generator/VERSION b/qaseio/.openapi-generator/VERSION deleted file mode 100644 index 1e20ec35..00000000 --- a/qaseio/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.4.0 \ No newline at end of file diff --git a/qaseio/LICENSE.txt b/qaseio/LICENSE.txt deleted file mode 100644 index 8dada3ed..00000000 --- a/qaseio/LICENSE.txt +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/qaseio/README.md b/qaseio/README.md deleted file mode 100644 index c8803850..00000000 --- a/qaseio/README.md +++ /dev/null @@ -1,338 +0,0 @@ -# qaseio -Qase TestOps API Specification. - -This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: v1 -- Package version: 4.0.1 -- Build package: org.openapitools.codegen.languages.PythonClientCodegen -For more information, please visit [https://qase.io](https://qase.io) - -## Requirements. - -Python 3.7+ - -## Installation & Usage -### pip install - -If the python package is hosted on a repository, you can install directly using: - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import qaseio -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import qaseio -``` - -### Tests - -Execute `pytest` to run the tests. - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python - -import time -import qaseio -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AttachmentsApi(api_client) - hash = 'hash_example' # str | Hash. - - try: - # Remove attachment by Hash. - api_response = api_instance.delete_attachment(hash) - print("The response of AttachmentsApi->delete_attachment:\n") - pprint(api_response) - except ApiException as e: - print("Exception when calling AttachmentsApi->delete_attachment: %s\n" % e) - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.qase.io/v1* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AttachmentsApi* | [**delete_attachment**](docs/AttachmentsApi.md#delete_attachment) | **DELETE** /attachment/{hash} | Remove attachment by Hash. -*AttachmentsApi* | [**get_attachment**](docs/AttachmentsApi.md#get_attachment) | **GET** /attachment/{hash} | Get attachment by Hash. -*AttachmentsApi* | [**get_attachments**](docs/AttachmentsApi.md#get_attachments) | **GET** /attachment | Get all attachments. -*AttachmentsApi* | [**upload_attachment**](docs/AttachmentsApi.md#upload_attachment) | **POST** /attachment/{code} | Upload attachment. -*AuthorsApi* | [**get_author**](docs/AuthorsApi.md#get_author) | **GET** /author/{id} | Get a specific author. -*AuthorsApi* | [**get_authors**](docs/AuthorsApi.md#get_authors) | **GET** /author | Get all authors. -*CasesApi* | [**bulk**](docs/CasesApi.md#bulk) | **POST** /case/{code}/bulk | Create test cases in bulk. -*CasesApi* | [**case_attach_external_issue**](docs/CasesApi.md#case_attach_external_issue) | **POST** /case/{code}/external-issue/attach | Attach the external issues to the test cases. -*CasesApi* | [**case_detach_external_issue**](docs/CasesApi.md#case_detach_external_issue) | **POST** /case/{code}/external-issue/detach | Detach the external issues from the test cases. -*CasesApi* | [**create_case**](docs/CasesApi.md#create_case) | **POST** /case/{code} | Create a new test case. -*CasesApi* | [**delete_case**](docs/CasesApi.md#delete_case) | **DELETE** /case/{code}/{id} | Delete test case. -*CasesApi* | [**get_case**](docs/CasesApi.md#get_case) | **GET** /case/{code}/{id} | Get a specific test case. -*CasesApi* | [**get_cases**](docs/CasesApi.md#get_cases) | **GET** /case/{code} | Get all test cases. -*CasesApi* | [**update_case**](docs/CasesApi.md#update_case) | **PATCH** /case/{code}/{id} | Update test case. -*ConfigurationsApi* | [**create_configuration**](docs/ConfigurationsApi.md#create_configuration) | **POST** /configuration/{code} | Create a new configuration in a particular group. -*ConfigurationsApi* | [**create_configuration_group**](docs/ConfigurationsApi.md#create_configuration_group) | **POST** /configuration/{code}/group | Create a new configuration group. -*ConfigurationsApi* | [**get_configurations**](docs/ConfigurationsApi.md#get_configurations) | **GET** /configuration/{code} | Get all configuration groups with configurations. -*CustomFieldsApi* | [**create_custom_field**](docs/CustomFieldsApi.md#create_custom_field) | **POST** /custom_field | Create new Custom Field. -*CustomFieldsApi* | [**delete_custom_field**](docs/CustomFieldsApi.md#delete_custom_field) | **DELETE** /custom_field/{id} | Delete Custom Field by id. -*CustomFieldsApi* | [**get_custom_field**](docs/CustomFieldsApi.md#get_custom_field) | **GET** /custom_field/{id} | Get Custom Field by id. -*CustomFieldsApi* | [**get_custom_fields**](docs/CustomFieldsApi.md#get_custom_fields) | **GET** /custom_field | Get all Custom Fields. -*CustomFieldsApi* | [**update_custom_field**](docs/CustomFieldsApi.md#update_custom_field) | **PATCH** /custom_field/{id} | Update Custom Field by id. -*DefectsApi* | [**create_defect**](docs/DefectsApi.md#create_defect) | **POST** /defect/{code} | Create a new defect. -*DefectsApi* | [**delete_defect**](docs/DefectsApi.md#delete_defect) | **DELETE** /defect/{code}/{id} | Delete defect. -*DefectsApi* | [**get_defect**](docs/DefectsApi.md#get_defect) | **GET** /defect/{code}/{id} | Get a specific defect. -*DefectsApi* | [**get_defects**](docs/DefectsApi.md#get_defects) | **GET** /defect/{code} | Get all defects. -*DefectsApi* | [**resolve_defect**](docs/DefectsApi.md#resolve_defect) | **PATCH** /defect/{code}/resolve/{id} | Resolve a specific defect. -*DefectsApi* | [**update_defect**](docs/DefectsApi.md#update_defect) | **PATCH** /defect/{code}/{id} | Update defect. -*DefectsApi* | [**update_defect_status**](docs/DefectsApi.md#update_defect_status) | **PATCH** /defect/{code}/status/{id} | Update a specific defect status. -*EnvironmentsApi* | [**create_environment**](docs/EnvironmentsApi.md#create_environment) | **POST** /environment/{code} | Create a new environment. -*EnvironmentsApi* | [**delete_environment**](docs/EnvironmentsApi.md#delete_environment) | **DELETE** /environment/{code}/{id} | Delete environment. -*EnvironmentsApi* | [**get_environment**](docs/EnvironmentsApi.md#get_environment) | **GET** /environment/{code}/{id} | Get a specific environment. -*EnvironmentsApi* | [**get_environments**](docs/EnvironmentsApi.md#get_environments) | **GET** /environment/{code} | Get all environments. -*EnvironmentsApi* | [**update_environment**](docs/EnvironmentsApi.md#update_environment) | **PATCH** /environment/{code}/{id} | Update environment. -*MilestonesApi* | [**create_milestone**](docs/MilestonesApi.md#create_milestone) | **POST** /milestone/{code} | Create a new milestone. -*MilestonesApi* | [**delete_milestone**](docs/MilestonesApi.md#delete_milestone) | **DELETE** /milestone/{code}/{id} | Delete milestone. -*MilestonesApi* | [**get_milestone**](docs/MilestonesApi.md#get_milestone) | **GET** /milestone/{code}/{id} | Get a specific milestone. -*MilestonesApi* | [**get_milestones**](docs/MilestonesApi.md#get_milestones) | **GET** /milestone/{code} | Get all milestones. -*MilestonesApi* | [**update_milestone**](docs/MilestonesApi.md#update_milestone) | **PATCH** /milestone/{code}/{id} | Update milestone. -*PlansApi* | [**create_plan**](docs/PlansApi.md#create_plan) | **POST** /plan/{code} | Create a new plan. -*PlansApi* | [**delete_plan**](docs/PlansApi.md#delete_plan) | **DELETE** /plan/{code}/{id} | Delete plan. -*PlansApi* | [**get_plan**](docs/PlansApi.md#get_plan) | **GET** /plan/{code}/{id} | Get a specific plan. -*PlansApi* | [**get_plans**](docs/PlansApi.md#get_plans) | **GET** /plan/{code} | Get all plans. -*PlansApi* | [**update_plan**](docs/PlansApi.md#update_plan) | **PATCH** /plan/{code}/{id} | Update plan. -*ProjectsApi* | [**create_project**](docs/ProjectsApi.md#create_project) | **POST** /project | Create new project. -*ProjectsApi* | [**delete_project**](docs/ProjectsApi.md#delete_project) | **DELETE** /project/{code} | Delete Project by code. -*ProjectsApi* | [**get_project**](docs/ProjectsApi.md#get_project) | **GET** /project/{code} | Get Project by code. -*ProjectsApi* | [**get_projects**](docs/ProjectsApi.md#get_projects) | **GET** /project | Get All Projects. -*ProjectsApi* | [**grant_access_to_project**](docs/ProjectsApi.md#grant_access_to_project) | **POST** /project/{code}/access | Grant access to project by code. -*ProjectsApi* | [**revoke_access_to_project**](docs/ProjectsApi.md#revoke_access_to_project) | **DELETE** /project/{code}/access | Revoke access to project by code. -*ResultsApi* | [**create_result**](docs/ResultsApi.md#create_result) | **POST** /result/{code}/{id} | Create test run result. -*ResultsApi* | [**create_result_bulk**](docs/ResultsApi.md#create_result_bulk) | **POST** /result/{code}/{id}/bulk | Bulk create test run result. -*ResultsApi* | [**delete_result**](docs/ResultsApi.md#delete_result) | **DELETE** /result/{code}/{id}/{hash} | Delete test run result. -*ResultsApi* | [**get_result**](docs/ResultsApi.md#get_result) | **GET** /result/{code}/{hash} | Get test run result by code. -*ResultsApi* | [**get_results**](docs/ResultsApi.md#get_results) | **GET** /result/{code} | Get all test run results. -*ResultsApi* | [**update_result**](docs/ResultsApi.md#update_result) | **PATCH** /result/{code}/{id}/{hash} | Update test run result. -*RunsApi* | [**complete_run**](docs/RunsApi.md#complete_run) | **POST** /run/{code}/{id}/complete | Complete a specific run. -*RunsApi* | [**create_run**](docs/RunsApi.md#create_run) | **POST** /run/{code} | Create a new run. -*RunsApi* | [**delete_run**](docs/RunsApi.md#delete_run) | **DELETE** /run/{code}/{id} | Delete run. -*RunsApi* | [**get_run**](docs/RunsApi.md#get_run) | **GET** /run/{code}/{id} | Get a specific run. -*RunsApi* | [**get_runs**](docs/RunsApi.md#get_runs) | **GET** /run/{code} | Get all runs. -*RunsApi* | [**update_run_publicity**](docs/RunsApi.md#update_run_publicity) | **PATCH** /run/{code}/{id}/public | Update publicity of a specific run. -*SearchApi* | [**search**](docs/SearchApi.md#search) | **GET** /search | Search entities by Qase Query Language (QQL). -*SharedStepsApi* | [**create_shared_step**](docs/SharedStepsApi.md#create_shared_step) | **POST** /shared_step/{code} | Create a new shared step. -*SharedStepsApi* | [**delete_shared_step**](docs/SharedStepsApi.md#delete_shared_step) | **DELETE** /shared_step/{code}/{hash} | Delete shared step. -*SharedStepsApi* | [**get_shared_step**](docs/SharedStepsApi.md#get_shared_step) | **GET** /shared_step/{code}/{hash} | Get a specific shared step. -*SharedStepsApi* | [**get_shared_steps**](docs/SharedStepsApi.md#get_shared_steps) | **GET** /shared_step/{code} | Get all shared steps. -*SharedStepsApi* | [**update_shared_step**](docs/SharedStepsApi.md#update_shared_step) | **PATCH** /shared_step/{code}/{hash} | Update shared step. -*SuitesApi* | [**create_suite**](docs/SuitesApi.md#create_suite) | **POST** /suite/{code} | Create a new test suite. -*SuitesApi* | [**delete_suite**](docs/SuitesApi.md#delete_suite) | **DELETE** /suite/{code}/{id} | Delete test suite. -*SuitesApi* | [**get_suite**](docs/SuitesApi.md#get_suite) | **GET** /suite/{code}/{id} | Get a specific test suite. -*SuitesApi* | [**get_suites**](docs/SuitesApi.md#get_suites) | **GET** /suite/{code} | Get all test suites. -*SuitesApi* | [**update_suite**](docs/SuitesApi.md#update_suite) | **PATCH** /suite/{code}/{id} | Update test suite. -*SystemFieldsApi* | [**get_system_fields**](docs/SystemFieldsApi.md#get_system_fields) | **GET** /system_field | Get all System Fields. - - -## Documentation For Models - - - [Attachment](docs/Attachment.md) - - [AttachmentGet](docs/AttachmentGet.md) - - [AttachmentHash](docs/AttachmentHash.md) - - [AttachmentListResponse](docs/AttachmentListResponse.md) - - [AttachmentListResponseAllOfResult](docs/AttachmentListResponseAllOfResult.md) - - [AttachmentResponse](docs/AttachmentResponse.md) - - [AttachmentUploadsResponse](docs/AttachmentUploadsResponse.md) - - [Attachmentupload](docs/Attachmentupload.md) - - [Author](docs/Author.md) - - [AuthorListResponse](docs/AuthorListResponse.md) - - [AuthorListResponseAllOfResult](docs/AuthorListResponseAllOfResult.md) - - [AuthorResponse](docs/AuthorResponse.md) - - [BaseResponse](docs/BaseResponse.md) - - [Bulk200Response](docs/Bulk200Response.md) - - [Bulk200ResponseAllOfResult](docs/Bulk200ResponseAllOfResult.md) - - [Configuration](docs/Configuration.md) - - [ConfigurationCreate](docs/ConfigurationCreate.md) - - [ConfigurationGroup](docs/ConfigurationGroup.md) - - [ConfigurationGroupCreate](docs/ConfigurationGroupCreate.md) - - [ConfigurationListResponse](docs/ConfigurationListResponse.md) - - [ConfigurationListResponseAllOfResult](docs/ConfigurationListResponseAllOfResult.md) - - [CustomField](docs/CustomField.md) - - [CustomFieldCreate](docs/CustomFieldCreate.md) - - [CustomFieldCreateValueInner](docs/CustomFieldCreateValueInner.md) - - [CustomFieldListResponse](docs/CustomFieldListResponse.md) - - [CustomFieldResponse](docs/CustomFieldResponse.md) - - [CustomFieldUpdate](docs/CustomFieldUpdate.md) - - [CustomFieldValue](docs/CustomFieldValue.md) - - [CustomFieldsResponse](docs/CustomFieldsResponse.md) - - [CustomFieldsResponseAllOfResult](docs/CustomFieldsResponseAllOfResult.md) - - [Defect](docs/Defect.md) - - [DefectCreate](docs/DefectCreate.md) - - [DefectListResponse](docs/DefectListResponse.md) - - [DefectListResponseAllOfResult](docs/DefectListResponseAllOfResult.md) - - [DefectQuery](docs/DefectQuery.md) - - [DefectResponse](docs/DefectResponse.md) - - [DefectStatus](docs/DefectStatus.md) - - [DefectUpdate](docs/DefectUpdate.md) - - [Environment](docs/Environment.md) - - [EnvironmentCreate](docs/EnvironmentCreate.md) - - [EnvironmentListResponse](docs/EnvironmentListResponse.md) - - [EnvironmentListResponseAllOfResult](docs/EnvironmentListResponseAllOfResult.md) - - [EnvironmentResponse](docs/EnvironmentResponse.md) - - [EnvironmentUpdate](docs/EnvironmentUpdate.md) - - [ExternalIssue](docs/ExternalIssue.md) - - [ExternalIssueIssuesInner](docs/ExternalIssueIssuesInner.md) - - [HashResponse](docs/HashResponse.md) - - [HashResponseAllOfResult](docs/HashResponseAllOfResult.md) - - [IdResponse](docs/IdResponse.md) - - [IdResponseAllOfResult](docs/IdResponseAllOfResult.md) - - [Milestone](docs/Milestone.md) - - [MilestoneCreate](docs/MilestoneCreate.md) - - [MilestoneListResponse](docs/MilestoneListResponse.md) - - [MilestoneListResponseAllOfResult](docs/MilestoneListResponseAllOfResult.md) - - [MilestoneResponse](docs/MilestoneResponse.md) - - [MilestoneUpdate](docs/MilestoneUpdate.md) - - [Plan](docs/Plan.md) - - [PlanCreate](docs/PlanCreate.md) - - [PlanDetailed](docs/PlanDetailed.md) - - [PlanDetailedAllOfCases](docs/PlanDetailedAllOfCases.md) - - [PlanListResponse](docs/PlanListResponse.md) - - [PlanListResponseAllOfResult](docs/PlanListResponseAllOfResult.md) - - [PlanQuery](docs/PlanQuery.md) - - [PlanResponse](docs/PlanResponse.md) - - [PlanUpdate](docs/PlanUpdate.md) - - [Project](docs/Project.md) - - [ProjectAccess](docs/ProjectAccess.md) - - [ProjectCodeResponse](docs/ProjectCodeResponse.md) - - [ProjectCodeResponseAllOfResult](docs/ProjectCodeResponseAllOfResult.md) - - [ProjectCounts](docs/ProjectCounts.md) - - [ProjectCountsDefects](docs/ProjectCountsDefects.md) - - [ProjectCountsRuns](docs/ProjectCountsRuns.md) - - [ProjectCreate](docs/ProjectCreate.md) - - [ProjectListResponse](docs/ProjectListResponse.md) - - [ProjectListResponseAllOfResult](docs/ProjectListResponseAllOfResult.md) - - [ProjectResponse](docs/ProjectResponse.md) - - [QqlDefect](docs/QqlDefect.md) - - [QqlPlan](docs/QqlPlan.md) - - [QqlTestCase](docs/QqlTestCase.md) - - [Requirement](docs/Requirement.md) - - [Response](docs/Response.md) - - [Result](docs/Result.md) - - [ResultCreate](docs/ResultCreate.md) - - [ResultCreateBulk](docs/ResultCreateBulk.md) - - [ResultCreateCase](docs/ResultCreateCase.md) - - [ResultCreateResponse](docs/ResultCreateResponse.md) - - [ResultCreateResponseAllOfResult](docs/ResultCreateResponseAllOfResult.md) - - [ResultListResponse](docs/ResultListResponse.md) - - [ResultListResponseAllOfResult](docs/ResultListResponseAllOfResult.md) - - [ResultResponse](docs/ResultResponse.md) - - [ResultUpdate](docs/ResultUpdate.md) - - [ResultcreateBulk](docs/ResultcreateBulk.md) - - [Run](docs/Run.md) - - [RunCreate](docs/RunCreate.md) - - [RunEnvironment](docs/RunEnvironment.md) - - [RunListResponse](docs/RunListResponse.md) - - [RunListResponseAllOfResult](docs/RunListResponseAllOfResult.md) - - [RunMilestone](docs/RunMilestone.md) - - [RunPublic](docs/RunPublic.md) - - [RunPublicResponse](docs/RunPublicResponse.md) - - [RunPublicResponseAllOfResult](docs/RunPublicResponseAllOfResult.md) - - [RunResponse](docs/RunResponse.md) - - [RunStats](docs/RunStats.md) - - [SearchResponse](docs/SearchResponse.md) - - [SearchResponseAllOfResult](docs/SearchResponseAllOfResult.md) - - [SearchResponseAllOfResultEntities](docs/SearchResponseAllOfResultEntities.md) - - [SharedStep](docs/SharedStep.md) - - [SharedStepContent](docs/SharedStepContent.md) - - [SharedStepContentCreate](docs/SharedStepContentCreate.md) - - [SharedStepCreate](docs/SharedStepCreate.md) - - [SharedStepListResponse](docs/SharedStepListResponse.md) - - [SharedStepListResponseAllOfResult](docs/SharedStepListResponseAllOfResult.md) - - [SharedStepResponse](docs/SharedStepResponse.md) - - [SharedStepUpdate](docs/SharedStepUpdate.md) - - [Suite](docs/Suite.md) - - [SuiteCreate](docs/SuiteCreate.md) - - [SuiteDelete](docs/SuiteDelete.md) - - [SuiteListResponse](docs/SuiteListResponse.md) - - [SuiteListResponseAllOfResult](docs/SuiteListResponseAllOfResult.md) - - [SuiteResponse](docs/SuiteResponse.md) - - [SuiteUpdate](docs/SuiteUpdate.md) - - [SystemField](docs/SystemField.md) - - [SystemFieldListResponse](docs/SystemFieldListResponse.md) - - [SystemFieldOption](docs/SystemFieldOption.md) - - [TagValue](docs/TagValue.md) - - [TestCase](docs/TestCase.md) - - [TestCaseCreate](docs/TestCaseCreate.md) - - [TestCaseExternalIssues](docs/TestCaseExternalIssues.md) - - [TestCaseExternalIssuesLinksInner](docs/TestCaseExternalIssuesLinksInner.md) - - [TestCaseListResponse](docs/TestCaseListResponse.md) - - [TestCaseListResponseAllOfResult](docs/TestCaseListResponseAllOfResult.md) - - [TestCaseParams](docs/TestCaseParams.md) - - [TestCaseQuery](docs/TestCaseQuery.md) - - [TestCaseResponse](docs/TestCaseResponse.md) - - [TestCaseUpdate](docs/TestCaseUpdate.md) - - [TestCasebulk](docs/TestCasebulk.md) - - [TestCasebulkCasesInner](docs/TestCasebulkCasesInner.md) - - [TestCaseexternalIssues](docs/TestCaseexternalIssues.md) - - [TestStep](docs/TestStep.md) - - [TestStepCreate](docs/TestStepCreate.md) - - [TestStepResult](docs/TestStepResult.md) - - [TestStepResultCreate](docs/TestStepResultCreate.md) - - - -## Documentation For Authorization - - -Authentication schemes defined for the API: - -### TokenAuth - -- **Type**: API key -- **API key parameter name**: Token -- **Location**: HTTP header - - -## Author - -support@qase.io - - diff --git a/qaseio/docs/Attachment.md b/qaseio/docs/Attachment.md deleted file mode 100644 index 45ac1508..00000000 --- a/qaseio/docs/Attachment.md +++ /dev/null @@ -1,32 +0,0 @@ -# Attachment - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | **int** | | [optional] -**mime** | **str** | | [optional] -**filename** | **str** | | [optional] -**url** | **str** | | [optional] - -## Example - -```python -from qaseio.models.attachment import Attachment - -# TODO update the JSON string below -json = "{}" -# create an instance of Attachment from a JSON string -attachment_instance = Attachment.from_json(json) -# print the JSON string representation of the object -print Attachment.to_json() - -# convert the object into a dict -attachment_dict = attachment_instance.to_dict() -# create an instance of Attachment from a dict -attachment_form_dict = attachment.from_dict(attachment_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentGet.md b/qaseio/docs/AttachmentGet.md deleted file mode 100644 index d19828b9..00000000 --- a/qaseio/docs/AttachmentGet.md +++ /dev/null @@ -1,34 +0,0 @@ -# AttachmentGet - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**file** | **str** | | [optional] -**mime** | **str** | | [optional] -**size** | **int** | | [optional] -**extension** | **str** | | [optional] -**full_path** | **str** | | [optional] - -## Example - -```python -from qaseio.models.attachment_get import AttachmentGet - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentGet from a JSON string -attachment_get_instance = AttachmentGet.from_json(json) -# print the JSON string representation of the object -print AttachmentGet.to_json() - -# convert the object into a dict -attachment_get_dict = attachment_get_instance.to_dict() -# create an instance of AttachmentGet from a dict -attachment_get_form_dict = attachment_get.from_dict(attachment_get_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentHash.md b/qaseio/docs/AttachmentHash.md deleted file mode 100644 index 2ad26b20..00000000 --- a/qaseio/docs/AttachmentHash.md +++ /dev/null @@ -1,33 +0,0 @@ -# AttachmentHash - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | **int** | | [optional] -**mime** | **str** | | [optional] -**filename** | **str** | | [optional] -**url** | **str** | | [optional] -**hash** | **str** | | [optional] - -## Example - -```python -from qaseio.models.attachment_hash import AttachmentHash - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentHash from a JSON string -attachment_hash_instance = AttachmentHash.from_json(json) -# print the JSON string representation of the object -print AttachmentHash.to_json() - -# convert the object into a dict -attachment_hash_dict = attachment_hash_instance.to_dict() -# create an instance of AttachmentHash from a dict -attachment_hash_form_dict = attachment_hash.from_dict(attachment_hash_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentListResponse.md b/qaseio/docs/AttachmentListResponse.md deleted file mode 100644 index 03d4b175..00000000 --- a/qaseio/docs/AttachmentListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AttachmentListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**AttachmentListResponseAllOfResult**](AttachmentListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.attachment_list_response import AttachmentListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentListResponse from a JSON string -attachment_list_response_instance = AttachmentListResponse.from_json(json) -# print the JSON string representation of the object -print AttachmentListResponse.to_json() - -# convert the object into a dict -attachment_list_response_dict = attachment_list_response_instance.to_dict() -# create an instance of AttachmentListResponse from a dict -attachment_list_response_form_dict = attachment_list_response.from_dict(attachment_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentListResponseAllOfResult.md b/qaseio/docs/AttachmentListResponseAllOfResult.md deleted file mode 100644 index 871bc780..00000000 --- a/qaseio/docs/AttachmentListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# AttachmentListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[AttachmentGet]**](AttachmentGet.md) | | [optional] - -## Example - -```python -from qaseio.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentListResponseAllOfResult from a JSON string -attachment_list_response_all_of_result_instance = AttachmentListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print AttachmentListResponseAllOfResult.to_json() - -# convert the object into a dict -attachment_list_response_all_of_result_dict = attachment_list_response_all_of_result_instance.to_dict() -# create an instance of AttachmentListResponseAllOfResult from a dict -attachment_list_response_all_of_result_form_dict = attachment_list_response_all_of_result.from_dict(attachment_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentResponse.md b/qaseio/docs/AttachmentResponse.md deleted file mode 100644 index fefbca1a..00000000 --- a/qaseio/docs/AttachmentResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AttachmentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**AttachmentGet**](AttachmentGet.md) | | [optional] - -## Example - -```python -from qaseio.models.attachment_response import AttachmentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentResponse from a JSON string -attachment_response_instance = AttachmentResponse.from_json(json) -# print the JSON string representation of the object -print AttachmentResponse.to_json() - -# convert the object into a dict -attachment_response_dict = attachment_response_instance.to_dict() -# create an instance of AttachmentResponse from a dict -attachment_response_form_dict = attachment_response.from_dict(attachment_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentUploadsResponse.md b/qaseio/docs/AttachmentUploadsResponse.md deleted file mode 100644 index c28f76c3..00000000 --- a/qaseio/docs/AttachmentUploadsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AttachmentUploadsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**List[Attachmentupload]**](Attachmentupload.md) | | [optional] - -## Example - -```python -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AttachmentUploadsResponse from a JSON string -attachment_uploads_response_instance = AttachmentUploadsResponse.from_json(json) -# print the JSON string representation of the object -print AttachmentUploadsResponse.to_json() - -# convert the object into a dict -attachment_uploads_response_dict = attachment_uploads_response_instance.to_dict() -# create an instance of AttachmentUploadsResponse from a dict -attachment_uploads_response_form_dict = attachment_uploads_response.from_dict(attachment_uploads_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AttachmentsApi.md b/qaseio/docs/AttachmentsApi.md deleted file mode 100644 index f4594afc..00000000 --- a/qaseio/docs/AttachmentsApi.md +++ /dev/null @@ -1,362 +0,0 @@ -# qaseio.AttachmentsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**delete_attachment**](AttachmentsApi.md#delete_attachment) | **DELETE** /attachment/{hash} | Remove attachment by Hash. -[**get_attachment**](AttachmentsApi.md#get_attachment) | **GET** /attachment/{hash} | Get attachment by Hash. -[**get_attachments**](AttachmentsApi.md#get_attachments) | **GET** /attachment | Get all attachments. -[**upload_attachment**](AttachmentsApi.md#upload_attachment) | **POST** /attachment/{code} | Upload attachment. - - -# **delete_attachment** -> HashResponse delete_attachment(hash) - -Remove attachment by Hash. - -This method allows to remove attachment by Hash. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AttachmentsApi(api_client) - hash = 'hash_example' # str | Hash. - - try: - # Remove attachment by Hash. - api_response = api_instance.delete_attachment(hash) - print("The response of AttachmentsApi->delete_attachment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AttachmentsApi->delete_attachment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **hash** | **str**| Hash. | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_attachment** -> AttachmentResponse get_attachment(hash) - -Get attachment by Hash. - -This method allows to retrieve attachment by Hash. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.attachment_response import AttachmentResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AttachmentsApi(api_client) - hash = 'hash_example' # str | Hash. - - try: - # Get attachment by Hash. - api_response = api_instance.get_attachment(hash) - print("The response of AttachmentsApi->get_attachment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AttachmentsApi->get_attachment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **hash** | **str**| Hash. | - -### Return type - -[**AttachmentResponse**](AttachmentResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Single attachment. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_attachments** -> AttachmentListResponse get_attachments(limit=limit, offset=offset) - -Get all attachments. - -This method allows to retrieve attachments. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.attachment_list_response import AttachmentListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AttachmentsApi(api_client) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all attachments. - api_response = api_instance.get_attachments(limit=limit, offset=offset) - print("The response of AttachmentsApi->get_attachments:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AttachmentsApi->get_attachments: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**AttachmentListResponse**](AttachmentListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all attachments. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**413** | Payload Too Large. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **upload_attachment** -> AttachmentUploadsResponse upload_attachment(code, file=file) - -Upload attachment. - -This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AttachmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - file = None # List[bytearray] | (optional) - - try: - # Upload attachment. - api_response = api_instance.upload_attachment(code, file=file) - print("The response of AttachmentsApi->upload_attachment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AttachmentsApi->upload_attachment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **file** | **List[bytearray]**| | [optional] - -### Return type - -[**AttachmentUploadsResponse**](AttachmentUploadsResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An attachments. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**413** | Payload Too Large. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Attachmentupload.md b/qaseio/docs/Attachmentupload.md deleted file mode 100644 index a5899997..00000000 --- a/qaseio/docs/Attachmentupload.md +++ /dev/null @@ -1,34 +0,0 @@ -# Attachmentupload - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**filename** | **str** | | [optional] -**mime** | **str** | | [optional] -**extension** | **str** | | [optional] -**url** | **str** | | [optional] -**team** | **str** | | [optional] - -## Example - -```python -from qaseio.models.attachmentupload import Attachmentupload - -# TODO update the JSON string below -json = "{}" -# create an instance of Attachmentupload from a JSON string -attachmentupload_instance = Attachmentupload.from_json(json) -# print the JSON string representation of the object -print Attachmentupload.to_json() - -# convert the object into a dict -attachmentupload_dict = attachmentupload_instance.to_dict() -# create an instance of Attachmentupload from a dict -attachmentupload_form_dict = attachmentupload.from_dict(attachmentupload_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Author.md b/qaseio/docs/Author.md deleted file mode 100644 index 5b535e39..00000000 --- a/qaseio/docs/Author.md +++ /dev/null @@ -1,33 +0,0 @@ -# Author - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**entity_type** | **str** | | [optional] -**email** | **str** | | [optional] -**name** | **str** | | [optional] -**is_active** | **bool** | | [optional] - -## Example - -```python -from qaseio.models.author import Author - -# TODO update the JSON string below -json = "{}" -# create an instance of Author from a JSON string -author_instance = Author.from_json(json) -# print the JSON string representation of the object -print Author.to_json() - -# convert the object into a dict -author_dict = author_instance.to_dict() -# create an instance of Author from a dict -author_form_dict = author.from_dict(author_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AuthorListResponse.md b/qaseio/docs/AuthorListResponse.md deleted file mode 100644 index 6f01f7e1..00000000 --- a/qaseio/docs/AuthorListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AuthorListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**AuthorListResponseAllOfResult**](AuthorListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.author_list_response import AuthorListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthorListResponse from a JSON string -author_list_response_instance = AuthorListResponse.from_json(json) -# print the JSON string representation of the object -print AuthorListResponse.to_json() - -# convert the object into a dict -author_list_response_dict = author_list_response_instance.to_dict() -# create an instance of AuthorListResponse from a dict -author_list_response_form_dict = author_list_response.from_dict(author_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AuthorListResponseAllOfResult.md b/qaseio/docs/AuthorListResponseAllOfResult.md deleted file mode 100644 index 8a883d02..00000000 --- a/qaseio/docs/AuthorListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# AuthorListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Author]**](Author.md) | | [optional] - -## Example - -```python -from qaseio.models.author_list_response_all_of_result import AuthorListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthorListResponseAllOfResult from a JSON string -author_list_response_all_of_result_instance = AuthorListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print AuthorListResponseAllOfResult.to_json() - -# convert the object into a dict -author_list_response_all_of_result_dict = author_list_response_all_of_result_instance.to_dict() -# create an instance of AuthorListResponseAllOfResult from a dict -author_list_response_all_of_result_form_dict = author_list_response_all_of_result.from_dict(author_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AuthorResponse.md b/qaseio/docs/AuthorResponse.md deleted file mode 100644 index ea2c7fd8..00000000 --- a/qaseio/docs/AuthorResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# AuthorResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Author**](Author.md) | | [optional] - -## Example - -```python -from qaseio.models.author_response import AuthorResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of AuthorResponse from a JSON string -author_response_instance = AuthorResponse.from_json(json) -# print the JSON string representation of the object -print AuthorResponse.to_json() - -# convert the object into a dict -author_response_dict = author_response_instance.to_dict() -# create an instance of AuthorResponse from a dict -author_response_form_dict = author_response.from_dict(author_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/AuthorsApi.md b/qaseio/docs/AuthorsApi.md deleted file mode 100644 index 6fe2a472..00000000 --- a/qaseio/docs/AuthorsApi.md +++ /dev/null @@ -1,188 +0,0 @@ -# qaseio.AuthorsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_author**](AuthorsApi.md#get_author) | **GET** /author/{id} | Get a specific author. -[**get_authors**](AuthorsApi.md#get_authors) | **GET** /author | Get all authors. - - -# **get_author** -> AuthorResponse get_author(id) - -Get a specific author. - -This method allows to retrieve a specific author. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.author_response import AuthorResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AuthorsApi(api_client) - id = 56 # int | Identifier. - - try: - # Get a specific author. - api_response = api_instance.get_author(id) - print("The response of AuthorsApi->get_author:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthorsApi->get_author: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| Identifier. | - -### Return type - -[**AuthorResponse**](AuthorResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An author. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_authors** -> AuthorListResponse get_authors(search=search, type=type, limit=limit, offset=offset) - -Get all authors. - -This method allows to retrieve all authors in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.author_list_response import AuthorListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.AuthorsApi(api_client) - search = 'search_example' # str | Provide a string that will be used to search by name. (optional) - type = 'type_example' # str | (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all authors. - api_response = api_instance.get_authors(search=search, type=type, limit=limit, offset=offset) - print("The response of AuthorsApi->get_authors:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling AuthorsApi->get_authors: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **search** | **str**| Provide a string that will be used to search by name. | [optional] - **type** | **str**| | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**AuthorListResponse**](AuthorListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Author list. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/BaseResponse.md b/qaseio/docs/BaseResponse.md deleted file mode 100644 index 9b61403e..00000000 --- a/qaseio/docs/BaseResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# BaseResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] - -## Example - -```python -from qaseio.models.base_response import BaseResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of BaseResponse from a JSON string -base_response_instance = BaseResponse.from_json(json) -# print the JSON string representation of the object -print BaseResponse.to_json() - -# convert the object into a dict -base_response_dict = base_response_instance.to_dict() -# create an instance of BaseResponse from a dict -base_response_form_dict = base_response.from_dict(base_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Bulk200Response.md b/qaseio/docs/Bulk200Response.md deleted file mode 100644 index b29bce1f..00000000 --- a/qaseio/docs/Bulk200Response.md +++ /dev/null @@ -1,30 +0,0 @@ -# Bulk200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Bulk200ResponseAllOfResult**](Bulk200ResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.bulk200_response import Bulk200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of Bulk200Response from a JSON string -bulk200_response_instance = Bulk200Response.from_json(json) -# print the JSON string representation of the object -print Bulk200Response.to_json() - -# convert the object into a dict -bulk200_response_dict = bulk200_response_instance.to_dict() -# create an instance of Bulk200Response from a dict -bulk200_response_form_dict = bulk200_response.from_dict(bulk200_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Bulk200ResponseAllOfResult.md b/qaseio/docs/Bulk200ResponseAllOfResult.md deleted file mode 100644 index b6201a6c..00000000 --- a/qaseio/docs/Bulk200ResponseAllOfResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# Bulk200ResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ids** | **List[int]** | | [optional] - -## Example - -```python -from qaseio.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of Bulk200ResponseAllOfResult from a JSON string -bulk200_response_all_of_result_instance = Bulk200ResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print Bulk200ResponseAllOfResult.to_json() - -# convert the object into a dict -bulk200_response_all_of_result_dict = bulk200_response_all_of_result_instance.to_dict() -# create an instance of Bulk200ResponseAllOfResult from a dict -bulk200_response_all_of_result_form_dict = bulk200_response_all_of_result.from_dict(bulk200_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CasesApi.md b/qaseio/docs/CasesApi.md deleted file mode 100644 index ebb6214b..00000000 --- a/qaseio/docs/CasesApi.md +++ /dev/null @@ -1,756 +0,0 @@ -# qaseio.CasesApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**bulk**](CasesApi.md#bulk) | **POST** /case/{code}/bulk | Create test cases in bulk. -[**case_attach_external_issue**](CasesApi.md#case_attach_external_issue) | **POST** /case/{code}/external-issue/attach | Attach the external issues to the test cases. -[**case_detach_external_issue**](CasesApi.md#case_detach_external_issue) | **POST** /case/{code}/external-issue/detach | Detach the external issues from the test cases. -[**create_case**](CasesApi.md#create_case) | **POST** /case/{code} | Create a new test case. -[**delete_case**](CasesApi.md#delete_case) | **DELETE** /case/{code}/{id} | Delete test case. -[**get_case**](CasesApi.md#get_case) | **GET** /case/{code}/{id} | Get a specific test case. -[**get_cases**](CasesApi.md#get_cases) | **GET** /case/{code} | Get all test cases. -[**update_case**](CasesApi.md#update_case) | **PATCH** /case/{code}/{id} | Update test case. - - -# **bulk** -> Bulk200Response bulk(code, test_casebulk) - -Create test cases in bulk. - -This method allows to bulk create new test cases in a project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.bulk200_response import Bulk200Response -from qaseio.models.test_casebulk import TestCasebulk -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - test_casebulk = qaseio.TestCasebulk() # TestCasebulk | - - try: - # Create test cases in bulk. - api_response = api_instance.bulk(code, test_casebulk) - print("The response of CasesApi->bulk:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->bulk: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **test_casebulk** | [**TestCasebulk**](TestCasebulk.md)| | - -### Return type - -[**Bulk200Response**](Bulk200Response.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | List of IDs of the created cases. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **case_attach_external_issue** -> BaseResponse case_attach_external_issue(code, test_caseexternal_issues) - -Attach the external issues to the test cases. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - test_caseexternal_issues = qaseio.TestCaseexternalIssues() # TestCaseexternalIssues | - - try: - # Attach the external issues to the test cases. - api_response = api_instance.case_attach_external_issue(code, test_caseexternal_issues) - print("The response of CasesApi->case_attach_external_issue:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->case_attach_external_issue: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **test_caseexternal_issues** | [**TestCaseexternalIssues**](TestCaseexternalIssues.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **case_detach_external_issue** -> BaseResponse case_detach_external_issue(code, test_caseexternal_issues) - -Detach the external issues from the test cases. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - test_caseexternal_issues = qaseio.TestCaseexternalIssues() # TestCaseexternalIssues | - - try: - # Detach the external issues from the test cases. - api_response = api_instance.case_detach_external_issue(code, test_caseexternal_issues) - print("The response of CasesApi->case_detach_external_issue:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->case_detach_external_issue: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **test_caseexternal_issues** | [**TestCaseexternalIssues**](TestCaseexternalIssues.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_case** -> IdResponse create_case(code, test_case_create) - -Create a new test case. - -This method allows to create a new test case in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.test_case_create import TestCaseCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - test_case_create = qaseio.TestCaseCreate() # TestCaseCreate | - - try: - # Create a new test case. - api_response = api_instance.create_case(code, test_case_create) - print("The response of CasesApi->create_case:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->create_case: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **test_case_create** | [**TestCaseCreate**](TestCaseCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_case** -> IdResponse delete_case(code, id) - -Delete test case. - -This method completely deletes a test case from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete test case. - api_response = api_instance.delete_case(code, id) - print("The response of CasesApi->delete_case:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->delete_case: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Test Case. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_case** -> TestCaseResponse get_case(code, id) - -Get a specific test case. - -This method allows to retrieve a specific test case. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.test_case_response import TestCaseResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific test case. - api_response = api_instance.get_case(code, id) - print("The response of CasesApi->get_case:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->get_case: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**TestCaseResponse**](TestCaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Test Case. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_cases** -> TestCaseListResponse get_cases(code, search=search, milestone_id=milestone_id, suite_id=suite_id, severity=severity, priority=priority, type=type, behavior=behavior, automation=automation, status=status, external_issues_type=external_issues_type, external_issues_ids=external_issues_ids, include=include, limit=limit, offset=offset) - -Get all test cases. - -This method allows to retrieve all test cases stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.test_case_list_response import TestCaseListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - search = 'search_example' # str | Provide a string that will be used to search by name. (optional) - milestone_id = 56 # int | ID of milestone. (optional) - suite_id = 56 # int | ID of test suite. (optional) - severity = 'severity_example' # str | A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial (optional) - priority = 'priority_example' # str | A list of priority values separated by comma. Possible values: undefined, high, medium, low (optional) - type = 'type_example' # str | A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance (optional) - behavior = 'behavior_example' # str | A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive (optional) - automation = 'automation_example' # str | A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated (optional) - status = 'status_example' # str | A list of values separated by comma. Possible values: actual, draft deprecated (optional) - external_issues_type = 'external_issues_type_example' # str | An integration type. (optional) - external_issues_ids = ['external_issues_ids_example'] # List[str] | A list of issue IDs. (optional) - include = 'include_example' # str | A list of entities to include in response separated by comma. Possible values: external_issues. (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all test cases. - api_response = api_instance.get_cases(code, search=search, milestone_id=milestone_id, suite_id=suite_id, severity=severity, priority=priority, type=type, behavior=behavior, automation=automation, status=status, external_issues_type=external_issues_type, external_issues_ids=external_issues_ids, include=include, limit=limit, offset=offset) - print("The response of CasesApi->get_cases:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->get_cases: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **search** | **str**| Provide a string that will be used to search by name. | [optional] - **milestone_id** | **int**| ID of milestone. | [optional] - **suite_id** | **int**| ID of test suite. | [optional] - **severity** | **str**| A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial | [optional] - **priority** | **str**| A list of priority values separated by comma. Possible values: undefined, high, medium, low | [optional] - **type** | **str**| A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance | [optional] - **behavior** | **str**| A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive | [optional] - **automation** | **str**| A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated | [optional] - **status** | **str**| A list of values separated by comma. Possible values: actual, draft deprecated | [optional] - **external_issues_type** | **str**| An integration type. | [optional] - **external_issues_ids** | [**List[str]**](str.md)| A list of issue IDs. | [optional] - **include** | **str**| A list of entities to include in response separated by comma. Possible values: external_issues. | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**TestCaseListResponse**](TestCaseListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all cases. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_case** -> IdResponse update_case(code, id, test_case_update) - -Update test case. - -This method updates a test case. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.test_case_update import TestCaseUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CasesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - test_case_update = qaseio.TestCaseUpdate() # TestCaseUpdate | - - try: - # Update test case. - api_response = api_instance.update_case(code, id, test_case_update) - print("The response of CasesApi->update_case:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CasesApi->update_case: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **test_case_update** | [**TestCaseUpdate**](TestCaseUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Test Case. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Configuration.md b/qaseio/docs/Configuration.md deleted file mode 100644 index 4ee83e4c..00000000 --- a/qaseio/docs/Configuration.md +++ /dev/null @@ -1,30 +0,0 @@ -# Configuration - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] - -## Example - -```python -from qaseio.models.configuration import Configuration - -# TODO update the JSON string below -json = "{}" -# create an instance of Configuration from a JSON string -configuration_instance = Configuration.from_json(json) -# print the JSON string representation of the object -print Configuration.to_json() - -# convert the object into a dict -configuration_dict = configuration_instance.to_dict() -# create an instance of Configuration from a dict -configuration_form_dict = configuration.from_dict(configuration_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationCreate.md b/qaseio/docs/ConfigurationCreate.md deleted file mode 100644 index 0db6d135..00000000 --- a/qaseio/docs/ConfigurationCreate.md +++ /dev/null @@ -1,30 +0,0 @@ -# ConfigurationCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**group_id** | **int** | | - -## Example - -```python -from qaseio.models.configuration_create import ConfigurationCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigurationCreate from a JSON string -configuration_create_instance = ConfigurationCreate.from_json(json) -# print the JSON string representation of the object -print ConfigurationCreate.to_json() - -# convert the object into a dict -configuration_create_dict = configuration_create_instance.to_dict() -# create an instance of ConfigurationCreate from a dict -configuration_create_form_dict = configuration_create.from_dict(configuration_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationGroup.md b/qaseio/docs/ConfigurationGroup.md deleted file mode 100644 index 320d8538..00000000 --- a/qaseio/docs/ConfigurationGroup.md +++ /dev/null @@ -1,31 +0,0 @@ -# ConfigurationGroup - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**configurations** | [**List[Configuration]**](Configuration.md) | | [optional] - -## Example - -```python -from qaseio.models.configuration_group import ConfigurationGroup - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigurationGroup from a JSON string -configuration_group_instance = ConfigurationGroup.from_json(json) -# print the JSON string representation of the object -print ConfigurationGroup.to_json() - -# convert the object into a dict -configuration_group_dict = configuration_group_instance.to_dict() -# create an instance of ConfigurationGroup from a dict -configuration_group_form_dict = configuration_group.from_dict(configuration_group_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationGroupCreate.md b/qaseio/docs/ConfigurationGroupCreate.md deleted file mode 100644 index 162cb1e9..00000000 --- a/qaseio/docs/ConfigurationGroupCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# ConfigurationGroupCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | - -## Example - -```python -from qaseio.models.configuration_group_create import ConfigurationGroupCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigurationGroupCreate from a JSON string -configuration_group_create_instance = ConfigurationGroupCreate.from_json(json) -# print the JSON string representation of the object -print ConfigurationGroupCreate.to_json() - -# convert the object into a dict -configuration_group_create_dict = configuration_group_create_instance.to_dict() -# create an instance of ConfigurationGroupCreate from a dict -configuration_group_create_form_dict = configuration_group_create.from_dict(configuration_group_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationListResponse.md b/qaseio/docs/ConfigurationListResponse.md deleted file mode 100644 index 8d1e060d..00000000 --- a/qaseio/docs/ConfigurationListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ConfigurationListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**ConfigurationListResponseAllOfResult**](ConfigurationListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.configuration_list_response import ConfigurationListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigurationListResponse from a JSON string -configuration_list_response_instance = ConfigurationListResponse.from_json(json) -# print the JSON string representation of the object -print ConfigurationListResponse.to_json() - -# convert the object into a dict -configuration_list_response_dict = configuration_list_response_instance.to_dict() -# create an instance of ConfigurationListResponse from a dict -configuration_list_response_form_dict = configuration_list_response.from_dict(configuration_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationListResponseAllOfResult.md b/qaseio/docs/ConfigurationListResponseAllOfResult.md deleted file mode 100644 index 32df5d6a..00000000 --- a/qaseio/docs/ConfigurationListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# ConfigurationListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[ConfigurationGroup]**](ConfigurationGroup.md) | | [optional] - -## Example - -```python -from qaseio.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ConfigurationListResponseAllOfResult from a JSON string -configuration_list_response_all_of_result_instance = ConfigurationListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print ConfigurationListResponseAllOfResult.to_json() - -# convert the object into a dict -configuration_list_response_all_of_result_dict = configuration_list_response_all_of_result_instance.to_dict() -# create an instance of ConfigurationListResponseAllOfResult from a dict -configuration_list_response_all_of_result_form_dict = configuration_list_response_all_of_result.from_dict(configuration_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ConfigurationsApi.md b/qaseio/docs/ConfigurationsApi.md deleted file mode 100644 index 28eee16c..00000000 --- a/qaseio/docs/ConfigurationsApi.md +++ /dev/null @@ -1,277 +0,0 @@ -# qaseio.ConfigurationsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_configuration**](ConfigurationsApi.md#create_configuration) | **POST** /configuration/{code} | Create a new configuration in a particular group. -[**create_configuration_group**](ConfigurationsApi.md#create_configuration_group) | **POST** /configuration/{code}/group | Create a new configuration group. -[**get_configurations**](ConfigurationsApi.md#get_configurations) | **GET** /configuration/{code} | Get all configuration groups with configurations. - - -# **create_configuration** -> IdResponse create_configuration(code, configuration_create) - -Create a new configuration in a particular group. - -This method allows to create a configuration in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.configuration_create import ConfigurationCreate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ConfigurationsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - configuration_create = qaseio.ConfigurationCreate() # ConfigurationCreate | - - try: - # Create a new configuration in a particular group. - api_response = api_instance.create_configuration(code, configuration_create) - print("The response of ConfigurationsApi->create_configuration:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->create_configuration: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **configuration_create** | [**ConfigurationCreate**](ConfigurationCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_configuration_group** -> IdResponse create_configuration_group(code, configuration_group_create) - -Create a new configuration group. - -This method allows to create a configuration group in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.configuration_group_create import ConfigurationGroupCreate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ConfigurationsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - configuration_group_create = qaseio.ConfigurationGroupCreate() # ConfigurationGroupCreate | - - try: - # Create a new configuration group. - api_response = api_instance.create_configuration_group(code, configuration_group_create) - print("The response of ConfigurationsApi->create_configuration_group:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->create_configuration_group: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **configuration_group_create** | [**ConfigurationGroupCreate**](ConfigurationGroupCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_configurations** -> ConfigurationListResponse get_configurations(code) - -Get all configuration groups with configurations. - -This method allows to retrieve all configurations groups with configurations - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.configuration_list_response import ConfigurationListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ConfigurationsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - - try: - # Get all configuration groups with configurations. - api_response = api_instance.get_configurations(code) - print("The response of ConfigurationsApi->get_configurations:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ConfigurationsApi->get_configurations: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - -### Return type - -[**ConfigurationListResponse**](ConfigurationListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all configurations. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/CustomField.md b/qaseio/docs/CustomField.md deleted file mode 100644 index b547b92d..00000000 --- a/qaseio/docs/CustomField.md +++ /dev/null @@ -1,44 +0,0 @@ -# CustomField - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**entity** | **str** | | [optional] -**type** | **str** | | [optional] -**placeholder** | **str** | | [optional] -**default_value** | **str** | | [optional] -**value** | **str** | | [optional] -**is_required** | **bool** | | [optional] -**is_visible** | **bool** | | [optional] -**is_filterable** | **bool** | | [optional] -**is_enabled_for_all_projects** | **bool** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**projects_codes** | **List[str]** | | [optional] - -## Example - -```python -from qaseio.models.custom_field import CustomField - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomField from a JSON string -custom_field_instance = CustomField.from_json(json) -# print the JSON string representation of the object -print CustomField.to_json() - -# convert the object into a dict -custom_field_dict = custom_field_instance.to_dict() -# create an instance of CustomField from a dict -custom_field_form_dict = custom_field.from_dict(custom_field_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldCreate.md b/qaseio/docs/CustomFieldCreate.md deleted file mode 100644 index 5a88e5f7..00000000 --- a/qaseio/docs/CustomFieldCreate.md +++ /dev/null @@ -1,39 +0,0 @@ -# CustomFieldCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**value** | [**List[CustomFieldCreateValueInner]**](CustomFieldCreateValueInner.md) | Required if type one of: 3 - selectbox; 5 - radio; 6 - multiselect; | [optional] -**entity** | **int** | Possible values: 0 - case; 1 - run; 2 - defect; | -**type** | **int** | Possible values: 0 - number; 1 - string; 2 - text; 3 - selectbox; 4 - checkbox; 5 - radio; 6 - multiselect; 7 - url; 8 - user; 9 - datetime; | -**placeholder** | **str** | | [optional] -**default_value** | **str** | | [optional] -**is_filterable** | **bool** | | [optional] -**is_visible** | **bool** | | [optional] -**is_required** | **bool** | | [optional] -**is_enabled_for_all_projects** | **bool** | | [optional] -**projects_codes** | **List[str]** | | [optional] - -## Example - -```python -from qaseio.models.custom_field_create import CustomFieldCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldCreate from a JSON string -custom_field_create_instance = CustomFieldCreate.from_json(json) -# print the JSON string representation of the object -print CustomFieldCreate.to_json() - -# convert the object into a dict -custom_field_create_dict = custom_field_create_instance.to_dict() -# create an instance of CustomFieldCreate from a dict -custom_field_create_form_dict = custom_field_create.from_dict(custom_field_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldCreateValueInner.md b/qaseio/docs/CustomFieldCreateValueInner.md deleted file mode 100644 index e466ebf9..00000000 --- a/qaseio/docs/CustomFieldCreateValueInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# CustomFieldCreateValueInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] - -## Example - -```python -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldCreateValueInner from a JSON string -custom_field_create_value_inner_instance = CustomFieldCreateValueInner.from_json(json) -# print the JSON string representation of the object -print CustomFieldCreateValueInner.to_json() - -# convert the object into a dict -custom_field_create_value_inner_dict = custom_field_create_value_inner_instance.to_dict() -# create an instance of CustomFieldCreateValueInner from a dict -custom_field_create_value_inner_form_dict = custom_field_create_value_inner.from_dict(custom_field_create_value_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldListResponse.md b/qaseio/docs/CustomFieldListResponse.md deleted file mode 100644 index c70b4c65..00000000 --- a/qaseio/docs/CustomFieldListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# CustomFieldListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**CustomFieldsResponseAllOfResult**](CustomFieldsResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.custom_field_list_response import CustomFieldListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldListResponse from a JSON string -custom_field_list_response_instance = CustomFieldListResponse.from_json(json) -# print the JSON string representation of the object -print CustomFieldListResponse.to_json() - -# convert the object into a dict -custom_field_list_response_dict = custom_field_list_response_instance.to_dict() -# create an instance of CustomFieldListResponse from a dict -custom_field_list_response_form_dict = custom_field_list_response.from_dict(custom_field_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldResponse.md b/qaseio/docs/CustomFieldResponse.md deleted file mode 100644 index ce76e29b..00000000 --- a/qaseio/docs/CustomFieldResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# CustomFieldResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**CustomField**](CustomField.md) | | [optional] - -## Example - -```python -from qaseio.models.custom_field_response import CustomFieldResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldResponse from a JSON string -custom_field_response_instance = CustomFieldResponse.from_json(json) -# print the JSON string representation of the object -print CustomFieldResponse.to_json() - -# convert the object into a dict -custom_field_response_dict = custom_field_response_instance.to_dict() -# create an instance of CustomFieldResponse from a dict -custom_field_response_form_dict = custom_field_response.from_dict(custom_field_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldUpdate.md b/qaseio/docs/CustomFieldUpdate.md deleted file mode 100644 index 4eb9da3e..00000000 --- a/qaseio/docs/CustomFieldUpdate.md +++ /dev/null @@ -1,38 +0,0 @@ -# CustomFieldUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**value** | [**List[CustomFieldCreateValueInner]**](CustomFieldCreateValueInner.md) | | [optional] -**replace_values** | **Dict[str, str]** | Dictionary of old values and their replacemants | [optional] -**placeholder** | **str** | | [optional] -**default_value** | **str** | | [optional] -**is_filterable** | **bool** | | [optional] -**is_visible** | **bool** | | [optional] -**is_required** | **bool** | | [optional] -**is_enabled_for_all_projects** | **bool** | | [optional] -**projects_codes** | **List[str]** | | [optional] - -## Example - -```python -from qaseio.models.custom_field_update import CustomFieldUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldUpdate from a JSON string -custom_field_update_instance = CustomFieldUpdate.from_json(json) -# print the JSON string representation of the object -print CustomFieldUpdate.to_json() - -# convert the object into a dict -custom_field_update_dict = custom_field_update_instance.to_dict() -# create an instance of CustomFieldUpdate from a dict -custom_field_update_form_dict = custom_field_update.from_dict(custom_field_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldValue.md b/qaseio/docs/CustomFieldValue.md deleted file mode 100644 index 67630220..00000000 --- a/qaseio/docs/CustomFieldValue.md +++ /dev/null @@ -1,30 +0,0 @@ -# CustomFieldValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**value** | **str** | | [optional] - -## Example - -```python -from qaseio.models.custom_field_value import CustomFieldValue - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldValue from a JSON string -custom_field_value_instance = CustomFieldValue.from_json(json) -# print the JSON string representation of the object -print CustomFieldValue.to_json() - -# convert the object into a dict -custom_field_value_dict = custom_field_value_instance.to_dict() -# create an instance of CustomFieldValue from a dict -custom_field_value_form_dict = custom_field_value.from_dict(custom_field_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldsApi.md b/qaseio/docs/CustomFieldsApi.md deleted file mode 100644 index 134d1661..00000000 --- a/qaseio/docs/CustomFieldsApi.md +++ /dev/null @@ -1,453 +0,0 @@ -# qaseio.CustomFieldsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_custom_field**](CustomFieldsApi.md#create_custom_field) | **POST** /custom_field | Create new Custom Field. -[**delete_custom_field**](CustomFieldsApi.md#delete_custom_field) | **DELETE** /custom_field/{id} | Delete Custom Field by id. -[**get_custom_field**](CustomFieldsApi.md#get_custom_field) | **GET** /custom_field/{id} | Get Custom Field by id. -[**get_custom_fields**](CustomFieldsApi.md#get_custom_fields) | **GET** /custom_field | Get all Custom Fields. -[**update_custom_field**](CustomFieldsApi.md#update_custom_field) | **PATCH** /custom_field/{id} | Update Custom Field by id. - - -# **create_custom_field** -> IdResponse create_custom_field(custom_field_create) - -Create new Custom Field. - -This method allows to create custom field. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.custom_field_create import CustomFieldCreate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CustomFieldsApi(api_client) - custom_field_create = qaseio.CustomFieldCreate() # CustomFieldCreate | - - try: - # Create new Custom Field. - api_response = api_instance.create_custom_field(custom_field_create) - print("The response of CustomFieldsApi->create_custom_field:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CustomFieldsApi->create_custom_field: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **custom_field_create** | [**CustomFieldCreate**](CustomFieldCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Created Custom Field id. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_custom_field** -> BaseResponse delete_custom_field(id) - -Delete Custom Field by id. - -This method allows to delete custom field. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CustomFieldsApi(api_client) - id = 56 # int | Identifier. - - try: - # Delete Custom Field by id. - api_response = api_instance.delete_custom_field(id) - print("The response of CustomFieldsApi->delete_custom_field:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CustomFieldsApi->delete_custom_field: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| Identifier. | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Custom Field removal result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_custom_field** -> CustomFieldResponse get_custom_field(id) - -Get Custom Field by id. - -This method allows to retrieve custom field. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.custom_field_response import CustomFieldResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CustomFieldsApi(api_client) - id = 56 # int | Identifier. - - try: - # Get Custom Field by id. - api_response = api_instance.get_custom_field(id) - print("The response of CustomFieldsApi->get_custom_field:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CustomFieldsApi->get_custom_field: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| Identifier. | - -### Return type - -[**CustomFieldResponse**](CustomFieldResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Custom Field. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_custom_fields** -> CustomFieldListResponse get_custom_fields(entity=entity, type=type, limit=limit, offset=offset) - -Get all Custom Fields. - -This method allows to retrieve and filter custom fields. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.custom_field_list_response import CustomFieldListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CustomFieldsApi(api_client) - entity = 'entity_example' # str | (optional) - type = 'type_example' # str | (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all Custom Fields. - api_response = api_instance.get_custom_fields(entity=entity, type=type, limit=limit, offset=offset) - print("The response of CustomFieldsApi->get_custom_fields:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CustomFieldsApi->get_custom_fields: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **entity** | **str**| | [optional] - **type** | **str**| | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**CustomFieldListResponse**](CustomFieldListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Custom Field list. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_custom_field** -> BaseResponse update_custom_field(id, custom_field_update) - -Update Custom Field by id. - -This method allows to update custom field. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.custom_field_update import CustomFieldUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.CustomFieldsApi(api_client) - id = 56 # int | Identifier. - custom_field_update = qaseio.CustomFieldUpdate() # CustomFieldUpdate | - - try: - # Update Custom Field by id. - api_response = api_instance.update_custom_field(id, custom_field_update) - print("The response of CustomFieldsApi->update_custom_field:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling CustomFieldsApi->update_custom_field: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| Identifier. | - **custom_field_update** | [**CustomFieldUpdate**](CustomFieldUpdate.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Custom Field update result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/CustomFieldsResponse.md b/qaseio/docs/CustomFieldsResponse.md deleted file mode 100644 index 7c86e8b6..00000000 --- a/qaseio/docs/CustomFieldsResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# CustomFieldsResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**CustomFieldsResponseAllOfResult**](CustomFieldsResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.custom_fields_response import CustomFieldsResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldsResponse from a JSON string -custom_fields_response_instance = CustomFieldsResponse.from_json(json) -# print the JSON string representation of the object -print CustomFieldsResponse.to_json() - -# convert the object into a dict -custom_fields_response_dict = custom_fields_response_instance.to_dict() -# create an instance of CustomFieldsResponse from a dict -custom_fields_response_form_dict = custom_fields_response.from_dict(custom_fields_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/CustomFieldsResponseAllOfResult.md b/qaseio/docs/CustomFieldsResponseAllOfResult.md deleted file mode 100644 index 83801454..00000000 --- a/qaseio/docs/CustomFieldsResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# CustomFieldsResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[CustomField]**](CustomField.md) | | [optional] - -## Example - -```python -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomFieldsResponseAllOfResult from a JSON string -custom_fields_response_all_of_result_instance = CustomFieldsResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print CustomFieldsResponseAllOfResult.to_json() - -# convert the object into a dict -custom_fields_response_all_of_result_dict = custom_fields_response_all_of_result_instance.to_dict() -# create an instance of CustomFieldsResponseAllOfResult from a dict -custom_fields_response_all_of_result_form_dict = custom_fields_response_all_of_result.from_dict(custom_fields_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Defect.md b/qaseio/docs/Defect.md deleted file mode 100644 index ae77e67c..00000000 --- a/qaseio/docs/Defect.md +++ /dev/null @@ -1,45 +0,0 @@ -# Defect - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**actual_result** | **str** | | [optional] -**severity** | **str** | | [optional] -**status** | **str** | | [optional] -**milestone_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**resolved_at** | **datetime** | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**external_data** | **str** | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] - -## Example - -```python -from qaseio.models.defect import Defect - -# TODO update the JSON string below -json = "{}" -# create an instance of Defect from a JSON string -defect_instance = Defect.from_json(json) -# print the JSON string representation of the object -print Defect.to_json() - -# convert the object into a dict -defect_dict = defect_instance.to_dict() -# create an instance of Defect from a dict -defect_form_dict = defect.from_dict(defect_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectCreate.md b/qaseio/docs/DefectCreate.md deleted file mode 100644 index f7a0ce3e..00000000 --- a/qaseio/docs/DefectCreate.md +++ /dev/null @@ -1,35 +0,0 @@ -# DefectCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**actual_result** | **str** | | -**severity** | **int** | | -**milestone_id** | **int** | | [optional] -**attachments** | **List[str]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] -**tags** | **List[str]** | | [optional] - -## Example - -```python -from qaseio.models.defect_create import DefectCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectCreate from a JSON string -defect_create_instance = DefectCreate.from_json(json) -# print the JSON string representation of the object -print DefectCreate.to_json() - -# convert the object into a dict -defect_create_dict = defect_create_instance.to_dict() -# create an instance of DefectCreate from a dict -defect_create_form_dict = defect_create.from_dict(defect_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectListResponse.md b/qaseio/docs/DefectListResponse.md deleted file mode 100644 index 4d53d24d..00000000 --- a/qaseio/docs/DefectListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DefectListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**DefectListResponseAllOfResult**](DefectListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.defect_list_response import DefectListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectListResponse from a JSON string -defect_list_response_instance = DefectListResponse.from_json(json) -# print the JSON string representation of the object -print DefectListResponse.to_json() - -# convert the object into a dict -defect_list_response_dict = defect_list_response_instance.to_dict() -# create an instance of DefectListResponse from a dict -defect_list_response_form_dict = defect_list_response.from_dict(defect_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectListResponseAllOfResult.md b/qaseio/docs/DefectListResponseAllOfResult.md deleted file mode 100644 index 565bf51b..00000000 --- a/qaseio/docs/DefectListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# DefectListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Defect]**](Defect.md) | | [optional] - -## Example - -```python -from qaseio.models.defect_list_response_all_of_result import DefectListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectListResponseAllOfResult from a JSON string -defect_list_response_all_of_result_instance = DefectListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print DefectListResponseAllOfResult.to_json() - -# convert the object into a dict -defect_list_response_all_of_result_dict = defect_list_response_all_of_result_instance.to_dict() -# create an instance of DefectListResponseAllOfResult from a dict -defect_list_response_all_of_result_form_dict = defect_list_response_all_of_result.from_dict(defect_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectQuery.md b/qaseio/docs/DefectQuery.md deleted file mode 100644 index b8e8fa31..00000000 --- a/qaseio/docs/DefectQuery.md +++ /dev/null @@ -1,43 +0,0 @@ -# DefectQuery - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**actual_result** | **str** | | [optional] -**severity** | **str** | | [optional] -**status** | **str** | | [optional] -**milestone_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**resolved** | **datetime** | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**external_data** | **str** | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.defect_query import DefectQuery - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectQuery from a JSON string -defect_query_instance = DefectQuery.from_json(json) -# print the JSON string representation of the object -print DefectQuery.to_json() - -# convert the object into a dict -defect_query_dict = defect_query_instance.to_dict() -# create an instance of DefectQuery from a dict -defect_query_form_dict = defect_query.from_dict(defect_query_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectResponse.md b/qaseio/docs/DefectResponse.md deleted file mode 100644 index 86d58bae..00000000 --- a/qaseio/docs/DefectResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# DefectResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Defect**](Defect.md) | | [optional] - -## Example - -```python -from qaseio.models.defect_response import DefectResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectResponse from a JSON string -defect_response_instance = DefectResponse.from_json(json) -# print the JSON string representation of the object -print DefectResponse.to_json() - -# convert the object into a dict -defect_response_dict = defect_response_instance.to_dict() -# create an instance of DefectResponse from a dict -defect_response_form_dict = defect_response.from_dict(defect_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectStatus.md b/qaseio/docs/DefectStatus.md deleted file mode 100644 index 4c9892cd..00000000 --- a/qaseio/docs/DefectStatus.md +++ /dev/null @@ -1,29 +0,0 @@ -# DefectStatus - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | | - -## Example - -```python -from qaseio.models.defect_status import DefectStatus - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectStatus from a JSON string -defect_status_instance = DefectStatus.from_json(json) -# print the JSON string representation of the object -print DefectStatus.to_json() - -# convert the object into a dict -defect_status_dict = defect_status_instance.to_dict() -# create an instance of DefectStatus from a dict -defect_status_form_dict = defect_status.from_dict(defect_status_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectUpdate.md b/qaseio/docs/DefectUpdate.md deleted file mode 100644 index 318bf1e1..00000000 --- a/qaseio/docs/DefectUpdate.md +++ /dev/null @@ -1,35 +0,0 @@ -# DefectUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**actual_result** | **str** | | [optional] -**severity** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**attachments** | **List[str]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] -**tags** | **List[str]** | | [optional] - -## Example - -```python -from qaseio.models.defect_update import DefectUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of DefectUpdate from a JSON string -defect_update_instance = DefectUpdate.from_json(json) -# print the JSON string representation of the object -print DefectUpdate.to_json() - -# convert the object into a dict -defect_update_dict = defect_update_instance.to_dict() -# create an instance of DefectUpdate from a dict -defect_update_form_dict = defect_update.from_dict(defect_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/DefectsApi.md b/qaseio/docs/DefectsApi.md deleted file mode 100644 index 909a01d8..00000000 --- a/qaseio/docs/DefectsApi.md +++ /dev/null @@ -1,646 +0,0 @@ -# qaseio.DefectsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_defect**](DefectsApi.md#create_defect) | **POST** /defect/{code} | Create a new defect. -[**delete_defect**](DefectsApi.md#delete_defect) | **DELETE** /defect/{code}/{id} | Delete defect. -[**get_defect**](DefectsApi.md#get_defect) | **GET** /defect/{code}/{id} | Get a specific defect. -[**get_defects**](DefectsApi.md#get_defects) | **GET** /defect/{code} | Get all defects. -[**resolve_defect**](DefectsApi.md#resolve_defect) | **PATCH** /defect/{code}/resolve/{id} | Resolve a specific defect. -[**update_defect**](DefectsApi.md#update_defect) | **PATCH** /defect/{code}/{id} | Update defect. -[**update_defect_status**](DefectsApi.md#update_defect_status) | **PATCH** /defect/{code}/status/{id} | Update a specific defect status. - - -# **create_defect** -> IdResponse create_defect(code, defect_create) - -Create a new defect. - -This method allows to create a defect in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.defect_create import DefectCreate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - defect_create = qaseio.DefectCreate() # DefectCreate | - - try: - # Create a new defect. - api_response = api_instance.create_defect(code, defect_create) - print("The response of DefectsApi->create_defect:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->create_defect: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **defect_create** | [**DefectCreate**](DefectCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_defect** -> IdResponse delete_defect(code, id) - -Delete defect. - -This method completely deletes a defect from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete defect. - api_response = api_instance.delete_defect(code, id) - print("The response of DefectsApi->delete_defect:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->delete_defect: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_defect** -> DefectResponse get_defect(code, id) - -Get a specific defect. - -This method allows to retrieve a specific defect. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.defect_response import DefectResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific defect. - api_response = api_instance.get_defect(code, id) - print("The response of DefectsApi->get_defect:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->get_defect: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**DefectResponse**](DefectResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A defect. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_defects** -> DefectListResponse get_defects(code, status=status, limit=limit, offset=offset) - -Get all defects. - -This method allows to retrieve all defects stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.defect_list_response import DefectListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - status = 'status_example' # str | (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all defects. - api_response = api_instance.get_defects(code, status=status, limit=limit, offset=offset) - print("The response of DefectsApi->get_defects:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->get_defects: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **status** | **str**| | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**DefectListResponse**](DefectListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all defects. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **resolve_defect** -> IdResponse resolve_defect(code, id) - -Resolve a specific defect. - -This method allows to resolve a specific defect. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Resolve a specific defect. - api_response = api_instance.resolve_defect(code, id) - print("The response of DefectsApi->resolve_defect:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->resolve_defect: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_defect** -> IdResponse update_defect(code, id, defect_update) - -Update defect. - -This method updates a defect. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.defect_update import DefectUpdate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - defect_update = qaseio.DefectUpdate() # DefectUpdate | - - try: - # Update defect. - api_response = api_instance.update_defect(code, id, defect_update) - print("The response of DefectsApi->update_defect:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->update_defect: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **defect_update** | [**DefectUpdate**](DefectUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_defect_status** -> BaseResponse update_defect_status(code, id, defect_status) - -Update a specific defect status. - -This method allows to update a specific defect status. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.defect_status import DefectStatus -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.DefectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - defect_status = qaseio.DefectStatus() # DefectStatus | - - try: - # Update a specific defect status. - api_response = api_instance.update_defect_status(code, id, defect_status) - print("The response of DefectsApi->update_defect_status:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefectsApi->update_defect_status: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **defect_status** | [**DefectStatus**](DefectStatus.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Environment.md b/qaseio/docs/Environment.md deleted file mode 100644 index fd811697..00000000 --- a/qaseio/docs/Environment.md +++ /dev/null @@ -1,33 +0,0 @@ -# Environment - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**slug** | **str** | | [optional] -**host** | **str** | | [optional] - -## Example - -```python -from qaseio.models.environment import Environment - -# TODO update the JSON string below -json = "{}" -# create an instance of Environment from a JSON string -environment_instance = Environment.from_json(json) -# print the JSON string representation of the object -print Environment.to_json() - -# convert the object into a dict -environment_dict = environment_instance.to_dict() -# create an instance of Environment from a dict -environment_form_dict = environment.from_dict(environment_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentCreate.md b/qaseio/docs/EnvironmentCreate.md deleted file mode 100644 index bd9aa48c..00000000 --- a/qaseio/docs/EnvironmentCreate.md +++ /dev/null @@ -1,32 +0,0 @@ -# EnvironmentCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**description** | **str** | | [optional] -**slug** | **str** | | -**host** | **str** | | [optional] - -## Example - -```python -from qaseio.models.environment_create import EnvironmentCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of EnvironmentCreate from a JSON string -environment_create_instance = EnvironmentCreate.from_json(json) -# print the JSON string representation of the object -print EnvironmentCreate.to_json() - -# convert the object into a dict -environment_create_dict = environment_create_instance.to_dict() -# create an instance of EnvironmentCreate from a dict -environment_create_form_dict = environment_create.from_dict(environment_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentListResponse.md b/qaseio/docs/EnvironmentListResponse.md deleted file mode 100644 index 41531174..00000000 --- a/qaseio/docs/EnvironmentListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# EnvironmentListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**EnvironmentListResponseAllOfResult**](EnvironmentListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.environment_list_response import EnvironmentListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of EnvironmentListResponse from a JSON string -environment_list_response_instance = EnvironmentListResponse.from_json(json) -# print the JSON string representation of the object -print EnvironmentListResponse.to_json() - -# convert the object into a dict -environment_list_response_dict = environment_list_response_instance.to_dict() -# create an instance of EnvironmentListResponse from a dict -environment_list_response_form_dict = environment_list_response.from_dict(environment_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentListResponseAllOfResult.md b/qaseio/docs/EnvironmentListResponseAllOfResult.md deleted file mode 100644 index 84e4228b..00000000 --- a/qaseio/docs/EnvironmentListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# EnvironmentListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Environment]**](Environment.md) | | [optional] - -## Example - -```python -from qaseio.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of EnvironmentListResponseAllOfResult from a JSON string -environment_list_response_all_of_result_instance = EnvironmentListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print EnvironmentListResponseAllOfResult.to_json() - -# convert the object into a dict -environment_list_response_all_of_result_dict = environment_list_response_all_of_result_instance.to_dict() -# create an instance of EnvironmentListResponseAllOfResult from a dict -environment_list_response_all_of_result_form_dict = environment_list_response_all_of_result.from_dict(environment_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentResponse.md b/qaseio/docs/EnvironmentResponse.md deleted file mode 100644 index c2d5a86b..00000000 --- a/qaseio/docs/EnvironmentResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# EnvironmentResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Environment**](Environment.md) | | [optional] - -## Example - -```python -from qaseio.models.environment_response import EnvironmentResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of EnvironmentResponse from a JSON string -environment_response_instance = EnvironmentResponse.from_json(json) -# print the JSON string representation of the object -print EnvironmentResponse.to_json() - -# convert the object into a dict -environment_response_dict = environment_response_instance.to_dict() -# create an instance of EnvironmentResponse from a dict -environment_response_form_dict = environment_response.from_dict(environment_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentUpdate.md b/qaseio/docs/EnvironmentUpdate.md deleted file mode 100644 index c120c5ff..00000000 --- a/qaseio/docs/EnvironmentUpdate.md +++ /dev/null @@ -1,32 +0,0 @@ -# EnvironmentUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**slug** | **str** | | [optional] -**host** | **str** | | [optional] - -## Example - -```python -from qaseio.models.environment_update import EnvironmentUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of EnvironmentUpdate from a JSON string -environment_update_instance = EnvironmentUpdate.from_json(json) -# print the JSON string representation of the object -print EnvironmentUpdate.to_json() - -# convert the object into a dict -environment_update_dict = environment_update_instance.to_dict() -# create an instance of EnvironmentUpdate from a dict -environment_update_form_dict = environment_update.from_dict(environment_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/EnvironmentsApi.md b/qaseio/docs/EnvironmentsApi.md deleted file mode 100644 index 938021c0..00000000 --- a/qaseio/docs/EnvironmentsApi.md +++ /dev/null @@ -1,460 +0,0 @@ -# qaseio.EnvironmentsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_environment**](EnvironmentsApi.md#create_environment) | **POST** /environment/{code} | Create a new environment. -[**delete_environment**](EnvironmentsApi.md#delete_environment) | **DELETE** /environment/{code}/{id} | Delete environment. -[**get_environment**](EnvironmentsApi.md#get_environment) | **GET** /environment/{code}/{id} | Get a specific environment. -[**get_environments**](EnvironmentsApi.md#get_environments) | **GET** /environment/{code} | Get all environments. -[**update_environment**](EnvironmentsApi.md#update_environment) | **PATCH** /environment/{code}/{id} | Update environment. - - -# **create_environment** -> IdResponse create_environment(code, environment_create) - -Create a new environment. - -This method allows to create an environment in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.environment_create import EnvironmentCreate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.EnvironmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - environment_create = qaseio.EnvironmentCreate() # EnvironmentCreate | - - try: - # Create a new environment. - api_response = api_instance.create_environment(code, environment_create) - print("The response of EnvironmentsApi->create_environment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EnvironmentsApi->create_environment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **environment_create** | [**EnvironmentCreate**](EnvironmentCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_environment** -> IdResponse delete_environment(code, id) - -Delete environment. - -This method completely deletes an environment from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.EnvironmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete environment. - api_response = api_instance.delete_environment(code, id) - print("The response of EnvironmentsApi->delete_environment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EnvironmentsApi->delete_environment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_environment** -> EnvironmentResponse get_environment(code, id) - -Get a specific environment. - -This method allows to retrieve a specific environment. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.environment_response import EnvironmentResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.EnvironmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific environment. - api_response = api_instance.get_environment(code, id) - print("The response of EnvironmentsApi->get_environment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EnvironmentsApi->get_environment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**EnvironmentResponse**](EnvironmentResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | An environment. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_environments** -> EnvironmentListResponse get_environments(code, limit=limit, offset=offset) - -Get all environments. - -This method allows to retrieve all environments stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.environment_list_response import EnvironmentListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.EnvironmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all environments. - api_response = api_instance.get_environments(code, limit=limit, offset=offset) - print("The response of EnvironmentsApi->get_environments:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EnvironmentsApi->get_environments: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**EnvironmentListResponse**](EnvironmentListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all environments. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_environment** -> IdResponse update_environment(code, id, environment_update) - -Update environment. - -This method updates an environment. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.environment_update import EnvironmentUpdate -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.EnvironmentsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - environment_update = qaseio.EnvironmentUpdate() # EnvironmentUpdate | - - try: - # Update environment. - api_response = api_instance.update_environment(code, id, environment_update) - print("The response of EnvironmentsApi->update_environment:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EnvironmentsApi->update_environment: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **environment_update** | [**EnvironmentUpdate**](EnvironmentUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/ExternalIssue.md b/qaseio/docs/ExternalIssue.md deleted file mode 100644 index d34c67b2..00000000 --- a/qaseio/docs/ExternalIssue.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExternalIssue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**issues** | [**List[ExternalIssueIssuesInner]**](ExternalIssueIssuesInner.md) | | [optional] - -## Example - -```python -from qaseio.models.external_issue import ExternalIssue - -# TODO update the JSON string below -json = "{}" -# create an instance of ExternalIssue from a JSON string -external_issue_instance = ExternalIssue.from_json(json) -# print the JSON string representation of the object -print ExternalIssue.to_json() - -# convert the object into a dict -external_issue_dict = external_issue_instance.to_dict() -# create an instance of ExternalIssue from a dict -external_issue_form_dict = external_issue.from_dict(external_issue_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ExternalIssueIssuesInner.md b/qaseio/docs/ExternalIssueIssuesInner.md deleted file mode 100644 index 8b1faae6..00000000 --- a/qaseio/docs/ExternalIssueIssuesInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExternalIssueIssuesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **str** | | [optional] -**link** | **str** | | [optional] - -## Example - -```python -from qaseio.models.external_issue_issues_inner import ExternalIssueIssuesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of ExternalIssueIssuesInner from a JSON string -external_issue_issues_inner_instance = ExternalIssueIssuesInner.from_json(json) -# print the JSON string representation of the object -print ExternalIssueIssuesInner.to_json() - -# convert the object into a dict -external_issue_issues_inner_dict = external_issue_issues_inner_instance.to_dict() -# create an instance of ExternalIssueIssuesInner from a dict -external_issue_issues_inner_form_dict = external_issue_issues_inner.from_dict(external_issue_issues_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/HashResponse.md b/qaseio/docs/HashResponse.md deleted file mode 100644 index a83724ac..00000000 --- a/qaseio/docs/HashResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# HashResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**HashResponseAllOfResult**](HashResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.hash_response import HashResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of HashResponse from a JSON string -hash_response_instance = HashResponse.from_json(json) -# print the JSON string representation of the object -print HashResponse.to_json() - -# convert the object into a dict -hash_response_dict = hash_response_instance.to_dict() -# create an instance of HashResponse from a dict -hash_response_form_dict = hash_response.from_dict(hash_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/HashResponseAllOfResult.md b/qaseio/docs/HashResponseAllOfResult.md deleted file mode 100644 index d724ae82..00000000 --- a/qaseio/docs/HashResponseAllOfResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# HashResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] - -## Example - -```python -from qaseio.models.hash_response_all_of_result import HashResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of HashResponseAllOfResult from a JSON string -hash_response_all_of_result_instance = HashResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print HashResponseAllOfResult.to_json() - -# convert the object into a dict -hash_response_all_of_result_dict = hash_response_all_of_result_instance.to_dict() -# create an instance of HashResponseAllOfResult from a dict -hash_response_all_of_result_form_dict = hash_response_all_of_result.from_dict(hash_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/IdResponse.md b/qaseio/docs/IdResponse.md deleted file mode 100644 index 3b43a8ad..00000000 --- a/qaseio/docs/IdResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# IdResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**IdResponseAllOfResult**](IdResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.id_response import IdResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of IdResponse from a JSON string -id_response_instance = IdResponse.from_json(json) -# print the JSON string representation of the object -print IdResponse.to_json() - -# convert the object into a dict -id_response_dict = id_response_instance.to_dict() -# create an instance of IdResponse from a dict -id_response_form_dict = id_response.from_dict(id_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/IdResponseAllOfResult.md b/qaseio/docs/IdResponseAllOfResult.md deleted file mode 100644 index d4002bcb..00000000 --- a/qaseio/docs/IdResponseAllOfResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# IdResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] - -## Example - -```python -from qaseio.models.id_response_all_of_result import IdResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of IdResponseAllOfResult from a JSON string -id_response_all_of_result_instance = IdResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print IdResponseAllOfResult.to_json() - -# convert the object into a dict -id_response_all_of_result_dict = id_response_all_of_result_instance.to_dict() -# create an instance of IdResponseAllOfResult from a dict -id_response_all_of_result_form_dict = id_response_all_of_result.from_dict(id_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Milestone.md b/qaseio/docs/Milestone.md deleted file mode 100644 index 2ada426f..00000000 --- a/qaseio/docs/Milestone.md +++ /dev/null @@ -1,37 +0,0 @@ -# Milestone - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**status** | **str** | | [optional] -**due_date** | **datetime** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.milestone import Milestone - -# TODO update the JSON string below -json = "{}" -# create an instance of Milestone from a JSON string -milestone_instance = Milestone.from_json(json) -# print the JSON string representation of the object -print Milestone.to_json() - -# convert the object into a dict -milestone_dict = milestone_instance.to_dict() -# create an instance of Milestone from a dict -milestone_form_dict = milestone.from_dict(milestone_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestoneCreate.md b/qaseio/docs/MilestoneCreate.md deleted file mode 100644 index e09f9ee4..00000000 --- a/qaseio/docs/MilestoneCreate.md +++ /dev/null @@ -1,32 +0,0 @@ -# MilestoneCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**description** | **str** | | [optional] -**status** | **str** | | [optional] -**due_date** | **int** | unix timestamp | [optional] - -## Example - -```python -from qaseio.models.milestone_create import MilestoneCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of MilestoneCreate from a JSON string -milestone_create_instance = MilestoneCreate.from_json(json) -# print the JSON string representation of the object -print MilestoneCreate.to_json() - -# convert the object into a dict -milestone_create_dict = milestone_create_instance.to_dict() -# create an instance of MilestoneCreate from a dict -milestone_create_form_dict = milestone_create.from_dict(milestone_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestoneListResponse.md b/qaseio/docs/MilestoneListResponse.md deleted file mode 100644 index 13ac6e8d..00000000 --- a/qaseio/docs/MilestoneListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# MilestoneListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**MilestoneListResponseAllOfResult**](MilestoneListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.milestone_list_response import MilestoneListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of MilestoneListResponse from a JSON string -milestone_list_response_instance = MilestoneListResponse.from_json(json) -# print the JSON string representation of the object -print MilestoneListResponse.to_json() - -# convert the object into a dict -milestone_list_response_dict = milestone_list_response_instance.to_dict() -# create an instance of MilestoneListResponse from a dict -milestone_list_response_form_dict = milestone_list_response.from_dict(milestone_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestoneListResponseAllOfResult.md b/qaseio/docs/MilestoneListResponseAllOfResult.md deleted file mode 100644 index 1b3960a5..00000000 --- a/qaseio/docs/MilestoneListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# MilestoneListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Milestone]**](Milestone.md) | | [optional] - -## Example - -```python -from qaseio.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of MilestoneListResponseAllOfResult from a JSON string -milestone_list_response_all_of_result_instance = MilestoneListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print MilestoneListResponseAllOfResult.to_json() - -# convert the object into a dict -milestone_list_response_all_of_result_dict = milestone_list_response_all_of_result_instance.to_dict() -# create an instance of MilestoneListResponseAllOfResult from a dict -milestone_list_response_all_of_result_form_dict = milestone_list_response_all_of_result.from_dict(milestone_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestoneResponse.md b/qaseio/docs/MilestoneResponse.md deleted file mode 100644 index 741f8a21..00000000 --- a/qaseio/docs/MilestoneResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# MilestoneResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Milestone**](Milestone.md) | | [optional] - -## Example - -```python -from qaseio.models.milestone_response import MilestoneResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of MilestoneResponse from a JSON string -milestone_response_instance = MilestoneResponse.from_json(json) -# print the JSON string representation of the object -print MilestoneResponse.to_json() - -# convert the object into a dict -milestone_response_dict = milestone_response_instance.to_dict() -# create an instance of MilestoneResponse from a dict -milestone_response_form_dict = milestone_response.from_dict(milestone_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestoneUpdate.md b/qaseio/docs/MilestoneUpdate.md deleted file mode 100644 index 555c9937..00000000 --- a/qaseio/docs/MilestoneUpdate.md +++ /dev/null @@ -1,31 +0,0 @@ -# MilestoneUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**status** | **str** | | [optional] - -## Example - -```python -from qaseio.models.milestone_update import MilestoneUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of MilestoneUpdate from a JSON string -milestone_update_instance = MilestoneUpdate.from_json(json) -# print the JSON string representation of the object -print MilestoneUpdate.to_json() - -# convert the object into a dict -milestone_update_dict = milestone_update_instance.to_dict() -# create an instance of MilestoneUpdate from a dict -milestone_update_form_dict = milestone_update.from_dict(milestone_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/MilestonesApi.md b/qaseio/docs/MilestonesApi.md deleted file mode 100644 index a392301c..00000000 --- a/qaseio/docs/MilestonesApi.md +++ /dev/null @@ -1,463 +0,0 @@ -# qaseio.MilestonesApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_milestone**](MilestonesApi.md#create_milestone) | **POST** /milestone/{code} | Create a new milestone. -[**delete_milestone**](MilestonesApi.md#delete_milestone) | **DELETE** /milestone/{code}/{id} | Delete milestone. -[**get_milestone**](MilestonesApi.md#get_milestone) | **GET** /milestone/{code}/{id} | Get a specific milestone. -[**get_milestones**](MilestonesApi.md#get_milestones) | **GET** /milestone/{code} | Get all milestones. -[**update_milestone**](MilestonesApi.md#update_milestone) | **PATCH** /milestone/{code}/{id} | Update milestone. - - -# **create_milestone** -> IdResponse create_milestone(code, milestone_create) - -Create a new milestone. - -This method allows to create a milestone in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.milestone_create import MilestoneCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.MilestonesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - milestone_create = qaseio.MilestoneCreate() # MilestoneCreate | - - try: - # Create a new milestone. - api_response = api_instance.create_milestone(code, milestone_create) - print("The response of MilestonesApi->create_milestone:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling MilestonesApi->create_milestone: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **milestone_create** | [**MilestoneCreate**](MilestoneCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_milestone** -> IdResponse delete_milestone(code, id) - -Delete milestone. - -This method completely deletes a milestone from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.MilestonesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete milestone. - api_response = api_instance.delete_milestone(code, id) - print("The response of MilestonesApi->delete_milestone:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling MilestonesApi->delete_milestone: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_milestone** -> MilestoneResponse get_milestone(code, id) - -Get a specific milestone. - -This method allows to retrieve a specific milestone. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.milestone_response import MilestoneResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.MilestonesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific milestone. - api_response = api_instance.get_milestone(code, id) - print("The response of MilestonesApi->get_milestone:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling MilestonesApi->get_milestone: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**MilestoneResponse**](MilestoneResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Milestone. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_milestones** -> MilestoneListResponse get_milestones(code, search=search, limit=limit, offset=offset) - -Get all milestones. - -This method allows to retrieve all milestones stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.milestone_list_response import MilestoneListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.MilestonesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - search = 'search_example' # str | Provide a string that will be used to search by name. (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all milestones. - api_response = api_instance.get_milestones(code, search=search, limit=limit, offset=offset) - print("The response of MilestonesApi->get_milestones:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling MilestonesApi->get_milestones: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **search** | **str**| Provide a string that will be used to search by name. | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**MilestoneListResponse**](MilestoneListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all milestones. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_milestone** -> IdResponse update_milestone(code, id, milestone_update) - -Update milestone. - -This method updates a milestone. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.milestone_update import MilestoneUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.MilestonesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - milestone_update = qaseio.MilestoneUpdate() # MilestoneUpdate | - - try: - # Update milestone. - api_response = api_instance.update_milestone(code, id, milestone_update) - print("The response of MilestonesApi->update_milestone:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling MilestonesApi->update_milestone: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **milestone_update** | [**MilestoneUpdate**](MilestoneUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Plan.md b/qaseio/docs/Plan.md deleted file mode 100644 index b4a13e4e..00000000 --- a/qaseio/docs/Plan.md +++ /dev/null @@ -1,36 +0,0 @@ -# Plan - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**cases_count** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] - -## Example - -```python -from qaseio.models.plan import Plan - -# TODO update the JSON string below -json = "{}" -# create an instance of Plan from a JSON string -plan_instance = Plan.from_json(json) -# print the JSON string representation of the object -print Plan.to_json() - -# convert the object into a dict -plan_dict = plan_instance.to_dict() -# create an instance of Plan from a dict -plan_form_dict = plan.from_dict(plan_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanCreate.md b/qaseio/docs/PlanCreate.md deleted file mode 100644 index 35905ea4..00000000 --- a/qaseio/docs/PlanCreate.md +++ /dev/null @@ -1,31 +0,0 @@ -# PlanCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**description** | **str** | | [optional] -**cases** | **List[int]** | | - -## Example - -```python -from qaseio.models.plan_create import PlanCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanCreate from a JSON string -plan_create_instance = PlanCreate.from_json(json) -# print the JSON string representation of the object -print PlanCreate.to_json() - -# convert the object into a dict -plan_create_dict = plan_create_instance.to_dict() -# create an instance of PlanCreate from a dict -plan_create_form_dict = plan_create.from_dict(plan_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanDetailed.md b/qaseio/docs/PlanDetailed.md deleted file mode 100644 index 8b99479b..00000000 --- a/qaseio/docs/PlanDetailed.md +++ /dev/null @@ -1,38 +0,0 @@ -# PlanDetailed - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**cases_count** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**average_time** | **float** | | [optional] -**cases** | [**List[PlanDetailedAllOfCases]**](PlanDetailedAllOfCases.md) | | [optional] - -## Example - -```python -from qaseio.models.plan_detailed import PlanDetailed - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanDetailed from a JSON string -plan_detailed_instance = PlanDetailed.from_json(json) -# print the JSON string representation of the object -print PlanDetailed.to_json() - -# convert the object into a dict -plan_detailed_dict = plan_detailed_instance.to_dict() -# create an instance of PlanDetailed from a dict -plan_detailed_form_dict = plan_detailed.from_dict(plan_detailed_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanDetailedAllOfCases.md b/qaseio/docs/PlanDetailedAllOfCases.md deleted file mode 100644 index 3fdcbb81..00000000 --- a/qaseio/docs/PlanDetailedAllOfCases.md +++ /dev/null @@ -1,30 +0,0 @@ -# PlanDetailedAllOfCases - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**case_id** | **int** | | [optional] -**assignee_id** | **int** | | [optional] - -## Example - -```python -from qaseio.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanDetailedAllOfCases from a JSON string -plan_detailed_all_of_cases_instance = PlanDetailedAllOfCases.from_json(json) -# print the JSON string representation of the object -print PlanDetailedAllOfCases.to_json() - -# convert the object into a dict -plan_detailed_all_of_cases_dict = plan_detailed_all_of_cases_instance.to_dict() -# create an instance of PlanDetailedAllOfCases from a dict -plan_detailed_all_of_cases_form_dict = plan_detailed_all_of_cases.from_dict(plan_detailed_all_of_cases_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanListResponse.md b/qaseio/docs/PlanListResponse.md deleted file mode 100644 index 93ad4b4c..00000000 --- a/qaseio/docs/PlanListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PlanListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**PlanListResponseAllOfResult**](PlanListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.plan_list_response import PlanListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanListResponse from a JSON string -plan_list_response_instance = PlanListResponse.from_json(json) -# print the JSON string representation of the object -print PlanListResponse.to_json() - -# convert the object into a dict -plan_list_response_dict = plan_list_response_instance.to_dict() -# create an instance of PlanListResponse from a dict -plan_list_response_form_dict = plan_list_response.from_dict(plan_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanListResponseAllOfResult.md b/qaseio/docs/PlanListResponseAllOfResult.md deleted file mode 100644 index ffe8b752..00000000 --- a/qaseio/docs/PlanListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# PlanListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Plan]**](Plan.md) | | [optional] - -## Example - -```python -from qaseio.models.plan_list_response_all_of_result import PlanListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanListResponseAllOfResult from a JSON string -plan_list_response_all_of_result_instance = PlanListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print PlanListResponseAllOfResult.to_json() - -# convert the object into a dict -plan_list_response_all_of_result_dict = plan_list_response_all_of_result_instance.to_dict() -# create an instance of PlanListResponseAllOfResult from a dict -plan_list_response_all_of_result_form_dict = plan_list_response_all_of_result.from_dict(plan_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanQuery.md b/qaseio/docs/PlanQuery.md deleted file mode 100644 index ef0dc887..00000000 --- a/qaseio/docs/PlanQuery.md +++ /dev/null @@ -1,34 +0,0 @@ -# PlanQuery - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**cases_count** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.plan_query import PlanQuery - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanQuery from a JSON string -plan_query_instance = PlanQuery.from_json(json) -# print the JSON string representation of the object -print PlanQuery.to_json() - -# convert the object into a dict -plan_query_dict = plan_query_instance.to_dict() -# create an instance of PlanQuery from a dict -plan_query_form_dict = plan_query.from_dict(plan_query_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanResponse.md b/qaseio/docs/PlanResponse.md deleted file mode 100644 index db88f02d..00000000 --- a/qaseio/docs/PlanResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# PlanResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**PlanDetailed**](PlanDetailed.md) | | [optional] - -## Example - -```python -from qaseio.models.plan_response import PlanResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanResponse from a JSON string -plan_response_instance = PlanResponse.from_json(json) -# print the JSON string representation of the object -print PlanResponse.to_json() - -# convert the object into a dict -plan_response_dict = plan_response_instance.to_dict() -# create an instance of PlanResponse from a dict -plan_response_form_dict = plan_response.from_dict(plan_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlanUpdate.md b/qaseio/docs/PlanUpdate.md deleted file mode 100644 index 26eef22d..00000000 --- a/qaseio/docs/PlanUpdate.md +++ /dev/null @@ -1,31 +0,0 @@ -# PlanUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**cases** | **List[int]** | | [optional] - -## Example - -```python -from qaseio.models.plan_update import PlanUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of PlanUpdate from a JSON string -plan_update_instance = PlanUpdate.from_json(json) -# print the JSON string representation of the object -print PlanUpdate.to_json() - -# convert the object into a dict -plan_update_dict = plan_update_instance.to_dict() -# create an instance of PlanUpdate from a dict -plan_update_form_dict = plan_update.from_dict(plan_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/PlansApi.md b/qaseio/docs/PlansApi.md deleted file mode 100644 index b5946301..00000000 --- a/qaseio/docs/PlansApi.md +++ /dev/null @@ -1,461 +0,0 @@ -# qaseio.PlansApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_plan**](PlansApi.md#create_plan) | **POST** /plan/{code} | Create a new plan. -[**delete_plan**](PlansApi.md#delete_plan) | **DELETE** /plan/{code}/{id} | Delete plan. -[**get_plan**](PlansApi.md#get_plan) | **GET** /plan/{code}/{id} | Get a specific plan. -[**get_plans**](PlansApi.md#get_plans) | **GET** /plan/{code} | Get all plans. -[**update_plan**](PlansApi.md#update_plan) | **PATCH** /plan/{code}/{id} | Update plan. - - -# **create_plan** -> IdResponse create_plan(code, plan_create) - -Create a new plan. - -This method allows to create a plan in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.plan_create import PlanCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.PlansApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - plan_create = qaseio.PlanCreate() # PlanCreate | - - try: - # Create a new plan. - api_response = api_instance.create_plan(code, plan_create) - print("The response of PlansApi->create_plan:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlansApi->create_plan: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **plan_create** | [**PlanCreate**](PlanCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_plan** -> IdResponse delete_plan(code, id) - -Delete plan. - -This method completely deletes a plan from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.PlansApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete plan. - api_response = api_instance.delete_plan(code, id) - print("The response of PlansApi->delete_plan:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlansApi->delete_plan: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_plan** -> PlanResponse get_plan(code, id) - -Get a specific plan. - -This method allows to retrieve a specific plan. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.plan_response import PlanResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.PlansApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific plan. - api_response = api_instance.get_plan(code, id) - print("The response of PlansApi->get_plan:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlansApi->get_plan: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**PlanResponse**](PlanResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A plan. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_plans** -> PlanListResponse get_plans(code, limit=limit, offset=offset) - -Get all plans. - -This method allows to retrieve all plans stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.plan_list_response import PlanListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.PlansApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all plans. - api_response = api_instance.get_plans(code, limit=limit, offset=offset) - print("The response of PlansApi->get_plans:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlansApi->get_plans: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**PlanListResponse**](PlanListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all plans. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_plan** -> IdResponse update_plan(code, id, plan_update) - -Update plan. - -This method updates a plan. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.plan_update import PlanUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.PlansApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - plan_update = qaseio.PlanUpdate() # PlanUpdate | - - try: - # Update plan. - api_response = api_instance.update_plan(code, id, plan_update) - print("The response of PlansApi->update_plan:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling PlansApi->update_plan: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **plan_update** | [**PlanUpdate**](PlanUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Project.md b/qaseio/docs/Project.md deleted file mode 100644 index b1351162..00000000 --- a/qaseio/docs/Project.md +++ /dev/null @@ -1,31 +0,0 @@ -# Project - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**code** | **str** | | [optional] -**counts** | [**ProjectCounts**](ProjectCounts.md) | | [optional] - -## Example - -```python -from qaseio.models.project import Project - -# TODO update the JSON string below -json = "{}" -# create an instance of Project from a JSON string -project_instance = Project.from_json(json) -# print the JSON string representation of the object -print Project.to_json() - -# convert the object into a dict -project_dict = project_instance.to_dict() -# create an instance of Project from a dict -project_form_dict = project.from_dict(project_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectAccess.md b/qaseio/docs/ProjectAccess.md deleted file mode 100644 index 3780accc..00000000 --- a/qaseio/docs/ProjectAccess.md +++ /dev/null @@ -1,29 +0,0 @@ -# ProjectAccess - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**member_id** | **int** | Team member id title. | [optional] - -## Example - -```python -from qaseio.models.project_access import ProjectAccess - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectAccess from a JSON string -project_access_instance = ProjectAccess.from_json(json) -# print the JSON string representation of the object -print ProjectAccess.to_json() - -# convert the object into a dict -project_access_dict = project_access_instance.to_dict() -# create an instance of ProjectAccess from a dict -project_access_form_dict = project_access.from_dict(project_access_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCodeResponse.md b/qaseio/docs/ProjectCodeResponse.md deleted file mode 100644 index c9b2b352..00000000 --- a/qaseio/docs/ProjectCodeResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ProjectCodeResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**ProjectCodeResponseAllOfResult**](ProjectCodeResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.project_code_response import ProjectCodeResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCodeResponse from a JSON string -project_code_response_instance = ProjectCodeResponse.from_json(json) -# print the JSON string representation of the object -print ProjectCodeResponse.to_json() - -# convert the object into a dict -project_code_response_dict = project_code_response_instance.to_dict() -# create an instance of ProjectCodeResponse from a dict -project_code_response_form_dict = project_code_response.from_dict(project_code_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCodeResponseAllOfResult.md b/qaseio/docs/ProjectCodeResponseAllOfResult.md deleted file mode 100644 index 94f8928c..00000000 --- a/qaseio/docs/ProjectCodeResponseAllOfResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# ProjectCodeResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **str** | | [optional] - -## Example - -```python -from qaseio.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCodeResponseAllOfResult from a JSON string -project_code_response_all_of_result_instance = ProjectCodeResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print ProjectCodeResponseAllOfResult.to_json() - -# convert the object into a dict -project_code_response_all_of_result_dict = project_code_response_all_of_result_instance.to_dict() -# create an instance of ProjectCodeResponseAllOfResult from a dict -project_code_response_all_of_result_form_dict = project_code_response_all_of_result.from_dict(project_code_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCounts.md b/qaseio/docs/ProjectCounts.md deleted file mode 100644 index 03505510..00000000 --- a/qaseio/docs/ProjectCounts.md +++ /dev/null @@ -1,33 +0,0 @@ -# ProjectCounts - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cases** | **int** | | [optional] -**suites** | **int** | | [optional] -**milestones** | **int** | | [optional] -**runs** | [**ProjectCountsRuns**](ProjectCountsRuns.md) | | [optional] -**defects** | [**ProjectCountsDefects**](ProjectCountsDefects.md) | | [optional] - -## Example - -```python -from qaseio.models.project_counts import ProjectCounts - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCounts from a JSON string -project_counts_instance = ProjectCounts.from_json(json) -# print the JSON string representation of the object -print ProjectCounts.to_json() - -# convert the object into a dict -project_counts_dict = project_counts_instance.to_dict() -# create an instance of ProjectCounts from a dict -project_counts_form_dict = project_counts.from_dict(project_counts_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCountsDefects.md b/qaseio/docs/ProjectCountsDefects.md deleted file mode 100644 index e805600e..00000000 --- a/qaseio/docs/ProjectCountsDefects.md +++ /dev/null @@ -1,30 +0,0 @@ -# ProjectCountsDefects - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**open** | **int** | | [optional] - -## Example - -```python -from qaseio.models.project_counts_defects import ProjectCountsDefects - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCountsDefects from a JSON string -project_counts_defects_instance = ProjectCountsDefects.from_json(json) -# print the JSON string representation of the object -print ProjectCountsDefects.to_json() - -# convert the object into a dict -project_counts_defects_dict = project_counts_defects_instance.to_dict() -# create an instance of ProjectCountsDefects from a dict -project_counts_defects_form_dict = project_counts_defects.from_dict(project_counts_defects_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCountsRuns.md b/qaseio/docs/ProjectCountsRuns.md deleted file mode 100644 index d6f30ae9..00000000 --- a/qaseio/docs/ProjectCountsRuns.md +++ /dev/null @@ -1,30 +0,0 @@ -# ProjectCountsRuns - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**active** | **int** | | [optional] - -## Example - -```python -from qaseio.models.project_counts_runs import ProjectCountsRuns - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCountsRuns from a JSON string -project_counts_runs_instance = ProjectCountsRuns.from_json(json) -# print the JSON string representation of the object -print ProjectCountsRuns.to_json() - -# convert the object into a dict -project_counts_runs_dict = project_counts_runs_instance.to_dict() -# create an instance of ProjectCountsRuns from a dict -project_counts_runs_form_dict = project_counts_runs.from_dict(project_counts_runs_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectCreate.md b/qaseio/docs/ProjectCreate.md deleted file mode 100644 index 445cbcbf..00000000 --- a/qaseio/docs/ProjectCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# ProjectCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | Project title. | -**code** | **str** | Project code. Unique for team. Digits and special characters are not allowed. | -**description** | **str** | Project description. | [optional] -**access** | **str** | | [optional] -**group** | **str** | Team group hash. Required if access param is set to group. | [optional] - -## Example - -```python -from qaseio.models.project_create import ProjectCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectCreate from a JSON string -project_create_instance = ProjectCreate.from_json(json) -# print the JSON string representation of the object -print ProjectCreate.to_json() - -# convert the object into a dict -project_create_dict = project_create_instance.to_dict() -# create an instance of ProjectCreate from a dict -project_create_form_dict = project_create.from_dict(project_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectListResponse.md b/qaseio/docs/ProjectListResponse.md deleted file mode 100644 index 658bbe50..00000000 --- a/qaseio/docs/ProjectListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ProjectListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**ProjectListResponseAllOfResult**](ProjectListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.project_list_response import ProjectListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectListResponse from a JSON string -project_list_response_instance = ProjectListResponse.from_json(json) -# print the JSON string representation of the object -print ProjectListResponse.to_json() - -# convert the object into a dict -project_list_response_dict = project_list_response_instance.to_dict() -# create an instance of ProjectListResponse from a dict -project_list_response_form_dict = project_list_response.from_dict(project_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectListResponseAllOfResult.md b/qaseio/docs/ProjectListResponseAllOfResult.md deleted file mode 100644 index 9cd7c046..00000000 --- a/qaseio/docs/ProjectListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# ProjectListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Project]**](Project.md) | | [optional] - -## Example - -```python -from qaseio.models.project_list_response_all_of_result import ProjectListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectListResponseAllOfResult from a JSON string -project_list_response_all_of_result_instance = ProjectListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print ProjectListResponseAllOfResult.to_json() - -# convert the object into a dict -project_list_response_all_of_result_dict = project_list_response_all_of_result_instance.to_dict() -# create an instance of ProjectListResponseAllOfResult from a dict -project_list_response_all_of_result_form_dict = project_list_response_all_of_result.from_dict(project_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectResponse.md b/qaseio/docs/ProjectResponse.md deleted file mode 100644 index 1021181d..00000000 --- a/qaseio/docs/ProjectResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ProjectResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Project**](Project.md) | | [optional] - -## Example - -```python -from qaseio.models.project_response import ProjectResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ProjectResponse from a JSON string -project_response_instance = ProjectResponse.from_json(json) -# print the JSON string representation of the object -print ProjectResponse.to_json() - -# convert the object into a dict -project_response_dict = project_response_instance.to_dict() -# create an instance of ProjectResponse from a dict -project_response_form_dict = project_response.from_dict(project_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ProjectsApi.md b/qaseio/docs/ProjectsApi.md deleted file mode 100644 index d1585a41..00000000 --- a/qaseio/docs/ProjectsApi.md +++ /dev/null @@ -1,540 +0,0 @@ -# qaseio.ProjectsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_project**](ProjectsApi.md#create_project) | **POST** /project | Create new project. -[**delete_project**](ProjectsApi.md#delete_project) | **DELETE** /project/{code} | Delete Project by code. -[**get_project**](ProjectsApi.md#get_project) | **GET** /project/{code} | Get Project by code. -[**get_projects**](ProjectsApi.md#get_projects) | **GET** /project | Get All Projects. -[**grant_access_to_project**](ProjectsApi.md#grant_access_to_project) | **POST** /project/{code}/access | Grant access to project by code. -[**revoke_access_to_project**](ProjectsApi.md#revoke_access_to_project) | **DELETE** /project/{code}/access | Revoke access to project by code. - - -# **create_project** -> ProjectCodeResponse create_project(project_create) - -Create new project. - -This method is used to create a new project through API. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.project_code_response import ProjectCodeResponse -from qaseio.models.project_create import ProjectCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - project_create = qaseio.ProjectCreate() # ProjectCreate | - - try: - # Create new project. - api_response = api_instance.create_project(project_create) - print("The response of ProjectsApi->create_project:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->create_project: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **project_create** | [**ProjectCreate**](ProjectCreate.md)| | - -### Return type - -[**ProjectCodeResponse**](ProjectCodeResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result of project creation. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_project** -> BaseResponse delete_project(code) - -Delete Project by code. - -This method allows to delete a specific project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - - try: - # Delete Project by code. - api_response = api_instance.delete_project(code) - print("The response of ProjectsApi->delete_project:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->delete_project: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result of project removal. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_project** -> ProjectResponse get_project(code) - -Get Project by code. - -This method allows to retrieve a specific project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.project_response import ProjectResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - - try: - # Get Project by code. - api_response = api_instance.get_project(code) - print("The response of ProjectsApi->get_project:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->get_project: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - -### Return type - -[**ProjectResponse**](ProjectResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Project. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_projects** -> ProjectListResponse get_projects(limit=limit, offset=offset) - -Get All Projects. - -This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.project_list_response import ProjectListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get All Projects. - api_response = api_instance.get_projects(limit=limit, offset=offset) - print("The response of ProjectsApi->get_projects:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->get_projects: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**ProjectListResponse**](ProjectListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all projects. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **grant_access_to_project** -> BaseResponse grant_access_to_project(code, project_access) - -Grant access to project by code. - -This method allows to grant access to a specific project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.project_access import ProjectAccess -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - project_access = qaseio.ProjectAccess() # ProjectAccess | - - try: - # Grant access to project by code. - api_response = api_instance.grant_access_to_project(code, project_access) - print("The response of ProjectsApi->grant_access_to_project:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->grant_access_to_project: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **project_access** | [**ProjectAccess**](ProjectAccess.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Result of operation. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **revoke_access_to_project** -> BaseResponse revoke_access_to_project(code, project_access) - -Revoke access to project by code. - -This method allows to revoke access to a specific project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.project_access import ProjectAccess -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ProjectsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - project_access = qaseio.ProjectAccess() # ProjectAccess | - - try: - # Revoke access to project by code. - api_response = api_instance.revoke_access_to_project(code, project_access) - print("The response of ProjectsApi->revoke_access_to_project:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ProjectsApi->revoke_access_to_project: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **project_access** | [**ProjectAccess**](ProjectAccess.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Result of operation. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/QqlDefect.md b/qaseio/docs/QqlDefect.md deleted file mode 100644 index 3d7b64ad..00000000 --- a/qaseio/docs/QqlDefect.md +++ /dev/null @@ -1,43 +0,0 @@ -# QqlDefect - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**actual_result** | **str** | | [optional] -**severity** | **str** | | [optional] -**status** | **str** | | [optional] -**milestone_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**resolved** | **datetime** | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**external_data** | **str** | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.qql_defect import QqlDefect - -# TODO update the JSON string below -json = "{}" -# create an instance of QqlDefect from a JSON string -qql_defect_instance = QqlDefect.from_json(json) -# print the JSON string representation of the object -print QqlDefect.to_json() - -# convert the object into a dict -qql_defect_dict = qql_defect_instance.to_dict() -# create an instance of QqlDefect from a dict -qql_defect_form_dict = qql_defect.from_dict(qql_defect_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/QqlPlan.md b/qaseio/docs/QqlPlan.md deleted file mode 100644 index 06378ed2..00000000 --- a/qaseio/docs/QqlPlan.md +++ /dev/null @@ -1,34 +0,0 @@ -# QqlPlan - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**cases_count** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.qql_plan import QqlPlan - -# TODO update the JSON string below -json = "{}" -# create an instance of QqlPlan from a JSON string -qql_plan_instance = QqlPlan.from_json(json) -# print the JSON string representation of the object -print QqlPlan.to_json() - -# convert the object into a dict -qql_plan_dict = qql_plan_instance.to_dict() -# create an instance of QqlPlan from a dict -qql_plan_form_dict = qql_plan.from_dict(qql_plan_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/QqlTestCase.md b/qaseio/docs/QqlTestCase.md deleted file mode 100644 index d0c4035b..00000000 --- a/qaseio/docs/QqlTestCase.md +++ /dev/null @@ -1,54 +0,0 @@ -# QqlTestCase - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**position** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**behavior** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**steps_type** | **str** | | [optional] -**steps** | [**List[TestStep]**](TestStep.md) | | [optional] -**params** | [**TestCaseParams**](TestCaseParams.md) | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.qql_test_case import QqlTestCase - -# TODO update the JSON string below -json = "{}" -# create an instance of QqlTestCase from a JSON string -qql_test_case_instance = QqlTestCase.from_json(json) -# print the JSON string representation of the object -print QqlTestCase.to_json() - -# convert the object into a dict -qql_test_case_dict = qql_test_case_instance.to_dict() -# create an instance of QqlTestCase from a dict -qql_test_case_form_dict = qql_test_case.from_dict(qql_test_case_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Requirement.md b/qaseio/docs/Requirement.md deleted file mode 100644 index 5fea9d0d..00000000 --- a/qaseio/docs/Requirement.md +++ /dev/null @@ -1,37 +0,0 @@ -# Requirement - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**parent_id** | **int** | | [optional] -**member_id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**status** | **str** | | [optional] -**type** | **str** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.requirement import Requirement - -# TODO update the JSON string below -json = "{}" -# create an instance of Requirement from a JSON string -requirement_instance = Requirement.from_json(json) -# print the JSON string representation of the object -print Requirement.to_json() - -# convert the object into a dict -requirement_dict = requirement_instance.to_dict() -# create an instance of Requirement from a dict -requirement_form_dict = requirement.from_dict(requirement_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Response.md b/qaseio/docs/Response.md deleted file mode 100644 index f7491999..00000000 --- a/qaseio/docs/Response.md +++ /dev/null @@ -1,29 +0,0 @@ -# Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] - -## Example - -```python -from qaseio.models.response import Response - -# TODO update the JSON string below -json = "{}" -# create an instance of Response from a JSON string -response_instance = Response.from_json(json) -# print the JSON string representation of the object -print Response.to_json() - -# convert the object into a dict -response_dict = response_instance.to_dict() -# create an instance of Response from a dict -response_form_dict = response.from_dict(response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/Result.md b/qaseio/docs/Result.md deleted file mode 100644 index 4ca75a52..00000000 --- a/qaseio/docs/Result.md +++ /dev/null @@ -1,39 +0,0 @@ -# Result - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**comment** | **str** | | [optional] -**stacktrace** | **str** | | [optional] -**run_id** | **int** | | [optional] -**case_id** | **int** | | [optional] -**steps** | [**List[TestStepResult]**](TestStepResult.md) | | [optional] -**status** | **str** | | [optional] -**is_api_result** | **bool** | | [optional] -**time_spent_ms** | **int** | | [optional] -**end_time** | **datetime** | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] - -## Example - -```python -from qaseio.models.result import Result - -# TODO update the JSON string below -json = "{}" -# create an instance of Result from a JSON string -result_instance = Result.from_json(json) -# print the JSON string representation of the object -print Result.to_json() - -# convert the object into a dict -result_dict = result_instance.to_dict() -# create an instance of Result from a dict -result_form_dict = result.from_dict(result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultCreate.md b/qaseio/docs/ResultCreate.md deleted file mode 100644 index cd987b1f..00000000 --- a/qaseio/docs/ResultCreate.md +++ /dev/null @@ -1,41 +0,0 @@ -# ResultCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**case_id** | **int** | | [optional] -**case** | [**ResultCreateCase**](ResultCreateCase.md) | | [optional] -**status** | **str** | Can have the following values `passed`, `failed`, `blocked`, `skipped`, `invalid` + custom statuses | -**start_time** | **int** | | [optional] -**time** | **int** | | [optional] -**time_ms** | **int** | | [optional] -**defect** | **bool** | | [optional] -**attachments** | **List[str]** | | [optional] -**stacktrace** | **str** | | [optional] -**comment** | **str** | | [optional] -**param** | **Dict[str, str]** | A map of parameters (name => value) | [optional] -**steps** | [**List[TestStepResultCreate]**](TestStepResultCreate.md) | | [optional] -**author_id** | **int** | | [optional] - -## Example - -```python -from qaseio.models.result_create import ResultCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultCreate from a JSON string -result_create_instance = ResultCreate.from_json(json) -# print the JSON string representation of the object -print ResultCreate.to_json() - -# convert the object into a dict -result_create_dict = result_create_instance.to_dict() -# create an instance of ResultCreate from a dict -result_create_form_dict = result_create.from_dict(result_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultCreateBulk.md b/qaseio/docs/ResultCreateBulk.md deleted file mode 100644 index 75c420f3..00000000 --- a/qaseio/docs/ResultCreateBulk.md +++ /dev/null @@ -1,29 +0,0 @@ -# ResultcreateBulk - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**results** | [**List[ResultCreate]**](ResultCreate.md) | | - -## Example - -```python -from qaseio.models.resultcreate_bulk import ResultcreateBulk - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultcreateBulk from a JSON string -resultcreate_bulk_instance = ResultcreateBulk.from_json(json) -# print the JSON string representation of the object -print ResultcreateBulk.to_json() - -# convert the object into a dict -resultcreate_bulk_dict = resultcreate_bulk_instance.to_dict() -# create an instance of ResultcreateBulk from a dict -resultcreate_bulk_form_dict = resultcreate_bulk.from_dict(resultcreate_bulk_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultCreateCase.md b/qaseio/docs/ResultCreateCase.md deleted file mode 100644 index d33d83a9..00000000 --- a/qaseio/docs/ResultCreateCase.md +++ /dev/null @@ -1,37 +0,0 @@ -# ResultCreateCase - -Could be used instead of `case_id`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**suite_title** | **str** | Nested suites should be separated with `TAB` symbol. | [optional] -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**layer** | **str** | | [optional] -**severity** | **str** | | [optional] -**priority** | **str** | | [optional] - -## Example - -```python -from qaseio.models.result_create_case import ResultCreateCase - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultCreateCase from a JSON string -result_create_case_instance = ResultCreateCase.from_json(json) -# print the JSON string representation of the object -print ResultCreateCase.to_json() - -# convert the object into a dict -result_create_case_dict = result_create_case_instance.to_dict() -# create an instance of ResultCreateCase from a dict -result_create_case_form_dict = result_create_case.from_dict(result_create_case_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultCreateResponse.md b/qaseio/docs/ResultCreateResponse.md deleted file mode 100644 index c79a7b1f..00000000 --- a/qaseio/docs/ResultCreateResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ResultCreateResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**ResultCreateResponseAllOfResult**](ResultCreateResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.result_create_response import ResultCreateResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultCreateResponse from a JSON string -result_create_response_instance = ResultCreateResponse.from_json(json) -# print the JSON string representation of the object -print ResultCreateResponse.to_json() - -# convert the object into a dict -result_create_response_dict = result_create_response_instance.to_dict() -# create an instance of ResultCreateResponse from a dict -result_create_response_form_dict = result_create_response.from_dict(result_create_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultCreateResponseAllOfResult.md b/qaseio/docs/ResultCreateResponseAllOfResult.md deleted file mode 100644 index 5ba2ec95..00000000 --- a/qaseio/docs/ResultCreateResponseAllOfResult.md +++ /dev/null @@ -1,30 +0,0 @@ -# ResultCreateResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**case_id** | **int** | | [optional] -**hash** | **str** | | [optional] - -## Example - -```python -from qaseio.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultCreateResponseAllOfResult from a JSON string -result_create_response_all_of_result_instance = ResultCreateResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print ResultCreateResponseAllOfResult.to_json() - -# convert the object into a dict -result_create_response_all_of_result_dict = result_create_response_all_of_result_instance.to_dict() -# create an instance of ResultCreateResponseAllOfResult from a dict -result_create_response_all_of_result_form_dict = result_create_response_all_of_result.from_dict(result_create_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultListResponse.md b/qaseio/docs/ResultListResponse.md deleted file mode 100644 index 5e7dab40..00000000 --- a/qaseio/docs/ResultListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ResultListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**ResultListResponseAllOfResult**](ResultListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.result_list_response import ResultListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultListResponse from a JSON string -result_list_response_instance = ResultListResponse.from_json(json) -# print the JSON string representation of the object -print ResultListResponse.to_json() - -# convert the object into a dict -result_list_response_dict = result_list_response_instance.to_dict() -# create an instance of ResultListResponse from a dict -result_list_response_form_dict = result_list_response.from_dict(result_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultListResponseAllOfResult.md b/qaseio/docs/ResultListResponseAllOfResult.md deleted file mode 100644 index 8b0342f6..00000000 --- a/qaseio/docs/ResultListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# ResultListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Result]**](Result.md) | | [optional] - -## Example - -```python -from qaseio.models.result_list_response_all_of_result import ResultListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultListResponseAllOfResult from a JSON string -result_list_response_all_of_result_instance = ResultListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print ResultListResponseAllOfResult.to_json() - -# convert the object into a dict -result_list_response_all_of_result_dict = result_list_response_all_of_result_instance.to_dict() -# create an instance of ResultListResponseAllOfResult from a dict -result_list_response_all_of_result_form_dict = result_list_response_all_of_result.from_dict(result_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultResponse.md b/qaseio/docs/ResultResponse.md deleted file mode 100644 index 21a596d5..00000000 --- a/qaseio/docs/ResultResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# ResultResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Result**](Result.md) | | [optional] - -## Example - -```python -from qaseio.models.result_response import ResultResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultResponse from a JSON string -result_response_instance = ResultResponse.from_json(json) -# print the JSON string representation of the object -print ResultResponse.to_json() - -# convert the object into a dict -result_response_dict = result_response_instance.to_dict() -# create an instance of ResultResponse from a dict -result_response_form_dict = result_response.from_dict(result_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultUpdate.md b/qaseio/docs/ResultUpdate.md deleted file mode 100644 index 9ed98418..00000000 --- a/qaseio/docs/ResultUpdate.md +++ /dev/null @@ -1,35 +0,0 @@ -# ResultUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **str** | | [optional] -**time_ms** | **int** | | [optional] -**defect** | **bool** | | [optional] -**attachments** | **List[str]** | | [optional] -**stacktrace** | **str** | | [optional] -**comment** | **str** | | [optional] -**steps** | [**List[TestStepResultCreate]**](TestStepResultCreate.md) | | [optional] - -## Example - -```python -from qaseio.models.result_update import ResultUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of ResultUpdate from a JSON string -result_update_instance = ResultUpdate.from_json(json) -# print the JSON string representation of the object -print ResultUpdate.to_json() - -# convert the object into a dict -result_update_dict = result_update_instance.to_dict() -# create an instance of ResultUpdate from a dict -result_update_form_dict = result_update.from_dict(result_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/ResultsApi.md b/qaseio/docs/ResultsApi.md deleted file mode 100644 index 21a8da95..00000000 --- a/qaseio/docs/ResultsApi.md +++ /dev/null @@ -1,575 +0,0 @@ -# qaseio.ResultsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_result**](ResultsApi.md#create_result) | **POST** /result/{code}/{id} | Create test run result. -[**create_result_bulk**](ResultsApi.md#create_result_bulk) | **POST** /result/{code}/{id}/bulk | Bulk create test run result. -[**delete_result**](ResultsApi.md#delete_result) | **DELETE** /result/{code}/{id}/{hash} | Delete test run result. -[**get_result**](ResultsApi.md#get_result) | **GET** /result/{code}/{hash} | Get test run result by code. -[**get_results**](ResultsApi.md#get_results) | **GET** /result/{code} | Get all test run results. -[**update_result**](ResultsApi.md#update_result) | **PATCH** /result/{code}/{id}/{hash} | Update test run result. - - -# **create_result** -> ResultCreateResponse create_result(code, id, result_create) - -Create test run result. - -This method allows to create test run result by Run Id. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.result_create import ResultCreate -from qaseio.models.result_create_response import ResultCreateResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - result_create = qaseio.ResultCreate() # ResultCreate | - - try: - # Create test run result. - api_response = api_instance.create_result(code, id, result_create) - print("The response of ResultsApi->create_result:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->create_result: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **result_create** | [**ResultCreate**](ResultCreate.md)| | - -### Return type - -[**ResultCreateResponse**](ResultCreateResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_result_bulk** -> BaseResponse create_result_bulk(code, id, resultcreate_bulk) - -Bulk create test run result. - -This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.models.resultcreate_bulk import ResultcreateBulk -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - resultcreate_bulk = qaseio.ResultcreateBulk() # ResultcreateBulk | - - try: - # Bulk create test run result. - api_response = api_instance.create_result_bulk(code, id, resultcreate_bulk) - print("The response of ResultsApi->create_result_bulk:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->create_result_bulk: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **resultcreate_bulk** | [**ResultcreateBulk**](ResultcreateBulk.md)| | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**413** | Payload Too Large. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_result** -> HashResponse delete_result(code, id, hash) - -Delete test run result. - -This method allows to delete test run result. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - hash = 'hash_example' # str | Hash. - - try: - # Delete test run result. - api_response = api_instance.delete_result(code, id, hash) - print("The response of ResultsApi->delete_result:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->delete_result: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **hash** | **str**| Hash. | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_result** -> ResultResponse get_result(code, hash) - -Get test run result by code. - -This method allows to retrieve a specific test run result by Hash. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.result_response import ResultResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - hash = 'hash_example' # str | Hash. - - try: - # Get test run result by code. - api_response = api_instance.get_result(code, hash) - print("The response of ResultsApi->get_result:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->get_result: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **hash** | **str**| Hash. | - -### Return type - -[**ResultResponse**](ResultResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A test run result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_results** -> ResultListResponse get_results(code, status=status, run=run, case_id=case_id, member=member, api=api, from_end_time=from_end_time, to_end_time=to_end_time, limit=limit, offset=offset) - -Get all test run results. - -This method allows to retrieve all test run results stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.result_list_response import ResultListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - status = 'status_example' # str | A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. (optional) - run = 'run_example' # str | A list of run IDs separated by comma. (optional) - case_id = 'case_id_example' # str | A list of case IDs separated by comma. (optional) - member = 'member_example' # str | A list of member IDs separated by comma. (optional) - api = True # bool | (optional) - from_end_time = 'from_end_time_example' # str | Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. (optional) - to_end_time = 'to_end_time_example' # str | Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all test run results. - api_response = api_instance.get_results(code, status=status, run=run, case_id=case_id, member=member, api=api, from_end_time=from_end_time, to_end_time=to_end_time, limit=limit, offset=offset) - print("The response of ResultsApi->get_results:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->get_results: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **status** | **str**| A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. | [optional] - **run** | **str**| A list of run IDs separated by comma. | [optional] - **case_id** | **str**| A list of case IDs separated by comma. | [optional] - **member** | **str**| A list of member IDs separated by comma. | [optional] - **api** | **bool**| | [optional] - **from_end_time** | **str**| Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. | [optional] - **to_end_time** | **str**| Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**ResultListResponse**](ResultListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all test run results. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_result** -> HashResponse update_result(code, id, hash, result_update) - -Update test run result. - -This method allows to update test run result. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.models.result_update import ResultUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.ResultsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - hash = 'hash_example' # str | Hash. - result_update = qaseio.ResultUpdate() # ResultUpdate | - - try: - # Update test run result. - api_response = api_instance.update_result(code, id, hash, result_update) - print("The response of ResultsApi->update_result:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling ResultsApi->update_result: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **hash** | **str**| Hash. | - **result_update** | [**ResultUpdate**](ResultUpdate.md)| | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Run.md b/qaseio/docs/Run.md deleted file mode 100644 index 7285901f..00000000 --- a/qaseio/docs/Run.md +++ /dev/null @@ -1,43 +0,0 @@ -# Run - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**status** | **int** | | [optional] -**status_text** | **str** | | [optional] -**start_time** | **datetime** | | [optional] -**end_time** | **datetime** | | [optional] -**public** | **bool** | | [optional] -**stats** | [**RunStats**](RunStats.md) | | [optional] -**time_spent** | **int** | Time in ms. | [optional] -**environment** | [**RunEnvironment**](RunEnvironment.md) | | [optional] -**milestone** | [**RunMilestone**](RunMilestone.md) | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**cases** | **List[int]** | | [optional] - -## Example - -```python -from qaseio.models.run import Run - -# TODO update the JSON string below -json = "{}" -# create an instance of Run from a JSON string -run_instance = Run.from_json(json) -# print the JSON string representation of the object -print Run.to_json() - -# convert the object into a dict -run_dict = run_instance.to_dict() -# create an instance of Run from a dict -run_form_dict = run.from_dict(run_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunCreate.md b/qaseio/docs/RunCreate.md deleted file mode 100644 index e6b02805..00000000 --- a/qaseio/docs/RunCreate.md +++ /dev/null @@ -1,42 +0,0 @@ -# RunCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**description** | **str** | | [optional] -**include_all_cases** | **bool** | | [optional] -**cases** | **List[int]** | | [optional] -**is_autotest** | **bool** | | [optional] -**environment_id** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**plan_id** | **int** | | [optional] -**author_id** | **int** | | [optional] -**tags** | **List[str]** | | [optional] -**configurations** | **List[int]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] -**start_time** | **str** | | [optional] -**end_time** | **str** | | [optional] - -## Example - -```python -from qaseio.models.run_create import RunCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of RunCreate from a JSON string -run_create_instance = RunCreate.from_json(json) -# print the JSON string representation of the object -print RunCreate.to_json() - -# convert the object into a dict -run_create_dict = run_create_instance.to_dict() -# create an instance of RunCreate from a dict -run_create_form_dict = run_create.from_dict(run_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunEnvironment.md b/qaseio/docs/RunEnvironment.md deleted file mode 100644 index a63effd1..00000000 --- a/qaseio/docs/RunEnvironment.md +++ /dev/null @@ -1,32 +0,0 @@ -# RunEnvironment - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**slug** | **str** | | [optional] -**host** | **str** | | [optional] - -## Example - -```python -from qaseio.models.run_environment import RunEnvironment - -# TODO update the JSON string below -json = "{}" -# create an instance of RunEnvironment from a JSON string -run_environment_instance = RunEnvironment.from_json(json) -# print the JSON string representation of the object -print RunEnvironment.to_json() - -# convert the object into a dict -run_environment_dict = run_environment_instance.to_dict() -# create an instance of RunEnvironment from a dict -run_environment_form_dict = run_environment.from_dict(run_environment_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunListResponse.md b/qaseio/docs/RunListResponse.md deleted file mode 100644 index 2d69bb7c..00000000 --- a/qaseio/docs/RunListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# RunListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**RunListResponseAllOfResult**](RunListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.run_list_response import RunListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of RunListResponse from a JSON string -run_list_response_instance = RunListResponse.from_json(json) -# print the JSON string representation of the object -print RunListResponse.to_json() - -# convert the object into a dict -run_list_response_dict = run_list_response_instance.to_dict() -# create an instance of RunListResponse from a dict -run_list_response_form_dict = run_list_response.from_dict(run_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunListResponseAllOfResult.md b/qaseio/docs/RunListResponseAllOfResult.md deleted file mode 100644 index f004efa9..00000000 --- a/qaseio/docs/RunListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# RunListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Run]**](Run.md) | | [optional] - -## Example - -```python -from qaseio.models.run_list_response_all_of_result import RunListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of RunListResponseAllOfResult from a JSON string -run_list_response_all_of_result_instance = RunListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print RunListResponseAllOfResult.to_json() - -# convert the object into a dict -run_list_response_all_of_result_dict = run_list_response_all_of_result_instance.to_dict() -# create an instance of RunListResponseAllOfResult from a dict -run_list_response_all_of_result_form_dict = run_list_response_all_of_result.from_dict(run_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunMilestone.md b/qaseio/docs/RunMilestone.md deleted file mode 100644 index d1b039ad..00000000 --- a/qaseio/docs/RunMilestone.md +++ /dev/null @@ -1,30 +0,0 @@ -# RunMilestone - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**description** | **str** | | [optional] - -## Example - -```python -from qaseio.models.run_milestone import RunMilestone - -# TODO update the JSON string below -json = "{}" -# create an instance of RunMilestone from a JSON string -run_milestone_instance = RunMilestone.from_json(json) -# print the JSON string representation of the object -print RunMilestone.to_json() - -# convert the object into a dict -run_milestone_dict = run_milestone_instance.to_dict() -# create an instance of RunMilestone from a dict -run_milestone_form_dict = run_milestone.from_dict(run_milestone_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunPublic.md b/qaseio/docs/RunPublic.md deleted file mode 100644 index 0848eb85..00000000 --- a/qaseio/docs/RunPublic.md +++ /dev/null @@ -1,29 +0,0 @@ -# RunPublic - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | - -## Example - -```python -from qaseio.models.run_public import RunPublic - -# TODO update the JSON string below -json = "{}" -# create an instance of RunPublic from a JSON string -run_public_instance = RunPublic.from_json(json) -# print the JSON string representation of the object -print RunPublic.to_json() - -# convert the object into a dict -run_public_dict = run_public_instance.to_dict() -# create an instance of RunPublic from a dict -run_public_form_dict = run_public.from_dict(run_public_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunPublicResponse.md b/qaseio/docs/RunPublicResponse.md deleted file mode 100644 index 305ae16b..00000000 --- a/qaseio/docs/RunPublicResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# RunPublicResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**RunPublicResponseAllOfResult**](RunPublicResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.run_public_response import RunPublicResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of RunPublicResponse from a JSON string -run_public_response_instance = RunPublicResponse.from_json(json) -# print the JSON string representation of the object -print RunPublicResponse.to_json() - -# convert the object into a dict -run_public_response_dict = run_public_response_instance.to_dict() -# create an instance of RunPublicResponse from a dict -run_public_response_form_dict = run_public_response.from_dict(run_public_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunPublicResponseAllOfResult.md b/qaseio/docs/RunPublicResponseAllOfResult.md deleted file mode 100644 index 36786546..00000000 --- a/qaseio/docs/RunPublicResponseAllOfResult.md +++ /dev/null @@ -1,29 +0,0 @@ -# RunPublicResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | | [optional] - -## Example - -```python -from qaseio.models.run_public_response_all_of_result import RunPublicResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of RunPublicResponseAllOfResult from a JSON string -run_public_response_all_of_result_instance = RunPublicResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print RunPublicResponseAllOfResult.to_json() - -# convert the object into a dict -run_public_response_all_of_result_dict = run_public_response_all_of_result_instance.to_dict() -# create an instance of RunPublicResponseAllOfResult from a dict -run_public_response_all_of_result_form_dict = run_public_response_all_of_result.from_dict(run_public_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunResponse.md b/qaseio/docs/RunResponse.md deleted file mode 100644 index 57887154..00000000 --- a/qaseio/docs/RunResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# RunResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Run**](Run.md) | | [optional] - -## Example - -```python -from qaseio.models.run_response import RunResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of RunResponse from a JSON string -run_response_instance = RunResponse.from_json(json) -# print the JSON string representation of the object -print RunResponse.to_json() - -# convert the object into a dict -run_response_dict = run_response_instance.to_dict() -# create an instance of RunResponse from a dict -run_response_form_dict = run_response.from_dict(run_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunStats.md b/qaseio/docs/RunStats.md deleted file mode 100644 index 58797066..00000000 --- a/qaseio/docs/RunStats.md +++ /dev/null @@ -1,37 +0,0 @@ -# RunStats - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**untested** | **int** | | [optional] -**passed** | **int** | | [optional] -**failed** | **int** | | [optional] -**blocked** | **int** | | [optional] -**skipped** | **int** | | [optional] -**retest** | **int** | | [optional] -**in_progress** | **int** | | [optional] -**invalid** | **int** | | [optional] - -## Example - -```python -from qaseio.models.run_stats import RunStats - -# TODO update the JSON string below -json = "{}" -# create an instance of RunStats from a JSON string -run_stats_instance = RunStats.from_json(json) -# print the JSON string representation of the object -print RunStats.to_json() - -# convert the object into a dict -run_stats_dict = run_stats_instance.to_dict() -# create an instance of RunStats from a dict -run_stats_form_dict = run_stats.from_dict(run_stats_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/RunsApi.md b/qaseio/docs/RunsApi.md deleted file mode 100644 index b7bfe0e3..00000000 --- a/qaseio/docs/RunsApi.md +++ /dev/null @@ -1,566 +0,0 @@ -# qaseio.RunsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**complete_run**](RunsApi.md#complete_run) | **POST** /run/{code}/{id}/complete | Complete a specific run. -[**create_run**](RunsApi.md#create_run) | **POST** /run/{code} | Create a new run. -[**delete_run**](RunsApi.md#delete_run) | **DELETE** /run/{code}/{id} | Delete run. -[**get_run**](RunsApi.md#get_run) | **GET** /run/{code}/{id} | Get a specific run. -[**get_runs**](RunsApi.md#get_runs) | **GET** /run/{code} | Get all runs. -[**update_run_publicity**](RunsApi.md#update_run_publicity) | **PATCH** /run/{code}/{id}/public | Update publicity of a specific run. - - -# **complete_run** -> BaseResponse complete_run(code, id) - -Complete a specific run. - -This method allows to complete a specific run. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.base_response import BaseResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Complete a specific run. - api_response = api_instance.complete_run(code, id) - print("The response of RunsApi->complete_run:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->complete_run: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_run** -> IdResponse create_run(code, run_create) - -Create a new run. - -This method allows to create a run in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.run_create import RunCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - run_create = qaseio.RunCreate() # RunCreate | - - try: - # Create a new run. - api_response = api_instance.create_run(code, run_create) - print("The response of RunsApi->create_run:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->create_run: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **run_create** | [**RunCreate**](RunCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_run** -> IdResponse delete_run(code, id) - -Delete run. - -This method completely deletes a run from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Delete run. - api_response = api_instance.delete_run(code, id) - print("The response of RunsApi->delete_run:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->delete_run: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_run** -> RunResponse get_run(code, id, include=include) - -Get a specific run. - -This method allows to retrieve a specific run. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.run_response import RunResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - include = 'include_example' # str | Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects (optional) - - try: - # Get a specific run. - api_response = api_instance.get_run(code, id, include=include) - print("The response of RunsApi->get_run:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->get_run: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **include** | **str**| Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects | [optional] - -### Return type - -[**RunResponse**](RunResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A run. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_runs** -> RunListResponse get_runs(code, search=search, status=status, milestone=milestone, environment=environment, from_start_time=from_start_time, to_start_time=to_start_time, limit=limit, offset=offset, include=include) - -Get all runs. - -This method allows to retrieve all runs stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.run_list_response import RunListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - search = 'search_example' # str | (optional) - status = 'status_example' # str | A list of status values separated by comma. Possible values: active, complete, abort. (optional) - milestone = 56 # int | (optional) - environment = 56 # int | (optional) - from_start_time = 56 # int | (optional) - to_start_time = 56 # int | (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - include = 'include_example' # str | Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects (optional) - - try: - # Get all runs. - api_response = api_instance.get_runs(code, search=search, status=status, milestone=milestone, environment=environment, from_start_time=from_start_time, to_start_time=to_start_time, limit=limit, offset=offset, include=include) - print("The response of RunsApi->get_runs:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->get_runs: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **search** | **str**| | [optional] - **status** | **str**| A list of status values separated by comma. Possible values: active, complete, abort. | [optional] - **milestone** | **int**| | [optional] - **environment** | **int**| | [optional] - **from_start_time** | **int**| | [optional] - **to_start_time** | **int**| | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - **include** | **str**| Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects | [optional] - -### Return type - -[**RunListResponse**](RunListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all runs. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_run_publicity** -> RunPublicResponse update_run_publicity(code, id, run_public) - -Update publicity of a specific run. - -This method allows to update a publicity of specific run. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.run_public import RunPublic -from qaseio.models.run_public_response import RunPublicResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.RunsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - run_public = qaseio.RunPublic() # RunPublic | - - try: - # Update publicity of a specific run. - api_response = api_instance.update_run_publicity(code, id, run_public) - print("The response of RunsApi->update_run_publicity:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RunsApi->update_run_publicity: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **run_public** | [**RunPublic**](RunPublic.md)| | - -### Return type - -[**RunPublicResponse**](RunPublicResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/SearchApi.md b/qaseio/docs/SearchApi.md deleted file mode 100644 index e9abebba..00000000 --- a/qaseio/docs/SearchApi.md +++ /dev/null @@ -1,98 +0,0 @@ -# qaseio.SearchApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**search**](SearchApi.md#search) | **GET** /search | Search entities by Qase Query Language (QQL). - - -# **search** -> SearchResponse search(query, limit=limit, offset=offset) - -Search entities by Qase Query Language (QQL). - -This method allows to retrieve data sets for various entities using expressions with conditions. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.search_response import SearchResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SearchApi(api_client) - query = 'query_example' # str | Expression in Qase Query Language. - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Search entities by Qase Query Language (QQL). - api_response = api_instance.search(query, limit=limit, offset=offset) - print("The response of SearchApi->search:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SearchApi->search: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **str**| Expression in Qase Query Language. | - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**SearchResponse**](SearchResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of found entities. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/SearchResponse.md b/qaseio/docs/SearchResponse.md deleted file mode 100644 index 7b16625d..00000000 --- a/qaseio/docs/SearchResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SearchResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**SearchResponseAllOfResult**](SearchResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.search_response import SearchResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchResponse from a JSON string -search_response_instance = SearchResponse.from_json(json) -# print the JSON string representation of the object -print SearchResponse.to_json() - -# convert the object into a dict -search_response_dict = search_response_instance.to_dict() -# create an instance of SearchResponse from a dict -search_response_form_dict = search_response.from_dict(search_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SearchResponseAllOfResult.md b/qaseio/docs/SearchResponseAllOfResult.md deleted file mode 100644 index 88dee653..00000000 --- a/qaseio/docs/SearchResponseAllOfResult.md +++ /dev/null @@ -1,30 +0,0 @@ -# SearchResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**entities** | [**List[SearchResponseAllOfResultEntities]**](SearchResponseAllOfResultEntities.md) | | -**total** | **int** | | - -## Example - -```python -from qaseio.models.search_response_all_of_result import SearchResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchResponseAllOfResult from a JSON string -search_response_all_of_result_instance = SearchResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print SearchResponseAllOfResult.to_json() - -# convert the object into a dict -search_response_all_of_result_dict = search_response_all_of_result_instance.to_dict() -# create an instance of SearchResponseAllOfResult from a dict -search_response_all_of_result_form_dict = search_response_all_of_result.from_dict(search_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SearchResponseAllOfResultEntities.md b/qaseio/docs/SearchResponseAllOfResultEntities.md deleted file mode 100644 index 1e610955..00000000 --- a/qaseio/docs/SearchResponseAllOfResultEntities.md +++ /dev/null @@ -1,75 +0,0 @@ -# SearchResponseAllOfResultEntities - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**status** | **str** | | [optional] -**status_text** | **str** | | [optional] -**start_time** | **datetime** | | [optional] -**end_time** | **datetime** | | [optional] -**public** | **bool** | | [optional] -**stats** | [**RunStats**](RunStats.md) | | [optional] -**time_spent** | **int** | Time in ms. | [optional] -**environment** | [**RunEnvironment**](RunEnvironment.md) | | [optional] -**milestone** | [**RunMilestone**](RunMilestone.md) | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**cases** | **List[int]** | | [optional] -**hash** | **str** | | [optional] -**comment** | **str** | | [optional] -**stacktrace** | **str** | | [optional] -**run_id** | **int** | | [optional] -**case_id** | **int** | | [optional] -**steps** | [**List[TestStep]**](TestStep.md) | | [optional] -**is_api_result** | **bool** | | [optional] -**time_spent_ms** | **int** | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**parent_id** | **int** | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**type** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**position** | **int** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**severity** | **str** | | [optional] -**priority** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**behavior** | **int** | | [optional] -**automation** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**steps_type** | **str** | | [optional] -**params** | [**TestCaseParams**](TestCaseParams.md) | | [optional] -**author_id** | **int** | | [optional] -**actual_result** | **str** | | [optional] -**resolved** | **datetime** | | [optional] -**external_data** | **str** | | [optional] -**cases_count** | **int** | | [optional] - -## Example - -```python -from qaseio.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchResponseAllOfResultEntities from a JSON string -search_response_all_of_result_entities_instance = SearchResponseAllOfResultEntities.from_json(json) -# print the JSON string representation of the object -print SearchResponseAllOfResultEntities.to_json() - -# convert the object into a dict -search_response_all_of_result_entities_dict = search_response_all_of_result_entities_instance.to_dict() -# create an instance of SearchResponseAllOfResultEntities from a dict -search_response_all_of_result_entities_form_dict = search_response_all_of_result_entities.from_dict(search_response_all_of_result_entities_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStep.md b/qaseio/docs/SharedStep.md deleted file mode 100644 index f3bfb90b..00000000 --- a/qaseio/docs/SharedStep.md +++ /dev/null @@ -1,40 +0,0 @@ -# SharedStep - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**title** | **str** | | [optional] -**action** | **str** | | [optional] -**expected_result** | **str** | | [optional] -**steps** | [**List[SharedStepContent]**](SharedStepContent.md) | | [optional] -**data** | **str** | | [optional] -**cases** | **List[int]** | | [optional] -**cases_count** | **int** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.shared_step import SharedStep - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStep from a JSON string -shared_step_instance = SharedStep.from_json(json) -# print the JSON string representation of the object -print SharedStep.to_json() - -# convert the object into a dict -shared_step_dict = shared_step_instance.to_dict() -# create an instance of SharedStep from a dict -shared_step_form_dict = shared_step.from_dict(shared_step_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepContent.md b/qaseio/docs/SharedStepContent.md deleted file mode 100644 index fabbbcbb..00000000 --- a/qaseio/docs/SharedStepContent.md +++ /dev/null @@ -1,33 +0,0 @@ -# SharedStepContent - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **str** | | [optional] -**hash** | **str** | | [optional] -**action** | **str** | | [optional] -**expected_result** | **str** | | [optional] -**attachments** | [**List[AttachmentHash]**](AttachmentHash.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_content import SharedStepContent - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepContent from a JSON string -shared_step_content_instance = SharedStepContent.from_json(json) -# print the JSON string representation of the object -print SharedStepContent.to_json() - -# convert the object into a dict -shared_step_content_dict = shared_step_content_instance.to_dict() -# create an instance of SharedStepContent from a dict -shared_step_content_form_dict = shared_step_content.from_dict(shared_step_content_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepContentCreate.md b/qaseio/docs/SharedStepContentCreate.md deleted file mode 100644 index 82c2d3dc..00000000 --- a/qaseio/docs/SharedStepContentCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# SharedStepContentCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**action** | **str** | | -**expected_result** | **str** | | [optional] -**data** | **str** | | [optional] -**attachments** | **List[str]** | A list of Attachment hashes. | [optional] - -## Example - -```python -from qaseio.models.shared_step_content_create import SharedStepContentCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepContentCreate from a JSON string -shared_step_content_create_instance = SharedStepContentCreate.from_json(json) -# print the JSON string representation of the object -print SharedStepContentCreate.to_json() - -# convert the object into a dict -shared_step_content_create_dict = shared_step_content_create_instance.to_dict() -# create an instance of SharedStepContentCreate from a dict -shared_step_content_create_form_dict = shared_step_content_create.from_dict(shared_step_content_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepCreate.md b/qaseio/docs/SharedStepCreate.md deleted file mode 100644 index 45776188..00000000 --- a/qaseio/docs/SharedStepCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# SharedStepCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**action** | **str** | Deprecated, use the `steps` property instead. | [optional] -**expected_result** | **str** | Deprecated, use the `steps` property instead. | [optional] -**data** | **str** | Deprecated, use the `steps` property instead. | [optional] -**steps** | [**List[SharedStepContentCreate]**](SharedStepContentCreate.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_create import SharedStepCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepCreate from a JSON string -shared_step_create_instance = SharedStepCreate.from_json(json) -# print the JSON string representation of the object -print SharedStepCreate.to_json() - -# convert the object into a dict -shared_step_create_dict = shared_step_create_instance.to_dict() -# create an instance of SharedStepCreate from a dict -shared_step_create_form_dict = shared_step_create.from_dict(shared_step_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepListResponse.md b/qaseio/docs/SharedStepListResponse.md deleted file mode 100644 index 133d96e6..00000000 --- a/qaseio/docs/SharedStepListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SharedStepListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**SharedStepListResponseAllOfResult**](SharedStepListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_list_response import SharedStepListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepListResponse from a JSON string -shared_step_list_response_instance = SharedStepListResponse.from_json(json) -# print the JSON string representation of the object -print SharedStepListResponse.to_json() - -# convert the object into a dict -shared_step_list_response_dict = shared_step_list_response_instance.to_dict() -# create an instance of SharedStepListResponse from a dict -shared_step_list_response_form_dict = shared_step_list_response.from_dict(shared_step_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepListResponseAllOfResult.md b/qaseio/docs/SharedStepListResponseAllOfResult.md deleted file mode 100644 index 53f76572..00000000 --- a/qaseio/docs/SharedStepListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# SharedStepListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[SharedStep]**](SharedStep.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepListResponseAllOfResult from a JSON string -shared_step_list_response_all_of_result_instance = SharedStepListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print SharedStepListResponseAllOfResult.to_json() - -# convert the object into a dict -shared_step_list_response_all_of_result_dict = shared_step_list_response_all_of_result_instance.to_dict() -# create an instance of SharedStepListResponseAllOfResult from a dict -shared_step_list_response_all_of_result_form_dict = shared_step_list_response_all_of_result.from_dict(shared_step_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepResponse.md b/qaseio/docs/SharedStepResponse.md deleted file mode 100644 index 9e136568..00000000 --- a/qaseio/docs/SharedStepResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SharedStepResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**SharedStep**](SharedStep.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_response import SharedStepResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepResponse from a JSON string -shared_step_response_instance = SharedStepResponse.from_json(json) -# print the JSON string representation of the object -print SharedStepResponse.to_json() - -# convert the object into a dict -shared_step_response_dict = shared_step_response_instance.to_dict() -# create an instance of SharedStepResponse from a dict -shared_step_response_form_dict = shared_step_response.from_dict(shared_step_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepUpdate.md b/qaseio/docs/SharedStepUpdate.md deleted file mode 100644 index 85e95b5a..00000000 --- a/qaseio/docs/SharedStepUpdate.md +++ /dev/null @@ -1,33 +0,0 @@ -# SharedStepUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | -**action** | **str** | Deprecated, use the `steps` property instead. | [optional] -**expected_result** | **str** | Deprecated, use the `steps` property instead. | [optional] -**data** | **str** | Deprecated, use the `steps` property instead. | [optional] -**steps** | [**List[SharedStepContentCreate]**](SharedStepContentCreate.md) | | [optional] - -## Example - -```python -from qaseio.models.shared_step_update import SharedStepUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of SharedStepUpdate from a JSON string -shared_step_update_instance = SharedStepUpdate.from_json(json) -# print the JSON string representation of the object -print SharedStepUpdate.to_json() - -# convert the object into a dict -shared_step_update_dict = shared_step_update_instance.to_dict() -# create an instance of SharedStepUpdate from a dict -shared_step_update_form_dict = shared_step_update.from_dict(shared_step_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SharedStepsApi.md b/qaseio/docs/SharedStepsApi.md deleted file mode 100644 index c6ec3147..00000000 --- a/qaseio/docs/SharedStepsApi.md +++ /dev/null @@ -1,462 +0,0 @@ -# qaseio.SharedStepsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_shared_step**](SharedStepsApi.md#create_shared_step) | **POST** /shared_step/{code} | Create a new shared step. -[**delete_shared_step**](SharedStepsApi.md#delete_shared_step) | **DELETE** /shared_step/{code}/{hash} | Delete shared step. -[**get_shared_step**](SharedStepsApi.md#get_shared_step) | **GET** /shared_step/{code}/{hash} | Get a specific shared step. -[**get_shared_steps**](SharedStepsApi.md#get_shared_steps) | **GET** /shared_step/{code} | Get all shared steps. -[**update_shared_step**](SharedStepsApi.md#update_shared_step) | **PATCH** /shared_step/{code}/{hash} | Update shared step. - - -# **create_shared_step** -> HashResponse create_shared_step(code, shared_step_create) - -Create a new shared step. - -This method allows to create a shared step in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.models.shared_step_create import SharedStepCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SharedStepsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - shared_step_create = qaseio.SharedStepCreate() # SharedStepCreate | - - try: - # Create a new shared step. - api_response = api_instance.create_shared_step(code, shared_step_create) - print("The response of SharedStepsApi->create_shared_step:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SharedStepsApi->create_shared_step: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **shared_step_create** | [**SharedStepCreate**](SharedStepCreate.md)| | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_shared_step** -> HashResponse delete_shared_step(code, hash) - -Delete shared step. - -This method completely deletes a shared step from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SharedStepsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - hash = 'hash_example' # str | Hash. - - try: - # Delete shared step. - api_response = api_instance.delete_shared_step(code, hash) - print("The response of SharedStepsApi->delete_shared_step:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SharedStepsApi->delete_shared_step: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **hash** | **str**| Hash. | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_shared_step** -> SharedStepResponse get_shared_step(code, hash) - -Get a specific shared step. - -This method allows to retrieve a specific shared step. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.shared_step_response import SharedStepResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SharedStepsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - hash = 'hash_example' # str | Hash. - - try: - # Get a specific shared step. - api_response = api_instance.get_shared_step(code, hash) - print("The response of SharedStepsApi->get_shared_step:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SharedStepsApi->get_shared_step: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **hash** | **str**| Hash. | - -### Return type - -[**SharedStepResponse**](SharedStepResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A shared step. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_shared_steps** -> SharedStepListResponse get_shared_steps(code, search=search, limit=limit, offset=offset) - -Get all shared steps. - -This method allows to retrieve all shared steps stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.shared_step_list_response import SharedStepListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SharedStepsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - search = 'search_example' # str | Provide a string that will be used to search by name. (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all shared steps. - api_response = api_instance.get_shared_steps(code, search=search, limit=limit, offset=offset) - print("The response of SharedStepsApi->get_shared_steps:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SharedStepsApi->get_shared_steps: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **search** | **str**| Provide a string that will be used to search by name. | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**SharedStepListResponse**](SharedStepListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all shared steps. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_shared_step** -> HashResponse update_shared_step(code, hash, shared_step_update) - -Update shared step. - -This method updates a shared step. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.hash_response import HashResponse -from qaseio.models.shared_step_update import SharedStepUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SharedStepsApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - hash = 'hash_example' # str | Hash. - shared_step_update = qaseio.SharedStepUpdate() # SharedStepUpdate | - - try: - # Update shared step. - api_response = api_instance.update_shared_step(code, hash, shared_step_update) - print("The response of SharedStepsApi->update_shared_step:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SharedStepsApi->update_shared_step: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **hash** | **str**| Hash. | - **shared_step_update** | [**SharedStepUpdate**](SharedStepUpdate.md)| | - -### Return type - -[**HashResponse**](HashResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/Suite.md b/qaseio/docs/Suite.md deleted file mode 100644 index 7eeb4cdb..00000000 --- a/qaseio/docs/Suite.md +++ /dev/null @@ -1,39 +0,0 @@ -# Suite - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**position** | **int** | | [optional] -**cases_count** | **int** | | [optional] -**parent_id** | **int** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.suite import Suite - -# TODO update the JSON string below -json = "{}" -# create an instance of Suite from a JSON string -suite_instance = Suite.from_json(json) -# print the JSON string representation of the object -print Suite.to_json() - -# convert the object into a dict -suite_dict = suite_instance.to_dict() -# create an instance of Suite from a dict -suite_form_dict = suite.from_dict(suite_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteCreate.md b/qaseio/docs/SuiteCreate.md deleted file mode 100644 index a0eb571c..00000000 --- a/qaseio/docs/SuiteCreate.md +++ /dev/null @@ -1,32 +0,0 @@ -# SuiteCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | Test suite title. | -**description** | **str** | Test suite description. | [optional] -**preconditions** | **str** | Test suite preconditions | [optional] -**parent_id** | **int** | Parent suite ID | [optional] - -## Example - -```python -from qaseio.models.suite_create import SuiteCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteCreate from a JSON string -suite_create_instance = SuiteCreate.from_json(json) -# print the JSON string representation of the object -print SuiteCreate.to_json() - -# convert the object into a dict -suite_create_dict = suite_create_instance.to_dict() -# create an instance of SuiteCreate from a dict -suite_create_form_dict = suite_create.from_dict(suite_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteDelete.md b/qaseio/docs/SuiteDelete.md deleted file mode 100644 index c74d5a5a..00000000 --- a/qaseio/docs/SuiteDelete.md +++ /dev/null @@ -1,29 +0,0 @@ -# SuiteDelete - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**destination_id** | **int** | If provided, child test cases would be moved to suite with such ID. | [optional] - -## Example - -```python -from qaseio.models.suite_delete import SuiteDelete - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteDelete from a JSON string -suite_delete_instance = SuiteDelete.from_json(json) -# print the JSON string representation of the object -print SuiteDelete.to_json() - -# convert the object into a dict -suite_delete_dict = suite_delete_instance.to_dict() -# create an instance of SuiteDelete from a dict -suite_delete_form_dict = suite_delete.from_dict(suite_delete_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteListResponse.md b/qaseio/docs/SuiteListResponse.md deleted file mode 100644 index 45b03f5e..00000000 --- a/qaseio/docs/SuiteListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SuiteListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**SuiteListResponseAllOfResult**](SuiteListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.suite_list_response import SuiteListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteListResponse from a JSON string -suite_list_response_instance = SuiteListResponse.from_json(json) -# print the JSON string representation of the object -print SuiteListResponse.to_json() - -# convert the object into a dict -suite_list_response_dict = suite_list_response_instance.to_dict() -# create an instance of SuiteListResponse from a dict -suite_list_response_form_dict = suite_list_response.from_dict(suite_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteListResponseAllOfResult.md b/qaseio/docs/SuiteListResponseAllOfResult.md deleted file mode 100644 index d5b475ef..00000000 --- a/qaseio/docs/SuiteListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# SuiteListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[Suite]**](Suite.md) | | [optional] - -## Example - -```python -from qaseio.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteListResponseAllOfResult from a JSON string -suite_list_response_all_of_result_instance = SuiteListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print SuiteListResponseAllOfResult.to_json() - -# convert the object into a dict -suite_list_response_all_of_result_dict = suite_list_response_all_of_result_instance.to_dict() -# create an instance of SuiteListResponseAllOfResult from a dict -suite_list_response_all_of_result_form_dict = suite_list_response_all_of_result.from_dict(suite_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteResponse.md b/qaseio/docs/SuiteResponse.md deleted file mode 100644 index b9f65102..00000000 --- a/qaseio/docs/SuiteResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SuiteResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**Suite**](Suite.md) | | [optional] - -## Example - -```python -from qaseio.models.suite_response import SuiteResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteResponse from a JSON string -suite_response_instance = SuiteResponse.from_json(json) -# print the JSON string representation of the object -print SuiteResponse.to_json() - -# convert the object into a dict -suite_response_dict = suite_response_instance.to_dict() -# create an instance of SuiteResponse from a dict -suite_response_form_dict = suite_response.from_dict(suite_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuiteUpdate.md b/qaseio/docs/SuiteUpdate.md deleted file mode 100644 index 07ea9ce1..00000000 --- a/qaseio/docs/SuiteUpdate.md +++ /dev/null @@ -1,32 +0,0 @@ -# SuiteUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | Test suite title. | [optional] -**description** | **str** | Test suite description. | [optional] -**preconditions** | **str** | Test suite preconditions | [optional] -**parent_id** | **int** | Parent suite ID | [optional] - -## Example - -```python -from qaseio.models.suite_update import SuiteUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of SuiteUpdate from a JSON string -suite_update_instance = SuiteUpdate.from_json(json) -# print the JSON string representation of the object -print SuiteUpdate.to_json() - -# convert the object into a dict -suite_update_dict = suite_update_instance.to_dict() -# create an instance of SuiteUpdate from a dict -suite_update_form_dict = suite_update.from_dict(suite_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SuitesApi.md b/qaseio/docs/SuitesApi.md deleted file mode 100644 index 70beb144..00000000 --- a/qaseio/docs/SuitesApi.md +++ /dev/null @@ -1,466 +0,0 @@ -# qaseio.SuitesApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_suite**](SuitesApi.md#create_suite) | **POST** /suite/{code} | Create a new test suite. -[**delete_suite**](SuitesApi.md#delete_suite) | **DELETE** /suite/{code}/{id} | Delete test suite. -[**get_suite**](SuitesApi.md#get_suite) | **GET** /suite/{code}/{id} | Get a specific test suite. -[**get_suites**](SuitesApi.md#get_suites) | **GET** /suite/{code} | Get all test suites. -[**update_suite**](SuitesApi.md#update_suite) | **PATCH** /suite/{code}/{id} | Update test suite. - - -# **create_suite** -> IdResponse create_suite(code, suite_create) - -Create a new test suite. - -This method is used to create a new test suite through API. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.suite_create import SuiteCreate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SuitesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - suite_create = qaseio.SuiteCreate() # SuiteCreate | - - try: - # Create a new test suite. - api_response = api_instance.create_suite(code, suite_create) - print("The response of SuitesApi->create_suite:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SuitesApi->create_suite: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **suite_create** | [**SuiteCreate**](SuiteCreate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_suite** -> IdResponse delete_suite(code, id, suite_delete=suite_delete) - -Delete test suite. - -This method completely deletes a test suite with test cases from repository. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.suite_delete import SuiteDelete -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SuitesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - suite_delete = qaseio.SuiteDelete() # SuiteDelete | (optional) - - try: - # Delete test suite. - api_response = api_instance.delete_suite(code, id, suite_delete=suite_delete) - print("The response of SuitesApi->delete_suite:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SuitesApi->delete_suite: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **suite_delete** | [**SuiteDelete**](SuiteDelete.md)| | [optional] - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result of operation. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_suite** -> SuiteResponse get_suite(code, id) - -Get a specific test suite. - -This method allows to retrieve a specific test suite. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.suite_response import SuiteResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SuitesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - - try: - # Get a specific test suite. - api_response = api_instance.get_suite(code, id) - print("The response of SuitesApi->get_suite:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SuitesApi->get_suite: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - -### Return type - -[**SuiteResponse**](SuiteResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A Test Case. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_suites** -> SuiteListResponse get_suites(code, search=search, limit=limit, offset=offset) - -Get all test suites. - -This method allows to retrieve all test suites stored in selected project. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.suite_list_response import SuiteListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SuitesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - search = 'search_example' # str | Provide a string that will be used to search by name. (optional) - limit = 10 # int | A number of entities in result set. (optional) (default to 10) - offset = 0 # int | How many entities should be skipped. (optional) (default to 0) - - try: - # Get all test suites. - api_response = api_instance.get_suites(code, search=search, limit=limit, offset=offset) - print("The response of SuitesApi->get_suites:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SuitesApi->get_suites: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **search** | **str**| Provide a string that will be used to search by name. | [optional] - **limit** | **int**| A number of entities in result set. | [optional] [default to 10] - **offset** | **int**| How many entities should be skipped. | [optional] [default to 0] - -### Return type - -[**SuiteListResponse**](SuiteListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A list of all suites of project. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_suite** -> IdResponse update_suite(code, id, suite_update) - -Update test suite. - -This method is used to update a test suite through API. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.id_response import IdResponse -from qaseio.models.suite_update import SuiteUpdate -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SuitesApi(api_client) - code = 'code_example' # str | Code of project, where to search entities. - id = 56 # int | Identifier. - suite_update = qaseio.SuiteUpdate() # SuiteUpdate | - - try: - # Update test suite. - api_response = api_instance.update_suite(code, id, suite_update) - print("The response of SuitesApi->update_suite:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SuitesApi->update_suite: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **str**| Code of project, where to search entities. | - **id** | **int**| Identifier. | - **suite_update** | [**SuiteUpdate**](SuiteUpdate.md)| | - -### Return type - -[**IdResponse**](IdResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A result of operation. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**404** | Not Found. | - | -**422** | Unprocessable Entity. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/SystemField.md b/qaseio/docs/SystemField.md deleted file mode 100644 index 552e26b2..00000000 --- a/qaseio/docs/SystemField.md +++ /dev/null @@ -1,35 +0,0 @@ -# SystemField - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**slug** | **str** | | [optional] -**default_value** | **str** | | [optional] -**is_required** | **bool** | | [optional] -**entity** | **int** | | [optional] -**type** | **int** | | [optional] -**options** | [**List[SystemFieldOption]**](SystemFieldOption.md) | | [optional] - -## Example - -```python -from qaseio.models.system_field import SystemField - -# TODO update the JSON string below -json = "{}" -# create an instance of SystemField from a JSON string -system_field_instance = SystemField.from_json(json) -# print the JSON string representation of the object -print SystemField.to_json() - -# convert the object into a dict -system_field_dict = system_field_instance.to_dict() -# create an instance of SystemField from a dict -system_field_form_dict = system_field.from_dict(system_field_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SystemFieldListResponse.md b/qaseio/docs/SystemFieldListResponse.md deleted file mode 100644 index 6f4bea4f..00000000 --- a/qaseio/docs/SystemFieldListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SystemFieldListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**List[SystemField]**](SystemField.md) | | [optional] - -## Example - -```python -from qaseio.models.system_field_list_response import SystemFieldListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of SystemFieldListResponse from a JSON string -system_field_list_response_instance = SystemFieldListResponse.from_json(json) -# print the JSON string representation of the object -print SystemFieldListResponse.to_json() - -# convert the object into a dict -system_field_list_response_dict = system_field_list_response_instance.to_dict() -# create an instance of SystemFieldListResponse from a dict -system_field_list_response_form_dict = system_field_list_response.from_dict(system_field_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SystemFieldOption.md b/qaseio/docs/SystemFieldOption.md deleted file mode 100644 index a1774c56..00000000 --- a/qaseio/docs/SystemFieldOption.md +++ /dev/null @@ -1,35 +0,0 @@ -# SystemFieldOption - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**title** | **str** | | [optional] -**slug** | **str** | | [optional] -**color** | **str** | | [optional] -**icon** | **str** | | [optional] -**is_default** | **bool** | | [optional] -**read_only** | **bool** | | [optional] - -## Example - -```python -from qaseio.models.system_field_option import SystemFieldOption - -# TODO update the JSON string below -json = "{}" -# create an instance of SystemFieldOption from a JSON string -system_field_option_instance = SystemFieldOption.from_json(json) -# print the JSON string representation of the object -print SystemFieldOption.to_json() - -# convert the object into a dict -system_field_option_dict = system_field_option_instance.to_dict() -# create an instance of SystemFieldOption from a dict -system_field_option_form_dict = system_field_option.from_dict(system_field_option_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/SystemFieldsApi.md b/qaseio/docs/SystemFieldsApi.md deleted file mode 100644 index c80c174d..00000000 --- a/qaseio/docs/SystemFieldsApi.md +++ /dev/null @@ -1,90 +0,0 @@ -# qaseio.SystemFieldsApi - -All URIs are relative to *https://api.qase.io/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_system_fields**](SystemFieldsApi.md#get_system_fields) | **GET** /system_field | Get all System Fields. - - -# **get_system_fields** -> SystemFieldListResponse get_system_fields() - -Get all System Fields. - -This method allows to retrieve all system fields. - -### Example - -* Api Key Authentication (TokenAuth): - -```python -import time -import os -import qaseio -from qaseio.models.system_field_list_response import SystemFieldListResponse -from qaseio.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.qase.io/v1 -# See configuration.py for a list of all supported configuration parameters. -configuration = qaseio.Configuration( - host = "https://api.qase.io/v1" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure API key authorization: TokenAuth -configuration.api_key['TokenAuth'] = os.environ["API_KEY"] - -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['TokenAuth'] = 'Bearer' - -# Enter a context with an instance of the API client -with qaseio.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = qaseio.SystemFieldsApi(api_client) - - try: - # Get all System Fields. - api_response = api_instance.get_system_fields() - print("The response of SystemFieldsApi->get_system_fields:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling SystemFieldsApi->get_system_fields: %s\n" % e) -``` - - - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SystemFieldListResponse**](SystemFieldListResponse.md) - -### Authorization - -[TokenAuth](../README.md#TokenAuth) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | System Field list. | - | -**400** | Bad Request. | - | -**401** | Unauthorized. | - | -**403** | Forbidden. | - | -**429** | Too Many Requests. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/qaseio/docs/TagValue.md b/qaseio/docs/TagValue.md deleted file mode 100644 index 89cb0527..00000000 --- a/qaseio/docs/TagValue.md +++ /dev/null @@ -1,30 +0,0 @@ -# TagValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **str** | | [optional] -**internal_id** | **int** | | [optional] - -## Example - -```python -from qaseio.models.tag_value import TagValue - -# TODO update the JSON string below -json = "{}" -# create an instance of TagValue from a JSON string -tag_value_instance = TagValue.from_json(json) -# print the JSON string representation of the object -print TagValue.to_json() - -# convert the object into a dict -tag_value_dict = tag_value_instance.to_dict() -# create an instance of TagValue from a dict -tag_value_form_dict = tag_value.from_dict(tag_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCase.md b/qaseio/docs/TestCase.md deleted file mode 100644 index b0abe4cc..00000000 --- a/qaseio/docs/TestCase.md +++ /dev/null @@ -1,58 +0,0 @@ -# TestCase - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**position** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**behavior** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**steps_type** | **str** | | [optional] -**steps** | [**List[TestStep]**](TestStep.md) | | [optional] -**params** | [**TestCaseParams**](TestCaseParams.md) | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] -**deleted** | **str** | | [optional] -**created** | **str** | Deprecated, use the `created_at` property instead. | [optional] -**updated** | **str** | Deprecated, use the `updated_at` property instead. | [optional] -**external_issues** | [**List[ExternalIssue]**](ExternalIssue.md) | | [optional] - -## Example - -```python -from qaseio.models.test_case import TestCase - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCase from a JSON string -test_case_instance = TestCase.from_json(json) -# print the JSON string representation of the object -print TestCase.to_json() - -# convert the object into a dict -test_case_dict = test_case_instance.to_dict() -# create an instance of TestCase from a dict -test_case_form_dict = test_case.from_dict(test_case_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseCreate.md b/qaseio/docs/TestCaseCreate.md deleted file mode 100644 index 35610d47..00000000 --- a/qaseio/docs/TestCaseCreate.md +++ /dev/null @@ -1,50 +0,0 @@ -# TestCaseCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**title** | **str** | | -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**behavior** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**author_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**attachments** | **List[str]** | A list of Attachment hashes. | [optional] -**steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] -**tags** | **List[str]** | | [optional] -**params** | **Dict[str, List[str]]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] -**created_at** | **str** | | [optional] -**updated_at** | **str** | | [optional] - -## Example - -```python -from qaseio.models.test_case_create import TestCaseCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseCreate from a JSON string -test_case_create_instance = TestCaseCreate.from_json(json) -# print the JSON string representation of the object -print TestCaseCreate.to_json() - -# convert the object into a dict -test_case_create_dict = test_case_create_instance.to_dict() -# create an instance of TestCaseCreate from a dict -test_case_create_form_dict = test_case_create.from_dict(test_case_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseExternalIssues.md b/qaseio/docs/TestCaseExternalIssues.md deleted file mode 100644 index 5319237f..00000000 --- a/qaseio/docs/TestCaseExternalIssues.md +++ /dev/null @@ -1,30 +0,0 @@ -# TestCaseexternalIssues - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | -**links** | [**List[TestCaseExternalIssuesLinksInner]**](TestCaseExternalIssuesLinksInner.md) | | - -## Example - -```python -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseexternalIssues from a JSON string -test_caseexternal_issues_instance = TestCaseexternalIssues.from_json(json) -# print the JSON string representation of the object -print TestCaseexternalIssues.to_json() - -# convert the object into a dict -test_caseexternal_issues_dict = test_caseexternal_issues_instance.to_dict() -# create an instance of TestCaseexternalIssues from a dict -test_caseexternal_issues_form_dict = test_caseexternal_issues.from_dict(test_caseexternal_issues_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseExternalIssuesLinksInner.md b/qaseio/docs/TestCaseExternalIssuesLinksInner.md deleted file mode 100644 index ecf60c99..00000000 --- a/qaseio/docs/TestCaseExternalIssuesLinksInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# TestCaseExternalIssuesLinksInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**case_id** | **int** | | -**external_issues** | **List[str]** | | - -## Example - -```python -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseExternalIssuesLinksInner from a JSON string -test_case_external_issues_links_inner_instance = TestCaseExternalIssuesLinksInner.from_json(json) -# print the JSON string representation of the object -print TestCaseExternalIssuesLinksInner.to_json() - -# convert the object into a dict -test_case_external_issues_links_inner_dict = test_case_external_issues_links_inner_instance.to_dict() -# create an instance of TestCaseExternalIssuesLinksInner from a dict -test_case_external_issues_links_inner_form_dict = test_case_external_issues_links_inner.from_dict(test_case_external_issues_links_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseListResponse.md b/qaseio/docs/TestCaseListResponse.md deleted file mode 100644 index 8837d3ff..00000000 --- a/qaseio/docs/TestCaseListResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# TestCaseListResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**TestCaseListResponseAllOfResult**](TestCaseListResponseAllOfResult.md) | | [optional] - -## Example - -```python -from qaseio.models.test_case_list_response import TestCaseListResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseListResponse from a JSON string -test_case_list_response_instance = TestCaseListResponse.from_json(json) -# print the JSON string representation of the object -print TestCaseListResponse.to_json() - -# convert the object into a dict -test_case_list_response_dict = test_case_list_response_instance.to_dict() -# create an instance of TestCaseListResponse from a dict -test_case_list_response_form_dict = test_case_list_response.from_dict(test_case_list_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseListResponseAllOfResult.md b/qaseio/docs/TestCaseListResponseAllOfResult.md deleted file mode 100644 index 09eba2f9..00000000 --- a/qaseio/docs/TestCaseListResponseAllOfResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# TestCaseListResponseAllOfResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **int** | | [optional] -**filtered** | **int** | | [optional] -**count** | **int** | | [optional] -**entities** | [**List[TestCase]**](TestCase.md) | | [optional] - -## Example - -```python -from qaseio.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseListResponseAllOfResult from a JSON string -test_case_list_response_all_of_result_instance = TestCaseListResponseAllOfResult.from_json(json) -# print the JSON string representation of the object -print TestCaseListResponseAllOfResult.to_json() - -# convert the object into a dict -test_case_list_response_all_of_result_dict = test_case_list_response_all_of_result_instance.to_dict() -# create an instance of TestCaseListResponseAllOfResult from a dict -test_case_list_response_all_of_result_form_dict = test_case_list_response_all_of_result.from_dict(test_case_list_response_all_of_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseParams.md b/qaseio/docs/TestCaseParams.md deleted file mode 100644 index 9106baa8..00000000 --- a/qaseio/docs/TestCaseParams.md +++ /dev/null @@ -1,28 +0,0 @@ -# TestCaseParams - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from qaseio.models.test_case_params import TestCaseParams - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseParams from a JSON string -test_case_params_instance = TestCaseParams.from_json(json) -# print the JSON string representation of the object -print TestCaseParams.to_json() - -# convert the object into a dict -test_case_params_dict = test_case_params_instance.to_dict() -# create an instance of TestCaseParams from a dict -test_case_params_form_dict = test_case_params.from_dict(test_case_params_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseQuery.md b/qaseio/docs/TestCaseQuery.md deleted file mode 100644 index 5badd54b..00000000 --- a/qaseio/docs/TestCaseQuery.md +++ /dev/null @@ -1,54 +0,0 @@ -# TestCaseQuery - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**position** | **int** | | [optional] -**title** | **str** | | [optional] -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**behavior** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**custom_fields** | [**List[CustomFieldValue]**](CustomFieldValue.md) | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**steps_type** | **str** | | [optional] -**steps** | [**List[TestStep]**](TestStep.md) | | [optional] -**params** | [**TestCaseParams**](TestCaseParams.md) | | [optional] -**tags** | [**List[TagValue]**](TagValue.md) | | [optional] -**member_id** | **int** | Deprecated, use `author_id` instead. | [optional] -**author_id** | **int** | | [optional] -**created_at** | **datetime** | | [optional] -**updated_at** | **datetime** | | [optional] - -## Example - -```python -from qaseio.models.test_case_query import TestCaseQuery - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseQuery from a JSON string -test_case_query_instance = TestCaseQuery.from_json(json) -# print the JSON string representation of the object -print TestCaseQuery.to_json() - -# convert the object into a dict -test_case_query_dict = test_case_query_instance.to_dict() -# create an instance of TestCaseQuery from a dict -test_case_query_form_dict = test_case_query.from_dict(test_case_query_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseResponse.md b/qaseio/docs/TestCaseResponse.md deleted file mode 100644 index 013c7644..00000000 --- a/qaseio/docs/TestCaseResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# TestCaseResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **bool** | | [optional] -**result** | [**TestCase**](TestCase.md) | | [optional] - -## Example - -```python -from qaseio.models.test_case_response import TestCaseResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseResponse from a JSON string -test_case_response_instance = TestCaseResponse.from_json(json) -# print the JSON string representation of the object -print TestCaseResponse.to_json() - -# convert the object into a dict -test_case_response_dict = test_case_response_instance.to_dict() -# create an instance of TestCaseResponse from a dict -test_case_response_form_dict = test_case_response.from_dict(test_case_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCaseUpdate.md b/qaseio/docs/TestCaseUpdate.md deleted file mode 100644 index b9e3f05a..00000000 --- a/qaseio/docs/TestCaseUpdate.md +++ /dev/null @@ -1,47 +0,0 @@ -# TestCaseUpdate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**title** | **str** | | [optional] -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**behavior** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**attachments** | **List[str]** | A list of Attachment hashes. | [optional] -**steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] -**tags** | **List[str]** | | [optional] -**params** | **Dict[str, List[str]]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] - -## Example - -```python -from qaseio.models.test_case_update import TestCaseUpdate - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCaseUpdate from a JSON string -test_case_update_instance = TestCaseUpdate.from_json(json) -# print the JSON string representation of the object -print TestCaseUpdate.to_json() - -# convert the object into a dict -test_case_update_dict = test_case_update_instance.to_dict() -# create an instance of TestCaseUpdate from a dict -test_case_update_form_dict = test_case_update.from_dict(test_case_update_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCasebulk.md b/qaseio/docs/TestCasebulk.md deleted file mode 100644 index 73166905..00000000 --- a/qaseio/docs/TestCasebulk.md +++ /dev/null @@ -1,29 +0,0 @@ -# TestCasebulk - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cases** | [**List[TestCasebulkCasesInner]**](TestCasebulkCasesInner.md) | | - -## Example - -```python -from qaseio.models.test_casebulk import TestCasebulk - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCasebulk from a JSON string -test_casebulk_instance = TestCasebulk.from_json(json) -# print the JSON string representation of the object -print TestCasebulk.to_json() - -# convert the object into a dict -test_casebulk_dict = test_casebulk_instance.to_dict() -# create an instance of TestCasebulk from a dict -test_casebulk_form_dict = test_casebulk.from_dict(test_casebulk_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestCasebulkCasesInner.md b/qaseio/docs/TestCasebulkCasesInner.md deleted file mode 100644 index f5b6a108..00000000 --- a/qaseio/docs/TestCasebulkCasesInner.md +++ /dev/null @@ -1,51 +0,0 @@ -# TestCasebulkCasesInner - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**preconditions** | **str** | | [optional] -**postconditions** | **str** | | [optional] -**title** | **str** | | -**severity** | **int** | | [optional] -**priority** | **int** | | [optional] -**behavior** | **int** | | [optional] -**type** | **int** | | [optional] -**layer** | **int** | | [optional] -**is_flaky** | **int** | | [optional] -**author_id** | **int** | | [optional] -**suite_id** | **int** | | [optional] -**milestone_id** | **int** | | [optional] -**automation** | **int** | | [optional] -**status** | **int** | | [optional] -**attachments** | **List[str]** | A list of Attachment hashes. | [optional] -**steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] -**tags** | **List[str]** | | [optional] -**params** | **Dict[str, List[str]]** | | [optional] -**custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] -**created_at** | **str** | | [optional] -**updated_at** | **str** | | [optional] -**id** | **int** | | [optional] - -## Example - -```python -from qaseio.models.test_casebulk_cases_inner import TestCasebulkCasesInner - -# TODO update the JSON string below -json = "{}" -# create an instance of TestCasebulkCasesInner from a JSON string -test_casebulk_cases_inner_instance = TestCasebulkCasesInner.from_json(json) -# print the JSON string representation of the object -print TestCasebulkCasesInner.to_json() - -# convert the object into a dict -test_casebulk_cases_inner_dict = test_casebulk_cases_inner_instance.to_dict() -# create an instance of TestCasebulkCasesInner from a dict -test_casebulk_cases_inner_form_dict = test_casebulk_cases_inner.from_dict(test_casebulk_cases_inner_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestStep.md b/qaseio/docs/TestStep.md deleted file mode 100644 index c81e65a2..00000000 --- a/qaseio/docs/TestStep.md +++ /dev/null @@ -1,37 +0,0 @@ -# TestStep - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**hash** | **str** | | [optional] -**shared_step_hash** | **str** | | [optional] -**shared_step_nested_hash** | **str** | | [optional] -**position** | **int** | | [optional] -**action** | **str** | | [optional] -**expected_result** | **str** | | [optional] -**data** | **str** | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**steps** | **List[object]** | Nested steps will be here. The same structure is used for them. | [optional] - -## Example - -```python -from qaseio.models.test_step import TestStep - -# TODO update the JSON string below -json = "{}" -# create an instance of TestStep from a JSON string -test_step_instance = TestStep.from_json(json) -# print the JSON string representation of the object -print TestStep.to_json() - -# convert the object into a dict -test_step_dict = test_step_instance.to_dict() -# create an instance of TestStep from a dict -test_step_form_dict = test_step.from_dict(test_step_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestStepCreate.md b/qaseio/docs/TestStepCreate.md deleted file mode 100644 index aea36f73..00000000 --- a/qaseio/docs/TestStepCreate.md +++ /dev/null @@ -1,34 +0,0 @@ -# TestStepCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **str** | | [optional] -**expected_result** | **str** | | [optional] -**data** | **str** | | [optional] -**position** | **int** | | [optional] -**attachments** | **List[str]** | A list of Attachment hashes. | [optional] -**steps** | **List[object]** | Nested steps may be passed here. Use same structure for them. | [optional] - -## Example - -```python -from qaseio.models.test_step_create import TestStepCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of TestStepCreate from a JSON string -test_step_create_instance = TestStepCreate.from_json(json) -# print the JSON string representation of the object -print TestStepCreate.to_json() - -# convert the object into a dict -test_step_create_dict = test_step_create_instance.to_dict() -# create an instance of TestStepCreate from a dict -test_step_create_form_dict = test_step_create.from_dict(test_step_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestStepResult.md b/qaseio/docs/TestStepResult.md deleted file mode 100644 index eeb24593..00000000 --- a/qaseio/docs/TestStepResult.md +++ /dev/null @@ -1,32 +0,0 @@ -# TestStepResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **int** | | [optional] -**position** | **int** | | [optional] -**attachments** | [**List[Attachment]**](Attachment.md) | | [optional] -**steps** | **List[object]** | Nested steps results will be here. The same structure is used for them for them. | [optional] - -## Example - -```python -from qaseio.models.test_step_result import TestStepResult - -# TODO update the JSON string below -json = "{}" -# create an instance of TestStepResult from a JSON string -test_step_result_instance = TestStepResult.from_json(json) -# print the JSON string representation of the object -print TestStepResult.to_json() - -# convert the object into a dict -test_step_result_dict = test_step_result_instance.to_dict() -# create an instance of TestStepResult from a dict -test_step_result_form_dict = test_step_result.from_dict(test_step_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/docs/TestStepResultCreate.md b/qaseio/docs/TestStepResultCreate.md deleted file mode 100644 index 1eabdcfe..00000000 --- a/qaseio/docs/TestStepResultCreate.md +++ /dev/null @@ -1,36 +0,0 @@ -# TestStepResultCreate - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**position** | **int** | | [optional] -**status** | **str** | | -**comment** | **str** | | [optional] -**attachments** | **List[str]** | | [optional] -**action** | **str** | | [optional] -**expected_result** | **str** | | [optional] -**data** | **str** | | [optional] -**steps** | **List[object]** | Nested steps results may be passed here. Use same structure for them. | [optional] - -## Example - -```python -from qaseio.models.test_step_result_create import TestStepResultCreate - -# TODO update the JSON string below -json = "{}" -# create an instance of TestStepResultCreate from a JSON string -test_step_result_create_instance = TestStepResultCreate.from_json(json) -# print the JSON string representation of the object -print TestStepResultCreate.to_json() - -# convert the object into a dict -test_step_result_create_dict = test_step_result_create_instance.to_dict() -# create an instance of TestStepResultCreate from a dict -test_step_result_create_form_dict = test_step_result_create.from_dict(test_step_result_create_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/qaseio/pyproject.toml b/qaseio/pyproject.toml deleted file mode 100644 index c7485061..00000000 --- a/qaseio/pyproject.toml +++ /dev/null @@ -1,89 +0,0 @@ -[build-system] -requires = ["setuptools>=68", "wheel"] -build-backend = "setuptools.build_meta" - -[project] -name = "qaseio" -version = "4.0.1" -description = "Qase TestOps API client for Python" -readme = "README.md" -authors = [{name = "Qase Team", email = "support@qase.io"}] -license = {file = "LICENSE"} -classifiers = [ - "Development Status :: 5 - Production/Stable", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Typing :: Typed", -] -urls = {"Homepage" = "https://github.com/qase-tms/qase-python"} -keywords = ["OpenAPI", "OpenAPI-Generator", "Qase.io TestOps API"] -requires-python = ">=3.7" -dependencies = [ - "urllib3 >= 1.25.3, < 2.1.0", - "python-dateutil", - "pydantic >= 2", - "typing-extensions >= 4.7.1", -] - -[project.optional-dependencies] -# Define any optional dependencies here if necessary - -[tool.tox] -legacy_tox_ini = """ -[tox] -minversion = 3.7 -envlist = py{37,38,39,310,311} - -[testenv] -deps = - pytest - pytest-cov -passenv = - HOME -commands = - pytest --cov-config=pyproject.toml {posargs} -extras = - all - testing -""" - -[tool.setuptools.packages.find] -where = ["src"] - -[tool.pytest.ini_options] -addopts = "--cov-report=term-missing --verbose" -norecursedirs = ["dist", "build", ".tox"] -testpaths = ["tests"] - -[tool.flake8] -exclude = [".tox", "build", "dist", ".eggs"] - -[tool.coverage.run] -branch = true - -[tool.coverage.paths] -source = ["src/qaseio"] - -[tool.coverage.report] -# Regexes for lines to exclude from consideration -exclude_also = [ - # Don't complain about missing debug-only code: - "def __repr__", - "if self\\.debug", - - # Don't complain if tests don't hit defensive assertion code: - "raise AssertionError", - "raise NotImplementedError", - - # Don't complain if non-runnable code isn't run: - "if 0:", - "if __name__ == .__main__.:", - - # Don't complain about abstract methods, they aren't run: - "@(abc\\.)?abstractmethod", - ] - -ignore_errors = false \ No newline at end of file diff --git a/qaseio/requirements.txt b/qaseio/requirements.txt deleted file mode 100644 index 2bd89c85..00000000 --- a/qaseio/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -python_dateutil >= 2.8.2 -setuptools >= 67.0.0 -urllib3 >= 1.25.3, < 2.1.0 -pydantic >= 2 -typing-extensions >= 4.7.1 diff --git a/qaseio/src/qaseio/__init__.py b/qaseio/src/qaseio/__init__.py deleted file mode 100644 index 9c292b9f..00000000 --- a/qaseio/src/qaseio/__init__.py +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 4.0.1 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -__version__ = "4.0.1" - -# import apis into sdk package -from qaseio.api.attachments_api import AttachmentsApi -from qaseio.api.authors_api import AuthorsApi -from qaseio.api.cases_api import CasesApi -from qaseio.api.configurations_api import ConfigurationsApi -from qaseio.api.custom_fields_api import CustomFieldsApi -from qaseio.api.defects_api import DefectsApi -from qaseio.api.environments_api import EnvironmentsApi -from qaseio.api.milestones_api import MilestonesApi -from qaseio.api.plans_api import PlansApi -from qaseio.api.projects_api import ProjectsApi -from qaseio.api.results_api import ResultsApi -from qaseio.api.runs_api import RunsApi -from qaseio.api.search_api import SearchApi -from qaseio.api.shared_steps_api import SharedStepsApi -from qaseio.api.suites_api import SuitesApi -from qaseio.api.system_fields_api import SystemFieldsApi - -# import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.api_client import ApiClient -from qaseio.configuration import Configuration -from qaseio.exceptions import OpenApiException -from qaseio.exceptions import ApiTypeError -from qaseio.exceptions import ApiValueError -from qaseio.exceptions import ApiKeyError -from qaseio.exceptions import ApiAttributeError -from qaseio.exceptions import ApiException - -# import models into sdk package -from qaseio.models.attachment import Attachment -from qaseio.models.attachment_get import AttachmentGet -from qaseio.models.attachment_hash import AttachmentHash -from qaseio.models.attachment_list_response import AttachmentListResponse -from qaseio.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult -from qaseio.models.attachment_response import AttachmentResponse -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse -from qaseio.models.attachmentupload import Attachmentupload -from qaseio.models.author import Author -from qaseio.models.author_list_response import AuthorListResponse -from qaseio.models.author_list_response_all_of_result import AuthorListResponseAllOfResult -from qaseio.models.author_response import AuthorResponse -from qaseio.models.base_response import BaseResponse -from qaseio.models.bulk200_response import Bulk200Response -from qaseio.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult -from qaseio.models.configuration import Configuration -from qaseio.models.configuration_create import ConfigurationCreate -from qaseio.models.configuration_group import ConfigurationGroup -from qaseio.models.configuration_group_create import ConfigurationGroupCreate -from qaseio.models.configuration_list_response import ConfigurationListResponse -from qaseio.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult -from qaseio.models.custom_field import CustomField -from qaseio.models.custom_field_create import CustomFieldCreate -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner -from qaseio.models.custom_field_list_response import CustomFieldListResponse -from qaseio.models.custom_field_response import CustomFieldResponse -from qaseio.models.custom_field_update import CustomFieldUpdate -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.custom_fields_response import CustomFieldsResponse -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult -from qaseio.models.defect import Defect -from qaseio.models.defect_create import DefectCreate -from qaseio.models.defect_list_response import DefectListResponse -from qaseio.models.defect_list_response_all_of_result import DefectListResponseAllOfResult -from qaseio.models.defect_query import DefectQuery -from qaseio.models.defect_response import DefectResponse -from qaseio.models.defect_status import DefectStatus -from qaseio.models.defect_update import DefectUpdate -from qaseio.models.environment import Environment -from qaseio.models.environment_create import EnvironmentCreate -from qaseio.models.environment_list_response import EnvironmentListResponse -from qaseio.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult -from qaseio.models.environment_response import EnvironmentResponse -from qaseio.models.environment_update import EnvironmentUpdate -from qaseio.models.external_issue import ExternalIssue -from qaseio.models.external_issue_issues_inner import ExternalIssueIssuesInner -from qaseio.models.hash_response import HashResponse -from qaseio.models.hash_response_all_of_result import HashResponseAllOfResult -from qaseio.models.id_response import IdResponse -from qaseio.models.id_response_all_of_result import IdResponseAllOfResult -from qaseio.models.milestone import Milestone -from qaseio.models.milestone_create import MilestoneCreate -from qaseio.models.milestone_list_response import MilestoneListResponse -from qaseio.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult -from qaseio.models.milestone_response import MilestoneResponse -from qaseio.models.milestone_update import MilestoneUpdate -from qaseio.models.plan import Plan -from qaseio.models.plan_create import PlanCreate -from qaseio.models.plan_detailed import PlanDetailed -from qaseio.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases -from qaseio.models.plan_list_response import PlanListResponse -from qaseio.models.plan_list_response_all_of_result import PlanListResponseAllOfResult -from qaseio.models.plan_query import PlanQuery -from qaseio.models.plan_response import PlanResponse -from qaseio.models.plan_update import PlanUpdate -from qaseio.models.project import Project -from qaseio.models.project_access import ProjectAccess -from qaseio.models.project_code_response import ProjectCodeResponse -from qaseio.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult -from qaseio.models.project_counts import ProjectCounts -from qaseio.models.project_counts_defects import ProjectCountsDefects -from qaseio.models.project_counts_runs import ProjectCountsRuns -from qaseio.models.project_create import ProjectCreate -from qaseio.models.project_list_response import ProjectListResponse -from qaseio.models.project_list_response_all_of_result import ProjectListResponseAllOfResult -from qaseio.models.project_response import ProjectResponse -from qaseio.models.qql_defect import QqlDefect -from qaseio.models.qql_plan import QqlPlan -from qaseio.models.qql_test_case import QqlTestCase -from qaseio.models.requirement import Requirement -from qaseio.models.response import Response -from qaseio.models.result import Result -from qaseio.models.result_create import ResultCreate -from qaseio.models.result_create_bulk import ResultCreateBulk -from qaseio.models.result_create_case import ResultCreateCase -from qaseio.models.result_create_response import ResultCreateResponse -from qaseio.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult -from qaseio.models.result_list_response import ResultListResponse -from qaseio.models.result_list_response_all_of_result import ResultListResponseAllOfResult -from qaseio.models.result_response import ResultResponse -from qaseio.models.result_update import ResultUpdate -from qaseio.models.resultcreate_bulk import ResultcreateBulk -from qaseio.models.run import Run -from qaseio.models.run_create import RunCreate -from qaseio.models.run_environment import RunEnvironment -from qaseio.models.run_list_response import RunListResponse -from qaseio.models.run_list_response_all_of_result import RunListResponseAllOfResult -from qaseio.models.run_milestone import RunMilestone -from qaseio.models.run_public import RunPublic -from qaseio.models.run_public_response import RunPublicResponse -from qaseio.models.run_public_response_all_of_result import RunPublicResponseAllOfResult -from qaseio.models.run_response import RunResponse -from qaseio.models.run_stats import RunStats -from qaseio.models.search_response import SearchResponse -from qaseio.models.search_response_all_of_result import SearchResponseAllOfResult -from qaseio.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities -from qaseio.models.shared_step import SharedStep -from qaseio.models.shared_step_content import SharedStepContent -from qaseio.models.shared_step_content_create import SharedStepContentCreate -from qaseio.models.shared_step_create import SharedStepCreate -from qaseio.models.shared_step_list_response import SharedStepListResponse -from qaseio.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult -from qaseio.models.shared_step_response import SharedStepResponse -from qaseio.models.shared_step_update import SharedStepUpdate -from qaseio.models.suite import Suite -from qaseio.models.suite_create import SuiteCreate -from qaseio.models.suite_delete import SuiteDelete -from qaseio.models.suite_list_response import SuiteListResponse -from qaseio.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult -from qaseio.models.suite_response import SuiteResponse -from qaseio.models.suite_update import SuiteUpdate -from qaseio.models.system_field import SystemField -from qaseio.models.system_field_list_response import SystemFieldListResponse -from qaseio.models.system_field_option import SystemFieldOption -from qaseio.models.tag_value import TagValue -from qaseio.models.test_case import TestCase -from qaseio.models.test_case_create import TestCaseCreate -from qaseio.models.test_case_external_issues import TestCaseExternalIssues -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner -from qaseio.models.test_case_list_response import TestCaseListResponse -from qaseio.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult -from qaseio.models.test_case_params import TestCaseParams -from qaseio.models.test_case_query import TestCaseQuery -from qaseio.models.test_case_response import TestCaseResponse -from qaseio.models.test_case_update import TestCaseUpdate -from qaseio.models.test_casebulk import TestCasebulk -from qaseio.models.test_casebulk_cases_inner import TestCasebulkCasesInner -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues -from qaseio.models.test_step import TestStep -from qaseio.models.test_step_create import TestStepCreate -from qaseio.models.test_step_result import TestStepResult -from qaseio.models.test_step_result_create import TestStepResultCreate diff --git a/qaseio/src/qaseio/api/__init__.py b/qaseio/src/qaseio/api/__init__.py deleted file mode 100644 index a27aae18..00000000 --- a/qaseio/src/qaseio/api/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# flake8: noqa - -# import apis into api package -from qaseio.api.attachments_api import AttachmentsApi -from qaseio.api.authors_api import AuthorsApi -from qaseio.api.cases_api import CasesApi -from qaseio.api.configurations_api import ConfigurationsApi -from qaseio.api.custom_fields_api import CustomFieldsApi -from qaseio.api.defects_api import DefectsApi -from qaseio.api.environments_api import EnvironmentsApi -from qaseio.api.milestones_api import MilestonesApi -from qaseio.api.plans_api import PlansApi -from qaseio.api.projects_api import ProjectsApi -from qaseio.api.results_api import ResultsApi -from qaseio.api.runs_api import RunsApi -from qaseio.api.search_api import SearchApi -from qaseio.api.shared_steps_api import SharedStepsApi -from qaseio.api.suites_api import SuitesApi -from qaseio.api.system_fields_api import SystemFieldsApi - diff --git a/qaseio/src/qaseio/api/attachments_api.py b/qaseio/src/qaseio/api/attachments_api.py deleted file mode 100644 index e9043bdb..00000000 --- a/qaseio/src/qaseio/api/attachments_api.py +++ /dev/null @@ -1,1199 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictBytes, StrictStr - -from typing import List, Optional, Union - -from qaseio.models.attachment_list_response import AttachmentListResponse -from qaseio.models.attachment_response import AttachmentResponse -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse -from qaseio.models.hash_response import HashResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class AttachmentsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def delete_attachment( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Remove attachment by Hash. - - This method allows to remove attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_attachment_with_http_info( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Remove attachment by Hash. - - This method allows to remove attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_attachment_without_preload_content( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Remove attachment by Hash. - - This method allows to remove attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_attachment_serialize( - self, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/attachment/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_attachment( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AttachmentResponse: - """Get attachment by Hash. - - This method allows to retrieve attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_attachment_with_http_info( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AttachmentResponse]: - """Get attachment by Hash. - - This method allows to retrieve attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_attachment_without_preload_content( - self, - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get attachment by Hash. - - This method allows to retrieve attachment by Hash. - - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachment_serialize( - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_attachment_serialize( - self, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/attachment/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_attachments( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AttachmentListResponse: - """Get all attachments. - - This method allows to retrieve attachments. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachments_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_attachments_with_http_info( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AttachmentListResponse]: - """Get all attachments. - - This method allows to retrieve attachments. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachments_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_attachments_without_preload_content( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all attachments. - - This method allows to retrieve attachments. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_attachments_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_attachments_serialize( - self, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/attachment', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def upload_attachment( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - file: Optional[List] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AttachmentUploadsResponse: - """Upload attachment. - - This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param file: - :type file: List[bytearray] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_attachment_serialize( - code=code, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentUploadsResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_attachment_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - file: Optional[List] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AttachmentUploadsResponse]: - """Upload attachment. - - This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param file: - :type file: List[bytearray] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_attachment_serialize( - code=code, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentUploadsResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_attachment_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - file: Optional[List] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upload attachment. - - This method allows to upload attachment to Qase. Max upload size: * Up to 32 Mb per file * Up to 128 Mb per single request * Up to 20 files per single request If there is no free space left in your team account, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param file: - :type file: List[bytearray] - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_attachment_serialize( - code=code, - file=file, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AttachmentUploadsResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_attachment_serialize( - self, - code, - file, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - 'file': 'csv', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/attachment/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/authors_api.py b/qaseio/src/qaseio/api/authors_api.py deleted file mode 100644 index 1ac8dd71..00000000 --- a/qaseio/src/qaseio/api/authors_api.py +++ /dev/null @@ -1,650 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator - -from typing import Optional - -from qaseio.models.author_list_response import AuthorListResponse -from qaseio.models.author_response import AuthorResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class AuthorsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_author( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthorResponse: - """Get a specific author. - - This method allows to retrieve a specific author. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_author_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_author_with_http_info( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AuthorResponse]: - """Get a specific author. - - This method allows to retrieve a specific author. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_author_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_author_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific author. - - This method allows to retrieve a specific author. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_author_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_author_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/author/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_authors( - self, - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthorListResponse: - """Get all authors. - - This method allows to retrieve all authors in selected project. - - :param search: Provide a string that will be used to search by name. - :type search: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_authors_serialize( - search=search, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_authors_with_http_info( - self, - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AuthorListResponse]: - """Get all authors. - - This method allows to retrieve all authors in selected project. - - :param search: Provide a string that will be used to search by name. - :type search: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_authors_serialize( - search=search, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_authors_without_preload_content( - self, - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all authors. - - This method allows to retrieve all authors in selected project. - - :param search: Provide a string that will be used to search by name. - :type search: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_authors_serialize( - search=search, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthorListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_authors_serialize( - self, - search, - type, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if type is not None: - - _query_params.append(('type', type)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/author', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/cases_api.py b/qaseio/src/qaseio/api/cases_api.py deleted file mode 100644 index fdb78408..00000000 --- a/qaseio/src/qaseio/api/cases_api.py +++ /dev/null @@ -1,2681 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator - -from typing import List, Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.bulk200_response import Bulk200Response -from qaseio.models.id_response import IdResponse -from qaseio.models.test_case_create import TestCaseCreate -from qaseio.models.test_case_list_response import TestCaseListResponse -from qaseio.models.test_case_response import TestCaseResponse -from qaseio.models.test_case_update import TestCaseUpdate -from qaseio.models.test_casebulk import TestCasebulk -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class CasesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def bulk( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_casebulk: TestCasebulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Bulk200Response: - """Create test cases in bulk. - - This method allows to bulk create new test cases in a project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_casebulk: (required) - :type test_casebulk: TestCasebulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_serialize( - code=code, - test_casebulk=test_casebulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Bulk200Response", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def bulk_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_casebulk: TestCasebulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Bulk200Response]: - """Create test cases in bulk. - - This method allows to bulk create new test cases in a project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_casebulk: (required) - :type test_casebulk: TestCasebulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_serialize( - code=code, - test_casebulk=test_casebulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Bulk200Response", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def bulk_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_casebulk: TestCasebulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create test cases in bulk. - - This method allows to bulk create new test cases in a project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_casebulk: (required) - :type test_casebulk: TestCasebulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._bulk_serialize( - code=code, - test_casebulk=test_casebulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Bulk200Response", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _bulk_serialize( - self, - code, - test_casebulk, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if test_casebulk is not None: - _body_params = test_casebulk - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/case/{code}/bulk', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def case_attach_external_issue( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Attach the external issues to the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_attach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def case_attach_external_issue_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Attach the external issues to the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_attach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def case_attach_external_issue_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Attach the external issues to the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_attach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _case_attach_external_issue_serialize( - self, - code, - test_caseexternal_issues, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if test_caseexternal_issues is not None: - _body_params = test_caseexternal_issues - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/case/{code}/external-issue/attach', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def case_detach_external_issue( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Detach the external issues from the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_detach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def case_detach_external_issue_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Detach the external issues from the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_detach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def case_detach_external_issue_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_caseexternal_issues: TestCaseexternalIssues, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Detach the external issues from the test cases. - - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._case_detach_external_issue_serialize( - code=code, - test_caseexternal_issues=test_caseexternal_issues, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _case_detach_external_issue_serialize( - self, - code, - test_caseexternal_issues, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if test_caseexternal_issues is not None: - _body_params = test_caseexternal_issues - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/case/{code}/external-issue/detach', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_case( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_case_create: TestCaseCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new test case. - - This method allows to create a new test case in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_case_create: (required) - :type test_case_create: TestCaseCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_case_serialize( - code=code, - test_case_create=test_case_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_case_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_case_create: TestCaseCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new test case. - - This method allows to create a new test case in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_case_create: (required) - :type test_case_create: TestCaseCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_case_serialize( - code=code, - test_case_create=test_case_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_case_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - test_case_create: TestCaseCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new test case. - - This method allows to create a new test case in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param test_case_create: (required) - :type test_case_create: TestCaseCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_case_serialize( - code=code, - test_case_create=test_case_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_case_serialize( - self, - code, - test_case_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if test_case_create is not None: - _body_params = test_case_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/case/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_case( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete test case. - - This method completely deletes a test case from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_case_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete test case. - - This method completely deletes a test case from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_case_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete test case. - - This method completely deletes a test case from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_case_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/case/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_case( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TestCaseResponse: - """Get a specific test case. - - This method allows to retrieve a specific test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_case_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TestCaseResponse]: - """Get a specific test case. - - This method allows to retrieve a specific test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_case_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific test case. - - This method allows to retrieve a specific test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_case_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_case_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/case/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_cases( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - milestone_id: Annotated[Optional[StrictInt], Field(description="ID of milestone.")] = None, - suite_id: Annotated[Optional[StrictInt], Field(description="ID of test suite.")] = None, - severity: Annotated[Optional[StrictStr], Field(description="A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial ")] = None, - priority: Annotated[Optional[StrictStr], Field(description="A list of priority values separated by comma. Possible values: undefined, high, medium, low ")] = None, - type: Annotated[Optional[StrictStr], Field(description="A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance ")] = None, - behavior: Annotated[Optional[StrictStr], Field(description="A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive ")] = None, - automation: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated ")] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: actual, draft deprecated ")] = None, - external_issues_type: Annotated[Optional[StrictStr], Field(description="An integration type. ")] = None, - external_issues_ids: Annotated[Optional[List[StrictStr]], Field(description="A list of issue IDs.")] = None, - include: Annotated[Optional[StrictStr], Field(description="A list of entities to include in response separated by comma. Possible values: external_issues. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TestCaseListResponse: - """Get all test cases. - - This method allows to retrieve all test cases stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param milestone_id: ID of milestone. - :type milestone_id: int - :param suite_id: ID of test suite. - :type suite_id: int - :param severity: A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - :type severity: str - :param priority: A list of priority values separated by comma. Possible values: undefined, high, medium, low - :type priority: str - :param type: A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - :type type: str - :param behavior: A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - :type behavior: str - :param automation: A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - :type automation: str - :param status: A list of values separated by comma. Possible values: actual, draft deprecated - :type status: str - :param external_issues_type: An integration type. - :type external_issues_type: str - :param external_issues_ids: A list of issue IDs. - :type external_issues_ids: List[str] - :param include: A list of entities to include in response separated by comma. Possible values: external_issues. - :type include: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_cases_serialize( - code=code, - search=search, - milestone_id=milestone_id, - suite_id=suite_id, - severity=severity, - priority=priority, - type=type, - behavior=behavior, - automation=automation, - status=status, - external_issues_type=external_issues_type, - external_issues_ids=external_issues_ids, - include=include, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_cases_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - milestone_id: Annotated[Optional[StrictInt], Field(description="ID of milestone.")] = None, - suite_id: Annotated[Optional[StrictInt], Field(description="ID of test suite.")] = None, - severity: Annotated[Optional[StrictStr], Field(description="A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial ")] = None, - priority: Annotated[Optional[StrictStr], Field(description="A list of priority values separated by comma. Possible values: undefined, high, medium, low ")] = None, - type: Annotated[Optional[StrictStr], Field(description="A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance ")] = None, - behavior: Annotated[Optional[StrictStr], Field(description="A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive ")] = None, - automation: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated ")] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: actual, draft deprecated ")] = None, - external_issues_type: Annotated[Optional[StrictStr], Field(description="An integration type. ")] = None, - external_issues_ids: Annotated[Optional[List[StrictStr]], Field(description="A list of issue IDs.")] = None, - include: Annotated[Optional[StrictStr], Field(description="A list of entities to include in response separated by comma. Possible values: external_issues. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TestCaseListResponse]: - """Get all test cases. - - This method allows to retrieve all test cases stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param milestone_id: ID of milestone. - :type milestone_id: int - :param suite_id: ID of test suite. - :type suite_id: int - :param severity: A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - :type severity: str - :param priority: A list of priority values separated by comma. Possible values: undefined, high, medium, low - :type priority: str - :param type: A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - :type type: str - :param behavior: A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - :type behavior: str - :param automation: A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - :type automation: str - :param status: A list of values separated by comma. Possible values: actual, draft deprecated - :type status: str - :param external_issues_type: An integration type. - :type external_issues_type: str - :param external_issues_ids: A list of issue IDs. - :type external_issues_ids: List[str] - :param include: A list of entities to include in response separated by comma. Possible values: external_issues. - :type include: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_cases_serialize( - code=code, - search=search, - milestone_id=milestone_id, - suite_id=suite_id, - severity=severity, - priority=priority, - type=type, - behavior=behavior, - automation=automation, - status=status, - external_issues_type=external_issues_type, - external_issues_ids=external_issues_ids, - include=include, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_cases_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - milestone_id: Annotated[Optional[StrictInt], Field(description="ID of milestone.")] = None, - suite_id: Annotated[Optional[StrictInt], Field(description="ID of test suite.")] = None, - severity: Annotated[Optional[StrictStr], Field(description="A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial ")] = None, - priority: Annotated[Optional[StrictStr], Field(description="A list of priority values separated by comma. Possible values: undefined, high, medium, low ")] = None, - type: Annotated[Optional[StrictStr], Field(description="A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance ")] = None, - behavior: Annotated[Optional[StrictStr], Field(description="A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive ")] = None, - automation: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated ")] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of values separated by comma. Possible values: actual, draft deprecated ")] = None, - external_issues_type: Annotated[Optional[StrictStr], Field(description="An integration type. ")] = None, - external_issues_ids: Annotated[Optional[List[StrictStr]], Field(description="A list of issue IDs.")] = None, - include: Annotated[Optional[StrictStr], Field(description="A list of entities to include in response separated by comma. Possible values: external_issues. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all test cases. - - This method allows to retrieve all test cases stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param milestone_id: ID of milestone. - :type milestone_id: int - :param suite_id: ID of test suite. - :type suite_id: int - :param severity: A list of severity values separated by comma. Possible values: undefined, blocker, critical, major, normal, minor, trivial - :type severity: str - :param priority: A list of priority values separated by comma. Possible values: undefined, high, medium, low - :type priority: str - :param type: A list of type values separated by comma. Possible values: other, functional smoke, regression, security, usability, performance, acceptance - :type type: str - :param behavior: A list of behavior values separated by comma. Possible values: undefined, positive negative, destructive - :type behavior: str - :param automation: A list of values separated by comma. Possible values: is-not-automated, automated to-be-automated - :type automation: str - :param status: A list of values separated by comma. Possible values: actual, draft deprecated - :type status: str - :param external_issues_type: An integration type. - :type external_issues_type: str - :param external_issues_ids: A list of issue IDs. - :type external_issues_ids: List[str] - :param include: A list of entities to include in response separated by comma. Possible values: external_issues. - :type include: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_cases_serialize( - code=code, - search=search, - milestone_id=milestone_id, - suite_id=suite_id, - severity=severity, - priority=priority, - type=type, - behavior=behavior, - automation=automation, - status=status, - external_issues_type=external_issues_type, - external_issues_ids=external_issues_ids, - include=include, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "TestCaseListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_cases_serialize( - self, - code, - search, - milestone_id, - suite_id, - severity, - priority, - type, - behavior, - automation, - status, - external_issues_type, - external_issues_ids, - include, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - 'external_issues[ids][]': 'csv', - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if milestone_id is not None: - - _query_params.append(('milestone_id', milestone_id)) - - if suite_id is not None: - - _query_params.append(('suite_id', suite_id)) - - if severity is not None: - - _query_params.append(('severity', severity)) - - if priority is not None: - - _query_params.append(('priority', priority)) - - if type is not None: - - _query_params.append(('type', type)) - - if behavior is not None: - - _query_params.append(('behavior', behavior)) - - if automation is not None: - - _query_params.append(('automation', automation)) - - if status is not None: - - _query_params.append(('status', status)) - - if external_issues_type is not None: - - _query_params.append(('external_issues[type]', external_issues_type)) - - if external_issues_ids is not None: - - _query_params.append(('external_issues[ids][]', external_issues_ids)) - - if include is not None: - - _query_params.append(('include', include)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/case/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_case( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - test_case_update: TestCaseUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update test case. - - This method updates a test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param test_case_update: (required) - :type test_case_update: TestCaseUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_case_serialize( - code=code, - id=id, - test_case_update=test_case_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_case_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - test_case_update: TestCaseUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update test case. - - This method updates a test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param test_case_update: (required) - :type test_case_update: TestCaseUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_case_serialize( - code=code, - id=id, - test_case_update=test_case_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_case_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - test_case_update: TestCaseUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update test case. - - This method updates a test case. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param test_case_update: (required) - :type test_case_update: TestCaseUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_case_serialize( - code=code, - id=id, - test_case_update=test_case_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_case_serialize( - self, - code, - id, - test_case_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if test_case_update is not None: - _body_params = test_case_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/case/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/configurations_api.py b/qaseio/src/qaseio/api/configurations_api.py deleted file mode 100644 index 122eb3cb..00000000 --- a/qaseio/src/qaseio/api/configurations_api.py +++ /dev/null @@ -1,930 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.configuration_create import ConfigurationCreate -from qaseio.models.configuration_group_create import ConfigurationGroupCreate -from qaseio.models.configuration_list_response import ConfigurationListResponse -from qaseio.models.id_response import IdResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class ConfigurationsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_configuration( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_create: ConfigurationCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new configuration in a particular group. - - This method allows to create a configuration in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_create: (required) - :type configuration_create: ConfigurationCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_serialize( - code=code, - configuration_create=configuration_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_configuration_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_create: ConfigurationCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new configuration in a particular group. - - This method allows to create a configuration in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_create: (required) - :type configuration_create: ConfigurationCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_serialize( - code=code, - configuration_create=configuration_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_configuration_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_create: ConfigurationCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new configuration in a particular group. - - This method allows to create a configuration in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_create: (required) - :type configuration_create: ConfigurationCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_serialize( - code=code, - configuration_create=configuration_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_configuration_serialize( - self, - code, - configuration_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if configuration_create is not None: - _body_params = configuration_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/configuration/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_configuration_group( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_group_create: ConfigurationGroupCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new configuration group. - - This method allows to create a configuration group in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_group_create: (required) - :type configuration_group_create: ConfigurationGroupCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_group_serialize( - code=code, - configuration_group_create=configuration_group_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_configuration_group_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_group_create: ConfigurationGroupCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new configuration group. - - This method allows to create a configuration group in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_group_create: (required) - :type configuration_group_create: ConfigurationGroupCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_group_serialize( - code=code, - configuration_group_create=configuration_group_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_configuration_group_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - configuration_group_create: ConfigurationGroupCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new configuration group. - - This method allows to create a configuration group in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param configuration_group_create: (required) - :type configuration_group_create: ConfigurationGroupCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_configuration_group_serialize( - code=code, - configuration_group_create=configuration_group_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_configuration_group_serialize( - self, - code, - configuration_group_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if configuration_group_create is not None: - _body_params = configuration_group_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/configuration/{code}/group', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_configurations( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ConfigurationListResponse: - """Get all configuration groups with configurations. - - This method allows to retrieve all configurations groups with configurations - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_configurations_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigurationListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_configurations_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ConfigurationListResponse]: - """Get all configuration groups with configurations. - - This method allows to retrieve all configurations groups with configurations - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_configurations_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigurationListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_configurations_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all configuration groups with configurations. - - This method allows to retrieve all configurations groups with configurations - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_configurations_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ConfigurationListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_configurations_serialize( - self, - code, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/configuration/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/custom_fields_api.py b/qaseio/src/qaseio/api/custom_fields_api.py deleted file mode 100644 index cd14a747..00000000 --- a/qaseio/src/qaseio/api/custom_fields_api.py +++ /dev/null @@ -1,1514 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator - -from typing import Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.custom_field_create import CustomFieldCreate -from qaseio.models.custom_field_list_response import CustomFieldListResponse -from qaseio.models.custom_field_response import CustomFieldResponse -from qaseio.models.custom_field_update import CustomFieldUpdate -from qaseio.models.id_response import IdResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class CustomFieldsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_custom_field( - self, - custom_field_create: CustomFieldCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create new Custom Field. - - This method allows to create custom field. - - :param custom_field_create: (required) - :type custom_field_create: CustomFieldCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_custom_field_serialize( - custom_field_create=custom_field_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_custom_field_with_http_info( - self, - custom_field_create: CustomFieldCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create new Custom Field. - - This method allows to create custom field. - - :param custom_field_create: (required) - :type custom_field_create: CustomFieldCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_custom_field_serialize( - custom_field_create=custom_field_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_custom_field_without_preload_content( - self, - custom_field_create: CustomFieldCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create new Custom Field. - - This method allows to create custom field. - - :param custom_field_create: (required) - :type custom_field_create: CustomFieldCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_custom_field_serialize( - custom_field_create=custom_field_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_custom_field_serialize( - self, - custom_field_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if custom_field_create is not None: - _body_params = custom_field_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/custom_field', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_custom_field( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Delete Custom Field by id. - - This method allows to delete custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_custom_field_with_http_info( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Delete Custom Field by id. - - This method allows to delete custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_custom_field_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Custom Field by id. - - This method allows to delete custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_custom_field_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/custom_field/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_custom_field( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomFieldResponse: - """Get Custom Field by id. - - This method allows to retrieve custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_custom_field_with_http_info( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomFieldResponse]: - """Get Custom Field by id. - - This method allows to retrieve custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_custom_field_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Custom Field by id. - - This method allows to retrieve custom field. - - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_field_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_custom_field_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/custom_field/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_custom_fields( - self, - entity: Optional[StrictStr] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CustomFieldListResponse: - """Get all Custom Fields. - - This method allows to retrieve and filter custom fields. - - :param entity: - :type entity: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_fields_serialize( - entity=entity, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_custom_fields_with_http_info( - self, - entity: Optional[StrictStr] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CustomFieldListResponse]: - """Get all Custom Fields. - - This method allows to retrieve and filter custom fields. - - :param entity: - :type entity: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_fields_serialize( - entity=entity, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_custom_fields_without_preload_content( - self, - entity: Optional[StrictStr] = None, - type: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all Custom Fields. - - This method allows to retrieve and filter custom fields. - - :param entity: - :type entity: str - :param type: - :type type: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_custom_fields_serialize( - entity=entity, - type=type, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CustomFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_custom_fields_serialize( - self, - entity, - type, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if entity is not None: - - _query_params.append(('entity', entity)) - - if type is not None: - - _query_params.append(('type', type)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/custom_field', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_custom_field( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - custom_field_update: CustomFieldUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Update Custom Field by id. - - This method allows to update custom field. - - :param id: Identifier. (required) - :type id: int - :param custom_field_update: (required) - :type custom_field_update: CustomFieldUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_custom_field_serialize( - id=id, - custom_field_update=custom_field_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_custom_field_with_http_info( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - custom_field_update: CustomFieldUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Update Custom Field by id. - - This method allows to update custom field. - - :param id: Identifier. (required) - :type id: int - :param custom_field_update: (required) - :type custom_field_update: CustomFieldUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_custom_field_serialize( - id=id, - custom_field_update=custom_field_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_custom_field_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="Identifier.")], - custom_field_update: CustomFieldUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update Custom Field by id. - - This method allows to update custom field. - - :param id: Identifier. (required) - :type id: int - :param custom_field_update: (required) - :type custom_field_update: CustomFieldUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_custom_field_serialize( - id=id, - custom_field_update=custom_field_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_custom_field_serialize( - self, - id, - custom_field_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if custom_field_update is not None: - _body_params = custom_field_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/custom_field/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/defects_api.py b/qaseio/src/qaseio/api/defects_api.py deleted file mode 100644 index 4ec8a144..00000000 --- a/qaseio/src/qaseio/api/defects_api.py +++ /dev/null @@ -1,2189 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr, field_validator - -from typing import Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.defect_create import DefectCreate -from qaseio.models.defect_list_response import DefectListResponse -from qaseio.models.defect_response import DefectResponse -from qaseio.models.defect_status import DefectStatus -from qaseio.models.defect_update import DefectUpdate -from qaseio.models.id_response import IdResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class DefectsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_defect( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - defect_create: DefectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new defect. - - This method allows to create a defect in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param defect_create: (required) - :type defect_create: DefectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_defect_serialize( - code=code, - defect_create=defect_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_defect_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - defect_create: DefectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new defect. - - This method allows to create a defect in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param defect_create: (required) - :type defect_create: DefectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_defect_serialize( - code=code, - defect_create=defect_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_defect_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - defect_create: DefectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new defect. - - This method allows to create a defect in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param defect_create: (required) - :type defect_create: DefectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_defect_serialize( - code=code, - defect_create=defect_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_defect_serialize( - self, - code, - defect_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if defect_create is not None: - _body_params = defect_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/defect/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_defect( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete defect. - - This method completely deletes a defect from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_defect_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete defect. - - This method completely deletes a defect from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_defect_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete defect. - - This method completely deletes a defect from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_defect_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/defect/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_defect( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DefectResponse: - """Get a specific defect. - - This method allows to retrieve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_defect_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DefectResponse]: - """Get a specific defect. - - This method allows to retrieve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_defect_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific defect. - - This method allows to retrieve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_defect_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/defect/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_defects( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DefectListResponse: - """Get all defects. - - This method allows to retrieve all defects stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: - :type status: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defects_serialize( - code=code, - status=status, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_defects_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DefectListResponse]: - """Get all defects. - - This method allows to retrieve all defects stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: - :type status: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defects_serialize( - code=code, - status=status, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_defects_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Optional[StrictStr] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all defects. - - This method allows to retrieve all defects stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: - :type status: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_defects_serialize( - code=code, - status=status, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DefectListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_defects_serialize( - self, - code, - status, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if status is not None: - - _query_params.append(('status', status)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/defect/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def resolve_defect( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Resolve a specific defect. - - This method allows to resolve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._resolve_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def resolve_defect_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Resolve a specific defect. - - This method allows to resolve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._resolve_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def resolve_defect_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Resolve a specific defect. - - This method allows to resolve a specific defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._resolve_defect_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _resolve_defect_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/defect/{code}/resolve/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_defect( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_update: DefectUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update defect. - - This method updates a defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_update: (required) - :type defect_update: DefectUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_serialize( - code=code, - id=id, - defect_update=defect_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_defect_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_update: DefectUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update defect. - - This method updates a defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_update: (required) - :type defect_update: DefectUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_serialize( - code=code, - id=id, - defect_update=defect_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_defect_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_update: DefectUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update defect. - - This method updates a defect. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_update: (required) - :type defect_update: DefectUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_serialize( - code=code, - id=id, - defect_update=defect_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_defect_serialize( - self, - code, - id, - defect_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if defect_update is not None: - _body_params = defect_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/defect/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_defect_status( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_status: DefectStatus, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Update a specific defect status. - - This method allows to update a specific defect status. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_status: (required) - :type defect_status: DefectStatus - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_status_serialize( - code=code, - id=id, - defect_status=defect_status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_defect_status_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_status: DefectStatus, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Update a specific defect status. - - This method allows to update a specific defect status. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_status: (required) - :type defect_status: DefectStatus - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_status_serialize( - code=code, - id=id, - defect_status=defect_status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_defect_status_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - defect_status: DefectStatus, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update a specific defect status. - - This method allows to update a specific defect status. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param defect_status: (required) - :type defect_status: DefectStatus - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_defect_status_serialize( - code=code, - id=id, - defect_status=defect_status, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_defect_status_serialize( - self, - code, - id, - defect_status, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if defect_status is not None: - _body_params = defect_status - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/defect/{code}/status/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/environments_api.py b/qaseio/src/qaseio/api/environments_api.py deleted file mode 100644 index 9a7d8ea6..00000000 --- a/qaseio/src/qaseio/api/environments_api.py +++ /dev/null @@ -1,1557 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt - -from typing import Optional - -from qaseio.models.environment_create import EnvironmentCreate -from qaseio.models.environment_list_response import EnvironmentListResponse -from qaseio.models.environment_response import EnvironmentResponse -from qaseio.models.environment_update import EnvironmentUpdate -from qaseio.models.id_response import IdResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class EnvironmentsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_environment( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - environment_create: EnvironmentCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new environment. - - This method allows to create an environment in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param environment_create: (required) - :type environment_create: EnvironmentCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_environment_serialize( - code=code, - environment_create=environment_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_environment_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - environment_create: EnvironmentCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new environment. - - This method allows to create an environment in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param environment_create: (required) - :type environment_create: EnvironmentCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_environment_serialize( - code=code, - environment_create=environment_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_environment_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - environment_create: EnvironmentCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new environment. - - This method allows to create an environment in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param environment_create: (required) - :type environment_create: EnvironmentCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_environment_serialize( - code=code, - environment_create=environment_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_environment_serialize( - self, - code, - environment_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if environment_create is not None: - _body_params = environment_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/environment/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_environment( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete environment. - - This method completely deletes an environment from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_environment_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete environment. - - This method completely deletes an environment from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_environment_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete environment. - - This method completely deletes an environment from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_environment_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/environment/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_environment( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EnvironmentResponse: - """Get a specific environment. - - This method allows to retrieve a specific environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_environment_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EnvironmentResponse]: - """Get a specific environment. - - This method allows to retrieve a specific environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_environment_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific environment. - - This method allows to retrieve a specific environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environment_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_environment_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/environment/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_environments( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EnvironmentListResponse: - """Get all environments. - - This method allows to retrieve all environments stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environments_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_environments_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EnvironmentListResponse]: - """Get all environments. - - This method allows to retrieve all environments stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environments_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_environments_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all environments. - - This method allows to retrieve all environments stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_environments_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "EnvironmentListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_environments_serialize( - self, - code, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/environment/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_environment( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - environment_update: EnvironmentUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update environment. - - This method updates an environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param environment_update: (required) - :type environment_update: EnvironmentUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_environment_serialize( - code=code, - id=id, - environment_update=environment_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_environment_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - environment_update: EnvironmentUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update environment. - - This method updates an environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param environment_update: (required) - :type environment_update: EnvironmentUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_environment_serialize( - code=code, - id=id, - environment_update=environment_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_environment_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - environment_update: EnvironmentUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update environment. - - This method updates an environment. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param environment_update: (required) - :type environment_update: EnvironmentUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_environment_serialize( - code=code, - id=id, - environment_update=environment_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_environment_serialize( - self, - code, - id, - environment_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if environment_update is not None: - _body_params = environment_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/environment/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/milestones_api.py b/qaseio/src/qaseio/api/milestones_api.py deleted file mode 100644 index 91d442df..00000000 --- a/qaseio/src/qaseio/api/milestones_api.py +++ /dev/null @@ -1,1577 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr - -from typing import Optional - -from qaseio.models.id_response import IdResponse -from qaseio.models.milestone_create import MilestoneCreate -from qaseio.models.milestone_list_response import MilestoneListResponse -from qaseio.models.milestone_response import MilestoneResponse -from qaseio.models.milestone_update import MilestoneUpdate - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class MilestonesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_milestone( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - milestone_create: MilestoneCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new milestone. - - This method allows to create a milestone in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param milestone_create: (required) - :type milestone_create: MilestoneCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_milestone_serialize( - code=code, - milestone_create=milestone_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_milestone_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - milestone_create: MilestoneCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new milestone. - - This method allows to create a milestone in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param milestone_create: (required) - :type milestone_create: MilestoneCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_milestone_serialize( - code=code, - milestone_create=milestone_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_milestone_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - milestone_create: MilestoneCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new milestone. - - This method allows to create a milestone in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param milestone_create: (required) - :type milestone_create: MilestoneCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_milestone_serialize( - code=code, - milestone_create=milestone_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_milestone_serialize( - self, - code, - milestone_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if milestone_create is not None: - _body_params = milestone_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/milestone/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_milestone( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete milestone. - - This method completely deletes a milestone from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_milestone_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete milestone. - - This method completely deletes a milestone from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_milestone_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete milestone. - - This method completely deletes a milestone from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_milestone_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/milestone/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_milestone( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MilestoneResponse: - """Get a specific milestone. - - This method allows to retrieve a specific milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_milestone_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MilestoneResponse]: - """Get a specific milestone. - - This method allows to retrieve a specific milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_milestone_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific milestone. - - This method allows to retrieve a specific milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestone_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_milestone_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/milestone/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_milestones( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> MilestoneListResponse: - """Get all milestones. - - This method allows to retrieve all milestones stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestones_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_milestones_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[MilestoneListResponse]: - """Get all milestones. - - This method allows to retrieve all milestones stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestones_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_milestones_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all milestones. - - This method allows to retrieve all milestones stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_milestones_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "MilestoneListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_milestones_serialize( - self, - code, - search, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/milestone/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_milestone( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - milestone_update: MilestoneUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update milestone. - - This method updates a milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param milestone_update: (required) - :type milestone_update: MilestoneUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_milestone_serialize( - code=code, - id=id, - milestone_update=milestone_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_milestone_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - milestone_update: MilestoneUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update milestone. - - This method updates a milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param milestone_update: (required) - :type milestone_update: MilestoneUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_milestone_serialize( - code=code, - id=id, - milestone_update=milestone_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_milestone_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - milestone_update: MilestoneUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update milestone. - - This method updates a milestone. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param milestone_update: (required) - :type milestone_update: MilestoneUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_milestone_serialize( - code=code, - id=id, - milestone_update=milestone_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_milestone_serialize( - self, - code, - id, - milestone_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if milestone_update is not None: - _body_params = milestone_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/milestone/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/plans_api.py b/qaseio/src/qaseio/api/plans_api.py deleted file mode 100644 index 96714be9..00000000 --- a/qaseio/src/qaseio/api/plans_api.py +++ /dev/null @@ -1,1560 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt - -from typing import Optional - -from qaseio.models.id_response import IdResponse -from qaseio.models.plan_create import PlanCreate -from qaseio.models.plan_list_response import PlanListResponse -from qaseio.models.plan_response import PlanResponse -from qaseio.models.plan_update import PlanUpdate - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class PlansApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_plan( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - plan_create: PlanCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new plan. - - This method allows to create a plan in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param plan_create: (required) - :type plan_create: PlanCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_plan_serialize( - code=code, - plan_create=plan_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_plan_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - plan_create: PlanCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new plan. - - This method allows to create a plan in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param plan_create: (required) - :type plan_create: PlanCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_plan_serialize( - code=code, - plan_create=plan_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_plan_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - plan_create: PlanCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new plan. - - This method allows to create a plan in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param plan_create: (required) - :type plan_create: PlanCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_plan_serialize( - code=code, - plan_create=plan_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_plan_serialize( - self, - code, - plan_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if plan_create is not None: - _body_params = plan_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/plan/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_plan( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete plan. - - This method completely deletes a plan from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_plan_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete plan. - - This method completely deletes a plan from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_plan_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete plan. - - This method completely deletes a plan from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_plan_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/plan/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_plan( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanResponse: - """Get a specific plan. - - This method allows to retrieve a specific plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_plan_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanResponse]: - """Get a specific plan. - - This method allows to retrieve a specific plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_plan_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific plan. - - This method allows to retrieve a specific plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plan_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_plan_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/plan/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_plans( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlanListResponse: - """Get all plans. - - This method allows to retrieve all plans stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plans_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_plans_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlanListResponse]: - """Get all plans. - - This method allows to retrieve all plans stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plans_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_plans_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all plans. - - This method allows to retrieve all plans stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_plans_serialize( - code=code, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_plans_serialize( - self, - code, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/plan/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_plan( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - plan_update: PlanUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update plan. - - This method updates a plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param plan_update: (required) - :type plan_update: PlanUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_plan_serialize( - code=code, - id=id, - plan_update=plan_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_plan_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - plan_update: PlanUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update plan. - - This method updates a plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param plan_update: (required) - :type plan_update: PlanUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_plan_serialize( - code=code, - id=id, - plan_update=plan_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_plan_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - plan_update: PlanUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update plan. - - This method updates a plan. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param plan_update: (required) - :type plan_update: PlanUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_plan_serialize( - code=code, - id=id, - plan_update=plan_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_plan_serialize( - self, - code, - id, - plan_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if plan_update is not None: - _body_params = plan_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/plan/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/projects_api.py b/qaseio/src/qaseio/api/projects_api.py deleted file mode 100644 index d248354d..00000000 --- a/qaseio/src/qaseio/api/projects_api.py +++ /dev/null @@ -1,1782 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from typing import Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.project_access import ProjectAccess -from qaseio.models.project_code_response import ProjectCodeResponse -from qaseio.models.project_create import ProjectCreate -from qaseio.models.project_list_response import ProjectListResponse -from qaseio.models.project_response import ProjectResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class ProjectsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_project( - self, - project_create: ProjectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectCodeResponse: - """Create new project. - - This method is used to create a new project through API. - - :param project_create: (required) - :type project_create: ProjectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_project_serialize( - project_create=project_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCodeResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_project_with_http_info( - self, - project_create: ProjectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectCodeResponse]: - """Create new project. - - This method is used to create a new project through API. - - :param project_create: (required) - :type project_create: ProjectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_project_serialize( - project_create=project_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCodeResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_project_without_preload_content( - self, - project_create: ProjectCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create new project. - - This method is used to create a new project through API. - - :param project_create: (required) - :type project_create: ProjectCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_project_serialize( - project_create=project_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectCodeResponse", - '400': None, - '401': None, - '403': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_project_serialize( - self, - project_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if project_create is not None: - _body_params = project_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/project', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_project( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Delete Project by code. - - This method allows to delete a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_project_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Delete Project by code. - - This method allows to delete a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_project_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete Project by code. - - This method allows to delete a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_project_serialize( - self, - code, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/project/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_project( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectResponse: - """Get Project by code. - - This method allows to retrieve a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_project_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectResponse]: - """Get Project by code. - - This method allows to retrieve a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_project_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get Project by code. - - This method allows to retrieve a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_project_serialize( - code=code, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_project_serialize( - self, - code, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/project/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_projects( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ProjectListResponse: - """Get All Projects. - - This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_projects_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_projects_with_http_info( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ProjectListResponse]: - """Get All Projects. - - This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_projects_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_projects_without_preload_content( - self, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get All Projects. - - This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. - - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_projects_serialize( - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ProjectListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_projects_serialize( - self, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/project', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def grant_access_to_project( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Grant access to project by code. - - This method allows to grant access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._grant_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def grant_access_to_project_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Grant access to project by code. - - This method allows to grant access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._grant_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def grant_access_to_project_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Grant access to project by code. - - This method allows to grant access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._grant_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _grant_access_to_project_serialize( - self, - code, - project_access, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if project_access is not None: - _body_params = project_access - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/project/{code}/access', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def revoke_access_to_project( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Revoke access to project by code. - - This method allows to revoke access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._revoke_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def revoke_access_to_project_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Revoke access to project by code. - - This method allows to revoke access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._revoke_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def revoke_access_to_project_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - project_access: ProjectAccess, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Revoke access to project by code. - - This method allows to revoke access to a specific project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param project_access: (required) - :type project_access: ProjectAccess - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._revoke_access_to_project_serialize( - code=code, - project_access=project_access, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _revoke_access_to_project_serialize( - self, - code, - project_access, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if project_access is not None: - _body_params = project_access - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/project/{code}/access', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/results_api.py b/qaseio/src/qaseio/api/results_api.py deleted file mode 100644 index 6e9faf44..00000000 --- a/qaseio/src/qaseio/api/results_api.py +++ /dev/null @@ -1,2049 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictBool, StrictInt, StrictStr - -from typing import Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.hash_response import HashResponse -from qaseio.models.result_create import ResultCreate -from qaseio.models.result_create_response import ResultCreateResponse -from qaseio.models.result_list_response import ResultListResponse -from qaseio.models.result_response import ResultResponse -from qaseio.models.result_update import ResultUpdate -from qaseio.models.resultcreate_bulk import ResultcreateBulk - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class ResultsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_result( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - result_create: ResultCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResultCreateResponse: - """Create test run result. - - This method allows to create test run result by Run Id. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param result_create: (required) - :type result_create: ResultCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_serialize( - code=code, - id=id, - result_create=result_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultCreateResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_result_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - result_create: ResultCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResultCreateResponse]: - """Create test run result. - - This method allows to create test run result by Run Id. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param result_create: (required) - :type result_create: ResultCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_serialize( - code=code, - id=id, - result_create=result_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultCreateResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_result_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - result_create: ResultCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create test run result. - - This method allows to create test run result by Run Id. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param result_create: (required) - :type result_create: ResultCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_serialize( - code=code, - id=id, - result_create=result_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultCreateResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_result_serialize( - self, - code, - id, - result_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if result_create is not None: - _body_params = result_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/result/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_result_bulk( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - resultcreate_bulk: ResultcreateBulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Bulk create test run result. - - This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_bulk_serialize( - code=code, - id=id, - resultcreate_bulk=resultcreate_bulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_result_bulk_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - resultcreate_bulk: ResultcreateBulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Bulk create test run result. - - This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_bulk_serialize( - code=code, - id=id, - resultcreate_bulk=resultcreate_bulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_result_bulk_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - resultcreate_bulk: ResultcreateBulk, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Bulk create test run result. - - This method allows to create a lot of test run result at once. If you try to send more than 2,000 results in a single bulk request, you will receive an error with code 413 - Payload Too Large. If there is no free space left in your team account, when attempting to upload an attachment, e.g., through reporters, you will receive an error with code 507 - Insufficient Storage. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_result_bulk_serialize( - code=code, - id=id, - resultcreate_bulk=resultcreate_bulk, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '413': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_result_bulk_serialize( - self, - code, - id, - resultcreate_bulk, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if resultcreate_bulk is not None: - _body_params = resultcreate_bulk - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/result/{code}/{id}/bulk', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_result( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Delete test run result. - - This method allows to delete test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_result_serialize( - code=code, - id=id, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_result_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Delete test run result. - - This method allows to delete test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_result_serialize( - code=code, - id=id, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_result_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete test run result. - - This method allows to delete test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_result_serialize( - code=code, - id=id, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_result_serialize( - self, - code, - id, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/result/{code}/{id}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_result( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResultResponse: - """Get test run result by code. - - This method allows to retrieve a specific test run result by Hash. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_result_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_result_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResultResponse]: - """Get test run result by code. - - This method allows to retrieve a specific test run result by Hash. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_result_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_result_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get test run result by code. - - This method allows to retrieve a specific test run result by Hash. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_result_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_result_serialize( - self, - code, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/result/{code}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_results( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Annotated[Optional[StrictStr], Field(description="A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. ")] = None, - run: Annotated[Optional[StrictStr], Field(description="A list of run IDs separated by comma.")] = None, - case_id: Annotated[Optional[StrictStr], Field(description="A list of case IDs separated by comma.")] = None, - member: Annotated[Optional[StrictStr], Field(description="A list of member IDs separated by comma.")] = None, - api: Optional[StrictBool] = None, - from_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - to_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResultListResponse: - """Get all test run results. - - This method allows to retrieve all test run results stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - :type status: str - :param run: A list of run IDs separated by comma. - :type run: str - :param case_id: A list of case IDs separated by comma. - :type case_id: str - :param member: A list of member IDs separated by comma. - :type member: str - :param api: - :type api: bool - :param from_end_time: Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - :type from_end_time: str - :param to_end_time: Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - :type to_end_time: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_results_serialize( - code=code, - status=status, - run=run, - case_id=case_id, - member=member, - api=api, - from_end_time=from_end_time, - to_end_time=to_end_time, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_results_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Annotated[Optional[StrictStr], Field(description="A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. ")] = None, - run: Annotated[Optional[StrictStr], Field(description="A list of run IDs separated by comma.")] = None, - case_id: Annotated[Optional[StrictStr], Field(description="A list of case IDs separated by comma.")] = None, - member: Annotated[Optional[StrictStr], Field(description="A list of member IDs separated by comma.")] = None, - api: Optional[StrictBool] = None, - from_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - to_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResultListResponse]: - """Get all test run results. - - This method allows to retrieve all test run results stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - :type status: str - :param run: A list of run IDs separated by comma. - :type run: str - :param case_id: A list of case IDs separated by comma. - :type case_id: str - :param member: A list of member IDs separated by comma. - :type member: str - :param api: - :type api: bool - :param from_end_time: Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - :type from_end_time: str - :param to_end_time: Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - :type to_end_time: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_results_serialize( - code=code, - status=status, - run=run, - case_id=case_id, - member=member, - api=api, - from_end_time=from_end_time, - to_end_time=to_end_time, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_results_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - status: Annotated[Optional[StrictStr], Field(description="A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. ")] = None, - run: Annotated[Optional[StrictStr], Field(description="A list of run IDs separated by comma.")] = None, - case_id: Annotated[Optional[StrictStr], Field(description="A list of case IDs separated by comma.")] = None, - member: Annotated[Optional[StrictStr], Field(description="A list of member IDs separated by comma.")] = None, - api: Optional[StrictBool] = None, - from_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - to_end_time: Annotated[Optional[StrictStr], Field(description="Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. ")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all test run results. - - This method allows to retrieve all test run results stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param status: A single test run result status. Possible values: in_progress, passed, failed, blocked, skipped, invalid. - :type status: str - :param run: A list of run IDs separated by comma. - :type run: str - :param case_id: A list of case IDs separated by comma. - :type case_id: str - :param member: A list of member IDs separated by comma. - :type member: str - :param api: - :type api: bool - :param from_end_time: Will return all results created after provided datetime. Allowed format: `Y-m-d H:i:s`. - :type from_end_time: str - :param to_end_time: Will return all results created before provided datetime. Allowed format: `Y-m-d H:i:s`. - :type to_end_time: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_results_serialize( - code=code, - status=status, - run=run, - case_id=case_id, - member=member, - api=api, - from_end_time=from_end_time, - to_end_time=to_end_time, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ResultListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_results_serialize( - self, - code, - status, - run, - case_id, - member, - api, - from_end_time, - to_end_time, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if status is not None: - - _query_params.append(('status', status)) - - if run is not None: - - _query_params.append(('run', run)) - - if case_id is not None: - - _query_params.append(('case_id', case_id)) - - if member is not None: - - _query_params.append(('member', member)) - - if api is not None: - - _query_params.append(('api', api)) - - if from_end_time is not None: - - _query_params.append(('from_end_time', from_end_time)) - - if to_end_time is not None: - - _query_params.append(('to_end_time', to_end_time)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/result/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_result( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - result_update: ResultUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Update test run result. - - This method allows to update test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param result_update: (required) - :type result_update: ResultUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_result_serialize( - code=code, - id=id, - hash=hash, - result_update=result_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_result_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - result_update: ResultUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Update test run result. - - This method allows to update test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param result_update: (required) - :type result_update: ResultUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_result_serialize( - code=code, - id=id, - hash=hash, - result_update=result_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_result_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - result_update: ResultUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update test run result. - - This method allows to update test run result. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param hash: Hash. (required) - :type hash: str - :param result_update: (required) - :type result_update: ResultUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_result_serialize( - code=code, - id=id, - hash=hash, - result_update=result_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_result_serialize( - self, - code, - id, - hash, - result_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if result_update is not None: - _body_params = result_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/result/{code}/{id}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/runs_api.py b/qaseio/src/qaseio/api/runs_api.py deleted file mode 100644 index 0d44d523..00000000 --- a/qaseio/src/qaseio/api/runs_api.py +++ /dev/null @@ -1,1986 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr - -from typing import Optional - -from qaseio.models.base_response import BaseResponse -from qaseio.models.id_response import IdResponse -from qaseio.models.run_create import RunCreate -from qaseio.models.run_list_response import RunListResponse -from qaseio.models.run_public import RunPublic -from qaseio.models.run_public_response import RunPublicResponse -from qaseio.models.run_response import RunResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class RunsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def complete_run( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BaseResponse: - """Complete a specific run. - - This method allows to complete a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._complete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def complete_run_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BaseResponse]: - """Complete a specific run. - - This method allows to complete a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._complete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def complete_run_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Complete a specific run. - - This method allows to complete a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._complete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "BaseResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _complete_run_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/run/{code}/{id}/complete', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def create_run( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - run_create: RunCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new run. - - This method allows to create a run in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param run_create: (required) - :type run_create: RunCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_run_serialize( - code=code, - run_create=run_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_run_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - run_create: RunCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new run. - - This method allows to create a run in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param run_create: (required) - :type run_create: RunCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_run_serialize( - code=code, - run_create=run_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_run_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - run_create: RunCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new run. - - This method allows to create a run in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param run_create: (required) - :type run_create: RunCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_run_serialize( - code=code, - run_create=run_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_run_serialize( - self, - code, - run_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if run_create is not None: - _body_params = run_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/run/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_run( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete run. - - This method completely deletes a run from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_run_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete run. - - This method completely deletes a run from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_run_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete run. - - This method completely deletes a run from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_run_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_run_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/run/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_run( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RunResponse: - """Get a specific run. - - This method allows to retrieve a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_run_serialize( - code=code, - id=id, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_run_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RunResponse]: - """Get a specific run. - - This method allows to retrieve a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_run_serialize( - code=code, - id=id, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_run_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific run. - - This method allows to retrieve a specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_run_serialize( - code=code, - id=id, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_run_serialize( - self, - code, - id, - include, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - if include is not None: - - _query_params.append(('include', include)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/run/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_runs( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Optional[StrictStr] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of status values separated by comma. Possible values: active, complete, abort. ")] = None, - milestone: Optional[StrictInt] = None, - environment: Optional[StrictInt] = None, - from_start_time: Optional[StrictInt] = None, - to_start_time: Optional[StrictInt] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RunListResponse: - """Get all runs. - - This method allows to retrieve all runs stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: - :type search: str - :param status: A list of status values separated by comma. Possible values: active, complete, abort. - :type status: str - :param milestone: - :type milestone: int - :param environment: - :type environment: int - :param from_start_time: - :type from_start_time: int - :param to_start_time: - :type to_start_time: int - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_runs_serialize( - code=code, - search=search, - status=status, - milestone=milestone, - environment=environment, - from_start_time=from_start_time, - to_start_time=to_start_time, - limit=limit, - offset=offset, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_runs_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Optional[StrictStr] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of status values separated by comma. Possible values: active, complete, abort. ")] = None, - milestone: Optional[StrictInt] = None, - environment: Optional[StrictInt] = None, - from_start_time: Optional[StrictInt] = None, - to_start_time: Optional[StrictInt] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RunListResponse]: - """Get all runs. - - This method allows to retrieve all runs stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: - :type search: str - :param status: A list of status values separated by comma. Possible values: active, complete, abort. - :type status: str - :param milestone: - :type milestone: int - :param environment: - :type environment: int - :param from_start_time: - :type from_start_time: int - :param to_start_time: - :type to_start_time: int - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_runs_serialize( - code=code, - search=search, - status=status, - milestone=milestone, - environment=environment, - from_start_time=from_start_time, - to_start_time=to_start_time, - limit=limit, - offset=offset, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_runs_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Optional[StrictStr] = None, - status: Annotated[Optional[StrictStr], Field(description="A list of status values separated by comma. Possible values: active, complete, abort. ")] = None, - milestone: Optional[StrictInt] = None, - environment: Optional[StrictInt] = None, - from_start_time: Optional[StrictInt] = None, - to_start_time: Optional[StrictInt] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - include: Annotated[Optional[StrictStr], Field(description="Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects ")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all runs. - - This method allows to retrieve all runs stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: - :type search: str - :param status: A list of status values separated by comma. Possible values: active, complete, abort. - :type status: str - :param milestone: - :type milestone: int - :param environment: - :type environment: int - :param from_start_time: - :type from_start_time: int - :param to_start_time: - :type to_start_time: int - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param include: Include a list of related entities IDs into response. Should be separated by comma. Possible values: cases, defects - :type include: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_runs_serialize( - code=code, - search=search, - status=status, - milestone=milestone, - environment=environment, - from_start_time=from_start_time, - to_start_time=to_start_time, - limit=limit, - offset=offset, - include=include, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_runs_serialize( - self, - code, - search, - status, - milestone, - environment, - from_start_time, - to_start_time, - limit, - offset, - include, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if status is not None: - - _query_params.append(('status', status)) - - if milestone is not None: - - _query_params.append(('milestone', milestone)) - - if environment is not None: - - _query_params.append(('environment', environment)) - - if from_start_time is not None: - - _query_params.append(('from_start_time', from_start_time)) - - if to_start_time is not None: - - _query_params.append(('to_start_time', to_start_time)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - if include is not None: - - _query_params.append(('include', include)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/run/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_run_publicity( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - run_public: RunPublic, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RunPublicResponse: - """Update publicity of a specific run. - - This method allows to update a publicity of specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param run_public: (required) - :type run_public: RunPublic - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_run_publicity_serialize( - code=code, - id=id, - run_public=run_public, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunPublicResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_run_publicity_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - run_public: RunPublic, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RunPublicResponse]: - """Update publicity of a specific run. - - This method allows to update a publicity of specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param run_public: (required) - :type run_public: RunPublic - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_run_publicity_serialize( - code=code, - id=id, - run_public=run_public, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunPublicResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_run_publicity_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - run_public: RunPublic, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update publicity of a specific run. - - This method allows to update a publicity of specific run. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param run_public: (required) - :type run_public: RunPublic - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_run_publicity_serialize( - code=code, - id=id, - run_public=run_public, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "RunPublicResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_run_publicity_serialize( - self, - code, - id, - run_public, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if run_public is not None: - _body_params = run_public - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/run/{code}/{id}/public', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/search_api.py b/qaseio/src/qaseio/api/search_api.py deleted file mode 100644 index 539cfa8e..00000000 --- a/qaseio/src/qaseio/api/search_api.py +++ /dev/null @@ -1,354 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from typing import Optional - -from qaseio.models.search_response import SearchResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class SearchApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def search( - self, - query: Annotated[str, Field(min_length=1, strict=True, max_length=1000, description="Expression in Qase Query Language.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SearchResponse: - """Search entities by Qase Query Language (QQL). - - This method allows to retrieve data sets for various entities using expressions with conditions. - - :param query: Expression in Qase Query Language. (required) - :type query: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_serialize( - query=query, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def search_with_http_info( - self, - query: Annotated[str, Field(min_length=1, strict=True, max_length=1000, description="Expression in Qase Query Language.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SearchResponse]: - """Search entities by Qase Query Language (QQL). - - This method allows to retrieve data sets for various entities using expressions with conditions. - - :param query: Expression in Qase Query Language. (required) - :type query: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_serialize( - query=query, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def search_without_preload_content( - self, - query: Annotated[str, Field(min_length=1, strict=True, max_length=1000, description="Expression in Qase Query Language.")], - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Search entities by Qase Query Language (QQL). - - This method allows to retrieve data sets for various entities using expressions with conditions. - - :param query: Expression in Qase Query Language. (required) - :type query: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._search_serialize( - query=query, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _search_serialize( - self, - query, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - if query is not None: - - _query_params.append(('query', query)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/search', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/shared_steps_api.py b/qaseio/src/qaseio/api/shared_steps_api.py deleted file mode 100644 index 7736fb26..00000000 --- a/qaseio/src/qaseio/api/shared_steps_api.py +++ /dev/null @@ -1,1574 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictStr - -from typing import Optional - -from qaseio.models.hash_response import HashResponse -from qaseio.models.shared_step_create import SharedStepCreate -from qaseio.models.shared_step_list_response import SharedStepListResponse -from qaseio.models.shared_step_response import SharedStepResponse -from qaseio.models.shared_step_update import SharedStepUpdate - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class SharedStepsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_shared_step( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - shared_step_create: SharedStepCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Create a new shared step. - - This method allows to create a shared step in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param shared_step_create: (required) - :type shared_step_create: SharedStepCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_shared_step_serialize( - code=code, - shared_step_create=shared_step_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_shared_step_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - shared_step_create: SharedStepCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Create a new shared step. - - This method allows to create a shared step in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param shared_step_create: (required) - :type shared_step_create: SharedStepCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_shared_step_serialize( - code=code, - shared_step_create=shared_step_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_shared_step_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - shared_step_create: SharedStepCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new shared step. - - This method allows to create a shared step in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param shared_step_create: (required) - :type shared_step_create: SharedStepCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_shared_step_serialize( - code=code, - shared_step_create=shared_step_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_shared_step_serialize( - self, - code, - shared_step_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if shared_step_create is not None: - _body_params = shared_step_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/shared_step/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_shared_step( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Delete shared step. - - This method completely deletes a shared step from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_shared_step_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Delete shared step. - - This method completely deletes a shared step from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_shared_step_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete shared step. - - This method completely deletes a shared step from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_shared_step_serialize( - self, - code, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/shared_step/{code}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_shared_step( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SharedStepResponse: - """Get a specific shared step. - - This method allows to retrieve a specific shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_shared_step_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SharedStepResponse]: - """Get a specific shared step. - - This method allows to retrieve a specific shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_shared_step_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific shared step. - - This method allows to retrieve a specific shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_step_serialize( - code=code, - hash=hash, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_shared_step_serialize( - self, - code, - hash, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/shared_step/{code}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_shared_steps( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SharedStepListResponse: - """Get all shared steps. - - This method allows to retrieve all shared steps stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_steps_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_shared_steps_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SharedStepListResponse]: - """Get all shared steps. - - This method allows to retrieve all shared steps stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_steps_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_shared_steps_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all shared steps. - - This method allows to retrieve all shared steps stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_shared_steps_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SharedStepListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_shared_steps_serialize( - self, - code, - search, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/shared_step/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_shared_step( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - shared_step_update: SharedStepUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> HashResponse: - """Update shared step. - - This method updates a shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param shared_step_update: (required) - :type shared_step_update: SharedStepUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_shared_step_serialize( - code=code, - hash=hash, - shared_step_update=shared_step_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_shared_step_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - shared_step_update: SharedStepUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[HashResponse]: - """Update shared step. - - This method updates a shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param shared_step_update: (required) - :type shared_step_update: SharedStepUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_shared_step_serialize( - code=code, - hash=hash, - shared_step_update=shared_step_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_shared_step_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - hash: Annotated[StrictStr, Field(description="Hash.")], - shared_step_update: SharedStepUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update shared step. - - This method updates a shared step. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param hash: Hash. (required) - :type hash: str - :param shared_step_update: (required) - :type shared_step_update: SharedStepUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_shared_step_serialize( - code=code, - hash=hash, - shared_step_update=shared_step_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "HashResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_shared_step_serialize( - self, - code, - hash, - shared_step_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if hash is not None: - _path_params['hash'] = hash - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if shared_step_update is not None: - _body_params = shared_step_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/shared_step/{code}/{hash}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/suites_api.py b/qaseio/src/qaseio/api/suites_api.py deleted file mode 100644 index 3d725a13..00000000 --- a/qaseio/src/qaseio/api/suites_api.py +++ /dev/null @@ -1,1606 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from pydantic import Field -from typing_extensions import Annotated -from pydantic import StrictInt, StrictStr - -from typing import Optional - -from qaseio.models.id_response import IdResponse -from qaseio.models.suite_create import SuiteCreate -from qaseio.models.suite_delete import SuiteDelete -from qaseio.models.suite_list_response import SuiteListResponse -from qaseio.models.suite_response import SuiteResponse -from qaseio.models.suite_update import SuiteUpdate - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class SuitesApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def create_suite( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - suite_create: SuiteCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Create a new test suite. - - This method is used to create a new test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param suite_create: (required) - :type suite_create: SuiteCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_suite_serialize( - code=code, - suite_create=suite_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def create_suite_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - suite_create: SuiteCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Create a new test suite. - - This method is used to create a new test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param suite_create: (required) - :type suite_create: SuiteCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_suite_serialize( - code=code, - suite_create=suite_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def create_suite_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - suite_create: SuiteCreate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Create a new test suite. - - This method is used to create a new test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param suite_create: (required) - :type suite_create: SuiteCreate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._create_suite_serialize( - code=code, - suite_create=suite_create, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _create_suite_serialize( - self, - code, - suite_create, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if suite_create is not None: - _body_params = suite_create - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/suite/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def delete_suite( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_delete: Optional[SuiteDelete] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Delete test suite. - - This method completely deletes a test suite with test cases from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_delete: - :type suite_delete: SuiteDelete - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_suite_serialize( - code=code, - id=id, - suite_delete=suite_delete, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def delete_suite_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_delete: Optional[SuiteDelete] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Delete test suite. - - This method completely deletes a test suite with test cases from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_delete: - :type suite_delete: SuiteDelete - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_suite_serialize( - code=code, - id=id, - suite_delete=suite_delete, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def delete_suite_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_delete: Optional[SuiteDelete] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Delete test suite. - - This method completely deletes a test suite with test cases from repository. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_delete: - :type suite_delete: SuiteDelete - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._delete_suite_serialize( - code=code, - id=id, - suite_delete=suite_delete, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _delete_suite_serialize( - self, - code, - id, - suite_delete, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if suite_delete is not None: - _body_params = suite_delete - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/suite/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_suite( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuiteResponse: - """Get a specific test suite. - - This method allows to retrieve a specific test suite. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suite_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_suite_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuiteResponse]: - """Get a specific test suite. - - This method allows to retrieve a specific test suite. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suite_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_suite_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get a specific test suite. - - This method allows to retrieve a specific test suite. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suite_serialize( - code=code, - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_suite_serialize( - self, - code, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/suite/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def get_suites( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SuiteListResponse: - """Get all test suites. - - This method allows to retrieve all test suites stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suites_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_suites_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SuiteListResponse]: - """Get all test suites. - - This method allows to retrieve all test suites stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suites_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_suites_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - search: Annotated[Optional[StrictStr], Field(description="Provide a string that will be used to search by name.")] = None, - limit: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="A number of entities in result set.")] = None, - offset: Annotated[Optional[Annotated[int, Field(le=100000, strict=True, ge=0)]], Field(description="How many entities should be skipped.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all test suites. - - This method allows to retrieve all test suites stored in selected project. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param search: Provide a string that will be used to search by name. - :type search: str - :param limit: A number of entities in result set. - :type limit: int - :param offset: How many entities should be skipped. - :type offset: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_suites_serialize( - code=code, - search=search, - limit=limit, - offset=offset, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SuiteListResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_suites_serialize( - self, - code, - search, - limit, - offset, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - # process the query parameters - if search is not None: - - _query_params.append(('search', search)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/suite/{code}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def update_suite( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_update: SuiteUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> IdResponse: - """Update test suite. - - This method is used to update a test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_update: (required) - :type suite_update: SuiteUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_suite_serialize( - code=code, - id=id, - suite_update=suite_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def update_suite_with_http_info( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_update: SuiteUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[IdResponse]: - """Update test suite. - - This method is used to update a test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_update: (required) - :type suite_update: SuiteUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_suite_serialize( - code=code, - id=id, - suite_update=suite_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def update_suite_without_preload_content( - self, - code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - id: Annotated[StrictInt, Field(description="Identifier.")], - suite_update: SuiteUpdate, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Update test suite. - - This method is used to update a test suite through API. - - :param code: Code of project, where to search entities. (required) - :type code: str - :param id: Identifier. (required) - :type id: int - :param suite_update: (required) - :type suite_update: SuiteUpdate - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._update_suite_serialize( - code=code, - id=id, - suite_update=suite_update, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IdResponse", - '400': None, - '401': None, - '403': None, - '404': None, - '422': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _update_suite_serialize( - self, - code, - id, - suite_update, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if code is not None: - _path_params['code'] = code - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if suite_update is not None: - _body_params = suite_update - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/suite/{code}/{id}', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api/system_fields_api.py b/qaseio/src/qaseio/api/system_fields_api.py deleted file mode 100644 index 7c95902e..00000000 --- a/qaseio/src/qaseio/api/system_fields_api.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import warnings - -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Dict, List, Optional, Tuple, Union, Any - -try: - from typing import Annotated -except ImportError: - from typing_extensions import Annotated - -from qaseio.models.system_field_list_response import SystemFieldListResponse - -from qaseio.api_client import ApiClient -from qaseio.api_response import ApiResponse -from qaseio.rest import RESTResponseType - - -class SystemFieldsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def get_system_fields( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SystemFieldListResponse: - """Get all System Fields. - - This method allows to retrieve all system fields. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_system_fields_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def get_system_fields_with_http_info( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SystemFieldListResponse]: - """Get all System Fields. - - This method allows to retrieve all system fields. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_system_fields_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def get_system_fields_without_preload_content( - self, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Get all System Fields. - - This method allows to retrieve all system fields. - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._get_system_fields_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemFieldListResponse", - '400': None, - '401': None, - '403': None, - '429': None, - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _get_system_fields_serialize( - self, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> Tuple: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'TokenAuth' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/system_field', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/qaseio/src/qaseio/api_client.py b/qaseio/src/qaseio/api_client.py deleted file mode 100644 index cf727323..00000000 --- a/qaseio/src/qaseio/api_client.py +++ /dev/null @@ -1,738 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import atexit -import datetime -from dateutil.parser import parse -import json -import mimetypes -import os -import re -import tempfile -from io import BytesIO - -from urllib.parse import quote -from typing import Tuple, Optional, List - -from qaseio.configuration import Configuration -from qaseio.api_response import ApiResponse -import qaseio.models -from qaseio import rest -from qaseio.exceptions import ( - ApiValueError, - ApiException, - BadRequestException, - UnauthorizedException, - ForbiddenException, - NotFoundException, - ServiceException -) - - -class ApiClient: - """Generic API client for OpenAPI client library builds. - - OpenAPI generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the OpenAPI - templates. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, str, int) - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int, # TODO remove as only py3 is supported? - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - _pool = None - - def __init__( - self, - configuration=None, - header_name=None, - header_value=None, - cookie=None - ) -> None: - # use default configuration if none is provided - if configuration is None: - configuration = Configuration.get_default() - self.configuration = configuration - - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.0.1/python' - self.client_side_validation = configuration.client_side_validation - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - pass - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - - _default = None - - @classmethod - def get_default(cls): - """Return new instance of ApiClient. - - This method returns newly created, based on default constructor, - object of ApiClient class or returns a copy of default - ApiClient. - - :return: The ApiClient object. - """ - if cls._default is None: - cls._default = ApiClient() - return cls._default - - @classmethod - def set_default(cls, default): - """Set default instance of ApiClient. - - It stores default ApiClient. - - :param default: object of ApiClient. - """ - cls._default = default - - def param_serialize( - self, - method, - resource_path, - path_params=None, - query_params=None, - header_params=None, - body=None, - post_params=None, - files=None, auth_settings=None, - collection_formats=None, - _host=None, - _request_auth=None - ) -> Tuple: - - """Builds the HTTP request params needed by the request. - :param method: Method to call. - :param resource_path: Path to method endpoint. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the authentication - in the spec for a single request. - :return: tuple of form (path, http_method, query_params, header_params, - body, post_params, files) - """ - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict( - self.parameters_to_tuples(header_params,collection_formats) - ) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples( - path_params, - collection_formats - ) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # post parameters - if post_params or files: - post_params = post_params if post_params else [] - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples( - post_params, - collection_formats - ) - post_params.extend(self.files_parameters(files)) - - # auth setting - self.update_params_for_auth( - header_params, - query_params, - auth_settings, - resource_path, - method, - body, - request_auth=_request_auth - ) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - if _host is None: - url = self.configuration.host + resource_path - else: - # use server/host defined in path or operation instead - url = _host + resource_path - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query( - query_params, - collection_formats - ) - url += "?" + url_query - - return method, url, header_params, body, post_params - - - def call_api( - self, - method, - url, - header_params=None, - body=None, - post_params=None, - _request_timeout=None - ) -> rest.RESTResponse: - """Makes the HTTP request (synchronous) - :param method: Method to call. - :param url: Path to method endpoint. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param _request_timeout: timeout setting for this request. - :return: RESTResponse - """ - - try: - # perform request and return response - response_data = self.rest_client.request( - method, url, - headers=header_params, - body=body, post_params=post_params, - _request_timeout=_request_timeout - ) - - except ApiException as e: - if e.body: - e.body = e.body.decode('utf-8') - raise e - - return response_data - - def response_deserialize( - self, - response_data: rest.RESTResponse = None, - response_types_map=None - ) -> ApiResponse: - """Deserializes response into an object. - :param response_data: RESTResponse object to be deserialized. - :param response_types_map: dict of response types. - :return: ApiResponse - """ - - - response_type = response_types_map.get(str(response_data.status), None) - if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: - # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) - - # deserialize response data - response_text = None - return_data = None - try: - if response_type == "bytearray": - return_data = response_data.data - elif response_type == "file": - return_data = self.__deserialize_file(response_data) - elif response_type is not None: - match = None - content_type = response_data.getheader('content-type') - if content_type is not None: - match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) - encoding = match.group(1) if match else "utf-8" - response_text = response_data.data.decode(encoding) - return_data = self.deserialize(response_text, response_type) - finally: - if not 200 <= response_data.status <= 299: - raise ApiException.from_response( - http_resp=response_data, - body=response_text, - data=return_data, - ) - - return ApiResponse( - status_code = response_data.status, - data = return_data, - headers = response_data.getheaders(), - raw_data = response_data.data - ) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is OpenAPI model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [ - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ] - elif isinstance(obj, tuple): - return tuple( - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - elif isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `openapi_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = obj.to_dict() - - return { - key: self.sanitize_for_serialization(val) - for key, val in obj_dict.items() - } - - def deserialize(self, response_text, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - - # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: - data = response_text - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if isinstance(klass, str): - if klass.startswith('List['): - sub_kls = re.match(r'List\[(.*)]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('Dict['): - sub_kls = re.match(r'Dict\[([^,]*), (.*)]', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in data.items()} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(qaseio.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datetime(data) - else: - return self.__deserialize_model(data, klass) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in params.items() if isinstance(params, dict) else params: - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def parameters_to_url_query(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: URL query string (e.g. a=Hello%20World&b=123) - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in params.items() if isinstance(params, dict) else params: - if isinstance(v, bool): - v = str(v).lower() - if isinstance(v, (int, float)): - v = str(v) - if isinstance(v, dict): - v = json.dumps(v) - - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(quote(str(value)) for value in v)) - ) - else: - new_params.append((k, quote(str(v)))) - - return "&".join(["=".join(item) for item in new_params]) - - def files_parameters(self, files=None): - """Builds form parameters. - - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if files: - for k, v in files.items(): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - if isinstance(n, BytesIO): - params.append( - tuple([k, tuple([n.name, n.getvalue(), n.mime])])) - continue - - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = ( - mimetypes.guess_type(filename)[0] - or 'application/octet-stream' - ) - params.append( - tuple([k, tuple([filename, filedata, mimetype])]) - ) - - return params - - def select_header_accept(self, accepts: List[str]) -> Optional[str]: - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return None - - for accept in accepts: - if re.search('json', accept, re.IGNORECASE): - return accept - - return accepts[0] - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return None - - for content_type in content_types: - if re.search('json', content_type, re.IGNORECASE): - return content_type - - return content_types[0] - - def update_params_for_auth( - self, - headers, - queries, - auth_settings, - resource_path, - method, - body, - request_auth=None - ) -> None: - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param queries: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - :resource_path: A string representation of the HTTP request resource path. - :method: A string representation of the HTTP request method. - :body: A object representing the body of the HTTP request. - The object type is the return value of sanitize_for_serialization(). - :param request_auth: if set, the provided settings will - override the token in the configuration. - """ - if not auth_settings: - return - - if request_auth: - self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - request_auth - ) - else: - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - auth_setting - ) - - def _apply_auth_params( - self, - headers, - queries, - resource_path, - method, - body, - auth_setting - ) -> None: - """Updates the request parameters based on a single auth_setting - - :param headers: Header parameters dict to be updated. - :param queries: Query parameters tuple list to be updated. - :resource_path: A string representation of the HTTP request resource path. - :method: A string representation of the HTTP request method. - :body: A object representing the body of the HTTP request. - The object type is the return value of sanitize_for_serialization(). - :param auth_setting: auth settings for the endpoint - """ - if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - queries.append((auth_setting['key'], auth_setting['value'])) - else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - handle file downloading - save response body into a tmp file and return the instance - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition - ).group(1) - path = os.path.join(os.path.dirname(path), filename) - - with open(path, "wb") as f: - f.write(response.data) - - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return str(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return an original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datetime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - return klass.from_dict(data) diff --git a/qaseio/src/qaseio/api_response.py b/qaseio/src/qaseio/api_response.py deleted file mode 100644 index 2ac1ada6..00000000 --- a/qaseio/src/qaseio/api_response.py +++ /dev/null @@ -1,21 +0,0 @@ -"""API response object.""" - -from __future__ import annotations -from typing import Any, Dict, Optional, Generic, TypeVar -from pydantic import Field, StrictInt, StrictStr, StrictBytes, BaseModel - -T = TypeVar("T") - -class ApiResponse(BaseModel, Generic[T]): - """ - API response object - """ - - status_code: StrictInt = Field(description="HTTP status code") - headers: Optional[Dict[StrictStr, StrictStr]] = Field(None, description="HTTP headers") - data: T = Field(description="Deserialized data given the data type") - raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") - - model_config = { - "arbitrary_types_allowed": True - } diff --git a/qaseio/src/qaseio/configuration.py b/qaseio/src/qaseio/configuration.py deleted file mode 100644 index 3af03f58..00000000 --- a/qaseio/src/qaseio/configuration.py +++ /dev/null @@ -1,464 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import http.client as httplib - -JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' -} - -class Configuration: - """This class contains various settings of the API client. - - :param host: Base url. - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication. - :param password: Password for HTTP basic authentication. - :param access_token: Access token. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum - values before. - :param ssl_ca_cert: str - the path to a file of concatenated CA certificates - in PEM format. - - :Example: - - API Key Authentication Example. - Given the following security scheme in the OpenAPI specification: - components: - securitySchemes: - cookieAuth: # name for the security scheme - type: apiKey - in: cookie - name: JSESSIONID # cookie name - - You can programmatically set the cookie: - -conf = qaseio.Configuration( - api_key={'cookieAuth': 'abc123'} - api_key_prefix={'cookieAuth': 'JSESSIONID'} -) - - The following cookie will be added to the HTTP request: - Cookie: JSESSIONID abc123 - """ - - _default = None - - def __init__(self, host=None, - api_key=None, api_key_prefix=None, - username=None, password=None, - access_token=None, - server_index=None, server_variables=None, - server_operation_index=None, server_operation_variables=None, - ssl_ca_cert=None, - ) -> None: - """Constructor - """ - self._base_path = "https://api.qase.io/v1" if host is None else host - """Default Base url - """ - self.server_index = 0 if server_index is None and host is None else server_index - self.server_operation_index = server_operation_index or {} - """Default server index - """ - self.server_variables = server_variables or {} - self.server_operation_variables = server_operation_variables or {} - """Default server variables - """ - self.temp_folder_path = None - """Temp file folder for downloading files - """ - # Authentication Settings - self.api_key = {} - if api_key: - self.api_key = api_key - """dict to store API key(s) - """ - self.api_key_prefix = {} - if api_key_prefix: - self.api_key_prefix = api_key_prefix - """dict to store API prefix (e.g. Bearer) - """ - self.refresh_api_key_hook = None - """function hook to refresh API key if expired - """ - self.username = username - """Username for HTTP basic authentication - """ - self.password = password - """Password for HTTP basic authentication - """ - self.access_token = access_token - """Access token - """ - self.logger = {} - """Logging Settings - """ - self.logger["package_logger"] = logging.getLogger("qaseio") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - """Log format - """ - self.logger_stream_handler = None - """Log stream handler - """ - self.logger_file_handler = None - """Log file handler - """ - self.logger_file = None - """Debug file location - """ - self.debug = False - """Debug switch - """ - - self.verify_ssl = True - """SSL/TLS verification - Set this to false to skip verifying SSL certificate when calling API - from https server. - """ - self.ssl_ca_cert = ssl_ca_cert - """Set this to customize the certificate file to verify the peer. - """ - self.cert_file = None - """client certificate file - """ - self.key_file = None - """client key file - """ - self.assert_hostname = None - """Set this to True/False to enable/disable SSL hostname verification. - """ - self.tls_server_name = None - """SSL/TLS Server Name Indication (SNI) - Set this to the SNI value expected by the server. - """ - - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - """urllib3 connection pool's maximum number of connections saved - per pool. urllib3 uses 1 connection as default value, but this is - not the best value when you are making a lot of possibly parallel - requests to the same host, which is often the case here. - cpu_count * 5 is used as default value to increase performance. - """ - - self.proxy = None - """Proxy URL - """ - self.proxy_headers = None - """Proxy headers - """ - self.safe_chars_for_path_param = '' - """Safe chars for path_param - """ - self.retries = None - """Adding retries to override urllib3 default value 3 - """ - # Enable client side validation - self.client_side_validation = True - - self.socket_options = None - """Options to pass down to the underlying urllib3 socket - """ - - self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z" - """datetime format - """ - - self.date_format = "%Y-%m-%d" - """date format - """ - - def __deepcopy__(self, memo): - cls = self.__class__ - result = cls.__new__(cls) - memo[id(self)] = result - for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): - setattr(result, k, copy.deepcopy(v, memo)) - # shallow copy of loggers - result.logger = copy.copy(self.logger) - # use setters to configure loggers - result.logger_file = self.logger_file - result.debug = self.debug - return result - - def __setattr__(self, name, value): - object.__setattr__(self, name, value) - - @classmethod - def set_default(cls, default): - """Set default instance of configuration. - - It stores default configuration, which can be - returned by get_default_copy method. - - :param default: object of Configuration - """ - cls._default = default - - @classmethod - def get_default_copy(cls): - """Deprecated. Please use `get_default` instead. - - Deprecated. Please use `get_default` instead. - - :return: The configuration object. - """ - return cls.get_default() - - @classmethod - def get_default(cls): - """Return the default configuration. - - This method returns newly created, based on default constructor, - object of Configuration class or returns a copy of default - configuration. - - :return: The configuration object. - """ - if cls._default is None: - cls._default = Configuration() - return cls._default - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in self.logger.items(): - logger.addHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in self.logger.items(): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in self.logger.items(): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier, alias=None): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :param alias: The alternative identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook is not None: - self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - username = "" - if self.username is not None: - username = self.username - password = "" - if self.password is not None: - password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - auth = {} - if 'TokenAuth' in self.api_key: - auth['TokenAuth'] = { - 'type': 'api_key', - 'in': 'header', - 'key': 'Token', - 'value': self.get_api_key_with_prefix( - 'TokenAuth', - ), - } - return auth - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: v1\n"\ - "SDK Package Version: 4.0.1".\ - format(env=sys.platform, pyversion=sys.version) - - def get_host_settings(self): - """Gets an array of host settings - - :return: An array of host settings - """ - return [ - { - 'url': "https://api.qase.io/v1", - 'description': "The production API server.", - } - ] - - def get_host_from_settings(self, index, variables=None, servers=None): - """Gets host URL based on the index and variables - :param index: array index of the host settings - :param variables: hash of variable and the corresponding value - :param servers: an array of host settings or None - :return: URL based on host settings - """ - if index is None: - return self._base_path - - variables = {} if variables is None else variables - servers = self.get_host_settings() if servers is None else servers - - try: - server = servers[index] - except IndexError: - raise ValueError( - "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) - - url = server['url'] - - # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) - - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: - raise ValueError( - "The variable `{0}` in the host URL has invalid value " - "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) - - url = url.replace("{" + variable_name + "}", used_value) - - return url - - @property - def host(self): - """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) - - @host.setter - def host(self, value): - """Fix base path.""" - self._base_path = value - self.server_index = None diff --git a/qaseio/src/qaseio/exceptions.py b/qaseio/src/qaseio/exceptions.py deleted file mode 100644 index 40b15e1d..00000000 --- a/qaseio/src/qaseio/exceptions.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -from typing import Any, Optional - -from typing_extensions import Self - -class OpenApiException(Exception): - """The base exception class for all OpenAPIExceptions""" - - -class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None) -> None: - """ Raises an exception for TypeErrors - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list): a list of keys an indices to get to the - current_item - None if unset - valid_classes (tuple): the primitive classes that current item - should be an instance of - None if unset - key_type (bool): False if our value is a value in a dict - True if it is a key in a dict - False if our item is an item in a list - None if unset - """ - self.path_to_item = path_to_item - self.valid_classes = valid_classes - self.key_type = key_type - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) - - -class ApiValueError(OpenApiException, ValueError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (list) the path to the exception in the - received_data dict. None if unset - """ - - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) - - -class ApiAttributeError(OpenApiException, AttributeError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Raised when an attribute reference or assignment fails. - - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) - - -class ApiKeyError(OpenApiException, KeyError): - def __init__(self, msg, path_to_item=None) -> None: - """ - Args: - msg (str): the exception message - - Keyword Args: - path_to_item (None/list) the path to the exception in the - received_data dict - """ - self.path_to_item = path_to_item - full_msg = msg - if path_to_item: - full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) - - -class ApiException(OpenApiException): - - def __init__( - self, - status=None, - reason=None, - http_resp=None, - *, - body: Optional[str] = None, - data: Optional[Any] = None, - ) -> None: - self.status = status - self.reason = reason - self.body = body - self.data = data - self.headers = None - - if http_resp: - if self.status is None: - self.status = http_resp.status - if self.reason is None: - self.reason = http_resp.reason - if self.body is None: - try: - self.body = http_resp.data.decode('utf-8') - except Exception: - pass - self.headers = http_resp.getheaders() - - @classmethod - def from_response( - cls, - *, - http_resp, - body: Optional[str], - data: Optional[Any], - ) -> Self: - if http_resp.status == 400: - raise BadRequestException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 401: - raise UnauthorizedException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 403: - raise ForbiddenException(http_resp=http_resp, body=body, data=data) - - if http_resp.status == 404: - raise NotFoundException(http_resp=http_resp, body=body, data=data) - - if 500 <= http_resp.status <= 599: - raise ServiceException(http_resp=http_resp, body=body, data=data) - raise ApiException(http_resp=http_resp, body=body, data=data) - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.data or self.body: - error_message += "HTTP response body: {0}\n".format(self.data or self.body) - - return error_message - - -class BadRequestException(ApiException): - pass - - -class NotFoundException(ApiException): - pass - - -class UnauthorizedException(ApiException): - pass - - -class ForbiddenException(ApiException): - pass - - -class ServiceException(ApiException): - pass - - -def render_path(path_to_item): - """Returns a string representation of a path""" - result = "" - for pth in path_to_item: - if isinstance(pth, int): - result += "[{0}]".format(pth) - else: - result += "['{0}']".format(pth) - return result diff --git a/qaseio/src/qaseio/models/__init__.py b/qaseio/src/qaseio/models/__init__.py deleted file mode 100644 index b3f5a00a..00000000 --- a/qaseio/src/qaseio/models/__init__.py +++ /dev/null @@ -1,159 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -# import models into model package -from qaseio.models.attachment import Attachment -from qaseio.models.attachment_get import AttachmentGet -from qaseio.models.attachment_hash import AttachmentHash -from qaseio.models.attachment_list_response import AttachmentListResponse -from qaseio.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult -from qaseio.models.attachment_response import AttachmentResponse -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse -from qaseio.models.attachmentupload import Attachmentupload -from qaseio.models.author import Author -from qaseio.models.author_list_response import AuthorListResponse -from qaseio.models.author_list_response_all_of_result import AuthorListResponseAllOfResult -from qaseio.models.author_response import AuthorResponse -from qaseio.models.base_response import BaseResponse -from qaseio.models.bulk200_response import Bulk200Response -from qaseio.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult -from qaseio.models.configuration import Configuration -from qaseio.models.configuration_create import ConfigurationCreate -from qaseio.models.configuration_group import ConfigurationGroup -from qaseio.models.configuration_group_create import ConfigurationGroupCreate -from qaseio.models.configuration_list_response import ConfigurationListResponse -from qaseio.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult -from qaseio.models.custom_field import CustomField -from qaseio.models.custom_field_create import CustomFieldCreate -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner -from qaseio.models.custom_field_list_response import CustomFieldListResponse -from qaseio.models.custom_field_response import CustomFieldResponse -from qaseio.models.custom_field_update import CustomFieldUpdate -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.custom_fields_response import CustomFieldsResponse -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult -from qaseio.models.defect import Defect -from qaseio.models.defect_create import DefectCreate -from qaseio.models.defect_list_response import DefectListResponse -from qaseio.models.defect_list_response_all_of_result import DefectListResponseAllOfResult -from qaseio.models.defect_query import DefectQuery -from qaseio.models.defect_response import DefectResponse -from qaseio.models.defect_status import DefectStatus -from qaseio.models.defect_update import DefectUpdate -from qaseio.models.environment import Environment -from qaseio.models.environment_create import EnvironmentCreate -from qaseio.models.environment_list_response import EnvironmentListResponse -from qaseio.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult -from qaseio.models.environment_response import EnvironmentResponse -from qaseio.models.environment_update import EnvironmentUpdate -from qaseio.models.external_issue import ExternalIssue -from qaseio.models.external_issue_issues_inner import ExternalIssueIssuesInner -from qaseio.models.hash_response import HashResponse -from qaseio.models.hash_response_all_of_result import HashResponseAllOfResult -from qaseio.models.id_response import IdResponse -from qaseio.models.id_response_all_of_result import IdResponseAllOfResult -from qaseio.models.milestone import Milestone -from qaseio.models.milestone_create import MilestoneCreate -from qaseio.models.milestone_list_response import MilestoneListResponse -from qaseio.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult -from qaseio.models.milestone_response import MilestoneResponse -from qaseio.models.milestone_update import MilestoneUpdate -from qaseio.models.plan import Plan -from qaseio.models.plan_create import PlanCreate -from qaseio.models.plan_detailed import PlanDetailed -from qaseio.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases -from qaseio.models.plan_list_response import PlanListResponse -from qaseio.models.plan_list_response_all_of_result import PlanListResponseAllOfResult -from qaseio.models.plan_query import PlanQuery -from qaseio.models.plan_response import PlanResponse -from qaseio.models.plan_update import PlanUpdate -from qaseio.models.project import Project -from qaseio.models.project_access import ProjectAccess -from qaseio.models.project_code_response import ProjectCodeResponse -from qaseio.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult -from qaseio.models.project_counts import ProjectCounts -from qaseio.models.project_counts_defects import ProjectCountsDefects -from qaseio.models.project_counts_runs import ProjectCountsRuns -from qaseio.models.project_create import ProjectCreate -from qaseio.models.project_list_response import ProjectListResponse -from qaseio.models.project_list_response_all_of_result import ProjectListResponseAllOfResult -from qaseio.models.project_response import ProjectResponse -from qaseio.models.qql_defect import QqlDefect -from qaseio.models.qql_plan import QqlPlan -from qaseio.models.qql_test_case import QqlTestCase -from qaseio.models.requirement import Requirement -from qaseio.models.response import Response -from qaseio.models.result import Result -from qaseio.models.result_create import ResultCreate -from qaseio.models.result_create_bulk import ResultCreateBulk -from qaseio.models.result_create_case import ResultCreateCase -from qaseio.models.result_create_response import ResultCreateResponse -from qaseio.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult -from qaseio.models.result_list_response import ResultListResponse -from qaseio.models.result_list_response_all_of_result import ResultListResponseAllOfResult -from qaseio.models.result_response import ResultResponse -from qaseio.models.result_update import ResultUpdate -from qaseio.models.resultcreate_bulk import ResultcreateBulk -from qaseio.models.run import Run -from qaseio.models.run_create import RunCreate -from qaseio.models.run_environment import RunEnvironment -from qaseio.models.run_list_response import RunListResponse -from qaseio.models.run_list_response_all_of_result import RunListResponseAllOfResult -from qaseio.models.run_milestone import RunMilestone -from qaseio.models.run_public import RunPublic -from qaseio.models.run_public_response import RunPublicResponse -from qaseio.models.run_public_response_all_of_result import RunPublicResponseAllOfResult -from qaseio.models.run_response import RunResponse -from qaseio.models.run_stats import RunStats -from qaseio.models.search_response import SearchResponse -from qaseio.models.search_response_all_of_result import SearchResponseAllOfResult -from qaseio.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities -from qaseio.models.shared_step import SharedStep -from qaseio.models.shared_step_content import SharedStepContent -from qaseio.models.shared_step_content_create import SharedStepContentCreate -from qaseio.models.shared_step_create import SharedStepCreate -from qaseio.models.shared_step_list_response import SharedStepListResponse -from qaseio.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult -from qaseio.models.shared_step_response import SharedStepResponse -from qaseio.models.shared_step_update import SharedStepUpdate -from qaseio.models.suite import Suite -from qaseio.models.suite_create import SuiteCreate -from qaseio.models.suite_delete import SuiteDelete -from qaseio.models.suite_list_response import SuiteListResponse -from qaseio.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult -from qaseio.models.suite_response import SuiteResponse -from qaseio.models.suite_update import SuiteUpdate -from qaseio.models.system_field import SystemField -from qaseio.models.system_field_list_response import SystemFieldListResponse -from qaseio.models.system_field_option import SystemFieldOption -from qaseio.models.tag_value import TagValue -from qaseio.models.test_case import TestCase -from qaseio.models.test_case_create import TestCaseCreate -from qaseio.models.test_case_external_issues import TestCaseExternalIssues -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner -from qaseio.models.test_case_list_response import TestCaseListResponse -from qaseio.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult -from qaseio.models.test_case_params import TestCaseParams -from qaseio.models.test_case_query import TestCaseQuery -from qaseio.models.test_case_response import TestCaseResponse -from qaseio.models.test_case_update import TestCaseUpdate -from qaseio.models.test_casebulk import TestCasebulk -from qaseio.models.test_casebulk_cases_inner import TestCasebulkCasesInner -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues -from qaseio.models.test_step import TestStep -from qaseio.models.test_step_create import TestStepCreate -from qaseio.models.test_step_result import TestStepResult -from qaseio.models.test_step_result_create import TestStepResultCreate diff --git a/qaseio/src/qaseio/models/attachment.py b/qaseio/src/qaseio/models/attachment.py deleted file mode 100644 index 26ded27f..00000000 --- a/qaseio/src/qaseio/models/attachment.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Attachment(BaseModel): - """ - Attachment - """ # noqa: E501 - size: Optional[StrictInt] = None - mime: Optional[StrictStr] = None - filename: Optional[StrictStr] = None - url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "mime", "filename", "url"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Attachment from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Attachment from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "size": obj.get("size"), - "mime": obj.get("mime"), - "filename": obj.get("filename"), - "url": obj.get("url") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_get.py b/qaseio/src/qaseio/models/attachment_get.py deleted file mode 100644 index 8688c755..00000000 --- a/qaseio/src/qaseio/models/attachment_get.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentGet(BaseModel): - """ - AttachmentGet - """ # noqa: E501 - hash: Optional[StrictStr] = None - file: Optional[StrictStr] = None - mime: Optional[StrictStr] = None - size: Optional[StrictInt] = None - extension: Optional[StrictStr] = None - full_path: Optional[StrictStr] = None - url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["hash", "file", "mime", "size", "extension", "full_path", "url"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentGet from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentGet from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "file": obj.get("file"), - "mime": obj.get("mime"), - "size": obj.get("size"), - "extension": obj.get("extension"), - "full_path": obj.get("full_path"), - "url": obj.get("url") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_hash.py b/qaseio/src/qaseio/models/attachment_hash.py deleted file mode 100644 index 017348d4..00000000 --- a/qaseio/src/qaseio/models/attachment_hash.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentHash(BaseModel): - """ - AttachmentHash - """ # noqa: E501 - size: Optional[StrictInt] = None - mime: Optional[StrictStr] = None - filename: Optional[StrictStr] = None - url: Optional[StrictStr] = None - hash: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "mime", "filename", "url", "hash"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentHash from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentHash from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "size": obj.get("size"), - "mime": obj.get("mime"), - "filename": obj.get("filename"), - "url": obj.get("url"), - "hash": obj.get("hash") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_list_response.py b/qaseio/src/qaseio/models/attachment_list_response.py deleted file mode 100644 index c354e204..00000000 --- a/qaseio/src/qaseio/models/attachment_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentListResponse(BaseModel): - """ - AttachmentListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[AttachmentListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": AttachmentListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_list_response_all_of_result.py b/qaseio/src/qaseio/models/attachment_list_response_all_of_result.py deleted file mode 100644 index 85031a40..00000000 --- a/qaseio/src/qaseio/models/attachment_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.attachment_get import AttachmentGet -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentListResponseAllOfResult(BaseModel): - """ - AttachmentListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[AttachmentGet]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [AttachmentGet.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_response.py b/qaseio/src/qaseio/models/attachment_response.py deleted file mode 100644 index 7f9b50bf..00000000 --- a/qaseio/src/qaseio/models/attachment_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.attachment_get import AttachmentGet -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentResponse(BaseModel): - """ - AttachmentResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[AttachmentGet] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": AttachmentGet.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachment_uploads_response.py b/qaseio/src/qaseio/models/attachment_uploads_response.py deleted file mode 100644 index 55da9390..00000000 --- a/qaseio/src/qaseio/models/attachment_uploads_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.attachmentupload import Attachmentupload -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AttachmentUploadsResponse(BaseModel): - """ - AttachmentUploadsResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[List[Attachmentupload]] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AttachmentUploadsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in result (list) - _items = [] - if self.result: - for _item in self.result: - if _item: - _items.append(_item.to_dict()) - _dict['result'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AttachmentUploadsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": [Attachmentupload.from_dict(_item) for _item in obj.get("result")] if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/attachmentupload.py b/qaseio/src/qaseio/models/attachmentupload.py deleted file mode 100644 index f094f0f0..00000000 --- a/qaseio/src/qaseio/models/attachmentupload.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Attachmentupload(BaseModel): - """ - Attachmentupload - """ # noqa: E501 - hash: Optional[StrictStr] = None - filename: Optional[StrictStr] = None - mime: Optional[StrictStr] = None - extension: Optional[StrictStr] = None - url: Optional[StrictStr] = None - team: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["hash", "filename", "mime", "extension", "url", "team"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Attachmentupload from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Attachmentupload from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "filename": obj.get("filename"), - "mime": obj.get("mime"), - "extension": obj.get("extension"), - "url": obj.get("url"), - "team": obj.get("team") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/author.py b/qaseio/src/qaseio/models/author.py deleted file mode 100644 index 7b22c2a8..00000000 --- a/qaseio/src/qaseio/models/author.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Author(BaseModel): - """ - Author - """ # noqa: E501 - id: Optional[StrictInt] = None - entity_type: Optional[StrictStr] = None - email: Optional[StrictStr] = None - name: Optional[StrictStr] = None - is_active: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "entity_type", "email", "name", "is_active"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Author from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Author from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "entity_type": obj.get("entity_type"), - "email": obj.get("email"), - "name": obj.get("name"), - "is_active": obj.get("is_active") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/author_list_response.py b/qaseio/src/qaseio/models/author_list_response.py deleted file mode 100644 index 68a29333..00000000 --- a/qaseio/src/qaseio/models/author_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.author_list_response_all_of_result import AuthorListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AuthorListResponse(BaseModel): - """ - AuthorListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[AuthorListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AuthorListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AuthorListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": AuthorListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/author_list_response_all_of_result.py b/qaseio/src/qaseio/models/author_list_response_all_of_result.py deleted file mode 100644 index 1b1a605d..00000000 --- a/qaseio/src/qaseio/models/author_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.author import Author -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AuthorListResponseAllOfResult(BaseModel): - """ - AuthorListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Author]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AuthorListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AuthorListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Author.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/author_response.py b/qaseio/src/qaseio/models/author_response.py deleted file mode 100644 index a8c0da4b..00000000 --- a/qaseio/src/qaseio/models/author_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.author import Author -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class AuthorResponse(BaseModel): - """ - AuthorResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Author] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of AuthorResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of AuthorResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Author.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/base_response.py b/qaseio/src/qaseio/models/base_response.py deleted file mode 100644 index 0f2182c3..00000000 --- a/qaseio/src/qaseio/models/base_response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class BaseResponse(BaseModel): - """ - BaseResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["status"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of BaseResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of BaseResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/bulk200_response.py b/qaseio/src/qaseio/models/bulk200_response.py deleted file mode 100644 index e9c50159..00000000 --- a/qaseio/src/qaseio/models/bulk200_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Bulk200Response(BaseModel): - """ - Bulk200Response - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Bulk200ResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Bulk200Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Bulk200Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Bulk200ResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/bulk200_response_all_of_result.py b/qaseio/src/qaseio/models/bulk200_response_all_of_result.py deleted file mode 100644 index 018f0f66..00000000 --- a/qaseio/src/qaseio/models/bulk200_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Bulk200ResponseAllOfResult(BaseModel): - """ - Bulk200ResponseAllOfResult - """ # noqa: E501 - ids: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["ids"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Bulk200ResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Bulk200ResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ids": obj.get("ids") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration.py b/qaseio/src/qaseio/models/configuration.py deleted file mode 100644 index c5955b7c..00000000 --- a/qaseio/src/qaseio/models/configuration.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Configuration(BaseModel): - """ - Configuration - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "title"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Configuration from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Configuration from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration_create.py b/qaseio/src/qaseio/models/configuration_create.py deleted file mode 100644 index 7f855ec5..00000000 --- a/qaseio/src/qaseio/models/configuration_create.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictInt -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ConfigurationCreate(BaseModel): - """ - ConfigurationCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - group_id: StrictInt - __properties: ClassVar[List[str]] = ["title", "group_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfigurationCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ConfigurationCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "group_id": obj.get("group_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration_group.py b/qaseio/src/qaseio/models/configuration_group.py deleted file mode 100644 index 93af644e..00000000 --- a/qaseio/src/qaseio/models/configuration_group.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from qaseio.models.configuration import Configuration -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ConfigurationGroup(BaseModel): - """ - ConfigurationGroup - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - configurations: Optional[List[Configuration]] = None - __properties: ClassVar[List[str]] = ["id", "title", "configurations"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfigurationGroup from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in configurations (list) - _items = [] - if self.configurations: - for _item in self.configurations: - if _item: - _items.append(_item.to_dict()) - _dict['configurations'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ConfigurationGroup from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "configurations": [Configuration.from_dict(_item) for _item in obj.get("configurations")] if obj.get("configurations") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration_group_create.py b/qaseio/src/qaseio/models/configuration_group_create.py deleted file mode 100644 index a0b7c953..00000000 --- a/qaseio/src/qaseio/models/configuration_group_create.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ConfigurationGroupCreate(BaseModel): - """ - ConfigurationGroupCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - __properties: ClassVar[List[str]] = ["title"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfigurationGroupCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ConfigurationGroupCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration_list_response.py b/qaseio/src/qaseio/models/configuration_list_response.py deleted file mode 100644 index e6bafbac..00000000 --- a/qaseio/src/qaseio/models/configuration_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ConfigurationListResponse(BaseModel): - """ - ConfigurationListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[ConfigurationListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfigurationListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ConfigurationListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": ConfigurationListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/configuration_list_response_all_of_result.py b/qaseio/src/qaseio/models/configuration_list_response_all_of_result.py deleted file mode 100644 index 41d2d8ee..00000000 --- a/qaseio/src/qaseio/models/configuration_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.configuration_group import ConfigurationGroup -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ConfigurationListResponseAllOfResult(BaseModel): - """ - ConfigurationListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[ConfigurationGroup]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ConfigurationListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ConfigurationListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [ConfigurationGroup.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field.py b/qaseio/src/qaseio/models/custom_field.py deleted file mode 100644 index 38b3ea31..00000000 --- a/qaseio/src/qaseio/models/custom_field.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomField(BaseModel): - """ - CustomField - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - entity: Optional[StrictStr] = None - type: Optional[StrictStr] = None - placeholder: Optional[StrictStr] = None - default_value: Optional[StrictStr] = None - value: Optional[StrictStr] = None - is_required: Optional[StrictBool] = None - is_visible: Optional[StrictBool] = None - is_filterable: Optional[StrictBool] = None - is_enabled_for_all_projects: Optional[StrictBool] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - projects_codes: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id", "title", "entity", "type", "placeholder", "default_value", "value", "is_required", "is_visible", "is_filterable", "is_enabled_for_all_projects", "created", "updated", "created_at", "updated_at", "projects_codes"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomField from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if placeholder (nullable) is None - # and model_fields_set contains the field - if self.placeholder is None and "placeholder" in self.model_fields_set: - _dict['placeholder'] = None - - # set to None if default_value (nullable) is None - # and model_fields_set contains the field - if self.default_value is None and "default_value" in self.model_fields_set: - _dict['default_value'] = None - - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if updated (nullable) is None - # and model_fields_set contains the field - if self.updated is None and "updated" in self.model_fields_set: - _dict['updated'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomField from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "entity": obj.get("entity"), - "type": obj.get("type"), - "placeholder": obj.get("placeholder"), - "default_value": obj.get("default_value"), - "value": obj.get("value"), - "is_required": obj.get("is_required"), - "is_visible": obj.get("is_visible"), - "is_filterable": obj.get("is_filterable"), - "is_enabled_for_all_projects": obj.get("is_enabled_for_all_projects"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "projects_codes": obj.get("projects_codes") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_create.py b/qaseio/src/qaseio/models/custom_field_create.py deleted file mode 100644 index fbad98b6..00000000 --- a/qaseio/src/qaseio/models/custom_field_create.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldCreate(BaseModel): - """ - CustomFieldCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - value: Optional[List[CustomFieldCreateValueInner]] = Field(default=None, description="Required if type one of: 3 - selectbox; 5 - radio; 6 - multiselect; ") - entity: Annotated[int, Field(le=2, strict=True, ge=0)] = Field(description="Possible values: 0 - case; 1 - run; 2 - defect; ") - type: Annotated[int, Field(le=9, strict=True, ge=0)] = Field(description="Possible values: 0 - number; 1 - string; 2 - text; 3 - selectbox; 4 - checkbox; 5 - radio; 6 - multiselect; 7 - url; 8 - user; 9 - datetime; ") - placeholder: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - default_value: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - is_filterable: Optional[StrictBool] = None - is_visible: Optional[StrictBool] = None - is_required: Optional[StrictBool] = None - is_enabled_for_all_projects: Optional[StrictBool] = None - projects_codes: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["title", "value", "entity", "type", "placeholder", "default_value", "is_filterable", "is_visible", "is_required", "is_enabled_for_all_projects", "projects_codes"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in value (list) - _items = [] - if self.value: - for _item in self.value: - if _item: - _items.append(_item.to_dict()) - _dict['value'] = _items - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if placeholder (nullable) is None - # and model_fields_set contains the field - if self.placeholder is None and "placeholder" in self.model_fields_set: - _dict['placeholder'] = None - - # set to None if default_value (nullable) is None - # and model_fields_set contains the field - if self.default_value is None and "default_value" in self.model_fields_set: - _dict['default_value'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "value": [CustomFieldCreateValueInner.from_dict(_item) for _item in obj.get("value")] if obj.get("value") is not None else None, - "entity": obj.get("entity"), - "type": obj.get("type"), - "placeholder": obj.get("placeholder"), - "default_value": obj.get("default_value"), - "is_filterable": obj.get("is_filterable"), - "is_visible": obj.get("is_visible"), - "is_required": obj.get("is_required"), - "is_enabled_for_all_projects": obj.get("is_enabled_for_all_projects"), - "projects_codes": obj.get("projects_codes") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_create_value_inner.py b/qaseio/src/qaseio/models/custom_field_create_value_inner.py deleted file mode 100644 index f6eca4d1..00000000 --- a/qaseio/src/qaseio/models/custom_field_create_value_inner.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldCreateValueInner(BaseModel): - """ - CustomFieldCreateValueInner - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - __properties: ClassVar[List[str]] = ["id", "title"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldCreateValueInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldCreateValueInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_list_response.py b/qaseio/src/qaseio/models/custom_field_list_response.py deleted file mode 100644 index 8bc5846f..00000000 --- a/qaseio/src/qaseio/models/custom_field_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldListResponse(BaseModel): - """ - CustomFieldListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[CustomFieldsResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": CustomFieldsResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_response.py b/qaseio/src/qaseio/models/custom_field_response.py deleted file mode 100644 index 89120916..00000000 --- a/qaseio/src/qaseio/models/custom_field_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.custom_field import CustomField -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldResponse(BaseModel): - """ - CustomFieldResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[CustomField] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": CustomField.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_update.py b/qaseio/src/qaseio/models/custom_field_update.py deleted file mode 100644 index 85e409d1..00000000 --- a/qaseio/src/qaseio/models/custom_field_update.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldUpdate(BaseModel): - """ - CustomFieldUpdate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - value: Optional[List[CustomFieldCreateValueInner]] = None - replace_values: Optional[Dict[str, StrictStr]] = Field(default=None, description="Dictionary of old values and their replacemants") - placeholder: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - default_value: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - is_filterable: Optional[StrictBool] = None - is_visible: Optional[StrictBool] = None - is_required: Optional[StrictBool] = None - is_enabled_for_all_projects: Optional[StrictBool] = None - projects_codes: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["title", "value", "replace_values", "placeholder", "default_value", "is_filterable", "is_visible", "is_required", "is_enabled_for_all_projects", "projects_codes"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in value (list) - _items = [] - if self.value: - for _item in self.value: - if _item: - _items.append(_item.to_dict()) - _dict['value'] = _items - # set to None if value (nullable) is None - # and model_fields_set contains the field - if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None - - # set to None if replace_values (nullable) is None - # and model_fields_set contains the field - if self.replace_values is None and "replace_values" in self.model_fields_set: - _dict['replace_values'] = None - - # set to None if placeholder (nullable) is None - # and model_fields_set contains the field - if self.placeholder is None and "placeholder" in self.model_fields_set: - _dict['placeholder'] = None - - # set to None if default_value (nullable) is None - # and model_fields_set contains the field - if self.default_value is None and "default_value" in self.model_fields_set: - _dict['default_value'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "value": [CustomFieldCreateValueInner.from_dict(_item) for _item in obj.get("value")] if obj.get("value") is not None else None, - "replace_values": obj.get("replace_values"), - "placeholder": obj.get("placeholder"), - "default_value": obj.get("default_value"), - "is_filterable": obj.get("is_filterable"), - "is_visible": obj.get("is_visible"), - "is_required": obj.get("is_required"), - "is_enabled_for_all_projects": obj.get("is_enabled_for_all_projects"), - "projects_codes": obj.get("projects_codes") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_field_value.py b/qaseio/src/qaseio/models/custom_field_value.py deleted file mode 100644 index 638b3f8d..00000000 --- a/qaseio/src/qaseio/models/custom_field_value.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldValue(BaseModel): - """ - CustomFieldValue - """ # noqa: E501 - id: Optional[StrictInt] = None - value: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "value"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldValue from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "value": obj.get("value") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_fields_response.py b/qaseio/src/qaseio/models/custom_fields_response.py deleted file mode 100644 index a5dd5ee1..00000000 --- a/qaseio/src/qaseio/models/custom_fields_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldsResponse(BaseModel): - """ - CustomFieldsResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[CustomFieldsResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldsResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldsResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": CustomFieldsResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/custom_fields_response_all_of_result.py b/qaseio/src/qaseio/models/custom_fields_response_all_of_result.py deleted file mode 100644 index 0835363a..00000000 --- a/qaseio/src/qaseio/models/custom_fields_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.custom_field import CustomField -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class CustomFieldsResponseAllOfResult(BaseModel): - """ - CustomFieldsResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[CustomField]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of CustomFieldsResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of CustomFieldsResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [CustomField.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect.py b/qaseio/src/qaseio/models/defect.py deleted file mode 100644 index 48ed9719..00000000 --- a/qaseio/src/qaseio/models/defect.py +++ /dev/null @@ -1,156 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.tag_value import TagValue -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Defect(BaseModel): - """ - Defect - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - actual_result: Optional[StrictStr] = None - severity: Optional[StrictStr] = None - status: Optional[StrictStr] = None - milestone_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - resolved_at: Optional[datetime] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - external_data: Optional[StrictStr] = None - tags: Optional[List[TagValue]] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - __properties: ClassVar[List[str]] = ["id", "title", "actual_result", "severity", "status", "milestone_id", "custom_fields", "attachments", "resolved_at", "member_id", "author_id", "external_data", "tags", "created_at", "updated_at", "created", "updated"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Defect from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if resolved_at (nullable) is None - # and model_fields_set contains the field - if self.resolved_at is None and "resolved_at" in self.model_fields_set: - _dict['resolved_at'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Defect from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "actual_result": obj.get("actual_result"), - "severity": obj.get("severity"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "resolved_at": obj.get("resolved_at"), - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "external_data": obj.get("external_data"), - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "created": obj.get("created"), - "updated": obj.get("updated") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_create.py b/qaseio/src/qaseio/models/defect_create.py deleted file mode 100644 index 1ce72cbf..00000000 --- a/qaseio/src/qaseio/models/defect_create.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectCreate(BaseModel): - """ - DefectCreate - """ # noqa: E501 - title: StrictStr - actual_result: StrictStr - severity: StrictInt - milestone_id: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - tags: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["title", "actual_result", "severity", "milestone_id", "attachments", "custom_field", "tags"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "actual_result": obj.get("actual_result"), - "severity": obj.get("severity"), - "milestone_id": obj.get("milestone_id"), - "attachments": obj.get("attachments"), - "custom_field": obj.get("custom_field"), - "tags": obj.get("tags") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_list_response.py b/qaseio/src/qaseio/models/defect_list_response.py deleted file mode 100644 index 6cf2e5ed..00000000 --- a/qaseio/src/qaseio/models/defect_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.defect_list_response_all_of_result import DefectListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectListResponse(BaseModel): - """ - DefectListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[DefectListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": DefectListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_list_response_all_of_result.py b/qaseio/src/qaseio/models/defect_list_response_all_of_result.py deleted file mode 100644 index a8544919..00000000 --- a/qaseio/src/qaseio/models/defect_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.defect import Defect -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectListResponseAllOfResult(BaseModel): - """ - DefectListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Defect]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Defect.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_query.py b/qaseio/src/qaseio/models/defect_query.py deleted file mode 100644 index 0b7c2491..00000000 --- a/qaseio/src/qaseio/models/defect_query.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.tag_value import TagValue -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectQuery(BaseModel): - """ - DefectQuery - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - actual_result: Optional[StrictStr] = None - severity: Optional[StrictStr] = None - status: Optional[StrictStr] = None - milestone_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - resolved: Optional[datetime] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - external_data: Optional[StrictStr] = None - tags: Optional[List[TagValue]] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "actual_result", "severity", "status", "milestone_id", "custom_fields", "attachments", "resolved", "member_id", "author_id", "external_data", "tags", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if resolved (nullable) is None - # and model_fields_set contains the field - if self.resolved is None and "resolved" in self.model_fields_set: - _dict['resolved'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectQuery from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "actual_result": obj.get("actual_result"), - "severity": obj.get("severity"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "resolved": obj.get("resolved"), - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "external_data": obj.get("external_data"), - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_response.py b/qaseio/src/qaseio/models/defect_response.py deleted file mode 100644 index 24538452..00000000 --- a/qaseio/src/qaseio/models/defect_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.defect import Defect -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectResponse(BaseModel): - """ - DefectResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Defect] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Defect.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_status.py b/qaseio/src/qaseio/models/defect_status.py deleted file mode 100644 index 25ce7580..00000000 --- a/qaseio/src/qaseio/models/defect_status.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictStr, field_validator -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectStatus(BaseModel): - """ - DefectStatus - """ # noqa: E501 - status: StrictStr - __properties: ClassVar[List[str]] = ["status"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value not in ('in_progress', 'resolved', 'invalid'): - raise ValueError("must be one of enum values ('in_progress', 'resolved', 'invalid')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectStatus from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectStatus from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/defect_update.py b/qaseio/src/qaseio/models/defect_update.py deleted file mode 100644 index 12129294..00000000 --- a/qaseio/src/qaseio/models/defect_update.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class DefectUpdate(BaseModel): - """ - DefectUpdate - """ # noqa: E501 - title: Optional[StrictStr] = None - actual_result: Optional[StrictStr] = None - severity: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - tags: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["title", "actual_result", "severity", "milestone_id", "attachments", "custom_field", "tags"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of DefectUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of DefectUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "actual_result": obj.get("actual_result"), - "severity": obj.get("severity"), - "milestone_id": obj.get("milestone_id"), - "attachments": obj.get("attachments"), - "custom_field": obj.get("custom_field"), - "tags": obj.get("tags") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment.py b/qaseio/src/qaseio/models/environment.py deleted file mode 100644 index 1c89143e..00000000 --- a/qaseio/src/qaseio/models/environment.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Environment(BaseModel): - """ - Environment - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - slug: Optional[StrictStr] = None - host: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "slug", "host"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Environment from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if host (nullable) is None - # and model_fields_set contains the field - if self.host is None and "host" in self.model_fields_set: - _dict['host'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Environment from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "slug": obj.get("slug"), - "host": obj.get("host") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment_create.py b/qaseio/src/qaseio/models/environment_create.py deleted file mode 100644 index 9a466081..00000000 --- a/qaseio/src/qaseio/models/environment_create.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class EnvironmentCreate(BaseModel): - """ - EnvironmentCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - description: Optional[StrictStr] = None - slug: Annotated[str, Field(strict=True, max_length=255)] - host: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description", "slug", "host"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of EnvironmentCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of EnvironmentCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "slug": obj.get("slug"), - "host": obj.get("host") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment_list_response.py b/qaseio/src/qaseio/models/environment_list_response.py deleted file mode 100644 index c47f1944..00000000 --- a/qaseio/src/qaseio/models/environment_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class EnvironmentListResponse(BaseModel): - """ - EnvironmentListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[EnvironmentListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of EnvironmentListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of EnvironmentListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": EnvironmentListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment_list_response_all_of_result.py b/qaseio/src/qaseio/models/environment_list_response_all_of_result.py deleted file mode 100644 index 2c1af51c..00000000 --- a/qaseio/src/qaseio/models/environment_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.environment import Environment -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class EnvironmentListResponseAllOfResult(BaseModel): - """ - EnvironmentListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Environment]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of EnvironmentListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of EnvironmentListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Environment.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment_response.py b/qaseio/src/qaseio/models/environment_response.py deleted file mode 100644 index f4b00091..00000000 --- a/qaseio/src/qaseio/models/environment_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.environment import Environment -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class EnvironmentResponse(BaseModel): - """ - EnvironmentResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Environment] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of EnvironmentResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of EnvironmentResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Environment.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/environment_update.py b/qaseio/src/qaseio/models/environment_update.py deleted file mode 100644 index beef4d68..00000000 --- a/qaseio/src/qaseio/models/environment_update.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class EnvironmentUpdate(BaseModel): - """ - EnvironmentUpdate - """ # noqa: E501 - title: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - description: Optional[StrictStr] = None - slug: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - host: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description", "slug", "host"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of EnvironmentUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of EnvironmentUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "slug": obj.get("slug"), - "host": obj.get("host") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/external_issue.py b/qaseio/src/qaseio/models/external_issue.py deleted file mode 100644 index 606cfc02..00000000 --- a/qaseio/src/qaseio/models/external_issue.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from qaseio.models.external_issue_issues_inner import ExternalIssueIssuesInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ExternalIssue(BaseModel): - """ - ExternalIssue - """ # noqa: E501 - type: Optional[StrictStr] = None - issues: Optional[List[ExternalIssueIssuesInner]] = None - __properties: ClassVar[List[str]] = ["type", "issues"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ExternalIssue from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in issues (list) - _items = [] - if self.issues: - for _item in self.issues: - if _item: - _items.append(_item.to_dict()) - _dict['issues'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ExternalIssue from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "issues": [ExternalIssueIssuesInner.from_dict(_item) for _item in obj.get("issues")] if obj.get("issues") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/external_issue_issues_inner.py b/qaseio/src/qaseio/models/external_issue_issues_inner.py deleted file mode 100644 index 69357cfa..00000000 --- a/qaseio/src/qaseio/models/external_issue_issues_inner.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ExternalIssueIssuesInner(BaseModel): - """ - ExternalIssueIssuesInner - """ # noqa: E501 - id: Optional[StrictStr] = None - link: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "link"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ExternalIssueIssuesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ExternalIssueIssuesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "link": obj.get("link") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/hash_response.py b/qaseio/src/qaseio/models/hash_response.py deleted file mode 100644 index ea51c75c..00000000 --- a/qaseio/src/qaseio/models/hash_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.hash_response_all_of_result import HashResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class HashResponse(BaseModel): - """ - HashResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[HashResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of HashResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of HashResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": HashResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/hash_response_all_of_result.py b/qaseio/src/qaseio/models/hash_response_all_of_result.py deleted file mode 100644 index 38d1f3bf..00000000 --- a/qaseio/src/qaseio/models/hash_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class HashResponseAllOfResult(BaseModel): - """ - HashResponseAllOfResult - """ # noqa: E501 - hash: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["hash"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of HashResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of HashResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/id_response.py b/qaseio/src/qaseio/models/id_response.py deleted file mode 100644 index 9a9e2cf6..00000000 --- a/qaseio/src/qaseio/models/id_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.id_response_all_of_result import IdResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class IdResponse(BaseModel): - """ - IdResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[IdResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of IdResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of IdResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": IdResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/id_response_all_of_result.py b/qaseio/src/qaseio/models/id_response_all_of_result.py deleted file mode 100644 index a31c59c2..00000000 --- a/qaseio/src/qaseio/models/id_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class IdResponseAllOfResult(BaseModel): - """ - IdResponseAllOfResult - """ # noqa: E501 - id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of IdResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of IdResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone.py b/qaseio/src/qaseio/models/milestone.py deleted file mode 100644 index 5ea4d911..00000000 --- a/qaseio/src/qaseio/models/milestone.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr, field_validator -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Milestone(BaseModel): - """ - Milestone - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - status: Optional[StrictStr] = None - due_date: Optional[datetime] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "status", "due_date", "created", "updated", "created_at", "updated_at"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('completed', 'active'): - raise ValueError("must be one of enum values ('completed', 'active')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Milestone from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if due_date (nullable) is None - # and model_fields_set contains the field - if self.due_date is None and "due_date" in self.model_fields_set: - _dict['due_date'] = None - - # set to None if updated (nullable) is None - # and model_fields_set contains the field - if self.updated is None and "updated" in self.model_fields_set: - _dict['updated'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Milestone from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "status": obj.get("status"), - "due_date": obj.get("due_date"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone_create.py b/qaseio/src/qaseio/models/milestone_create.py deleted file mode 100644 index 2fbdfc11..00000000 --- a/qaseio/src/qaseio/models/milestone_create.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr, field_validator -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class MilestoneCreate(BaseModel): - """ - MilestoneCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - description: Optional[StrictStr] = None - status: Optional[StrictStr] = None - due_date: Optional[StrictInt] = Field(default=None, description="unix timestamp") - __properties: ClassVar[List[str]] = ["title", "description", "status", "due_date"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('completed', 'active'): - raise ValueError("must be one of enum values ('completed', 'active')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MilestoneCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of MilestoneCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "status": obj.get("status"), - "due_date": obj.get("due_date") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone_list_response.py b/qaseio/src/qaseio/models/milestone_list_response.py deleted file mode 100644 index f51b1553..00000000 --- a/qaseio/src/qaseio/models/milestone_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class MilestoneListResponse(BaseModel): - """ - MilestoneListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[MilestoneListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MilestoneListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of MilestoneListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": MilestoneListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone_list_response_all_of_result.py b/qaseio/src/qaseio/models/milestone_list_response_all_of_result.py deleted file mode 100644 index d75436cb..00000000 --- a/qaseio/src/qaseio/models/milestone_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.milestone import Milestone -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class MilestoneListResponseAllOfResult(BaseModel): - """ - MilestoneListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Milestone]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MilestoneListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of MilestoneListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Milestone.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone_response.py b/qaseio/src/qaseio/models/milestone_response.py deleted file mode 100644 index 9244c76f..00000000 --- a/qaseio/src/qaseio/models/milestone_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.milestone import Milestone -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class MilestoneResponse(BaseModel): - """ - MilestoneResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Milestone] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MilestoneResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of MilestoneResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Milestone.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/milestone_update.py b/qaseio/src/qaseio/models/milestone_update.py deleted file mode 100644 index 9f30b8ef..00000000 --- a/qaseio/src/qaseio/models/milestone_update.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr, field_validator -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class MilestoneUpdate(BaseModel): - """ - MilestoneUpdate - """ # noqa: E501 - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - status: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description", "status"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('completed', 'active'): - raise ValueError("must be one of enum values ('completed', 'active')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of MilestoneUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of MilestoneUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "status": obj.get("status") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan.py b/qaseio/src/qaseio/models/plan.py deleted file mode 100644 index b414092f..00000000 --- a/qaseio/src/qaseio/models/plan.py +++ /dev/null @@ -1,109 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Plan(BaseModel): - """ - Plan - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - cases_count: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - __properties: ClassVar[List[str]] = ["id", "title", "description", "cases_count", "created_at", "updated_at", "created", "updated"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Plan from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Plan from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "cases_count": obj.get("cases_count"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "created": obj.get("created"), - "updated": obj.get("updated") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_create.py b/qaseio/src/qaseio/models/plan_create.py deleted file mode 100644 index 3beff866..00000000 --- a/qaseio/src/qaseio/models/plan_create.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanCreate(BaseModel): - """ - PlanCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - description: Optional[StrictStr] = None - cases: List[StrictInt] - __properties: ClassVar[List[str]] = ["title", "description", "cases"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "cases": obj.get("cases") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_detailed.py b/qaseio/src/qaseio/models/plan_detailed.py deleted file mode 100644 index 51e58a8c..00000000 --- a/qaseio/src/qaseio/models/plan_detailed.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanDetailed(BaseModel): - """ - PlanDetailed - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - cases_count: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - average_time: Optional[Union[StrictFloat, StrictInt]] = None - cases: Optional[List[PlanDetailedAllOfCases]] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "cases_count", "created_at", "updated_at", "created", "updated", "average_time", "cases"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanDetailed from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in cases (list) - _items = [] - if self.cases: - for _item in self.cases: - if _item: - _items.append(_item.to_dict()) - _dict['cases'] = _items - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanDetailed from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "cases_count": obj.get("cases_count"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "average_time": obj.get("average_time"), - "cases": [PlanDetailedAllOfCases.from_dict(_item) for _item in obj.get("cases")] if obj.get("cases") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_detailed_all_of_cases.py b/qaseio/src/qaseio/models/plan_detailed_all_of_cases.py deleted file mode 100644 index f62a4b57..00000000 --- a/qaseio/src/qaseio/models/plan_detailed_all_of_cases.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanDetailedAllOfCases(BaseModel): - """ - PlanDetailedAllOfCases - """ # noqa: E501 - case_id: Optional[StrictInt] = None - assignee_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["case_id", "assignee_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanDetailedAllOfCases from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if assignee_id (nullable) is None - # and model_fields_set contains the field - if self.assignee_id is None and "assignee_id" in self.model_fields_set: - _dict['assignee_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanDetailedAllOfCases from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "case_id": obj.get("case_id"), - "assignee_id": obj.get("assignee_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_list_response.py b/qaseio/src/qaseio/models/plan_list_response.py deleted file mode 100644 index c987d4f0..00000000 --- a/qaseio/src/qaseio/models/plan_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.plan_list_response_all_of_result import PlanListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanListResponse(BaseModel): - """ - PlanListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[PlanListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": PlanListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_list_response_all_of_result.py b/qaseio/src/qaseio/models/plan_list_response_all_of_result.py deleted file mode 100644 index 1cc97575..00000000 --- a/qaseio/src/qaseio/models/plan_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.plan import Plan -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanListResponseAllOfResult(BaseModel): - """ - PlanListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Plan]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Plan.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_query.py b/qaseio/src/qaseio/models/plan_query.py deleted file mode 100644 index c1e608ef..00000000 --- a/qaseio/src/qaseio/models/plan_query.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanQuery(BaseModel): - """ - PlanQuery - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - cases_count: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "cases_count", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanQuery from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "cases_count": obj.get("cases_count"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_response.py b/qaseio/src/qaseio/models/plan_response.py deleted file mode 100644 index 8ab1a028..00000000 --- a/qaseio/src/qaseio/models/plan_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.plan_detailed import PlanDetailed -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanResponse(BaseModel): - """ - PlanResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[PlanDetailed] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": PlanDetailed.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/plan_update.py b/qaseio/src/qaseio/models/plan_update.py deleted file mode 100644 index b1435a6d..00000000 --- a/qaseio/src/qaseio/models/plan_update.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class PlanUpdate(BaseModel): - """ - PlanUpdate - """ # noqa: E501 - title: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - description: Optional[StrictStr] = None - cases: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["title", "description", "cases"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of PlanUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of PlanUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "cases": obj.get("cases") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project.py b/qaseio/src/qaseio/models/project.py deleted file mode 100644 index 27f1ed3f..00000000 --- a/qaseio/src/qaseio/models/project.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from qaseio.models.project_counts import ProjectCounts -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Project(BaseModel): - """ - Project - """ # noqa: E501 - title: Optional[StrictStr] = None - code: Optional[StrictStr] = None - counts: Optional[ProjectCounts] = None - __properties: ClassVar[List[str]] = ["title", "code", "counts"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Project from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of counts - if self.counts: - _dict['counts'] = self.counts.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Project from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "code": obj.get("code"), - "counts": ProjectCounts.from_dict(obj.get("counts")) if obj.get("counts") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_access.py b/qaseio/src/qaseio/models/project_access.py deleted file mode 100644 index 59274fb9..00000000 --- a/qaseio/src/qaseio/models/project_access.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectAccess(BaseModel): - """ - ProjectAccess - """ # noqa: E501 - member_id: Optional[StrictInt] = Field(default=None, description="Team member id title.") - __properties: ClassVar[List[str]] = ["member_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectAccess from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectAccess from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "member_id": obj.get("member_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_code_response.py b/qaseio/src/qaseio/models/project_code_response.py deleted file mode 100644 index 91df09ab..00000000 --- a/qaseio/src/qaseio/models/project_code_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCodeResponse(BaseModel): - """ - ProjectCodeResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[ProjectCodeResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCodeResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCodeResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": ProjectCodeResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_code_response_all_of_result.py b/qaseio/src/qaseio/models/project_code_response_all_of_result.py deleted file mode 100644 index d5ebcd35..00000000 --- a/qaseio/src/qaseio/models/project_code_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCodeResponseAllOfResult(BaseModel): - """ - ProjectCodeResponseAllOfResult - """ # noqa: E501 - code: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["code"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCodeResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCodeResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "code": obj.get("code") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_counts.py b/qaseio/src/qaseio/models/project_counts.py deleted file mode 100644 index f6a69fd1..00000000 --- a/qaseio/src/qaseio/models/project_counts.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.project_counts_defects import ProjectCountsDefects -from qaseio.models.project_counts_runs import ProjectCountsRuns -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCounts(BaseModel): - """ - ProjectCounts - """ # noqa: E501 - cases: Optional[StrictInt] = None - suites: Optional[StrictInt] = None - milestones: Optional[StrictInt] = None - runs: Optional[ProjectCountsRuns] = None - defects: Optional[ProjectCountsDefects] = None - __properties: ClassVar[List[str]] = ["cases", "suites", "milestones", "runs", "defects"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCounts from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of runs - if self.runs: - _dict['runs'] = self.runs.to_dict() - # override the default output from pydantic by calling `to_dict()` of defects - if self.defects: - _dict['defects'] = self.defects.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCounts from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "cases": obj.get("cases"), - "suites": obj.get("suites"), - "milestones": obj.get("milestones"), - "runs": ProjectCountsRuns.from_dict(obj.get("runs")) if obj.get("runs") is not None else None, - "defects": ProjectCountsDefects.from_dict(obj.get("defects")) if obj.get("defects") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_counts_defects.py b/qaseio/src/qaseio/models/project_counts_defects.py deleted file mode 100644 index 1945d274..00000000 --- a/qaseio/src/qaseio/models/project_counts_defects.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCountsDefects(BaseModel): - """ - ProjectCountsDefects - """ # noqa: E501 - total: Optional[StrictInt] = None - open: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["total", "open"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCountsDefects from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCountsDefects from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "open": obj.get("open") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_counts_runs.py b/qaseio/src/qaseio/models/project_counts_runs.py deleted file mode 100644 index 795ee537..00000000 --- a/qaseio/src/qaseio/models/project_counts_runs.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCountsRuns(BaseModel): - """ - ProjectCountsRuns - """ # noqa: E501 - total: Optional[StrictInt] = None - active: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["total", "active"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCountsRuns from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCountsRuns from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "active": obj.get("active") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_create.py b/qaseio/src/qaseio/models/project_create.py deleted file mode 100644 index 1acbad95..00000000 --- a/qaseio/src/qaseio/models/project_create.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API v1 - - Qase TestOps API v1 Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr, field_validator -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectCreate(BaseModel): - """ - ProjectCreate - """ # noqa: E501 - title: StrictStr = Field(description="Project title.") - code: Annotated[str, Field(strict=True)] = Field(description="Project code. Unique for team. Digits and special characters are not allowed.") - description: Optional[StrictStr] = Field(default=None, description="Project description.") - access: Optional[StrictStr] = None - group: Optional[StrictStr] = Field(default=None, description="Team group hash. Required if access param is set to group.") - settings: Optional[Dict[str, Any]] = Field(default=None, description="Additional project settings.") - __properties: ClassVar[List[str]] = ["title", "code", "description", "access", "group", "settings"] - - @field_validator('code') - def code_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^[a-zA-Z]{2,10}$", value): - raise ValueError(r"must validate the regular expression /^[a-zA-Z]{2,10}$/") - return value - - @field_validator('access') - def access_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('all', 'group', 'none'): - raise ValueError("must be one of enum values ('all', 'group', 'none')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "code": obj.get("code"), - "description": obj.get("description"), - "access": obj.get("access"), - "group": obj.get("group"), - "settings": obj.get("settings") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_list_response.py b/qaseio/src/qaseio/models/project_list_response.py deleted file mode 100644 index 2c428908..00000000 --- a/qaseio/src/qaseio/models/project_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.project_list_response_all_of_result import ProjectListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectListResponse(BaseModel): - """ - ProjectListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[ProjectListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": ProjectListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_list_response_all_of_result.py b/qaseio/src/qaseio/models/project_list_response_all_of_result.py deleted file mode 100644 index 45bfb683..00000000 --- a/qaseio/src/qaseio/models/project_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.project import Project -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectListResponseAllOfResult(BaseModel): - """ - ProjectListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Project]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Project.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/project_response.py b/qaseio/src/qaseio/models/project_response.py deleted file mode 100644 index c46b5bba..00000000 --- a/qaseio/src/qaseio/models/project_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.project import Project -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ProjectResponse(BaseModel): - """ - ProjectResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Project] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ProjectResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ProjectResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Project.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/qql_defect.py b/qaseio/src/qaseio/models/qql_defect.py deleted file mode 100644 index 2d710ba5..00000000 --- a/qaseio/src/qaseio/models/qql_defect.py +++ /dev/null @@ -1,152 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.tag_value import TagValue -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class QqlDefect(BaseModel): - """ - QqlDefect - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - actual_result: Optional[StrictStr] = None - severity: Optional[StrictStr] = None - status: Optional[StrictStr] = None - milestone_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - resolved: Optional[datetime] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - external_data: Optional[StrictStr] = None - tags: Optional[List[TagValue]] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "actual_result", "severity", "status", "milestone_id", "custom_fields", "attachments", "resolved", "member_id", "author_id", "external_data", "tags", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of QqlDefect from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if resolved (nullable) is None - # and model_fields_set contains the field - if self.resolved is None and "resolved" in self.model_fields_set: - _dict['resolved'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of QqlDefect from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "actual_result": obj.get("actual_result"), - "severity": obj.get("severity"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "resolved": obj.get("resolved"), - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "external_data": obj.get("external_data"), - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/qql_plan.py b/qaseio/src/qaseio/models/qql_plan.py deleted file mode 100644 index 6dc5c084..00000000 --- a/qaseio/src/qaseio/models/qql_plan.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class QqlPlan(BaseModel): - """ - QqlPlan - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - cases_count: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "cases_count", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of QqlPlan from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of QqlPlan from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "cases_count": obj.get("cases_count"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/qql_test_case.py b/qaseio/src/qaseio/models/qql_test_case.py deleted file mode 100644 index d5a41547..00000000 --- a/qaseio/src/qaseio/models/qql_test_case.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.tag_value import TagValue -from qaseio.models.test_case_params import TestCaseParams -from qaseio.models.test_step import TestStep -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class QqlTestCase(BaseModel): - """ - QqlTestCase - """ # noqa: E501 - id: Optional[StrictInt] = None - position: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - steps_type: Optional[StrictStr] = None - steps: Optional[List[TestStep]] = None - params: Optional[TestCaseParams] = None - tags: Optional[List[TagValue]] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "position", "title", "description", "preconditions", "postconditions", "severity", "priority", "type", "layer", "is_flaky", "behavior", "automation", "status", "milestone_id", "suite_id", "custom_fields", "attachments", "steps_type", "steps", "params", "tags", "member_id", "author_id", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of QqlTestCase from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # override the default output from pydantic by calling `to_dict()` of params - if self.params: - _dict['params'] = self.params.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if preconditions (nullable) is None - # and model_fields_set contains the field - if self.preconditions is None and "preconditions" in self.model_fields_set: - _dict['preconditions'] = None - - # set to None if postconditions (nullable) is None - # and model_fields_set contains the field - if self.postconditions is None and "postconditions" in self.model_fields_set: - _dict['postconditions'] = None - - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if suite_id (nullable) is None - # and model_fields_set contains the field - if self.suite_id is None and "suite_id" in self.model_fields_set: - _dict['suite_id'] = None - - # set to None if steps_type (nullable) is None - # and model_fields_set contains the field - if self.steps_type is None and "steps_type" in self.model_fields_set: - _dict['steps_type'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of QqlTestCase from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "position": obj.get("position"), - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "behavior": obj.get("behavior"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "suite_id": obj.get("suite_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "steps_type": obj.get("steps_type"), - "steps": [TestStep.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "params": TestCaseParams.from_dict(obj.get("params")) if obj.get("params") is not None else None, - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/requirement.py b/qaseio/src/qaseio/models/requirement.py deleted file mode 100644 index e4957dba..00000000 --- a/qaseio/src/qaseio/models/requirement.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr, field_validator -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Requirement(BaseModel): - """ - Requirement - """ # noqa: E501 - id: Optional[StrictInt] = None - parent_id: Optional[StrictInt] = None - member_id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - status: Optional[StrictStr] = None - type: Optional[StrictStr] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "parent_id", "member_id", "title", "description", "status", "type", "created_at", "updated_at"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('valid', 'draft', 'review', 'rework', 'finish', 'implemented', 'not-testable', 'obsolete'): - raise ValueError("must be one of enum values ('valid', 'draft', 'review', 'rework', 'finish', 'implemented', 'not-testable', 'obsolete')") - return value - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('epic', 'user-story', 'feature'): - raise ValueError("must be one of enum values ('epic', 'user-story', 'feature')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Requirement from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if parent_id (nullable) is None - # and model_fields_set contains the field - if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict['parent_id'] = None - - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if updated_at (nullable) is None - # and model_fields_set contains the field - if self.updated_at is None and "updated_at" in self.model_fields_set: - _dict['updated_at'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Requirement from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "parent_id": obj.get("parent_id"), - "member_id": obj.get("member_id"), - "title": obj.get("title"), - "description": obj.get("description"), - "status": obj.get("status"), - "type": obj.get("type"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/response.py b/qaseio/src/qaseio/models/response.py deleted file mode 100644 index 7024623b..00000000 --- a/qaseio/src/qaseio/models/response.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Response(BaseModel): - """ - Response - """ # noqa: E501 - status: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["status"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result.py b/qaseio/src/qaseio/models/result.py deleted file mode 100644 index 89294990..00000000 --- a/qaseio/src/qaseio/models/result.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from qaseio.models.attachment import Attachment -from qaseio.models.test_step_result import TestStepResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Result(BaseModel): - """ - Result - """ # noqa: E501 - hash: Optional[StrictStr] = None - comment: Optional[StrictStr] = None - stacktrace: Optional[StrictStr] = None - run_id: Optional[StrictInt] = None - case_id: Optional[StrictInt] = None - steps: Optional[List[TestStepResult]] = None - status: Optional[StrictStr] = None - is_api_result: Optional[StrictBool] = None - time_spent_ms: Optional[StrictInt] = None - end_time: Optional[datetime] = None - attachments: Optional[List[Attachment]] = None - __properties: ClassVar[List[str]] = ["hash", "comment", "stacktrace", "run_id", "case_id", "steps", "status", "is_api_result", "time_spent_ms", "end_time", "attachments"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Result from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # set to None if comment (nullable) is None - # and model_fields_set contains the field - if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None - - # set to None if stacktrace (nullable) is None - # and model_fields_set contains the field - if self.stacktrace is None and "stacktrace" in self.model_fields_set: - _dict['stacktrace'] = None - - # set to None if steps (nullable) is None - # and model_fields_set contains the field - if self.steps is None and "steps" in self.model_fields_set: - _dict['steps'] = None - - # set to None if end_time (nullable) is None - # and model_fields_set contains the field - if self.end_time is None and "end_time" in self.model_fields_set: - _dict['end_time'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Result from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "comment": obj.get("comment"), - "stacktrace": obj.get("stacktrace"), - "run_id": obj.get("run_id"), - "case_id": obj.get("case_id"), - "steps": [TestStepResult.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "status": obj.get("status"), - "is_api_result": obj.get("is_api_result"), - "time_spent_ms": obj.get("time_spent_ms"), - "end_time": obj.get("end_time"), - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_create.py b/qaseio/src/qaseio/models/result_create.py deleted file mode 100644 index baab03a2..00000000 --- a/qaseio/src/qaseio/models/result_create.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.result_create_case import ResultCreateCase -from qaseio.models.test_step_result_create import TestStepResultCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultCreate(BaseModel): - """ - ResultCreate - """ # noqa: E501 - case_id: Optional[StrictInt] = None - case: Optional[ResultCreateCase] = None - status: StrictStr = Field(description="Can have the following values `passed`, `failed`, `blocked`, `skipped`, `invalid` + custom statuses") - start_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - time: Optional[Annotated[int, Field(le=31536000, strict=True, ge=0)]] = None - time_ms: Optional[Annotated[int, Field(le=31536000000, strict=True, ge=0)]] = None - defect: Optional[StrictBool] = None - attachments: Optional[List[StrictStr]] = None - stacktrace: Optional[StrictStr] = None - comment: Optional[StrictStr] = None - param: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of parameters (name => value)") - steps: Optional[List[TestStepResultCreate]] = None - author_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["case_id", "case", "status", "start_time", "time", "time_ms", "defect", "attachments", "stacktrace", "comment", "param", "steps", "author_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of case - if self.case: - _dict['case'] = self.case.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # set to None if start_time (nullable) is None - # and model_fields_set contains the field - if self.start_time is None and "start_time" in self.model_fields_set: - _dict['start_time'] = None - - # set to None if time (nullable) is None - # and model_fields_set contains the field - if self.time is None and "time" in self.model_fields_set: - _dict['time'] = None - - # set to None if time_ms (nullable) is None - # and model_fields_set contains the field - if self.time_ms is None and "time_ms" in self.model_fields_set: - _dict['time_ms'] = None - - # set to None if defect (nullable) is None - # and model_fields_set contains the field - if self.defect is None and "defect" in self.model_fields_set: - _dict['defect'] = None - - # set to None if attachments (nullable) is None - # and model_fields_set contains the field - if self.attachments is None and "attachments" in self.model_fields_set: - _dict['attachments'] = None - - # set to None if stacktrace (nullable) is None - # and model_fields_set contains the field - if self.stacktrace is None and "stacktrace" in self.model_fields_set: - _dict['stacktrace'] = None - - # set to None if comment (nullable) is None - # and model_fields_set contains the field - if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None - - # set to None if param (nullable) is None - # and model_fields_set contains the field - if self.param is None and "param" in self.model_fields_set: - _dict['param'] = None - - # set to None if steps (nullable) is None - # and model_fields_set contains the field - if self.steps is None and "steps" in self.model_fields_set: - _dict['steps'] = None - - # set to None if author_id (nullable) is None - # and model_fields_set contains the field - if self.author_id is None and "author_id" in self.model_fields_set: - _dict['author_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "case_id": obj.get("case_id"), - "case": ResultCreateCase.from_dict(obj.get("case")) if obj.get("case") is not None else None, - "status": obj.get("status"), - "start_time": obj.get("start_time"), - "time": obj.get("time"), - "time_ms": obj.get("time_ms"), - "defect": obj.get("defect"), - "attachments": obj.get("attachments"), - "stacktrace": obj.get("stacktrace"), - "comment": obj.get("comment"), - "param": obj.get("param"), - "steps": [TestStepResultCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "author_id": obj.get("author_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_create_bulk.py b/qaseio/src/qaseio/models/result_create_bulk.py deleted file mode 100644 index d135713a..00000000 --- a/qaseio/src/qaseio/models/result_create_bulk.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.result_create import ResultCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultCreateBulk(BaseModel): - """ - ResultCreateBulk - """ # noqa: E501 - results: Annotated[List[ResultCreate], Field(max_length=2000)] - __properties: ClassVar[List[str]] = ["results"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultCreateBulk from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item in self.results: - if _item: - _items.append(_item.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultCreateBulk from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [ResultCreate.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_create_case.py b/qaseio/src/qaseio/models/result_create_case.py deleted file mode 100644 index 0ed53131..00000000 --- a/qaseio/src/qaseio/models/result_create_case.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultCreateCase(BaseModel): - """ - Could be used instead of `case_id`. - """ # noqa: E501 - title: Optional[StrictStr] = None - suite_title: Optional[StrictStr] = Field(default=None, description="Nested suites should be separated with `TAB` symbol.") - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - layer: Optional[StrictStr] = None - severity: Optional[StrictStr] = None - priority: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "suite_title", "description", "preconditions", "postconditions", "layer", "severity", "priority"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultCreateCase from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if suite_title (nullable) is None - # and model_fields_set contains the field - if self.suite_title is None and "suite_title" in self.model_fields_set: - _dict['suite_title'] = None - - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if preconditions (nullable) is None - # and model_fields_set contains the field - if self.preconditions is None and "preconditions" in self.model_fields_set: - _dict['preconditions'] = None - - # set to None if postconditions (nullable) is None - # and model_fields_set contains the field - if self.postconditions is None and "postconditions" in self.model_fields_set: - _dict['postconditions'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultCreateCase from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "suite_title": obj.get("suite_title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "layer": obj.get("layer"), - "severity": obj.get("severity"), - "priority": obj.get("priority") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_create_response.py b/qaseio/src/qaseio/models/result_create_response.py deleted file mode 100644 index 3582673b..00000000 --- a/qaseio/src/qaseio/models/result_create_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultCreateResponse(BaseModel): - """ - ResultCreateResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[ResultCreateResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultCreateResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultCreateResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": ResultCreateResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_create_response_all_of_result.py b/qaseio/src/qaseio/models/result_create_response_all_of_result.py deleted file mode 100644 index f37b8df1..00000000 --- a/qaseio/src/qaseio/models/result_create_response_all_of_result.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultCreateResponseAllOfResult(BaseModel): - """ - ResultCreateResponseAllOfResult - """ # noqa: E501 - case_id: Optional[StrictInt] = None - hash: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["case_id", "hash"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultCreateResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultCreateResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "case_id": obj.get("case_id"), - "hash": obj.get("hash") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_list_response.py b/qaseio/src/qaseio/models/result_list_response.py deleted file mode 100644 index c3820c37..00000000 --- a/qaseio/src/qaseio/models/result_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.result_list_response_all_of_result import ResultListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultListResponse(BaseModel): - """ - ResultListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[ResultListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": ResultListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_list_response_all_of_result.py b/qaseio/src/qaseio/models/result_list_response_all_of_result.py deleted file mode 100644 index 0483435b..00000000 --- a/qaseio/src/qaseio/models/result_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.result import Result -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultListResponseAllOfResult(BaseModel): - """ - ResultListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Result]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Result.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_response.py b/qaseio/src/qaseio/models/result_response.py deleted file mode 100644 index 212d496e..00000000 --- a/qaseio/src/qaseio/models/result_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.result import Result -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultResponse(BaseModel): - """ - ResultResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Result] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Result.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/result_update.py b/qaseio/src/qaseio/models/result_update.py deleted file mode 100644 index b1bca574..00000000 --- a/qaseio/src/qaseio/models/result_update.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictStr, field_validator -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.test_step_result_create import TestStepResultCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultUpdate(BaseModel): - """ - ResultUpdate - """ # noqa: E501 - status: Optional[StrictStr] = None - time_ms: Optional[Annotated[int, Field(le=31536000000, strict=True, ge=0)]] = None - defect: Optional[StrictBool] = None - attachments: Optional[List[StrictStr]] = None - stacktrace: Optional[StrictStr] = None - comment: Optional[StrictStr] = None - steps: Optional[List[TestStepResultCreate]] = None - __properties: ClassVar[List[str]] = ["status", "time_ms", "defect", "attachments", "stacktrace", "comment", "steps"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in ('in_progress', 'passed', 'failed', 'blocked', 'skipped'): - raise ValueError("must be one of enum values ('in_progress', 'passed', 'failed', 'blocked', 'skipped')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # set to None if time_ms (nullable) is None - # and model_fields_set contains the field - if self.time_ms is None and "time_ms" in self.model_fields_set: - _dict['time_ms'] = None - - # set to None if defect (nullable) is None - # and model_fields_set contains the field - if self.defect is None and "defect" in self.model_fields_set: - _dict['defect'] = None - - # set to None if attachments (nullable) is None - # and model_fields_set contains the field - if self.attachments is None and "attachments" in self.model_fields_set: - _dict['attachments'] = None - - # set to None if stacktrace (nullable) is None - # and model_fields_set contains the field - if self.stacktrace is None and "stacktrace" in self.model_fields_set: - _dict['stacktrace'] = None - - # set to None if comment (nullable) is None - # and model_fields_set contains the field - if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None - - # set to None if steps (nullable) is None - # and model_fields_set contains the field - if self.steps is None and "steps" in self.model_fields_set: - _dict['steps'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "time_ms": obj.get("time_ms"), - "defect": obj.get("defect"), - "attachments": obj.get("attachments"), - "stacktrace": obj.get("stacktrace"), - "comment": obj.get("comment"), - "steps": [TestStepResultCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/resultcreate_bulk.py b/qaseio/src/qaseio/models/resultcreate_bulk.py deleted file mode 100644 index 10414334..00000000 --- a/qaseio/src/qaseio/models/resultcreate_bulk.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.result_create import ResultCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class ResultcreateBulk(BaseModel): - """ - ResultcreateBulk - """ # noqa: E501 - results: Annotated[List[ResultCreate], Field(max_length=2000)] - __properties: ClassVar[List[str]] = ["results"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of ResultcreateBulk from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in results (list) - _items = [] - if self.results: - for _item in self.results: - if _item: - _items.append(_item.to_dict()) - _dict['results'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of ResultcreateBulk from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "results": [ResultCreate.from_dict(_item) for _item in obj.get("results")] if obj.get("results") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run.py b/qaseio/src/qaseio/models/run.py deleted file mode 100644 index 3c24746a..00000000 --- a/qaseio/src/qaseio/models/run.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.run_environment import RunEnvironment -from qaseio.models.run_milestone import RunMilestone -from qaseio.models.run_stats import RunStats -from qaseio.models.tag_value import TagValue -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Run(BaseModel): - """ - Run - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - status: Optional[StrictInt] = None - status_text: Optional[StrictStr] = None - start_time: Optional[datetime] = None - end_time: Optional[datetime] = None - public: Optional[StrictBool] = None - stats: Optional[RunStats] = None - time_spent: Optional[StrictInt] = Field(default=None, description="Time in ms.") - environment: Optional[RunEnvironment] = None - milestone: Optional[RunMilestone] = None - custom_fields: Optional[List[CustomFieldValue]] = None - tags: Optional[List[TagValue]] = None - cases: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "status", "status_text", "start_time", "end_time", "public", "stats", "time_spent", "environment", "milestone", "custom_fields", "tags", "cases"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Run from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of stats - if self.stats: - _dict['stats'] = self.stats.to_dict() - # override the default output from pydantic by calling `to_dict()` of environment - if self.environment: - _dict['environment'] = self.environment.to_dict() - # override the default output from pydantic by calling `to_dict()` of milestone - if self.milestone: - _dict['milestone'] = self.milestone.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if start_time (nullable) is None - # and model_fields_set contains the field - if self.start_time is None and "start_time" in self.model_fields_set: - _dict['start_time'] = None - - # set to None if end_time (nullable) is None - # and model_fields_set contains the field - if self.end_time is None and "end_time" in self.model_fields_set: - _dict['end_time'] = None - - # set to None if environment (nullable) is None - # and model_fields_set contains the field - if self.environment is None and "environment" in self.model_fields_set: - _dict['environment'] = None - - # set to None if milestone (nullable) is None - # and model_fields_set contains the field - if self.milestone is None and "milestone" in self.model_fields_set: - _dict['milestone'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Run from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "status": obj.get("status"), - "status_text": obj.get("status_text"), - "start_time": obj.get("start_time"), - "end_time": obj.get("end_time"), - "public": obj.get("public"), - "stats": RunStats.from_dict(obj.get("stats")) if obj.get("stats") is not None else None, - "time_spent": obj.get("time_spent"), - "environment": RunEnvironment.from_dict(obj.get("environment")) if obj.get("environment") is not None else None, - "milestone": RunMilestone.from_dict(obj.get("milestone")) if obj.get("milestone") is not None else None, - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "cases": obj.get("cases") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_create.py b/qaseio/src/qaseio/models/run_create.py deleted file mode 100644 index cc359de8..00000000 --- a/qaseio/src/qaseio/models/run_create.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunCreate(BaseModel): - """ - RunCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - description: Optional[Annotated[str, Field(strict=True, max_length=10000)]] = None - include_all_cases: Optional[StrictBool] = None - cases: Optional[List[StrictInt]] = None - is_autotest: Optional[StrictBool] = None - environment_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None - milestone_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None - plan_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None - author_id: Optional[Annotated[int, Field(strict=True, ge=1)]] = None - tags: Optional[List[StrictStr]] = None - configurations: Optional[List[StrictInt]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - start_time: Optional[StrictStr] = None - end_time: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description", "include_all_cases", "cases", "is_autotest", "environment_id", "milestone_id", "plan_id", "author_id", "tags", "configurations", "custom_field", "start_time", "end_time"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "include_all_cases": obj.get("include_all_cases"), - "cases": obj.get("cases"), - "is_autotest": obj.get("is_autotest"), - "environment_id": obj.get("environment_id"), - "milestone_id": obj.get("milestone_id"), - "plan_id": obj.get("plan_id"), - "author_id": obj.get("author_id"), - "tags": obj.get("tags"), - "configurations": obj.get("configurations"), - "custom_field": obj.get("custom_field"), - "start_time": obj.get("start_time"), - "end_time": obj.get("end_time") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_environment.py b/qaseio/src/qaseio/models/run_environment.py deleted file mode 100644 index 3cc6127d..00000000 --- a/qaseio/src/qaseio/models/run_environment.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunEnvironment(BaseModel): - """ - RunEnvironment - """ # noqa: E501 - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - slug: Optional[StrictStr] = None - host: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description", "slug", "host"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunEnvironment from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunEnvironment from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "slug": obj.get("slug"), - "host": obj.get("host") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_list_response.py b/qaseio/src/qaseio/models/run_list_response.py deleted file mode 100644 index 81e0151f..00000000 --- a/qaseio/src/qaseio/models/run_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.run_list_response_all_of_result import RunListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunListResponse(BaseModel): - """ - RunListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[RunListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": RunListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_list_response_all_of_result.py b/qaseio/src/qaseio/models/run_list_response_all_of_result.py deleted file mode 100644 index d040c81d..00000000 --- a/qaseio/src/qaseio/models/run_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.run import Run -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunListResponseAllOfResult(BaseModel): - """ - RunListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Run]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Run.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_milestone.py b/qaseio/src/qaseio/models/run_milestone.py deleted file mode 100644 index bfd206ac..00000000 --- a/qaseio/src/qaseio/models/run_milestone.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunMilestone(BaseModel): - """ - RunMilestone - """ # noqa: E501 - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["title", "description"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunMilestone from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunMilestone from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_public.py b/qaseio/src/qaseio/models/run_public.py deleted file mode 100644 index a7910c5d..00000000 --- a/qaseio/src/qaseio/models/run_public.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictBool -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunPublic(BaseModel): - """ - RunPublic - """ # noqa: E501 - status: StrictBool - __properties: ClassVar[List[str]] = ["status"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunPublic from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunPublic from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_public_response.py b/qaseio/src/qaseio/models/run_public_response.py deleted file mode 100644 index 2a6c5471..00000000 --- a/qaseio/src/qaseio/models/run_public_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.run_public_response_all_of_result import RunPublicResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunPublicResponse(BaseModel): - """ - RunPublicResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[RunPublicResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunPublicResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunPublicResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": RunPublicResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_public_response_all_of_result.py b/qaseio/src/qaseio/models/run_public_response_all_of_result.py deleted file mode 100644 index a6d68ce8..00000000 --- a/qaseio/src/qaseio/models/run_public_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunPublicResponseAllOfResult(BaseModel): - """ - RunPublicResponseAllOfResult - """ # noqa: E501 - url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["url"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunPublicResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunPublicResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "url": obj.get("url") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_response.py b/qaseio/src/qaseio/models/run_response.py deleted file mode 100644 index ac4bf1e4..00000000 --- a/qaseio/src/qaseio/models/run_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.run import Run -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunResponse(BaseModel): - """ - RunResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Run] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Run.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/run_stats.py b/qaseio/src/qaseio/models/run_stats.py deleted file mode 100644 index 1159b336..00000000 --- a/qaseio/src/qaseio/models/run_stats.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class RunStats(BaseModel): - """ - RunStats - """ # noqa: E501 - total: Optional[StrictInt] = None - untested: Optional[StrictInt] = None - passed: Optional[StrictInt] = None - failed: Optional[StrictInt] = None - blocked: Optional[StrictInt] = None - skipped: Optional[StrictInt] = None - retest: Optional[StrictInt] = None - in_progress: Optional[StrictInt] = None - invalid: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["total", "untested", "passed", "failed", "blocked", "skipped", "retest", "in_progress", "invalid"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of RunStats from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of RunStats from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "untested": obj.get("untested"), - "passed": obj.get("passed"), - "failed": obj.get("failed"), - "blocked": obj.get("blocked"), - "skipped": obj.get("skipped"), - "retest": obj.get("retest"), - "in_progress": obj.get("in_progress"), - "invalid": obj.get("invalid") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/search_response.py b/qaseio/src/qaseio/models/search_response.py deleted file mode 100644 index eacf7615..00000000 --- a/qaseio/src/qaseio/models/search_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.search_response_all_of_result import SearchResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SearchResponse(BaseModel): - """ - SearchResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[SearchResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SearchResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SearchResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": SearchResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/search_response_all_of_result.py b/qaseio/src/qaseio/models/search_response_all_of_result.py deleted file mode 100644 index 4b420dd1..00000000 --- a/qaseio/src/qaseio/models/search_response_all_of_result.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictInt -from qaseio.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SearchResponseAllOfResult(BaseModel): - """ - SearchResponseAllOfResult - """ # noqa: E501 - entities: List[SearchResponseAllOfResultEntities] - total: StrictInt - __properties: ClassVar[List[str]] = ["entities", "total"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SearchResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SearchResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "entities": [SearchResponseAllOfResultEntities.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None, - "total": obj.get("total") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/search_response_all_of_result_entities.py b/qaseio/src/qaseio/models/search_response_all_of_result_entities.py deleted file mode 100644 index c588810e..00000000 --- a/qaseio/src/qaseio/models/search_response_all_of_result_entities.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 - -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator -from qaseio.models.defect_query import DefectQuery -from qaseio.models.plan_query import PlanQuery -from qaseio.models.requirement import Requirement -from qaseio.models.result import Result -from qaseio.models.run import Run -from qaseio.models.test_case_query import TestCaseQuery -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal -from pydantic import StrictStr, Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -SEARCHRESPONSEALLOFRESULTENTITIES_ONE_OF_SCHEMAS = ["DefectQuery", "PlanQuery", "Requirement", "Result", "Run", "TestCaseQuery"] - -class SearchResponseAllOfResultEntities(BaseModel): - """ - SearchResponseAllOfResultEntities - """ - # data type: Run - oneof_schema_1_validator: Optional[Run] = None - # data type: Result - oneof_schema_2_validator: Optional[Result] = None - # data type: Requirement - oneof_schema_3_validator: Optional[Requirement] = None - # data type: TestCaseQuery - oneof_schema_4_validator: Optional[TestCaseQuery] = None - # data type: DefectQuery - oneof_schema_5_validator: Optional[DefectQuery] = None - # data type: PlanQuery - oneof_schema_6_validator: Optional[PlanQuery] = None - actual_instance: Optional[Union[DefectQuery, PlanQuery, Requirement, Result, Run, TestCaseQuery]] = None - one_of_schemas: List[str] = Literal["DefectQuery", "PlanQuery", "Requirement", "Result", "Run", "TestCaseQuery"] - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_oneof(cls, v): - instance = SearchResponseAllOfResultEntities.model_construct() - error_messages = [] - match = 0 - # validate data type: Run - if not isinstance(v, Run): - error_messages.append(f"Error! Input type `{type(v)}` is not `Run`") - else: - match += 1 - # validate data type: Result - if not isinstance(v, Result): - error_messages.append(f"Error! Input type `{type(v)}` is not `Result`") - else: - match += 1 - # validate data type: Requirement - if not isinstance(v, Requirement): - error_messages.append(f"Error! Input type `{type(v)}` is not `Requirement`") - else: - match += 1 - # validate data type: TestCaseQuery - if not isinstance(v, TestCaseQuery): - error_messages.append(f"Error! Input type `{type(v)}` is not `TestCaseQuery`") - else: - match += 1 - # validate data type: DefectQuery - if not isinstance(v, DefectQuery): - error_messages.append(f"Error! Input type `{type(v)}` is not `DefectQuery`") - else: - match += 1 - # validate data type: PlanQuery - if not isinstance(v, PlanQuery): - error_messages.append(f"Error! Input type `{type(v)}` is not `PlanQuery`") - else: - match += 1 - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in SearchResponseAllOfResultEntities with oneOf schemas: DefectQuery, PlanQuery, Requirement, Result, Run, TestCaseQuery. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when setting `actual_instance` in SearchResponseAllOfResultEntities with oneOf schemas: DefectQuery, PlanQuery, Requirement, Result, Run, TestCaseQuery. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: dict) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - match = 0 - - # deserialize data into Run - try: - instance.actual_instance = Run.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into Result - try: - instance.actual_instance = Result.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into Requirement - try: - instance.actual_instance = Requirement.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into TestCaseQuery - try: - instance.actual_instance = TestCaseQuery.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into DefectQuery - try: - instance.actual_instance = DefectQuery.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into PlanQuery - try: - instance.actual_instance = PlanQuery.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if match > 1: - # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into SearchResponseAllOfResultEntities with oneOf schemas: DefectQuery, PlanQuery, Requirement, Result, Run, TestCaseQuery. Details: " + ", ".join(error_messages)) - elif match == 0: - # no match - raise ValueError("No match found when deserializing the JSON string into SearchResponseAllOfResultEntities with oneOf schemas: DefectQuery, PlanQuery, Requirement, Result, Run, TestCaseQuery. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - to_json = getattr(self.actual_instance, "to_json", None) - if callable(to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Dict: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - to_dict = getattr(self.actual_instance, "to_dict", None) - if callable(to_dict): - return self.actual_instance.to_dict() - else: - # primitive type - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/qaseio/src/qaseio/models/shared_step.py b/qaseio/src/qaseio/models/shared_step.py deleted file mode 100644 index 1c1e2bd6..00000000 --- a/qaseio/src/qaseio/models/shared_step.py +++ /dev/null @@ -1,120 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.shared_step_content import SharedStepContent -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStep(BaseModel): - """ - SharedStep - """ # noqa: E501 - hash: Optional[StrictStr] = None - title: Optional[StrictStr] = None - action: Optional[StrictStr] = None - expected_result: Optional[StrictStr] = None - steps: Optional[List[SharedStepContent]] = None - data: Optional[StrictStr] = None - cases: Optional[List[StrictInt]] = None - cases_count: Optional[StrictInt] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["hash", "title", "action", "expected_result", "steps", "data", "cases", "cases_count", "created", "updated", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStep from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStep from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "title": obj.get("title"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "steps": [SharedStepContent.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "data": obj.get("data"), - "cases": obj.get("cases"), - "cases_count": obj.get("cases_count"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_content.py b/qaseio/src/qaseio/models/shared_step_content.py deleted file mode 100644 index d206ca38..00000000 --- a/qaseio/src/qaseio/models/shared_step_content.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from qaseio.models.attachment_hash import AttachmentHash -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepContent(BaseModel): - """ - SharedStepContent - """ # noqa: E501 - data: Optional[StrictStr] = None - hash: Optional[StrictStr] = None - action: Optional[StrictStr] = None - expected_result: Optional[StrictStr] = None - attachments: Optional[List[AttachmentHash]] = None - __properties: ClassVar[List[str]] = ["data", "hash", "action", "expected_result", "attachments"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepContent from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepContent from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "data": obj.get("data"), - "hash": obj.get("hash"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "attachments": [AttachmentHash.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_content_create.py b/qaseio/src/qaseio/models/shared_step_content_create.py deleted file mode 100644 index cf193a66..00000000 --- a/qaseio/src/qaseio/models/shared_step_content_create.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepContentCreate(BaseModel): - """ - SharedStepContentCreate - """ # noqa: E501 - hash: Optional[StrictStr] = None - action: StrictStr - expected_result: Optional[StrictStr] = None - data: Optional[StrictStr] = None - attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") - __properties: ClassVar[List[str]] = ["hash", "action", "expected_result", "data", "attachments"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepContentCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepContentCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "attachments": obj.get("attachments") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_create.py b/qaseio/src/qaseio/models/shared_step_create.py deleted file mode 100644 index 5b654bef..00000000 --- a/qaseio/src/qaseio/models/shared_step_create.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.shared_step_content_create import SharedStepContentCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepCreate(BaseModel): - """ - SharedStepCreate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - action: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - expected_result: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - data: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - steps: Optional[List[SharedStepContentCreate]] = None - __properties: ClassVar[List[str]] = ["title", "action", "expected_result", "data", "steps"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "steps": [SharedStepContentCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_list_response.py b/qaseio/src/qaseio/models/shared_step_list_response.py deleted file mode 100644 index a299b310..00000000 --- a/qaseio/src/qaseio/models/shared_step_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepListResponse(BaseModel): - """ - SharedStepListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[SharedStepListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": SharedStepListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_list_response_all_of_result.py b/qaseio/src/qaseio/models/shared_step_list_response_all_of_result.py deleted file mode 100644 index 42e1e71f..00000000 --- a/qaseio/src/qaseio/models/shared_step_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.shared_step import SharedStep -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepListResponseAllOfResult(BaseModel): - """ - SharedStepListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[SharedStep]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [SharedStep.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_response.py b/qaseio/src/qaseio/models/shared_step_response.py deleted file mode 100644 index 7341b945..00000000 --- a/qaseio/src/qaseio/models/shared_step_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.shared_step import SharedStep -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepResponse(BaseModel): - """ - SharedStepResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[SharedStep] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": SharedStep.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/shared_step_update.py b/qaseio/src/qaseio/models/shared_step_update.py deleted file mode 100644 index 4d3a9ede..00000000 --- a/qaseio/src/qaseio/models/shared_step_update.py +++ /dev/null @@ -1,107 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.shared_step_content_create import SharedStepContentCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SharedStepUpdate(BaseModel): - """ - SharedStepUpdate - """ # noqa: E501 - title: Annotated[str, Field(strict=True, max_length=255)] - action: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - expected_result: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - data: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `steps` property instead.") - steps: Optional[List[SharedStepContentCreate]] = None - __properties: ClassVar[List[str]] = ["title", "action", "expected_result", "data", "steps"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SharedStepUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SharedStepUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "steps": [SharedStepContentCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite.py b/qaseio/src/qaseio/models/suite.py deleted file mode 100644 index e2df5ef1..00000000 --- a/qaseio/src/qaseio/models/suite.py +++ /dev/null @@ -1,130 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class Suite(BaseModel): - """ - Suite - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - position: Optional[StrictInt] = None - cases_count: Optional[StrictInt] = None - parent_id: Optional[StrictInt] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "title", "description", "preconditions", "position", "cases_count", "parent_id", "created", "updated", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of Suite from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if preconditions (nullable) is None - # and model_fields_set contains the field - if self.preconditions is None and "preconditions" in self.model_fields_set: - _dict['preconditions'] = None - - # set to None if parent_id (nullable) is None - # and model_fields_set contains the field - if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict['parent_id'] = None - - # set to None if updated (nullable) is None - # and model_fields_set contains the field - if self.updated is None and "updated" in self.model_fields_set: - _dict['updated'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of Suite from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "position": obj.get("position"), - "cases_count": obj.get("cases_count"), - "parent_id": obj.get("parent_id"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_create.py b/qaseio/src/qaseio/models/suite_create.py deleted file mode 100644 index e168925f..00000000 --- a/qaseio/src/qaseio/models/suite_create.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteCreate(BaseModel): - """ - SuiteCreate - """ # noqa: E501 - title: StrictStr = Field(description="Test suite title.") - description: Optional[StrictStr] = Field(default=None, description="Test suite description.") - preconditions: Optional[StrictStr] = Field(default=None, description="Test suite preconditions") - parent_id: Optional[StrictInt] = Field(default=None, description="Parent suite ID") - __properties: ClassVar[List[str]] = ["title", "description", "preconditions", "parent_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if parent_id (nullable) is None - # and model_fields_set contains the field - if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict['parent_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "parent_id": obj.get("parent_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_delete.py b/qaseio/src/qaseio/models/suite_delete.py deleted file mode 100644 index 36c63977..00000000 --- a/qaseio/src/qaseio/models/suite_delete.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteDelete(BaseModel): - """ - SuiteDelete - """ # noqa: E501 - destination_id: Optional[StrictInt] = Field(default=None, description="If provided, child test cases would be moved to suite with such ID.") - __properties: ClassVar[List[str]] = ["destination_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteDelete from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteDelete from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "destination_id": obj.get("destination_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_list_response.py b/qaseio/src/qaseio/models/suite_list_response.py deleted file mode 100644 index b180c840..00000000 --- a/qaseio/src/qaseio/models/suite_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteListResponse(BaseModel): - """ - SuiteListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[SuiteListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": SuiteListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_list_response_all_of_result.py b/qaseio/src/qaseio/models/suite_list_response_all_of_result.py deleted file mode 100644 index 4237ea28..00000000 --- a/qaseio/src/qaseio/models/suite_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.suite import Suite -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteListResponseAllOfResult(BaseModel): - """ - SuiteListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[Suite]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [Suite.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_response.py b/qaseio/src/qaseio/models/suite_response.py deleted file mode 100644 index 2cebf479..00000000 --- a/qaseio/src/qaseio/models/suite_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.suite import Suite -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteResponse(BaseModel): - """ - SuiteResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[Suite] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": Suite.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/suite_update.py b/qaseio/src/qaseio/models/suite_update.py deleted file mode 100644 index f383c298..00000000 --- a/qaseio/src/qaseio/models/suite_update.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SuiteUpdate(BaseModel): - """ - SuiteUpdate - """ # noqa: E501 - title: Optional[StrictStr] = Field(default=None, description="Test suite title.") - description: Optional[StrictStr] = Field(default=None, description="Test suite description.") - preconditions: Optional[StrictStr] = Field(default=None, description="Test suite preconditions") - parent_id: Optional[StrictInt] = Field(default=None, description="Parent suite ID") - __properties: ClassVar[List[str]] = ["title", "description", "preconditions", "parent_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SuiteUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if parent_id (nullable) is None - # and model_fields_set contains the field - if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict['parent_id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SuiteUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "parent_id": obj.get("parent_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/system_field.py b/qaseio/src/qaseio/models/system_field.py deleted file mode 100644 index da955941..00000000 --- a/qaseio/src/qaseio/models/system_field.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -from qaseio.models.system_field_option import SystemFieldOption -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SystemField(BaseModel): - """ - SystemField - """ # noqa: E501 - title: Optional[StrictStr] = None - slug: Optional[StrictStr] = None - default_value: Optional[StrictStr] = None - is_required: Optional[StrictBool] = None - entity: Optional[StrictInt] = None - type: Optional[StrictInt] = None - options: Optional[List[SystemFieldOption]] = None - __properties: ClassVar[List[str]] = ["title", "slug", "default_value", "is_required", "entity", "type", "options"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SystemField from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in options (list) - _items = [] - if self.options: - for _item in self.options: - if _item: - _items.append(_item.to_dict()) - _dict['options'] = _items - # set to None if default_value (nullable) is None - # and model_fields_set contains the field - if self.default_value is None and "default_value" in self.model_fields_set: - _dict['default_value'] = None - - # set to None if options (nullable) is None - # and model_fields_set contains the field - if self.options is None and "options" in self.model_fields_set: - _dict['options'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SystemField from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "slug": obj.get("slug"), - "default_value": obj.get("default_value"), - "is_required": obj.get("is_required"), - "entity": obj.get("entity"), - "type": obj.get("type"), - "options": [SystemFieldOption.from_dict(_item) for _item in obj.get("options")] if obj.get("options") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/system_field_list_response.py b/qaseio/src/qaseio/models/system_field_list_response.py deleted file mode 100644 index 2890cdf6..00000000 --- a/qaseio/src/qaseio/models/system_field_list_response.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.system_field import SystemField -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SystemFieldListResponse(BaseModel): - """ - SystemFieldListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[List[SystemField]] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SystemFieldListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in result (list) - _items = [] - if self.result: - for _item in self.result: - if _item: - _items.append(_item.to_dict()) - _dict['result'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SystemFieldListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": [SystemField.from_dict(_item) for _item in obj.get("result")] if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/system_field_option.py b/qaseio/src/qaseio/models/system_field_option.py deleted file mode 100644 index a10ec719..00000000 --- a/qaseio/src/qaseio/models/system_field_option.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class SystemFieldOption(BaseModel): - """ - SystemFieldOption - """ # noqa: E501 - id: Optional[StrictInt] = None - title: Optional[StrictStr] = None - slug: Optional[StrictStr] = None - color: Optional[StrictStr] = None - icon: Optional[StrictStr] = None - is_default: Optional[StrictBool] = None - read_only: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "title", "slug", "color", "icon", "is_default", "read_only"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of SystemFieldOption from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if color (nullable) is None - # and model_fields_set contains the field - if self.color is None and "color" in self.model_fields_set: - _dict['color'] = None - - # set to None if icon (nullable) is None - # and model_fields_set contains the field - if self.icon is None and "icon" in self.model_fields_set: - _dict['icon'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of SystemFieldOption from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "title": obj.get("title"), - "slug": obj.get("slug"), - "color": obj.get("color"), - "icon": obj.get("icon"), - "is_default": obj.get("is_default"), - "read_only": obj.get("read_only") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/tag_value.py b/qaseio/src/qaseio/models/tag_value.py deleted file mode 100644 index b3cc43be..00000000 --- a/qaseio/src/qaseio/models/tag_value.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TagValue(BaseModel): - """ - TagValue - """ # noqa: E501 - title: Optional[StrictStr] = None - internal_id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["title", "internal_id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TagValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TagValue from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "title": obj.get("title"), - "internal_id": obj.get("internal_id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case.py b/qaseio/src/qaseio/models/test_case.py deleted file mode 100644 index 9df21296..00000000 --- a/qaseio/src/qaseio/models/test_case.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.external_issue import ExternalIssue -from qaseio.models.tag_value import TagValue -from qaseio.models.test_case_params import TestCaseParams -from qaseio.models.test_step import TestStep -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCase(BaseModel): - """ - TestCase - """ # noqa: E501 - id: Optional[StrictInt] = None - position: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - steps_type: Optional[StrictStr] = None - steps: Optional[List[TestStep]] = None - params: Optional[TestCaseParams] = None - tags: Optional[List[TagValue]] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - deleted: Optional[StrictStr] = None - created: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `created_at` property instead.") - updated: Optional[StrictStr] = Field(default=None, description="Deprecated, use the `updated_at` property instead.") - external_issues: Optional[List[ExternalIssue]] = None - __properties: ClassVar[List[str]] = ["id", "position", "title", "description", "preconditions", "postconditions", "severity", "priority", "type", "layer", "is_flaky", "behavior", "automation", "status", "milestone_id", "suite_id", "custom_fields", "attachments", "steps_type", "steps", "params", "tags", "member_id", "author_id", "created_at", "updated_at", "deleted", "created", "updated", "external_issues"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCase from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # override the default output from pydantic by calling `to_dict()` of params - if self.params: - _dict['params'] = self.params.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in external_issues (list) - _items = [] - if self.external_issues: - for _item in self.external_issues: - if _item: - _items.append(_item.to_dict()) - _dict['external_issues'] = _items - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if preconditions (nullable) is None - # and model_fields_set contains the field - if self.preconditions is None and "preconditions" in self.model_fields_set: - _dict['preconditions'] = None - - # set to None if postconditions (nullable) is None - # and model_fields_set contains the field - if self.postconditions is None and "postconditions" in self.model_fields_set: - _dict['postconditions'] = None - - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if suite_id (nullable) is None - # and model_fields_set contains the field - if self.suite_id is None and "suite_id" in self.model_fields_set: - _dict['suite_id'] = None - - # set to None if steps_type (nullable) is None - # and model_fields_set contains the field - if self.steps_type is None and "steps_type" in self.model_fields_set: - _dict['steps_type'] = None - - # set to None if deleted (nullable) is None - # and model_fields_set contains the field - if self.deleted is None and "deleted" in self.model_fields_set: - _dict['deleted'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCase from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "position": obj.get("position"), - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "behavior": obj.get("behavior"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "suite_id": obj.get("suite_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "steps_type": obj.get("steps_type"), - "steps": [TestStep.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "params": TestCaseParams.from_dict(obj.get("params")) if obj.get("params") is not None else None, - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "deleted": obj.get("deleted"), - "created": obj.get("created"), - "updated": obj.get("updated"), - "external_issues": [ExternalIssue.from_dict(_item) for _item in obj.get("external_issues")] if obj.get("external_issues") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_create.py b/qaseio/src/qaseio/models/test_case_create.py deleted file mode 100644 index 88971993..00000000 --- a/qaseio/src/qaseio/models/test_case_create.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.test_step_create import TestStepCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseCreate(BaseModel): - """ - TestCaseCreate - """ # noqa: E501 - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - title: Annotated[str, Field(strict=True, max_length=255)] - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - author_id: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") - steps: Optional[List[TestStepCreate]] = None - tags: Optional[List[StrictStr]] = None - params: Optional[Dict[str, List[StrictStr]]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - created_at: Optional[StrictStr] = None - updated_at: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["description", "preconditions", "postconditions", "title", "severity", "priority", "behavior", "type", "layer", "is_flaky", "author_id", "suite_id", "milestone_id", "automation", "status", "attachments", "steps", "tags", "params", "custom_field", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # set to None if params (nullable) is None - # and model_fields_set contains the field - if self.params is None and "params" in self.model_fields_set: - _dict['params'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "title": obj.get("title"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "behavior": obj.get("behavior"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "author_id": obj.get("author_id"), - "suite_id": obj.get("suite_id"), - "milestone_id": obj.get("milestone_id"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "attachments": obj.get("attachments"), - "steps": [TestStepCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "tags": obj.get("tags"), - "params": obj.get("params"), - "custom_field": obj.get("custom_field"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_external_issues.py b/qaseio/src/qaseio/models/test_case_external_issues.py deleted file mode 100644 index 2da877e8..00000000 --- a/qaseio/src/qaseio/models/test_case_external_issues.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictStr, field_validator -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseExternalIssues(BaseModel): - """ - TestCaseExternalIssues - """ # noqa: E501 - type: StrictStr - links: List[TestCaseExternalIssuesLinksInner] - __properties: ClassVar[List[str]] = ["type", "links"] - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value not in ('jira-cloud', 'jira-server'): - raise ValueError("must be one of enum values ('jira-cloud', 'jira-server')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseExternalIssues from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in links (list) - _items = [] - if self.links: - for _item in self.links: - if _item: - _items.append(_item.to_dict()) - _dict['links'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseExternalIssues from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "links": [TestCaseExternalIssuesLinksInner.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_external_issues_links_inner.py b/qaseio/src/qaseio/models/test_case_external_issues_links_inner.py deleted file mode 100644 index df760e98..00000000 --- a/qaseio/src/qaseio/models/test_case_external_issues_links_inner.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictInt, StrictStr -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseExternalIssuesLinksInner(BaseModel): - """ - TestCaseExternalIssuesLinksInner - """ # noqa: E501 - case_id: StrictInt - external_issues: List[StrictStr] - __properties: ClassVar[List[str]] = ["case_id", "external_issues"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseExternalIssuesLinksInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseExternalIssuesLinksInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "case_id": obj.get("case_id"), - "external_issues": obj.get("external_issues") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_list_response.py b/qaseio/src/qaseio/models/test_case_list_response.py deleted file mode 100644 index 8ca0ecbd..00000000 --- a/qaseio/src/qaseio/models/test_case_list_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseListResponse(BaseModel): - """ - TestCaseListResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[TestCaseListResponseAllOfResult] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseListResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseListResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": TestCaseListResponseAllOfResult.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_list_response_all_of_result.py b/qaseio/src/qaseio/models/test_case_list_response_all_of_result.py deleted file mode 100644 index 88cbe313..00000000 --- a/qaseio/src/qaseio/models/test_case_list_response_all_of_result.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from qaseio.models.test_case import TestCase -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseListResponseAllOfResult(BaseModel): - """ - TestCaseListResponseAllOfResult - """ # noqa: E501 - total: Optional[StrictInt] = None - filtered: Optional[StrictInt] = None - count: Optional[StrictInt] = None - entities: Optional[List[TestCase]] = None - __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseListResponseAllOfResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in entities (list) - _items = [] - if self.entities: - for _item in self.entities: - if _item: - _items.append(_item.to_dict()) - _dict['entities'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseListResponseAllOfResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "total": obj.get("total"), - "filtered": obj.get("filtered"), - "count": obj.get("count"), - "entities": [TestCase.from_dict(_item) for _item in obj.get("entities")] if obj.get("entities") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_params.py b/qaseio/src/qaseio/models/test_case_params.py deleted file mode 100644 index ab51afa3..00000000 --- a/qaseio/src/qaseio/models/test_case_params.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 - -from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, field_validator -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal -from pydantic import StrictStr, Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -TESTCASEPARAMS_ANY_OF_SCHEMAS = ["List[object]", "object"] - -class TestCaseParams(BaseModel): - """ - TestCaseParams - """ - - # data type: List[object] - anyof_schema_1_validator: Optional[List[Dict[str, Any]]] = None - # data type: object - anyof_schema_2_validator: Optional[Dict[str, Any]] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[List[object], object]] = None - else: - actual_instance: Any = None - any_of_schemas: List[str] = Literal[TESTCASEPARAMS_ANY_OF_SCHEMAS] - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = TestCaseParams.model_construct() - error_messages = [] - # validate data type: List[object] - try: - instance.anyof_schema_1_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # validate data type: object - try: - instance.anyof_schema_2_validator = v - return v - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in TestCaseParams with anyOf schemas: List[object], object. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: dict) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # deserialize data into List[object] - try: - # validation - instance.anyof_schema_1_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_1_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into object - try: - # validation - instance.anyof_schema_2_validator = json.loads(json_str) - # assign value to actual_instance - instance.actual_instance = instance.anyof_schema_2_validator - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into TestCaseParams with anyOf schemas: List[object], object. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - to_json = getattr(self.actual_instance, "to_json", None) - if callable(to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Dict: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return "null" - - to_json = getattr(self.actual_instance, "to_json", None) - if callable(to_json): - return self.actual_instance.to_dict() - else: - return json.dumps(self.actual_instance) - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/qaseio/src/qaseio/models/test_case_query.py b/qaseio/src/qaseio/models/test_case_query.py deleted file mode 100644 index bf44f5cd..00000000 --- a/qaseio/src/qaseio/models/test_case_query.py +++ /dev/null @@ -1,206 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -from qaseio.models.custom_field_value import CustomFieldValue -from qaseio.models.tag_value import TagValue -from qaseio.models.test_case_params import TestCaseParams -from qaseio.models.test_step import TestStep -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseQuery(BaseModel): - """ - TestCaseQuery - """ # noqa: E501 - id: Optional[StrictInt] = None - position: Optional[StrictInt] = None - title: Optional[StrictStr] = None - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - custom_fields: Optional[List[CustomFieldValue]] = None - attachments: Optional[List[Attachment]] = None - steps_type: Optional[StrictStr] = None - steps: Optional[List[TestStep]] = None - params: Optional[TestCaseParams] = None - tags: Optional[List[TagValue]] = None - member_id: Optional[StrictInt] = Field(default=None, description="Deprecated, use `author_id` instead.") - author_id: Optional[StrictInt] = None - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "position", "title", "description", "preconditions", "postconditions", "severity", "priority", "type", "layer", "is_flaky", "behavior", "automation", "status", "milestone_id", "suite_id", "custom_fields", "attachments", "steps_type", "steps", "params", "tags", "member_id", "author_id", "created_at", "updated_at"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseQuery from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in custom_fields (list) - _items = [] - if self.custom_fields: - for _item in self.custom_fields: - if _item: - _items.append(_item.to_dict()) - _dict['custom_fields'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # override the default output from pydantic by calling `to_dict()` of params - if self.params: - _dict['params'] = self.params.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in tags (list) - _items = [] - if self.tags: - for _item in self.tags: - if _item: - _items.append(_item.to_dict()) - _dict['tags'] = _items - # set to None if description (nullable) is None - # and model_fields_set contains the field - if self.description is None and "description" in self.model_fields_set: - _dict['description'] = None - - # set to None if preconditions (nullable) is None - # and model_fields_set contains the field - if self.preconditions is None and "preconditions" in self.model_fields_set: - _dict['preconditions'] = None - - # set to None if postconditions (nullable) is None - # and model_fields_set contains the field - if self.postconditions is None and "postconditions" in self.model_fields_set: - _dict['postconditions'] = None - - # set to None if milestone_id (nullable) is None - # and model_fields_set contains the field - if self.milestone_id is None and "milestone_id" in self.model_fields_set: - _dict['milestone_id'] = None - - # set to None if suite_id (nullable) is None - # and model_fields_set contains the field - if self.suite_id is None and "suite_id" in self.model_fields_set: - _dict['suite_id'] = None - - # set to None if steps_type (nullable) is None - # and model_fields_set contains the field - if self.steps_type is None and "steps_type" in self.model_fields_set: - _dict['steps_type'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseQuery from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "position": obj.get("position"), - "title": obj.get("title"), - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "behavior": obj.get("behavior"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "milestone_id": obj.get("milestone_id"), - "suite_id": obj.get("suite_id"), - "custom_fields": [CustomFieldValue.from_dict(_item) for _item in obj.get("custom_fields")] if obj.get("custom_fields") is not None else None, - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "steps_type": obj.get("steps_type"), - "steps": [TestStep.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "params": TestCaseParams.from_dict(obj.get("params")) if obj.get("params") is not None else None, - "tags": [TagValue.from_dict(_item) for _item in obj.get("tags")] if obj.get("tags") is not None else None, - "member_id": obj.get("member_id"), - "author_id": obj.get("author_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_response.py b/qaseio/src/qaseio/models/test_case_response.py deleted file mode 100644 index c27d0efb..00000000 --- a/qaseio/src/qaseio/models/test_case_response.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictBool -from qaseio.models.test_case import TestCase -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseResponse(BaseModel): - """ - TestCaseResponse - """ # noqa: E501 - status: Optional[StrictBool] = None - result: Optional[TestCase] = None - __properties: ClassVar[List[str]] = ["status", "result"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of result - if self.result: - _dict['result'] = self.result.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "result": TestCase.from_dict(obj.get("result")) if obj.get("result") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_case_update.py b/qaseio/src/qaseio/models/test_case_update.py deleted file mode 100644 index 2fab7b7b..00000000 --- a/qaseio/src/qaseio/models/test_case_update.py +++ /dev/null @@ -1,140 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.test_step_create import TestStepCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseUpdate(BaseModel): - """ - TestCaseUpdate - """ # noqa: E501 - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - title: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") - steps: Optional[List[TestStepCreate]] = None - tags: Optional[List[StrictStr]] = None - params: Optional[Dict[str, List[StrictStr]]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - __properties: ClassVar[List[str]] = ["description", "preconditions", "postconditions", "title", "severity", "priority", "behavior", "type", "layer", "is_flaky", "suite_id", "milestone_id", "automation", "status", "attachments", "steps", "tags", "params", "custom_field"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseUpdate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # set to None if params (nullable) is None - # and model_fields_set contains the field - if self.params is None and "params" in self.model_fields_set: - _dict['params'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseUpdate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "title": obj.get("title"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "behavior": obj.get("behavior"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "suite_id": obj.get("suite_id"), - "milestone_id": obj.get("milestone_id"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "attachments": obj.get("attachments"), - "steps": [TestStepCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "tags": obj.get("tags"), - "params": obj.get("params"), - "custom_field": obj.get("custom_field") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_casebulk.py b/qaseio/src/qaseio/models/test_casebulk.py deleted file mode 100644 index debcc7b0..00000000 --- a/qaseio/src/qaseio/models/test_casebulk.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel -from qaseio.models.test_casebulk_cases_inner import TestCasebulkCasesInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCasebulk(BaseModel): - """ - TestCasebulk - """ # noqa: E501 - cases: List[TestCasebulkCasesInner] - __properties: ClassVar[List[str]] = ["cases"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCasebulk from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in cases (list) - _items = [] - if self.cases: - for _item in self.cases: - if _item: - _items.append(_item.to_dict()) - _dict['cases'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCasebulk from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "cases": [TestCasebulkCasesInner.from_dict(_item) for _item in obj.get("cases")] if obj.get("cases") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_casebulk_cases_inner.py b/qaseio/src/qaseio/models/test_casebulk_cases_inner.py deleted file mode 100644 index 435e9261..00000000 --- a/qaseio/src/qaseio/models/test_casebulk_cases_inner.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from typing_extensions import Annotated -from qaseio.models.test_step_create import TestStepCreate -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCasebulkCasesInner(BaseModel): - """ - TestCasebulkCasesInner - """ # noqa: E501 - description: Optional[StrictStr] = None - preconditions: Optional[StrictStr] = None - postconditions: Optional[StrictStr] = None - title: Annotated[str, Field(strict=True, max_length=255)] - severity: Optional[StrictInt] = None - priority: Optional[StrictInt] = None - behavior: Optional[StrictInt] = None - type: Optional[StrictInt] = None - layer: Optional[StrictInt] = None - is_flaky: Optional[StrictInt] = None - author_id: Optional[StrictInt] = None - suite_id: Optional[StrictInt] = None - milestone_id: Optional[StrictInt] = None - automation: Optional[StrictInt] = None - status: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") - steps: Optional[List[TestStepCreate]] = None - tags: Optional[List[StrictStr]] = None - params: Optional[Dict[str, List[StrictStr]]] = None - custom_field: Optional[Dict[str, StrictStr]] = Field(default=None, description="A map of custom fields values (id => value)") - created_at: Optional[StrictStr] = None - updated_at: Optional[StrictStr] = None - id: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["description", "preconditions", "postconditions", "title", "severity", "priority", "behavior", "type", "layer", "is_flaky", "author_id", "suite_id", "milestone_id", "automation", "status", "attachments", "steps", "tags", "params", "custom_field", "created_at", "updated_at", "id"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCasebulkCasesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in steps (list) - _items = [] - if self.steps: - for _item in self.steps: - if _item: - _items.append(_item.to_dict()) - _dict['steps'] = _items - # set to None if params (nullable) is None - # and model_fields_set contains the field - if self.params is None and "params" in self.model_fields_set: - _dict['params'] = None - - # set to None if id (nullable) is None - # and model_fields_set contains the field - if self.id is None and "id" in self.model_fields_set: - _dict['id'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCasebulkCasesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "description": obj.get("description"), - "preconditions": obj.get("preconditions"), - "postconditions": obj.get("postconditions"), - "title": obj.get("title"), - "severity": obj.get("severity"), - "priority": obj.get("priority"), - "behavior": obj.get("behavior"), - "type": obj.get("type"), - "layer": obj.get("layer"), - "is_flaky": obj.get("is_flaky"), - "author_id": obj.get("author_id"), - "suite_id": obj.get("suite_id"), - "milestone_id": obj.get("milestone_id"), - "automation": obj.get("automation"), - "status": obj.get("status"), - "attachments": obj.get("attachments"), - "steps": [TestStepCreate.from_dict(_item) for _item in obj.get("steps")] if obj.get("steps") is not None else None, - "tags": obj.get("tags"), - "params": obj.get("params"), - "custom_field": obj.get("custom_field"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "id": obj.get("id") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_caseexternal_issues.py b/qaseio/src/qaseio/models/test_caseexternal_issues.py deleted file mode 100644 index 3cd3b2e1..00000000 --- a/qaseio/src/qaseio/models/test_caseexternal_issues.py +++ /dev/null @@ -1,106 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List -from pydantic import BaseModel, StrictStr, field_validator -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestCaseexternalIssues(BaseModel): - """ - TestCaseexternalIssues - """ # noqa: E501 - type: StrictStr - links: List[TestCaseExternalIssuesLinksInner] - __properties: ClassVar[List[str]] = ["type", "links"] - - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value not in ('jira-cloud', 'jira-server'): - raise ValueError("must be one of enum values ('jira-cloud', 'jira-server')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestCaseexternalIssues from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in links (list) - _items = [] - if self.links: - for _item in self.links: - if _item: - _items.append(_item.to_dict()) - _dict['links'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestCaseexternalIssues from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "type": obj.get("type"), - "links": [TestCaseExternalIssuesLinksInner.from_dict(_item) for _item in obj.get("links")] if obj.get("links") is not None else None - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_step.py b/qaseio/src/qaseio/models/test_step.py deleted file mode 100644 index 73f76a54..00000000 --- a/qaseio/src/qaseio/models/test_step.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -from qaseio.models.attachment import Attachment -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestStep(BaseModel): - """ - TestStep - """ # noqa: E501 - hash: Optional[StrictStr] = None - shared_step_hash: Optional[StrictStr] = None - shared_step_nested_hash: Optional[StrictStr] = None - position: Optional[StrictInt] = None - action: Optional[StrictStr] = None - expected_result: Optional[StrictStr] = None - data: Optional[StrictStr] = None - attachments: Optional[List[Attachment]] = None - steps: Optional[List[Dict[str, Any]]] = Field(default=None, description="Nested steps will be here. The same structure is used for them.") - __properties: ClassVar[List[str]] = ["hash", "shared_step_hash", "shared_step_nested_hash", "position", "action", "expected_result", "data", "attachments", "steps"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestStep from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - # set to None if shared_step_hash (nullable) is None - # and model_fields_set contains the field - if self.shared_step_hash is None and "shared_step_hash" in self.model_fields_set: - _dict['shared_step_hash'] = None - - # set to None if shared_step_nested_hash (nullable) is None - # and model_fields_set contains the field - if self.shared_step_nested_hash is None and "shared_step_nested_hash" in self.model_fields_set: - _dict['shared_step_nested_hash'] = None - - # set to None if expected_result (nullable) is None - # and model_fields_set contains the field - if self.expected_result is None and "expected_result" in self.model_fields_set: - _dict['expected_result'] = None - - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestStep from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "hash": obj.get("hash"), - "shared_step_hash": obj.get("shared_step_hash"), - "shared_step_nested_hash": obj.get("shared_step_nested_hash"), - "position": obj.get("position"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "steps": obj.get("steps") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_step_create.py b/qaseio/src/qaseio/models/test_step_create.py deleted file mode 100644 index 49afac29..00000000 --- a/qaseio/src/qaseio/models/test_step_create.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestStepCreate(BaseModel): - """ - TestStepCreate - """ # noqa: E501 - action: Optional[StrictStr] = None - expected_result: Optional[StrictStr] = None - data: Optional[StrictStr] = None - position: Optional[StrictInt] = None - attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") - steps: Optional[List[Dict[str, Any]]] = Field(default=None, description="Nested steps may be passed here. Use same structure for them.") - __properties: ClassVar[List[str]] = ["action", "expected_result", "data", "position", "attachments", "steps"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestStepCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestStepCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "position": obj.get("position"), - "attachments": obj.get("attachments"), - "steps": obj.get("steps") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_step_result.py b/qaseio/src/qaseio/models/test_step_result.py deleted file mode 100644 index c88c13e9..00000000 --- a/qaseio/src/qaseio/models/test_step_result.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt -from pydantic import Field -from qaseio.models.attachment import Attachment -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestStepResult(BaseModel): - """ - TestStepResult - """ # noqa: E501 - status: Optional[StrictInt] = None - position: Optional[StrictInt] = None - attachments: Optional[List[Attachment]] = None - steps: Optional[List[Dict[str, Any]]] = Field(default=None, description="Nested steps results will be here. The same structure is used for them for them.") - __properties: ClassVar[List[str]] = ["status", "position", "attachments", "steps"] - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestStepResult from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in attachments (list) - _items = [] - if self.attachments: - for _item in self.attachments: - if _item: - _items.append(_item.to_dict()) - _dict['attachments'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestStepResult from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "status": obj.get("status"), - "position": obj.get("position"), - "attachments": [Attachment.from_dict(_item) for _item in obj.get("attachments")] if obj.get("attachments") is not None else None, - "steps": obj.get("steps") - }) - return _obj - - diff --git a/qaseio/src/qaseio/models/test_step_result_create.py b/qaseio/src/qaseio/models/test_step_result_create.py deleted file mode 100644 index 5c125167..00000000 --- a/qaseio/src/qaseio/models/test_step_result_create.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API v1 - - Qase TestOps API v1 Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - - -from typing import Any, ClassVar, Dict, List, Optional -from pydantic import BaseModel, StrictInt, StrictStr, field_validator -from pydantic import Field -try: - from typing import Self -except ImportError: - from typing_extensions import Self - -class TestStepResultCreate(BaseModel): - """ - TestStepResultCreate - """ # noqa: E501 - position: Optional[StrictInt] = None - status: StrictStr - comment: Optional[StrictStr] = None - attachments: Optional[List[StrictStr]] = None - action: Optional[StrictStr] = None - expected_result: Optional[StrictStr] = None - data: Optional[StrictStr] = None - steps: Optional[List[Dict[str, Any]]] = Field(default=None, description="Nested steps results may be passed here. Use same structure for them.") - __properties: ClassVar[List[str]] = ["position", "status", "comment", "attachments", "action", "expected_result", "data", "steps"] - - @field_validator('status') - def status_validate_enum(cls, value): - """Validates the enum""" - if value not in ('passed', 'failed', 'blocked', 'skipped'): - raise ValueError("must be one of enum values ('passed', 'failed', 'blocked', 'skipped')") - return value - - model_config = { - "populate_by_name": True, - "validate_assignment": True, - "protected_namespaces": (), - } - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Create an instance of TestStepResultCreate from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - _dict = self.model_dump( - by_alias=True, - exclude={ - }, - exclude_none=True, - ) - # set to None if comment (nullable) is None - # and model_fields_set contains the field - if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None - - # set to None if attachments (nullable) is None - # and model_fields_set contains the field - if self.attachments is None and "attachments" in self.model_fields_set: - _dict['attachments'] = None - - # set to None if expected_result (nullable) is None - # and model_fields_set contains the field - if self.expected_result is None and "expected_result" in self.model_fields_set: - _dict['expected_result'] = None - - # set to None if data (nullable) is None - # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Dict) -> Self: - """Create an instance of TestStepResultCreate from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "position": obj.get("position"), - "status": obj.get("status"), - "comment": obj.get("comment"), - "attachments": obj.get("attachments"), - "action": obj.get("action"), - "expected_result": obj.get("expected_result"), - "data": obj.get("data"), - "steps": obj.get("steps") - }) - return _obj - - diff --git a/qaseio/src/qaseio/py.typed b/qaseio/src/qaseio/py.typed deleted file mode 100644 index e69de29b..00000000 diff --git a/qaseio/src/qaseio/rest.py b/qaseio/src/qaseio/rest.py deleted file mode 100644 index 80a9bd6e..00000000 --- a/qaseio/src/qaseio/rest.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import io -import json -import re -import ssl - -import urllib3 - -from qaseio.exceptions import ApiException, ApiValueError - -SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} -RESTResponseType = urllib3.HTTPResponse - - -def is_socks_proxy_url(url): - if url is None: - return False - split_section = url.split("://") - if len(split_section) < 2: - return False - else: - return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES - - -class RESTResponse(io.IOBase): - - def __init__(self, resp) -> None: - self.response = resp - self.status = resp.status - self.reason = resp.reason - self.data = None - - def read(self): - if self.data is None: - self.data = self.response.data - return self.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.response.headers - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.response.headers.get(name, default) - - -class RESTClientObject: - - def __init__(self, configuration) -> None: - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = ( - configuration.assert_hostname - ) - - if configuration.retries is not None: - addition_pool_args['retries'] = configuration.retries - - if configuration.tls_server_name: - addition_pool_args['server_hostname'] = configuration.tls_server_name - - - if configuration.socket_options is not None: - addition_pool_args['socket_options'] = configuration.socket_options - - if configuration.connection_pool_maxsize is not None: - addition_pool_args['maxsize'] = configuration.connection_pool_maxsize - - # https pool manager - if configuration.proxy: - if is_socks_proxy_url(configuration.proxy): - from urllib3.contrib.socks import SOCKSProxyManager - self.pool_manager = SOCKSProxyManager( - cert_reqs=cert_reqs, - ca_certs=configuration.ssl_ca_cert, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - headers=configuration.proxy_headers, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.ProxyManager( - cert_reqs=cert_reqs, - ca_certs=configuration.ssl_ca_cert, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - proxy_headers=configuration.proxy_headers, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - cert_reqs=cert_reqs, - ca_certs=configuration.ssl_ca_cert, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request( - self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): - """Perform requests. - - :param method: http request method - :param url: http request url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in [ - 'GET', - 'HEAD', - 'DELETE', - 'POST', - 'PUT', - 'PATCH', - 'OPTIONS' - ] - - if post_params and body: - raise ApiValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, float)): - timeout = urllib3.Timeout(total=_request_timeout) - elif ( - isinstance(_request_timeout, tuple) - and len(_request_timeout) == 2 - ): - timeout = urllib3.Timeout( - connect=_request_timeout[0], - read=_request_timeout[1] - ) - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - - # no content type provided or payload is json - content_type = headers.get('Content-Type') - if ( - not content_type - or re.search('json', content_type, re.IGNORECASE) - ): - request_body = None - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, - url, - body=request_body, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif content_type == 'application/x-www-form-urlencoded': - r = self.pool_manager.request( - method, - url, - fields=post_params, - encode_multipart=False, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif content_type == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, - url, - fields=post_params, - encode_multipart=True, - timeout=timeout, - headers=headers, - preload_content=False - ) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str) or isinstance(body, bytes): - request_body = body - r = self.pool_manager.request( - method, - url, - body=request_body, - timeout=timeout, - headers=headers, - preload_content=False - ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): - request_body = "true" if body else "false" - r = self.pool_manager.request( - method, - url, - body=request_body, - preload_content=False, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request( - method, - url, - fields={}, - timeout=timeout, - headers=headers, - preload_content=False - ) - except urllib3.exceptions.SSLError as e: - msg = "\n".join([type(e).__name__, str(e)]) - raise ApiException(status=0, reason=msg) - - return RESTResponse(r) diff --git a/qaseio/test-requirements.txt b/qaseio/test-requirements.txt deleted file mode 100644 index 45fc7fe8..00000000 --- a/qaseio/test-requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -pytest~=7.2.2 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 diff --git a/qaseio/tests/tests_qaseio/test_attachment.py b/qaseio/tests/tests_qaseio/test_attachment.py deleted file mode 100644 index b48fe3da..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment import Attachment - -class TestAttachment(unittest.TestCase): - """Attachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Attachment: - """Test Attachment - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Attachment` - """ - model = Attachment() - if include_optional: - return Attachment( - size = 56, - mime = '', - filename = '', - url = '' - ) - else: - return Attachment( - ) - """ - - def testAttachment(self): - """Test Attachment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_get.py b/qaseio/tests/tests_qaseio/test_attachment_get.py deleted file mode 100644 index 8fc1cee2..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_get.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_get import AttachmentGet - -class TestAttachmentGet(unittest.TestCase): - """AttachmentGet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentGet: - """Test AttachmentGet - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentGet` - """ - model = AttachmentGet() - if include_optional: - return AttachmentGet( - hash = '', - file = '', - mime = '', - size = 56, - extension = '', - full_path = '' - ) - else: - return AttachmentGet( - ) - """ - - def testAttachmentGet(self): - """Test AttachmentGet""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_hash.py b/qaseio/tests/tests_qaseio/test_attachment_hash.py deleted file mode 100644 index a0a9f282..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_hash.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_hash import AttachmentHash - -class TestAttachmentHash(unittest.TestCase): - """AttachmentHash unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentHash: - """Test AttachmentHash - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentHash` - """ - model = AttachmentHash() - if include_optional: - return AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '' - ) - else: - return AttachmentHash( - ) - """ - - def testAttachmentHash(self): - """Test AttachmentHash""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_list_response.py b/qaseio/tests/tests_qaseio/test_attachment_list_response.py deleted file mode 100644 index 0fe71666..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_list_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_list_response import AttachmentListResponse - -class TestAttachmentListResponse(unittest.TestCase): - """AttachmentListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentListResponse: - """Test AttachmentListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentListResponse` - """ - model = AttachmentListResponse() - if include_optional: - return AttachmentListResponse( - status = True, - result = qaseio.models.attachment_list_response_all_of_result.AttachmentListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.attachment_get.AttachmentGet( - hash = '', - file = '', - mime = '', - size = 56, - extension = '', - full_path = '', - url = '', ) - ], ) - ) - else: - return AttachmentListResponse( - ) - """ - - def testAttachmentListResponse(self): - """Test AttachmentListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_attachment_list_response_all_of_result.py deleted file mode 100644 index 1dac8a35..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_list_response_all_of_result.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult - -class TestAttachmentListResponseAllOfResult(unittest.TestCase): - """AttachmentListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentListResponseAllOfResult: - """Test AttachmentListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentListResponseAllOfResult` - """ - model = AttachmentListResponseAllOfResult() - if include_optional: - return AttachmentListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.attachment_get.AttachmentGet( - hash = '', - file = '', - mime = '', - size = 56, - extension = '', - full_path = '', - url = '', ) - ] - ) - else: - return AttachmentListResponseAllOfResult( - ) - """ - - def testAttachmentListResponseAllOfResult(self): - """Test AttachmentListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_response.py b/qaseio/tests/tests_qaseio/test_attachment_response.py deleted file mode 100644 index f38f7d0d..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_response.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_response import AttachmentResponse - -class TestAttachmentResponse(unittest.TestCase): - """AttachmentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentResponse: - """Test AttachmentResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentResponse` - """ - model = AttachmentResponse() - if include_optional: - return AttachmentResponse( - status = True, - result = qaseio.models.attachment_get.AttachmentGet( - hash = '', - file = '', - mime = '', - size = 56, - extension = '', - full_path = '', - url = '', ) - ) - else: - return AttachmentResponse( - ) - """ - - def testAttachmentResponse(self): - """Test AttachmentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachment_uploads_response.py b/qaseio/tests/tests_qaseio/test_attachment_uploads_response.py deleted file mode 100644 index c4a76fa6..00000000 --- a/qaseio/tests/tests_qaseio/test_attachment_uploads_response.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachment_uploads_response import AttachmentUploadsResponse - -class TestAttachmentUploadsResponse(unittest.TestCase): - """AttachmentUploadsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AttachmentUploadsResponse: - """Test AttachmentUploadsResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AttachmentUploadsResponse` - """ - model = AttachmentUploadsResponse() - if include_optional: - return AttachmentUploadsResponse( - status = True, - result = [ - qaseio.models.attachmentupload.Attachmentupload( - hash = '', - filename = '', - mime = '', - extension = '', - url = '', - team = '', ) - ] - ) - else: - return AttachmentUploadsResponse( - ) - """ - - def testAttachmentUploadsResponse(self): - """Test AttachmentUploadsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachments_api.py b/qaseio/tests/tests_qaseio/test_attachments_api.py deleted file mode 100644 index ad57c716..00000000 --- a/qaseio/tests/tests_qaseio/test_attachments_api.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.attachments_api import AttachmentsApi - - -class TestAttachmentsApi(unittest.TestCase): - """AttachmentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AttachmentsApi() - - def tearDown(self) -> None: - pass - - def test_delete_attachment(self) -> None: - """Test case for delete_attachment - - Remove attachment by Hash. - """ - pass - - def test_get_attachment(self) -> None: - """Test case for get_attachment - - Get attachment by Hash. - """ - pass - - def test_get_attachments(self) -> None: - """Test case for get_attachments - - Get all attachments. - """ - pass - - def test_upload_attachment(self) -> None: - """Test case for upload_attachment - - Upload attachment. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_attachmentupload.py b/qaseio/tests/tests_qaseio/test_attachmentupload.py deleted file mode 100644 index a880a378..00000000 --- a/qaseio/tests/tests_qaseio/test_attachmentupload.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.attachmentupload import Attachmentupload - -class TestAttachmentupload(unittest.TestCase): - """Attachmentupload unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Attachmentupload: - """Test Attachmentupload - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Attachmentupload` - """ - model = Attachmentupload() - if include_optional: - return Attachmentupload( - hash = '', - filename = '', - mime = '', - extension = '', - url = '', - team = '' - ) - else: - return Attachmentupload( - ) - """ - - def testAttachmentupload(self): - """Test Attachmentupload""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_author.py b/qaseio/tests/tests_qaseio/test_author.py deleted file mode 100644 index b83ff818..00000000 --- a/qaseio/tests/tests_qaseio/test_author.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.author import Author - -class TestAuthor(unittest.TestCase): - """Author unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Author: - """Test Author - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Author` - """ - model = Author() - if include_optional: - return Author( - id = 56, - entity_type = '', - email = '', - name = '', - is_active = True - ) - else: - return Author( - ) - """ - - def testAuthor(self): - """Test Author""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_author_list_response.py b/qaseio/tests/tests_qaseio/test_author_list_response.py deleted file mode 100644 index a48378f6..00000000 --- a/qaseio/tests/tests_qaseio/test_author_list_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.author_list_response import AuthorListResponse - -class TestAuthorListResponse(unittest.TestCase): - """AuthorListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthorListResponse: - """Test AuthorListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthorListResponse` - """ - model = AuthorListResponse() - if include_optional: - return AuthorListResponse( - status = True, - result = qaseio.models.author_list_response_all_of_result.AuthorListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.author.Author( - id = 56, - entity_type = '', - email = '', - name = '', - is_active = True, ) - ], ) - ) - else: - return AuthorListResponse( - ) - """ - - def testAuthorListResponse(self): - """Test AuthorListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_author_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_author_list_response_all_of_result.py deleted file mode 100644 index 39e0be35..00000000 --- a/qaseio/tests/tests_qaseio/test_author_list_response_all_of_result.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.author_list_response_all_of_result import AuthorListResponseAllOfResult - -class TestAuthorListResponseAllOfResult(unittest.TestCase): - """AuthorListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthorListResponseAllOfResult: - """Test AuthorListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthorListResponseAllOfResult` - """ - model = AuthorListResponseAllOfResult() - if include_optional: - return AuthorListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.author.Author( - id = 56, - entity_type = '', - email = '', - name = '', - is_active = True, ) - ] - ) - else: - return AuthorListResponseAllOfResult( - ) - """ - - def testAuthorListResponseAllOfResult(self): - """Test AuthorListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_author_response.py b/qaseio/tests/tests_qaseio/test_author_response.py deleted file mode 100644 index 7d964bd1..00000000 --- a/qaseio/tests/tests_qaseio/test_author_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.author_response import AuthorResponse - -class TestAuthorResponse(unittest.TestCase): - """AuthorResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AuthorResponse: - """Test AuthorResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AuthorResponse` - """ - model = AuthorResponse() - if include_optional: - return AuthorResponse( - status = True, - result = qaseio.models.author.Author( - id = 56, - entity_type = '', - email = '', - name = '', - is_active = True, ) - ) - else: - return AuthorResponse( - ) - """ - - def testAuthorResponse(self): - """Test AuthorResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_authors_api.py b/qaseio/tests/tests_qaseio/test_authors_api.py deleted file mode 100644 index e385c171..00000000 --- a/qaseio/tests/tests_qaseio/test_authors_api.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.authors_api import AuthorsApi - - -class TestAuthorsApi(unittest.TestCase): - """AuthorsApi unit test stubs""" - - def setUp(self) -> None: - self.api = AuthorsApi() - - def tearDown(self) -> None: - pass - - def test_get_author(self) -> None: - """Test case for get_author - - Get a specific author. - """ - pass - - def test_get_authors(self) -> None: - """Test case for get_authors - - Get all authors. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_base_response.py b/qaseio/tests/tests_qaseio/test_base_response.py deleted file mode 100644 index dfc68b4e..00000000 --- a/qaseio/tests/tests_qaseio/test_base_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.base_response import BaseResponse - -class TestBaseResponse(unittest.TestCase): - """BaseResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BaseResponse: - """Test BaseResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BaseResponse` - """ - model = BaseResponse() - if include_optional: - return BaseResponse( - status = True - ) - else: - return BaseResponse( - ) - """ - - def testBaseResponse(self): - """Test BaseResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_bulk200_response.py b/qaseio/tests/tests_qaseio/test_bulk200_response.py deleted file mode 100644 index c4294e38..00000000 --- a/qaseio/tests/tests_qaseio/test_bulk200_response.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.bulk200_response import Bulk200Response - -class TestBulk200Response(unittest.TestCase): - """Bulk200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Bulk200Response: - """Test Bulk200Response - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Bulk200Response` - """ - model = Bulk200Response() - if include_optional: - return Bulk200Response( - status = True, - result = qaseio.models.bulk_200_response_all_of_result.bulk_200_response_allOf_result( - ids = [ - 56 - ], ) - ) - else: - return Bulk200Response( - ) - """ - - def testBulk200Response(self): - """Test Bulk200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_bulk200_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_bulk200_response_all_of_result.py deleted file mode 100644 index c3440037..00000000 --- a/qaseio/tests/tests_qaseio/test_bulk200_response_all_of_result.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult - -class TestBulk200ResponseAllOfResult(unittest.TestCase): - """Bulk200ResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Bulk200ResponseAllOfResult: - """Test Bulk200ResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Bulk200ResponseAllOfResult` - """ - model = Bulk200ResponseAllOfResult() - if include_optional: - return Bulk200ResponseAllOfResult( - ids = [ - 56 - ] - ) - else: - return Bulk200ResponseAllOfResult( - ) - """ - - def testBulk200ResponseAllOfResult(self): - """Test Bulk200ResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_cases_api.py b/qaseio/tests/tests_qaseio/test_cases_api.py deleted file mode 100644 index 45990367..00000000 --- a/qaseio/tests/tests_qaseio/test_cases_api.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.cases_api import CasesApi - - -class TestCasesApi(unittest.TestCase): - """CasesApi unit test stubs""" - - def setUp(self) -> None: - self.api = CasesApi() - - def tearDown(self) -> None: - pass - - def test_bulk(self) -> None: - """Test case for bulk - - Create test cases in bulk. - """ - pass - - def test_case_attach_external_issue(self) -> None: - """Test case for case_attach_external_issue - - Attach the external issues to the test cases. - """ - pass - - def test_case_detach_external_issue(self) -> None: - """Test case for case_detach_external_issue - - Detach the external issues from the test cases. - """ - pass - - def test_create_case(self) -> None: - """Test case for create_case - - Create a new test case. - """ - pass - - def test_delete_case(self) -> None: - """Test case for delete_case - - Delete test case. - """ - pass - - def test_get_case(self) -> None: - """Test case for get_case - - Get a specific test case. - """ - pass - - def test_get_cases(self) -> None: - """Test case for get_cases - - Get all test cases. - """ - pass - - def test_update_case(self) -> None: - """Test case for update_case - - Update test case. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration.py b/qaseio/tests/tests_qaseio/test_configuration.py deleted file mode 100644 index 90ede833..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration import Configuration - -class TestConfiguration(unittest.TestCase): - """Configuration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Configuration: - """Test Configuration - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Configuration` - """ - model = Configuration() - if include_optional: - return Configuration( - id = 56, - title = '' - ) - else: - return Configuration( - ) - """ - - def testConfiguration(self): - """Test Configuration""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration_create.py b/qaseio/tests/tests_qaseio/test_configuration_create.py deleted file mode 100644 index a68deaf7..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration_create.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration_create import ConfigurationCreate - -class TestConfigurationCreate(unittest.TestCase): - """ConfigurationCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigurationCreate: - """Test ConfigurationCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigurationCreate` - """ - model = ConfigurationCreate() - if include_optional: - return ConfigurationCreate( - title = '', - group_id = 56 - ) - else: - return ConfigurationCreate( - title = '', - group_id = 56, - ) - """ - - def testConfigurationCreate(self): - """Test ConfigurationCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration_group.py b/qaseio/tests/tests_qaseio/test_configuration_group.py deleted file mode 100644 index d5be7ddb..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration_group.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration_group import ConfigurationGroup - -class TestConfigurationGroup(unittest.TestCase): - """ConfigurationGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigurationGroup: - """Test ConfigurationGroup - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigurationGroup` - """ - model = ConfigurationGroup() - if include_optional: - return ConfigurationGroup( - id = 56, - title = '', - configurations = [ - qaseio.models.configuration.Configuration( - id = 56, - title = '', ) - ] - ) - else: - return ConfigurationGroup( - ) - """ - - def testConfigurationGroup(self): - """Test ConfigurationGroup""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration_group_create.py b/qaseio/tests/tests_qaseio/test_configuration_group_create.py deleted file mode 100644 index d0b2b496..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration_group_create.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration_group_create import ConfigurationGroupCreate - -class TestConfigurationGroupCreate(unittest.TestCase): - """ConfigurationGroupCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigurationGroupCreate: - """Test ConfigurationGroupCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigurationGroupCreate` - """ - model = ConfigurationGroupCreate() - if include_optional: - return ConfigurationGroupCreate( - title = '' - ) - else: - return ConfigurationGroupCreate( - title = '', - ) - """ - - def testConfigurationGroupCreate(self): - """Test ConfigurationGroupCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration_list_response.py b/qaseio/tests/tests_qaseio/test_configuration_list_response.py deleted file mode 100644 index 71e1d66c..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration_list_response.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration_list_response import ConfigurationListResponse - -class TestConfigurationListResponse(unittest.TestCase): - """ConfigurationListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigurationListResponse: - """Test ConfigurationListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigurationListResponse` - """ - model = ConfigurationListResponse() - if include_optional: - return ConfigurationListResponse( - status = True, - result = qaseio.models.configuration_list_response_all_of_result.ConfigurationListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.configuration_group.ConfigurationGroup( - id = 56, - title = '', - configurations = [ - qaseio.models.configuration.Configuration( - id = 56, - title = '', ) - ], ) - ], ) - ) - else: - return ConfigurationListResponse( - ) - """ - - def testConfigurationListResponse(self): - """Test ConfigurationListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configuration_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_configuration_list_response_all_of_result.py deleted file mode 100644 index 4c8f3167..00000000 --- a/qaseio/tests/tests_qaseio/test_configuration_list_response_all_of_result.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult - -class TestConfigurationListResponseAllOfResult(unittest.TestCase): - """ConfigurationListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ConfigurationListResponseAllOfResult: - """Test ConfigurationListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ConfigurationListResponseAllOfResult` - """ - model = ConfigurationListResponseAllOfResult() - if include_optional: - return ConfigurationListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.configuration_group.ConfigurationGroup( - id = 56, - title = '', - configurations = [ - qaseio.models.configuration.Configuration( - id = 56, - title = '', ) - ], ) - ] - ) - else: - return ConfigurationListResponseAllOfResult( - ) - """ - - def testConfigurationListResponseAllOfResult(self): - """Test ConfigurationListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_configurations_api.py b/qaseio/tests/tests_qaseio/test_configurations_api.py deleted file mode 100644 index d46cd471..00000000 --- a/qaseio/tests/tests_qaseio/test_configurations_api.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.configurations_api import ConfigurationsApi - - -class TestConfigurationsApi(unittest.TestCase): - """ConfigurationsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ConfigurationsApi() - - def tearDown(self) -> None: - pass - - def test_create_configuration(self) -> None: - """Test case for create_configuration - - Create a new configuration in a particular group. - """ - pass - - def test_create_configuration_group(self) -> None: - """Test case for create_configuration_group - - Create a new configuration group. - """ - pass - - def test_get_configurations(self) -> None: - """Test case for get_configurations - - Get all configuration groups with configurations. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field.py b/qaseio/tests/tests_qaseio/test_custom_field.py deleted file mode 100644 index 9f1c61d0..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field import CustomField - -class TestCustomField(unittest.TestCase): - """CustomField unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomField: - """Test CustomField - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomField` - """ - model = CustomField() - if include_optional: - return CustomField( - id = 56, - title = '', - entity = '', - type = '', - placeholder = '', - default_value = '', - value = '', - is_required = True, - is_visible = True, - is_filterable = True, - is_enabled_for_all_projects = True, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - projects_codes = [ - '' - ] - ) - else: - return CustomField( - ) - """ - - def testCustomField(self): - """Test CustomField""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_create.py b/qaseio/tests/tests_qaseio/test_custom_field_create.py deleted file mode 100644 index d6931b69..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_create.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_create import CustomFieldCreate - -class TestCustomFieldCreate(unittest.TestCase): - """CustomFieldCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldCreate: - """Test CustomFieldCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldCreate` - """ - model = CustomFieldCreate() - if include_optional: - return CustomFieldCreate( - title = '', - value = [ - qaseio.models.custom_field_create_value_inner.CustomFieldCreate_value_inner( - id = 56, - title = '', ) - ], - entity = 0, - type = 0, - placeholder = '', - default_value = '', - is_filterable = True, - is_visible = True, - is_required = True, - is_enabled_for_all_projects = True, - projects_codes = [ - '' - ] - ) - else: - return CustomFieldCreate( - title = '', - entity = 0, - type = 0, - ) - """ - - def testCustomFieldCreate(self): - """Test CustomFieldCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_create_value_inner.py b/qaseio/tests/tests_qaseio/test_custom_field_create_value_inner.py deleted file mode 100644 index d3ca59a8..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_create_value_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_create_value_inner import CustomFieldCreateValueInner - -class TestCustomFieldCreateValueInner(unittest.TestCase): - """CustomFieldCreateValueInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldCreateValueInner: - """Test CustomFieldCreateValueInner - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldCreateValueInner` - """ - model = CustomFieldCreateValueInner() - if include_optional: - return CustomFieldCreateValueInner( - id = 56, - title = '' - ) - else: - return CustomFieldCreateValueInner( - ) - """ - - def testCustomFieldCreateValueInner(self): - """Test CustomFieldCreateValueInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_list_response.py b/qaseio/tests/tests_qaseio/test_custom_field_list_response.py deleted file mode 100644 index d8560b65..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_list_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_list_response import CustomFieldListResponse - -class TestCustomFieldListResponse(unittest.TestCase): - """CustomFieldListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldListResponse: - """Test CustomFieldListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldListResponse` - """ - model = CustomFieldListResponse() - if include_optional: - return CustomFieldListResponse( - status = True, - result = qaseio.models.custom_fields_response_all_of_result.CustomFieldsResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.custom_field.CustomField( - id = 56, - title = '', - entity = '', - type = '', - placeholder = '', - default_value = '', - value = '', - is_required = True, - is_visible = True, - is_filterable = True, - is_enabled_for_all_projects = True, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - projects_codes = [ - '' - ], ) - ], ) - ) - else: - return CustomFieldListResponse( - ) - """ - - def testCustomFieldListResponse(self): - """Test CustomFieldListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_response.py b/qaseio/tests/tests_qaseio/test_custom_field_response.py deleted file mode 100644 index 34885314..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_response import CustomFieldResponse - -class TestCustomFieldResponse(unittest.TestCase): - """CustomFieldResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldResponse: - """Test CustomFieldResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldResponse` - """ - model = CustomFieldResponse() - if include_optional: - return CustomFieldResponse( - status = True, - result = qaseio.models.custom_field.CustomField( - id = 56, - title = '', - entity = '', - type = '', - placeholder = '', - default_value = '', - value = '', - is_required = True, - is_visible = True, - is_filterable = True, - is_enabled_for_all_projects = True, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - projects_codes = [ - '' - ], ) - ) - else: - return CustomFieldResponse( - ) - """ - - def testCustomFieldResponse(self): - """Test CustomFieldResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_update.py b/qaseio/tests/tests_qaseio/test_custom_field_update.py deleted file mode 100644 index 2568c738..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_update.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_update import CustomFieldUpdate - -class TestCustomFieldUpdate(unittest.TestCase): - """CustomFieldUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldUpdate: - """Test CustomFieldUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldUpdate` - """ - model = CustomFieldUpdate() - if include_optional: - return CustomFieldUpdate( - title = '', - value = [ - qaseio.models.custom_field_create_value_inner.CustomFieldCreate_value_inner( - id = 56, - title = '', ) - ], - replace_values = { - 'key' : '' - }, - placeholder = '', - default_value = '', - is_filterable = True, - is_visible = True, - is_required = True, - is_enabled_for_all_projects = True, - projects_codes = [ - '' - ] - ) - else: - return CustomFieldUpdate( - title = '', - ) - """ - - def testCustomFieldUpdate(self): - """Test CustomFieldUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_field_value.py b/qaseio/tests/tests_qaseio/test_custom_field_value.py deleted file mode 100644 index a803f5df..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_field_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_field_value import CustomFieldValue - -class TestCustomFieldValue(unittest.TestCase): - """CustomFieldValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldValue: - """Test CustomFieldValue - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldValue` - """ - model = CustomFieldValue() - if include_optional: - return CustomFieldValue( - id = 56, - value = '' - ) - else: - return CustomFieldValue( - ) - """ - - def testCustomFieldValue(self): - """Test CustomFieldValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_fields_api.py b/qaseio/tests/tests_qaseio/test_custom_fields_api.py deleted file mode 100644 index e57f19ab..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_fields_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.custom_fields_api import CustomFieldsApi - - -class TestCustomFieldsApi(unittest.TestCase): - """CustomFieldsApi unit test stubs""" - - def setUp(self) -> None: - self.api = CustomFieldsApi() - - def tearDown(self) -> None: - pass - - def test_create_custom_field(self) -> None: - """Test case for create_custom_field - - Create new Custom Field. - """ - pass - - def test_delete_custom_field(self) -> None: - """Test case for delete_custom_field - - Delete Custom Field by id. - """ - pass - - def test_get_custom_field(self) -> None: - """Test case for get_custom_field - - Get Custom Field by id. - """ - pass - - def test_get_custom_fields(self) -> None: - """Test case for get_custom_fields - - Get all Custom Fields. - """ - pass - - def test_update_custom_field(self) -> None: - """Test case for update_custom_field - - Update Custom Field by id. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_fields_response.py b/qaseio/tests/tests_qaseio/test_custom_fields_response.py deleted file mode 100644 index adaaec37..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_fields_response.py +++ /dev/null @@ -1,78 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_fields_response import CustomFieldsResponse - -class TestCustomFieldsResponse(unittest.TestCase): - """CustomFieldsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldsResponse: - """Test CustomFieldsResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldsResponse` - """ - model = CustomFieldsResponse() - if include_optional: - return CustomFieldsResponse( - status = True, - result = qaseio.models.custom_fields_response_all_of_result.CustomFieldsResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.custom_field.CustomField( - id = 56, - title = '', - entity = '', - type = '', - placeholder = '', - default_value = '', - value = '', - is_required = True, - is_visible = True, - is_filterable = True, - is_enabled_for_all_projects = True, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - projects_codes = [ - '' - ], ) - ], ) - ) - else: - return CustomFieldsResponse( - ) - """ - - def testCustomFieldsResponse(self): - """Test CustomFieldsResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_custom_fields_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_custom_fields_response_all_of_result.py deleted file mode 100644 index 63d8481d..00000000 --- a/qaseio/tests/tests_qaseio/test_custom_fields_response_all_of_result.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult - -class TestCustomFieldsResponseAllOfResult(unittest.TestCase): - """CustomFieldsResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CustomFieldsResponseAllOfResult: - """Test CustomFieldsResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CustomFieldsResponseAllOfResult` - """ - model = CustomFieldsResponseAllOfResult() - if include_optional: - return CustomFieldsResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.custom_field.CustomField( - id = 56, - title = '', - entity = '', - type = '', - placeholder = '', - default_value = '', - value = '', - is_required = True, - is_visible = True, - is_filterable = True, - is_enabled_for_all_projects = True, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - projects_codes = [ - '' - ], ) - ] - ) - else: - return CustomFieldsResponseAllOfResult( - ) - """ - - def testCustomFieldsResponseAllOfResult(self): - """Test CustomFieldsResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect.py b/qaseio/tests/tests_qaseio/test_defect.py deleted file mode 100644 index bad54181..00000000 --- a/qaseio/tests/tests_qaseio/test_defect.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect import Defect - -class TestDefect(unittest.TestCase): - """Defect unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Defect: - """Test Defect - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Defect` - """ - model = Defect() - if include_optional: - return Defect( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved_at = '2021-12-30T19:23:59Z', - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59' - ) - else: - return Defect( - ) - """ - - def testDefect(self): - """Test Defect""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_create.py b/qaseio/tests/tests_qaseio/test_defect_create.py deleted file mode 100644 index 29c1d0e7..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_create.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_create import DefectCreate - -class TestDefectCreate(unittest.TestCase): - """DefectCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectCreate: - """Test DefectCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectCreate` - """ - model = DefectCreate() - if include_optional: - return DefectCreate( - title = '', - actual_result = '', - severity = 56, - milestone_id = 56, - attachments = [ - '' - ], - custom_field = { - 'key' : '' - }, - tags = [ - '' - ] - ) - else: - return DefectCreate( - title = '', - actual_result = '', - severity = 56, - ) - """ - - def testDefectCreate(self): - """Test DefectCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_list_response.py b/qaseio/tests/tests_qaseio/test_defect_list_response.py deleted file mode 100644 index 54e5ada5..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_list_response.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_list_response import DefectListResponse - -class TestDefectListResponse(unittest.TestCase): - """DefectListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectListResponse: - """Test DefectListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectListResponse` - """ - model = DefectListResponse() - if include_optional: - return DefectListResponse( - status = True, - result = qaseio.models.defect_list_response_all_of_result.DefectListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.defect.Defect( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved_at = '2021-12-30T19:23:59Z', - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', ) - ], ) - ) - else: - return DefectListResponse( - ) - """ - - def testDefectListResponse(self): - """Test DefectListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_defect_list_response_all_of_result.py deleted file mode 100644 index 11317338..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_list_response_all_of_result.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_list_response_all_of_result import DefectListResponseAllOfResult - -class TestDefectListResponseAllOfResult(unittest.TestCase): - """DefectListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectListResponseAllOfResult: - """Test DefectListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectListResponseAllOfResult` - """ - model = DefectListResponseAllOfResult() - if include_optional: - return DefectListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.defect.Defect( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved_at = '2021-12-30T19:23:59Z', - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', ) - ] - ) - else: - return DefectListResponseAllOfResult( - ) - """ - - def testDefectListResponseAllOfResult(self): - """Test DefectListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_query.py b/qaseio/tests/tests_qaseio/test_defect_query.py deleted file mode 100644 index a81dd59d..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_query.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_query import DefectQuery - -class TestDefectQuery(unittest.TestCase): - """DefectQuery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectQuery: - """Test DefectQuery - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectQuery` - """ - model = DefectQuery() - if include_optional: - return DefectQuery( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return DefectQuery( - ) - """ - - def testDefectQuery(self): - """Test DefectQuery""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_response.py b/qaseio/tests/tests_qaseio/test_defect_response.py deleted file mode 100644 index a78e51f9..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_response.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_response import DefectResponse - -class TestDefectResponse(unittest.TestCase): - """DefectResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectResponse: - """Test DefectResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectResponse` - """ - model = DefectResponse() - if include_optional: - return DefectResponse( - status = True, - result = qaseio.models.defect.Defect( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved_at = '2021-12-30T19:23:59Z', - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', ) - ) - else: - return DefectResponse( - ) - """ - - def testDefectResponse(self): - """Test DefectResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_status.py b/qaseio/tests/tests_qaseio/test_defect_status.py deleted file mode 100644 index c7313af0..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_status.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_status import DefectStatus - -class TestDefectStatus(unittest.TestCase): - """DefectStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectStatus: - """Test DefectStatus - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectStatus` - """ - model = DefectStatus() - if include_optional: - return DefectStatus( - status = 'in_progress' - ) - else: - return DefectStatus( - status = 'in_progress', - ) - """ - - def testDefectStatus(self): - """Test DefectStatus""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defect_update.py b/qaseio/tests/tests_qaseio/test_defect_update.py deleted file mode 100644 index 1741cfdb..00000000 --- a/qaseio/tests/tests_qaseio/test_defect_update.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.defect_update import DefectUpdate - -class TestDefectUpdate(unittest.TestCase): - """DefectUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DefectUpdate: - """Test DefectUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DefectUpdate` - """ - model = DefectUpdate() - if include_optional: - return DefectUpdate( - title = '', - actual_result = '', - severity = 56, - milestone_id = 56, - attachments = [ - '' - ], - custom_field = { - 'key' : '' - }, - tags = [ - '' - ] - ) - else: - return DefectUpdate( - ) - """ - - def testDefectUpdate(self): - """Test DefectUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_defects_api.py b/qaseio/tests/tests_qaseio/test_defects_api.py deleted file mode 100644 index 15a0368d..00000000 --- a/qaseio/tests/tests_qaseio/test_defects_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.defects_api import DefectsApi - - -class TestDefectsApi(unittest.TestCase): - """DefectsApi unit test stubs""" - - def setUp(self) -> None: - self.api = DefectsApi() - - def tearDown(self) -> None: - pass - - def test_create_defect(self) -> None: - """Test case for create_defect - - Create a new defect. - """ - pass - - def test_delete_defect(self) -> None: - """Test case for delete_defect - - Delete defect. - """ - pass - - def test_get_defect(self) -> None: - """Test case for get_defect - - Get a specific defect. - """ - pass - - def test_get_defects(self) -> None: - """Test case for get_defects - - Get all defects. - """ - pass - - def test_resolve_defect(self) -> None: - """Test case for resolve_defect - - Resolve a specific defect. - """ - pass - - def test_update_defect(self) -> None: - """Test case for update_defect - - Update defect. - """ - pass - - def test_update_defect_status(self) -> None: - """Test case for update_defect_status - - Update a specific defect status. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment.py b/qaseio/tests/tests_qaseio/test_environment.py deleted file mode 100644 index f9c43943..00000000 --- a/qaseio/tests/tests_qaseio/test_environment.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment import Environment - -class TestEnvironment(unittest.TestCase): - """Environment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Environment: - """Test Environment - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Environment` - """ - model = Environment() - if include_optional: - return Environment( - id = 56, - title = '', - description = '', - slug = '', - host = '' - ) - else: - return Environment( - ) - """ - - def testEnvironment(self): - """Test Environment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment_create.py b/qaseio/tests/tests_qaseio/test_environment_create.py deleted file mode 100644 index b997cbdf..00000000 --- a/qaseio/tests/tests_qaseio/test_environment_create.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment_create import EnvironmentCreate - -class TestEnvironmentCreate(unittest.TestCase): - """EnvironmentCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnvironmentCreate: - """Test EnvironmentCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EnvironmentCreate` - """ - model = EnvironmentCreate() - if include_optional: - return EnvironmentCreate( - title = '', - description = '', - slug = '', - host = '' - ) - else: - return EnvironmentCreate( - title = '', - slug = '', - ) - """ - - def testEnvironmentCreate(self): - """Test EnvironmentCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment_list_response.py b/qaseio/tests/tests_qaseio/test_environment_list_response.py deleted file mode 100644 index 238231ac..00000000 --- a/qaseio/tests/tests_qaseio/test_environment_list_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment_list_response import EnvironmentListResponse - -class TestEnvironmentListResponse(unittest.TestCase): - """EnvironmentListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnvironmentListResponse: - """Test EnvironmentListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EnvironmentListResponse` - """ - model = EnvironmentListResponse() - if include_optional: - return EnvironmentListResponse( - status = True, - result = qaseio.models.environment_list_response_all_of_result.EnvironmentListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.environment.Environment( - id = 56, - title = '', - description = '', - slug = '', - host = '', ) - ], ) - ) - else: - return EnvironmentListResponse( - ) - """ - - def testEnvironmentListResponse(self): - """Test EnvironmentListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_environment_list_response_all_of_result.py deleted file mode 100644 index 897343be..00000000 --- a/qaseio/tests/tests_qaseio/test_environment_list_response_all_of_result.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult - -class TestEnvironmentListResponseAllOfResult(unittest.TestCase): - """EnvironmentListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnvironmentListResponseAllOfResult: - """Test EnvironmentListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EnvironmentListResponseAllOfResult` - """ - model = EnvironmentListResponseAllOfResult() - if include_optional: - return EnvironmentListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.environment.Environment( - id = 56, - title = '', - description = '', - slug = '', - host = '', ) - ] - ) - else: - return EnvironmentListResponseAllOfResult( - ) - """ - - def testEnvironmentListResponseAllOfResult(self): - """Test EnvironmentListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment_response.py b/qaseio/tests/tests_qaseio/test_environment_response.py deleted file mode 100644 index 174df147..00000000 --- a/qaseio/tests/tests_qaseio/test_environment_response.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment_response import EnvironmentResponse - -class TestEnvironmentResponse(unittest.TestCase): - """EnvironmentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnvironmentResponse: - """Test EnvironmentResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EnvironmentResponse` - """ - model = EnvironmentResponse() - if include_optional: - return EnvironmentResponse( - status = True, - result = qaseio.models.environment.Environment( - id = 56, - title = '', - description = '', - slug = '', - host = '', ) - ) - else: - return EnvironmentResponse( - ) - """ - - def testEnvironmentResponse(self): - """Test EnvironmentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environment_update.py b/qaseio/tests/tests_qaseio/test_environment_update.py deleted file mode 100644 index 008f50e6..00000000 --- a/qaseio/tests/tests_qaseio/test_environment_update.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.environment_update import EnvironmentUpdate - -class TestEnvironmentUpdate(unittest.TestCase): - """EnvironmentUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> EnvironmentUpdate: - """Test EnvironmentUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `EnvironmentUpdate` - """ - model = EnvironmentUpdate() - if include_optional: - return EnvironmentUpdate( - title = '', - description = '', - slug = '', - host = '' - ) - else: - return EnvironmentUpdate( - ) - """ - - def testEnvironmentUpdate(self): - """Test EnvironmentUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_environments_api.py b/qaseio/tests/tests_qaseio/test_environments_api.py deleted file mode 100644 index 994d4b3c..00000000 --- a/qaseio/tests/tests_qaseio/test_environments_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.environments_api import EnvironmentsApi - - -class TestEnvironmentsApi(unittest.TestCase): - """EnvironmentsApi unit test stubs""" - - def setUp(self) -> None: - self.api = EnvironmentsApi() - - def tearDown(self) -> None: - pass - - def test_create_environment(self) -> None: - """Test case for create_environment - - Create a new environment. - """ - pass - - def test_delete_environment(self) -> None: - """Test case for delete_environment - - Delete environment. - """ - pass - - def test_get_environment(self) -> None: - """Test case for get_environment - - Get a specific environment. - """ - pass - - def test_get_environments(self) -> None: - """Test case for get_environments - - Get all environments. - """ - pass - - def test_update_environment(self) -> None: - """Test case for update_environment - - Update environment. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_external_issue.py b/qaseio/tests/tests_qaseio/test_external_issue.py deleted file mode 100644 index fad10882..00000000 --- a/qaseio/tests/tests_qaseio/test_external_issue.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.external_issue import ExternalIssue - -class TestExternalIssue(unittest.TestCase): - """ExternalIssue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalIssue: - """Test ExternalIssue - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalIssue` - """ - model = ExternalIssue() - if include_optional: - return ExternalIssue( - type = '', - issues = [ - qaseio.models.external_issue_issues_inner.ExternalIssue_issues_inner( - id = '', - link = '', ) - ] - ) - else: - return ExternalIssue( - ) - """ - - def testExternalIssue(self): - """Test ExternalIssue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_external_issue_issues_inner.py b/qaseio/tests/tests_qaseio/test_external_issue_issues_inner.py deleted file mode 100644 index eb10ff4a..00000000 --- a/qaseio/tests/tests_qaseio/test_external_issue_issues_inner.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.external_issue_issues_inner import ExternalIssueIssuesInner - -class TestExternalIssueIssuesInner(unittest.TestCase): - """ExternalIssueIssuesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExternalIssueIssuesInner: - """Test ExternalIssueIssuesInner - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExternalIssueIssuesInner` - """ - model = ExternalIssueIssuesInner() - if include_optional: - return ExternalIssueIssuesInner( - id = '', - link = '' - ) - else: - return ExternalIssueIssuesInner( - ) - """ - - def testExternalIssueIssuesInner(self): - """Test ExternalIssueIssuesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_hash_response.py b/qaseio/tests/tests_qaseio/test_hash_response.py deleted file mode 100644 index 63cbf026..00000000 --- a/qaseio/tests/tests_qaseio/test_hash_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.hash_response import HashResponse - -class TestHashResponse(unittest.TestCase): - """HashResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HashResponse: - """Test HashResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HashResponse` - """ - model = HashResponse() - if include_optional: - return HashResponse( - status = True, - result = qaseio.models.hash_response_all_of_result.HashResponse_allOf_result( - hash = '', ) - ) - else: - return HashResponse( - ) - """ - - def testHashResponse(self): - """Test HashResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_hash_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_hash_response_all_of_result.py deleted file mode 100644 index 0814cd2b..00000000 --- a/qaseio/tests/tests_qaseio/test_hash_response_all_of_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.hash_response_all_of_result import HashResponseAllOfResult - -class TestHashResponseAllOfResult(unittest.TestCase): - """HashResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HashResponseAllOfResult: - """Test HashResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HashResponseAllOfResult` - """ - model = HashResponseAllOfResult() - if include_optional: - return HashResponseAllOfResult( - hash = '' - ) - else: - return HashResponseAllOfResult( - ) - """ - - def testHashResponseAllOfResult(self): - """Test HashResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_id_response.py b/qaseio/tests/tests_qaseio/test_id_response.py deleted file mode 100644 index 42528b72..00000000 --- a/qaseio/tests/tests_qaseio/test_id_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.id_response import IdResponse - -class TestIdResponse(unittest.TestCase): - """IdResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IdResponse: - """Test IdResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IdResponse` - """ - model = IdResponse() - if include_optional: - return IdResponse( - status = True, - result = qaseio.models.id_response_all_of_result.IdResponse_allOf_result( - id = 56, ) - ) - else: - return IdResponse( - ) - """ - - def testIdResponse(self): - """Test IdResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_id_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_id_response_all_of_result.py deleted file mode 100644 index 809aa654..00000000 --- a/qaseio/tests/tests_qaseio/test_id_response_all_of_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.id_response_all_of_result import IdResponseAllOfResult - -class TestIdResponseAllOfResult(unittest.TestCase): - """IdResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IdResponseAllOfResult: - """Test IdResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IdResponseAllOfResult` - """ - model = IdResponseAllOfResult() - if include_optional: - return IdResponseAllOfResult( - id = 56 - ) - else: - return IdResponseAllOfResult( - ) - """ - - def testIdResponseAllOfResult(self): - """Test IdResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone.py b/qaseio/tests/tests_qaseio/test_milestone.py deleted file mode 100644 index a468bf5f..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone import Milestone - -class TestMilestone(unittest.TestCase): - """Milestone unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Milestone: - """Test Milestone - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Milestone` - """ - model = Milestone() - if include_optional: - return Milestone( - id = 56, - title = '', - description = '', - status = 'completed', - due_date = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return Milestone( - ) - """ - - def testMilestone(self): - """Test Milestone""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone_create.py b/qaseio/tests/tests_qaseio/test_milestone_create.py deleted file mode 100644 index bb54cd13..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone_create.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone_create import MilestoneCreate - -class TestMilestoneCreate(unittest.TestCase): - """MilestoneCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MilestoneCreate: - """Test MilestoneCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MilestoneCreate` - """ - model = MilestoneCreate() - if include_optional: - return MilestoneCreate( - title = '', - description = '', - status = 'completed', - due_date = 56 - ) - else: - return MilestoneCreate( - title = '', - ) - """ - - def testMilestoneCreate(self): - """Test MilestoneCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone_list_response.py b/qaseio/tests/tests_qaseio/test_milestone_list_response.py deleted file mode 100644 index 6469258b..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone_list_response.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone_list_response import MilestoneListResponse - -class TestMilestoneListResponse(unittest.TestCase): - """MilestoneListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MilestoneListResponse: - """Test MilestoneListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MilestoneListResponse` - """ - model = MilestoneListResponse() - if include_optional: - return MilestoneListResponse( - status = True, - result = qaseio.models.milestone_list_response_all_of_result.MilestoneListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.milestone.Milestone( - id = 56, - title = '', - description = '', - status = 'completed', - due_date = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ], ) - ) - else: - return MilestoneListResponse( - ) - """ - - def testMilestoneListResponse(self): - """Test MilestoneListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_milestone_list_response_all_of_result.py deleted file mode 100644 index 6fae8f6b..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone_list_response_all_of_result.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult - -class TestMilestoneListResponseAllOfResult(unittest.TestCase): - """MilestoneListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MilestoneListResponseAllOfResult: - """Test MilestoneListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MilestoneListResponseAllOfResult` - """ - model = MilestoneListResponseAllOfResult() - if include_optional: - return MilestoneListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.milestone.Milestone( - id = 56, - title = '', - description = '', - status = 'completed', - due_date = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ] - ) - else: - return MilestoneListResponseAllOfResult( - ) - """ - - def testMilestoneListResponseAllOfResult(self): - """Test MilestoneListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone_response.py b/qaseio/tests/tests_qaseio/test_milestone_response.py deleted file mode 100644 index 7b82616d..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone_response.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone_response import MilestoneResponse - -class TestMilestoneResponse(unittest.TestCase): - """MilestoneResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MilestoneResponse: - """Test MilestoneResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MilestoneResponse` - """ - model = MilestoneResponse() - if include_optional: - return MilestoneResponse( - status = True, - result = qaseio.models.milestone.Milestone( - id = 56, - title = '', - description = '', - status = 'completed', - due_date = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ) - else: - return MilestoneResponse( - ) - """ - - def testMilestoneResponse(self): - """Test MilestoneResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestone_update.py b/qaseio/tests/tests_qaseio/test_milestone_update.py deleted file mode 100644 index f87e5b3b..00000000 --- a/qaseio/tests/tests_qaseio/test_milestone_update.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.milestone_update import MilestoneUpdate - -class TestMilestoneUpdate(unittest.TestCase): - """MilestoneUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> MilestoneUpdate: - """Test MilestoneUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `MilestoneUpdate` - """ - model = MilestoneUpdate() - if include_optional: - return MilestoneUpdate( - title = '', - description = '', - status = 'completed' - ) - else: - return MilestoneUpdate( - ) - """ - - def testMilestoneUpdate(self): - """Test MilestoneUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_milestones_api.py b/qaseio/tests/tests_qaseio/test_milestones_api.py deleted file mode 100644 index e77d05da..00000000 --- a/qaseio/tests/tests_qaseio/test_milestones_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.milestones_api import MilestonesApi - - -class TestMilestonesApi(unittest.TestCase): - """MilestonesApi unit test stubs""" - - def setUp(self) -> None: - self.api = MilestonesApi() - - def tearDown(self) -> None: - pass - - def test_create_milestone(self) -> None: - """Test case for create_milestone - - Create a new milestone. - """ - pass - - def test_delete_milestone(self) -> None: - """Test case for delete_milestone - - Delete milestone. - """ - pass - - def test_get_milestone(self) -> None: - """Test case for get_milestone - - Get a specific milestone. - """ - pass - - def test_get_milestones(self) -> None: - """Test case for get_milestones - - Get all milestones. - """ - pass - - def test_update_milestone(self) -> None: - """Test case for update_milestone - - Update milestone. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan.py b/qaseio/tests/tests_qaseio/test_plan.py deleted file mode 100644 index 32968be7..00000000 --- a/qaseio/tests/tests_qaseio/test_plan.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan import Plan - -class TestPlan(unittest.TestCase): - """Plan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Plan: - """Test Plan - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Plan` - """ - model = Plan() - if include_optional: - return Plan( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59' - ) - else: - return Plan( - ) - """ - - def testPlan(self): - """Test Plan""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_create.py b/qaseio/tests/tests_qaseio/test_plan_create.py deleted file mode 100644 index 64dc4269..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_create.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_create import PlanCreate - -class TestPlanCreate(unittest.TestCase): - """PlanCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanCreate: - """Test PlanCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanCreate` - """ - model = PlanCreate() - if include_optional: - return PlanCreate( - title = '', - description = '', - cases = [ - 56 - ] - ) - else: - return PlanCreate( - title = '', - cases = [ - 56 - ], - ) - """ - - def testPlanCreate(self): - """Test PlanCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_detailed.py b/qaseio/tests/tests_qaseio/test_plan_detailed.py deleted file mode 100644 index 33991341..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_detailed.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_detailed import PlanDetailed - -class TestPlanDetailed(unittest.TestCase): - """PlanDetailed unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanDetailed: - """Test PlanDetailed - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanDetailed` - """ - model = PlanDetailed() - if include_optional: - return PlanDetailed( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - average_time = 1.337, - cases = [ - qaseio.models.plan_detailed_all_of_cases.PlanDetailed_allOf_cases( - case_id = 56, - assignee_id = 56, ) - ] - ) - else: - return PlanDetailed( - ) - """ - - def testPlanDetailed(self): - """Test PlanDetailed""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_detailed_all_of_cases.py b/qaseio/tests/tests_qaseio/test_plan_detailed_all_of_cases.py deleted file mode 100644 index 578858c4..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_detailed_all_of_cases.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases - -class TestPlanDetailedAllOfCases(unittest.TestCase): - """PlanDetailedAllOfCases unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanDetailedAllOfCases: - """Test PlanDetailedAllOfCases - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanDetailedAllOfCases` - """ - model = PlanDetailedAllOfCases() - if include_optional: - return PlanDetailedAllOfCases( - case_id = 56, - assignee_id = 56 - ) - else: - return PlanDetailedAllOfCases( - ) - """ - - def testPlanDetailedAllOfCases(self): - """Test PlanDetailedAllOfCases""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_list_response.py b/qaseio/tests/tests_qaseio/test_plan_list_response.py deleted file mode 100644 index ff730ec7..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_list_response.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_list_response import PlanListResponse - -class TestPlanListResponse(unittest.TestCase): - """PlanListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanListResponse: - """Test PlanListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanListResponse` - """ - model = PlanListResponse() - if include_optional: - return PlanListResponse( - status = True, - result = qaseio.models.plan_list_response_all_of_result.PlanListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.plan.Plan( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', ) - ], ) - ) - else: - return PlanListResponse( - ) - """ - - def testPlanListResponse(self): - """Test PlanListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_plan_list_response_all_of_result.py deleted file mode 100644 index abae60cb..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_list_response_all_of_result.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_list_response_all_of_result import PlanListResponseAllOfResult - -class TestPlanListResponseAllOfResult(unittest.TestCase): - """PlanListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanListResponseAllOfResult: - """Test PlanListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanListResponseAllOfResult` - """ - model = PlanListResponseAllOfResult() - if include_optional: - return PlanListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.plan.Plan( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', ) - ] - ) - else: - return PlanListResponseAllOfResult( - ) - """ - - def testPlanListResponseAllOfResult(self): - """Test PlanListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_query.py b/qaseio/tests/tests_qaseio/test_plan_query.py deleted file mode 100644 index 7176e137..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_query.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_query import PlanQuery - -class TestPlanQuery(unittest.TestCase): - """PlanQuery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanQuery: - """Test PlanQuery - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanQuery` - """ - model = PlanQuery() - if include_optional: - return PlanQuery( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return PlanQuery( - ) - """ - - def testPlanQuery(self): - """Test PlanQuery""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_response.py b/qaseio/tests/tests_qaseio/test_plan_response.py deleted file mode 100644 index ccea0ce8..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_response.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_response import PlanResponse - -class TestPlanResponse(unittest.TestCase): - """PlanResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanResponse: - """Test PlanResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanResponse` - """ - model = PlanResponse() - if include_optional: - return PlanResponse( - status = True, - result = None - ) - else: - return PlanResponse( - ) - """ - - def testPlanResponse(self): - """Test PlanResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plan_update.py b/qaseio/tests/tests_qaseio/test_plan_update.py deleted file mode 100644 index b9bce5c3..00000000 --- a/qaseio/tests/tests_qaseio/test_plan_update.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.plan_update import PlanUpdate - -class TestPlanUpdate(unittest.TestCase): - """PlanUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PlanUpdate: - """Test PlanUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PlanUpdate` - """ - model = PlanUpdate() - if include_optional: - return PlanUpdate( - title = '', - description = '', - cases = [ - 56 - ] - ) - else: - return PlanUpdate( - ) - """ - - def testPlanUpdate(self): - """Test PlanUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_plans_api.py b/qaseio/tests/tests_qaseio/test_plans_api.py deleted file mode 100644 index ecb24091..00000000 --- a/qaseio/tests/tests_qaseio/test_plans_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.plans_api import PlansApi - - -class TestPlansApi(unittest.TestCase): - """PlansApi unit test stubs""" - - def setUp(self) -> None: - self.api = PlansApi() - - def tearDown(self) -> None: - pass - - def test_create_plan(self) -> None: - """Test case for create_plan - - Create a new plan. - """ - pass - - def test_delete_plan(self) -> None: - """Test case for delete_plan - - Delete plan. - """ - pass - - def test_get_plan(self) -> None: - """Test case for get_plan - - Get a specific plan. - """ - pass - - def test_get_plans(self) -> None: - """Test case for get_plans - - Get all plans. - """ - pass - - def test_update_plan(self) -> None: - """Test case for update_plan - - Update plan. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project.py b/qaseio/tests/tests_qaseio/test_project.py deleted file mode 100644 index 1b9e0d48..00000000 --- a/qaseio/tests/tests_qaseio/test_project.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project import Project - -class TestProject(unittest.TestCase): - """Project unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Project: - """Test Project - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Project` - """ - model = Project() - if include_optional: - return Project( - title = '', - code = '', - counts = qaseio.models.project_counts.Project_counts( - cases = 56, - suites = 56, - milestones = 56, - runs = qaseio.models.project_counts_runs.Project_counts_runs( - total = 56, - active = 56, ), - defects = qaseio.models.project_counts_defects.Project_counts_defects( - total = 56, - open = 56, ), ) - ) - else: - return Project( - ) - """ - - def testProject(self): - """Test Project""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_access.py b/qaseio/tests/tests_qaseio/test_project_access.py deleted file mode 100644 index 769e3ca0..00000000 --- a/qaseio/tests/tests_qaseio/test_project_access.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_access import ProjectAccess - -class TestProjectAccess(unittest.TestCase): - """ProjectAccess unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectAccess: - """Test ProjectAccess - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectAccess` - """ - model = ProjectAccess() - if include_optional: - return ProjectAccess( - member_id = 56 - ) - else: - return ProjectAccess( - ) - """ - - def testProjectAccess(self): - """Test ProjectAccess""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_code_response.py b/qaseio/tests/tests_qaseio/test_project_code_response.py deleted file mode 100644 index 3ecf45ce..00000000 --- a/qaseio/tests/tests_qaseio/test_project_code_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_code_response import ProjectCodeResponse - -class TestProjectCodeResponse(unittest.TestCase): - """ProjectCodeResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCodeResponse: - """Test ProjectCodeResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCodeResponse` - """ - model = ProjectCodeResponse() - if include_optional: - return ProjectCodeResponse( - status = True, - result = qaseio.models.project_code_response_all_of_result.ProjectCodeResponse_allOf_result( - code = '', ) - ) - else: - return ProjectCodeResponse( - ) - """ - - def testProjectCodeResponse(self): - """Test ProjectCodeResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_code_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_project_code_response_all_of_result.py deleted file mode 100644 index adce9366..00000000 --- a/qaseio/tests/tests_qaseio/test_project_code_response_all_of_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult - -class TestProjectCodeResponseAllOfResult(unittest.TestCase): - """ProjectCodeResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCodeResponseAllOfResult: - """Test ProjectCodeResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCodeResponseAllOfResult` - """ - model = ProjectCodeResponseAllOfResult() - if include_optional: - return ProjectCodeResponseAllOfResult( - code = '' - ) - else: - return ProjectCodeResponseAllOfResult( - ) - """ - - def testProjectCodeResponseAllOfResult(self): - """Test ProjectCodeResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_counts.py b/qaseio/tests/tests_qaseio/test_project_counts.py deleted file mode 100644 index 36a2cc0f..00000000 --- a/qaseio/tests/tests_qaseio/test_project_counts.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_counts import ProjectCounts - -class TestProjectCounts(unittest.TestCase): - """ProjectCounts unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCounts: - """Test ProjectCounts - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCounts` - """ - model = ProjectCounts() - if include_optional: - return ProjectCounts( - cases = 56, - suites = 56, - milestones = 56, - runs = qaseio.models.project_counts_runs.Project_counts_runs( - total = 56, - active = 56, ), - defects = qaseio.models.project_counts_defects.Project_counts_defects( - total = 56, - open = 56, ) - ) - else: - return ProjectCounts( - ) - """ - - def testProjectCounts(self): - """Test ProjectCounts""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_counts_defects.py b/qaseio/tests/tests_qaseio/test_project_counts_defects.py deleted file mode 100644 index 1b396f57..00000000 --- a/qaseio/tests/tests_qaseio/test_project_counts_defects.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_counts_defects import ProjectCountsDefects - -class TestProjectCountsDefects(unittest.TestCase): - """ProjectCountsDefects unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCountsDefects: - """Test ProjectCountsDefects - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCountsDefects` - """ - model = ProjectCountsDefects() - if include_optional: - return ProjectCountsDefects( - total = 56, - open = 56 - ) - else: - return ProjectCountsDefects( - ) - """ - - def testProjectCountsDefects(self): - """Test ProjectCountsDefects""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_counts_runs.py b/qaseio/tests/tests_qaseio/test_project_counts_runs.py deleted file mode 100644 index 9016bf79..00000000 --- a/qaseio/tests/tests_qaseio/test_project_counts_runs.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_counts_runs import ProjectCountsRuns - -class TestProjectCountsRuns(unittest.TestCase): - """ProjectCountsRuns unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCountsRuns: - """Test ProjectCountsRuns - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCountsRuns` - """ - model = ProjectCountsRuns() - if include_optional: - return ProjectCountsRuns( - total = 56, - active = 56 - ) - else: - return ProjectCountsRuns( - ) - """ - - def testProjectCountsRuns(self): - """Test ProjectCountsRuns""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_create.py b/qaseio/tests/tests_qaseio/test_project_create.py deleted file mode 100644 index 32fd4a48..00000000 --- a/qaseio/tests/tests_qaseio/test_project_create.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_create import ProjectCreate - -class TestProjectCreate(unittest.TestCase): - """ProjectCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectCreate: - """Test ProjectCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectCreate` - """ - model = ProjectCreate() - if include_optional: - return ProjectCreate( - title = '', - code = 'EiOTgsw', - description = '', - access = 'all', - group = '' - ) - else: - return ProjectCreate( - title = '', - code = 'EiOTgsw', - ) - """ - - def testProjectCreate(self): - """Test ProjectCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_list_response.py b/qaseio/tests/tests_qaseio/test_project_list_response.py deleted file mode 100644 index b530aa79..00000000 --- a/qaseio/tests/tests_qaseio/test_project_list_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_list_response import ProjectListResponse - -class TestProjectListResponse(unittest.TestCase): - """ProjectListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectListResponse: - """Test ProjectListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectListResponse` - """ - model = ProjectListResponse() - if include_optional: - return ProjectListResponse( - status = True, - result = qaseio.models.project_list_response_all_of_result.ProjectListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.project.Project( - title = '', - code = '', - counts = qaseio.models.project_counts.Project_counts( - cases = 56, - suites = 56, - milestones = 56, - runs = qaseio.models.project_counts_runs.Project_counts_runs( - total = 56, - active = 56, ), - defects = qaseio.models.project_counts_defects.Project_counts_defects( - total = 56, - open = 56, ), ), ) - ], ) - ) - else: - return ProjectListResponse( - ) - """ - - def testProjectListResponse(self): - """Test ProjectListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_project_list_response_all_of_result.py deleted file mode 100644 index f7d67547..00000000 --- a/qaseio/tests/tests_qaseio/test_project_list_response_all_of_result.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_list_response_all_of_result import ProjectListResponseAllOfResult - -class TestProjectListResponseAllOfResult(unittest.TestCase): - """ProjectListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectListResponseAllOfResult: - """Test ProjectListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectListResponseAllOfResult` - """ - model = ProjectListResponseAllOfResult() - if include_optional: - return ProjectListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.project.Project( - title = '', - code = '', - counts = qaseio.models.project_counts.Project_counts( - cases = 56, - suites = 56, - milestones = 56, - runs = qaseio.models.project_counts_runs.Project_counts_runs( - total = 56, - active = 56, ), - defects = qaseio.models.project_counts_defects.Project_counts_defects( - total = 56, - open = 56, ), ), ) - ] - ) - else: - return ProjectListResponseAllOfResult( - ) - """ - - def testProjectListResponseAllOfResult(self): - """Test ProjectListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_project_response.py b/qaseio/tests/tests_qaseio/test_project_response.py deleted file mode 100644 index 5dbf266b..00000000 --- a/qaseio/tests/tests_qaseio/test_project_response.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.project_response import ProjectResponse - -class TestProjectResponse(unittest.TestCase): - """ProjectResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ProjectResponse: - """Test ProjectResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ProjectResponse` - """ - model = ProjectResponse() - if include_optional: - return ProjectResponse( - status = True, - result = qaseio.models.project.Project( - title = '', - code = '', - counts = qaseio.models.project_counts.Project_counts( - cases = 56, - suites = 56, - milestones = 56, - runs = qaseio.models.project_counts_runs.Project_counts_runs( - total = 56, - active = 56, ), - defects = qaseio.models.project_counts_defects.Project_counts_defects( - total = 56, - open = 56, ), ), ) - ) - else: - return ProjectResponse( - ) - """ - - def testProjectResponse(self): - """Test ProjectResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_projects_api.py b/qaseio/tests/tests_qaseio/test_projects_api.py deleted file mode 100644 index 9d199ed4..00000000 --- a/qaseio/tests/tests_qaseio/test_projects_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.projects_api import ProjectsApi - - -class TestProjectsApi(unittest.TestCase): - """ProjectsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ProjectsApi() - - def tearDown(self) -> None: - pass - - def test_create_project(self) -> None: - """Test case for create_project - - Create new project. - """ - pass - - def test_delete_project(self) -> None: - """Test case for delete_project - - Delete Project by code. - """ - pass - - def test_get_project(self) -> None: - """Test case for get_project - - Get Project by code. - """ - pass - - def test_get_projects(self) -> None: - """Test case for get_projects - - Get All Projects. - """ - pass - - def test_grant_access_to_project(self) -> None: - """Test case for grant_access_to_project - - Grant access to project by code. - """ - pass - - def test_revoke_access_to_project(self) -> None: - """Test case for revoke_access_to_project - - Revoke access to project by code. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_qql_defect.py b/qaseio/tests/tests_qaseio/test_qql_defect.py deleted file mode 100644 index d973cf70..00000000 --- a/qaseio/tests/tests_qaseio/test_qql_defect.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.qql_defect import QqlDefect - -class TestQqlDefect(unittest.TestCase): - """QqlDefect unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QqlDefect: - """Test QqlDefect - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QqlDefect` - """ - model = QqlDefect() - if include_optional: - return QqlDefect( - id = 56, - title = '', - actual_result = '', - severity = '', - status = '', - milestone_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - resolved = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - member_id = 56, - author_id = 56, - external_data = '', - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return QqlDefect( - ) - """ - - def testQqlDefect(self): - """Test QqlDefect""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_qql_plan.py b/qaseio/tests/tests_qaseio/test_qql_plan.py deleted file mode 100644 index 542dc2fb..00000000 --- a/qaseio/tests/tests_qaseio/test_qql_plan.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.qql_plan import QqlPlan - -class TestQqlPlan(unittest.TestCase): - """QqlPlan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QqlPlan: - """Test QqlPlan - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QqlPlan` - """ - model = QqlPlan() - if include_optional: - return QqlPlan( - id = 56, - title = '', - description = '', - cases_count = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return QqlPlan( - ) - """ - - def testQqlPlan(self): - """Test QqlPlan""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_qql_test_case.py b/qaseio/tests/tests_qaseio/test_qql_test_case.py deleted file mode 100644 index bc9405cd..00000000 --- a/qaseio/tests/tests_qaseio/test_qql_test_case.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.qql_test_case import QqlTestCase - -class TestQqlTestCase(unittest.TestCase): - """QqlTestCase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> QqlTestCase: - """Test QqlTestCase - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `QqlTestCase` - """ - model = QqlTestCase() - if include_optional: - return QqlTestCase( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ], ) - ], - params = None, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return QqlTestCase( - ) - """ - - def testQqlTestCase(self): - """Test QqlTestCase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_requirement.py b/qaseio/tests/tests_qaseio/test_requirement.py deleted file mode 100644 index 6c6d7048..00000000 --- a/qaseio/tests/tests_qaseio/test_requirement.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.requirement import Requirement - -class TestRequirement(unittest.TestCase): - """Requirement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Requirement: - """Test Requirement - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Requirement` - """ - model = Requirement() - if include_optional: - return Requirement( - id = 56, - parent_id = 56, - member_id = 56, - title = '', - description = '', - status = 'valid', - type = 'epic', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return Requirement( - ) - """ - - def testRequirement(self): - """Test Requirement""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_response.py b/qaseio/tests/tests_qaseio/test_response.py deleted file mode 100644 index fae3aa4c..00000000 --- a/qaseio/tests/tests_qaseio/test_response.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.response import Response - -class TestResponse(unittest.TestCase): - """Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Response: - """Test Response - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Response` - """ - model = Response() - if include_optional: - return Response( - status = True - ) - else: - return Response( - ) - """ - - def testResponse(self): - """Test Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result.py b/qaseio/tests/tests_qaseio/test_result.py deleted file mode 100644 index d2c8ed89..00000000 --- a/qaseio/tests/tests_qaseio/test_result.py +++ /dev/null @@ -1,83 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result import Result - -class TestResult(unittest.TestCase): - """Result unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Result: - """Test Result - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Result` - """ - model = Result() - if include_optional: - return Result( - hash = '', - comment = '', - stacktrace = '', - run_id = 56, - case_id = 56, - steps = [ - qaseio.models.test_step_result.TestStepResult( - status = 56, - position = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ], ) - ], - status = '', - is_api_result = True, - time_spent_ms = 56, - end_time = '2021-12-30T19:23:59Z', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ] - ) - else: - return Result( - ) - """ - - def testResult(self): - """Test Result""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_create.py b/qaseio/tests/tests_qaseio/test_result_create.py deleted file mode 100644 index 4d5a83e7..00000000 --- a/qaseio/tests/tests_qaseio/test_result_create.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_create import ResultCreate - -class TestResultCreate(unittest.TestCase): - """ResultCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultCreate: - """Test ResultCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultCreate` - """ - model = ResultCreate() - if include_optional: - return ResultCreate( - case_id = 56, - case = qaseio.models.result_create_case.ResultCreate_case( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '', ), - status = '', - start_time = 0, - time = 0, - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - param = { - 'key' : '' - }, - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - attachments = [ - '' - ], - action = '', - expected_result = '', - data = '', - steps = [ - None - ], ) - ], - author_id = 56 - ) - else: - return ResultCreate( - status = '', - ) - """ - - def testResultCreate(self): - """Test ResultCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_create_bulk.py b/qaseio/tests/tests_qaseio/test_result_create_bulk.py deleted file mode 100644 index 7d541675..00000000 --- a/qaseio/tests/tests_qaseio/test_result_create_bulk.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_create_bulk import ResultCreateBulk - -class TestResultCreateBulk(unittest.TestCase): - """ResultCreateBulk unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultCreateBulk: - """Test ResultCreateBulk - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultCreateBulk` - """ - model = ResultCreateBulk() - if include_optional: - return ResultCreateBulk( - results = [ - qaseio.models.result_create.ResultCreate( - case_id = 56, - case = qaseio.models.result_create_case.ResultCreate_case( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '', ), - status = '', - start_time = 0, - time = 0, - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - param = { - 'key' : '' - }, - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - action = '', - expected_result = '', - data = '', ) - ], - author_id = 56, ) - ] - ) - else: - return ResultCreateBulk( - results = [ - qaseio.models.result_create.ResultCreate( - case_id = 56, - case = qaseio.models.result_create_case.ResultCreate_case( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '', ), - status = '', - start_time = 0, - time = 0, - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - param = { - 'key' : '' - }, - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - action = '', - expected_result = '', - data = '', ) - ], - author_id = 56, ) - ], - ) - """ - - def testResultCreateBulk(self): - """Test ResultCreateBulk""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_create_case.py b/qaseio/tests/tests_qaseio/test_result_create_case.py deleted file mode 100644 index a5597838..00000000 --- a/qaseio/tests/tests_qaseio/test_result_create_case.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_create_case import ResultCreateCase - -class TestResultCreateCase(unittest.TestCase): - """ResultCreateCase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultCreateCase: - """Test ResultCreateCase - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultCreateCase` - """ - model = ResultCreateCase() - if include_optional: - return ResultCreateCase( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '' - ) - else: - return ResultCreateCase( - ) - """ - - def testResultCreateCase(self): - """Test ResultCreateCase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_create_response.py b/qaseio/tests/tests_qaseio/test_result_create_response.py deleted file mode 100644 index 7cec79a0..00000000 --- a/qaseio/tests/tests_qaseio/test_result_create_response.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_create_response import ResultCreateResponse - -class TestResultCreateResponse(unittest.TestCase): - """ResultCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultCreateResponse: - """Test ResultCreateResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultCreateResponse` - """ - model = ResultCreateResponse() - if include_optional: - return ResultCreateResponse( - status = True, - result = qaseio.models.result_create_response_all_of_result.ResultCreateResponse_allOf_result( - case_id = 56, - hash = '', ) - ) - else: - return ResultCreateResponse( - ) - """ - - def testResultCreateResponse(self): - """Test ResultCreateResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_create_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_result_create_response_all_of_result.py deleted file mode 100644 index 838ae994..00000000 --- a/qaseio/tests/tests_qaseio/test_result_create_response_all_of_result.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult - -class TestResultCreateResponseAllOfResult(unittest.TestCase): - """ResultCreateResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultCreateResponseAllOfResult: - """Test ResultCreateResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultCreateResponseAllOfResult` - """ - model = ResultCreateResponseAllOfResult() - if include_optional: - return ResultCreateResponseAllOfResult( - case_id = 56, - hash = '' - ) - else: - return ResultCreateResponseAllOfResult( - ) - """ - - def testResultCreateResponseAllOfResult(self): - """Test ResultCreateResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_list_response.py b/qaseio/tests/tests_qaseio/test_result_list_response.py deleted file mode 100644 index 7dc2501b..00000000 --- a/qaseio/tests/tests_qaseio/test_result_list_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_list_response import ResultListResponse - -class TestResultListResponse(unittest.TestCase): - """ResultListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultListResponse: - """Test ResultListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultListResponse` - """ - model = ResultListResponse() - if include_optional: - return ResultListResponse( - status = True, - result = qaseio.models.result_list_response_all_of_result.ResultListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.result.Result( - hash = '', - comment = '', - stacktrace = '', - run_id = 56, - case_id = 56, - steps = [ - qaseio.models.test_step_result.TestStepResult( - status = 56, - position = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ], - status = '', - is_api_result = True, - time_spent_ms = 56, - end_time = '2021-12-30T19:23:59Z', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ], ) - ) - else: - return ResultListResponse( - ) - """ - - def testResultListResponse(self): - """Test ResultListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_result_list_response_all_of_result.py deleted file mode 100644 index 39f63eb1..00000000 --- a/qaseio/tests/tests_qaseio/test_result_list_response_all_of_result.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_list_response_all_of_result import ResultListResponseAllOfResult - -class TestResultListResponseAllOfResult(unittest.TestCase): - """ResultListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultListResponseAllOfResult: - """Test ResultListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultListResponseAllOfResult` - """ - model = ResultListResponseAllOfResult() - if include_optional: - return ResultListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.result.Result( - hash = '', - comment = '', - stacktrace = '', - run_id = 56, - case_id = 56, - steps = [ - qaseio.models.test_step_result.TestStepResult( - status = 56, - position = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ], - status = '', - is_api_result = True, - time_spent_ms = 56, - end_time = '2021-12-30T19:23:59Z', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ] - ) - else: - return ResultListResponseAllOfResult( - ) - """ - - def testResultListResponseAllOfResult(self): - """Test ResultListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_response.py b/qaseio/tests/tests_qaseio/test_result_response.py deleted file mode 100644 index 5814daeb..00000000 --- a/qaseio/tests/tests_qaseio/test_result_response.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_response import ResultResponse - -class TestResultResponse(unittest.TestCase): - """ResultResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultResponse: - """Test ResultResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultResponse` - """ - model = ResultResponse() - if include_optional: - return ResultResponse( - status = True, - result = qaseio.models.result.Result( - hash = '', - comment = '', - stacktrace = '', - run_id = 56, - case_id = 56, - steps = [ - qaseio.models.test_step_result.TestStepResult( - status = 56, - position = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ], - status = '', - is_api_result = True, - time_spent_ms = 56, - end_time = '2021-12-30T19:23:59Z', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ) - else: - return ResultResponse( - ) - """ - - def testResultResponse(self): - """Test ResultResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_result_update.py b/qaseio/tests/tests_qaseio/test_result_update.py deleted file mode 100644 index cd13ba2b..00000000 --- a/qaseio/tests/tests_qaseio/test_result_update.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.result_update import ResultUpdate - -class TestResultUpdate(unittest.TestCase): - """ResultUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultUpdate: - """Test ResultUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultUpdate` - """ - model = ResultUpdate() - if include_optional: - return ResultUpdate( - status = 'in_progress', - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - attachments = [ - '' - ], - action = '', - expected_result = '', - data = '', - steps = [ - None - ], ) - ] - ) - else: - return ResultUpdate( - ) - """ - - def testResultUpdate(self): - """Test ResultUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_resultcreate_bulk.py b/qaseio/tests/tests_qaseio/test_resultcreate_bulk.py deleted file mode 100644 index 5f52f09d..00000000 --- a/qaseio/tests/tests_qaseio/test_resultcreate_bulk.py +++ /dev/null @@ -1,124 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.resultcreate_bulk import ResultcreateBulk - -class TestResultcreateBulk(unittest.TestCase): - """ResultcreateBulk unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResultcreateBulk: - """Test ResultcreateBulk - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResultcreateBulk` - """ - model = ResultcreateBulk() - if include_optional: - return ResultcreateBulk( - results = [ - qaseio.models.result_create.ResultCreate( - case_id = 56, - case = qaseio.models.result_create_case.ResultCreate_case( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '', ), - status = '', - start_time = 0, - time = 0, - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - param = { - 'key' : '' - }, - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - action = '', - expected_result = '', - data = '', ) - ], - author_id = 56, ) - ] - ) - else: - return ResultcreateBulk( - results = [ - qaseio.models.result_create.ResultCreate( - case_id = 56, - case = qaseio.models.result_create_case.ResultCreate_case( - title = '', - suite_title = '', - description = '', - preconditions = '', - postconditions = '', - layer = '', - severity = '', - priority = '', ), - status = '', - start_time = 0, - time = 0, - time_ms = 0, - defect = True, - attachments = [ - '' - ], - stacktrace = '', - comment = '', - param = { - 'key' : '' - }, - steps = [ - qaseio.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - action = '', - expected_result = '', - data = '', ) - ], - author_id = 56, ) - ], - ) - """ - - def testResultcreateBulk(self): - """Test ResultcreateBulk""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_results_api.py b/qaseio/tests/tests_qaseio/test_results_api.py deleted file mode 100644 index 731e1ae6..00000000 --- a/qaseio/tests/tests_qaseio/test_results_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.results_api import ResultsApi - - -class TestResultsApi(unittest.TestCase): - """ResultsApi unit test stubs""" - - def setUp(self) -> None: - self.api = ResultsApi() - - def tearDown(self) -> None: - pass - - def test_create_result(self) -> None: - """Test case for create_result - - Create test run result. - """ - pass - - def test_create_result_bulk(self) -> None: - """Test case for create_result_bulk - - Bulk create test run result. - """ - pass - - def test_delete_result(self) -> None: - """Test case for delete_result - - Delete test run result. - """ - pass - - def test_get_result(self) -> None: - """Test case for get_result - - Get test run result by code. - """ - pass - - def test_get_results(self) -> None: - """Test case for get_results - - Get all test run results. - """ - pass - - def test_update_result(self) -> None: - """Test case for update_result - - Update test run result. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run.py b/qaseio/tests/tests_qaseio/test_run.py deleted file mode 100644 index 5e864a10..00000000 --- a/qaseio/tests/tests_qaseio/test_run.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run import Run - -class TestRun(unittest.TestCase): - """Run unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Run: - """Test Run - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Run` - """ - model = Run() - if include_optional: - return Run( - id = 56, - title = '', - description = '', - status = 56, - status_text = '', - start_time = '2021-12-30T19:23:59Z', - end_time = '2021-12-30T19:23:59Z', - public = True, - stats = qaseio.models.run_stats.Run_stats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56, ), - time_spent = 56, - environment = qaseio.models.run_environment.Run_environment( - title = '', - description = '', - slug = '', - host = '', ), - milestone = qaseio.models.run_milestone.Run_milestone( - title = '', - description = '', ), - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - cases = [ - 56 - ] - ) - else: - return Run( - ) - """ - - def testRun(self): - """Test Run""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_create.py b/qaseio/tests/tests_qaseio/test_run_create.py deleted file mode 100644 index 99ac34bb..00000000 --- a/qaseio/tests/tests_qaseio/test_run_create.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_create import RunCreate - -class TestRunCreate(unittest.TestCase): - """RunCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunCreate: - """Test RunCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunCreate` - """ - model = RunCreate() - if include_optional: - return RunCreate( - title = '', - description = '', - include_all_cases = True, - cases = [ - 56 - ], - is_autotest = True, - environment_id = 1, - milestone_id = 1, - plan_id = 1, - author_id = 1, - tags = [ - '' - ], - configurations = [ - 56 - ], - custom_field = { - 'key' : '' - }, - start_time = '', - end_time = '' - ) - else: - return RunCreate( - title = '', - ) - """ - - def testRunCreate(self): - """Test RunCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_environment.py b/qaseio/tests/tests_qaseio/test_run_environment.py deleted file mode 100644 index 108e8bcd..00000000 --- a/qaseio/tests/tests_qaseio/test_run_environment.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_environment import RunEnvironment - -class TestRunEnvironment(unittest.TestCase): - """RunEnvironment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunEnvironment: - """Test RunEnvironment - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunEnvironment` - """ - model = RunEnvironment() - if include_optional: - return RunEnvironment( - title = '', - description = '', - slug = '', - host = '' - ) - else: - return RunEnvironment( - ) - """ - - def testRunEnvironment(self): - """Test RunEnvironment""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_list_response.py b/qaseio/tests/tests_qaseio/test_run_list_response.py deleted file mode 100644 index 9666e8c3..00000000 --- a/qaseio/tests/tests_qaseio/test_run_list_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_list_response import RunListResponse - -class TestRunListResponse(unittest.TestCase): - """RunListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunListResponse: - """Test RunListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunListResponse` - """ - model = RunListResponse() - if include_optional: - return RunListResponse( - status = True, - result = qaseio.models.run_list_response_all_of_result.RunListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.run.Run( - id = 56, - title = '', - description = '', - status = 56, - status_text = '', - start_time = '2021-12-30T19:23:59Z', - end_time = '2021-12-30T19:23:59Z', - public = True, - stats = qaseio.models.run_stats.Run_stats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56, ), - time_spent = 56, - environment = qaseio.models.run_environment.Run_environment( - title = '', - description = '', - slug = '', - host = '', ), - milestone = qaseio.models.run_milestone.Run_milestone( - title = '', - description = '', ), - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - cases = [ - 56 - ], ) - ], ) - ) - else: - return RunListResponse( - ) - """ - - def testRunListResponse(self): - """Test RunListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_run_list_response_all_of_result.py deleted file mode 100644 index e8da6884..00000000 --- a/qaseio/tests/tests_qaseio/test_run_list_response_all_of_result.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_list_response_all_of_result import RunListResponseAllOfResult - -class TestRunListResponseAllOfResult(unittest.TestCase): - """RunListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunListResponseAllOfResult: - """Test RunListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunListResponseAllOfResult` - """ - model = RunListResponseAllOfResult() - if include_optional: - return RunListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.run.Run( - id = 56, - title = '', - description = '', - status = 56, - status_text = '', - start_time = '2021-12-30T19:23:59Z', - end_time = '2021-12-30T19:23:59Z', - public = True, - stats = qaseio.models.run_stats.Run_stats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56, ), - time_spent = 56, - environment = qaseio.models.run_environment.Run_environment( - title = '', - description = '', - slug = '', - host = '', ), - milestone = qaseio.models.run_milestone.Run_milestone( - title = '', - description = '', ), - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - cases = [ - 56 - ], ) - ] - ) - else: - return RunListResponseAllOfResult( - ) - """ - - def testRunListResponseAllOfResult(self): - """Test RunListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_milestone.py b/qaseio/tests/tests_qaseio/test_run_milestone.py deleted file mode 100644 index fec800a8..00000000 --- a/qaseio/tests/tests_qaseio/test_run_milestone.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_milestone import RunMilestone - -class TestRunMilestone(unittest.TestCase): - """RunMilestone unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunMilestone: - """Test RunMilestone - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunMilestone` - """ - model = RunMilestone() - if include_optional: - return RunMilestone( - title = '', - description = '' - ) - else: - return RunMilestone( - ) - """ - - def testRunMilestone(self): - """Test RunMilestone""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_public.py b/qaseio/tests/tests_qaseio/test_run_public.py deleted file mode 100644 index bc14e400..00000000 --- a/qaseio/tests/tests_qaseio/test_run_public.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_public import RunPublic - -class TestRunPublic(unittest.TestCase): - """RunPublic unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunPublic: - """Test RunPublic - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunPublic` - """ - model = RunPublic() - if include_optional: - return RunPublic( - status = True - ) - else: - return RunPublic( - status = True, - ) - """ - - def testRunPublic(self): - """Test RunPublic""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_public_response.py b/qaseio/tests/tests_qaseio/test_run_public_response.py deleted file mode 100644 index 0bd8479c..00000000 --- a/qaseio/tests/tests_qaseio/test_run_public_response.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_public_response import RunPublicResponse - -class TestRunPublicResponse(unittest.TestCase): - """RunPublicResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunPublicResponse: - """Test RunPublicResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunPublicResponse` - """ - model = RunPublicResponse() - if include_optional: - return RunPublicResponse( - status = True, - result = qaseio.models.run_public_response_all_of_result.RunPublicResponse_allOf_result( - url = '', ) - ) - else: - return RunPublicResponse( - ) - """ - - def testRunPublicResponse(self): - """Test RunPublicResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_public_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_run_public_response_all_of_result.py deleted file mode 100644 index 583ff3e1..00000000 --- a/qaseio/tests/tests_qaseio/test_run_public_response_all_of_result.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_public_response_all_of_result import RunPublicResponseAllOfResult - -class TestRunPublicResponseAllOfResult(unittest.TestCase): - """RunPublicResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunPublicResponseAllOfResult: - """Test RunPublicResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunPublicResponseAllOfResult` - """ - model = RunPublicResponseAllOfResult() - if include_optional: - return RunPublicResponseAllOfResult( - url = '' - ) - else: - return RunPublicResponseAllOfResult( - ) - """ - - def testRunPublicResponseAllOfResult(self): - """Test RunPublicResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_response.py b/qaseio/tests/tests_qaseio/test_run_response.py deleted file mode 100644 index 9d20cfd9..00000000 --- a/qaseio/tests/tests_qaseio/test_run_response.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_response import RunResponse - -class TestRunResponse(unittest.TestCase): - """RunResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunResponse: - """Test RunResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunResponse` - """ - model = RunResponse() - if include_optional: - return RunResponse( - status = True, - result = qaseio.models.run.Run( - id = 56, - title = '', - description = '', - status = 56, - status_text = '', - start_time = '2021-12-30T19:23:59Z', - end_time = '2021-12-30T19:23:59Z', - public = True, - stats = qaseio.models.run_stats.Run_stats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56, ), - time_spent = 56, - environment = qaseio.models.run_environment.Run_environment( - title = '', - description = '', - slug = '', - host = '', ), - milestone = qaseio.models.run_milestone.Run_milestone( - title = '', - description = '', ), - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - cases = [ - 56 - ], ) - ) - else: - return RunResponse( - ) - """ - - def testRunResponse(self): - """Test RunResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_run_stats.py b/qaseio/tests/tests_qaseio/test_run_stats.py deleted file mode 100644 index 888911c2..00000000 --- a/qaseio/tests/tests_qaseio/test_run_stats.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.run_stats import RunStats - -class TestRunStats(unittest.TestCase): - """RunStats unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RunStats: - """Test RunStats - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RunStats` - """ - model = RunStats() - if include_optional: - return RunStats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56 - ) - else: - return RunStats( - ) - """ - - def testRunStats(self): - """Test RunStats""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_runs_api.py b/qaseio/tests/tests_qaseio/test_runs_api.py deleted file mode 100644 index f32dd1a5..00000000 --- a/qaseio/tests/tests_qaseio/test_runs_api.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.runs_api import RunsApi - - -class TestRunsApi(unittest.TestCase): - """RunsApi unit test stubs""" - - def setUp(self) -> None: - self.api = RunsApi() - - def tearDown(self) -> None: - pass - - def test_complete_run(self) -> None: - """Test case for complete_run - - Complete a specific run. - """ - pass - - def test_create_run(self) -> None: - """Test case for create_run - - Create a new run. - """ - pass - - def test_delete_run(self) -> None: - """Test case for delete_run - - Delete run. - """ - pass - - def test_get_run(self) -> None: - """Test case for get_run - - Get a specific run. - """ - pass - - def test_get_runs(self) -> None: - """Test case for get_runs - - Get all runs. - """ - pass - - def test_update_run_publicity(self) -> None: - """Test case for update_run_publicity - - Update publicity of a specific run. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_search_api.py b/qaseio/tests/tests_qaseio/test_search_api.py deleted file mode 100644 index 57271ace..00000000 --- a/qaseio/tests/tests_qaseio/test_search_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.search_api import SearchApi - - -class TestSearchApi(unittest.TestCase): - """SearchApi unit test stubs""" - - def setUp(self) -> None: - self.api = SearchApi() - - def tearDown(self) -> None: - pass - - def test_search(self) -> None: - """Test case for search - - Search entities by Qase Query Language (QQL). - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_search_response.py b/qaseio/tests/tests_qaseio/test_search_response.py deleted file mode 100644 index c9e89149..00000000 --- a/qaseio/tests/tests_qaseio/test_search_response.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.search_response import SearchResponse - -class TestSearchResponse(unittest.TestCase): - """SearchResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchResponse: - """Test SearchResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchResponse` - """ - model = SearchResponse() - if include_optional: - return SearchResponse( - status = True, - result = qaseio.models.search_response_all_of_result.SearchResponse_allOf_result( - entities = [ - null - ], - total = 56, ) - ) - else: - return SearchResponse( - ) - """ - - def testSearchResponse(self): - """Test SearchResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_search_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_search_response_all_of_result.py deleted file mode 100644 index 0560870c..00000000 --- a/qaseio/tests/tests_qaseio/test_search_response_all_of_result.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.search_response_all_of_result import SearchResponseAllOfResult - -class TestSearchResponseAllOfResult(unittest.TestCase): - """SearchResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchResponseAllOfResult: - """Test SearchResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchResponseAllOfResult` - """ - model = SearchResponseAllOfResult() - if include_optional: - return SearchResponseAllOfResult( - entities = [ - null - ], - total = 56 - ) - else: - return SearchResponseAllOfResult( - entities = [ - null - ], - total = 56, - ) - """ - - def testSearchResponseAllOfResult(self): - """Test SearchResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_search_response_all_of_result_entities.py b/qaseio/tests/tests_qaseio/test_search_response_all_of_result_entities.py deleted file mode 100644 index 74925bb0..00000000 --- a/qaseio/tests/tests_qaseio/test_search_response_all_of_result_entities.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities - -class TestSearchResponseAllOfResultEntities(unittest.TestCase): - """SearchResponseAllOfResultEntities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchResponseAllOfResultEntities: - """Test SearchResponseAllOfResultEntities - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchResponseAllOfResultEntities` - """ - model = SearchResponseAllOfResultEntities() - if include_optional: - return SearchResponseAllOfResultEntities( - id = 56, - title = '', - description = '', - status = '', - status_text = '', - start_time = '2021-12-30T19:23:59Z', - end_time = '2021-12-30T19:23:59Z', - public = True, - stats = qaseio.models.run_stats.Run_stats( - total = 56, - untested = 56, - passed = 56, - failed = 56, - blocked = 56, - skipped = 56, - retest = 56, - in_progress = 56, - invalid = 56, ), - time_spent = 56, - environment = qaseio.models.run_environment.Run_environment( - title = '', - description = '', - slug = '', - host = '', ), - milestone = qaseio.models.run_milestone.Run_milestone( - title = '', - description = '', ), - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - cases = [ - 56 - ], - hash = '', - comment = '', - stacktrace = '', - run_id = 56, - case_id = 56, - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], ) - ], - is_api_result = True, - time_spent_ms = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - parent_id = 56, - member_id = 56, - type = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - position = 56, - preconditions = '', - postconditions = '', - severity = '', - priority = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - milestone_id = 56, - suite_id = 56, - steps_type = '', - params = None, - author_id = 56, - actual_result = '', - resolved = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - external_data = '', - cases_count = 56 - ) - else: - return SearchResponseAllOfResultEntities( - ) - """ - - def testSearchResponseAllOfResultEntities(self): - """Test SearchResponseAllOfResultEntities""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step.py b/qaseio/tests/tests_qaseio/test_shared_step.py deleted file mode 100644 index f4a7570f..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step import SharedStep - -class TestSharedStep(unittest.TestCase): - """SharedStep unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStep: - """Test SharedStep - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStep` - """ - model = SharedStep() - if include_optional: - return SharedStep( - hash = '', - title = '', - action = '', - expected_result = '', - steps = [ - qaseio.models.shared_step_content.SharedStepContent( - data = '', - hash = '', - action = '', - expected_result = '', - attachments = [ - qaseio.models.attachment_hash.AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '', ) - ], ) - ], - data = '', - cases = [ - 56 - ], - cases_count = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return SharedStep( - ) - """ - - def testSharedStep(self): - """Test SharedStep""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_content.py b/qaseio/tests/tests_qaseio/test_shared_step_content.py deleted file mode 100644 index ee760527..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_content.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_content import SharedStepContent - -class TestSharedStepContent(unittest.TestCase): - """SharedStepContent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepContent: - """Test SharedStepContent - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepContent` - """ - model = SharedStepContent() - if include_optional: - return SharedStepContent( - data = '', - hash = '', - action = '', - expected_result = '', - attachments = [ - qaseio.models.attachment_hash.AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '', ) - ] - ) - else: - return SharedStepContent( - ) - """ - - def testSharedStepContent(self): - """Test SharedStepContent""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_content_create.py b/qaseio/tests/tests_qaseio/test_shared_step_content_create.py deleted file mode 100644 index 6836f051..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_content_create.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_content_create import SharedStepContentCreate - -class TestSharedStepContentCreate(unittest.TestCase): - """SharedStepContentCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepContentCreate: - """Test SharedStepContentCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepContentCreate` - """ - model = SharedStepContentCreate() - if include_optional: - return SharedStepContentCreate( - hash = '', - action = '', - expected_result = '', - data = '', - attachments = [ - '' - ] - ) - else: - return SharedStepContentCreate( - action = '', - ) - """ - - def testSharedStepContentCreate(self): - """Test SharedStepContentCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_create.py b/qaseio/tests/tests_qaseio/test_shared_step_create.py deleted file mode 100644 index 1e540e90..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_create.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_create import SharedStepCreate - -class TestSharedStepCreate(unittest.TestCase): - """SharedStepCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepCreate: - """Test SharedStepCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepCreate` - """ - model = SharedStepCreate() - if include_optional: - return SharedStepCreate( - title = '', - action = '', - expected_result = '', - data = '', - steps = [ - qaseio.models.shared_step_content_create.SharedStepContentCreate( - hash = '', - action = '', - expected_result = '', - data = '', - attachments = [ - '' - ], ) - ] - ) - else: - return SharedStepCreate( - title = '', - ) - """ - - def testSharedStepCreate(self): - """Test SharedStepCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_list_response.py b/qaseio/tests/tests_qaseio/test_shared_step_list_response.py deleted file mode 100644 index 3e70cb72..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_list_response.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_list_response import SharedStepListResponse - -class TestSharedStepListResponse(unittest.TestCase): - """SharedStepListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepListResponse: - """Test SharedStepListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepListResponse` - """ - model = SharedStepListResponse() - if include_optional: - return SharedStepListResponse( - status = True, - result = qaseio.models.shared_step_list_response_all_of_result.SharedStepListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.shared_step.SharedStep( - hash = '', - title = '', - action = '', - expected_result = '', - steps = [ - qaseio.models.shared_step_content.SharedStepContent( - data = '', - hash = '', - action = '', - expected_result = '', - attachments = [ - qaseio.models.attachment_hash.AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '', ) - ], ) - ], - data = '', - cases = [ - 56 - ], - cases_count = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ], ) - ) - else: - return SharedStepListResponse( - ) - """ - - def testSharedStepListResponse(self): - """Test SharedStepListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_shared_step_list_response_all_of_result.py deleted file mode 100644 index 932b3b69..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_list_response_all_of_result.py +++ /dev/null @@ -1,86 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult - -class TestSharedStepListResponseAllOfResult(unittest.TestCase): - """SharedStepListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepListResponseAllOfResult: - """Test SharedStepListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepListResponseAllOfResult` - """ - model = SharedStepListResponseAllOfResult() - if include_optional: - return SharedStepListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.shared_step.SharedStep( - hash = '', - title = '', - action = '', - expected_result = '', - steps = [ - qaseio.models.shared_step_content.SharedStepContent( - data = '', - hash = '', - action = '', - expected_result = '', - attachments = [ - qaseio.models.attachment_hash.AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '', ) - ], ) - ], - data = '', - cases = [ - 56 - ], - cases_count = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ] - ) - else: - return SharedStepListResponseAllOfResult( - ) - """ - - def testSharedStepListResponseAllOfResult(self): - """Test SharedStepListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_response.py b/qaseio/tests/tests_qaseio/test_shared_step_response.py deleted file mode 100644 index 9bf07389..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_response.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_response import SharedStepResponse - -class TestSharedStepResponse(unittest.TestCase): - """SharedStepResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepResponse: - """Test SharedStepResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepResponse` - """ - model = SharedStepResponse() - if include_optional: - return SharedStepResponse( - status = True, - result = qaseio.models.shared_step.SharedStep( - hash = '', - title = '', - action = '', - expected_result = '', - steps = [ - qaseio.models.shared_step_content.SharedStepContent( - data = '', - hash = '', - action = '', - expected_result = '', - attachments = [ - qaseio.models.attachment_hash.AttachmentHash( - size = 56, - mime = '', - filename = '', - url = '', - hash = '', ) - ], ) - ], - data = '', - cases = [ - 56 - ], - cases_count = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ) - else: - return SharedStepResponse( - ) - """ - - def testSharedStepResponse(self): - """Test SharedStepResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_step_update.py b/qaseio/tests/tests_qaseio/test_shared_step_update.py deleted file mode 100644 index 81394b37..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_step_update.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.shared_step_update import SharedStepUpdate - -class TestSharedStepUpdate(unittest.TestCase): - """SharedStepUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SharedStepUpdate: - """Test SharedStepUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SharedStepUpdate` - """ - model = SharedStepUpdate() - if include_optional: - return SharedStepUpdate( - title = '', - action = '', - expected_result = '', - data = '', - steps = [ - qaseio.models.shared_step_content_create.SharedStepContentCreate( - hash = '', - action = '', - expected_result = '', - data = '', - attachments = [ - '' - ], ) - ] - ) - else: - return SharedStepUpdate( - title = '', - ) - """ - - def testSharedStepUpdate(self): - """Test SharedStepUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_shared_steps_api.py b/qaseio/tests/tests_qaseio/test_shared_steps_api.py deleted file mode 100644 index 886cc518..00000000 --- a/qaseio/tests/tests_qaseio/test_shared_steps_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.shared_steps_api import SharedStepsApi - - -class TestSharedStepsApi(unittest.TestCase): - """SharedStepsApi unit test stubs""" - - def setUp(self) -> None: - self.api = SharedStepsApi() - - def tearDown(self) -> None: - pass - - def test_create_shared_step(self) -> None: - """Test case for create_shared_step - - Create a new shared step. - """ - pass - - def test_delete_shared_step(self) -> None: - """Test case for delete_shared_step - - Delete shared step. - """ - pass - - def test_get_shared_step(self) -> None: - """Test case for get_shared_step - - Get a specific shared step. - """ - pass - - def test_get_shared_steps(self) -> None: - """Test case for get_shared_steps - - Get all shared steps. - """ - pass - - def test_update_shared_step(self) -> None: - """Test case for update_shared_step - - Update shared step. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite.py b/qaseio/tests/tests_qaseio/test_suite.py deleted file mode 100644 index 6ee2cfe2..00000000 --- a/qaseio/tests/tests_qaseio/test_suite.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite import Suite - -class TestSuite(unittest.TestCase): - """Suite unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Suite: - """Test Suite - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Suite` - """ - model = Suite() - if include_optional: - return Suite( - id = 56, - title = '', - description = '', - preconditions = '', - position = 56, - cases_count = 56, - parent_id = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return Suite( - ) - """ - - def testSuite(self): - """Test Suite""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_create.py b/qaseio/tests/tests_qaseio/test_suite_create.py deleted file mode 100644 index 68224d1c..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_create.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_create import SuiteCreate - -class TestSuiteCreate(unittest.TestCase): - """SuiteCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteCreate: - """Test SuiteCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteCreate` - """ - model = SuiteCreate() - if include_optional: - return SuiteCreate( - title = '', - description = '', - preconditions = '', - parent_id = 56 - ) - else: - return SuiteCreate( - title = '', - ) - """ - - def testSuiteCreate(self): - """Test SuiteCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_delete.py b/qaseio/tests/tests_qaseio/test_suite_delete.py deleted file mode 100644 index 660ec981..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_delete.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_delete import SuiteDelete - -class TestSuiteDelete(unittest.TestCase): - """SuiteDelete unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteDelete: - """Test SuiteDelete - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteDelete` - """ - model = SuiteDelete() - if include_optional: - return SuiteDelete( - destination_id = 56 - ) - else: - return SuiteDelete( - ) - """ - - def testSuiteDelete(self): - """Test SuiteDelete""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_list_response.py b/qaseio/tests/tests_qaseio/test_suite_list_response.py deleted file mode 100644 index 9ba47532..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_list_response.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_list_response import SuiteListResponse - -class TestSuiteListResponse(unittest.TestCase): - """SuiteListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteListResponse: - """Test SuiteListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteListResponse` - """ - model = SuiteListResponse() - if include_optional: - return SuiteListResponse( - status = True, - result = qaseio.models.suite_list_response_all_of_result.SuiteListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.suite.Suite( - id = 56, - title = '', - description = '', - preconditions = '', - position = 56, - cases_count = 56, - parent_id = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ], ) - ) - else: - return SuiteListResponse( - ) - """ - - def testSuiteListResponse(self): - """Test SuiteListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_suite_list_response_all_of_result.py deleted file mode 100644 index e26a8143..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_list_response_all_of_result.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult - -class TestSuiteListResponseAllOfResult(unittest.TestCase): - """SuiteListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteListResponseAllOfResult: - """Test SuiteListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteListResponseAllOfResult` - """ - model = SuiteListResponseAllOfResult() - if include_optional: - return SuiteListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.suite.Suite( - id = 56, - title = '', - description = '', - preconditions = '', - position = 56, - cases_count = 56, - parent_id = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ] - ) - else: - return SuiteListResponseAllOfResult( - ) - """ - - def testSuiteListResponseAllOfResult(self): - """Test SuiteListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_response.py b/qaseio/tests/tests_qaseio/test_suite_response.py deleted file mode 100644 index 1d083df8..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_response.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_response import SuiteResponse - -class TestSuiteResponse(unittest.TestCase): - """SuiteResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteResponse: - """Test SuiteResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteResponse` - """ - model = SuiteResponse() - if include_optional: - return SuiteResponse( - status = True, - result = qaseio.models.suite.Suite( - id = 56, - title = '', - description = '', - preconditions = '', - position = 56, - cases_count = 56, - parent_id = 56, - created = '2021-12-30 19:23:59', - updated = '2021-12-30 19:23:59', - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', ) - ) - else: - return SuiteResponse( - ) - """ - - def testSuiteResponse(self): - """Test SuiteResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suite_update.py b/qaseio/tests/tests_qaseio/test_suite_update.py deleted file mode 100644 index 18c202c1..00000000 --- a/qaseio/tests/tests_qaseio/test_suite_update.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.suite_update import SuiteUpdate - -class TestSuiteUpdate(unittest.TestCase): - """SuiteUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SuiteUpdate: - """Test SuiteUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SuiteUpdate` - """ - model = SuiteUpdate() - if include_optional: - return SuiteUpdate( - title = '', - description = '', - preconditions = '', - parent_id = 56 - ) - else: - return SuiteUpdate( - ) - """ - - def testSuiteUpdate(self): - """Test SuiteUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_suites_api.py b/qaseio/tests/tests_qaseio/test_suites_api.py deleted file mode 100644 index 1848215b..00000000 --- a/qaseio/tests/tests_qaseio/test_suites_api.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.suites_api import SuitesApi - - -class TestSuitesApi(unittest.TestCase): - """SuitesApi unit test stubs""" - - def setUp(self) -> None: - self.api = SuitesApi() - - def tearDown(self) -> None: - pass - - def test_create_suite(self) -> None: - """Test case for create_suite - - Create a new test suite. - """ - pass - - def test_delete_suite(self) -> None: - """Test case for delete_suite - - Delete test suite. - """ - pass - - def test_get_suite(self) -> None: - """Test case for get_suite - - Get a specific test suite. - """ - pass - - def test_get_suites(self) -> None: - """Test case for get_suites - - Get all test suites. - """ - pass - - def test_update_suite(self) -> None: - """Test case for update_suite - - Update test suite. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_system_field.py b/qaseio/tests/tests_qaseio/test_system_field.py deleted file mode 100644 index e69ab1b4..00000000 --- a/qaseio/tests/tests_qaseio/test_system_field.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.system_field import SystemField - -class TestSystemField(unittest.TestCase): - """SystemField unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemField: - """Test SystemField - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemField` - """ - model = SystemField() - if include_optional: - return SystemField( - title = '', - slug = '', - default_value = '', - is_required = True, - entity = 56, - type = 56, - options = [ - qaseio.models.system_field_option.SystemFieldOption( - id = 56, - title = '', - slug = '', - color = '', - icon = '', - is_default = True, - read_only = True, ) - ] - ) - else: - return SystemField( - ) - """ - - def testSystemField(self): - """Test SystemField""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_system_field_list_response.py b/qaseio/tests/tests_qaseio/test_system_field_list_response.py deleted file mode 100644 index 7be6384c..00000000 --- a/qaseio/tests/tests_qaseio/test_system_field_list_response.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.system_field_list_response import SystemFieldListResponse - -class TestSystemFieldListResponse(unittest.TestCase): - """SystemFieldListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemFieldListResponse: - """Test SystemFieldListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemFieldListResponse` - """ - model = SystemFieldListResponse() - if include_optional: - return SystemFieldListResponse( - status = True, - result = [ - qaseio.models.system_field.SystemField( - title = '', - slug = '', - default_value = '', - is_required = True, - entity = 56, - type = 56, - options = [ - qaseio.models.system_field_option.SystemFieldOption( - id = 56, - title = '', - slug = '', - color = '', - icon = '', - is_default = True, - read_only = True, ) - ], ) - ] - ) - else: - return SystemFieldListResponse( - ) - """ - - def testSystemFieldListResponse(self): - """Test SystemFieldListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_system_field_option.py b/qaseio/tests/tests_qaseio/test_system_field_option.py deleted file mode 100644 index 8a8b0d41..00000000 --- a/qaseio/tests/tests_qaseio/test_system_field_option.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.system_field_option import SystemFieldOption - -class TestSystemFieldOption(unittest.TestCase): - """SystemFieldOption unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SystemFieldOption: - """Test SystemFieldOption - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SystemFieldOption` - """ - model = SystemFieldOption() - if include_optional: - return SystemFieldOption( - id = 56, - title = '', - slug = '', - color = '', - icon = '', - is_default = True, - read_only = True - ) - else: - return SystemFieldOption( - ) - """ - - def testSystemFieldOption(self): - """Test SystemFieldOption""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_system_fields_api.py b/qaseio/tests/tests_qaseio/test_system_fields_api.py deleted file mode 100644 index 8b038124..00000000 --- a/qaseio/tests/tests_qaseio/test_system_fields_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from qaseio.api.system_fields_api import SystemFieldsApi - - -class TestSystemFieldsApi(unittest.TestCase): - """SystemFieldsApi unit test stubs""" - - def setUp(self) -> None: - self.api = SystemFieldsApi() - - def tearDown(self) -> None: - pass - - def test_get_system_fields(self) -> None: - """Test case for get_system_fields - - Get all System Fields. - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_tag_value.py b/qaseio/tests/tests_qaseio/test_tag_value.py deleted file mode 100644 index bac2a918..00000000 --- a/qaseio/tests/tests_qaseio/test_tag_value.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.tag_value import TagValue - -class TestTagValue(unittest.TestCase): - """TagValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TagValue: - """Test TagValue - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TagValue` - """ - model = TagValue() - if include_optional: - return TagValue( - title = '', - internal_id = 56 - ) - else: - return TagValue( - ) - """ - - def testTagValue(self): - """Test TagValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case.py b/qaseio/tests/tests_qaseio/test_test_case.py deleted file mode 100644 index 04bf28f0..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case import TestCase - -class TestTestCase(unittest.TestCase): - """TestCase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCase: - """Test TestCase - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCase` - """ - model = TestCase() - if include_optional: - return TestCase( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ], ) - ], - params = None, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - deleted = '2021-12-30T19:23:59.000000Z', - created = '2021-12-30T19:23:59.000000Z', - updated = '2021-12-30T19:23:59.000000Z', - external_issues = [ - qaseio.models.external_issue.ExternalIssue( - type = '', - issues = [ - qaseio.models.external_issue_issues_inner.ExternalIssue_issues_inner( - id = '', - link = '', ) - ], ) - ] - ) - else: - return TestCase( - ) - """ - - def testTestCase(self): - """Test TestCase""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_create.py b/qaseio/tests/tests_qaseio/test_test_case_create.py deleted file mode 100644 index 16173762..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_create.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_create import TestCaseCreate - -class TestTestCaseCreate(unittest.TestCase): - """TestCaseCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseCreate: - """Test TestCaseCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseCreate` - """ - model = TestCaseCreate() - if include_optional: - return TestCaseCreate( - description = '', - preconditions = '', - postconditions = '', - title = '', - severity = 56, - priority = 56, - behavior = 56, - type = 56, - layer = 56, - is_flaky = 56, - author_id = 56, - suite_id = 56, - milestone_id = 56, - automation = 56, - status = 56, - attachments = [ - '' - ], - steps = [ - qaseio.models.test_step_create.TestStepCreate( - action = '', - expected_result = '', - data = '', - position = 56, - attachments = [ - '' - ], - steps = [ - None - ], ) - ], - tags = [ - '' - ], - params = { - 'key' : [ - '' - ] - }, - custom_field = { - 'key' : '' - }, - created_at = '', - updated_at = '' - ) - else: - return TestCaseCreate( - title = '', - ) - """ - - def testTestCaseCreate(self): - """Test TestCaseCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_external_issues.py b/qaseio/tests/tests_qaseio/test_test_case_external_issues.py deleted file mode 100644 index 8bb6b78a..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_external_issues.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_external_issues import TestCaseExternalIssues - -class TestTestCaseExternalIssues(unittest.TestCase): - """TestCaseExternalIssues unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseExternalIssues: - """Test TestCaseExternalIssues - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseExternalIssues` - """ - model = TestCaseExternalIssues() - if include_optional: - return TestCaseExternalIssues( - type = 'jira-cloud', - links = [ - qaseio.models.test_case_external_issues_links_inner.TestCaseExternalIssues_links_inner( - case_id = 56, - external_issues = [ - '' - ], ) - ] - ) - else: - return TestCaseExternalIssues( - type = 'jira-cloud', - links = [ - qaseio.models.test_case_external_issues_links_inner.TestCaseExternalIssues_links_inner( - case_id = 56, - external_issues = [ - '' - ], ) - ], - ) - """ - - def testTestCaseExternalIssues(self): - """Test TestCaseExternalIssues""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_external_issues_links_inner.py b/qaseio/tests/tests_qaseio/test_test_case_external_issues_links_inner.py deleted file mode 100644 index 881fef17..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_external_issues_links_inner.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner - -class TestTestCaseExternalIssuesLinksInner(unittest.TestCase): - """TestCaseExternalIssuesLinksInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseExternalIssuesLinksInner: - """Test TestCaseExternalIssuesLinksInner - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseExternalIssuesLinksInner` - """ - model = TestCaseExternalIssuesLinksInner() - if include_optional: - return TestCaseExternalIssuesLinksInner( - case_id = 56, - external_issues = [ - '' - ] - ) - else: - return TestCaseExternalIssuesLinksInner( - case_id = 56, - external_issues = [ - '' - ], - ) - """ - - def testTestCaseExternalIssuesLinksInner(self): - """Test TestCaseExternalIssuesLinksInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_list_response.py b/qaseio/tests/tests_qaseio/test_test_case_list_response.py deleted file mode 100644 index 10193822..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_list_response.py +++ /dev/null @@ -1,121 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_list_response import TestCaseListResponse - -class TestTestCaseListResponse(unittest.TestCase): - """TestCaseListResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseListResponse: - """Test TestCaseListResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseListResponse` - """ - model = TestCaseListResponse() - if include_optional: - return TestCaseListResponse( - status = True, - result = qaseio.models.test_case_list_response_all_of_result.TestCaseListResponse_allOf_result( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.test_case.TestCase( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', ) - ], - params = null, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - deleted = '2021-12-30T19:23:59.000000Z', - created = '2021-12-30T19:23:59.000000Z', - updated = '2021-12-30T19:23:59.000000Z', - external_issues = [ - qaseio.models.external_issue.ExternalIssue( - type = '', - issues = [ - qaseio.models.external_issue_issues_inner.ExternalIssue_issues_inner( - id = '', - link = '', ) - ], ) - ], ) - ], ) - ) - else: - return TestCaseListResponse( - ) - """ - - def testTestCaseListResponse(self): - """Test TestCaseListResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_list_response_all_of_result.py b/qaseio/tests/tests_qaseio/test_test_case_list_response_all_of_result.py deleted file mode 100644 index 20b7d12a..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_list_response_all_of_result.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult - -class TestTestCaseListResponseAllOfResult(unittest.TestCase): - """TestCaseListResponseAllOfResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseListResponseAllOfResult: - """Test TestCaseListResponseAllOfResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseListResponseAllOfResult` - """ - model = TestCaseListResponseAllOfResult() - if include_optional: - return TestCaseListResponseAllOfResult( - total = 56, - filtered = 56, - count = 56, - entities = [ - qaseio.models.test_case.TestCase( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', ) - ], - params = null, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - deleted = '2021-12-30T19:23:59.000000Z', - created = '2021-12-30T19:23:59.000000Z', - updated = '2021-12-30T19:23:59.000000Z', - external_issues = [ - qaseio.models.external_issue.ExternalIssue( - type = '', - issues = [ - qaseio.models.external_issue_issues_inner.ExternalIssue_issues_inner( - id = '', - link = '', ) - ], ) - ], ) - ] - ) - else: - return TestCaseListResponseAllOfResult( - ) - """ - - def testTestCaseListResponseAllOfResult(self): - """Test TestCaseListResponseAllOfResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_params.py b/qaseio/tests/tests_qaseio/test_test_case_params.py deleted file mode 100644 index 5c04445b..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_params.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_params import TestCaseParams - -class TestTestCaseParams(unittest.TestCase): - """TestCaseParams unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseParams: - """Test TestCaseParams - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseParams` - """ - model = TestCaseParams() - if include_optional: - return TestCaseParams( - ) - else: - return TestCaseParams( - ) - """ - - def testTestCaseParams(self): - """Test TestCaseParams""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_query.py b/qaseio/tests/tests_qaseio/test_test_case_query.py deleted file mode 100644 index f6be4e4b..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_query.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_query import TestCaseQuery - -class TestTestCaseQuery(unittest.TestCase): - """TestCaseQuery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseQuery: - """Test TestCaseQuery - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseQuery` - """ - model = TestCaseQuery() - if include_optional: - return TestCaseQuery( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ], ) - ], - params = None, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' - ) - else: - return TestCaseQuery( - ) - """ - - def testTestCaseQuery(self): - """Test TestCaseQuery""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_response.py b/qaseio/tests/tests_qaseio/test_test_case_response.py deleted file mode 100644 index d64b587d..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_response.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_response import TestCaseResponse - -class TestTestCaseResponse(unittest.TestCase): - """TestCaseResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseResponse: - """Test TestCaseResponse - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseResponse` - """ - model = TestCaseResponse() - if include_optional: - return TestCaseResponse( - status = True, - result = qaseio.models.test_case.TestCase( - id = 56, - position = 56, - title = '', - description = '', - preconditions = '', - postconditions = '', - severity = 56, - priority = 56, - type = 56, - layer = 56, - is_flaky = 56, - behavior = 56, - automation = 56, - status = 56, - milestone_id = 56, - suite_id = 56, - custom_fields = [ - qaseio.models.custom_field_value.CustomFieldValue( - id = 56, - value = '', ) - ], - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps_type = '', - steps = [ - qaseio.models.test_step.TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', ) - ], - params = null, - tags = [ - qaseio.models.tag_value.TagValue( - title = '', - internal_id = 56, ) - ], - member_id = 56, - author_id = 56, - created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z', - deleted = '2021-12-30T19:23:59.000000Z', - created = '2021-12-30T19:23:59.000000Z', - updated = '2021-12-30T19:23:59.000000Z', - external_issues = [ - qaseio.models.external_issue.ExternalIssue( - type = '', - issues = [ - qaseio.models.external_issue_issues_inner.ExternalIssue_issues_inner( - id = '', - link = '', ) - ], ) - ], ) - ) - else: - return TestCaseResponse( - ) - """ - - def testTestCaseResponse(self): - """Test TestCaseResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_case_update.py b/qaseio/tests/tests_qaseio/test_test_case_update.py deleted file mode 100644 index 49f99fad..00000000 --- a/qaseio/tests/tests_qaseio/test_test_case_update.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_case_update import TestCaseUpdate - -class TestTestCaseUpdate(unittest.TestCase): - """TestCaseUpdate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseUpdate: - """Test TestCaseUpdate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseUpdate` - """ - model = TestCaseUpdate() - if include_optional: - return TestCaseUpdate( - description = '', - preconditions = '', - postconditions = '', - title = '', - severity = 56, - priority = 56, - behavior = 56, - type = 56, - layer = 56, - is_flaky = 56, - suite_id = 56, - milestone_id = 56, - automation = 56, - status = 56, - attachments = [ - '' - ], - steps = [ - qaseio.models.test_step_create.TestStepCreate( - action = '', - expected_result = '', - data = '', - position = 56, - attachments = [ - '' - ], - steps = [ - None - ], ) - ], - tags = [ - '' - ], - params = { - 'key' : [ - '' - ] - }, - custom_field = { - 'key' : '' - } - ) - else: - return TestCaseUpdate( - ) - """ - - def testTestCaseUpdate(self): - """Test TestCaseUpdate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_casebulk.py b/qaseio/tests/tests_qaseio/test_test_casebulk.py deleted file mode 100644 index 4646b9b1..00000000 --- a/qaseio/tests/tests_qaseio/test_test_casebulk.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_casebulk import TestCasebulk - -class TestTestCasebulk(unittest.TestCase): - """TestCasebulk unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCasebulk: - """Test TestCasebulk - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCasebulk` - """ - model = TestCasebulk() - if include_optional: - return TestCasebulk( - cases = [ - null - ] - ) - else: - return TestCasebulk( - cases = [ - null - ], - ) - """ - - def testTestCasebulk(self): - """Test TestCasebulk""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_casebulk_cases_inner.py b/qaseio/tests/tests_qaseio/test_test_casebulk_cases_inner.py deleted file mode 100644 index 0b1c11e6..00000000 --- a/qaseio/tests/tests_qaseio/test_test_casebulk_cases_inner.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_casebulk_cases_inner import TestCasebulkCasesInner - -class TestTestCasebulkCasesInner(unittest.TestCase): - """TestCasebulkCasesInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCasebulkCasesInner: - """Test TestCasebulkCasesInner - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCasebulkCasesInner` - """ - model = TestCasebulkCasesInner() - if include_optional: - return TestCasebulkCasesInner( - description = '', - preconditions = '', - postconditions = '', - title = '', - severity = 56, - priority = 56, - behavior = 56, - type = 56, - layer = 56, - is_flaky = 56, - author_id = 56, - suite_id = 56, - milestone_id = 56, - automation = 56, - status = 56, - attachments = [ - '' - ], - steps = [ - qaseio.models.test_step_create.TestStepCreate( - action = '', - expected_result = '', - data = '', - position = 56, - attachments = [ - '' - ], ) - ], - tags = [ - '' - ], - params = { - 'key' : [ - '' - ] - }, - custom_field = { - 'key' : '' - }, - created_at = '', - updated_at = '', - id = 56 - ) - else: - return TestCasebulkCasesInner( - title = '', - ) - """ - - def testTestCasebulkCasesInner(self): - """Test TestCasebulkCasesInner""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_caseexternal_issues.py b/qaseio/tests/tests_qaseio/test_test_caseexternal_issues.py deleted file mode 100644 index c3505095..00000000 --- a/qaseio/tests/tests_qaseio/test_test_caseexternal_issues.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_caseexternal_issues import TestCaseexternalIssues - -class TestTestCaseexternalIssues(unittest.TestCase): - """TestCaseexternalIssues unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestCaseexternalIssues: - """Test TestCaseexternalIssues - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestCaseexternalIssues` - """ - model = TestCaseexternalIssues() - if include_optional: - return TestCaseexternalIssues( - type = 'jira-cloud', - links = [ - qaseio.models.test_case_external_issues_links_inner.TestCaseExternalIssues_links_inner( - case_id = 56, - external_issues = [ - '' - ], ) - ] - ) - else: - return TestCaseexternalIssues( - type = 'jira-cloud', - links = [ - qaseio.models.test_case_external_issues_links_inner.TestCaseExternalIssues_links_inner( - case_id = 56, - external_issues = [ - '' - ], ) - ], - ) - """ - - def testTestCaseexternalIssues(self): - """Test TestCaseexternalIssues""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_step.py b/qaseio/tests/tests_qaseio/test_test_step.py deleted file mode 100644 index b384369c..00000000 --- a/qaseio/tests/tests_qaseio/test_test_step.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_step import TestStep - -class TestTestStep(unittest.TestCase): - """TestStep unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStep: - """Test TestStep - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStep` - """ - model = TestStep() - if include_optional: - return TestStep( - hash = '', - shared_step_hash = '', - shared_step_nested_hash = '', - position = 56, - action = '', - expected_result = '', - data = '', - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ] - ) - else: - return TestStep( - ) - """ - - def testTestStep(self): - """Test TestStep""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_step_create.py b/qaseio/tests/tests_qaseio/test_test_step_create.py deleted file mode 100644 index 7ddb25ce..00000000 --- a/qaseio/tests/tests_qaseio/test_test_step_create.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_step_create import TestStepCreate - -class TestTestStepCreate(unittest.TestCase): - """TestStepCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStepCreate: - """Test TestStepCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStepCreate` - """ - model = TestStepCreate() - if include_optional: - return TestStepCreate( - action = '', - expected_result = '', - data = '', - position = 56, - attachments = [ - '' - ], - steps = [ - None - ] - ) - else: - return TestStepCreate( - ) - """ - - def testTestStepCreate(self): - """Test TestStepCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_step_result.py b/qaseio/tests/tests_qaseio/test_test_step_result.py deleted file mode 100644 index ffcd9563..00000000 --- a/qaseio/tests/tests_qaseio/test_test_step_result.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_step_result import TestStepResult - -class TestTestStepResult(unittest.TestCase): - """TestStepResult unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStepResult: - """Test TestStepResult - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStepResult` - """ - model = TestStepResult() - if include_optional: - return TestStepResult( - status = 56, - position = 56, - attachments = [ - qaseio.models.attachment.Attachment( - size = 56, - mime = '', - filename = '', - url = '', ) - ], - steps = [ - None - ] - ) - else: - return TestStepResult( - ) - """ - - def testTestStepResult(self): - """Test TestStepResult""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tests/tests_qaseio/test_test_step_result_create.py b/qaseio/tests/tests_qaseio/test_test_step_result_create.py deleted file mode 100644 index d3a757eb..00000000 --- a/qaseio/tests/tests_qaseio/test_test_step_result_create.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding: utf-8 - -""" - Qase.io TestOps API - - Qase TestOps API Specification. - - The version of the OpenAPI document: 1.0.0 - Contact: support@qase.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest -import datetime - -from qaseio.models.test_step_result_create import TestStepResultCreate - -class TestTestStepResultCreate(unittest.TestCase): - """TestStepResultCreate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> TestStepResultCreate: - """Test TestStepResultCreate - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `TestStepResultCreate` - """ - model = TestStepResultCreate() - if include_optional: - return TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - attachments = [ - '' - ], - action = '', - expected_result = '', - data = '', - steps = [ - None - ] - ) - else: - return TestStepResultCreate( - status = 'passed', - ) - """ - - def testTestStepResultCreate(self): - """Test TestStepResultCreate""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/qaseio/tox.ini b/qaseio/tox.ini deleted file mode 100644 index ca98cf6c..00000000 --- a/qaseio/tox.ini +++ /dev/null @@ -1,9 +0,0 @@ -[tox] -envlist = python3.7 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - pytest --cov=qaseio