diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index fa5d3d9b..fb5850c0 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -10,11 +10,11 @@ jobs: max-parallel: 5 matrix: python-version: + - "3.13" + - "3.12" - "3.11" - "3.10" - "3.9" - - "3.8" - - "3.7" changed-dir: - "qase-api-client" - "qase-api-v2-client" diff --git a/qase-api-client/README.md b/qase-api-client/README.md index 85f7d204..0f3988e6 100644 --- a/qase-api-client/README.md +++ b/qase-api-client/README.md @@ -1,29 +1,32 @@ # qase-api-client + Qase TestOps API v1 Specification. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 -- Package version: 1.0.0 -- Generator version: 7.4.0 +- Generator version: 7.15.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://qase.io](https://qase.io) -## Requirements. +## Requirements -Python 3.7+ +Python 3.9+ ## 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 +pip install qase-api-client ``` -(you may need to run `pip` with root permission: `sudo 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 qase-api-client`) Then import the package: + ```python import qase.api_client_v1 ``` @@ -35,9 +38,11 @@ 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 qase.api_client_v1 ``` @@ -92,7 +97,7 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: ## Documentation for API Endpoints -All URIs are relative to *https://api.qase.io/v1* +All URIs are relative to ** Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -171,168 +176,164 @@ Class | Method | HTTP request | Description *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) - +- [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 +## 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/qase-api-client/docs/Attachment.md b/qase-api-client/docs/Attachment.md index 8e7d43fb..417b610d 100644 --- a/qase-api-client/docs/Attachment.md +++ b/qase-api-client/docs/Attachment.md @@ -25,7 +25,7 @@ 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) +attachment_from_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/qase-api-client/docs/AttachmentGet.md b/qase-api-client/docs/AttachmentGet.md index a1e955f5..80d3500b 100644 --- a/qase-api-client/docs/AttachmentGet.md +++ b/qase-api-client/docs/AttachmentGet.md @@ -28,7 +28,7 @@ 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) +attachment_get_from_dict = AttachmentGet.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/qase-api-client/docs/AttachmentHash.md b/qase-api-client/docs/AttachmentHash.md index 9012e8ec..231bcb6f 100644 --- a/qase-api-client/docs/AttachmentHash.md +++ b/qase-api-client/docs/AttachmentHash.md @@ -26,7 +26,7 @@ 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) +attachment_hash_from_dict = AttachmentHash.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/qase-api-client/docs/AttachmentListResponse.md b/qase-api-client/docs/AttachmentListResponse.md index 54f342ae..6aa4c4fe 100644 --- a/qase-api-client/docs/AttachmentListResponse.md +++ b/qase-api-client/docs/AttachmentListResponse.md @@ -23,7 +23,7 @@ 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) +attachment_list_response_from_dict = AttachmentListResponse.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/qase-api-client/docs/AttachmentListResponseAllOfResult.md b/qase-api-client/docs/AttachmentListResponseAllOfResult.md index 20fe2718..c5dc8c36 100644 --- a/qase-api-client/docs/AttachmentListResponseAllOfResult.md +++ b/qase-api-client/docs/AttachmentListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +attachment_list_response_all_of_result_from_dict = AttachmentListResponseAllOfResult.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/qase-api-client/docs/AttachmentResponse.md b/qase-api-client/docs/AttachmentResponse.md index 4b7873cf..e3c9e757 100644 --- a/qase-api-client/docs/AttachmentResponse.md +++ b/qase-api-client/docs/AttachmentResponse.md @@ -23,7 +23,7 @@ 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) +attachment_response_from_dict = AttachmentResponse.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/qase-api-client/docs/AttachmentUploadsResponse.md b/qase-api-client/docs/AttachmentUploadsResponse.md index 4c74cb98..30ecc443 100644 --- a/qase-api-client/docs/AttachmentUploadsResponse.md +++ b/qase-api-client/docs/AttachmentUploadsResponse.md @@ -23,7 +23,7 @@ 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) +attachment_uploads_response_from_dict = AttachmentUploadsResponse.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/qase-api-client/docs/AttachmentsApi.md b/qase-api-client/docs/AttachmentsApi.md index eefdbf53..90b3a961 100644 --- a/qase-api-client/docs/AttachmentsApi.md +++ b/qase-api-client/docs/AttachmentsApi.md @@ -15,7 +15,8 @@ Method | HTTP request | Description Remove attachment by Hash -This method allows to remove attachment by Hash. +This method allows to remove attachment by Hash. + ### Example @@ -99,7 +100,8 @@ Name | Type | Description | Notes Get attachment by Hash -This method allows to retrieve attachment by Hash. +This method allows to retrieve attachment by Hash. + ### Example @@ -183,7 +185,8 @@ Name | Type | Description | Notes Get all attachments -This method allows to retrieve attachments. +This method allows to retrieve attachments. + ### Example @@ -270,7 +273,15 @@ Name | Type | Description | Notes 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. +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 diff --git a/qase-api-client/docs/Attachmentupload.md b/qase-api-client/docs/Attachmentupload.md index cd2fdd67..4398109c 100644 --- a/qase-api-client/docs/Attachmentupload.md +++ b/qase-api-client/docs/Attachmentupload.md @@ -27,7 +27,7 @@ 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) +attachmentupload_from_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/qase-api-client/docs/Author.md b/qase-api-client/docs/Author.md index b93abebe..8e343a09 100644 --- a/qase-api-client/docs/Author.md +++ b/qase-api-client/docs/Author.md @@ -28,7 +28,7 @@ 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) +author_from_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/qase-api-client/docs/AuthorListResponse.md b/qase-api-client/docs/AuthorListResponse.md index e6a9e4af..a451b551 100644 --- a/qase-api-client/docs/AuthorListResponse.md +++ b/qase-api-client/docs/AuthorListResponse.md @@ -23,7 +23,7 @@ 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) +author_list_response_from_dict = AuthorListResponse.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/qase-api-client/docs/AuthorListResponseAllOfResult.md b/qase-api-client/docs/AuthorListResponseAllOfResult.md index e8f37f9b..5d470004 100644 --- a/qase-api-client/docs/AuthorListResponseAllOfResult.md +++ b/qase-api-client/docs/AuthorListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +author_list_response_all_of_result_from_dict = AuthorListResponseAllOfResult.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/qase-api-client/docs/AuthorResponse.md b/qase-api-client/docs/AuthorResponse.md index 87a325c5..5bb09551 100644 --- a/qase-api-client/docs/AuthorResponse.md +++ b/qase-api-client/docs/AuthorResponse.md @@ -23,7 +23,7 @@ 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) +author_response_from_dict = AuthorResponse.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/qase-api-client/docs/AuthorsApi.md b/qase-api-client/docs/AuthorsApi.md index 2a276320..edd699d4 100644 --- a/qase-api-client/docs/AuthorsApi.md +++ b/qase-api-client/docs/AuthorsApi.md @@ -13,7 +13,8 @@ Method | HTTP request | Description Get a specific author -This method allows to retrieve a specific author. +This method allows to retrieve a specific author. + ### Example @@ -97,7 +98,8 @@ Name | Type | Description | Notes Get all authors -This method allows to retrieve all authors in selected project. +This method allows to retrieve all authors in selected project. + ### Example diff --git a/qase-api-client/docs/BaseResponse.md b/qase-api-client/docs/BaseResponse.md index 04c5628b..c9b4939f 100644 --- a/qase-api-client/docs/BaseResponse.md +++ b/qase-api-client/docs/BaseResponse.md @@ -22,7 +22,7 @@ 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) +base_response_from_dict = BaseResponse.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/qase-api-client/docs/Bulk200Response.md b/qase-api-client/docs/Bulk200Response.md index 0693f6ac..6afa8253 100644 --- a/qase-api-client/docs/Bulk200Response.md +++ b/qase-api-client/docs/Bulk200Response.md @@ -23,7 +23,7 @@ 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) +bulk200_response_from_dict = Bulk200Response.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/qase-api-client/docs/Bulk200ResponseAllOfResult.md b/qase-api-client/docs/Bulk200ResponseAllOfResult.md index 77418aa0..5dba073d 100644 --- a/qase-api-client/docs/Bulk200ResponseAllOfResult.md +++ b/qase-api-client/docs/Bulk200ResponseAllOfResult.md @@ -22,7 +22,7 @@ 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) +bulk200_response_all_of_result_from_dict = Bulk200ResponseAllOfResult.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/qase-api-client/docs/CasesApi.md b/qase-api-client/docs/CasesApi.md index cb67c20f..ca6c55b4 100644 --- a/qase-api-client/docs/CasesApi.md +++ b/qase-api-client/docs/CasesApi.md @@ -19,7 +19,8 @@ Method | HTTP request | Description Create test cases in bulk -This method allows to bulk create new test cases in a project. +This method allows to bulk create new test cases in a project. + ### Example @@ -103,7 +104,7 @@ Name | Type | Description | Notes [[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) +> BaseResponse case_attach_external_issue(code, test_case_external_issues) Attach the external issues to the test cases @@ -114,7 +115,7 @@ Attach the external issues to the test cases ```python import qase.api_client_v1 from qase.api_client_v1.models.base_response import BaseResponse -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues +from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -140,11 +141,11 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = qase.api_client_v1.CasesApi(api_client) code = 'code_example' # str | Code of project, where to search entities. - test_caseexternal_issues = qase.api_client_v1.TestCaseexternalIssues() # TestCaseexternalIssues | + test_case_external_issues = qase.api_client_v1.TestCaseExternalIssues() # TestCaseExternalIssues | try: # Attach the external issues to the test cases - api_response = api_instance.case_attach_external_issue(code, test_caseexternal_issues) + api_response = api_instance.case_attach_external_issue(code, test_case_external_issues) print("The response of CasesApi->case_attach_external_issue:\n") pprint(api_response) except Exception as e: @@ -159,7 +160,7 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **code** | **str**| Code of project, where to search entities. | - **test_caseexternal_issues** | [**TestCaseexternalIssues**](TestCaseexternalIssues.md)| | + **test_case_external_issues** | [**TestCaseExternalIssues**](TestCaseExternalIssues.md)| | ### Return type @@ -190,7 +191,7 @@ Name | Type | Description | Notes [[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) +> BaseResponse case_detach_external_issue(code, test_case_external_issues) Detach the external issues from the test cases @@ -201,7 +202,7 @@ Detach the external issues from the test cases ```python import qase.api_client_v1 from qase.api_client_v1.models.base_response import BaseResponse -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues +from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -227,11 +228,11 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = qase.api_client_v1.CasesApi(api_client) code = 'code_example' # str | Code of project, where to search entities. - test_caseexternal_issues = qase.api_client_v1.TestCaseexternalIssues() # TestCaseexternalIssues | + test_case_external_issues = qase.api_client_v1.TestCaseExternalIssues() # TestCaseExternalIssues | try: # Detach the external issues from the test cases - api_response = api_instance.case_detach_external_issue(code, test_caseexternal_issues) + api_response = api_instance.case_detach_external_issue(code, test_case_external_issues) print("The response of CasesApi->case_detach_external_issue:\n") pprint(api_response) except Exception as e: @@ -246,7 +247,7 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **code** | **str**| Code of project, where to search entities. | - **test_caseexternal_issues** | [**TestCaseexternalIssues**](TestCaseexternalIssues.md)| | + **test_case_external_issues** | [**TestCaseExternalIssues**](TestCaseExternalIssues.md)| | ### Return type @@ -281,7 +282,8 @@ Name | Type | Description | Notes Create a new test case -This method allows to create a new test case in selected project. +This method allows to create a new test case in selected project. + ### Example @@ -369,7 +371,8 @@ Name | Type | Description | Notes Delete test case -This method completely deletes a test case from repository. +This method completely deletes a test case from repository. + ### Example @@ -456,7 +459,8 @@ Name | Type | Description | Notes Get a specific test case -This method allows to retrieve a specific test case. +This method allows to retrieve a specific test case. + ### Example @@ -545,7 +549,8 @@ Name | Type | Description | Notes Get all test cases -This method allows to retrieve all test cases stored in selected project. +This method allows to retrieve all test cases stored in selected project. + ### Example @@ -658,7 +663,8 @@ Name | Type | Description | Notes Update test case -This method updates a test case. +This method updates a test case. + ### Example diff --git a/qase-api-client/docs/Configuration.md b/qase-api-client/docs/Configuration.md index 730dc20f..b576d440 100644 --- a/qase-api-client/docs/Configuration.md +++ b/qase-api-client/docs/Configuration.md @@ -23,7 +23,7 @@ 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) +configuration_from_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/qase-api-client/docs/ConfigurationCreate.md b/qase-api-client/docs/ConfigurationCreate.md index 8a517a6a..8a7c5268 100644 --- a/qase-api-client/docs/ConfigurationCreate.md +++ b/qase-api-client/docs/ConfigurationCreate.md @@ -23,7 +23,7 @@ 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) +configuration_create_from_dict = ConfigurationCreate.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/qase-api-client/docs/ConfigurationGroup.md b/qase-api-client/docs/ConfigurationGroup.md index 3544e7e8..8448b759 100644 --- a/qase-api-client/docs/ConfigurationGroup.md +++ b/qase-api-client/docs/ConfigurationGroup.md @@ -24,7 +24,7 @@ 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) +configuration_group_from_dict = ConfigurationGroup.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/qase-api-client/docs/ConfigurationGroupCreate.md b/qase-api-client/docs/ConfigurationGroupCreate.md index e39b53bc..fc1da56b 100644 --- a/qase-api-client/docs/ConfigurationGroupCreate.md +++ b/qase-api-client/docs/ConfigurationGroupCreate.md @@ -22,7 +22,7 @@ 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) +configuration_group_create_from_dict = ConfigurationGroupCreate.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/qase-api-client/docs/ConfigurationListResponse.md b/qase-api-client/docs/ConfigurationListResponse.md index 6c1f33e1..bb49f267 100644 --- a/qase-api-client/docs/ConfigurationListResponse.md +++ b/qase-api-client/docs/ConfigurationListResponse.md @@ -23,7 +23,7 @@ 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) +configuration_list_response_from_dict = ConfigurationListResponse.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/qase-api-client/docs/ConfigurationListResponseAllOfResult.md b/qase-api-client/docs/ConfigurationListResponseAllOfResult.md index bd72ba61..fe055f33 100644 --- a/qase-api-client/docs/ConfigurationListResponseAllOfResult.md +++ b/qase-api-client/docs/ConfigurationListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +configuration_list_response_all_of_result_from_dict = ConfigurationListResponseAllOfResult.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/qase-api-client/docs/ConfigurationsApi.md b/qase-api-client/docs/ConfigurationsApi.md index af60711a..685822dd 100644 --- a/qase-api-client/docs/ConfigurationsApi.md +++ b/qase-api-client/docs/ConfigurationsApi.md @@ -14,7 +14,8 @@ Method | HTTP request | Description Create a new configuration in a particular group. -This method allows to create a configuration in selected project. +This method allows to create a configuration in selected project. + ### Example @@ -102,7 +103,8 @@ Name | Type | Description | Notes Create a new configuration group. -This method allows to create a configuration group in selected project. +This method allows to create a configuration group in selected project. + ### Example @@ -190,7 +192,8 @@ Name | Type | Description | Notes Get all configuration groups with configurations. -This method allows to retrieve all configurations groups with configurations +This method allows to retrieve all configurations groups with configurations + ### Example diff --git a/qase-api-client/docs/CustomField.md b/qase-api-client/docs/CustomField.md index fd083add..931b9576 100644 --- a/qase-api-client/docs/CustomField.md +++ b/qase-api-client/docs/CustomField.md @@ -37,7 +37,7 @@ 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) +custom_field_from_dict = CustomField.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/qase-api-client/docs/CustomFieldCreate.md b/qase-api-client/docs/CustomFieldCreate.md index fea537e3..84f32f17 100644 --- a/qase-api-client/docs/CustomFieldCreate.md +++ b/qase-api-client/docs/CustomFieldCreate.md @@ -32,7 +32,7 @@ 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) +custom_field_create_from_dict = CustomFieldCreate.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/qase-api-client/docs/CustomFieldCreateValueInner.md b/qase-api-client/docs/CustomFieldCreateValueInner.md index ee91c485..54c41269 100644 --- a/qase-api-client/docs/CustomFieldCreateValueInner.md +++ b/qase-api-client/docs/CustomFieldCreateValueInner.md @@ -23,7 +23,7 @@ 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) +custom_field_create_value_inner_from_dict = CustomFieldCreateValueInner.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/qase-api-client/docs/CustomFieldListResponse.md b/qase-api-client/docs/CustomFieldListResponse.md index a38fb1b8..b0eda515 100644 --- a/qase-api-client/docs/CustomFieldListResponse.md +++ b/qase-api-client/docs/CustomFieldListResponse.md @@ -23,7 +23,7 @@ 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) +custom_field_list_response_from_dict = CustomFieldListResponse.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/qase-api-client/docs/CustomFieldResponse.md b/qase-api-client/docs/CustomFieldResponse.md index 59b995b9..91826390 100644 --- a/qase-api-client/docs/CustomFieldResponse.md +++ b/qase-api-client/docs/CustomFieldResponse.md @@ -23,7 +23,7 @@ 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) +custom_field_response_from_dict = CustomFieldResponse.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/qase-api-client/docs/CustomFieldUpdate.md b/qase-api-client/docs/CustomFieldUpdate.md index dd9dee5f..9997eaa8 100644 --- a/qase-api-client/docs/CustomFieldUpdate.md +++ b/qase-api-client/docs/CustomFieldUpdate.md @@ -31,7 +31,7 @@ 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) +custom_field_update_from_dict = CustomFieldUpdate.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/qase-api-client/docs/CustomFieldValue.md b/qase-api-client/docs/CustomFieldValue.md index d4776295..9709c379 100644 --- a/qase-api-client/docs/CustomFieldValue.md +++ b/qase-api-client/docs/CustomFieldValue.md @@ -23,7 +23,7 @@ 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) +custom_field_value_from_dict = CustomFieldValue.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/qase-api-client/docs/CustomFieldsApi.md b/qase-api-client/docs/CustomFieldsApi.md index 1764cab0..a846cd8b 100644 --- a/qase-api-client/docs/CustomFieldsApi.md +++ b/qase-api-client/docs/CustomFieldsApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create new Custom Field -This method allows to create custom field. +This method allows to create custom field. + ### Example @@ -101,7 +102,8 @@ Name | Type | Description | Notes Delete Custom Field by id -This method allows to delete custom field. +This method allows to delete custom field. + ### Example @@ -185,7 +187,8 @@ Name | Type | Description | Notes Get Custom Field by id -This method allows to retrieve custom field. +This method allows to retrieve custom field. + ### Example @@ -269,7 +272,8 @@ Name | Type | Description | Notes Get all Custom Fields -This method allows to retrieve and filter custom fields. +This method allows to retrieve and filter custom fields. + ### Example @@ -358,7 +362,8 @@ Name | Type | Description | Notes Update Custom Field by id -This method allows to update custom field. +This method allows to update custom field. + ### Example diff --git a/qase-api-client/docs/CustomFieldsResponse.md b/qase-api-client/docs/CustomFieldsResponse.md index 4001abc9..d766da9f 100644 --- a/qase-api-client/docs/CustomFieldsResponse.md +++ b/qase-api-client/docs/CustomFieldsResponse.md @@ -23,7 +23,7 @@ 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) +custom_fields_response_from_dict = CustomFieldsResponse.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/qase-api-client/docs/CustomFieldsResponseAllOfResult.md b/qase-api-client/docs/CustomFieldsResponseAllOfResult.md index 127cf246..3dbe53d2 100644 --- a/qase-api-client/docs/CustomFieldsResponseAllOfResult.md +++ b/qase-api-client/docs/CustomFieldsResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +custom_fields_response_all_of_result_from_dict = CustomFieldsResponseAllOfResult.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/qase-api-client/docs/Defect.md b/qase-api-client/docs/Defect.md index 431bb756..9f0ae61d 100644 --- a/qase-api-client/docs/Defect.md +++ b/qase-api-client/docs/Defect.md @@ -40,7 +40,7 @@ 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) +defect_from_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/qase-api-client/docs/DefectCreate.md b/qase-api-client/docs/DefectCreate.md index def18fba..989314c6 100644 --- a/qase-api-client/docs/DefectCreate.md +++ b/qase-api-client/docs/DefectCreate.md @@ -28,7 +28,7 @@ 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) +defect_create_from_dict = DefectCreate.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/qase-api-client/docs/DefectListResponse.md b/qase-api-client/docs/DefectListResponse.md index 6e22bbee..f611d2bf 100644 --- a/qase-api-client/docs/DefectListResponse.md +++ b/qase-api-client/docs/DefectListResponse.md @@ -23,7 +23,7 @@ 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) +defect_list_response_from_dict = DefectListResponse.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/qase-api-client/docs/DefectListResponseAllOfResult.md b/qase-api-client/docs/DefectListResponseAllOfResult.md index 2cacf2da..3f0f53aa 100644 --- a/qase-api-client/docs/DefectListResponseAllOfResult.md +++ b/qase-api-client/docs/DefectListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +defect_list_response_all_of_result_from_dict = DefectListResponseAllOfResult.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/qase-api-client/docs/DefectQuery.md b/qase-api-client/docs/DefectQuery.md index 298e8662..d5a702a1 100644 --- a/qase-api-client/docs/DefectQuery.md +++ b/qase-api-client/docs/DefectQuery.md @@ -37,7 +37,7 @@ 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) +defect_query_from_dict = DefectQuery.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/qase-api-client/docs/DefectResponse.md b/qase-api-client/docs/DefectResponse.md index 34af6cbf..5512baa0 100644 --- a/qase-api-client/docs/DefectResponse.md +++ b/qase-api-client/docs/DefectResponse.md @@ -23,7 +23,7 @@ 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) +defect_response_from_dict = DefectResponse.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/qase-api-client/docs/DefectStatus.md b/qase-api-client/docs/DefectStatus.md index 41d31edb..8e172577 100644 --- a/qase-api-client/docs/DefectStatus.md +++ b/qase-api-client/docs/DefectStatus.md @@ -22,7 +22,7 @@ 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) +defect_status_from_dict = DefectStatus.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/qase-api-client/docs/DefectUpdate.md b/qase-api-client/docs/DefectUpdate.md index 5cbb0f29..23c05b0b 100644 --- a/qase-api-client/docs/DefectUpdate.md +++ b/qase-api-client/docs/DefectUpdate.md @@ -28,7 +28,7 @@ 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) +defect_update_from_dict = DefectUpdate.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/qase-api-client/docs/DefectsApi.md b/qase-api-client/docs/DefectsApi.md index a5500881..e452e1db 100644 --- a/qase-api-client/docs/DefectsApi.md +++ b/qase-api-client/docs/DefectsApi.md @@ -18,7 +18,8 @@ Method | HTTP request | Description Create a new defect -This method allows to create a defect in selected project. +This method allows to create a defect in selected project. + ### Example @@ -106,7 +107,8 @@ Name | Type | Description | Notes Delete defect -This method completely deletes a defect from repository. +This method completely deletes a defect from repository. + ### Example @@ -192,7 +194,8 @@ Name | Type | Description | Notes Get a specific defect -This method allows to retrieve a specific defect. +This method allows to retrieve a specific defect. + ### Example @@ -278,7 +281,8 @@ Name | Type | Description | Notes Get all defects -This method allows to retrieve all defects stored in selected project. +This method allows to retrieve all defects stored in selected project. + ### Example @@ -368,7 +372,8 @@ Name | Type | Description | Notes Resolve a specific defect -This method allows to resolve a specific defect. +This method allows to resolve a specific defect. + ### Example @@ -455,7 +460,8 @@ Name | Type | Description | Notes Update defect -This method updates a defect. +This method updates a defect. + ### Example @@ -545,7 +551,8 @@ Name | Type | Description | Notes Update a specific defect status -This method allows to update a specific defect status. +This method allows to update a specific defect status. + ### Example diff --git a/qase-api-client/docs/Environment.md b/qase-api-client/docs/Environment.md index ec4350c1..52dad911 100644 --- a/qase-api-client/docs/Environment.md +++ b/qase-api-client/docs/Environment.md @@ -26,7 +26,7 @@ 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) +environment_from_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/qase-api-client/docs/EnvironmentCreate.md b/qase-api-client/docs/EnvironmentCreate.md index d7bd878a..8638f823 100644 --- a/qase-api-client/docs/EnvironmentCreate.md +++ b/qase-api-client/docs/EnvironmentCreate.md @@ -25,7 +25,7 @@ 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) +environment_create_from_dict = EnvironmentCreate.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/qase-api-client/docs/EnvironmentListResponse.md b/qase-api-client/docs/EnvironmentListResponse.md index f50ce90b..d245ba89 100644 --- a/qase-api-client/docs/EnvironmentListResponse.md +++ b/qase-api-client/docs/EnvironmentListResponse.md @@ -23,7 +23,7 @@ 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) +environment_list_response_from_dict = EnvironmentListResponse.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/qase-api-client/docs/EnvironmentListResponseAllOfResult.md b/qase-api-client/docs/EnvironmentListResponseAllOfResult.md index b10a4966..2c7e2cd7 100644 --- a/qase-api-client/docs/EnvironmentListResponseAllOfResult.md +++ b/qase-api-client/docs/EnvironmentListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +environment_list_response_all_of_result_from_dict = EnvironmentListResponseAllOfResult.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/qase-api-client/docs/EnvironmentResponse.md b/qase-api-client/docs/EnvironmentResponse.md index 2741b056..2876dc09 100644 --- a/qase-api-client/docs/EnvironmentResponse.md +++ b/qase-api-client/docs/EnvironmentResponse.md @@ -23,7 +23,7 @@ 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) +environment_response_from_dict = EnvironmentResponse.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/qase-api-client/docs/EnvironmentUpdate.md b/qase-api-client/docs/EnvironmentUpdate.md index 1a9640e1..d8623436 100644 --- a/qase-api-client/docs/EnvironmentUpdate.md +++ b/qase-api-client/docs/EnvironmentUpdate.md @@ -25,7 +25,7 @@ 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) +environment_update_from_dict = EnvironmentUpdate.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/qase-api-client/docs/EnvironmentsApi.md b/qase-api-client/docs/EnvironmentsApi.md index 56bfa785..543dc23c 100644 --- a/qase-api-client/docs/EnvironmentsApi.md +++ b/qase-api-client/docs/EnvironmentsApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create a new environment -This method allows to create an environment in selected project. +This method allows to create an environment in selected project. + ### Example @@ -104,7 +105,8 @@ Name | Type | Description | Notes Delete environment -This method completely deletes an environment from repository. +This method completely deletes an environment from repository. + ### Example @@ -190,7 +192,8 @@ Name | Type | Description | Notes Get a specific environment -This method allows to retrieve a specific environment. +This method allows to retrieve a specific environment. + ### Example @@ -276,7 +279,8 @@ Name | Type | Description | Notes Get all environments -This method allows to retrieve all environments stored in selected project. +This method allows to retrieve all environments stored in selected project. + ### Example @@ -368,7 +372,8 @@ Name | Type | Description | Notes Update environment -This method updates an environment. +This method updates an environment. + ### Example diff --git a/qase-api-client/docs/ExternalIssue.md b/qase-api-client/docs/ExternalIssue.md index eac0fa7a..0747e945 100644 --- a/qase-api-client/docs/ExternalIssue.md +++ b/qase-api-client/docs/ExternalIssue.md @@ -23,7 +23,7 @@ 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) +external_issue_from_dict = ExternalIssue.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/qase-api-client/docs/ExternalIssueIssuesInner.md b/qase-api-client/docs/ExternalIssueIssuesInner.md index c11a2508..2221540e 100644 --- a/qase-api-client/docs/ExternalIssueIssuesInner.md +++ b/qase-api-client/docs/ExternalIssueIssuesInner.md @@ -23,7 +23,7 @@ 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) +external_issue_issues_inner_from_dict = ExternalIssueIssuesInner.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/qase-api-client/docs/HashResponse.md b/qase-api-client/docs/HashResponse.md index 7d2f4bf3..e6fc3bd8 100644 --- a/qase-api-client/docs/HashResponse.md +++ b/qase-api-client/docs/HashResponse.md @@ -23,7 +23,7 @@ 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) +hash_response_from_dict = HashResponse.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/qase-api-client/docs/HashResponseAllOfResult.md b/qase-api-client/docs/HashResponseAllOfResult.md index a829f2ee..29fb859f 100644 --- a/qase-api-client/docs/HashResponseAllOfResult.md +++ b/qase-api-client/docs/HashResponseAllOfResult.md @@ -22,7 +22,7 @@ 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) +hash_response_all_of_result_from_dict = HashResponseAllOfResult.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/qase-api-client/docs/IdResponse.md b/qase-api-client/docs/IdResponse.md index b7e612a5..062f653a 100644 --- a/qase-api-client/docs/IdResponse.md +++ b/qase-api-client/docs/IdResponse.md @@ -23,7 +23,7 @@ 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) +id_response_from_dict = IdResponse.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/qase-api-client/docs/IdResponseAllOfResult.md b/qase-api-client/docs/IdResponseAllOfResult.md index 19304904..4ae896f6 100644 --- a/qase-api-client/docs/IdResponseAllOfResult.md +++ b/qase-api-client/docs/IdResponseAllOfResult.md @@ -22,7 +22,7 @@ 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) +id_response_all_of_result_from_dict = IdResponseAllOfResult.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/qase-api-client/docs/Milestone.md b/qase-api-client/docs/Milestone.md index c1538c97..5b365f83 100644 --- a/qase-api-client/docs/Milestone.md +++ b/qase-api-client/docs/Milestone.md @@ -30,7 +30,7 @@ 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) +milestone_from_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/qase-api-client/docs/MilestoneCreate.md b/qase-api-client/docs/MilestoneCreate.md index 6c7e20a7..ade92fcb 100644 --- a/qase-api-client/docs/MilestoneCreate.md +++ b/qase-api-client/docs/MilestoneCreate.md @@ -25,7 +25,7 @@ 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) +milestone_create_from_dict = MilestoneCreate.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/qase-api-client/docs/MilestoneListResponse.md b/qase-api-client/docs/MilestoneListResponse.md index 240ddcbd..7b90c3d4 100644 --- a/qase-api-client/docs/MilestoneListResponse.md +++ b/qase-api-client/docs/MilestoneListResponse.md @@ -23,7 +23,7 @@ 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) +milestone_list_response_from_dict = MilestoneListResponse.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/qase-api-client/docs/MilestoneListResponseAllOfResult.md b/qase-api-client/docs/MilestoneListResponseAllOfResult.md index d4dffecf..7b4dfbb7 100644 --- a/qase-api-client/docs/MilestoneListResponseAllOfResult.md +++ b/qase-api-client/docs/MilestoneListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +milestone_list_response_all_of_result_from_dict = MilestoneListResponseAllOfResult.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/qase-api-client/docs/MilestoneResponse.md b/qase-api-client/docs/MilestoneResponse.md index e61983c7..696865ab 100644 --- a/qase-api-client/docs/MilestoneResponse.md +++ b/qase-api-client/docs/MilestoneResponse.md @@ -23,7 +23,7 @@ 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) +milestone_response_from_dict = MilestoneResponse.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/qase-api-client/docs/MilestoneUpdate.md b/qase-api-client/docs/MilestoneUpdate.md index 9aec47f9..032cde0d 100644 --- a/qase-api-client/docs/MilestoneUpdate.md +++ b/qase-api-client/docs/MilestoneUpdate.md @@ -24,7 +24,7 @@ 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) +milestone_update_from_dict = MilestoneUpdate.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/qase-api-client/docs/MilestonesApi.md b/qase-api-client/docs/MilestonesApi.md index 10b87681..4bbd4568 100644 --- a/qase-api-client/docs/MilestonesApi.md +++ b/qase-api-client/docs/MilestonesApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create a new milestone -This method allows to create a milestone in selected project. +This method allows to create a milestone in selected project. + ### Example @@ -104,7 +105,8 @@ Name | Type | Description | Notes Delete milestone -This method completely deletes a milestone from repository. +This method completely deletes a milestone from repository. + ### Example @@ -190,7 +192,8 @@ Name | Type | Description | Notes Get a specific milestone -This method allows to retrieve a specific milestone. +This method allows to retrieve a specific milestone. + ### Example @@ -276,7 +279,8 @@ Name | Type | Description | Notes Get all milestones -This method allows to retrieve all milestones stored in selected project. +This method allows to retrieve all milestones stored in selected project. + ### Example @@ -366,7 +370,8 @@ Name | Type | Description | Notes Update milestone -This method updates a milestone. +This method updates a milestone. + ### Example diff --git a/qase-api-client/docs/ParameterGroup.md b/qase-api-client/docs/ParameterGroup.md index c040e0ee..b9cd0768 100644 --- a/qase-api-client/docs/ParameterGroup.md +++ b/qase-api-client/docs/ParameterGroup.md @@ -23,7 +23,7 @@ print(ParameterGroup.to_json()) # convert the object into a dict parameter_group_dict = parameter_group_instance.to_dict() # create an instance of ParameterGroup from a dict -parameter_group_form_dict = parameter_group.from_dict(parameter_group_dict) +parameter_group_from_dict = ParameterGroup.from_dict(parameter_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/qase-api-client/docs/ParameterShared.md b/qase-api-client/docs/ParameterShared.md index f31f0d6d..4845d003 100644 --- a/qase-api-client/docs/ParameterShared.md +++ b/qase-api-client/docs/ParameterShared.md @@ -23,7 +23,7 @@ print(ParameterShared.to_json()) # convert the object into a dict parameter_shared_dict = parameter_shared_instance.to_dict() # create an instance of ParameterShared from a dict -parameter_shared_form_dict = parameter_shared.from_dict(parameter_shared_dict) +parameter_shared_from_dict = ParameterShared.from_dict(parameter_shared_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/qase-api-client/docs/ParameterSingle.md b/qase-api-client/docs/ParameterSingle.md index ccaebdff..cb63bef1 100644 --- a/qase-api-client/docs/ParameterSingle.md +++ b/qase-api-client/docs/ParameterSingle.md @@ -24,7 +24,7 @@ print(ParameterSingle.to_json()) # convert the object into a dict parameter_single_dict = parameter_single_instance.to_dict() # create an instance of ParameterSingle from a dict -parameter_single_form_dict = parameter_single.from_dict(parameter_single_dict) +parameter_single_from_dict = ParameterSingle.from_dict(parameter_single_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/qase-api-client/docs/Plan.md b/qase-api-client/docs/Plan.md index 2f555dab..1fa01ab4 100644 --- a/qase-api-client/docs/Plan.md +++ b/qase-api-client/docs/Plan.md @@ -29,7 +29,7 @@ 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) +plan_from_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/qase-api-client/docs/PlanCreate.md b/qase-api-client/docs/PlanCreate.md index 19054dd1..e2dbf65a 100644 --- a/qase-api-client/docs/PlanCreate.md +++ b/qase-api-client/docs/PlanCreate.md @@ -24,7 +24,7 @@ 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) +plan_create_from_dict = PlanCreate.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/qase-api-client/docs/PlanDetailed.md b/qase-api-client/docs/PlanDetailed.md index d80ff265..cfa47fd1 100644 --- a/qase-api-client/docs/PlanDetailed.md +++ b/qase-api-client/docs/PlanDetailed.md @@ -31,7 +31,7 @@ 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) +plan_detailed_from_dict = PlanDetailed.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/qase-api-client/docs/PlanDetailedAllOfCases.md b/qase-api-client/docs/PlanDetailedAllOfCases.md index 43f08b47..900fe26e 100644 --- a/qase-api-client/docs/PlanDetailedAllOfCases.md +++ b/qase-api-client/docs/PlanDetailedAllOfCases.md @@ -23,7 +23,7 @@ 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) +plan_detailed_all_of_cases_from_dict = PlanDetailedAllOfCases.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/qase-api-client/docs/PlanListResponse.md b/qase-api-client/docs/PlanListResponse.md index 851507f2..a2cf2143 100644 --- a/qase-api-client/docs/PlanListResponse.md +++ b/qase-api-client/docs/PlanListResponse.md @@ -23,7 +23,7 @@ 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) +plan_list_response_from_dict = PlanListResponse.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/qase-api-client/docs/PlanListResponseAllOfResult.md b/qase-api-client/docs/PlanListResponseAllOfResult.md index e71c9df3..5816ebb6 100644 --- a/qase-api-client/docs/PlanListResponseAllOfResult.md +++ b/qase-api-client/docs/PlanListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +plan_list_response_all_of_result_from_dict = PlanListResponseAllOfResult.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/qase-api-client/docs/PlanQuery.md b/qase-api-client/docs/PlanQuery.md index b0d51b26..74491fc8 100644 --- a/qase-api-client/docs/PlanQuery.md +++ b/qase-api-client/docs/PlanQuery.md @@ -28,7 +28,7 @@ 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) +plan_query_from_dict = PlanQuery.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/qase-api-client/docs/PlanResponse.md b/qase-api-client/docs/PlanResponse.md index f83aab1e..3aa071da 100644 --- a/qase-api-client/docs/PlanResponse.md +++ b/qase-api-client/docs/PlanResponse.md @@ -23,7 +23,7 @@ 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) +plan_response_from_dict = PlanResponse.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/qase-api-client/docs/PlanUpdate.md b/qase-api-client/docs/PlanUpdate.md index 54bc3def..af2518d2 100644 --- a/qase-api-client/docs/PlanUpdate.md +++ b/qase-api-client/docs/PlanUpdate.md @@ -24,7 +24,7 @@ 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) +plan_update_from_dict = PlanUpdate.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/qase-api-client/docs/PlansApi.md b/qase-api-client/docs/PlansApi.md index c27e93ac..d79112cf 100644 --- a/qase-api-client/docs/PlansApi.md +++ b/qase-api-client/docs/PlansApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create a new plan -This method allows to create a plan in selected project. +This method allows to create a plan in selected project. + ### Example @@ -104,7 +105,8 @@ Name | Type | Description | Notes Delete plan -This method completely deletes a plan from repository. +This method completely deletes a plan from repository. + ### Example @@ -190,7 +192,8 @@ Name | Type | Description | Notes Get a specific plan -This method allows to retrieve a specific plan. +This method allows to retrieve a specific plan. + ### Example @@ -276,7 +279,8 @@ Name | Type | Description | Notes Get all plans -This method allows to retrieve all plans stored in selected project. +This method allows to retrieve all plans stored in selected project. + ### Example @@ -364,7 +368,8 @@ Name | Type | Description | Notes Update plan -This method updates a plan. +This method updates a plan. + ### Example diff --git a/qase-api-client/docs/Project.md b/qase-api-client/docs/Project.md index c8c982c5..6ee48343 100644 --- a/qase-api-client/docs/Project.md +++ b/qase-api-client/docs/Project.md @@ -24,7 +24,7 @@ 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) +project_from_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/qase-api-client/docs/ProjectAccess.md b/qase-api-client/docs/ProjectAccess.md index f9790fc9..2978d09e 100644 --- a/qase-api-client/docs/ProjectAccess.md +++ b/qase-api-client/docs/ProjectAccess.md @@ -22,7 +22,7 @@ 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) +project_access_from_dict = ProjectAccess.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/qase-api-client/docs/ProjectCodeResponse.md b/qase-api-client/docs/ProjectCodeResponse.md index 10adb47d..666d0911 100644 --- a/qase-api-client/docs/ProjectCodeResponse.md +++ b/qase-api-client/docs/ProjectCodeResponse.md @@ -23,7 +23,7 @@ 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) +project_code_response_from_dict = ProjectCodeResponse.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/qase-api-client/docs/ProjectCodeResponseAllOfResult.md b/qase-api-client/docs/ProjectCodeResponseAllOfResult.md index 384c7aee..e2aac1e8 100644 --- a/qase-api-client/docs/ProjectCodeResponseAllOfResult.md +++ b/qase-api-client/docs/ProjectCodeResponseAllOfResult.md @@ -22,7 +22,7 @@ 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) +project_code_response_all_of_result_from_dict = ProjectCodeResponseAllOfResult.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/qase-api-client/docs/ProjectCounts.md b/qase-api-client/docs/ProjectCounts.md index a940a8f6..f5c89b3e 100644 --- a/qase-api-client/docs/ProjectCounts.md +++ b/qase-api-client/docs/ProjectCounts.md @@ -26,7 +26,7 @@ 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) +project_counts_from_dict = ProjectCounts.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/qase-api-client/docs/ProjectCountsDefects.md b/qase-api-client/docs/ProjectCountsDefects.md index d9d41376..a37aa465 100644 --- a/qase-api-client/docs/ProjectCountsDefects.md +++ b/qase-api-client/docs/ProjectCountsDefects.md @@ -23,7 +23,7 @@ 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) +project_counts_defects_from_dict = ProjectCountsDefects.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/qase-api-client/docs/ProjectCountsRuns.md b/qase-api-client/docs/ProjectCountsRuns.md index 7e2e2bb6..8715fe05 100644 --- a/qase-api-client/docs/ProjectCountsRuns.md +++ b/qase-api-client/docs/ProjectCountsRuns.md @@ -23,7 +23,7 @@ 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) +project_counts_runs_from_dict = ProjectCountsRuns.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/qase-api-client/docs/ProjectCreate.md b/qase-api-client/docs/ProjectCreate.md index bb8725b7..3c2dc6c4 100644 --- a/qase-api-client/docs/ProjectCreate.md +++ b/qase-api-client/docs/ProjectCreate.md @@ -27,7 +27,7 @@ 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) +project_create_from_dict = ProjectCreate.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/qase-api-client/docs/ProjectListResponse.md b/qase-api-client/docs/ProjectListResponse.md index 18084169..3589af62 100644 --- a/qase-api-client/docs/ProjectListResponse.md +++ b/qase-api-client/docs/ProjectListResponse.md @@ -23,7 +23,7 @@ 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) +project_list_response_from_dict = ProjectListResponse.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/qase-api-client/docs/ProjectListResponseAllOfResult.md b/qase-api-client/docs/ProjectListResponseAllOfResult.md index 36645d0a..ee034432 100644 --- a/qase-api-client/docs/ProjectListResponseAllOfResult.md +++ b/qase-api-client/docs/ProjectListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +project_list_response_all_of_result_from_dict = ProjectListResponseAllOfResult.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/qase-api-client/docs/ProjectResponse.md b/qase-api-client/docs/ProjectResponse.md index 38023927..4e6ba814 100644 --- a/qase-api-client/docs/ProjectResponse.md +++ b/qase-api-client/docs/ProjectResponse.md @@ -23,7 +23,7 @@ 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) +project_response_from_dict = ProjectResponse.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/qase-api-client/docs/ProjectsApi.md b/qase-api-client/docs/ProjectsApi.md index 7e480d4d..c2d11b3c 100644 --- a/qase-api-client/docs/ProjectsApi.md +++ b/qase-api-client/docs/ProjectsApi.md @@ -17,7 +17,8 @@ Method | HTTP request | Description Create new project -This method is used to create a new project through API. +This method is used to create a new project through API. + ### Example @@ -102,7 +103,8 @@ Name | Type | Description | Notes Delete Project by code -This method allows to delete a specific project. +This method allows to delete a specific project. + ### Example @@ -186,7 +188,8 @@ Name | Type | Description | Notes Get Project by code -This method allows to retrieve a specific project. +This method allows to retrieve a specific project. + ### Example @@ -270,7 +273,10 @@ Name | Type | Description | Notes Get All Projects -This method allows to retrieve all projects available for your account. You can limit and offset params to paginate. +This method allows to retrieve all projects available +for your account. You can limit and offset params +to paginate. + ### Example @@ -355,7 +361,8 @@ Name | Type | Description | Notes Grant access to project by code -This method allows to grant access to a specific project. +This method allows to grant access to a specific project. + ### Example @@ -443,7 +450,8 @@ Name | Type | Description | Notes Revoke access to project by code -This method allows to revoke access to a specific project. +This method allows to revoke access to a specific project. + ### Example diff --git a/qase-api-client/docs/QqlDefect.md b/qase-api-client/docs/QqlDefect.md index 0dd76056..0973efa9 100644 --- a/qase-api-client/docs/QqlDefect.md +++ b/qase-api-client/docs/QqlDefect.md @@ -37,7 +37,7 @@ 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) +qql_defect_from_dict = QqlDefect.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/qase-api-client/docs/QqlPlan.md b/qase-api-client/docs/QqlPlan.md index e41830be..3e8538d4 100644 --- a/qase-api-client/docs/QqlPlan.md +++ b/qase-api-client/docs/QqlPlan.md @@ -28,7 +28,7 @@ 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) +qql_plan_from_dict = QqlPlan.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/qase-api-client/docs/QqlTestCase.md b/qase-api-client/docs/QqlTestCase.md index 121fb255..a690004b 100644 --- a/qase-api-client/docs/QqlTestCase.md +++ b/qase-api-client/docs/QqlTestCase.md @@ -49,7 +49,7 @@ 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) +qql_test_case_from_dict = QqlTestCase.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/qase-api-client/docs/QqlTestCaseParams.md b/qase-api-client/docs/QqlTestCaseParams.md index 955933fa..45ec60f6 100644 --- a/qase-api-client/docs/QqlTestCaseParams.md +++ b/qase-api-client/docs/QqlTestCaseParams.md @@ -21,7 +21,7 @@ print(QqlTestCaseParams.to_json()) # convert the object into a dict qql_test_case_params_dict = qql_test_case_params_instance.to_dict() # create an instance of QqlTestCaseParams from a dict -qql_test_case_params_form_dict = qql_test_case_params.from_dict(qql_test_case_params_dict) +qql_test_case_params_from_dict = QqlTestCaseParams.from_dict(qql_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/qase-api-client/docs/Requirement.md b/qase-api-client/docs/Requirement.md index b388b687..37a15327 100644 --- a/qase-api-client/docs/Requirement.md +++ b/qase-api-client/docs/Requirement.md @@ -31,7 +31,7 @@ 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) +requirement_from_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/qase-api-client/docs/RequirementQuery.md b/qase-api-client/docs/RequirementQuery.md index 78ef794e..e83d8cf1 100644 --- a/qase-api-client/docs/RequirementQuery.md +++ b/qase-api-client/docs/RequirementQuery.md @@ -31,7 +31,7 @@ print(RequirementQuery.to_json()) # convert the object into a dict requirement_query_dict = requirement_query_instance.to_dict() # create an instance of RequirementQuery from a dict -requirement_query_form_dict = requirement_query.from_dict(requirement_query_dict) +requirement_query_from_dict = RequirementQuery.from_dict(requirement_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/qase-api-client/docs/Response.md b/qase-api-client/docs/Response.md index 1fac6db6..4793d63c 100644 --- a/qase-api-client/docs/Response.md +++ b/qase-api-client/docs/Response.md @@ -22,7 +22,7 @@ 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) +response_from_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/qase-api-client/docs/Result.md b/qase-api-client/docs/Result.md index 77ff901c..3f540257 100644 --- a/qase-api-client/docs/Result.md +++ b/qase-api-client/docs/Result.md @@ -33,7 +33,7 @@ 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) +result_from_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/qase-api-client/docs/ResultCreate.md b/qase-api-client/docs/ResultCreate.md index 2b5d7a6c..c1199a3f 100644 --- a/qase-api-client/docs/ResultCreate.md +++ b/qase-api-client/docs/ResultCreate.md @@ -35,7 +35,7 @@ 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) +result_create_from_dict = ResultCreate.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/qase-api-client/docs/ResultCreateBulk.md b/qase-api-client/docs/ResultCreateBulk.md index cc81e3f8..72f95037 100644 --- a/qase-api-client/docs/ResultCreateBulk.md +++ b/qase-api-client/docs/ResultCreateBulk.md @@ -1,4 +1,4 @@ -# ResultcreateBulk +# ResultCreateBulk ## Properties @@ -10,19 +10,19 @@ Name | Type | Description | Notes ## Example ```python -from qase.api_client_v1.models.resultcreate_bulk import ResultcreateBulk +from qase.api_client_v1.models.result_create_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) +# create an instance of ResultCreateBulk from a JSON string +result_create_bulk_instance = ResultCreateBulk.from_json(json) # print the JSON string representation of the object -print(ResultcreateBulk.to_json()) +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) +result_create_bulk_dict = result_create_bulk_instance.to_dict() +# create an instance of ResultCreateBulk from a dict +result_create_bulk_from_dict = ResultCreateBulk.from_dict(result_create_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/qase-api-client/docs/ResultCreateCase.md b/qase-api-client/docs/ResultCreateCase.md index 40265931..65801c96 100644 --- a/qase-api-client/docs/ResultCreateCase.md +++ b/qase-api-client/docs/ResultCreateCase.md @@ -30,7 +30,7 @@ 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) +result_create_case_from_dict = ResultCreateCase.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/qase-api-client/docs/ResultCreateResponse.md b/qase-api-client/docs/ResultCreateResponse.md index 827648ee..9515c524 100644 --- a/qase-api-client/docs/ResultCreateResponse.md +++ b/qase-api-client/docs/ResultCreateResponse.md @@ -23,7 +23,7 @@ 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) +result_create_response_from_dict = ResultCreateResponse.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/qase-api-client/docs/ResultCreateResponseAllOfResult.md b/qase-api-client/docs/ResultCreateResponseAllOfResult.md index 950964a2..ec7078f6 100644 --- a/qase-api-client/docs/ResultCreateResponseAllOfResult.md +++ b/qase-api-client/docs/ResultCreateResponseAllOfResult.md @@ -23,7 +23,7 @@ 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) +result_create_response_all_of_result_from_dict = ResultCreateResponseAllOfResult.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/qase-api-client/docs/ResultListResponse.md b/qase-api-client/docs/ResultListResponse.md index 3a6c01f4..d7c26014 100644 --- a/qase-api-client/docs/ResultListResponse.md +++ b/qase-api-client/docs/ResultListResponse.md @@ -23,7 +23,7 @@ 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) +result_list_response_from_dict = ResultListResponse.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/qase-api-client/docs/ResultListResponseAllOfResult.md b/qase-api-client/docs/ResultListResponseAllOfResult.md index 44019b3f..bd5b86a5 100644 --- a/qase-api-client/docs/ResultListResponseAllOfResult.md +++ b/qase-api-client/docs/ResultListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +result_list_response_all_of_result_from_dict = ResultListResponseAllOfResult.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/qase-api-client/docs/ResultQuery.md b/qase-api-client/docs/ResultQuery.md index 177a89a3..2e7d810e 100644 --- a/qase-api-client/docs/ResultQuery.md +++ b/qase-api-client/docs/ResultQuery.md @@ -33,7 +33,7 @@ print(ResultQuery.to_json()) # convert the object into a dict result_query_dict = result_query_instance.to_dict() # create an instance of ResultQuery from a dict -result_query_form_dict = result_query.from_dict(result_query_dict) +result_query_from_dict = ResultQuery.from_dict(result_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/qase-api-client/docs/ResultResponse.md b/qase-api-client/docs/ResultResponse.md index c1acec93..76783770 100644 --- a/qase-api-client/docs/ResultResponse.md +++ b/qase-api-client/docs/ResultResponse.md @@ -23,7 +23,7 @@ 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) +result_response_from_dict = ResultResponse.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/qase-api-client/docs/ResultUpdate.md b/qase-api-client/docs/ResultUpdate.md index 51a2c739..2f1e0efe 100644 --- a/qase-api-client/docs/ResultUpdate.md +++ b/qase-api-client/docs/ResultUpdate.md @@ -28,7 +28,7 @@ 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) +result_update_from_dict = ResultUpdate.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/qase-api-client/docs/ResultsApi.md b/qase-api-client/docs/ResultsApi.md index 326ca5a6..2a2f6691 100644 --- a/qase-api-client/docs/ResultsApi.md +++ b/qase-api-client/docs/ResultsApi.md @@ -17,7 +17,8 @@ Method | HTTP request | Description Create test run result -This method allows to create test run result by Run Id. +This method allows to create test run result by Run Id. + ### Example @@ -103,11 +104,16 @@ Name | Type | Description | Notes [[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) +> BaseResponse create_result_bulk(code, id, result_create_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. +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 @@ -116,7 +122,7 @@ This method allows to create a lot of test run result at once. If you try to se ```python import qase.api_client_v1 from qase.api_client_v1.models.base_response import BaseResponse -from qase.api_client_v1.models.resultcreate_bulk import ResultcreateBulk +from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -143,11 +149,11 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: api_instance = qase.api_client_v1.ResultsApi(api_client) code = 'code_example' # str | Code of project, where to search entities. id = 56 # int | Identifier. - resultcreate_bulk = qase.api_client_v1.ResultcreateBulk() # ResultcreateBulk | + result_create_bulk = qase.api_client_v1.ResultCreateBulk() # ResultCreateBulk | try: # Bulk create test run result - api_response = api_instance.create_result_bulk(code, id, resultcreate_bulk) + api_response = api_instance.create_result_bulk(code, id, result_create_bulk) print("The response of ResultsApi->create_result_bulk:\n") pprint(api_response) except Exception as e: @@ -163,7 +169,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **code** | **str**| Code of project, where to search entities. | **id** | **int**| Identifier. | - **resultcreate_bulk** | [**ResultcreateBulk**](ResultcreateBulk.md)| | + **result_create_bulk** | [**ResultCreateBulk**](ResultCreateBulk.md)| | ### Return type @@ -198,7 +204,8 @@ Name | Type | Description | Notes Delete test run result -This method allows to delete test run result. +This method allows to delete test run result. + ### Example @@ -286,7 +293,8 @@ Name | Type | Description | Notes Get test run result by code -This method allows to retrieve a specific test run result by Hash. +This method allows to retrieve a specific test run result by Hash. + ### Example @@ -372,7 +380,9 @@ Name | Type | Description | Notes Get all test run results -This method allows to retrieve all test run results stored in selected project. +This method allows to retrieve all test run +results stored in selected project. + ### Example @@ -474,7 +484,8 @@ Name | Type | Description | Notes Update test run result -This method allows to update test run result. +This method allows to update test run result. + ### Example diff --git a/qase-api-client/docs/Run.md b/qase-api-client/docs/Run.md index 81d9b443..c4accdbf 100644 --- a/qase-api-client/docs/Run.md +++ b/qase-api-client/docs/Run.md @@ -41,7 +41,7 @@ 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) +run_from_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/qase-api-client/docs/RunCreate.md b/qase-api-client/docs/RunCreate.md index dadf9937..9ab43694 100644 --- a/qase-api-client/docs/RunCreate.md +++ b/qase-api-client/docs/RunCreate.md @@ -38,7 +38,7 @@ 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) +run_create_from_dict = RunCreate.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/qase-api-client/docs/RunCreateCloudRunConfig.md b/qase-api-client/docs/RunCreateCloudRunConfig.md index 3cd1b25b..5b91e4d4 100644 --- a/qase-api-client/docs/RunCreateCloudRunConfig.md +++ b/qase-api-client/docs/RunCreateCloudRunConfig.md @@ -23,7 +23,7 @@ print(RunCreateCloudRunConfig.to_json()) # convert the object into a dict run_create_cloud_run_config_dict = run_create_cloud_run_config_instance.to_dict() # create an instance of RunCreateCloudRunConfig from a dict -run_create_cloud_run_config_form_dict = run_create_cloud_run_config.from_dict(run_create_cloud_run_config_dict) +run_create_cloud_run_config_from_dict = RunCreateCloudRunConfig.from_dict(run_create_cloud_run_config_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/qase-api-client/docs/RunEnvironment.md b/qase-api-client/docs/RunEnvironment.md index daccbe50..4549e9fd 100644 --- a/qase-api-client/docs/RunEnvironment.md +++ b/qase-api-client/docs/RunEnvironment.md @@ -25,7 +25,7 @@ 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) +run_environment_from_dict = RunEnvironment.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/qase-api-client/docs/RunExternalIssue.md b/qase-api-client/docs/RunExternalIssue.md index dfc9a581..1495a522 100644 --- a/qase-api-client/docs/RunExternalIssue.md +++ b/qase-api-client/docs/RunExternalIssue.md @@ -24,7 +24,7 @@ print(RunExternalIssue.to_json()) # convert the object into a dict run_external_issue_dict = run_external_issue_instance.to_dict() # create an instance of RunExternalIssue from a dict -run_external_issue_form_dict = run_external_issue.from_dict(run_external_issue_dict) +run_external_issue_from_dict = RunExternalIssue.from_dict(run_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/qase-api-client/docs/RunListResponse.md b/qase-api-client/docs/RunListResponse.md index 9acd53fe..0f9789f3 100644 --- a/qase-api-client/docs/RunListResponse.md +++ b/qase-api-client/docs/RunListResponse.md @@ -23,7 +23,7 @@ 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) +run_list_response_from_dict = RunListResponse.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/qase-api-client/docs/RunListResponseAllOfResult.md b/qase-api-client/docs/RunListResponseAllOfResult.md index 81bdafa7..c885e08f 100644 --- a/qase-api-client/docs/RunListResponseAllOfResult.md +++ b/qase-api-client/docs/RunListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +run_list_response_all_of_result_from_dict = RunListResponseAllOfResult.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/qase-api-client/docs/RunMilestone.md b/qase-api-client/docs/RunMilestone.md index 905d5f16..45e1e3c3 100644 --- a/qase-api-client/docs/RunMilestone.md +++ b/qase-api-client/docs/RunMilestone.md @@ -23,7 +23,7 @@ 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) +run_milestone_from_dict = RunMilestone.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/qase-api-client/docs/RunPublic.md b/qase-api-client/docs/RunPublic.md index 11ac8d61..5e9065b4 100644 --- a/qase-api-client/docs/RunPublic.md +++ b/qase-api-client/docs/RunPublic.md @@ -22,7 +22,7 @@ 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) +run_public_from_dict = RunPublic.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/qase-api-client/docs/RunPublicResponse.md b/qase-api-client/docs/RunPublicResponse.md index bd6fded2..ab589441 100644 --- a/qase-api-client/docs/RunPublicResponse.md +++ b/qase-api-client/docs/RunPublicResponse.md @@ -23,7 +23,7 @@ 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) +run_public_response_from_dict = RunPublicResponse.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/qase-api-client/docs/RunPublicResponseAllOfResult.md b/qase-api-client/docs/RunPublicResponseAllOfResult.md index 8eb06459..af53232a 100644 --- a/qase-api-client/docs/RunPublicResponseAllOfResult.md +++ b/qase-api-client/docs/RunPublicResponseAllOfResult.md @@ -22,7 +22,7 @@ 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) +run_public_response_all_of_result_from_dict = RunPublicResponseAllOfResult.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/qase-api-client/docs/RunQuery.md b/qase-api-client/docs/RunQuery.md index 871c64cf..a30aca09 100644 --- a/qase-api-client/docs/RunQuery.md +++ b/qase-api-client/docs/RunQuery.md @@ -39,7 +39,7 @@ print(RunQuery.to_json()) # convert the object into a dict run_query_dict = run_query_instance.to_dict() # create an instance of RunQuery from a dict -run_query_form_dict = run_query.from_dict(run_query_dict) +run_query_from_dict = RunQuery.from_dict(run_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/qase-api-client/docs/RunResponse.md b/qase-api-client/docs/RunResponse.md index 5c71adc7..098d56cb 100644 --- a/qase-api-client/docs/RunResponse.md +++ b/qase-api-client/docs/RunResponse.md @@ -23,7 +23,7 @@ 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) +run_response_from_dict = RunResponse.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/qase-api-client/docs/RunStats.md b/qase-api-client/docs/RunStats.md index 9c7888fc..7e832754 100644 --- a/qase-api-client/docs/RunStats.md +++ b/qase-api-client/docs/RunStats.md @@ -31,7 +31,7 @@ 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) +run_stats_from_dict = RunStats.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/qase-api-client/docs/RunexternalIssues.md b/qase-api-client/docs/RunexternalIssues.md index 5f3836a3..fa1d13e1 100644 --- a/qase-api-client/docs/RunexternalIssues.md +++ b/qase-api-client/docs/RunexternalIssues.md @@ -1,4 +1,4 @@ -# RunexternalIssues +# RunExternalIssues ## Properties @@ -6,24 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | -**links** | [**List[RunexternalIssuesLinksInner]**](RunexternalIssuesLinksInner.md) | Array of external issue links. Each test run (run_id) can have only one external issue link. | +**links** | [**List[RunExternalIssuesLinksInner]**](RunExternalIssuesLinksInner.md) | Array of external issue links. Each test run (run_id) can have only one external issue link. | ## Example ```python -from qase.api_client_v1.models.runexternal_issues import RunexternalIssues +from qase.api_client_v1.models.run_external_issues import RunExternalIssues # TODO update the JSON string below json = "{}" -# create an instance of RunexternalIssues from a JSON string -runexternal_issues_instance = RunexternalIssues.from_json(json) +# create an instance of RunExternalIssues from a JSON string +run_external_issues_instance = RunExternalIssues.from_json(json) # print the JSON string representation of the object -print(RunexternalIssues.to_json()) +print(RunExternalIssues.to_json()) # convert the object into a dict -runexternal_issues_dict = runexternal_issues_instance.to_dict() -# create an instance of RunexternalIssues from a dict -runexternal_issues_form_dict = runexternal_issues.from_dict(runexternal_issues_dict) +run_external_issues_dict = run_external_issues_instance.to_dict() +# create an instance of RunExternalIssues from a dict +run_external_issues_from_dict = RunExternalIssues.from_dict(run_external_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/qase-api-client/docs/RunexternalIssuesLinksInner.md b/qase-api-client/docs/RunexternalIssuesLinksInner.md index 8d5cfc21..f07a450b 100644 --- a/qase-api-client/docs/RunexternalIssuesLinksInner.md +++ b/qase-api-client/docs/RunexternalIssuesLinksInner.md @@ -1,4 +1,4 @@ -# RunexternalIssuesLinksInner +# RunExternalIssuesLinksInner ## Properties @@ -11,19 +11,19 @@ Name | Type | Description | Notes ## Example ```python -from qase.api_client_v1.models.runexternal_issues_links_inner import RunexternalIssuesLinksInner +from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner # TODO update the JSON string below json = "{}" -# create an instance of RunexternalIssuesLinksInner from a JSON string -runexternal_issues_links_inner_instance = RunexternalIssuesLinksInner.from_json(json) +# create an instance of RunExternalIssuesLinksInner from a JSON string +run_external_issues_links_inner_instance = RunExternalIssuesLinksInner.from_json(json) # print the JSON string representation of the object -print(RunexternalIssuesLinksInner.to_json()) +print(RunExternalIssuesLinksInner.to_json()) # convert the object into a dict -runexternal_issues_links_inner_dict = runexternal_issues_links_inner_instance.to_dict() -# create an instance of RunexternalIssuesLinksInner from a dict -runexternal_issues_links_inner_form_dict = runexternal_issues_links_inner.from_dict(runexternal_issues_links_inner_dict) +run_external_issues_links_inner_dict = run_external_issues_links_inner_instance.to_dict() +# create an instance of RunExternalIssuesLinksInner from a dict +run_external_issues_links_inner_from_dict = RunExternalIssuesLinksInner.from_dict(run_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/qase-api-client/docs/RunsApi.md b/qase-api-client/docs/RunsApi.md index 402665bc..30ce86a6 100644 --- a/qase-api-client/docs/RunsApi.md +++ b/qase-api-client/docs/RunsApi.md @@ -19,7 +19,8 @@ Method | HTTP request | Description Complete a specific run -This method allows to complete a specific run. +This method allows to complete a specific run. + ### Example @@ -106,7 +107,8 @@ Name | Type | Description | Notes Create a new run -This method allows to create a run in selected project. +This method allows to create a run in selected project. + ### Example @@ -194,7 +196,8 @@ Name | Type | Description | Notes Delete run -This method completely deletes a run from repository. +This method completely deletes a run from repository. + ### Example @@ -280,7 +283,8 @@ Name | Type | Description | Notes Get a specific run -This method allows to retrieve a specific run. +This method allows to retrieve a specific run. + ### Example @@ -368,7 +372,8 @@ Name | Type | Description | Notes Get all runs -This method allows to retrieve all runs stored in selected project. +This method allows to retrieve all runs stored in selected project. + ### Example @@ -466,11 +471,21 @@ Name | Type | Description | Notes [[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) # **run_update_external_issue** -> run_update_external_issue(code, runexternal_issues) +> run_update_external_issue(code, run_external_issues) Update external issues for runs -This method allows you to update links between test runs and external issues (such as Jira tickets). You can use this endpoint to: - Link test runs to external issues by providing the external issue identifier (e.g., \"PROJ-1234\") - Update existing links by providing a new external issue identifier - Remove existing links by setting the external_issue field to null **Important**: Each test run can have only one link with an external issue. If a test run already has an external issue link, providing a new external_issue value will replace the existing link. The endpoint supports both Jira Cloud and Jira Server integrations. Each request can update multiple test run links in a single operation. +This method allows you to update links between test runs and external issues (such as Jira tickets). + +You can use this endpoint to: +- Link test runs to external issues by providing the external issue identifier (e.g., "PROJ-1234") +- Update existing links by providing a new external issue identifier +- Remove existing links by setting the external_issue field to null + +**Important**: Each test run can have only one link with an external issue. If a test run already has an external issue link, providing a new external_issue value will replace the existing link. + +The endpoint supports both Jira Cloud and Jira Server integrations. Each request can update multiple test run links in a single operation. + ### Example @@ -478,7 +493,7 @@ This method allows you to update links between test runs and external issues (su ```python import qase.api_client_v1 -from qase.api_client_v1.models.runexternal_issues import RunexternalIssues +from qase.api_client_v1.models.run_external_issues import RunExternalIssues from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -504,11 +519,11 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = qase.api_client_v1.RunsApi(api_client) code = 'code_example' # str | Code of project, where to search entities. - runexternal_issues = qase.api_client_v1.RunexternalIssues() # RunexternalIssues | + run_external_issues = qase.api_client_v1.RunExternalIssues() # RunExternalIssues | try: # Update external issues for runs - api_instance.run_update_external_issue(code, runexternal_issues) + api_instance.run_update_external_issue(code, run_external_issues) except Exception as e: print("Exception when calling RunsApi->run_update_external_issue: %s\n" % e) ``` @@ -521,7 +536,7 @@ with qase.api_client_v1.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **code** | **str**| Code of project, where to search entities. | - **runexternal_issues** | [**RunexternalIssues**](RunexternalIssues.md)| | + **run_external_issues** | [**RunExternalIssues**](RunExternalIssues.md)| | ### Return type @@ -554,7 +569,8 @@ void (empty response body) Update a specific run -This method allows to update a specific run. +This method allows to update a specific run. + ### Example @@ -643,7 +659,8 @@ Name | Type | Description | Notes Update publicity of a specific run -This method allows to update a publicity of specific run. +This method allows to update a publicity of specific run. + ### Example diff --git a/qase-api-client/docs/Runupdate.md b/qase-api-client/docs/Runupdate.md index 5b876ae9..e2a75bb7 100644 --- a/qase-api-client/docs/Runupdate.md +++ b/qase-api-client/docs/Runupdate.md @@ -29,7 +29,7 @@ print(Runupdate.to_json()) # convert the object into a dict runupdate_dict = runupdate_instance.to_dict() # create an instance of Runupdate from a dict -runupdate_form_dict = runupdate.from_dict(runupdate_dict) +runupdate_from_dict = Runupdate.from_dict(runupdate_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/qase-api-client/docs/SearchApi.md b/qase-api-client/docs/SearchApi.md index a7353ef2..ecb73963 100644 --- a/qase-api-client/docs/SearchApi.md +++ b/qase-api-client/docs/SearchApi.md @@ -12,7 +12,9 @@ Method | HTTP request | Description Search entities by Qase Query Language (QQL) -This method allows to retrieve data sets for various entities using expressions with conditions. +This method allows to retrieve data sets for various +entities using expressions with conditions. + ### Example diff --git a/qase-api-client/docs/SearchResponse.md b/qase-api-client/docs/SearchResponse.md index 58acb919..c0f409d7 100644 --- a/qase-api-client/docs/SearchResponse.md +++ b/qase-api-client/docs/SearchResponse.md @@ -23,7 +23,7 @@ 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) +search_response_from_dict = SearchResponse.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/qase-api-client/docs/SearchResponseAllOfResult.md b/qase-api-client/docs/SearchResponseAllOfResult.md index 0785f889..719a3adb 100644 --- a/qase-api-client/docs/SearchResponseAllOfResult.md +++ b/qase-api-client/docs/SearchResponseAllOfResult.md @@ -23,7 +23,7 @@ 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) +search_response_all_of_result_from_dict = SearchResponseAllOfResult.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/qase-api-client/docs/SearchResponseAllOfResultEntities.md b/qase-api-client/docs/SearchResponseAllOfResultEntities.md index 49fd21ec..017d9106 100644 --- a/qase-api-client/docs/SearchResponseAllOfResultEntities.md +++ b/qase-api-client/docs/SearchResponseAllOfResultEntities.md @@ -75,7 +75,7 @@ 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) +search_response_all_of_result_entities_from_dict = SearchResponseAllOfResultEntities.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/qase-api-client/docs/SharedParameter.md b/qase-api-client/docs/SharedParameter.md index 49bc5c57..ea9610e8 100644 --- a/qase-api-client/docs/SharedParameter.md +++ b/qase-api-client/docs/SharedParameter.md @@ -27,7 +27,7 @@ print(SharedParameter.to_json()) # convert the object into a dict shared_parameter_dict = shared_parameter_instance.to_dict() # create an instance of SharedParameter from a dict -shared_parameter_form_dict = shared_parameter.from_dict(shared_parameter_dict) +shared_parameter_from_dict = SharedParameter.from_dict(shared_parameter_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/qase-api-client/docs/SharedParameterCreate.md b/qase-api-client/docs/SharedParameterCreate.md index 4afe0187..327214af 100644 --- a/qase-api-client/docs/SharedParameterCreate.md +++ b/qase-api-client/docs/SharedParameterCreate.md @@ -26,7 +26,7 @@ print(SharedParameterCreate.to_json()) # convert the object into a dict shared_parameter_create_dict = shared_parameter_create_instance.to_dict() # create an instance of SharedParameterCreate from a dict -shared_parameter_create_form_dict = shared_parameter_create.from_dict(shared_parameter_create_dict) +shared_parameter_create_from_dict = SharedParameterCreate.from_dict(shared_parameter_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/qase-api-client/docs/SharedParameterListResponse.md b/qase-api-client/docs/SharedParameterListResponse.md index 8d8ad828..edad29c0 100644 --- a/qase-api-client/docs/SharedParameterListResponse.md +++ b/qase-api-client/docs/SharedParameterListResponse.md @@ -23,7 +23,7 @@ print(SharedParameterListResponse.to_json()) # convert the object into a dict shared_parameter_list_response_dict = shared_parameter_list_response_instance.to_dict() # create an instance of SharedParameterListResponse from a dict -shared_parameter_list_response_form_dict = shared_parameter_list_response.from_dict(shared_parameter_list_response_dict) +shared_parameter_list_response_from_dict = SharedParameterListResponse.from_dict(shared_parameter_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/qase-api-client/docs/SharedParameterListResponseAllOfResult.md b/qase-api-client/docs/SharedParameterListResponseAllOfResult.md index 0554dafc..a1a3e439 100644 --- a/qase-api-client/docs/SharedParameterListResponseAllOfResult.md +++ b/qase-api-client/docs/SharedParameterListResponseAllOfResult.md @@ -23,7 +23,7 @@ print(SharedParameterListResponseAllOfResult.to_json()) # convert the object into a dict shared_parameter_list_response_all_of_result_dict = shared_parameter_list_response_all_of_result_instance.to_dict() # create an instance of SharedParameterListResponseAllOfResult from a dict -shared_parameter_list_response_all_of_result_form_dict = shared_parameter_list_response_all_of_result.from_dict(shared_parameter_list_response_all_of_result_dict) +shared_parameter_list_response_all_of_result_from_dict = SharedParameterListResponseAllOfResult.from_dict(shared_parameter_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/qase-api-client/docs/SharedParameterParameter.md b/qase-api-client/docs/SharedParameterParameter.md index 5a8adc93..ea3b1127 100644 --- a/qase-api-client/docs/SharedParameterParameter.md +++ b/qase-api-client/docs/SharedParameterParameter.md @@ -21,7 +21,7 @@ print(SharedParameterParameter.to_json()) # convert the object into a dict shared_parameter_parameter_dict = shared_parameter_parameter_instance.to_dict() # create an instance of SharedParameterParameter from a dict -shared_parameter_parameter_form_dict = shared_parameter_parameter.from_dict(shared_parameter_parameter_dict) +shared_parameter_parameter_from_dict = SharedParameterParameter.from_dict(shared_parameter_parameter_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/qase-api-client/docs/SharedParameterResponse.md b/qase-api-client/docs/SharedParameterResponse.md index edff3f6c..235f4fcc 100644 --- a/qase-api-client/docs/SharedParameterResponse.md +++ b/qase-api-client/docs/SharedParameterResponse.md @@ -23,7 +23,7 @@ print(SharedParameterResponse.to_json()) # convert the object into a dict shared_parameter_response_dict = shared_parameter_response_instance.to_dict() # create an instance of SharedParameterResponse from a dict -shared_parameter_response_form_dict = shared_parameter_response.from_dict(shared_parameter_response_dict) +shared_parameter_response_from_dict = SharedParameterResponse.from_dict(shared_parameter_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/qase-api-client/docs/SharedParameterUpdate.md b/qase-api-client/docs/SharedParameterUpdate.md index 8aaa3b9d..9fa21323 100644 --- a/qase-api-client/docs/SharedParameterUpdate.md +++ b/qase-api-client/docs/SharedParameterUpdate.md @@ -25,7 +25,7 @@ print(SharedParameterUpdate.to_json()) # convert the object into a dict shared_parameter_update_dict = shared_parameter_update_instance.to_dict() # create an instance of SharedParameterUpdate from a dict -shared_parameter_update_form_dict = shared_parameter_update.from_dict(shared_parameter_update_dict) +shared_parameter_update_from_dict = SharedParameterUpdate.from_dict(shared_parameter_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/qase-api-client/docs/SharedParametersApi.md b/qase-api-client/docs/SharedParametersApi.md index 8ebc6c7a..a60d6077 100644 --- a/qase-api-client/docs/SharedParametersApi.md +++ b/qase-api-client/docs/SharedParametersApi.md @@ -96,7 +96,7 @@ Name | Type | Description | Notes [[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_parameter** -> UuidResponse delete_shared_parameter(id) +> UuidResponse1 delete_shared_parameter(id) Delete shared parameter @@ -108,7 +108,7 @@ Delete shared parameter along with all its usages in test cases and reviews. ```python import qase.api_client_v1 -from qase.api_client_v1.models.uuid_response import UuidResponse +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -155,7 +155,7 @@ Name | Type | Description | Notes ### Return type -[**UuidResponse**](UuidResponse.md) +[**UuidResponse1**](UuidResponse1.md) ### Authorization @@ -352,7 +352,7 @@ Name | Type | Description | Notes [[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_parameter** -> UuidResponse update_shared_parameter(id, shared_parameter_update) +> UuidResponse1 update_shared_parameter(id, shared_parameter_update) Update shared parameter @@ -363,7 +363,7 @@ Update shared parameter ```python import qase.api_client_v1 from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate -from qase.api_client_v1.models.uuid_response import UuidResponse +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 from qase.api_client_v1.rest import ApiException from pprint import pprint @@ -412,7 +412,7 @@ Name | Type | Description | Notes ### Return type -[**UuidResponse**](UuidResponse.md) +[**UuidResponse1**](UuidResponse1.md) ### Authorization diff --git a/qase-api-client/docs/SharedStep.md b/qase-api-client/docs/SharedStep.md index 3e663821..12d1d702 100644 --- a/qase-api-client/docs/SharedStep.md +++ b/qase-api-client/docs/SharedStep.md @@ -33,7 +33,7 @@ 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) +shared_step_from_dict = SharedStep.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/qase-api-client/docs/SharedStepContent.md b/qase-api-client/docs/SharedStepContent.md index e373d9bc..191b3008 100644 --- a/qase-api-client/docs/SharedStepContent.md +++ b/qase-api-client/docs/SharedStepContent.md @@ -26,7 +26,7 @@ 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) +shared_step_content_from_dict = SharedStepContent.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/qase-api-client/docs/SharedStepContentCreate.md b/qase-api-client/docs/SharedStepContentCreate.md index 30c4d935..b2da7889 100644 --- a/qase-api-client/docs/SharedStepContentCreate.md +++ b/qase-api-client/docs/SharedStepContentCreate.md @@ -26,7 +26,7 @@ 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) +shared_step_content_create_from_dict = SharedStepContentCreate.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/qase-api-client/docs/SharedStepCreate.md b/qase-api-client/docs/SharedStepCreate.md index 48170384..d0e53353 100644 --- a/qase-api-client/docs/SharedStepCreate.md +++ b/qase-api-client/docs/SharedStepCreate.md @@ -26,7 +26,7 @@ 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) +shared_step_create_from_dict = SharedStepCreate.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/qase-api-client/docs/SharedStepListResponse.md b/qase-api-client/docs/SharedStepListResponse.md index 4bd65ddc..649c9b46 100644 --- a/qase-api-client/docs/SharedStepListResponse.md +++ b/qase-api-client/docs/SharedStepListResponse.md @@ -23,7 +23,7 @@ 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) +shared_step_list_response_from_dict = SharedStepListResponse.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/qase-api-client/docs/SharedStepListResponseAllOfResult.md b/qase-api-client/docs/SharedStepListResponseAllOfResult.md index 97a6dc87..647e2395 100644 --- a/qase-api-client/docs/SharedStepListResponseAllOfResult.md +++ b/qase-api-client/docs/SharedStepListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +shared_step_list_response_all_of_result_from_dict = SharedStepListResponseAllOfResult.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/qase-api-client/docs/SharedStepResponse.md b/qase-api-client/docs/SharedStepResponse.md index 759c6869..1578028e 100644 --- a/qase-api-client/docs/SharedStepResponse.md +++ b/qase-api-client/docs/SharedStepResponse.md @@ -23,7 +23,7 @@ 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) +shared_step_response_from_dict = SharedStepResponse.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/qase-api-client/docs/SharedStepUpdate.md b/qase-api-client/docs/SharedStepUpdate.md index 79e3bca1..41d44a9e 100644 --- a/qase-api-client/docs/SharedStepUpdate.md +++ b/qase-api-client/docs/SharedStepUpdate.md @@ -26,7 +26,7 @@ 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) +shared_step_update_from_dict = SharedStepUpdate.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/qase-api-client/docs/SharedStepsApi.md b/qase-api-client/docs/SharedStepsApi.md index 15d7f80e..db8125e8 100644 --- a/qase-api-client/docs/SharedStepsApi.md +++ b/qase-api-client/docs/SharedStepsApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create a new shared step -This method allows to create a shared step in selected project. +This method allows to create a shared step in selected project. + ### Example @@ -104,7 +105,8 @@ Name | Type | Description | Notes Delete shared step -This method completely deletes a shared step from repository. +This method completely deletes a shared step from repository. + ### Example @@ -190,7 +192,8 @@ Name | Type | Description | Notes Get a specific shared step -This method allows to retrieve a specific shared step. +This method allows to retrieve a specific shared step. + ### Example @@ -276,7 +279,8 @@ Name | Type | Description | Notes Get all shared steps -This method allows to retrieve all shared steps stored in selected project. +This method allows to retrieve all shared steps stored in selected project. + ### Example @@ -366,7 +370,8 @@ Name | Type | Description | Notes Update shared step -This method updates a shared step. +This method updates a shared step. + ### Example diff --git a/qase-api-client/docs/Suite.md b/qase-api-client/docs/Suite.md index 82e1bb85..7ba63287 100644 --- a/qase-api-client/docs/Suite.md +++ b/qase-api-client/docs/Suite.md @@ -32,7 +32,7 @@ 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) +suite_from_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/qase-api-client/docs/SuiteCreate.md b/qase-api-client/docs/SuiteCreate.md index e0e82514..40867014 100644 --- a/qase-api-client/docs/SuiteCreate.md +++ b/qase-api-client/docs/SuiteCreate.md @@ -25,7 +25,7 @@ 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) +suite_create_from_dict = SuiteCreate.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/qase-api-client/docs/SuiteDelete.md b/qase-api-client/docs/SuiteDelete.md index 83231f78..919246df 100644 --- a/qase-api-client/docs/SuiteDelete.md +++ b/qase-api-client/docs/SuiteDelete.md @@ -22,7 +22,7 @@ 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) +suite_delete_from_dict = SuiteDelete.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/qase-api-client/docs/SuiteListResponse.md b/qase-api-client/docs/SuiteListResponse.md index 9a0dbce6..cfdc98fc 100644 --- a/qase-api-client/docs/SuiteListResponse.md +++ b/qase-api-client/docs/SuiteListResponse.md @@ -23,7 +23,7 @@ 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) +suite_list_response_from_dict = SuiteListResponse.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/qase-api-client/docs/SuiteListResponseAllOfResult.md b/qase-api-client/docs/SuiteListResponseAllOfResult.md index 1e2fe323..a4e9444d 100644 --- a/qase-api-client/docs/SuiteListResponseAllOfResult.md +++ b/qase-api-client/docs/SuiteListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +suite_list_response_all_of_result_from_dict = SuiteListResponseAllOfResult.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/qase-api-client/docs/SuiteResponse.md b/qase-api-client/docs/SuiteResponse.md index 339625f0..cbb4986e 100644 --- a/qase-api-client/docs/SuiteResponse.md +++ b/qase-api-client/docs/SuiteResponse.md @@ -23,7 +23,7 @@ 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) +suite_response_from_dict = SuiteResponse.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/qase-api-client/docs/SuiteUpdate.md b/qase-api-client/docs/SuiteUpdate.md index a49b1e6e..de035433 100644 --- a/qase-api-client/docs/SuiteUpdate.md +++ b/qase-api-client/docs/SuiteUpdate.md @@ -25,7 +25,7 @@ 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) +suite_update_from_dict = SuiteUpdate.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/qase-api-client/docs/SuitesApi.md b/qase-api-client/docs/SuitesApi.md index d8ff2832..6c5a5caf 100644 --- a/qase-api-client/docs/SuitesApi.md +++ b/qase-api-client/docs/SuitesApi.md @@ -16,7 +16,8 @@ Method | HTTP request | Description Create a new test suite -This method is used to create a new test suite through API. +This method is used to create a new test suite through API. + ### Example @@ -104,7 +105,8 @@ Name | Type | Description | Notes Delete test suite -This method completely deletes a test suite with test cases from repository. +This method completely deletes a test suite with test cases from repository. + ### Example @@ -193,7 +195,8 @@ Name | Type | Description | Notes Get a specific test suite -This method allows to retrieve a specific test suite. +This method allows to retrieve a specific test suite. + ### Example @@ -279,7 +282,8 @@ Name | Type | Description | Notes Get all test suites -This method allows to retrieve all test suites stored in selected project. +This method allows to retrieve all test suites stored in selected project. + ### Example @@ -369,7 +373,8 @@ Name | Type | Description | Notes Update test suite -This method is used to update a test suite through API. +This method is used to update a test suite through API. + ### Example diff --git a/qase-api-client/docs/SystemField.md b/qase-api-client/docs/SystemField.md index 70171166..206c9b59 100644 --- a/qase-api-client/docs/SystemField.md +++ b/qase-api-client/docs/SystemField.md @@ -28,7 +28,7 @@ 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) +system_field_from_dict = SystemField.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/qase-api-client/docs/SystemFieldListResponse.md b/qase-api-client/docs/SystemFieldListResponse.md index d28087ec..fdcd10dc 100644 --- a/qase-api-client/docs/SystemFieldListResponse.md +++ b/qase-api-client/docs/SystemFieldListResponse.md @@ -23,7 +23,7 @@ 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) +system_field_list_response_from_dict = SystemFieldListResponse.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/qase-api-client/docs/SystemFieldOption.md b/qase-api-client/docs/SystemFieldOption.md index 3a93796d..7d3e8dd0 100644 --- a/qase-api-client/docs/SystemFieldOption.md +++ b/qase-api-client/docs/SystemFieldOption.md @@ -28,7 +28,7 @@ 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) +system_field_option_from_dict = SystemFieldOption.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/qase-api-client/docs/SystemFieldsApi.md b/qase-api-client/docs/SystemFieldsApi.md index aac718f1..307bb450 100644 --- a/qase-api-client/docs/SystemFieldsApi.md +++ b/qase-api-client/docs/SystemFieldsApi.md @@ -12,7 +12,8 @@ Method | HTTP request | Description Get all System Fields -This method allows to retrieve all system fields. +This method allows to retrieve all system fields. + ### Example diff --git a/qase-api-client/docs/TagValue.md b/qase-api-client/docs/TagValue.md index 32c3eff8..c5bddaa4 100644 --- a/qase-api-client/docs/TagValue.md +++ b/qase-api-client/docs/TagValue.md @@ -23,7 +23,7 @@ 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) +tag_value_from_dict = TagValue.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/qase-api-client/docs/TestCase.md b/qase-api-client/docs/TestCase.md index e00531ae..57860d26 100644 --- a/qase-api-client/docs/TestCase.md +++ b/qase-api-client/docs/TestCase.md @@ -52,7 +52,7 @@ 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) +test_case_from_dict = TestCase.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/qase-api-client/docs/TestCaseCreate.md b/qase-api-client/docs/TestCaseCreate.md index 08905ff6..5be29cb8 100644 --- a/qase-api-client/docs/TestCaseCreate.md +++ b/qase-api-client/docs/TestCaseCreate.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] **tags** | **List[str]** | | [optional] **params** | **Dict[str, List[str]]** | Deprecated, use `parameters` instead. | [optional] -**parameters** | [**List[TestCaseParametercreate]**](TestCaseParametercreate.md) | | [optional] +**parameters** | [**List[TestCaseParameterCreate]**](TestCaseParameterCreate.md) | | [optional] **custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] **created_at** | **str** | | [optional] **updated_at** | **str** | | [optional] @@ -43,7 +43,7 @@ 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) +test_case_create_from_dict = TestCaseCreate.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/qase-api-client/docs/TestCaseExternalIssues.md b/qase-api-client/docs/TestCaseExternalIssues.md index 29bf20de..5eec21e1 100644 --- a/qase-api-client/docs/TestCaseExternalIssues.md +++ b/qase-api-client/docs/TestCaseExternalIssues.md @@ -1,4 +1,4 @@ -# TestCaseexternalIssues +# TestCaseExternalIssues ## Properties @@ -11,19 +11,19 @@ Name | Type | Description | Notes ## Example ```python -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues +from qase.api_client_v1.models.test_case_external_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) +# create an instance of TestCaseExternalIssues from a JSON string +test_case_external_issues_instance = TestCaseExternalIssues.from_json(json) # print the JSON string representation of the object -print(TestCaseexternalIssues.to_json()) +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) +test_case_external_issues_dict = test_case_external_issues_instance.to_dict() +# create an instance of TestCaseExternalIssues from a dict +test_case_external_issues_from_dict = TestCaseExternalIssues.from_dict(test_case_external_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/qase-api-client/docs/TestCaseExternalIssuesLinksInner.md b/qase-api-client/docs/TestCaseExternalIssuesLinksInner.md index c684a216..dc0a29df 100644 --- a/qase-api-client/docs/TestCaseExternalIssuesLinksInner.md +++ b/qase-api-client/docs/TestCaseExternalIssuesLinksInner.md @@ -23,7 +23,7 @@ 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) +test_case_external_issues_links_inner_from_dict = TestCaseExternalIssuesLinksInner.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/qase-api-client/docs/TestCaseListResponse.md b/qase-api-client/docs/TestCaseListResponse.md index 12e04533..4f9ae85d 100644 --- a/qase-api-client/docs/TestCaseListResponse.md +++ b/qase-api-client/docs/TestCaseListResponse.md @@ -23,7 +23,7 @@ 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) +test_case_list_response_from_dict = TestCaseListResponse.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/qase-api-client/docs/TestCaseListResponseAllOfResult.md b/qase-api-client/docs/TestCaseListResponseAllOfResult.md index f9979a00..e6004779 100644 --- a/qase-api-client/docs/TestCaseListResponseAllOfResult.md +++ b/qase-api-client/docs/TestCaseListResponseAllOfResult.md @@ -25,7 +25,7 @@ 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) +test_case_list_response_all_of_result_from_dict = TestCaseListResponseAllOfResult.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/qase-api-client/docs/TestCaseParameter.md b/qase-api-client/docs/TestCaseParameter.md index 55b7b0da..ee1e081f 100644 --- a/qase-api-client/docs/TestCaseParameter.md +++ b/qase-api-client/docs/TestCaseParameter.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **shared_id** | **str** | | [optional] **type** | **str** | | -**items** | **object** | | +**item** | [**ParameterSingle**](ParameterSingle.md) | | +**items** | [**List[ParameterSingle]**](ParameterSingle.md) | | ## Example @@ -24,7 +25,7 @@ print(TestCaseParameter.to_json()) # convert the object into a dict test_case_parameter_dict = test_case_parameter_instance.to_dict() # create an instance of TestCaseParameter from a dict -test_case_parameter_form_dict = test_case_parameter.from_dict(test_case_parameter_dict) +test_case_parameter_from_dict = TestCaseParameter.from_dict(test_case_parameter_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/qase-api-client/docs/TestCaseParameterBase.md b/qase-api-client/docs/TestCaseParameterBase.md index 9a197527..73ec461a 100644 --- a/qase-api-client/docs/TestCaseParameterBase.md +++ b/qase-api-client/docs/TestCaseParameterBase.md @@ -7,7 +7,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **shared_id** | **str** | | [optional] **type** | **str** | | -**items** | [**List[ParameterSingle]**](ParameterSingle.md) | | ## Example @@ -24,7 +23,7 @@ print(TestCaseParameterBase.to_json()) # convert the object into a dict test_case_parameter_base_dict = test_case_parameter_base_instance.to_dict() # create an instance of TestCaseParameterBase from a dict -test_case_parameter_base_form_dict = test_case_parameter_base.from_dict(test_case_parameter_base_dict) +test_case_parameter_base_from_dict = TestCaseParameterBase.from_dict(test_case_parameter_base_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/qase-api-client/docs/TestCaseParameterGroup.md b/qase-api-client/docs/TestCaseParameterGroup.md index 275841ef..38d44f2e 100644 --- a/qase-api-client/docs/TestCaseParameterGroup.md +++ b/qase-api-client/docs/TestCaseParameterGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **shared_id** | **str** | | [optional] **type** | **str** | | -**items** | **object** | | +**items** | [**List[ParameterSingle]**](ParameterSingle.md) | | ## Example @@ -24,7 +24,7 @@ print(TestCaseParameterGroup.to_json()) # convert the object into a dict test_case_parameter_group_dict = test_case_parameter_group_instance.to_dict() # create an instance of TestCaseParameterGroup from a dict -test_case_parameter_group_form_dict = test_case_parameter_group.from_dict(test_case_parameter_group_dict) +test_case_parameter_group_from_dict = TestCaseParameterGroup.from_dict(test_case_parameter_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/qase-api-client/docs/TestCaseParameterSingle.md b/qase-api-client/docs/TestCaseParameterSingle.md index a77e85c6..9681b6ae 100644 --- a/qase-api-client/docs/TestCaseParameterSingle.md +++ b/qase-api-client/docs/TestCaseParameterSingle.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **shared_id** | **str** | | [optional] **type** | **str** | | -**items** | **object** | | +**item** | [**ParameterSingle**](ParameterSingle.md) | | ## Example @@ -24,7 +24,7 @@ print(TestCaseParameterSingle.to_json()) # convert the object into a dict test_case_parameter_single_dict = test_case_parameter_single_instance.to_dict() # create an instance of TestCaseParameterSingle from a dict -test_case_parameter_single_form_dict = test_case_parameter_single.from_dict(test_case_parameter_single_dict) +test_case_parameter_single_from_dict = TestCaseParameterSingle.from_dict(test_case_parameter_single_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/qase-api-client/docs/TestCaseParametercreate.md b/qase-api-client/docs/TestCaseParametercreate.md index 7d864eae..c1e35622 100644 --- a/qase-api-client/docs/TestCaseParametercreate.md +++ b/qase-api-client/docs/TestCaseParametercreate.md @@ -1,4 +1,4 @@ -# TestCaseParametercreate +# TestCaseParameterCreate ## Properties @@ -13,19 +13,19 @@ Name | Type | Description | Notes ## Example ```python -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate # TODO update the JSON string below json = "{}" -# create an instance of TestCaseParametercreate from a JSON string -test_case_parametercreate_instance = TestCaseParametercreate.from_json(json) +# create an instance of TestCaseParameterCreate from a JSON string +test_case_parameter_create_instance = TestCaseParameterCreate.from_json(json) # print the JSON string representation of the object -print(TestCaseParametercreate.to_json()) +print(TestCaseParameterCreate.to_json()) # convert the object into a dict -test_case_parametercreate_dict = test_case_parametercreate_instance.to_dict() -# create an instance of TestCaseParametercreate from a dict -test_case_parametercreate_form_dict = test_case_parametercreate.from_dict(test_case_parametercreate_dict) +test_case_parameter_create_dict = test_case_parameter_create_instance.to_dict() +# create an instance of TestCaseParameterCreate from a dict +test_case_parameter_create_from_dict = TestCaseParameterCreate.from_dict(test_case_parameter_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/qase-api-client/docs/TestCaseParams.md b/qase-api-client/docs/TestCaseParams.md index 08feb4e4..37ba1714 100644 --- a/qase-api-client/docs/TestCaseParams.md +++ b/qase-api-client/docs/TestCaseParams.md @@ -22,7 +22,7 @@ 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) +test_case_params_from_dict = TestCaseParams.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/qase-api-client/docs/TestCaseQuery.md b/qase-api-client/docs/TestCaseQuery.md index 3f2d373c..b60c1e74 100644 --- a/qase-api-client/docs/TestCaseQuery.md +++ b/qase-api-client/docs/TestCaseQuery.md @@ -49,7 +49,7 @@ 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) +test_case_query_from_dict = TestCaseQuery.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/qase-api-client/docs/TestCaseResponse.md b/qase-api-client/docs/TestCaseResponse.md index a35d4430..bbcfc266 100644 --- a/qase-api-client/docs/TestCaseResponse.md +++ b/qase-api-client/docs/TestCaseResponse.md @@ -23,7 +23,7 @@ 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) +test_case_response_from_dict = TestCaseResponse.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/qase-api-client/docs/TestCaseUpdate.md b/qase-api-client/docs/TestCaseUpdate.md index 2fe81b06..a21d3849 100644 --- a/qase-api-client/docs/TestCaseUpdate.md +++ b/qase-api-client/docs/TestCaseUpdate.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] **tags** | **List[str]** | | [optional] **params** | **Dict[str, List[str]]** | Deprecated, use `parameters` instead. | [optional] -**parameters** | [**List[TestCaseParametercreate]**](TestCaseParametercreate.md) | | [optional] +**parameters** | [**List[TestCaseParameterCreate]**](TestCaseParameterCreate.md) | | [optional] **custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] ## Example @@ -41,7 +41,7 @@ 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) +test_case_update_from_dict = TestCaseUpdate.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/qase-api-client/docs/TestCasebulk.md b/qase-api-client/docs/TestCasebulk.md index e6f724dd..71e0d080 100644 --- a/qase-api-client/docs/TestCasebulk.md +++ b/qase-api-client/docs/TestCasebulk.md @@ -22,7 +22,7 @@ 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) +test_casebulk_from_dict = TestCasebulk.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/qase-api-client/docs/TestCasebulkCasesInner.md b/qase-api-client/docs/TestCasebulkCasesInner.md index f2306d1c..3e3a70a5 100644 --- a/qase-api-client/docs/TestCasebulkCasesInner.md +++ b/qase-api-client/docs/TestCasebulkCasesInner.md @@ -23,7 +23,7 @@ Name | Type | Description | Notes **steps** | [**List[TestStepCreate]**](TestStepCreate.md) | | [optional] **tags** | **List[str]** | | [optional] **params** | **Dict[str, List[str]]** | Deprecated, use `parameters` instead. | [optional] -**parameters** | [**List[TestCaseParametercreate]**](TestCaseParametercreate.md) | | [optional] +**parameters** | [**List[TestCaseParameterCreate]**](TestCaseParameterCreate.md) | | [optional] **custom_field** | **Dict[str, str]** | A map of custom fields values (id => value) | [optional] **created_at** | **str** | | [optional] **updated_at** | **str** | | [optional] @@ -44,7 +44,7 @@ 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) +test_casebulk_cases_inner_from_dict = TestCasebulkCasesInner.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/qase-api-client/docs/TestStep.md b/qase-api-client/docs/TestStep.md index deb8317d..05bb4122 100644 --- a/qase-api-client/docs/TestStep.md +++ b/qase-api-client/docs/TestStep.md @@ -30,7 +30,7 @@ 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) +test_step_from_dict = TestStep.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/qase-api-client/docs/TestStepCreate.md b/qase-api-client/docs/TestStepCreate.md index 37ce1059..331321c8 100644 --- a/qase-api-client/docs/TestStepCreate.md +++ b/qase-api-client/docs/TestStepCreate.md @@ -27,7 +27,7 @@ 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) +test_step_create_from_dict = TestStepCreate.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/qase-api-client/docs/TestStepResult.md b/qase-api-client/docs/TestStepResult.md index 8083b4dc..cd56a3a1 100644 --- a/qase-api-client/docs/TestStepResult.md +++ b/qase-api-client/docs/TestStepResult.md @@ -25,7 +25,7 @@ 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) +test_step_result_from_dict = TestStepResult.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/qase-api-client/docs/TestStepResultCreate.md b/qase-api-client/docs/TestStepResultCreate.md index 0ebcdd23..d6edd728 100644 --- a/qase-api-client/docs/TestStepResultCreate.md +++ b/qase-api-client/docs/TestStepResultCreate.md @@ -29,7 +29,7 @@ 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) +test_step_result_create_from_dict = TestStepResultCreate.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/qase-api-client/docs/User.md b/qase-api-client/docs/User.md new file mode 100644 index 00000000..cf34c4f8 --- /dev/null +++ b/qase-api-client/docs/User.md @@ -0,0 +1,33 @@ +# User + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | | [optional] +**email** | **str** | | [optional] +**title** | **str** | | [optional] +**status** | **int** | | [optional] + +## Example + +```python +from qase.api_client_v1.models.user import User + +# TODO update the JSON string below +json = "{}" +# create an instance of User from a JSON string +user_instance = User.from_json(json) +# print the JSON string representation of the object +print(User.to_json()) + +# convert the object into a dict +user_dict = user_instance.to_dict() +# create an instance of User from a dict +user_from_dict = User.from_dict(user_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/qase-api-client/docs/UserListResponse.md b/qase-api-client/docs/UserListResponse.md new file mode 100644 index 00000000..02dbdadf --- /dev/null +++ b/qase-api-client/docs/UserListResponse.md @@ -0,0 +1,30 @@ +# UserListResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] +**result** | [**UserListResponseAllOfResult**](UserListResponseAllOfResult.md) | | [optional] + +## Example + +```python +from qase.api_client_v1.models.user_list_response import UserListResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UserListResponse from a JSON string +user_list_response_instance = UserListResponse.from_json(json) +# print the JSON string representation of the object +print(UserListResponse.to_json()) + +# convert the object into a dict +user_list_response_dict = user_list_response_instance.to_dict() +# create an instance of UserListResponse from a dict +user_list_response_from_dict = UserListResponse.from_dict(user_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/qase-api-client/docs/UserListResponseAllOfResult.md b/qase-api-client/docs/UserListResponseAllOfResult.md new file mode 100644 index 00000000..d79f7aa3 --- /dev/null +++ b/qase-api-client/docs/UserListResponseAllOfResult.md @@ -0,0 +1,32 @@ +# UserListResponseAllOfResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **int** | | [optional] +**filtered** | **int** | | [optional] +**count** | **int** | | [optional] +**entities** | [**List[User]**](User.md) | | [optional] + +## Example + +```python +from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult + +# TODO update the JSON string below +json = "{}" +# create an instance of UserListResponseAllOfResult from a JSON string +user_list_response_all_of_result_instance = UserListResponseAllOfResult.from_json(json) +# print the JSON string representation of the object +print(UserListResponseAllOfResult.to_json()) + +# convert the object into a dict +user_list_response_all_of_result_dict = user_list_response_all_of_result_instance.to_dict() +# create an instance of UserListResponseAllOfResult from a dict +user_list_response_all_of_result_from_dict = UserListResponseAllOfResult.from_dict(user_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/qase-api-client/docs/UserResponse.md b/qase-api-client/docs/UserResponse.md new file mode 100644 index 00000000..2d892382 --- /dev/null +++ b/qase-api-client/docs/UserResponse.md @@ -0,0 +1,30 @@ +# UserResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] +**result** | [**User**](User.md) | | [optional] + +## Example + +```python +from qase.api_client_v1.models.user_response import UserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UserResponse from a JSON string +user_response_instance = UserResponse.from_json(json) +# print the JSON string representation of the object +print(UserResponse.to_json()) + +# convert the object into a dict +user_response_dict = user_response_instance.to_dict() +# create an instance of UserResponse from a dict +user_response_from_dict = UserResponse.from_dict(user_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/qase-api-client/docs/UsersApi.md b/qase-api-client/docs/UsersApi.md new file mode 100644 index 00000000..a3667f2c --- /dev/null +++ b/qase-api-client/docs/UsersApi.md @@ -0,0 +1,172 @@ +# qase.api_client_v1.UsersApi + +All URIs are relative to *https://api.qase.io/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_user**](UsersApi.md#get_user) | **GET** /user/{id} | Get a specific user. +[**get_users**](UsersApi.md#get_users) | **GET** /user | Get all users. + + +# **get_user** +> UserResponse get_user(id) + +Get a specific user. + +This method allows to retrieve a specific user. + + +### Example + +* Api Key Authentication (TokenAuth): + +```python +import qase.api_client_v1 +from qase.api_client_v1.models.user_response import UserResponse +from qase.api_client_v1.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 = qase.api_client_v1.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 qase.api_client_v1.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = qase.api_client_v1.UsersApi(api_client) + id = 56 # int | Identifier. + + try: + # Get a specific user. + api_response = api_instance.get_user(id) + print("The response of UsersApi->get_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->get_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| Identifier. | + +### Return type + +[**UserResponse**](UserResponse.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 user. | - | + +[[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_users** +> UserListResponse get_users(limit=limit, offset=offset) + +Get all users. + +This method allows to retrieve all users. + + +### Example + +* Api Key Authentication (TokenAuth): + +```python +import qase.api_client_v1 +from qase.api_client_v1.models.user_list_response import UserListResponse +from qase.api_client_v1.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 = qase.api_client_v1.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 qase.api_client_v1.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = qase.api_client_v1.UsersApi(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 users. + api_response = api_instance.get_users(limit=limit, offset=offset) + print("The response of UsersApi->get_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UsersApi->get_users: %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 + +[**UserListResponse**](UserListResponse.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 users. | - | + +[[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/qase-api-client/docs/UuidResponse.md b/qase-api-client/docs/UuidResponse.md index 3e62026b..109d23cd 100644 --- a/qase-api-client/docs/UuidResponse.md +++ b/qase-api-client/docs/UuidResponse.md @@ -23,7 +23,7 @@ print(UuidResponse.to_json()) # convert the object into a dict uuid_response_dict = uuid_response_instance.to_dict() # create an instance of UuidResponse from a dict -uuid_response_form_dict = uuid_response.from_dict(uuid_response_dict) +uuid_response_from_dict = UuidResponse.from_dict(uuid_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/qase-api-client/docs/UuidResponse1.md b/qase-api-client/docs/UuidResponse1.md new file mode 100644 index 00000000..8f8abef7 --- /dev/null +++ b/qase-api-client/docs/UuidResponse1.md @@ -0,0 +1,30 @@ +# UuidResponse1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] +**result** | [**UuidResponseAllOfResult**](UuidResponseAllOfResult.md) | | [optional] + +## Example + +```python +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 + +# TODO update the JSON string below +json = "{}" +# create an instance of UuidResponse1 from a JSON string +uuid_response1_instance = UuidResponse1.from_json(json) +# print the JSON string representation of the object +print(UuidResponse1.to_json()) + +# convert the object into a dict +uuid_response1_dict = uuid_response1_instance.to_dict() +# create an instance of UuidResponse1 from a dict +uuid_response1_from_dict = UuidResponse1.from_dict(uuid_response1_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/qase-api-client/docs/UuidResponseAllOfResult.md b/qase-api-client/docs/UuidResponseAllOfResult.md index 53635f40..0fd2bcd5 100644 --- a/qase-api-client/docs/UuidResponseAllOfResult.md +++ b/qase-api-client/docs/UuidResponseAllOfResult.md @@ -22,7 +22,7 @@ print(UuidResponseAllOfResult.to_json()) # convert the object into a dict uuid_response_all_of_result_dict = uuid_response_all_of_result_instance.to_dict() # create an instance of UuidResponseAllOfResult from a dict -uuid_response_all_of_result_form_dict = uuid_response_all_of_result.from_dict(uuid_response_all_of_result_dict) +uuid_response_all_of_result_from_dict = UuidResponseAllOfResult.from_dict(uuid_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/qase-api-client/pyproject.toml b/qase-api-client/pyproject.toml index ab29836f..cb12f767 100644 --- a/qase-api-client/pyproject.toml +++ b/qase-api-client/pyproject.toml @@ -4,28 +4,29 @@ build-backend = "setuptools.build_meta" [project] name = "qase-api-client" -version = "1.2.5" +version = "2.0.0" description = "Qase TestOps API V1 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", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Typing :: Typed", ] urls = {"Homepage" = "https://github.com/qase-tms/qase-python"} keywords = ["OpenAPI", "OpenAPI-Generator", "Qase.io TestOps API"] -requires-python = ">=3.7" +requires-python = ">=3.9" dependencies = [ "urllib3 >= 1.25.3, <= 2.5.0", "python-dateutil", "pydantic >= 2", "typing-extensions >= 4.7.1", + "lazy-imports >= 1, < 2", ] [project.optional-dependencies] @@ -34,8 +35,8 @@ dependencies = [ [tool.tox] legacy_tox_ini = """ [tox] -minversion = 3.7 -envlist = py{37,38,39,310,311} +minversion = 3.9 +envlist = py{39,310,311,312,313} [testenv] deps = diff --git a/qase-api-client/requirements.txt b/qase-api-client/requirements.txt index 0e1c0c54..9c868cb5 100644 --- a/qase-api-client/requirements.txt +++ b/qase-api-client/requirements.txt @@ -3,3 +3,4 @@ setuptools >= 21.0.0 urllib3 >= 1.25.3, < 2.3.0 pydantic >= 2 typing-extensions >= 4.7.1 +lazy-imports >= 1, < 2 diff --git a/qase-api-client/src/qase/api_client_v1/__init__.py b/qase-api-client/src/qase/api_client_v1/__init__.py index 3f1141c3..6c15ca22 100644 --- a/qase-api-client/src/qase/api_client_v1/__init__.py +++ b/qase-api-client/src/qase/api_client_v1/__init__.py @@ -17,202 +17,627 @@ __version__ = "1.0.0" -# import apis into sdk package -from qase.api_client_v1.api.attachments_api import AttachmentsApi -from qase.api_client_v1.api.authors_api import AuthorsApi -from qase.api_client_v1.api.cases_api import CasesApi -from qase.api_client_v1.api.configurations_api import ConfigurationsApi -from qase.api_client_v1.api.custom_fields_api import CustomFieldsApi -from qase.api_client_v1.api.defects_api import DefectsApi -from qase.api_client_v1.api.environments_api import EnvironmentsApi -from qase.api_client_v1.api.milestones_api import MilestonesApi -from qase.api_client_v1.api.plans_api import PlansApi -from qase.api_client_v1.api.projects_api import ProjectsApi -from qase.api_client_v1.api.results_api import ResultsApi -from qase.api_client_v1.api.runs_api import RunsApi -from qase.api_client_v1.api.search_api import SearchApi -from qase.api_client_v1.api.shared_parameters_api import SharedParametersApi -from qase.api_client_v1.api.shared_steps_api import SharedStepsApi -from qase.api_client_v1.api.suites_api import SuitesApi -from qase.api_client_v1.api.system_fields_api import SystemFieldsApi +# Define package exports +__all__ = [ + "AttachmentsApi", + "AuthorsApi", + "CasesApi", + "ConfigurationsApi", + "CustomFieldsApi", + "DefectsApi", + "EnvironmentsApi", + "MilestonesApi", + "PlansApi", + "ProjectsApi", + "ResultsApi", + "RunsApi", + "SearchApi", + "SharedParametersApi", + "SharedStepsApi", + "SuitesApi", + "SystemFieldsApi", + "UsersApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "Attachment", + "AttachmentGet", + "AttachmentHash", + "AttachmentListResponse", + "AttachmentListResponseAllOfResult", + "AttachmentResponse", + "AttachmentUploadsResponse", + "Attachmentupload", + "Author", + "AuthorListResponse", + "AuthorListResponseAllOfResult", + "AuthorResponse", + "BaseResponse", + "Bulk200Response", + "Bulk200ResponseAllOfResult", + "Configuration", + "ConfigurationCreate", + "ConfigurationGroup", + "ConfigurationGroupCreate", + "ConfigurationListResponse", + "ConfigurationListResponseAllOfResult", + "CustomField", + "CustomFieldCreate", + "CustomFieldCreateValueInner", + "CustomFieldListResponse", + "CustomFieldResponse", + "CustomFieldUpdate", + "CustomFieldValue", + "CustomFieldsResponse", + "CustomFieldsResponseAllOfResult", + "Defect", + "DefectCreate", + "DefectListResponse", + "DefectListResponseAllOfResult", + "DefectQuery", + "DefectResponse", + "DefectStatus", + "DefectUpdate", + "Environment", + "EnvironmentCreate", + "EnvironmentListResponse", + "EnvironmentListResponseAllOfResult", + "EnvironmentResponse", + "EnvironmentUpdate", + "ExternalIssue", + "ExternalIssueIssuesInner", + "HashResponse", + "HashResponseAllOfResult", + "IdResponse", + "IdResponseAllOfResult", + "Milestone", + "MilestoneCreate", + "MilestoneListResponse", + "MilestoneListResponseAllOfResult", + "MilestoneResponse", + "MilestoneUpdate", + "ParameterGroup", + "ParameterShared", + "ParameterSingle", + "Plan", + "PlanCreate", + "PlanDetailed", + "PlanDetailedAllOfCases", + "PlanListResponse", + "PlanListResponseAllOfResult", + "PlanQuery", + "PlanResponse", + "PlanUpdate", + "Project", + "ProjectAccess", + "ProjectCodeResponse", + "ProjectCodeResponseAllOfResult", + "ProjectCounts", + "ProjectCountsDefects", + "ProjectCountsRuns", + "ProjectCreate", + "ProjectListResponse", + "ProjectListResponseAllOfResult", + "ProjectResponse", + "QqlDefect", + "QqlPlan", + "QqlTestCase", + "QqlTestCaseParams", + "Requirement", + "RequirementQuery", + "Response", + "Result", + "ResultCreate", + "ResultCreateBulk", + "ResultCreateCase", + "ResultCreateResponse", + "ResultCreateResponseAllOfResult", + "ResultListResponse", + "ResultListResponseAllOfResult", + "ResultQuery", + "ResultResponse", + "ResultUpdate", + "Run", + "RunCreate", + "RunCreateCloudRunConfig", + "RunEnvironment", + "RunExternalIssue", + "RunExternalIssues", + "RunExternalIssuesLinksInner", + "RunListResponse", + "RunListResponseAllOfResult", + "RunMilestone", + "RunPublic", + "RunPublicResponse", + "RunPublicResponseAllOfResult", + "RunQuery", + "RunResponse", + "RunStats", + "Runupdate", + "SearchResponse", + "SearchResponseAllOfResult", + "SearchResponseAllOfResultEntities", + "SharedParameter", + "SharedParameterCreate", + "SharedParameterListResponse", + "SharedParameterListResponseAllOfResult", + "SharedParameterParameter", + "SharedParameterResponse", + "SharedParameterUpdate", + "SharedStep", + "SharedStepContent", + "SharedStepContentCreate", + "SharedStepCreate", + "SharedStepListResponse", + "SharedStepListResponseAllOfResult", + "SharedStepResponse", + "SharedStepUpdate", + "Suite", + "SuiteCreate", + "SuiteDelete", + "SuiteListResponse", + "SuiteListResponseAllOfResult", + "SuiteResponse", + "SuiteUpdate", + "SystemField", + "SystemFieldListResponse", + "SystemFieldOption", + "TagValue", + "TestCase", + "TestCaseCreate", + "TestCaseExternalIssues", + "TestCaseExternalIssuesLinksInner", + "TestCaseListResponse", + "TestCaseListResponseAllOfResult", + "TestCaseParameter", + "TestCaseParameterBase", + "TestCaseParameterCreate", + "TestCaseParameterGroup", + "TestCaseParameterSingle", + "TestCaseParams", + "TestCaseQuery", + "TestCaseResponse", + "TestCaseUpdate", + "TestCasebulk", + "TestCasebulkCasesInner", + "TestStep", + "TestStepCreate", + "TestStepResult", + "TestStepResultCreate", + "User", + "UserListResponse", + "UserListResponseAllOfResult", + "UserResponse", + "UuidResponse", + "UuidResponse1", + "UuidResponseAllOfResult", +] + +if __import__("typing").TYPE_CHECKING: + # import apis into sdk package + from qase.api_client_v1.api.attachments_api import AttachmentsApi as AttachmentsApi + from qase.api_client_v1.api.authors_api import AuthorsApi as AuthorsApi + from qase.api_client_v1.api.cases_api import CasesApi as CasesApi + from qase.api_client_v1.api.configurations_api import ConfigurationsApi as ConfigurationsApi + from qase.api_client_v1.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi + from qase.api_client_v1.api.defects_api import DefectsApi as DefectsApi + from qase.api_client_v1.api.environments_api import EnvironmentsApi as EnvironmentsApi + from qase.api_client_v1.api.milestones_api import MilestonesApi as MilestonesApi + from qase.api_client_v1.api.plans_api import PlansApi as PlansApi + from qase.api_client_v1.api.projects_api import ProjectsApi as ProjectsApi + from qase.api_client_v1.api.results_api import ResultsApi as ResultsApi + from qase.api_client_v1.api.runs_api import RunsApi as RunsApi + from qase.api_client_v1.api.search_api import SearchApi as SearchApi + from qase.api_client_v1.api.shared_parameters_api import SharedParametersApi as SharedParametersApi + from qase.api_client_v1.api.shared_steps_api import SharedStepsApi as SharedStepsApi + from qase.api_client_v1.api.suites_api import SuitesApi as SuitesApi + from qase.api_client_v1.api.system_fields_api import SystemFieldsApi as SystemFieldsApi + from qase.api_client_v1.api.users_api import UsersApi as UsersApi + + # import ApiClient + from qase.api_client_v1.api_response import ApiResponse as ApiResponse + from qase.api_client_v1.api_client import ApiClient as ApiClient + from qase.api_client_v1.configuration import Configuration as Configuration + from qase.api_client_v1.exceptions import OpenApiException as OpenApiException + from qase.api_client_v1.exceptions import ApiTypeError as ApiTypeError + from qase.api_client_v1.exceptions import ApiValueError as ApiValueError + from qase.api_client_v1.exceptions import ApiKeyError as ApiKeyError + from qase.api_client_v1.exceptions import ApiAttributeError as ApiAttributeError + from qase.api_client_v1.exceptions import ApiException as ApiException + + # import models into sdk package + from qase.api_client_v1.models.attachment import Attachment as Attachment + from qase.api_client_v1.models.attachment_get import AttachmentGet as AttachmentGet + from qase.api_client_v1.models.attachment_hash import AttachmentHash as AttachmentHash + from qase.api_client_v1.models.attachment_list_response import AttachmentListResponse as AttachmentListResponse + from qase.api_client_v1.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult as AttachmentListResponseAllOfResult + from qase.api_client_v1.models.attachment_response import AttachmentResponse as AttachmentResponse + from qase.api_client_v1.models.attachment_uploads_response import AttachmentUploadsResponse as AttachmentUploadsResponse + from qase.api_client_v1.models.attachmentupload import Attachmentupload as Attachmentupload + from qase.api_client_v1.models.author import Author as Author + from qase.api_client_v1.models.author_list_response import AuthorListResponse as AuthorListResponse + from qase.api_client_v1.models.author_list_response_all_of_result import AuthorListResponseAllOfResult as AuthorListResponseAllOfResult + from qase.api_client_v1.models.author_response import AuthorResponse as AuthorResponse + from qase.api_client_v1.models.base_response import BaseResponse as BaseResponse + from qase.api_client_v1.models.bulk200_response import Bulk200Response as Bulk200Response + from qase.api_client_v1.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult as Bulk200ResponseAllOfResult + from qase.api_client_v1.models.configuration import Configuration as Configuration + from qase.api_client_v1.models.configuration_create import ConfigurationCreate as ConfigurationCreate + from qase.api_client_v1.models.configuration_group import ConfigurationGroup as ConfigurationGroup + from qase.api_client_v1.models.configuration_group_create import ConfigurationGroupCreate as ConfigurationGroupCreate + from qase.api_client_v1.models.configuration_list_response import ConfigurationListResponse as ConfigurationListResponse + from qase.api_client_v1.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult as ConfigurationListResponseAllOfResult + from qase.api_client_v1.models.custom_field import CustomField as CustomField + from qase.api_client_v1.models.custom_field_create import CustomFieldCreate as CustomFieldCreate + from qase.api_client_v1.models.custom_field_create_value_inner import CustomFieldCreateValueInner as CustomFieldCreateValueInner + from qase.api_client_v1.models.custom_field_list_response import CustomFieldListResponse as CustomFieldListResponse + from qase.api_client_v1.models.custom_field_response import CustomFieldResponse as CustomFieldResponse + from qase.api_client_v1.models.custom_field_update import CustomFieldUpdate as CustomFieldUpdate + from qase.api_client_v1.models.custom_field_value import CustomFieldValue as CustomFieldValue + from qase.api_client_v1.models.custom_fields_response import CustomFieldsResponse as CustomFieldsResponse + from qase.api_client_v1.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult as CustomFieldsResponseAllOfResult + from qase.api_client_v1.models.defect import Defect as Defect + from qase.api_client_v1.models.defect_create import DefectCreate as DefectCreate + from qase.api_client_v1.models.defect_list_response import DefectListResponse as DefectListResponse + from qase.api_client_v1.models.defect_list_response_all_of_result import DefectListResponseAllOfResult as DefectListResponseAllOfResult + from qase.api_client_v1.models.defect_query import DefectQuery as DefectQuery + from qase.api_client_v1.models.defect_response import DefectResponse as DefectResponse + from qase.api_client_v1.models.defect_status import DefectStatus as DefectStatus + from qase.api_client_v1.models.defect_update import DefectUpdate as DefectUpdate + from qase.api_client_v1.models.environment import Environment as Environment + from qase.api_client_v1.models.environment_create import EnvironmentCreate as EnvironmentCreate + from qase.api_client_v1.models.environment_list_response import EnvironmentListResponse as EnvironmentListResponse + from qase.api_client_v1.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult as EnvironmentListResponseAllOfResult + from qase.api_client_v1.models.environment_response import EnvironmentResponse as EnvironmentResponse + from qase.api_client_v1.models.environment_update import EnvironmentUpdate as EnvironmentUpdate + from qase.api_client_v1.models.external_issue import ExternalIssue as ExternalIssue + from qase.api_client_v1.models.external_issue_issues_inner import ExternalIssueIssuesInner as ExternalIssueIssuesInner + from qase.api_client_v1.models.hash_response import HashResponse as HashResponse + from qase.api_client_v1.models.hash_response_all_of_result import HashResponseAllOfResult as HashResponseAllOfResult + from qase.api_client_v1.models.id_response import IdResponse as IdResponse + from qase.api_client_v1.models.id_response_all_of_result import IdResponseAllOfResult as IdResponseAllOfResult + from qase.api_client_v1.models.milestone import Milestone as Milestone + from qase.api_client_v1.models.milestone_create import MilestoneCreate as MilestoneCreate + from qase.api_client_v1.models.milestone_list_response import MilestoneListResponse as MilestoneListResponse + from qase.api_client_v1.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult as MilestoneListResponseAllOfResult + from qase.api_client_v1.models.milestone_response import MilestoneResponse as MilestoneResponse + from qase.api_client_v1.models.milestone_update import MilestoneUpdate as MilestoneUpdate + from qase.api_client_v1.models.parameter_group import ParameterGroup as ParameterGroup + from qase.api_client_v1.models.parameter_shared import ParameterShared as ParameterShared + from qase.api_client_v1.models.parameter_single import ParameterSingle as ParameterSingle + from qase.api_client_v1.models.plan import Plan as Plan + from qase.api_client_v1.models.plan_create import PlanCreate as PlanCreate + from qase.api_client_v1.models.plan_detailed import PlanDetailed as PlanDetailed + from qase.api_client_v1.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases as PlanDetailedAllOfCases + from qase.api_client_v1.models.plan_list_response import PlanListResponse as PlanListResponse + from qase.api_client_v1.models.plan_list_response_all_of_result import PlanListResponseAllOfResult as PlanListResponseAllOfResult + from qase.api_client_v1.models.plan_query import PlanQuery as PlanQuery + from qase.api_client_v1.models.plan_response import PlanResponse as PlanResponse + from qase.api_client_v1.models.plan_update import PlanUpdate as PlanUpdate + from qase.api_client_v1.models.project import Project as Project + from qase.api_client_v1.models.project_access import ProjectAccess as ProjectAccess + from qase.api_client_v1.models.project_code_response import ProjectCodeResponse as ProjectCodeResponse + from qase.api_client_v1.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult as ProjectCodeResponseAllOfResult + from qase.api_client_v1.models.project_counts import ProjectCounts as ProjectCounts + from qase.api_client_v1.models.project_counts_defects import ProjectCountsDefects as ProjectCountsDefects + from qase.api_client_v1.models.project_counts_runs import ProjectCountsRuns as ProjectCountsRuns + from qase.api_client_v1.models.project_create import ProjectCreate as ProjectCreate + from qase.api_client_v1.models.project_list_response import ProjectListResponse as ProjectListResponse + from qase.api_client_v1.models.project_list_response_all_of_result import ProjectListResponseAllOfResult as ProjectListResponseAllOfResult + from qase.api_client_v1.models.project_response import ProjectResponse as ProjectResponse + from qase.api_client_v1.models.qql_defect import QqlDefect as QqlDefect + from qase.api_client_v1.models.qql_plan import QqlPlan as QqlPlan + from qase.api_client_v1.models.qql_test_case import QqlTestCase as QqlTestCase + from qase.api_client_v1.models.qql_test_case_params import QqlTestCaseParams as QqlTestCaseParams + from qase.api_client_v1.models.requirement import Requirement as Requirement + from qase.api_client_v1.models.requirement_query import RequirementQuery as RequirementQuery + from qase.api_client_v1.models.response import Response as Response + from qase.api_client_v1.models.result import Result as Result + from qase.api_client_v1.models.result_create import ResultCreate as ResultCreate + from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk as ResultCreateBulk + from qase.api_client_v1.models.result_create_case import ResultCreateCase as ResultCreateCase + from qase.api_client_v1.models.result_create_response import ResultCreateResponse as ResultCreateResponse + from qase.api_client_v1.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult as ResultCreateResponseAllOfResult + from qase.api_client_v1.models.result_list_response import ResultListResponse as ResultListResponse + from qase.api_client_v1.models.result_list_response_all_of_result import ResultListResponseAllOfResult as ResultListResponseAllOfResult + from qase.api_client_v1.models.result_query import ResultQuery as ResultQuery + from qase.api_client_v1.models.result_response import ResultResponse as ResultResponse + from qase.api_client_v1.models.result_update import ResultUpdate as ResultUpdate + from qase.api_client_v1.models.run import Run as Run + from qase.api_client_v1.models.run_create import RunCreate as RunCreate + from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig as RunCreateCloudRunConfig + from qase.api_client_v1.models.run_environment import RunEnvironment as RunEnvironment + from qase.api_client_v1.models.run_external_issue import RunExternalIssue as RunExternalIssue + from qase.api_client_v1.models.run_external_issues import RunExternalIssues as RunExternalIssues + from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner as RunExternalIssuesLinksInner + from qase.api_client_v1.models.run_list_response import RunListResponse as RunListResponse + from qase.api_client_v1.models.run_list_response_all_of_result import RunListResponseAllOfResult as RunListResponseAllOfResult + from qase.api_client_v1.models.run_milestone import RunMilestone as RunMilestone + from qase.api_client_v1.models.run_public import RunPublic as RunPublic + from qase.api_client_v1.models.run_public_response import RunPublicResponse as RunPublicResponse + from qase.api_client_v1.models.run_public_response_all_of_result import RunPublicResponseAllOfResult as RunPublicResponseAllOfResult + from qase.api_client_v1.models.run_query import RunQuery as RunQuery + from qase.api_client_v1.models.run_response import RunResponse as RunResponse + from qase.api_client_v1.models.run_stats import RunStats as RunStats + from qase.api_client_v1.models.runupdate import Runupdate as Runupdate + from qase.api_client_v1.models.search_response import SearchResponse as SearchResponse + from qase.api_client_v1.models.search_response_all_of_result import SearchResponseAllOfResult as SearchResponseAllOfResult + from qase.api_client_v1.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities as SearchResponseAllOfResultEntities + from qase.api_client_v1.models.shared_parameter import SharedParameter as SharedParameter + from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate as SharedParameterCreate + from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse as SharedParameterListResponse + from qase.api_client_v1.models.shared_parameter_list_response_all_of_result import SharedParameterListResponseAllOfResult as SharedParameterListResponseAllOfResult + from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter as SharedParameterParameter + from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse as SharedParameterResponse + from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate as SharedParameterUpdate + from qase.api_client_v1.models.shared_step import SharedStep as SharedStep + from qase.api_client_v1.models.shared_step_content import SharedStepContent as SharedStepContent + from qase.api_client_v1.models.shared_step_content_create import SharedStepContentCreate as SharedStepContentCreate + from qase.api_client_v1.models.shared_step_create import SharedStepCreate as SharedStepCreate + from qase.api_client_v1.models.shared_step_list_response import SharedStepListResponse as SharedStepListResponse + from qase.api_client_v1.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult as SharedStepListResponseAllOfResult + from qase.api_client_v1.models.shared_step_response import SharedStepResponse as SharedStepResponse + from qase.api_client_v1.models.shared_step_update import SharedStepUpdate as SharedStepUpdate + from qase.api_client_v1.models.suite import Suite as Suite + from qase.api_client_v1.models.suite_create import SuiteCreate as SuiteCreate + from qase.api_client_v1.models.suite_delete import SuiteDelete as SuiteDelete + from qase.api_client_v1.models.suite_list_response import SuiteListResponse as SuiteListResponse + from qase.api_client_v1.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult as SuiteListResponseAllOfResult + from qase.api_client_v1.models.suite_response import SuiteResponse as SuiteResponse + from qase.api_client_v1.models.suite_update import SuiteUpdate as SuiteUpdate + from qase.api_client_v1.models.system_field import SystemField as SystemField + from qase.api_client_v1.models.system_field_list_response import SystemFieldListResponse as SystemFieldListResponse + from qase.api_client_v1.models.system_field_option import SystemFieldOption as SystemFieldOption + from qase.api_client_v1.models.tag_value import TagValue as TagValue + from qase.api_client_v1.models.test_case import TestCase as TestCase + from qase.api_client_v1.models.test_case_create import TestCaseCreate as TestCaseCreate + from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues as TestCaseExternalIssues + from qase.api_client_v1.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner as TestCaseExternalIssuesLinksInner + from qase.api_client_v1.models.test_case_list_response import TestCaseListResponse as TestCaseListResponse + from qase.api_client_v1.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult as TestCaseListResponseAllOfResult + from qase.api_client_v1.models.test_case_parameter import TestCaseParameter as TestCaseParameter + from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase as TestCaseParameterBase + from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate as TestCaseParameterCreate + from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup as TestCaseParameterGroup + from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle as TestCaseParameterSingle + from qase.api_client_v1.models.test_case_params import TestCaseParams as TestCaseParams + from qase.api_client_v1.models.test_case_query import TestCaseQuery as TestCaseQuery + from qase.api_client_v1.models.test_case_response import TestCaseResponse as TestCaseResponse + from qase.api_client_v1.models.test_case_update import TestCaseUpdate as TestCaseUpdate + from qase.api_client_v1.models.test_casebulk import TestCasebulk as TestCasebulk + from qase.api_client_v1.models.test_casebulk_cases_inner import TestCasebulkCasesInner as TestCasebulkCasesInner + from qase.api_client_v1.models.test_step import TestStep as TestStep + from qase.api_client_v1.models.test_step_create import TestStepCreate as TestStepCreate + from qase.api_client_v1.models.test_step_result import TestStepResult as TestStepResult + from qase.api_client_v1.models.test_step_result_create import TestStepResultCreate as TestStepResultCreate + from qase.api_client_v1.models.user import User as User + from qase.api_client_v1.models.user_list_response import UserListResponse as UserListResponse + from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult as UserListResponseAllOfResult + from qase.api_client_v1.models.user_response import UserResponse as UserResponse + from qase.api_client_v1.models.uuid_response import UuidResponse as UuidResponse + from qase.api_client_v1.models.uuid_response1 import UuidResponse1 as UuidResponse1 + from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult as UuidResponseAllOfResult + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + ("__version__", __version__), + ("__all__", __all__), + """# import apis into sdk package +from qase.api_client_v1.api.attachments_api import AttachmentsApi as AttachmentsApi +from qase.api_client_v1.api.authors_api import AuthorsApi as AuthorsApi +from qase.api_client_v1.api.cases_api import CasesApi as CasesApi +from qase.api_client_v1.api.configurations_api import ConfigurationsApi as ConfigurationsApi +from qase.api_client_v1.api.custom_fields_api import CustomFieldsApi as CustomFieldsApi +from qase.api_client_v1.api.defects_api import DefectsApi as DefectsApi +from qase.api_client_v1.api.environments_api import EnvironmentsApi as EnvironmentsApi +from qase.api_client_v1.api.milestones_api import MilestonesApi as MilestonesApi +from qase.api_client_v1.api.plans_api import PlansApi as PlansApi +from qase.api_client_v1.api.projects_api import ProjectsApi as ProjectsApi +from qase.api_client_v1.api.results_api import ResultsApi as ResultsApi +from qase.api_client_v1.api.runs_api import RunsApi as RunsApi +from qase.api_client_v1.api.search_api import SearchApi as SearchApi +from qase.api_client_v1.api.shared_parameters_api import SharedParametersApi as SharedParametersApi +from qase.api_client_v1.api.shared_steps_api import SharedStepsApi as SharedStepsApi +from qase.api_client_v1.api.suites_api import SuitesApi as SuitesApi +from qase.api_client_v1.api.system_fields_api import SystemFieldsApi as SystemFieldsApi +from qase.api_client_v1.api.users_api import UsersApi as UsersApi # import ApiClient -from qase.api_client_v1.api_response import ApiResponse -from qase.api_client_v1.api_client import ApiClient -from qase.api_client_v1.configuration import Configuration -from qase.api_client_v1.exceptions import OpenApiException -from qase.api_client_v1.exceptions import ApiTypeError -from qase.api_client_v1.exceptions import ApiValueError -from qase.api_client_v1.exceptions import ApiKeyError -from qase.api_client_v1.exceptions import ApiAttributeError -from qase.api_client_v1.exceptions import ApiException +from qase.api_client_v1.api_response import ApiResponse as ApiResponse +from qase.api_client_v1.api_client import ApiClient as ApiClient +from qase.api_client_v1.configuration import Configuration as Configuration +from qase.api_client_v1.exceptions import OpenApiException as OpenApiException +from qase.api_client_v1.exceptions import ApiTypeError as ApiTypeError +from qase.api_client_v1.exceptions import ApiValueError as ApiValueError +from qase.api_client_v1.exceptions import ApiKeyError as ApiKeyError +from qase.api_client_v1.exceptions import ApiAttributeError as ApiAttributeError +from qase.api_client_v1.exceptions import ApiException as ApiException # import models into sdk package -from qase.api_client_v1.models.attachment import Attachment -from qase.api_client_v1.models.attachment_get import AttachmentGet -from qase.api_client_v1.models.attachment_hash import AttachmentHash -from qase.api_client_v1.models.attachment_list_response import AttachmentListResponse -from qase.api_client_v1.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult -from qase.api_client_v1.models.attachment_response import AttachmentResponse -from qase.api_client_v1.models.attachment_uploads_response import AttachmentUploadsResponse -from qase.api_client_v1.models.attachmentupload import Attachmentupload -from qase.api_client_v1.models.author import Author -from qase.api_client_v1.models.author_list_response import AuthorListResponse -from qase.api_client_v1.models.author_list_response_all_of_result import AuthorListResponseAllOfResult -from qase.api_client_v1.models.author_response import AuthorResponse -from qase.api_client_v1.models.base_response import BaseResponse -from qase.api_client_v1.models.bulk200_response import Bulk200Response -from qase.api_client_v1.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult -from qase.api_client_v1.models.configuration import ConfigurationModel -from qase.api_client_v1.models.configuration_create import ConfigurationCreate -from qase.api_client_v1.models.configuration_group import ConfigurationGroup -from qase.api_client_v1.models.configuration_group_create import ConfigurationGroupCreate -from qase.api_client_v1.models.configuration_list_response import ConfigurationListResponse -from qase.api_client_v1.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult -from qase.api_client_v1.models.custom_field import CustomField -from qase.api_client_v1.models.custom_field_create import CustomFieldCreate -from qase.api_client_v1.models.custom_field_create_value_inner import CustomFieldCreateValueInner -from qase.api_client_v1.models.custom_field_list_response import CustomFieldListResponse -from qase.api_client_v1.models.custom_field_response import CustomFieldResponse -from qase.api_client_v1.models.custom_field_update import CustomFieldUpdate -from qase.api_client_v1.models.custom_field_value import CustomFieldValue -from qase.api_client_v1.models.custom_fields_response import CustomFieldsResponse -from qase.api_client_v1.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult -from qase.api_client_v1.models.defect import Defect -from qase.api_client_v1.models.defect_create import DefectCreate -from qase.api_client_v1.models.defect_list_response import DefectListResponse -from qase.api_client_v1.models.defect_list_response_all_of_result import DefectListResponseAllOfResult -from qase.api_client_v1.models.defect_query import DefectQuery -from qase.api_client_v1.models.defect_response import DefectResponse -from qase.api_client_v1.models.defect_status import DefectStatus -from qase.api_client_v1.models.defect_update import DefectUpdate -from qase.api_client_v1.models.environment import Environment -from qase.api_client_v1.models.environment_create import EnvironmentCreate -from qase.api_client_v1.models.environment_list_response import EnvironmentListResponse -from qase.api_client_v1.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult -from qase.api_client_v1.models.environment_response import EnvironmentResponse -from qase.api_client_v1.models.environment_update import EnvironmentUpdate -from qase.api_client_v1.models.external_issue import ExternalIssue -from qase.api_client_v1.models.external_issue_issues_inner import ExternalIssueIssuesInner -from qase.api_client_v1.models.hash_response import HashResponse -from qase.api_client_v1.models.hash_response_all_of_result import HashResponseAllOfResult -from qase.api_client_v1.models.id_response import IdResponse -from qase.api_client_v1.models.id_response_all_of_result import IdResponseAllOfResult -from qase.api_client_v1.models.milestone import Milestone -from qase.api_client_v1.models.milestone_create import MilestoneCreate -from qase.api_client_v1.models.milestone_list_response import MilestoneListResponse -from qase.api_client_v1.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult -from qase.api_client_v1.models.milestone_response import MilestoneResponse -from qase.api_client_v1.models.milestone_update import MilestoneUpdate -from qase.api_client_v1.models.parameter_group import ParameterGroup -from qase.api_client_v1.models.parameter_shared import ParameterShared -from qase.api_client_v1.models.parameter_single import ParameterSingle -from qase.api_client_v1.models.plan import Plan -from qase.api_client_v1.models.plan_create import PlanCreate -from qase.api_client_v1.models.plan_detailed import PlanDetailed -from qase.api_client_v1.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases -from qase.api_client_v1.models.plan_list_response import PlanListResponse -from qase.api_client_v1.models.plan_list_response_all_of_result import PlanListResponseAllOfResult -from qase.api_client_v1.models.plan_query import PlanQuery -from qase.api_client_v1.models.plan_response import PlanResponse -from qase.api_client_v1.models.plan_update import PlanUpdate -from qase.api_client_v1.models.project import Project -from qase.api_client_v1.models.project_access import ProjectAccess -from qase.api_client_v1.models.project_code_response import ProjectCodeResponse -from qase.api_client_v1.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult -from qase.api_client_v1.models.project_counts import ProjectCounts -from qase.api_client_v1.models.project_counts_defects import ProjectCountsDefects -from qase.api_client_v1.models.project_counts_runs import ProjectCountsRuns -from qase.api_client_v1.models.project_create import ProjectCreate -from qase.api_client_v1.models.project_list_response import ProjectListResponse -from qase.api_client_v1.models.project_list_response_all_of_result import ProjectListResponseAllOfResult -from qase.api_client_v1.models.project_response import ProjectResponse -from qase.api_client_v1.models.qql_defect import QqlDefect -from qase.api_client_v1.models.qql_plan import QqlPlan -from qase.api_client_v1.models.qql_test_case import QqlTestCase -from qase.api_client_v1.models.qql_test_case_params import QqlTestCaseParams -from qase.api_client_v1.models.requirement import Requirement -from qase.api_client_v1.models.requirement_query import RequirementQuery -from qase.api_client_v1.models.response import Response -from qase.api_client_v1.models.result import Result -from qase.api_client_v1.models.result_create import ResultCreate -from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk -from qase.api_client_v1.models.result_create_case import ResultCreateCase -from qase.api_client_v1.models.result_create_response import ResultCreateResponse -from qase.api_client_v1.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult -from qase.api_client_v1.models.result_list_response import ResultListResponse -from qase.api_client_v1.models.result_list_response_all_of_result import ResultListResponseAllOfResult -from qase.api_client_v1.models.result_query import ResultQuery -from qase.api_client_v1.models.result_response import ResultResponse -from qase.api_client_v1.models.result_update import ResultUpdate -from qase.api_client_v1.models.resultcreate_bulk import ResultcreateBulk -from qase.api_client_v1.models.run import Run -from qase.api_client_v1.models.run_create import RunCreate -from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig -from qase.api_client_v1.models.run_environment import RunEnvironment -from qase.api_client_v1.models.run_external_issue import RunExternalIssue -from qase.api_client_v1.models.run_list_response import RunListResponse -from qase.api_client_v1.models.run_list_response_all_of_result import RunListResponseAllOfResult -from qase.api_client_v1.models.run_milestone import RunMilestone -from qase.api_client_v1.models.run_public import RunPublic -from qase.api_client_v1.models.run_public_response import RunPublicResponse -from qase.api_client_v1.models.run_public_response_all_of_result import RunPublicResponseAllOfResult -from qase.api_client_v1.models.run_query import RunQuery -from qase.api_client_v1.models.run_response import RunResponse -from qase.api_client_v1.models.run_stats import RunStats -from qase.api_client_v1.models.runexternal_issues import RunexternalIssues -from qase.api_client_v1.models.runexternal_issues_links_inner import RunexternalIssuesLinksInner -from qase.api_client_v1.models.runupdate import Runupdate -from qase.api_client_v1.models.search_response import SearchResponse -from qase.api_client_v1.models.search_response_all_of_result import SearchResponseAllOfResult -from qase.api_client_v1.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities -from qase.api_client_v1.models.shared_parameter import SharedParameter -from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate -from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse -from qase.api_client_v1.models.shared_parameter_list_response_all_of_result import SharedParameterListResponseAllOfResult -from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter -from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse -from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate -from qase.api_client_v1.models.shared_step import SharedStep -from qase.api_client_v1.models.shared_step_content import SharedStepContent -from qase.api_client_v1.models.shared_step_content_create import SharedStepContentCreate -from qase.api_client_v1.models.shared_step_create import SharedStepCreate -from qase.api_client_v1.models.shared_step_list_response import SharedStepListResponse -from qase.api_client_v1.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult -from qase.api_client_v1.models.shared_step_response import SharedStepResponse -from qase.api_client_v1.models.shared_step_update import SharedStepUpdate -from qase.api_client_v1.models.suite import Suite -from qase.api_client_v1.models.suite_create import SuiteCreate -from qase.api_client_v1.models.suite_delete import SuiteDelete -from qase.api_client_v1.models.suite_list_response import SuiteListResponse -from qase.api_client_v1.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult -from qase.api_client_v1.models.suite_response import SuiteResponse -from qase.api_client_v1.models.suite_update import SuiteUpdate -from qase.api_client_v1.models.system_field import SystemField -from qase.api_client_v1.models.system_field_list_response import SystemFieldListResponse -from qase.api_client_v1.models.system_field_option import SystemFieldOption -from qase.api_client_v1.models.tag_value import TagValue -from qase.api_client_v1.models.test_case import TestCase -from qase.api_client_v1.models.test_case_create import TestCaseCreate -from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues -from qase.api_client_v1.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner -from qase.api_client_v1.models.test_case_list_response import TestCaseListResponse -from qase.api_client_v1.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult -from qase.api_client_v1.models.test_case_parameter import TestCaseParameter -from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase -from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup -from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate -from qase.api_client_v1.models.test_case_params import TestCaseParams -from qase.api_client_v1.models.test_case_query import TestCaseQuery -from qase.api_client_v1.models.test_case_response import TestCaseResponse -from qase.api_client_v1.models.test_case_update import TestCaseUpdate -from qase.api_client_v1.models.test_casebulk import TestCasebulk -from qase.api_client_v1.models.test_casebulk_cases_inner import TestCasebulkCasesInner -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues -from qase.api_client_v1.models.test_step import TestStep -from qase.api_client_v1.models.test_step_create import TestStepCreate -from qase.api_client_v1.models.test_step_result import TestStepResult -from qase.api_client_v1.models.test_step_result_create import TestStepResultCreate -from qase.api_client_v1.models.uuid_response import UuidResponse -from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult +from qase.api_client_v1.models.attachment import Attachment as Attachment +from qase.api_client_v1.models.attachment_get import AttachmentGet as AttachmentGet +from qase.api_client_v1.models.attachment_hash import AttachmentHash as AttachmentHash +from qase.api_client_v1.models.attachment_list_response import AttachmentListResponse as AttachmentListResponse +from qase.api_client_v1.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult as AttachmentListResponseAllOfResult +from qase.api_client_v1.models.attachment_response import AttachmentResponse as AttachmentResponse +from qase.api_client_v1.models.attachment_uploads_response import AttachmentUploadsResponse as AttachmentUploadsResponse +from qase.api_client_v1.models.attachmentupload import Attachmentupload as Attachmentupload +from qase.api_client_v1.models.author import Author as Author +from qase.api_client_v1.models.author_list_response import AuthorListResponse as AuthorListResponse +from qase.api_client_v1.models.author_list_response_all_of_result import AuthorListResponseAllOfResult as AuthorListResponseAllOfResult +from qase.api_client_v1.models.author_response import AuthorResponse as AuthorResponse +from qase.api_client_v1.models.base_response import BaseResponse as BaseResponse +from qase.api_client_v1.models.bulk200_response import Bulk200Response as Bulk200Response +from qase.api_client_v1.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult as Bulk200ResponseAllOfResult +from qase.api_client_v1.models.configuration import Configuration as Configuration +from qase.api_client_v1.models.configuration_create import ConfigurationCreate as ConfigurationCreate +from qase.api_client_v1.models.configuration_group import ConfigurationGroup as ConfigurationGroup +from qase.api_client_v1.models.configuration_group_create import ConfigurationGroupCreate as ConfigurationGroupCreate +from qase.api_client_v1.models.configuration_list_response import ConfigurationListResponse as ConfigurationListResponse +from qase.api_client_v1.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult as ConfigurationListResponseAllOfResult +from qase.api_client_v1.models.custom_field import CustomField as CustomField +from qase.api_client_v1.models.custom_field_create import CustomFieldCreate as CustomFieldCreate +from qase.api_client_v1.models.custom_field_create_value_inner import CustomFieldCreateValueInner as CustomFieldCreateValueInner +from qase.api_client_v1.models.custom_field_list_response import CustomFieldListResponse as CustomFieldListResponse +from qase.api_client_v1.models.custom_field_response import CustomFieldResponse as CustomFieldResponse +from qase.api_client_v1.models.custom_field_update import CustomFieldUpdate as CustomFieldUpdate +from qase.api_client_v1.models.custom_field_value import CustomFieldValue as CustomFieldValue +from qase.api_client_v1.models.custom_fields_response import CustomFieldsResponse as CustomFieldsResponse +from qase.api_client_v1.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult as CustomFieldsResponseAllOfResult +from qase.api_client_v1.models.defect import Defect as Defect +from qase.api_client_v1.models.defect_create import DefectCreate as DefectCreate +from qase.api_client_v1.models.defect_list_response import DefectListResponse as DefectListResponse +from qase.api_client_v1.models.defect_list_response_all_of_result import DefectListResponseAllOfResult as DefectListResponseAllOfResult +from qase.api_client_v1.models.defect_query import DefectQuery as DefectQuery +from qase.api_client_v1.models.defect_response import DefectResponse as DefectResponse +from qase.api_client_v1.models.defect_status import DefectStatus as DefectStatus +from qase.api_client_v1.models.defect_update import DefectUpdate as DefectUpdate +from qase.api_client_v1.models.environment import Environment as Environment +from qase.api_client_v1.models.environment_create import EnvironmentCreate as EnvironmentCreate +from qase.api_client_v1.models.environment_list_response import EnvironmentListResponse as EnvironmentListResponse +from qase.api_client_v1.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult as EnvironmentListResponseAllOfResult +from qase.api_client_v1.models.environment_response import EnvironmentResponse as EnvironmentResponse +from qase.api_client_v1.models.environment_update import EnvironmentUpdate as EnvironmentUpdate +from qase.api_client_v1.models.external_issue import ExternalIssue as ExternalIssue +from qase.api_client_v1.models.external_issue_issues_inner import ExternalIssueIssuesInner as ExternalIssueIssuesInner +from qase.api_client_v1.models.hash_response import HashResponse as HashResponse +from qase.api_client_v1.models.hash_response_all_of_result import HashResponseAllOfResult as HashResponseAllOfResult +from qase.api_client_v1.models.id_response import IdResponse as IdResponse +from qase.api_client_v1.models.id_response_all_of_result import IdResponseAllOfResult as IdResponseAllOfResult +from qase.api_client_v1.models.milestone import Milestone as Milestone +from qase.api_client_v1.models.milestone_create import MilestoneCreate as MilestoneCreate +from qase.api_client_v1.models.milestone_list_response import MilestoneListResponse as MilestoneListResponse +from qase.api_client_v1.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult as MilestoneListResponseAllOfResult +from qase.api_client_v1.models.milestone_response import MilestoneResponse as MilestoneResponse +from qase.api_client_v1.models.milestone_update import MilestoneUpdate as MilestoneUpdate +from qase.api_client_v1.models.parameter_group import ParameterGroup as ParameterGroup +from qase.api_client_v1.models.parameter_shared import ParameterShared as ParameterShared +from qase.api_client_v1.models.parameter_single import ParameterSingle as ParameterSingle +from qase.api_client_v1.models.plan import Plan as Plan +from qase.api_client_v1.models.plan_create import PlanCreate as PlanCreate +from qase.api_client_v1.models.plan_detailed import PlanDetailed as PlanDetailed +from qase.api_client_v1.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases as PlanDetailedAllOfCases +from qase.api_client_v1.models.plan_list_response import PlanListResponse as PlanListResponse +from qase.api_client_v1.models.plan_list_response_all_of_result import PlanListResponseAllOfResult as PlanListResponseAllOfResult +from qase.api_client_v1.models.plan_query import PlanQuery as PlanQuery +from qase.api_client_v1.models.plan_response import PlanResponse as PlanResponse +from qase.api_client_v1.models.plan_update import PlanUpdate as PlanUpdate +from qase.api_client_v1.models.project import Project as Project +from qase.api_client_v1.models.project_access import ProjectAccess as ProjectAccess +from qase.api_client_v1.models.project_code_response import ProjectCodeResponse as ProjectCodeResponse +from qase.api_client_v1.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult as ProjectCodeResponseAllOfResult +from qase.api_client_v1.models.project_counts import ProjectCounts as ProjectCounts +from qase.api_client_v1.models.project_counts_defects import ProjectCountsDefects as ProjectCountsDefects +from qase.api_client_v1.models.project_counts_runs import ProjectCountsRuns as ProjectCountsRuns +from qase.api_client_v1.models.project_create import ProjectCreate as ProjectCreate +from qase.api_client_v1.models.project_list_response import ProjectListResponse as ProjectListResponse +from qase.api_client_v1.models.project_list_response_all_of_result import ProjectListResponseAllOfResult as ProjectListResponseAllOfResult +from qase.api_client_v1.models.project_response import ProjectResponse as ProjectResponse +from qase.api_client_v1.models.qql_defect import QqlDefect as QqlDefect +from qase.api_client_v1.models.qql_plan import QqlPlan as QqlPlan +from qase.api_client_v1.models.qql_test_case import QqlTestCase as QqlTestCase +from qase.api_client_v1.models.qql_test_case_params import QqlTestCaseParams as QqlTestCaseParams +from qase.api_client_v1.models.requirement import Requirement as Requirement +from qase.api_client_v1.models.requirement_query import RequirementQuery as RequirementQuery +from qase.api_client_v1.models.response import Response as Response +from qase.api_client_v1.models.result import Result as Result +from qase.api_client_v1.models.result_create import ResultCreate as ResultCreate +from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk as ResultCreateBulk +from qase.api_client_v1.models.result_create_case import ResultCreateCase as ResultCreateCase +from qase.api_client_v1.models.result_create_response import ResultCreateResponse as ResultCreateResponse +from qase.api_client_v1.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult as ResultCreateResponseAllOfResult +from qase.api_client_v1.models.result_list_response import ResultListResponse as ResultListResponse +from qase.api_client_v1.models.result_list_response_all_of_result import ResultListResponseAllOfResult as ResultListResponseAllOfResult +from qase.api_client_v1.models.result_query import ResultQuery as ResultQuery +from qase.api_client_v1.models.result_response import ResultResponse as ResultResponse +from qase.api_client_v1.models.result_update import ResultUpdate as ResultUpdate +from qase.api_client_v1.models.run import Run as Run +from qase.api_client_v1.models.run_create import RunCreate as RunCreate +from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig as RunCreateCloudRunConfig +from qase.api_client_v1.models.run_environment import RunEnvironment as RunEnvironment +from qase.api_client_v1.models.run_external_issue import RunExternalIssue as RunExternalIssue +from qase.api_client_v1.models.run_external_issues import RunExternalIssues as RunExternalIssues +from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner as RunExternalIssuesLinksInner +from qase.api_client_v1.models.run_list_response import RunListResponse as RunListResponse +from qase.api_client_v1.models.run_list_response_all_of_result import RunListResponseAllOfResult as RunListResponseAllOfResult +from qase.api_client_v1.models.run_milestone import RunMilestone as RunMilestone +from qase.api_client_v1.models.run_public import RunPublic as RunPublic +from qase.api_client_v1.models.run_public_response import RunPublicResponse as RunPublicResponse +from qase.api_client_v1.models.run_public_response_all_of_result import RunPublicResponseAllOfResult as RunPublicResponseAllOfResult +from qase.api_client_v1.models.run_query import RunQuery as RunQuery +from qase.api_client_v1.models.run_response import RunResponse as RunResponse +from qase.api_client_v1.models.run_stats import RunStats as RunStats +from qase.api_client_v1.models.runupdate import Runupdate as Runupdate +from qase.api_client_v1.models.search_response import SearchResponse as SearchResponse +from qase.api_client_v1.models.search_response_all_of_result import SearchResponseAllOfResult as SearchResponseAllOfResult +from qase.api_client_v1.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities as SearchResponseAllOfResultEntities +from qase.api_client_v1.models.shared_parameter import SharedParameter as SharedParameter +from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate as SharedParameterCreate +from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse as SharedParameterListResponse +from qase.api_client_v1.models.shared_parameter_list_response_all_of_result import SharedParameterListResponseAllOfResult as SharedParameterListResponseAllOfResult +from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter as SharedParameterParameter +from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse as SharedParameterResponse +from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate as SharedParameterUpdate +from qase.api_client_v1.models.shared_step import SharedStep as SharedStep +from qase.api_client_v1.models.shared_step_content import SharedStepContent as SharedStepContent +from qase.api_client_v1.models.shared_step_content_create import SharedStepContentCreate as SharedStepContentCreate +from qase.api_client_v1.models.shared_step_create import SharedStepCreate as SharedStepCreate +from qase.api_client_v1.models.shared_step_list_response import SharedStepListResponse as SharedStepListResponse +from qase.api_client_v1.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult as SharedStepListResponseAllOfResult +from qase.api_client_v1.models.shared_step_response import SharedStepResponse as SharedStepResponse +from qase.api_client_v1.models.shared_step_update import SharedStepUpdate as SharedStepUpdate +from qase.api_client_v1.models.suite import Suite as Suite +from qase.api_client_v1.models.suite_create import SuiteCreate as SuiteCreate +from qase.api_client_v1.models.suite_delete import SuiteDelete as SuiteDelete +from qase.api_client_v1.models.suite_list_response import SuiteListResponse as SuiteListResponse +from qase.api_client_v1.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult as SuiteListResponseAllOfResult +from qase.api_client_v1.models.suite_response import SuiteResponse as SuiteResponse +from qase.api_client_v1.models.suite_update import SuiteUpdate as SuiteUpdate +from qase.api_client_v1.models.system_field import SystemField as SystemField +from qase.api_client_v1.models.system_field_list_response import SystemFieldListResponse as SystemFieldListResponse +from qase.api_client_v1.models.system_field_option import SystemFieldOption as SystemFieldOption +from qase.api_client_v1.models.tag_value import TagValue as TagValue +from qase.api_client_v1.models.test_case import TestCase as TestCase +from qase.api_client_v1.models.test_case_create import TestCaseCreate as TestCaseCreate +from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues as TestCaseExternalIssues +from qase.api_client_v1.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner as TestCaseExternalIssuesLinksInner +from qase.api_client_v1.models.test_case_list_response import TestCaseListResponse as TestCaseListResponse +from qase.api_client_v1.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult as TestCaseListResponseAllOfResult +from qase.api_client_v1.models.test_case_parameter import TestCaseParameter as TestCaseParameter +from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase as TestCaseParameterBase +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate as TestCaseParameterCreate +from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup as TestCaseParameterGroup +from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle as TestCaseParameterSingle +from qase.api_client_v1.models.test_case_params import TestCaseParams as TestCaseParams +from qase.api_client_v1.models.test_case_query import TestCaseQuery as TestCaseQuery +from qase.api_client_v1.models.test_case_response import TestCaseResponse as TestCaseResponse +from qase.api_client_v1.models.test_case_update import TestCaseUpdate as TestCaseUpdate +from qase.api_client_v1.models.test_casebulk import TestCasebulk as TestCasebulk +from qase.api_client_v1.models.test_casebulk_cases_inner import TestCasebulkCasesInner as TestCasebulkCasesInner +from qase.api_client_v1.models.test_step import TestStep as TestStep +from qase.api_client_v1.models.test_step_create import TestStepCreate as TestStepCreate +from qase.api_client_v1.models.test_step_result import TestStepResult as TestStepResult +from qase.api_client_v1.models.test_step_result_create import TestStepResultCreate as TestStepResultCreate +from qase.api_client_v1.models.user import User as User +from qase.api_client_v1.models.user_list_response import UserListResponse as UserListResponse +from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult as UserListResponseAllOfResult +from qase.api_client_v1.models.user_response import UserResponse as UserResponse +from qase.api_client_v1.models.uuid_response import UuidResponse as UuidResponse +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 as UuidResponse1 +from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult as UuidResponseAllOfResult + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-client/src/qase/api_client_v1/api/__init__.py b/qase-api-client/src/qase/api_client_v1/api/__init__.py index 7bfab22d..e0958ec2 100644 --- a/qase-api-client/src/qase/api_client_v1/api/__init__.py +++ b/qase-api-client/src/qase/api_client_v1/api/__init__.py @@ -1,6 +1,33 @@ # flake8: noqa -# import apis into api package +if __import__("typing").TYPE_CHECKING: + # import apis into api package + from qase.api_client_v1.api.attachments_api import AttachmentsApi + from qase.api_client_v1.api.authors_api import AuthorsApi + from qase.api_client_v1.api.cases_api import CasesApi + from qase.api_client_v1.api.configurations_api import ConfigurationsApi + from qase.api_client_v1.api.custom_fields_api import CustomFieldsApi + from qase.api_client_v1.api.defects_api import DefectsApi + from qase.api_client_v1.api.environments_api import EnvironmentsApi + from qase.api_client_v1.api.milestones_api import MilestonesApi + from qase.api_client_v1.api.plans_api import PlansApi + from qase.api_client_v1.api.projects_api import ProjectsApi + from qase.api_client_v1.api.results_api import ResultsApi + from qase.api_client_v1.api.runs_api import RunsApi + from qase.api_client_v1.api.search_api import SearchApi + from qase.api_client_v1.api.shared_parameters_api import SharedParametersApi + from qase.api_client_v1.api.shared_steps_api import SharedStepsApi + from qase.api_client_v1.api.suites_api import SuitesApi + from qase.api_client_v1.api.system_fields_api import SystemFieldsApi + from qase.api_client_v1.api.users_api import UsersApi + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import apis into api package from qase.api_client_v1.api.attachments_api import AttachmentsApi from qase.api_client_v1.api.authors_api import AuthorsApi from qase.api_client_v1.api.cases_api import CasesApi @@ -18,4 +45,10 @@ from qase.api_client_v1.api.shared_steps_api import SharedStepsApi from qase.api_client_v1.api.suites_api import SuitesApi from qase.api_client_v1.api.system_fields_api import SystemFieldsApi +from qase.api_client_v1.api.users_api import UsersApi +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-client/src/qase/api_client_v1/api/attachments_api.py b/qase-api-client/src/qase/api_client_v1/api/attachments_api.py index 96a1009d..79798cf2 100644 --- a/qase-api-client/src/qase/api_client_v1/api/attachments_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/attachments_api.py @@ -18,7 +18,7 @@ from typing_extensions import Annotated from pydantic import Field, StrictBytes, StrictStr -from typing import List, Optional, Union +from typing import List, Optional, Tuple, Union from typing_extensions import Annotated from qase.api_client_v1.models.attachment_list_response import AttachmentListResponse from qase.api_client_v1.models.attachment_response import AttachmentResponse @@ -273,7 +273,9 @@ def _delete_attachment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -286,11 +288,12 @@ def _delete_attachment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -546,7 +549,9 @@ def _get_attachment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -559,11 +564,12 @@ def _get_attachment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -835,7 +841,9 @@ def _get_attachments_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -854,11 +862,12 @@ def _get_attachments_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -888,7 +897,7 @@ def _get_attachments_serialize( 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, + file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -965,7 +974,7 @@ def upload_attachment( 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, + file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1042,7 +1051,7 @@ def upload_attachment_with_http_info( 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, + file: Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1131,7 +1140,9 @@ def _upload_attachment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1146,11 +1157,12 @@ def _upload_attachment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/authors_api.py b/qase-api-client/src/qase/api_client_v1/api/authors_api.py index 16f0a340..1b2db4b5 100644 --- a/qase-api-client/src/qase/api_client_v1/api/authors_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/authors_api.py @@ -271,7 +271,9 @@ def _get_author_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -284,11 +286,12 @@ def _get_author_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -583,7 +586,9 @@ def _get_authors_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -610,11 +615,12 @@ def _get_authors_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/qase-api-client/src/qase/api_client_v1/api/cases_api.py b/qase-api-client/src/qase/api_client_v1/api/cases_api.py index 8b9614b8..8300b607 100644 --- a/qase-api-client/src/qase/api_client_v1/api/cases_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/cases_api.py @@ -24,11 +24,11 @@ from qase.api_client_v1.models.bulk200_response import Bulk200Response from qase.api_client_v1.models.id_response import IdResponse from qase.api_client_v1.models.test_case_create import TestCaseCreate +from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues from qase.api_client_v1.models.test_case_list_response import TestCaseListResponse from qase.api_client_v1.models.test_case_response import TestCaseResponse from qase.api_client_v1.models.test_case_update import TestCaseUpdate from qase.api_client_v1.models.test_casebulk import TestCasebulk -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues from qase.api_client_v1.api_client import ApiClient, RequestSerialized from qase.api_client_v1.api_response import ApiResponse @@ -294,7 +294,9 @@ def _bulk_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -309,11 +311,12 @@ def _bulk_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -356,7 +359,7 @@ def _bulk_serialize( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -375,8 +378,8 @@ def case_attach_external_issue( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -401,7 +404,7 @@ def case_attach_external_issue( _param = self._case_attach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -433,7 +436,7 @@ def case_attach_external_issue( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -452,8 +455,8 @@ def case_attach_external_issue_with_http_info( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -478,7 +481,7 @@ def case_attach_external_issue_with_http_info( _param = self._case_attach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -510,7 +513,7 @@ def case_attach_external_issue_with_http_info( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -529,8 +532,8 @@ def case_attach_external_issue_without_preload_content( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -555,7 +558,7 @@ def case_attach_external_issue_without_preload_content( _param = self._case_attach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -582,7 +585,7 @@ def case_attach_external_issue_without_preload_content( def _case_attach_external_issue_serialize( self, code, - test_caseexternal_issues, + test_case_external_issues, _request_auth, _content_type, _headers, @@ -598,7 +601,9 @@ def _case_attach_external_issue_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -608,16 +613,17 @@ def _case_attach_external_issue_serialize( # process the header parameters # process the form parameters # process the body parameter - if test_caseexternal_issues is not None: - _body_params = test_caseexternal_issues + if test_case_external_issues is not None: + _body_params = test_case_external_issues # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -660,7 +666,7 @@ def _case_attach_external_issue_serialize( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -679,8 +685,8 @@ def case_detach_external_issue( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -705,7 +711,7 @@ def case_detach_external_issue( _param = self._case_detach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -737,7 +743,7 @@ def case_detach_external_issue( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -756,8 +762,8 @@ def case_detach_external_issue_with_http_info( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -782,7 +788,7 @@ def case_detach_external_issue_with_http_info( _param = self._case_detach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -814,7 +820,7 @@ def case_detach_external_issue_with_http_info( 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, + test_case_external_issues: TestCaseExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -833,8 +839,8 @@ def case_detach_external_issue_without_preload_content( :param code: Code of project, where to search entities. (required) :type code: str - :param test_caseexternal_issues: (required) - :type test_caseexternal_issues: TestCaseexternalIssues + :param test_case_external_issues: (required) + :type test_case_external_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 @@ -859,7 +865,7 @@ def case_detach_external_issue_without_preload_content( _param = self._case_detach_external_issue_serialize( code=code, - test_caseexternal_issues=test_caseexternal_issues, + test_case_external_issues=test_case_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -886,7 +892,7 @@ def case_detach_external_issue_without_preload_content( def _case_detach_external_issue_serialize( self, code, - test_caseexternal_issues, + test_case_external_issues, _request_auth, _content_type, _headers, @@ -902,7 +908,9 @@ def _case_detach_external_issue_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -912,16 +920,17 @@ def _case_detach_external_issue_serialize( # process the header parameters # process the form parameters # process the body parameter - if test_caseexternal_issues is not None: - _body_params = test_caseexternal_issues + if test_case_external_issues is not None: + _body_params = test_case_external_issues # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1206,7 +1215,9 @@ def _create_case_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1221,11 +1232,12 @@ def _create_case_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1510,7 +1522,9 @@ def _delete_case_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1525,11 +1539,12 @@ def _delete_case_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1814,7 +1829,9 @@ def _get_case_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1833,11 +1850,12 @@ def _get_case_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2279,7 +2297,9 @@ def _get_cases_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2348,11 +2368,12 @@ def _get_cases_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -2637,7 +2658,9 @@ def _update_case_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2654,11 +2677,12 @@ def _update_case_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/configurations_api.py b/qase-api-client/src/qase/api_client_v1/api/configurations_api.py index df6b81bc..4412cc29 100644 --- a/qase-api-client/src/qase/api_client_v1/api/configurations_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/configurations_api.py @@ -288,7 +288,9 @@ def _create_configuration_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -303,11 +305,12 @@ def _create_configuration_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -592,7 +595,9 @@ def _create_configuration_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -607,11 +612,12 @@ def _create_configuration_group_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -880,7 +886,9 @@ def _get_configurations_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -893,11 +901,12 @@ def _get_configurations_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/qase-api-client/src/qase/api_client_v1/api/custom_fields_api.py b/qase-api-client/src/qase/api_client_v1/api/custom_fields_api.py index 95ffa087..9cc48ff2 100644 --- a/qase-api-client/src/qase/api_client_v1/api/custom_fields_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/custom_fields_api.py @@ -275,7 +275,9 @@ def _create_custom_field_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -288,11 +290,12 @@ def _create_custom_field_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -561,7 +564,9 @@ def _delete_custom_field_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -574,11 +579,12 @@ def _delete_custom_field_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -834,7 +840,9 @@ def _get_custom_field_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -847,11 +855,12 @@ def _get_custom_field_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1143,7 +1152,9 @@ def _get_custom_fields_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1170,11 +1181,12 @@ def _get_custom_fields_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1446,7 +1458,9 @@ def _update_custom_field_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1461,11 +1475,12 @@ def _update_custom_field_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/defects_api.py b/qase-api-client/src/qase/api_client_v1/api/defects_api.py index 43a86256..7e5ac442 100644 --- a/qase-api-client/src/qase/api_client_v1/api/defects_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/defects_api.py @@ -292,7 +292,9 @@ def _create_defect_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -307,11 +309,12 @@ def _create_defect_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -593,7 +596,9 @@ def _delete_defect_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -608,11 +613,12 @@ def _delete_defect_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -881,7 +887,9 @@ def _get_defect_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -896,11 +904,12 @@ def _get_defect_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1195,7 +1204,9 @@ def _get_defects_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1220,11 +1231,12 @@ def _get_defects_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1496,7 +1508,9 @@ def _resolve_defect_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1511,11 +1525,12 @@ def _resolve_defect_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1800,7 +1815,9 @@ def _update_defect_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1817,11 +1834,12 @@ def _update_defect_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2119,7 +2137,9 @@ def _update_defect_status_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2136,11 +2156,12 @@ def _update_defect_status_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/environments_api.py b/qase-api-client/src/qase/api_client_v1/api/environments_api.py index d595e4a3..9bf95451 100644 --- a/qase-api-client/src/qase/api_client_v1/api/environments_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/environments_api.py @@ -290,7 +290,9 @@ def _create_environment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -305,11 +307,12 @@ def _create_environment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -591,7 +594,9 @@ def _delete_environment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -606,11 +611,12 @@ def _delete_environment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -879,7 +885,9 @@ def _get_environment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -894,11 +902,12 @@ def _get_environment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1206,7 +1215,9 @@ def _get_environments_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1235,11 +1246,12 @@ def _get_environments_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1521,7 +1533,9 @@ def _update_environment_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1538,11 +1552,12 @@ def _update_environment_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/milestones_api.py b/qase-api-client/src/qase/api_client_v1/api/milestones_api.py index 6ed28eea..4fec3fc3 100644 --- a/qase-api-client/src/qase/api_client_v1/api/milestones_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/milestones_api.py @@ -290,7 +290,9 @@ def _create_milestone_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -305,11 +307,12 @@ def _create_milestone_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -591,7 +594,9 @@ def _delete_milestone_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -606,11 +611,12 @@ def _delete_milestone_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -879,7 +885,9 @@ def _get_milestone_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -894,11 +902,12 @@ def _get_milestone_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1193,7 +1202,9 @@ def _get_milestones_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1218,11 +1229,12 @@ def _get_milestones_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1507,7 +1519,9 @@ def _update_milestone_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1524,11 +1538,12 @@ def _update_milestone_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/plans_api.py b/qase-api-client/src/qase/api_client_v1/api/plans_api.py index 2059aeb8..46c99688 100644 --- a/qase-api-client/src/qase/api_client_v1/api/plans_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/plans_api.py @@ -290,7 +290,9 @@ def _create_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -305,11 +307,12 @@ def _create_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -591,7 +594,9 @@ def _delete_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -606,11 +611,12 @@ def _delete_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -879,7 +885,9 @@ def _get_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -894,11 +902,12 @@ def _get_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1180,7 +1189,9 @@ def _get_plans_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1201,11 +1212,12 @@ def _get_plans_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1490,7 +1502,9 @@ def _update_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1507,11 +1521,12 @@ def _update_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/projects_api.py b/qase-api-client/src/qase/api_client_v1/api/projects_api.py index 3fb9b8de..f92ce613 100644 --- a/qase-api-client/src/qase/api_client_v1/api/projects_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/projects_api.py @@ -275,7 +275,9 @@ def _create_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -288,11 +290,12 @@ def _create_project_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -561,7 +564,9 @@ def _delete_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -574,11 +579,12 @@ def _delete_project_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -834,7 +840,9 @@ def _get_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -847,11 +855,12 @@ def _get_project_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1117,7 +1126,9 @@ def _get_projects_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1136,11 +1147,12 @@ def _get_projects_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1412,7 +1424,9 @@ def _grant_access_to_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1427,11 +1441,12 @@ def _grant_access_to_project_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1716,7 +1731,9 @@ def _revoke_access_to_project_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1731,11 +1748,12 @@ def _revoke_access_to_project_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/results_api.py b/qase-api-client/src/qase/api_client_v1/api/results_api.py index 9d70cb0d..864c55a7 100644 --- a/qase-api-client/src/qase/api_client_v1/api/results_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/results_api.py @@ -23,11 +23,11 @@ from qase.api_client_v1.models.base_response import BaseResponse from qase.api_client_v1.models.hash_response import HashResponse from qase.api_client_v1.models.result_create import ResultCreate +from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk from qase.api_client_v1.models.result_create_response import ResultCreateResponse from qase.api_client_v1.models.result_list_response import ResultListResponse from qase.api_client_v1.models.result_response import ResultResponse from qase.api_client_v1.models.result_update import ResultUpdate -from qase.api_client_v1.models.resultcreate_bulk import ResultcreateBulk from qase.api_client_v1.api_client import ApiClient, RequestSerialized from qase.api_client_v1.api_response import ApiResponse @@ -306,7 +306,9 @@ def _create_result_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -323,11 +325,12 @@ def _create_result_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -371,7 +374,7 @@ 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, + result_create_bulk: ResultCreateBulk, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -393,8 +396,8 @@ def create_result_bulk( :type code: str :param id: Identifier. (required) :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk + :param result_create_bulk: (required) + :type result_create_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 @@ -420,7 +423,7 @@ def create_result_bulk( _param = self._create_result_bulk_serialize( code=code, id=id, - resultcreate_bulk=resultcreate_bulk, + result_create_bulk=result_create_bulk, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -453,7 +456,7 @@ 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, + result_create_bulk: ResultCreateBulk, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -475,8 +478,8 @@ def create_result_bulk_with_http_info( :type code: str :param id: Identifier. (required) :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk + :param result_create_bulk: (required) + :type result_create_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 @@ -502,7 +505,7 @@ def create_result_bulk_with_http_info( _param = self._create_result_bulk_serialize( code=code, id=id, - resultcreate_bulk=resultcreate_bulk, + result_create_bulk=result_create_bulk, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -535,7 +538,7 @@ 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, + result_create_bulk: ResultCreateBulk, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -557,8 +560,8 @@ def create_result_bulk_without_preload_content( :type code: str :param id: Identifier. (required) :type id: int - :param resultcreate_bulk: (required) - :type resultcreate_bulk: ResultcreateBulk + :param result_create_bulk: (required) + :type result_create_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 @@ -584,7 +587,7 @@ def create_result_bulk_without_preload_content( _param = self._create_result_bulk_serialize( code=code, id=id, - resultcreate_bulk=resultcreate_bulk, + result_create_bulk=result_create_bulk, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -612,7 +615,7 @@ def _create_result_bulk_serialize( self, code, id, - resultcreate_bulk, + result_create_bulk, _request_auth, _content_type, _headers, @@ -628,7 +631,9 @@ def _create_result_bulk_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -640,16 +645,17 @@ def _create_result_bulk_serialize( # process the header parameters # process the form parameters # process the body parameter - if resultcreate_bulk is not None: - _body_params = resultcreate_bulk + if result_create_bulk is not None: + _body_params = result_create_bulk # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -944,7 +950,9 @@ def _delete_result_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -961,11 +969,12 @@ def _delete_result_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1234,7 +1243,9 @@ def _get_result_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1249,11 +1260,12 @@ def _get_result_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1626,7 +1638,9 @@ def _get_results_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1675,11 +1689,12 @@ def _get_results_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1977,7 +1992,9 @@ def _update_result_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1996,11 +2013,12 @@ def _update_result_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/runs_api.py b/qase-api-client/src/qase/api_client_v1/api/runs_api.py index b1b73218..36dc0625 100644 --- a/qase-api-client/src/qase/api_client_v1/api/runs_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/runs_api.py @@ -23,11 +23,11 @@ from qase.api_client_v1.models.base_response import BaseResponse from qase.api_client_v1.models.id_response import IdResponse from qase.api_client_v1.models.run_create import RunCreate +from qase.api_client_v1.models.run_external_issues import RunExternalIssues from qase.api_client_v1.models.run_list_response import RunListResponse from qase.api_client_v1.models.run_public import RunPublic from qase.api_client_v1.models.run_public_response import RunPublicResponse from qase.api_client_v1.models.run_response import RunResponse -from qase.api_client_v1.models.runexternal_issues import RunexternalIssues from qase.api_client_v1.models.runupdate import Runupdate from qase.api_client_v1.api_client import ApiClient, RequestSerialized @@ -294,7 +294,9 @@ def _complete_run_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -309,11 +311,12 @@ def _complete_run_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -585,7 +588,9 @@ def _create_run_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -600,11 +605,12 @@ def _create_run_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -886,7 +892,9 @@ def _delete_run_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -901,11 +909,12 @@ def _delete_run_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1187,7 +1196,9 @@ def _get_run_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1206,11 +1217,12 @@ def _get_run_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1583,7 +1595,9 @@ def _get_runs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1632,11 +1646,12 @@ def _get_runs_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1666,7 +1681,7 @@ def _get_runs_serialize( def run_update_external_issue( self, code: Annotated[str, Field(min_length=2, strict=True, max_length=10, description="Code of project, where to search entities.")], - runexternal_issues: RunexternalIssues, + run_external_issues: RunExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1686,8 +1701,8 @@ def run_update_external_issue( :param code: Code of project, where to search entities. (required) :type code: str - :param runexternal_issues: (required) - :type runexternal_issues: RunexternalIssues + :param run_external_issues: (required) + :type run_external_issues: RunExternalIssues :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 @@ -1712,7 +1727,7 @@ def run_update_external_issue( _param = self._run_update_external_issue_serialize( code=code, - runexternal_issues=runexternal_issues, + run_external_issues=run_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1742,7 +1757,7 @@ def run_update_external_issue( def run_update_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.")], - runexternal_issues: RunexternalIssues, + run_external_issues: RunExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1762,8 +1777,8 @@ def run_update_external_issue_with_http_info( :param code: Code of project, where to search entities. (required) :type code: str - :param runexternal_issues: (required) - :type runexternal_issues: RunexternalIssues + :param run_external_issues: (required) + :type run_external_issues: RunExternalIssues :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 @@ -1788,7 +1803,7 @@ def run_update_external_issue_with_http_info( _param = self._run_update_external_issue_serialize( code=code, - runexternal_issues=runexternal_issues, + run_external_issues=run_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1818,7 +1833,7 @@ def run_update_external_issue_with_http_info( def run_update_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.")], - runexternal_issues: RunexternalIssues, + run_external_issues: RunExternalIssues, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1838,8 +1853,8 @@ def run_update_external_issue_without_preload_content( :param code: Code of project, where to search entities. (required) :type code: str - :param runexternal_issues: (required) - :type runexternal_issues: RunexternalIssues + :param run_external_issues: (required) + :type run_external_issues: RunExternalIssues :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 @@ -1864,7 +1879,7 @@ def run_update_external_issue_without_preload_content( _param = self._run_update_external_issue_serialize( code=code, - runexternal_issues=runexternal_issues, + run_external_issues=run_external_issues, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1889,7 +1904,7 @@ def run_update_external_issue_without_preload_content( def _run_update_external_issue_serialize( self, code, - runexternal_issues, + run_external_issues, _request_auth, _content_type, _headers, @@ -1905,7 +1920,9 @@ def _run_update_external_issue_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1915,8 +1932,8 @@ def _run_update_external_issue_serialize( # process the header parameters # process the form parameters # process the body parameter - if runexternal_issues is not None: - _body_params = runexternal_issues + if run_external_issues is not None: + _body_params = run_external_issues @@ -2213,7 +2230,9 @@ def _update_run_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2230,11 +2249,12 @@ def _update_run_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2529,7 +2549,9 @@ def _update_run_publicity_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2546,11 +2568,12 @@ def _update_run_publicity_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/search_api.py b/qase-api-client/src/qase/api_client_v1/api/search_api.py index f1df76c7..6508a2fa 100644 --- a/qase-api-client/src/qase/api_client_v1/api/search_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/search_api.py @@ -293,7 +293,9 @@ def _search_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -316,11 +318,12 @@ def _search_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/qase-api-client/src/qase/api_client_v1/api/shared_parameters_api.py b/qase-api-client/src/qase/api_client_v1/api/shared_parameters_api.py index b47c0234..60b7d2e0 100644 --- a/qase-api-client/src/qase/api_client_v1/api/shared_parameters_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/shared_parameters_api.py @@ -20,11 +20,13 @@ from pydantic import Field, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated +from uuid import UUID from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate from qase.api_client_v1.models.uuid_response import UuidResponse +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 from qase.api_client_v1.api_client import ApiClient, RequestSerialized from qase.api_client_v1.api_response import ApiResponse @@ -274,7 +276,9 @@ def _create_shared_parameter_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -287,11 +291,12 @@ def _create_shared_parameter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -333,7 +338,7 @@ def _create_shared_parameter_serialize( @validate_call def delete_shared_parameter( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -346,7 +351,7 @@ def delete_shared_parameter( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UuidResponse: + ) -> UuidResponse1: """Delete shared parameter Delete shared parameter along with all its usages in test cases and reviews. @@ -384,7 +389,7 @@ def delete_shared_parameter( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -405,7 +410,7 @@ def delete_shared_parameter( @validate_call def delete_shared_parameter_with_http_info( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -418,7 +423,7 @@ def delete_shared_parameter_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UuidResponse]: + ) -> ApiResponse[UuidResponse1]: """Delete shared parameter Delete shared parameter along with all its usages in test cases and reviews. @@ -456,7 +461,7 @@ def delete_shared_parameter_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -477,7 +482,7 @@ def delete_shared_parameter_with_http_info( @validate_call def delete_shared_parameter_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -528,7 +533,7 @@ def delete_shared_parameter_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -560,7 +565,9 @@ def _delete_shared_parameter_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -573,11 +580,12 @@ def _delete_shared_parameter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -606,7 +614,7 @@ def _delete_shared_parameter_serialize( @validate_call def get_shared_parameter( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -677,7 +685,7 @@ def get_shared_parameter( @validate_call def get_shared_parameter_with_http_info( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -748,7 +756,7 @@ def get_shared_parameter_with_http_info( @validate_call def get_shared_parameter_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -830,7 +838,9 @@ def _get_shared_parameter_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -843,11 +853,12 @@ def _get_shared_parameter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1153,7 +1164,9 @@ def _get_shared_parameters_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1184,11 +1197,12 @@ def _get_shared_parameters_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1217,7 +1231,7 @@ def _get_shared_parameters_serialize( @validate_call def update_shared_parameter( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], shared_parameter_update: SharedParameterUpdate, _request_timeout: Union[ None, @@ -1231,7 +1245,7 @@ def update_shared_parameter( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UuidResponse: + ) -> UuidResponse1: """Update shared parameter @@ -1271,7 +1285,7 @@ def update_shared_parameter( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -1292,7 +1306,7 @@ def update_shared_parameter( @validate_call def update_shared_parameter_with_http_info( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], shared_parameter_update: SharedParameterUpdate, _request_timeout: Union[ None, @@ -1306,7 +1320,7 @@ def update_shared_parameter_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UuidResponse]: + ) -> ApiResponse[UuidResponse1]: """Update shared parameter @@ -1346,7 +1360,7 @@ def update_shared_parameter_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -1367,7 +1381,7 @@ def update_shared_parameter_with_http_info( @validate_call def update_shared_parameter_without_preload_content( self, - id: Annotated[StrictStr, Field(description="Identifier.")], + id: Annotated[UUID, Field(description="Identifier.")], shared_parameter_update: SharedParameterUpdate, _request_timeout: Union[ None, @@ -1421,7 +1435,7 @@ def update_shared_parameter_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UuidResponse", + '200': "UuidResponse1", '400': None, '401': None, '403': None, @@ -1454,7 +1468,9 @@ def _update_shared_parameter_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1469,11 +1485,12 @@ def _update_shared_parameter_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/shared_steps_api.py b/qase-api-client/src/qase/api_client_v1/api/shared_steps_api.py index e4646d1a..dbf7cf6e 100644 --- a/qase-api-client/src/qase/api_client_v1/api/shared_steps_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/shared_steps_api.py @@ -290,7 +290,9 @@ def _create_shared_step_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -305,11 +307,12 @@ def _create_shared_step_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -591,7 +594,9 @@ def _delete_shared_step_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -606,11 +611,12 @@ def _delete_shared_step_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -879,7 +885,9 @@ def _get_shared_step_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -894,11 +902,12 @@ def _get_shared_step_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1193,7 +1202,9 @@ def _get_shared_steps_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1218,11 +1229,12 @@ def _get_shared_steps_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1504,7 +1516,9 @@ def _update_shared_step_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1521,11 +1535,12 @@ def _update_shared_step_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/suites_api.py b/qase-api-client/src/qase/api_client_v1/api/suites_api.py index 2518b2be..197cbaff 100644 --- a/qase-api-client/src/qase/api_client_v1/api/suites_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/suites_api.py @@ -291,7 +291,9 @@ def _create_suite_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -306,11 +308,12 @@ def _create_suite_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -605,7 +608,9 @@ def _delete_suite_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -622,11 +627,12 @@ def _delete_suite_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -908,7 +914,9 @@ def _get_suite_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -923,11 +931,12 @@ def _get_suite_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1222,7 +1231,9 @@ def _get_suites_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1247,11 +1258,12 @@ def _get_suites_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -1536,7 +1548,9 @@ def _update_suite_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1553,11 +1567,12 @@ def _update_suite_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-client/src/qase/api_client_v1/api/system_fields_api.py b/qase-api-client/src/qase/api_client_v1/api/system_fields_api.py index 3c5b257a..a3420f9d 100644 --- a/qase-api-client/src/qase/api_client_v1/api/system_fields_api.py +++ b/qase-api-client/src/qase/api_client_v1/api/system_fields_api.py @@ -251,7 +251,9 @@ def _get_system_fields_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -262,11 +264,12 @@ def _get_system_fields_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting diff --git a/qase-api-client/src/qase/api_client_v1/api/users_api.py b/qase-api-client/src/qase/api_client_v1/api/users_api.py new file mode 100644 index 00000000..e5fc9d54 --- /dev/null +++ b/qase-api-client/src/qase/api_client_v1/api/users_api.py @@ -0,0 +1,582 @@ +# 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 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt +from typing import Optional +from typing_extensions import Annotated +from qase.api_client_v1.models.user_list_response import UserListResponse +from qase.api_client_v1.models.user_response import UserResponse + +from qase.api_client_v1.api_client import ApiClient, RequestSerialized +from qase.api_client_v1.api_response import ApiResponse +from qase.api_client_v1.rest import RESTResponseType + + +class UsersApi: + """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_user( + 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, + ) -> UserResponse: + """Get a specific user. + + This method allows to retrieve a specific user. + + :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_user_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': "UserResponse", + } + 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_user_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[UserResponse]: + """Get a specific user. + + This method allows to retrieve a specific user. + + :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_user_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': "UserResponse", + } + 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_user_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 user. + + This method allows to retrieve a specific user. + + :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_user_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': "UserResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _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, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _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` + if 'Accept' not in _header_params: + _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='/user/{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_users( + 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, + ) -> UserListResponse: + """Get all users. + + This method allows to retrieve all users. + + :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_users_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': "UserListResponse", + } + 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_users_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[UserListResponse]: + """Get all users. + + This method allows to retrieve all users. + + :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_users_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': "UserListResponse", + } + 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_users_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 users. + + This method allows to retrieve all users. + + :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_users_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': "UserListResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_users_serialize( + self, + limit, + offset, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _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, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _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` + if 'Accept' not in _header_params: + _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='/user', + 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/qase-api-client/src/qase/api_client_v1/api_client.py b/qase-api-client/src/qase/api_client_v1/api_client.py index 981c1d2a..c40c5b1b 100644 --- a/qase-api-client/src/qase/api_client_v1/api_client.py +++ b/qase-api-client/src/qase/api_client_v1/api_client.py @@ -14,18 +14,19 @@ import datetime -from io import BytesIO - from dateutil.parser import parse from enum import Enum +import decimal import json import mimetypes import os import re import tempfile +import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr from qase.api_client_v1.configuration import Configuration from qase.api_client_v1.api_response import ApiResponse, T as ApiResponseT @@ -68,6 +69,7 @@ class ApiClient: 'bool': bool, 'date': datetime.date, 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, 'object': object, } _pool = None @@ -210,7 +212,8 @@ def param_serialize( post_params, collection_formats ) - post_params.extend(self.files_parameters(files)) + if files: + post_params.extend(self.files_parameters(files)) # auth setting self.update_params_for_auth( @@ -228,7 +231,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -315,7 +318,7 @@ def response_deserialize( 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) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -335,9 +338,11 @@ def sanitize_for_serialization(self, obj): """Builds a JSON POST object. If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() 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 decimal.Decimal return string representation. 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. @@ -347,8 +352,14 @@ def sanitize_for_serialization(self, obj): """ if obj is None: return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -359,6 +370,8 @@ def sanitize_for_serialization(self, obj): ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) elif isinstance(obj, dict): obj_dict = obj @@ -368,28 +381,49 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - obj_dict = obj.to_dict() + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize(self, response_text, response_type): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """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. + :param content_type: content type of response. :return: deserialized object. """ # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) return self.__deserialize(data, response_type) @@ -433,6 +467,8 @@ def __deserialize(self, data, klass): return self.__deserialize_date(data) elif klass == datetime.datetime: return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -489,7 +525,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' @@ -507,36 +543,39 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files=None): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """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])]) - ) - + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue + else: + raise ValueError("Unsupported file value") + 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]: diff --git a/qase-api-client/src/qase/api_client_v1/configuration.py b/qase-api-client/src/qase/api_client_v1/configuration.py index d45a629b..f3e1b09c 100644 --- a/qase-api-client/src/qase/api_client_v1/configuration.py +++ b/qase-api-client/src/qase/api_client_v1/configuration.py @@ -14,14 +14,16 @@ import copy +import http.client as httplib import logging from logging import FileHandler import multiprocessing import sys -from typing import Optional +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union +from typing_extensions import NotRequired, Self + import urllib3 -import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', @@ -29,10 +31,114 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } +ServerVariablesT = Dict[str, str] + +GenericAuthSetting = TypedDict( + "GenericAuthSetting", + { + "type": str, + "in": str, + "key": str, + "value": str, + }, +) + + +OAuth2AuthSetting = TypedDict( + "OAuth2AuthSetting", + { + "type": Literal["oauth2"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +APIKeyAuthSetting = TypedDict( + "APIKeyAuthSetting", + { + "type": Literal["api_key"], + "in": str, + "key": str, + "value": Optional[str], + }, +) + + +BasicAuthSetting = TypedDict( + "BasicAuthSetting", + { + "type": Literal["basic"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": Optional[str], + }, +) + + +BearerFormatAuthSetting = TypedDict( + "BearerFormatAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "format": Literal["JWT"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +BearerAuthSetting = TypedDict( + "BearerAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +HTTPSignatureAuthSetting = TypedDict( + "HTTPSignatureAuthSetting", + { + "type": Literal["http-signature"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": None, + }, +) + + +AuthSettings = TypedDict( + "AuthSettings", + { + "TokenAuth": APIKeyAuthSetting, + }, + total=False, +) + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] + + class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :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. @@ -55,6 +161,9 @@ class Configuration: values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. + :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: @@ -78,16 +187,27 @@ class Configuration: 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: + _default: ClassVar[Optional[Self]] = None + + def __init__( + self, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, + retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, + *, + debug: Optional[bool] = None, + ) -> None: """Constructor """ self._base_path = "https://api.qase.io/v1" if host is None else host @@ -101,6 +221,9 @@ def __init__(self, host=None, self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -144,7 +267,10 @@ def __init__(self, host=None, self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -156,6 +282,10 @@ def __init__(self, host=None, self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ @@ -187,7 +317,7 @@ def __init__(self, host=None, self.safe_chars_for_path_param = '' """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation @@ -205,7 +335,7 @@ def __init__(self, host=None, """date format """ - def __deepcopy__(self, memo): + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -219,11 +349,11 @@ def __deepcopy__(self, memo): result.debug = self.debug return result - def __setattr__(self, name, value): + def __setattr__(self, name: str, value: Any) -> None: object.__setattr__(self, name, value) @classmethod - def set_default(cls, default): + def set_default(cls, default: Optional[Self]) -> None: """Set default instance of configuration. It stores default configuration, which can be @@ -234,7 +364,7 @@ def set_default(cls, default): cls._default = default @classmethod - def get_default_copy(cls): + def get_default_copy(cls) -> Self: """Deprecated. Please use `get_default` instead. Deprecated. Please use `get_default` instead. @@ -244,7 +374,7 @@ def get_default_copy(cls): return cls.get_default() @classmethod - def get_default(cls): + def get_default(cls) -> Self: """Return the default configuration. This method returns newly created, based on default constructor, @@ -254,11 +384,11 @@ def get_default(cls): :return: The configuration object. """ if cls._default is None: - cls._default = Configuration() + cls._default = cls() return cls._default @property - def logger_file(self): + def logger_file(self) -> Optional[str]: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -270,7 +400,7 @@ def logger_file(self): return self.__logger_file @logger_file.setter - def logger_file(self, value): + def logger_file(self, value: Optional[str]) -> None: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -289,7 +419,7 @@ def logger_file(self, value): logger.addHandler(self.logger_file_handler) @property - def debug(self): + def debug(self) -> bool: """Debug status :param value: The debug status, True or False. @@ -298,7 +428,7 @@ def debug(self): return self.__debug @debug.setter - def debug(self, value): + def debug(self, value: bool) -> None: """Debug status :param value: The debug status, True or False. @@ -320,7 +450,7 @@ def debug(self, value): httplib.HTTPConnection.debuglevel = 0 @property - def logger_format(self): + def logger_format(self) -> str: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -331,7 +461,7 @@ def logger_format(self): return self.__logger_format @logger_format.setter - def logger_format(self, value): + def logger_format(self, value: str) -> None: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -342,7 +472,7 @@ def logger_format(self, value): self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier, alias=None): + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -359,7 +489,9 @@ def get_api_key_with_prefix(self, identifier, alias=None): else: return key - def get_basic_auth_token(self): + return None + + def get_basic_auth_token(self) -> Optional[str]: """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. @@ -374,12 +506,12 @@ def get_basic_auth_token(self): basic_auth=username + ':' + password ).get('authorization') - def auth_settings(self): + def auth_settings(self)-> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ - auth = {} + auth: AuthSettings = {} if 'TokenAuth' in self.api_key: auth['TokenAuth'] = { 'type': 'api_key', @@ -391,7 +523,7 @@ def auth_settings(self): } return auth - def to_debug_report(self): + def to_debug_report(self) -> str: """Gets the essential information for debugging. :return: The report for debugging. @@ -403,7 +535,7 @@ def to_debug_report(self): "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -415,7 +547,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, + ) -> str: """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 @@ -455,12 +592,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/qase-api-client/src/qase/api_client_v1/exceptions.py b/qase-api-client/src/qase/api_client_v1/exceptions.py index e3249365..e5b3a887 100644 --- a/qase-api-client/src/qase/api_client_v1/exceptions.py +++ b/qase-api-client/src/qase/api_client_v1/exceptions.py @@ -151,6 +151,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(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) @@ -189,6 +196,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/qase-api-client/src/qase/api_client_v1/models/__init__.py b/qase-api-client/src/qase/api_client_v1/models/__init__.py index 79a187d5..101fd340 100644 --- a/qase-api-client/src/qase/api_client_v1/models/__init__.py +++ b/qase-api-client/src/qase/api_client_v1/models/__init__.py @@ -14,7 +14,187 @@ """ # noqa: E501 -# import models into model package +if __import__("typing").TYPE_CHECKING: + # import models into model package + from qase.api_client_v1.models.attachment import Attachment + from qase.api_client_v1.models.attachment_get import AttachmentGet + from qase.api_client_v1.models.attachment_hash import AttachmentHash + from qase.api_client_v1.models.attachment_list_response import AttachmentListResponse + from qase.api_client_v1.models.attachment_list_response_all_of_result import AttachmentListResponseAllOfResult + from qase.api_client_v1.models.attachment_response import AttachmentResponse + from qase.api_client_v1.models.attachment_uploads_response import AttachmentUploadsResponse + from qase.api_client_v1.models.attachmentupload import Attachmentupload + from qase.api_client_v1.models.author import Author + from qase.api_client_v1.models.author_list_response import AuthorListResponse + from qase.api_client_v1.models.author_list_response_all_of_result import AuthorListResponseAllOfResult + from qase.api_client_v1.models.author_response import AuthorResponse + from qase.api_client_v1.models.base_response import BaseResponse + from qase.api_client_v1.models.bulk200_response import Bulk200Response + from qase.api_client_v1.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult + from qase.api_client_v1.models.configuration import Configuration + from qase.api_client_v1.models.configuration_create import ConfigurationCreate + from qase.api_client_v1.models.configuration_group import ConfigurationGroup + from qase.api_client_v1.models.configuration_group_create import ConfigurationGroupCreate + from qase.api_client_v1.models.configuration_list_response import ConfigurationListResponse + from qase.api_client_v1.models.configuration_list_response_all_of_result import ConfigurationListResponseAllOfResult + from qase.api_client_v1.models.custom_field import CustomField + from qase.api_client_v1.models.custom_field_create import CustomFieldCreate + from qase.api_client_v1.models.custom_field_create_value_inner import CustomFieldCreateValueInner + from qase.api_client_v1.models.custom_field_list_response import CustomFieldListResponse + from qase.api_client_v1.models.custom_field_response import CustomFieldResponse + from qase.api_client_v1.models.custom_field_update import CustomFieldUpdate + from qase.api_client_v1.models.custom_field_value import CustomFieldValue + from qase.api_client_v1.models.custom_fields_response import CustomFieldsResponse + from qase.api_client_v1.models.custom_fields_response_all_of_result import CustomFieldsResponseAllOfResult + from qase.api_client_v1.models.defect import Defect + from qase.api_client_v1.models.defect_create import DefectCreate + from qase.api_client_v1.models.defect_list_response import DefectListResponse + from qase.api_client_v1.models.defect_list_response_all_of_result import DefectListResponseAllOfResult + from qase.api_client_v1.models.defect_query import DefectQuery + from qase.api_client_v1.models.defect_response import DefectResponse + from qase.api_client_v1.models.defect_status import DefectStatus + from qase.api_client_v1.models.defect_update import DefectUpdate + from qase.api_client_v1.models.environment import Environment + from qase.api_client_v1.models.environment_create import EnvironmentCreate + from qase.api_client_v1.models.environment_list_response import EnvironmentListResponse + from qase.api_client_v1.models.environment_list_response_all_of_result import EnvironmentListResponseAllOfResult + from qase.api_client_v1.models.environment_response import EnvironmentResponse + from qase.api_client_v1.models.environment_update import EnvironmentUpdate + from qase.api_client_v1.models.external_issue import ExternalIssue + from qase.api_client_v1.models.external_issue_issues_inner import ExternalIssueIssuesInner + from qase.api_client_v1.models.hash_response import HashResponse + from qase.api_client_v1.models.hash_response_all_of_result import HashResponseAllOfResult + from qase.api_client_v1.models.id_response import IdResponse + from qase.api_client_v1.models.id_response_all_of_result import IdResponseAllOfResult + from qase.api_client_v1.models.milestone import Milestone + from qase.api_client_v1.models.milestone_create import MilestoneCreate + from qase.api_client_v1.models.milestone_list_response import MilestoneListResponse + from qase.api_client_v1.models.milestone_list_response_all_of_result import MilestoneListResponseAllOfResult + from qase.api_client_v1.models.milestone_response import MilestoneResponse + from qase.api_client_v1.models.milestone_update import MilestoneUpdate + from qase.api_client_v1.models.parameter_group import ParameterGroup + from qase.api_client_v1.models.parameter_shared import ParameterShared + from qase.api_client_v1.models.parameter_single import ParameterSingle + from qase.api_client_v1.models.plan import Plan + from qase.api_client_v1.models.plan_create import PlanCreate + from qase.api_client_v1.models.plan_detailed import PlanDetailed + from qase.api_client_v1.models.plan_detailed_all_of_cases import PlanDetailedAllOfCases + from qase.api_client_v1.models.plan_list_response import PlanListResponse + from qase.api_client_v1.models.plan_list_response_all_of_result import PlanListResponseAllOfResult + from qase.api_client_v1.models.plan_query import PlanQuery + from qase.api_client_v1.models.plan_response import PlanResponse + from qase.api_client_v1.models.plan_update import PlanUpdate + from qase.api_client_v1.models.project import Project + from qase.api_client_v1.models.project_access import ProjectAccess + from qase.api_client_v1.models.project_code_response import ProjectCodeResponse + from qase.api_client_v1.models.project_code_response_all_of_result import ProjectCodeResponseAllOfResult + from qase.api_client_v1.models.project_counts import ProjectCounts + from qase.api_client_v1.models.project_counts_defects import ProjectCountsDefects + from qase.api_client_v1.models.project_counts_runs import ProjectCountsRuns + from qase.api_client_v1.models.project_create import ProjectCreate + from qase.api_client_v1.models.project_list_response import ProjectListResponse + from qase.api_client_v1.models.project_list_response_all_of_result import ProjectListResponseAllOfResult + from qase.api_client_v1.models.project_response import ProjectResponse + from qase.api_client_v1.models.qql_defect import QqlDefect + from qase.api_client_v1.models.qql_plan import QqlPlan + from qase.api_client_v1.models.qql_test_case import QqlTestCase + from qase.api_client_v1.models.qql_test_case_params import QqlTestCaseParams + from qase.api_client_v1.models.requirement import Requirement + from qase.api_client_v1.models.requirement_query import RequirementQuery + from qase.api_client_v1.models.response import Response + from qase.api_client_v1.models.result import Result + from qase.api_client_v1.models.result_create import ResultCreate + from qase.api_client_v1.models.result_create_bulk import ResultCreateBulk + from qase.api_client_v1.models.result_create_case import ResultCreateCase + from qase.api_client_v1.models.result_create_response import ResultCreateResponse + from qase.api_client_v1.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult + from qase.api_client_v1.models.result_list_response import ResultListResponse + from qase.api_client_v1.models.result_list_response_all_of_result import ResultListResponseAllOfResult + from qase.api_client_v1.models.result_query import ResultQuery + from qase.api_client_v1.models.result_response import ResultResponse + from qase.api_client_v1.models.result_update import ResultUpdate + from qase.api_client_v1.models.run import Run + from qase.api_client_v1.models.run_create import RunCreate + from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig + from qase.api_client_v1.models.run_environment import RunEnvironment + from qase.api_client_v1.models.run_external_issue import RunExternalIssue + from qase.api_client_v1.models.run_external_issues import RunExternalIssues + from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner + from qase.api_client_v1.models.run_list_response import RunListResponse + from qase.api_client_v1.models.run_list_response_all_of_result import RunListResponseAllOfResult + from qase.api_client_v1.models.run_milestone import RunMilestone + from qase.api_client_v1.models.run_public import RunPublic + from qase.api_client_v1.models.run_public_response import RunPublicResponse + from qase.api_client_v1.models.run_public_response_all_of_result import RunPublicResponseAllOfResult + from qase.api_client_v1.models.run_query import RunQuery + from qase.api_client_v1.models.run_response import RunResponse + from qase.api_client_v1.models.run_stats import RunStats + from qase.api_client_v1.models.runupdate import Runupdate + from qase.api_client_v1.models.search_response import SearchResponse + from qase.api_client_v1.models.search_response_all_of_result import SearchResponseAllOfResult + from qase.api_client_v1.models.search_response_all_of_result_entities import SearchResponseAllOfResultEntities + from qase.api_client_v1.models.shared_parameter import SharedParameter + from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate + from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse + from qase.api_client_v1.models.shared_parameter_list_response_all_of_result import SharedParameterListResponseAllOfResult + from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter + from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse + from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate + from qase.api_client_v1.models.shared_step import SharedStep + from qase.api_client_v1.models.shared_step_content import SharedStepContent + from qase.api_client_v1.models.shared_step_content_create import SharedStepContentCreate + from qase.api_client_v1.models.shared_step_create import SharedStepCreate + from qase.api_client_v1.models.shared_step_list_response import SharedStepListResponse + from qase.api_client_v1.models.shared_step_list_response_all_of_result import SharedStepListResponseAllOfResult + from qase.api_client_v1.models.shared_step_response import SharedStepResponse + from qase.api_client_v1.models.shared_step_update import SharedStepUpdate + from qase.api_client_v1.models.suite import Suite + from qase.api_client_v1.models.suite_create import SuiteCreate + from qase.api_client_v1.models.suite_delete import SuiteDelete + from qase.api_client_v1.models.suite_list_response import SuiteListResponse + from qase.api_client_v1.models.suite_list_response_all_of_result import SuiteListResponseAllOfResult + from qase.api_client_v1.models.suite_response import SuiteResponse + from qase.api_client_v1.models.suite_update import SuiteUpdate + from qase.api_client_v1.models.system_field import SystemField + from qase.api_client_v1.models.system_field_list_response import SystemFieldListResponse + from qase.api_client_v1.models.system_field_option import SystemFieldOption + from qase.api_client_v1.models.tag_value import TagValue + from qase.api_client_v1.models.test_case import TestCase + from qase.api_client_v1.models.test_case_create import TestCaseCreate + from qase.api_client_v1.models.test_case_external_issues import TestCaseExternalIssues + from qase.api_client_v1.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner + from qase.api_client_v1.models.test_case_list_response import TestCaseListResponse + from qase.api_client_v1.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult + from qase.api_client_v1.models.test_case_parameter import TestCaseParameter + from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase + from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate + from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup + from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle + from qase.api_client_v1.models.test_case_params import TestCaseParams + from qase.api_client_v1.models.test_case_query import TestCaseQuery + from qase.api_client_v1.models.test_case_response import TestCaseResponse + from qase.api_client_v1.models.test_case_update import TestCaseUpdate + from qase.api_client_v1.models.test_casebulk import TestCasebulk + from qase.api_client_v1.models.test_casebulk_cases_inner import TestCasebulkCasesInner + from qase.api_client_v1.models.test_step import TestStep + from qase.api_client_v1.models.test_step_create import TestStepCreate + from qase.api_client_v1.models.test_step_result import TestStepResult + from qase.api_client_v1.models.test_step_result_create import TestStepResultCreate + from qase.api_client_v1.models.user import User + from qase.api_client_v1.models.user_list_response import UserListResponse + from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult + from qase.api_client_v1.models.user_response import UserResponse + from qase.api_client_v1.models.uuid_response import UuidResponse + from qase.api_client_v1.models.uuid_response1 import UuidResponse1 + from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import models into model package from qase.api_client_v1.models.attachment import Attachment from qase.api_client_v1.models.attachment_get import AttachmentGet from qase.api_client_v1.models.attachment_hash import AttachmentHash @@ -30,7 +210,7 @@ from qase.api_client_v1.models.base_response import BaseResponse from qase.api_client_v1.models.bulk200_response import Bulk200Response from qase.api_client_v1.models.bulk200_response_all_of_result import Bulk200ResponseAllOfResult -from qase.api_client_v1.models.configuration import ConfigurationModel +from qase.api_client_v1.models.configuration import Configuration from qase.api_client_v1.models.configuration_create import ConfigurationCreate from qase.api_client_v1.models.configuration_group import ConfigurationGroup from qase.api_client_v1.models.configuration_group_create import ConfigurationGroupCreate @@ -112,12 +292,13 @@ from qase.api_client_v1.models.result_query import ResultQuery from qase.api_client_v1.models.result_response import ResultResponse from qase.api_client_v1.models.result_update import ResultUpdate -from qase.api_client_v1.models.resultcreate_bulk import ResultcreateBulk from qase.api_client_v1.models.run import Run from qase.api_client_v1.models.run_create import RunCreate from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig from qase.api_client_v1.models.run_environment import RunEnvironment from qase.api_client_v1.models.run_external_issue import RunExternalIssue +from qase.api_client_v1.models.run_external_issues import RunExternalIssues +from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner from qase.api_client_v1.models.run_list_response import RunListResponse from qase.api_client_v1.models.run_list_response_all_of_result import RunListResponseAllOfResult from qase.api_client_v1.models.run_milestone import RunMilestone @@ -127,8 +308,6 @@ from qase.api_client_v1.models.run_query import RunQuery from qase.api_client_v1.models.run_response import RunResponse from qase.api_client_v1.models.run_stats import RunStats -from qase.api_client_v1.models.runexternal_issues import RunexternalIssues -from qase.api_client_v1.models.runexternal_issues_links_inner import RunexternalIssuesLinksInner from qase.api_client_v1.models.runupdate import Runupdate from qase.api_client_v1.models.search_response import SearchResponse from qase.api_client_v1.models.search_response_all_of_result import SearchResponseAllOfResult @@ -167,19 +346,29 @@ from qase.api_client_v1.models.test_case_list_response_all_of_result import TestCaseListResponseAllOfResult from qase.api_client_v1.models.test_case_parameter import TestCaseParameter from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate from qase.api_client_v1.models.test_case_params import TestCaseParams from qase.api_client_v1.models.test_case_query import TestCaseQuery from qase.api_client_v1.models.test_case_response import TestCaseResponse from qase.api_client_v1.models.test_case_update import TestCaseUpdate from qase.api_client_v1.models.test_casebulk import TestCasebulk from qase.api_client_v1.models.test_casebulk_cases_inner import TestCasebulkCasesInner -from qase.api_client_v1.models.test_caseexternal_issues import TestCaseexternalIssues from qase.api_client_v1.models.test_step import TestStep from qase.api_client_v1.models.test_step_create import TestStepCreate from qase.api_client_v1.models.test_step_result import TestStepResult from qase.api_client_v1.models.test_step_result_create import TestStepResultCreate +from qase.api_client_v1.models.user import User +from qase.api_client_v1.models.user_list_response import UserListResponse +from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult +from qase.api_client_v1.models.user_response import UserResponse from qase.api_client_v1.models.uuid_response import UuidResponse +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-client/src/qase/api_client_v1/models/attachment_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/attachment_list_response_all_of_result.py index 025d2bf4..679a6ac8 100644 --- a/qase-api-client/src/qase/api_client_v1/models/attachment_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/attachment_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/attachment_uploads_response.py b/qase-api-client/src/qase/api_client_v1/models/attachment_uploads_response.py index f3e1d860..6feda257 100644 --- a/qase-api-client/src/qase/api_client_v1/models/attachment_uploads_response.py +++ b/qase-api-client/src/qase/api_client_v1/models/attachment_uploads_response.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_result in self.result: + if _item_result: + _items.append(_item_result.to_dict()) _dict['result'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/author_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/author_list_response_all_of_result.py index d9fb8005..a4e89dcc 100644 --- a/qase-api-client/src/qase/api_client_v1/models/author_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/author_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/configuration_group.py b/qase-api-client/src/qase/api_client_v1/models/configuration_group.py index f5d40570..75157bc2 100644 --- a/qase-api-client/src/qase/api_client_v1/models/configuration_group.py +++ b/qase-api-client/src/qase/api_client_v1/models/configuration_group.py @@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_configurations in self.configurations: + if _item_configurations: + _items.append(_item_configurations.to_dict()) _dict['configurations'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/configuration_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/configuration_list_response_all_of_result.py index 66e3f93a..8573a7a2 100644 --- a/qase-api-client/src/qase/api_client_v1/models/configuration_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/configuration_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/custom_field_create.py b/qase-api-client/src/qase/api_client_v1/models/custom_field_create.py index 48ec1569..89a1453e 100644 --- a/qase-api-client/src/qase/api_client_v1/models/custom_field_create.py +++ b/qase-api-client/src/qase/api_client_v1/models/custom_field_create.py @@ -84,9 +84,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_value in self.value: + if _item_value: + _items.append(_item_value.to_dict()) _dict['value'] = _items # set to None if value (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/custom_field_update.py b/qase-api-client/src/qase/api_client_v1/models/custom_field_update.py index 44cd44f6..ce4ba551 100644 --- a/qase-api-client/src/qase/api_client_v1/models/custom_field_update.py +++ b/qase-api-client/src/qase/api_client_v1/models/custom_field_update.py @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_value in self.value: + if _item_value: + _items.append(_item_value.to_dict()) _dict['value'] = _items # set to None if value (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/custom_fields_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/custom_fields_response_all_of_result.py index 3974113b..b3858316 100644 --- a/qase-api-client/src/qase/api_client_v1/models/custom_fields_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/custom_fields_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/defect.py b/qase-api-client/src/qase/api_client_v1/models/defect.py index d6dd4ed2..5d2b473f 100644 --- a/qase-api-client/src/qase/api_client_v1/models/defect.py +++ b/qase-api-client/src/qase/api_client_v1/models/defect.py @@ -94,23 +94,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if milestone_id (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/defect_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/defect_list_response_all_of_result.py index 97efb3e8..eb2ec60d 100644 --- a/qase-api-client/src/qase/api_client_v1/models/defect_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/defect_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/defect_query.py b/qase-api-client/src/qase/api_client_v1/models/defect_query.py index d9d68cbe..c9aeae44 100644 --- a/qase-api-client/src/qase/api_client_v1/models/defect_query.py +++ b/qase-api-client/src/qase/api_client_v1/models/defect_query.py @@ -91,23 +91,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if milestone_id (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/environment_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/environment_list_response_all_of_result.py index d1464f9a..72c4e5d4 100644 --- a/qase-api-client/src/qase/api_client_v1/models/environment_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/environment_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/external_issue.py b/qase-api-client/src/qase/api_client_v1/models/external_issue.py index 6caf07a6..f5d35ebc 100644 --- a/qase-api-client/src/qase/api_client_v1/models/external_issue.py +++ b/qase-api-client/src/qase/api_client_v1/models/external_issue.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_issues in self.issues: + if _item_issues: + _items.append(_item_issues.to_dict()) _dict['issues'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/milestone_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/milestone_list_response_all_of_result.py index 6d7ac203..4f26ff18 100644 --- a/qase-api-client/src/qase/api_client_v1/models/milestone_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/milestone_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/parameter_group.py b/qase-api-client/src/qase/api_client_v1/models/parameter_group.py index 3bfde349..21353c69 100644 --- a/qase-api-client/src/qase/api_client_v1/models/parameter_group.py +++ b/qase-api-client/src/qase/api_client_v1/models/parameter_group.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in items (list) _items = [] if self.items: - for _item in self.items: - if _item: - _items.append(_item.to_dict()) + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) _dict['items'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/parameter_shared.py b/qase-api-client/src/qase/api_client_v1/models/parameter_shared.py index aa6dc3e1..dfa062cc 100644 --- a/qase-api-client/src/qase/api_client_v1/models/parameter_shared.py +++ b/qase-api-client/src/qase/api_client_v1/models/parameter_shared.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class ParameterShared(BaseModel): """ Shared parameter """ # noqa: E501 - shared_id: StrictStr + shared_id: UUID __properties: ClassVar[List[str]] = ["shared_id"] model_config = ConfigDict( diff --git a/qase-api-client/src/qase/api_client_v1/models/plan_detailed.py b/qase-api-client/src/qase/api_client_v1/models/plan_detailed.py index 98f98080..09790191 100644 --- a/qase-api-client/src/qase/api_client_v1/models/plan_detailed.py +++ b/qase-api-client/src/qase/api_client_v1/models/plan_detailed.py @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_cases in self.cases: + if _item_cases: + _items.append(_item_cases.to_dict()) _dict['cases'] = _items # set to None if description (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/plan_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/plan_list_response_all_of_result.py index 040c6e88..1e8674c6 100644 --- a/qase-api-client/src/qase/api_client_v1/models/plan_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/plan_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/project_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/project_list_response_all_of_result.py index 09cb3bd0..5ac503af 100644 --- a/qase-api-client/src/qase/api_client_v1/models/project_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/project_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/qql_defect.py b/qase-api-client/src/qase/api_client_v1/models/qql_defect.py index 65967946..b89e1227 100644 --- a/qase-api-client/src/qase/api_client_v1/models/qql_defect.py +++ b/qase-api-client/src/qase/api_client_v1/models/qql_defect.py @@ -91,23 +91,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if milestone_id (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/qql_test_case.py b/qase-api-client/src/qase/api_client_v1/models/qql_test_case.py index ae184466..f67967ad 100644 --- a/qase-api-client/src/qase/api_client_v1/models/qql_test_case.py +++ b/qase-api-client/src/qase/api_client_v1/models/qql_test_case.py @@ -105,23 +105,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of params if self.params: @@ -129,9 +129,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if description (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/qql_test_case_params.py b/qase-api-client/src/qase/api_client_v1/models/qql_test_case_params.py index d469b0f2..c53b0e33 100644 --- a/qase-api-client/src/qase/api_client_v1/models/qql_test_case_params.py +++ b/qase-api-client/src/qase/api_client_v1/models/qql_test_case_params.py @@ -20,7 +20,7 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, Dict, List, Optional -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field @@ -39,7 +39,7 @@ class QqlTestCaseParams(BaseModel): actual_instance: Optional[Union[List[object], object]] = None else: actual_instance: Any = None - any_of_schemas: List[str] = Field(default=Literal["List[object]", "object"]) + any_of_schemas: Set[str] = { "List[object]", "object" } model_config = { "validate_assignment": True, diff --git a/qase-api-client/src/qase/api_client_v1/models/result.py b/qase-api-client/src/qase/api_client_v1/models/result.py index 1a9806a8..a1a4c356 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result.py +++ b/qase-api-client/src/qase/api_client_v1/models/result.py @@ -86,16 +86,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict['attachments'] = _items # set to None if comment (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/result_create.py b/qase-api-client/src/qase/api_client_v1/models/result_create.py index 106eea39..1df2bdeb 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result_create.py +++ b/qase-api-client/src/qase/api_client_v1/models/result_create.py @@ -91,9 +91,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # set to None if start_time (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/result_create_bulk.py b/qase-api-client/src/qase/api_client_v1/models/result_create_bulk.py index 9b13bbff..b7932370 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result_create_bulk.py +++ b/qase-api-client/src/qase/api_client_v1/models/result_create_bulk.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) _dict['results'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/result_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/result_list_response_all_of_result.py index 0df365a0..055d26f5 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/result_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/result_query.py b/qase-api-client/src/qase/api_client_v1/models/result_query.py index 0131a958..65ef11a9 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result_query.py +++ b/qase-api-client/src/qase/api_client_v1/models/result_query.py @@ -86,16 +86,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict['attachments'] = _items # set to None if comment (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/result_update.py b/qase-api-client/src/qase/api_client_v1/models/result_update.py index 92d58b44..740074cf 100644 --- a/qase-api-client/src/qase/api_client_v1/models/result_update.py +++ b/qase-api-client/src/qase/api_client_v1/models/result_update.py @@ -90,9 +90,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # set to None if time_ms (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/run.py b/qase-api-client/src/qase/api_client_v1/models/run.py index 32bb79ea..8f6b39ca 100644 --- a/qase-api-client/src/qase/api_client_v1/models/run.py +++ b/qase-api-client/src/qase/api_client_v1/models/run.py @@ -107,16 +107,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # override the default output from pydantic by calling `to_dict()` of external_issue if self.external_issue: diff --git a/qase-api-client/src/qase/api_client_v1/models/runexternal_issues.py b/qase-api-client/src/qase/api_client_v1/models/run_external_issues.py similarity index 84% rename from qase-api-client/src/qase/api_client_v1/models/runexternal_issues.py rename to qase-api-client/src/qase/api_client_v1/models/run_external_issues.py index e6245206..94b628ac 100644 --- a/qase-api-client/src/qase/api_client_v1/models/runexternal_issues.py +++ b/qase-api-client/src/qase/api_client_v1/models/run_external_issues.py @@ -20,16 +20,16 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from qase.api_client_v1.models.runexternal_issues_links_inner import RunexternalIssuesLinksInner +from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner from typing import Optional, Set from typing_extensions import Self -class RunexternalIssues(BaseModel): +class RunExternalIssues(BaseModel): """ - RunexternalIssues + RunExternalIssues """ # noqa: E501 type: StrictStr - links: List[RunexternalIssuesLinksInner] = Field(description="Array of external issue links. Each test run (run_id) can have only one external issue link.") + links: List[RunExternalIssuesLinksInner] = Field(description="Array of external issue links. Each test run (run_id) can have only one external issue link.") __properties: ClassVar[List[str]] = ["type", "links"] @field_validator('type') @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RunexternalIssues from a JSON string""" + """Create an instance of RunExternalIssues from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,15 +81,15 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_links in self.links: + if _item_links: + _items.append(_item_links.to_dict()) _dict['links'] = _items return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RunexternalIssues from a dict""" + """Create an instance of RunExternalIssues from a dict""" if obj is None: return None @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "type": obj.get("type"), - "links": [RunexternalIssuesLinksInner.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "links": [RunExternalIssuesLinksInner.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/runexternal_issues_links_inner.py b/qase-api-client/src/qase/api_client_v1/models/run_external_issues_links_inner.py similarity index 93% rename from qase-api-client/src/qase/api_client_v1/models/runexternal_issues_links_inner.py rename to qase-api-client/src/qase/api_client_v1/models/run_external_issues_links_inner.py index b10e9740..b83a80a0 100644 --- a/qase-api-client/src/qase/api_client_v1/models/runexternal_issues_links_inner.py +++ b/qase-api-client/src/qase/api_client_v1/models/run_external_issues_links_inner.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class RunexternalIssuesLinksInner(BaseModel): +class RunExternalIssuesLinksInner(BaseModel): """ - RunexternalIssuesLinksInner + RunExternalIssuesLinksInner """ # noqa: E501 run_id: StrictInt external_issue: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="An external issue identifier, e.g. \"PROJ-1234\". Or null if you want to remove the link.") @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RunexternalIssuesLinksInner from a JSON string""" + """Create an instance of RunExternalIssuesLinksInner from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RunexternalIssuesLinksInner from a dict""" + """Create an instance of RunExternalIssuesLinksInner from a dict""" if obj is None: return None diff --git a/qase-api-client/src/qase/api_client_v1/models/run_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/run_list_response_all_of_result.py index 587e9890..8722e2bf 100644 --- a/qase-api-client/src/qase/api_client_v1/models/run_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/run_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/run_query.py b/qase-api-client/src/qase/api_client_v1/models/run_query.py index 1f7f71ea..6e31b499 100644 --- a/qase-api-client/src/qase/api_client_v1/models/run_query.py +++ b/qase-api-client/src/qase/api_client_v1/models/run_query.py @@ -104,16 +104,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if description (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result.py index 266e5440..1f37cc47 100644 --- a/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result_entities.py b/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result_entities.py index 2e5e1879..82900e1a 100644 --- a/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result_entities.py +++ b/qase-api-client/src/qase/api_client_v1/models/search_response_all_of_result_entities.py @@ -25,7 +25,7 @@ from qase.api_client_v1.models.run_query import RunQuery from qase.api_client_v1.models.test_case_query import TestCaseQuery from pydantic import StrictStr, Field -from typing import Union, List, Optional, Dict +from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self SEARCHRESPONSEALLOFRESULTENTITIES_ONE_OF_SCHEMAS = ["DefectQuery", "PlanQuery", "RequirementQuery", "ResultQuery", "RunQuery", "TestCaseQuery"] @@ -47,7 +47,7 @@ class SearchResponseAllOfResultEntities(BaseModel): # data type: PlanQuery oneof_schema_6_validator: Optional[PlanQuery] = None actual_instance: Optional[Union[DefectQuery, PlanQuery, RequirementQuery, ResultQuery, RunQuery, TestCaseQuery]] = None - one_of_schemas: List[str] = Field(default=Literal["DefectQuery", "PlanQuery", "RequirementQuery", "ResultQuery", "RunQuery", "TestCaseQuery"]) + one_of_schemas: Set[str] = { "DefectQuery", "PlanQuery", "RequirementQuery", "ResultQuery", "RunQuery", "TestCaseQuery" } model_config = ConfigDict( validate_assignment=True, diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_parameter.py b/qase-api-client/src/qase/api_client_v1/models/shared_parameter.py index 51e5eb09..2ad8b2fb 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_parameter.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_parameter.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated +from uuid import UUID from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class SharedParameter(BaseModel): """ SharedParameter """ # noqa: E501 - id: StrictStr + id: UUID title: Annotated[str, Field(strict=True, max_length=255)] type: StrictStr project_codes: List[StrictStr] diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_parameter_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/shared_parameter_list_response_all_of_result.py index d6db0a82..6df583d9 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_parameter_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_parameter_list_response_all_of_result.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_parameter_parameter.py b/qase-api-client/src/qase/api_client_v1/models/shared_parameter_parameter.py index 79ffd3d3..3c2a0895 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_parameter_parameter.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_parameter_parameter.py @@ -21,7 +21,7 @@ from typing_extensions import Annotated from qase.api_client_v1.models.parameter_single import ParameterSingle from pydantic import StrictStr, Field -from typing import Union, List, Optional, Dict +from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self SHAREDPARAMETERPARAMETER_ONE_OF_SCHEMAS = ["List[ParameterSingle]"] @@ -35,7 +35,7 @@ class SharedParameterParameter(BaseModel): # data type: List[ParameterSingle] oneof_schema_2_validator: Optional[Annotated[List[ParameterSingle], Field(min_length=2)]] = Field(default=None, description="Group parameter") actual_instance: Optional[Union[List[ParameterSingle]]] = None - one_of_schemas: List[str] = Field(default=Literal["List[ParameterSingle]"]) + one_of_schemas: Set[str] = { "List[ParameterSingle]" } model_config = ConfigDict( validate_assignment=True, diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_step.py b/qase-api-client/src/qase/api_client_v1/models/shared_step.py index c7a80af6..90d03879 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_step.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_step.py @@ -85,9 +85,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_step_content.py b/qase-api-client/src/qase/api_client_v1/models/shared_step_content.py index 0a5fc5ba..b0ff4eb9 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_step_content.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_step_content.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict['attachments'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_step_create.py b/qase-api-client/src/qase/api_client_v1/models/shared_step_create.py index fda4f902..cda3f3d5 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_step_create.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_step_create.py @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_step_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/shared_step_list_response_all_of_result.py index abf7b224..409e149c 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_step_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_step_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/shared_step_update.py b/qase-api-client/src/qase/api_client_v1/models/shared_step_update.py index 974b1b43..5804ec68 100644 --- a/qase-api-client/src/qase/api_client_v1/models/shared_step_update.py +++ b/qase-api-client/src/qase/api_client_v1/models/shared_step_update.py @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/suite_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/suite_list_response_all_of_result.py index 3f82bad5..15e8d175 100644 --- a/qase-api-client/src/qase/api_client_v1/models/suite_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/suite_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/system_field.py b/qase-api-client/src/qase/api_client_v1/models/system_field.py index 3b6a7d67..ba45b6f3 100644 --- a/qase-api-client/src/qase/api_client_v1/models/system_field.py +++ b/qase-api-client/src/qase/api_client_v1/models/system_field.py @@ -79,9 +79,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_options in self.options: + if _item_options: + _items.append(_item_options.to_dict()) _dict['options'] = _items # set to None if default_value (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/system_field_list_response.py b/qase-api-client/src/qase/api_client_v1/models/system_field_list_response.py index bd61de54..ae3c05b7 100644 --- a/qase-api-client/src/qase/api_client_v1/models/system_field_list_response.py +++ b/qase-api-client/src/qase/api_client_v1/models/system_field_list_response.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_result in self.result: + if _item_result: + _items.append(_item_result.to_dict()) _dict['result'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case.py b/qase-api-client/src/qase/api_client_v1/models/test_case.py index bd24d3a8..13ee1cc6 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case.py @@ -110,23 +110,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of params if self.params: @@ -134,23 +134,23 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) _items = [] if self.parameters: - for _item in self.parameters: - if _item: - _items.append(_item.to_dict()) + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) _dict['parameters'] = _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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.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()) + for _item_external_issues in self.external_issues: + if _item_external_issues: + _items.append(_item_external_issues.to_dict()) _dict['external_issues'] = _items # set to None if description (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_create.py b/qase-api-client/src/qase/api_client_v1/models/test_case_create.py index ebd59ee6..245ec63a 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_create.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_create.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate from qase.api_client_v1.models.test_step_create import TestStepCreate from typing import Optional, Set from typing_extensions import Self @@ -48,7 +48,7 @@ class TestCaseCreate(BaseModel): steps: Optional[List[TestStepCreate]] = None tags: Optional[List[StrictStr]] = None params: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Deprecated, use `parameters` instead.") - parameters: Optional[List[TestCaseParametercreate]] = None + parameters: Optional[List[TestCaseParameterCreate]] = 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 @@ -96,16 +96,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) _items = [] if self.parameters: - for _item in self.parameters: - if _item: - _items.append(_item.to_dict()) + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) _dict['parameters'] = _items # set to None if params (nullable) is None # and model_fields_set contains the field @@ -147,7 +147,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "steps": [TestStepCreate.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, "tags": obj.get("tags"), "params": obj.get("params"), - "parameters": [TestCaseParametercreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "parameters": [TestCaseParameterCreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, "custom_field": obj.get("custom_field"), "created_at": obj.get("created_at"), "updated_at": obj.get("updated_at") diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_external_issues.py b/qase-api-client/src/qase/api_client_v1/models/test_case_external_issues.py index e2e52fa3..2d462a05 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_external_issues.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_external_issues.py @@ -81,9 +81,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_links in self.links: + if _item_links: + _items.append(_item_links.to_dict()) _dict['links'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_list_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/test_case_list_response_all_of_result.py index 59507c07..c75ef11f 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_list_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_list_response_all_of_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) _dict['entities'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter.py b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter.py index f6faaca5..798cbfa7 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter.py @@ -21,7 +21,7 @@ from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle from pydantic import StrictStr, Field -from typing import Union, List, Optional, Dict +from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self TESTCASEPARAMETER_ONE_OF_SCHEMAS = ["TestCaseParameterGroup", "TestCaseParameterSingle"] @@ -35,7 +35,7 @@ class TestCaseParameter(BaseModel): # data type: TestCaseParameterGroup oneof_schema_2_validator: Optional[TestCaseParameterGroup] = None actual_instance: Optional[Union[TestCaseParameterGroup, TestCaseParameterSingle]] = None - one_of_schemas: List[str] = Field(default=Literal["TestCaseParameterGroup", "TestCaseParameterSingle"]) + one_of_schemas: Set[str] = { "TestCaseParameterGroup", "TestCaseParameterSingle" } model_config = ConfigDict( validate_assignment=True, diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_base.py b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_base.py index e1ac6df9..eb332965 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_base.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_base.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from qase.api_client_v1.models.parameter_single import ParameterSingle +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -28,10 +28,9 @@ class TestCaseParameterBase(BaseModel): """ TestCaseParameterBase """ # noqa: E501 - shared_id: Optional[StrictStr] = None + shared_id: Optional[UUID] = None type: StrictStr - items: List[ParameterSingle] - __properties: ClassVar[List[str]] = ["shared_id", "type", "items"] + __properties: ClassVar[List[str]] = ["shared_id", "type"] model_config = ConfigDict( populate_by_name=True, @@ -72,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in items (list) - _items = [] - if self.items: - for _item in self.items: - if _item: - _items.append(_item.to_dict()) - _dict['items'] = _items # set to None if shared_id (nullable) is None # and model_fields_set contains the field if self.shared_id is None and "shared_id" in self.model_fields_set: @@ -97,8 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "shared_id": obj.get("shared_id"), - "type": obj.get("type"), - "items": [ParameterSingle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + "type": obj.get("type") }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_parametercreate.py b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_create.py similarity index 91% rename from qase-api-client/src/qase/api_client_v1/models/test_case_parametercreate.py rename to qase-api-client/src/qase/api_client_v1/models/test_case_parameter_create.py index a08698ca..074f1444 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_parametercreate.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_create.py @@ -22,14 +22,14 @@ from qase.api_client_v1.models.parameter_shared import ParameterShared from qase.api_client_v1.models.parameter_single import ParameterSingle from pydantic import StrictStr, Field -from typing import Union, List, Optional, Dict +from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self TESTCASEPARAMETERCREATE_ONE_OF_SCHEMAS = ["ParameterGroup", "ParameterShared", "ParameterSingle"] -class TestCaseParametercreate(BaseModel): +class TestCaseParameterCreate(BaseModel): """ - TestCaseParametercreate + TestCaseParameterCreate """ # data type: ParameterShared oneof_schema_1_validator: Optional[ParameterShared] = None @@ -38,7 +38,7 @@ class TestCaseParametercreate(BaseModel): # data type: ParameterGroup oneof_schema_3_validator: Optional[ParameterGroup] = None actual_instance: Optional[Union[ParameterGroup, ParameterShared, ParameterSingle]] = None - one_of_schemas: List[str] = Field(default=Literal["ParameterGroup", "ParameterShared", "ParameterSingle"]) + one_of_schemas: Set[str] = { "ParameterGroup", "ParameterShared", "ParameterSingle" } model_config = ConfigDict( validate_assignment=True, @@ -58,7 +58,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_oneof(cls, v): - instance = TestCaseParametercreate.model_construct() + instance = TestCaseParameterCreate.model_construct() error_messages = [] match = 0 # validate data type: ParameterShared @@ -78,10 +78,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in TestCaseParametercreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in TestCaseParameterCreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in TestCaseParametercreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in TestCaseParameterCreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) else: return v @@ -117,10 +117,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into TestCaseParametercreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into TestCaseParameterCreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into TestCaseParametercreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into TestCaseParameterCreate with oneOf schemas: ParameterGroup, ParameterShared, ParameterSingle. Details: " + ", ".join(error_messages)) else: return instance diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_group.py b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_group.py index 3545d5a8..f2ea86c9 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_group.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_group.py @@ -18,8 +18,11 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from qase.api_client_v1.models.parameter_single import ParameterSingle from typing import Optional, Set from typing_extensions import Self @@ -27,9 +30,9 @@ class TestCaseParameterGroup(BaseModel): """ TestCaseParameterGroup """ # noqa: E501 - shared_id: Optional[StrictStr] = None + shared_id: Optional[UUID] = None type: StrictStr - items: Dict[str, Any] + items: Annotated[List[ParameterSingle], Field(min_length=2)] __properties: ClassVar[List[str]] = ["shared_id", "type", "items"] @field_validator('type') @@ -78,6 +81,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items # set to None if shared_id (nullable) is None # and model_fields_set contains the field if self.shared_id is None and "shared_id" in self.model_fields_set: @@ -97,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "shared_id": obj.get("shared_id"), "type": obj.get("type"), - "items": obj.get("items") + "items": [ParameterSingle.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_single.py b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_single.py index ead72703..b66b217e 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_single.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_parameter_single.py @@ -20,6 +20,8 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from qase.api_client_v1.models.parameter_single import ParameterSingle from typing import Optional, Set from typing_extensions import Self @@ -27,10 +29,10 @@ class TestCaseParameterSingle(BaseModel): """ TestCaseParameterSingle """ # noqa: E501 - shared_id: Optional[StrictStr] = None + shared_id: Optional[UUID] = None type: StrictStr - items: Dict[str, Any] - __properties: ClassVar[List[str]] = ["shared_id", "type", "items"] + item: ParameterSingle + __properties: ClassVar[List[str]] = ["shared_id", "type", "item"] @field_validator('type') def type_validate_enum(cls, value): @@ -78,6 +80,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of item + if self.item: + _dict['item'] = self.item.to_dict() # set to None if shared_id (nullable) is None # and model_fields_set contains the field if self.shared_id is None and "shared_id" in self.model_fields_set: @@ -97,7 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "shared_id": obj.get("shared_id"), "type": obj.get("type"), - "items": obj.get("items") + "item": ParameterSingle.from_dict(obj["item"]) if obj.get("item") is not None else None }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_params.py b/qase-api-client/src/qase/api_client_v1/models/test_case_params.py index 8bf05d38..df92288a 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_params.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_params.py @@ -20,7 +20,7 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, Dict, List, Optional -from typing import Union, Any, List, TYPE_CHECKING, Optional, Dict +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field @@ -39,7 +39,7 @@ class TestCaseParams(BaseModel): actual_instance: Optional[Union[List[object], object]] = None else: actual_instance: Any = None - any_of_schemas: List[str] = Field(default=Literal["List[object]", "object"]) + any_of_schemas: Set[str] = { "List[object]", "object" } model_config = { "validate_assignment": True, diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_query.py b/qase-api-client/src/qase/api_client_v1/models/test_case_query.py index c84847f4..750ec719 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_query.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_query.py @@ -105,23 +105,23 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_custom_fields in self.custom_fields: + if _item_custom_fields: + _items.append(_item_custom_fields.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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of params if self.params: @@ -129,9 +129,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_tags in self.tags: + if _item_tags: + _items.append(_item_tags.to_dict()) _dict['tags'] = _items # set to None if description (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/test_case_update.py b/qase-api-client/src/qase/api_client_v1/models/test_case_update.py index 9a96db70..f3e96531 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_case_update.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_case_update.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate from qase.api_client_v1.models.test_step_create import TestStepCreate from typing import Optional, Set from typing_extensions import Self @@ -48,7 +48,7 @@ class TestCaseUpdate(BaseModel): steps: Optional[List[TestStepCreate]] = None tags: Optional[List[StrictStr]] = None params: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Deprecated, use `parameters` instead.") - parameters: Optional[List[TestCaseParametercreate]] = None + parameters: Optional[List[TestCaseParameterCreate]] = 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", "parameters", "custom_field"] @@ -94,16 +94,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) _items = [] if self.parameters: - for _item in self.parameters: - if _item: - _items.append(_item.to_dict()) + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) _dict['parameters'] = _items # set to None if params (nullable) is None # and model_fields_set contains the field @@ -145,7 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "steps": [TestStepCreate.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, "tags": obj.get("tags"), "params": obj.get("params"), - "parameters": [TestCaseParametercreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "parameters": [TestCaseParameterCreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, "custom_field": obj.get("custom_field") }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/test_casebulk.py b/qase-api-client/src/qase/api_client_v1/models/test_casebulk.py index 3d45bd86..6bc93b8f 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_casebulk.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_casebulk.py @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_cases in self.cases: + if _item_cases: + _items.append(_item_cases.to_dict()) _dict['cases'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/test_casebulk_cases_inner.py b/qase-api-client/src/qase/api_client_v1/models/test_casebulk_cases_inner.py index 7dc2fd6f..d1151bbd 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_casebulk_cases_inner.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_casebulk_cases_inner.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from qase.api_client_v1.models.test_case_parametercreate import TestCaseParametercreate +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate from qase.api_client_v1.models.test_step_create import TestStepCreate from typing import Optional, Set from typing_extensions import Self @@ -48,7 +48,7 @@ class TestCasebulkCasesInner(BaseModel): steps: Optional[List[TestStepCreate]] = None tags: Optional[List[StrictStr]] = None params: Optional[Dict[str, List[StrictStr]]] = Field(default=None, description="Deprecated, use `parameters` instead.") - parameters: Optional[List[TestCaseParametercreate]] = None + parameters: Optional[List[TestCaseParameterCreate]] = 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 @@ -97,16 +97,16 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of each item in parameters (list) _items = [] if self.parameters: - for _item in self.parameters: - if _item: - _items.append(_item.to_dict()) + for _item_parameters in self.parameters: + if _item_parameters: + _items.append(_item_parameters.to_dict()) _dict['parameters'] = _items # set to None if params (nullable) is None # and model_fields_set contains the field @@ -153,7 +153,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "steps": [TestStepCreate.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, "tags": obj.get("tags"), "params": obj.get("params"), - "parameters": [TestCaseParametercreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "parameters": [TestCaseParameterCreate.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, "custom_field": obj.get("custom_field"), "created_at": obj.get("created_at"), "updated_at": obj.get("updated_at"), diff --git a/qase-api-client/src/qase/api_client_v1/models/test_step.py b/qase-api-client/src/qase/api_client_v1/models/test_step.py index 29138e1a..4c8f18ff 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_step.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_step.py @@ -81,9 +81,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict['attachments'] = _items # set to None if shared_step_hash (nullable) is None # and model_fields_set contains the field diff --git a/qase-api-client/src/qase/api_client_v1/models/test_step_result.py b/qase-api-client/src/qase/api_client_v1/models/test_step_result.py index 437cd079..a9867796 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_step_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/test_step_result.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_attachments in self.attachments: + if _item_attachments: + _items.append(_item_attachments.to_dict()) _dict['attachments'] = _items return _dict diff --git a/qase-api-client/src/qase/api_client_v1/models/user.py b/qase-api-client/src/qase/api_client_v1/models/user.py new file mode 100644 index 00000000..1754b8d5 --- /dev/null +++ b/qase-api-client/src/qase/api_client_v1/models/user.py @@ -0,0 +1,96 @@ +# 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 pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class User(BaseModel): + """ + User + """ # noqa: E501 + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + email: Optional[StrictStr] = None + title: Optional[StrictStr] = None + status: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["id", "name", "email", "title", "status"] + + model_config = ConfigDict( + 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) -> Optional[Self]: + """Create an instance of User 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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of User 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"), + "name": obj.get("name"), + "email": obj.get("email"), + "title": obj.get("title"), + "status": obj.get("status") + }) + return _obj + + diff --git a/qase-api-client/src/qase/api_client_v1/models/resultcreate_bulk.py b/qase-api-client/src/qase/api_client_v1/models/user_list_response.py similarity index 70% rename from qase-api-client/src/qase/api_client_v1/models/resultcreate_bulk.py rename to qase-api-client/src/qase/api_client_v1/models/user_list_response.py index 8a14db4f..9db41c17 100644 --- a/qase-api-client/src/qase/api_client_v1/models/resultcreate_bulk.py +++ b/qase-api-client/src/qase/api_client_v1/models/user_list_response.py @@ -18,19 +18,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated -from qase.api_client_v1.models.result_create import ResultCreate +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult from typing import Optional, Set from typing_extensions import Self -class ResultcreateBulk(BaseModel): +class UserListResponse(BaseModel): """ - ResultcreateBulk + UserListResponse """ # noqa: E501 - results: Annotated[List[ResultCreate], Field(max_length=2000)] - __properties: ClassVar[List[str]] = ["results"] + status: Optional[StrictBool] = None + result: Optional[UserListResponseAllOfResult] = None + __properties: ClassVar[List[str]] = ["status", "result"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ResultcreateBulk from a JSON string""" + """Create an instance of UserListResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -71,18 +71,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, 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 + # 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: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ResultcreateBulk from a dict""" + """Create an instance of UserListResponse from a dict""" if obj is None: return None @@ -90,7 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "results": [ResultCreate.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None + "status": obj.get("status"), + "result": UserListResponseAllOfResult.from_dict(obj["result"]) if obj.get("result") is not None else None }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/test_caseexternal_issues.py b/qase-api-client/src/qase/api_client_v1/models/user_list_response_all_of_result.py similarity index 63% rename from qase-api-client/src/qase/api_client_v1/models/test_caseexternal_issues.py rename to qase-api-client/src/qase/api_client_v1/models/user_list_response_all_of_result.py index 65ae9218..c4fad2d2 100644 --- a/qase-api-client/src/qase/api_client_v1/models/test_caseexternal_issues.py +++ b/qase-api-client/src/qase/api_client_v1/models/user_list_response_all_of_result.py @@ -18,26 +18,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List -from qase.api_client_v1.models.test_case_external_issues_links_inner import TestCaseExternalIssuesLinksInner +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from qase.api_client_v1.models.user import User from typing import Optional, Set from typing_extensions import Self -class TestCaseexternalIssues(BaseModel): +class UserListResponseAllOfResult(BaseModel): """ - TestCaseexternalIssues + UserListResponseAllOfResult """ # 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 set(['jira-cloud', 'jira-server']): - raise ValueError("must be one of enum values ('jira-cloud', 'jira-server')") - return value + total: Optional[StrictInt] = None + filtered: Optional[StrictInt] = None + count: Optional[StrictInt] = None + entities: Optional[List[User]] = None + __properties: ClassVar[List[str]] = ["total", "filtered", "count", "entities"] model_config = ConfigDict( populate_by_name=True, @@ -57,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TestCaseexternalIssues from a JSON string""" + """Create an instance of UserListResponseAllOfResult from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -78,18 +73,18 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in links (list) + # override the default output from pydantic by calling `to_dict()` of each item in entities (list) _items = [] - if self.links: - for _item in self.links: - if _item: - _items.append(_item.to_dict()) - _dict['links'] = _items + if self.entities: + for _item_entities in self.entities: + if _item_entities: + _items.append(_item_entities.to_dict()) + _dict['entities'] = _items return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TestCaseexternalIssues from a dict""" + """Create an instance of UserListResponseAllOfResult from a dict""" if obj is None: return None @@ -97,8 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "type": obj.get("type"), - "links": [TestCaseExternalIssuesLinksInner.from_dict(_item) for _item in obj["links"]] if obj.get("links") is not None else None + "total": obj.get("total"), + "filtered": obj.get("filtered"), + "count": obj.get("count"), + "entities": [User.from_dict(_item) for _item in obj["entities"]] if obj.get("entities") is not None else None }) return _obj diff --git a/qase-api-client/src/qase/api_client_v1/models/user_response.py b/qase-api-client/src/qase/api_client_v1/models/user_response.py new file mode 100644 index 00000000..a7cc6c11 --- /dev/null +++ b/qase-api-client/src/qase/api_client_v1/models/user_response.py @@ -0,0 +1,94 @@ +# 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 pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from qase.api_client_v1.models.user import User +from typing import Optional, Set +from typing_extensions import Self + +class UserResponse(BaseModel): + """ + UserResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + result: Optional[User] = None + __properties: ClassVar[List[str]] = ["status", "result"] + + model_config = ConfigDict( + 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) -> Optional[Self]: + """Create an instance of UserResponse 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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserResponse 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": User.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/qase-api-client/src/qase/api_client_v1/models/uuid_response1.py b/qase-api-client/src/qase/api_client_v1/models/uuid_response1.py new file mode 100644 index 00000000..5312c004 --- /dev/null +++ b/qase-api-client/src/qase/api_client_v1/models/uuid_response1.py @@ -0,0 +1,94 @@ +# 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 pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult +from typing import Optional, Set +from typing_extensions import Self + +class UuidResponse1(BaseModel): + """ + UuidResponse1 + """ # noqa: E501 + status: Optional[StrictBool] = None + result: Optional[UuidResponseAllOfResult] = None + __properties: ClassVar[List[str]] = ["status", "result"] + + model_config = ConfigDict( + 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) -> Optional[Self]: + """Create an instance of UuidResponse1 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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + 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: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UuidResponse1 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": UuidResponseAllOfResult.from_dict(obj["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/qase-api-client/src/qase/api_client_v1/models/uuid_response_all_of_result.py b/qase-api-client/src/qase/api_client_v1/models/uuid_response_all_of_result.py index 9851e339..12b3b480 100644 --- a/qase-api-client/src/qase/api_client_v1/models/uuid_response_all_of_result.py +++ b/qase-api-client/src/qase/api_client_v1/models/uuid_response_all_of_result.py @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class UuidResponseAllOfResult(BaseModel): """ UuidResponseAllOfResult """ # noqa: E501 - id: Optional[StrictStr] = None + id: Optional[UUID] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/qase-api-client/src/qase/api_client_v1/rest.py b/qase-api-client/src/qase/api_client_v1/rest.py index 11d030a5..0240648a 100644 --- a/qase-api-client/src/qase/api_client_v1/rest.py +++ b/qase-api-client/src/qase/api_client_v1/rest.py @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( @@ -203,6 +204,8 @@ def request( # Content-Type which generated by urllib3 will be # overwritten. del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, @@ -224,7 +227,7 @@ def request( headers=headers, preload_content=False ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, diff --git a/qase-api-client/test-requirements.txt b/qase-api-client/test-requirements.txt index 8e6d8cb1..e98555c1 100644 --- a/qase-api-client/test-requirements.txt +++ b/qase-api-client/test-requirements.txt @@ -1,5 +1,6 @@ -pytest~=7.1.3 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5 diff --git a/qase-api-client/test/test_attachment.py b/qase-api-client/test/test_attachment.py index cc7f34df..e1ca7c48 100644 --- a/qase-api-client/test/test_attachment.py +++ b/qase-api-client/test/test_attachment.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Attachment: """Test Attachment - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_get.py b/qase-api-client/test/test_attachment_get.py index dc6e127b..70ba741f 100644 --- a/qase-api-client/test/test_attachment_get.py +++ b/qase-api-client/test/test_attachment_get.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentGet: """Test AttachmentGet - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_hash.py b/qase-api-client/test/test_attachment_hash.py index 54478a0b..71cc5517 100644 --- a/qase-api-client/test/test_attachment_hash.py +++ b/qase-api-client/test/test_attachment_hash.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentHash: """Test AttachmentHash - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_list_response.py b/qase-api-client/test/test_attachment_list_response.py index 109702a7..751dd2ae 100644 --- a/qase-api-client/test/test_attachment_list_response.py +++ b/qase-api-client/test/test_attachment_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentListResponse: """Test AttachmentListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_list_response_all_of_result.py b/qase-api-client/test/test_attachment_list_response_all_of_result.py index d20361af..e76a2d9f 100644 --- a/qase-api-client/test/test_attachment_list_response_all_of_result.py +++ b/qase-api-client/test/test_attachment_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentListResponseAllOfResult: """Test AttachmentListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_response.py b/qase-api-client/test/test_attachment_response.py index 45af3fc4..7b8e8839 100644 --- a/qase-api-client/test/test_attachment_response.py +++ b/qase-api-client/test/test_attachment_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentResponse: """Test AttachmentResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachment_uploads_response.py b/qase-api-client/test/test_attachment_uploads_response.py index b2f143bd..638099fa 100644 --- a/qase-api-client/test/test_attachment_uploads_response.py +++ b/qase-api-client/test/test_attachment_uploads_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AttachmentUploadsResponse: """Test AttachmentUploadsResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_attachmentupload.py b/qase-api-client/test/test_attachmentupload.py index 92d89e1c..6ba38739 100644 --- a/qase-api-client/test/test_attachmentupload.py +++ b/qase-api-client/test/test_attachmentupload.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Attachmentupload: """Test Attachmentupload - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_author.py b/qase-api-client/test/test_author.py index 05b946a4..4ac14084 100644 --- a/qase-api-client/test/test_author.py +++ b/qase-api-client/test/test_author.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Author: """Test Author - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_author_list_response.py b/qase-api-client/test/test_author_list_response.py index cbd39796..6207a47f 100644 --- a/qase-api-client/test/test_author_list_response.py +++ b/qase-api-client/test/test_author_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AuthorListResponse: """Test AuthorListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_author_list_response_all_of_result.py b/qase-api-client/test/test_author_list_response_all_of_result.py index d91827ef..34cdd75e 100644 --- a/qase-api-client/test/test_author_list_response_all_of_result.py +++ b/qase-api-client/test/test_author_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AuthorListResponseAllOfResult: """Test AuthorListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_author_response.py b/qase-api-client/test/test_author_response.py index 80b78250..53c915fd 100644 --- a/qase-api-client/test/test_author_response.py +++ b/qase-api-client/test/test_author_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> AuthorResponse: """Test AuthorResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_base_response.py b/qase-api-client/test/test_base_response.py index 219f861b..e62020d5 100644 --- a/qase-api-client/test/test_base_response.py +++ b/qase-api-client/test/test_base_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> BaseResponse: """Test BaseResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_bulk200_response.py b/qase-api-client/test/test_bulk200_response.py index 70d082f9..0d0cae06 100644 --- a/qase-api-client/test/test_bulk200_response.py +++ b/qase-api-client/test/test_bulk200_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Bulk200Response: """Test Bulk200Response - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_bulk200_response_all_of_result.py b/qase-api-client/test/test_bulk200_response_all_of_result.py index 32f7cf4e..410253ab 100644 --- a/qase-api-client/test/test_bulk200_response_all_of_result.py +++ b/qase-api-client/test/test_bulk200_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Bulk200ResponseAllOfResult: """Test Bulk200ResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration.py b/qase-api-client/test/test_configuration.py index 0eb6714f..a89db59c 100644 --- a/qase-api-client/test/test_configuration.py +++ b/qase-api-client/test/test_configuration.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationModel: """Test Configuration - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration_create.py b/qase-api-client/test/test_configuration_create.py index bdcf1fe0..21b25b3b 100644 --- a/qase-api-client/test/test_configuration_create.py +++ b/qase-api-client/test/test_configuration_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationCreate: """Test ConfigurationCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration_group.py b/qase-api-client/test/test_configuration_group.py index e9155108..42ab3c2a 100644 --- a/qase-api-client/test/test_configuration_group.py +++ b/qase-api-client/test/test_configuration_group.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationGroup: """Test ConfigurationGroup - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration_group_create.py b/qase-api-client/test/test_configuration_group_create.py index 73839eb4..7aa027f6 100644 --- a/qase-api-client/test/test_configuration_group_create.py +++ b/qase-api-client/test/test_configuration_group_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationGroupCreate: """Test ConfigurationGroupCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration_list_response.py b/qase-api-client/test/test_configuration_list_response.py index 64a47f8f..c41afd14 100644 --- a/qase-api-client/test/test_configuration_list_response.py +++ b/qase-api-client/test/test_configuration_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationListResponse: """Test ConfigurationListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_configuration_list_response_all_of_result.py b/qase-api-client/test/test_configuration_list_response_all_of_result.py index 5a98b6a2..c2d9cfdb 100644 --- a/qase-api-client/test/test_configuration_list_response_all_of_result.py +++ b/qase-api-client/test/test_configuration_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigurationListResponseAllOfResult: """Test ConfigurationListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field.py b/qase-api-client/test/test_custom_field.py index 8734eb9e..2e0b6f7f 100644 --- a/qase-api-client/test/test_custom_field.py +++ b/qase-api-client/test/test_custom_field.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomField: """Test CustomField - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_create.py b/qase-api-client/test/test_custom_field_create.py index 4237171d..e801cd9c 100644 --- a/qase-api-client/test/test_custom_field_create.py +++ b/qase-api-client/test/test_custom_field_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldCreate: """Test CustomFieldCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_create_value_inner.py b/qase-api-client/test/test_custom_field_create_value_inner.py index 5c9f538e..a7d67dca 100644 --- a/qase-api-client/test/test_custom_field_create_value_inner.py +++ b/qase-api-client/test/test_custom_field_create_value_inner.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldCreateValueInner: """Test CustomFieldCreateValueInner - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_list_response.py b/qase-api-client/test/test_custom_field_list_response.py index ebec8ffa..0551a885 100644 --- a/qase-api-client/test/test_custom_field_list_response.py +++ b/qase-api-client/test/test_custom_field_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldListResponse: """Test CustomFieldListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_response.py b/qase-api-client/test/test_custom_field_response.py index 1fe48500..1e850df9 100644 --- a/qase-api-client/test/test_custom_field_response.py +++ b/qase-api-client/test/test_custom_field_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldResponse: """Test CustomFieldResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_update.py b/qase-api-client/test/test_custom_field_update.py index 43296e40..cb2ba638 100644 --- a/qase-api-client/test/test_custom_field_update.py +++ b/qase-api-client/test/test_custom_field_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldUpdate: """Test CustomFieldUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_field_value.py b/qase-api-client/test/test_custom_field_value.py index 678474c3..3e158e1a 100644 --- a/qase-api-client/test/test_custom_field_value.py +++ b/qase-api-client/test/test_custom_field_value.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldValue: """Test CustomFieldValue - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_fields_response.py b/qase-api-client/test/test_custom_fields_response.py index a27045d5..6838dd82 100644 --- a/qase-api-client/test/test_custom_fields_response.py +++ b/qase-api-client/test/test_custom_fields_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldsResponse: """Test CustomFieldsResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_custom_fields_response_all_of_result.py b/qase-api-client/test/test_custom_fields_response_all_of_result.py index f5fcdce0..2d5e296a 100644 --- a/qase-api-client/test/test_custom_fields_response_all_of_result.py +++ b/qase-api-client/test/test_custom_fields_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CustomFieldsResponseAllOfResult: """Test CustomFieldsResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect.py b/qase-api-client/test/test_defect.py index 1cf08d21..25f89beb 100644 --- a/qase-api-client/test/test_defect.py +++ b/qase-api-client/test/test_defect.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Defect: """Test Defect - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_create.py b/qase-api-client/test/test_defect_create.py index fed458b6..107ce2d6 100644 --- a/qase-api-client/test/test_defect_create.py +++ b/qase-api-client/test/test_defect_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectCreate: """Test DefectCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_list_response.py b/qase-api-client/test/test_defect_list_response.py index 6c7d320d..60b83343 100644 --- a/qase-api-client/test/test_defect_list_response.py +++ b/qase-api-client/test/test_defect_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectListResponse: """Test DefectListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_list_response_all_of_result.py b/qase-api-client/test/test_defect_list_response_all_of_result.py index df0fd357..c37cd861 100644 --- a/qase-api-client/test/test_defect_list_response_all_of_result.py +++ b/qase-api-client/test/test_defect_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectListResponseAllOfResult: """Test DefectListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_query.py b/qase-api-client/test/test_defect_query.py index b98c5e43..3c308699 100644 --- a/qase-api-client/test/test_defect_query.py +++ b/qase-api-client/test/test_defect_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectQuery: """Test DefectQuery - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_response.py b/qase-api-client/test/test_defect_response.py index 4bc84608..c0523059 100644 --- a/qase-api-client/test/test_defect_response.py +++ b/qase-api-client/test/test_defect_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectResponse: """Test DefectResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_status.py b/qase-api-client/test/test_defect_status.py index 6540add4..51988e15 100644 --- a/qase-api-client/test/test_defect_status.py +++ b/qase-api-client/test/test_defect_status.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectStatus: """Test DefectStatus - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_defect_update.py b/qase-api-client/test/test_defect_update.py index 6c5df658..08e6d3aa 100644 --- a/qase-api-client/test/test_defect_update.py +++ b/qase-api-client/test/test_defect_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> DefectUpdate: """Test DefectUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment.py b/qase-api-client/test/test_environment.py index 0aa528c0..a02a65ad 100644 --- a/qase-api-client/test/test_environment.py +++ b/qase-api-client/test/test_environment.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Environment: """Test Environment - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment_create.py b/qase-api-client/test/test_environment_create.py index 395505c7..3a9a9256 100644 --- a/qase-api-client/test/test_environment_create.py +++ b/qase-api-client/test/test_environment_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> EnvironmentCreate: """Test EnvironmentCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment_list_response.py b/qase-api-client/test/test_environment_list_response.py index 32629d1c..af3ddf95 100644 --- a/qase-api-client/test/test_environment_list_response.py +++ b/qase-api-client/test/test_environment_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> EnvironmentListResponse: """Test EnvironmentListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment_list_response_all_of_result.py b/qase-api-client/test/test_environment_list_response_all_of_result.py index 4193197b..2867d3c2 100644 --- a/qase-api-client/test/test_environment_list_response_all_of_result.py +++ b/qase-api-client/test/test_environment_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> EnvironmentListResponseAllOfResult: """Test EnvironmentListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment_response.py b/qase-api-client/test/test_environment_response.py index dd6f532a..16af515b 100644 --- a/qase-api-client/test/test_environment_response.py +++ b/qase-api-client/test/test_environment_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> EnvironmentResponse: """Test EnvironmentResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_environment_update.py b/qase-api-client/test/test_environment_update.py index c1ef77a8..3cb08d7a 100644 --- a/qase-api-client/test/test_environment_update.py +++ b/qase-api-client/test/test_environment_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> EnvironmentUpdate: """Test EnvironmentUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_external_issue.py b/qase-api-client/test/test_external_issue.py index d069cab0..b72754c3 100644 --- a/qase-api-client/test/test_external_issue.py +++ b/qase-api-client/test/test_external_issue.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ExternalIssue: """Test ExternalIssue - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_external_issue_issues_inner.py b/qase-api-client/test/test_external_issue_issues_inner.py index 4dcd37eb..5f5ed89d 100644 --- a/qase-api-client/test/test_external_issue_issues_inner.py +++ b/qase-api-client/test/test_external_issue_issues_inner.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ExternalIssueIssuesInner: """Test ExternalIssueIssuesInner - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_hash_response.py b/qase-api-client/test/test_hash_response.py index 901a1e8a..ec291a9e 100644 --- a/qase-api-client/test/test_hash_response.py +++ b/qase-api-client/test/test_hash_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> HashResponse: """Test HashResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_hash_response_all_of_result.py b/qase-api-client/test/test_hash_response_all_of_result.py index 30278f34..5d3ba2bf 100644 --- a/qase-api-client/test/test_hash_response_all_of_result.py +++ b/qase-api-client/test/test_hash_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> HashResponseAllOfResult: """Test HashResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_id_response.py b/qase-api-client/test/test_id_response.py index 84e8e42d..1a8cc1da 100644 --- a/qase-api-client/test/test_id_response.py +++ b/qase-api-client/test/test_id_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IdResponse: """Test IdResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_id_response_all_of_result.py b/qase-api-client/test/test_id_response_all_of_result.py index e839fd59..e7ced996 100644 --- a/qase-api-client/test/test_id_response_all_of_result.py +++ b/qase-api-client/test/test_id_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> IdResponseAllOfResult: """Test IdResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone.py b/qase-api-client/test/test_milestone.py index 6f31108e..dbba70c6 100644 --- a/qase-api-client/test/test_milestone.py +++ b/qase-api-client/test/test_milestone.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Milestone: """Test Milestone - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone_create.py b/qase-api-client/test/test_milestone_create.py index 23e073a1..2d0cbea0 100644 --- a/qase-api-client/test/test_milestone_create.py +++ b/qase-api-client/test/test_milestone_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> MilestoneCreate: """Test MilestoneCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone_list_response.py b/qase-api-client/test/test_milestone_list_response.py index 33642d29..53c9fdaf 100644 --- a/qase-api-client/test/test_milestone_list_response.py +++ b/qase-api-client/test/test_milestone_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> MilestoneListResponse: """Test MilestoneListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone_list_response_all_of_result.py b/qase-api-client/test/test_milestone_list_response_all_of_result.py index ef1eae6c..8be3f9ef 100644 --- a/qase-api-client/test/test_milestone_list_response_all_of_result.py +++ b/qase-api-client/test/test_milestone_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> MilestoneListResponseAllOfResult: """Test MilestoneListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone_response.py b/qase-api-client/test/test_milestone_response.py index 16d4aa7c..78bb7537 100644 --- a/qase-api-client/test/test_milestone_response.py +++ b/qase-api-client/test/test_milestone_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> MilestoneResponse: """Test MilestoneResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_milestone_update.py b/qase-api-client/test/test_milestone_update.py index 142cfb62..c5eed9ac 100644 --- a/qase-api-client/test/test_milestone_update.py +++ b/qase-api-client/test/test_milestone_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> MilestoneUpdate: """Test MilestoneUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_parameter_group.py b/qase-api-client/test/test_parameter_group.py new file mode 100644 index 00000000..54d7813e --- /dev/null +++ b/qase-api-client/test/test_parameter_group.py @@ -0,0 +1,65 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.parameter_group import ParameterGroup + +class TestParameterGroup(unittest.TestCase): + """ParameterGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterGroup: + """Test ParameterGroup + include_optional 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 `ParameterGroup` + """ + model = ParameterGroup() + if include_optional: + return ParameterGroup( + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ] + ) + else: + return ParameterGroup( + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ], + ) + """ + + def testParameterGroup(self): + """Test ParameterGroup""" + # 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/qase-api-client/test/test_parameter_shared.py b/qase-api-client/test/test_parameter_shared.py new file mode 100644 index 00000000..63ee4422 --- /dev/null +++ b/qase-api-client/test/test_parameter_shared.py @@ -0,0 +1,53 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.parameter_shared import ParameterShared + +class TestParameterShared(unittest.TestCase): + """ParameterShared unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterShared: + """Test ParameterShared + include_optional 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 `ParameterShared` + """ + model = ParameterShared() + if include_optional: + return ParameterShared( + shared_id = '' + ) + else: + return ParameterShared( + shared_id = '', + ) + """ + + def testParameterShared(self): + """Test ParameterShared""" + # 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/qase-api-client/test/test_parameter_single.py b/qase-api-client/test/test_parameter_single.py new file mode 100644 index 00000000..981c8428 --- /dev/null +++ b/qase-api-client/test/test_parameter_single.py @@ -0,0 +1,59 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.parameter_single import ParameterSingle + +class TestParameterSingle(unittest.TestCase): + """ParameterSingle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ParameterSingle: + """Test ParameterSingle + include_optional 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 `ParameterSingle` + """ + model = ParameterSingle() + if include_optional: + return ParameterSingle( + title = '', + values = [ + '' + ] + ) + else: + return ParameterSingle( + title = '', + values = [ + '' + ], + ) + """ + + def testParameterSingle(self): + """Test ParameterSingle""" + # 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/qase-api-client/test/test_plan.py b/qase-api-client/test/test_plan.py index d1ecd527..8b4c0200 100644 --- a/qase-api-client/test/test_plan.py +++ b/qase-api-client/test/test_plan.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Plan: """Test Plan - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_create.py b/qase-api-client/test/test_plan_create.py index 2342f224..66caf879 100644 --- a/qase-api-client/test/test_plan_create.py +++ b/qase-api-client/test/test_plan_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanCreate: """Test PlanCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_detailed.py b/qase-api-client/test/test_plan_detailed.py index 390f34fe..8e4cbc6b 100644 --- a/qase-api-client/test/test_plan_detailed.py +++ b/qase-api-client/test/test_plan_detailed.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanDetailed: """Test PlanDetailed - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_detailed_all_of_cases.py b/qase-api-client/test/test_plan_detailed_all_of_cases.py index 1897482c..549eec84 100644 --- a/qase-api-client/test/test_plan_detailed_all_of_cases.py +++ b/qase-api-client/test/test_plan_detailed_all_of_cases.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanDetailedAllOfCases: """Test PlanDetailedAllOfCases - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_list_response.py b/qase-api-client/test/test_plan_list_response.py index fadfe236..3c5bbab2 100644 --- a/qase-api-client/test/test_plan_list_response.py +++ b/qase-api-client/test/test_plan_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanListResponse: """Test PlanListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_list_response_all_of_result.py b/qase-api-client/test/test_plan_list_response_all_of_result.py index 8ff193b8..d57045af 100644 --- a/qase-api-client/test/test_plan_list_response_all_of_result.py +++ b/qase-api-client/test/test_plan_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanListResponseAllOfResult: """Test PlanListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_query.py b/qase-api-client/test/test_plan_query.py index 1555c5d7..73cf0d1c 100644 --- a/qase-api-client/test/test_plan_query.py +++ b/qase-api-client/test/test_plan_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanQuery: """Test PlanQuery - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_response.py b/qase-api-client/test/test_plan_response.py index 9df1c58c..2da56c1a 100644 --- a/qase-api-client/test/test_plan_response.py +++ b/qase-api-client/test/test_plan_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanResponse: """Test PlanResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_plan_update.py b/qase-api-client/test/test_plan_update.py index e620a6a5..11e9b1d9 100644 --- a/qase-api-client/test/test_plan_update.py +++ b/qase-api-client/test/test_plan_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> PlanUpdate: """Test PlanUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project.py b/qase-api-client/test/test_project.py index 78c661d0..fde9c211 100644 --- a/qase-api-client/test/test_project.py +++ b/qase-api-client/test/test_project.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Project: """Test Project - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_access.py b/qase-api-client/test/test_project_access.py index 889f9d34..6f28d3df 100644 --- a/qase-api-client/test/test_project_access.py +++ b/qase-api-client/test/test_project_access.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectAccess: """Test ProjectAccess - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_code_response.py b/qase-api-client/test/test_project_code_response.py index ca324843..af2e6d60 100644 --- a/qase-api-client/test/test_project_code_response.py +++ b/qase-api-client/test/test_project_code_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCodeResponse: """Test ProjectCodeResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_code_response_all_of_result.py b/qase-api-client/test/test_project_code_response_all_of_result.py index 8c22c1ac..de0d38e4 100644 --- a/qase-api-client/test/test_project_code_response_all_of_result.py +++ b/qase-api-client/test/test_project_code_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCodeResponseAllOfResult: """Test ProjectCodeResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_counts.py b/qase-api-client/test/test_project_counts.py index 7274bfba..b9d3b407 100644 --- a/qase-api-client/test/test_project_counts.py +++ b/qase-api-client/test/test_project_counts.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCounts: """Test ProjectCounts - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_counts_defects.py b/qase-api-client/test/test_project_counts_defects.py index 5f7b2813..67a84bbc 100644 --- a/qase-api-client/test/test_project_counts_defects.py +++ b/qase-api-client/test/test_project_counts_defects.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCountsDefects: """Test ProjectCountsDefects - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_counts_runs.py b/qase-api-client/test/test_project_counts_runs.py index 3d013993..2fbc7abb 100644 --- a/qase-api-client/test/test_project_counts_runs.py +++ b/qase-api-client/test/test_project_counts_runs.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCountsRuns: """Test ProjectCountsRuns - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_create.py b/qase-api-client/test/test_project_create.py index 7295d428..0a13dcca 100644 --- a/qase-api-client/test/test_project_create.py +++ b/qase-api-client/test/test_project_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectCreate: """Test ProjectCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_list_response.py b/qase-api-client/test/test_project_list_response.py index a607e604..36ee162e 100644 --- a/qase-api-client/test/test_project_list_response.py +++ b/qase-api-client/test/test_project_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectListResponse: """Test ProjectListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_list_response_all_of_result.py b/qase-api-client/test/test_project_list_response_all_of_result.py index 7019e31e..b841725d 100644 --- a/qase-api-client/test/test_project_list_response_all_of_result.py +++ b/qase-api-client/test/test_project_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectListResponseAllOfResult: """Test ProjectListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_project_response.py b/qase-api-client/test/test_project_response.py index 4878b547..f3ebc6ac 100644 --- a/qase-api-client/test/test_project_response.py +++ b/qase-api-client/test/test_project_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ProjectResponse: """Test ProjectResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_qql_defect.py b/qase-api-client/test/test_qql_defect.py index 211a213e..3705a086 100644 --- a/qase-api-client/test/test_qql_defect.py +++ b/qase-api-client/test/test_qql_defect.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> QqlDefect: """Test QqlDefect - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_qql_plan.py b/qase-api-client/test/test_qql_plan.py index a53cb988..cd5c0ad8 100644 --- a/qase-api-client/test/test_qql_plan.py +++ b/qase-api-client/test/test_qql_plan.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> QqlPlan: """Test QqlPlan - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_qql_test_case.py b/qase-api-client/test/test_qql_test_case.py index 0fd708ad..3858da9a 100644 --- a/qase-api-client/test/test_qql_test_case.py +++ b/qase-api-client/test/test_qql_test_case.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> QqlTestCase: """Test QqlTestCase - include_option is a boolean, when False only required + include_optional 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` @@ -95,7 +95,8 @@ def make_instance(self, include_optional) -> QqlTestCase: member_id = 56, author_id = 56, created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' + updated_at = '2021-12-30T19:23:59Z', + updated_by = 56 ) else: return QqlTestCase( diff --git a/qase-api-client/test/test_qql_test_case_params.py b/qase-api-client/test/test_qql_test_case_params.py new file mode 100644 index 00000000..feaba95c --- /dev/null +++ b/qase-api-client/test/test_qql_test_case_params.py @@ -0,0 +1,51 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.qql_test_case_params import QqlTestCaseParams + +class TestQqlTestCaseParams(unittest.TestCase): + """QqlTestCaseParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QqlTestCaseParams: + """Test QqlTestCaseParams + include_optional 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 `QqlTestCaseParams` + """ + model = QqlTestCaseParams() + if include_optional: + return QqlTestCaseParams( + ) + else: + return QqlTestCaseParams( + ) + """ + + def testQqlTestCaseParams(self): + """Test QqlTestCaseParams""" + # 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/qase-api-client/test/test_requirement.py b/qase-api-client/test/test_requirement.py index b2106120..98986046 100644 --- a/qase-api-client/test/test_requirement.py +++ b/qase-api-client/test/test_requirement.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Requirement: """Test Requirement - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_requirement_query.py b/qase-api-client/test/test_requirement_query.py index 527e1795..d30cf58f 100644 --- a/qase-api-client/test/test_requirement_query.py +++ b/qase-api-client/test/test_requirement_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RequirementQuery: """Test RequirementQuery - include_option is a boolean, when False only required + include_optional 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 `RequirementQuery` diff --git a/qase-api-client/test/test_response.py b/qase-api-client/test/test_response.py index 12581b30..30bb1811 100644 --- a/qase-api-client/test/test_response.py +++ b/qase-api-client/test/test_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Response: """Test Response - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result.py b/qase-api-client/test/test_result.py index e8c43dac..7aa88cc1 100644 --- a/qase-api-client/test/test_result.py +++ b/qase-api-client/test/test_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Result: """Test Result - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_create.py b/qase-api-client/test/test_result_create.py index 8d58f9ec..737d54d2 100644 --- a/qase-api-client/test/test_result_create.py +++ b/qase-api-client/test/test_result_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreate: """Test ResultCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_create_bulk.py b/qase-api-client/test/test_result_create_bulk.py index ec1c1f9b..72eb2133 100644 --- a/qase-api-client/test/test_result_create_bulk.py +++ b/qase-api-client/test/test_result_create_bulk.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreateBulk: """Test ResultCreateBulk - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_create_case.py b/qase-api-client/test/test_result_create_case.py index 85fc02ab..6202f364 100644 --- a/qase-api-client/test/test_result_create_case.py +++ b/qase-api-client/test/test_result_create_case.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreateCase: """Test ResultCreateCase - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_create_response.py b/qase-api-client/test/test_result_create_response.py index 5f6af341..d3e9ca5e 100644 --- a/qase-api-client/test/test_result_create_response.py +++ b/qase-api-client/test/test_result_create_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreateResponse: """Test ResultCreateResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_create_response_all_of_result.py b/qase-api-client/test/test_result_create_response_all_of_result.py index a976c76f..7922f7ca 100644 --- a/qase-api-client/test/test_result_create_response_all_of_result.py +++ b/qase-api-client/test/test_result_create_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreateResponseAllOfResult: """Test ResultCreateResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_list_response.py b/qase-api-client/test/test_result_list_response.py index 88644382..c90fc3ab 100644 --- a/qase-api-client/test/test_result_list_response.py +++ b/qase-api-client/test/test_result_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultListResponse: """Test ResultListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_list_response_all_of_result.py b/qase-api-client/test/test_result_list_response_all_of_result.py index ec46b31c..252a9778 100644 --- a/qase-api-client/test/test_result_list_response_all_of_result.py +++ b/qase-api-client/test/test_result_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultListResponseAllOfResult: """Test ResultListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_query.py b/qase-api-client/test/test_result_query.py index b3f0b078..fb08094f 100644 --- a/qase-api-client/test/test_result_query.py +++ b/qase-api-client/test/test_result_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultQuery: """Test ResultQuery - include_option is a boolean, when False only required + include_optional 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 `ResultQuery` diff --git a/qase-api-client/test/test_result_response.py b/qase-api-client/test/test_result_response.py index 58cdac98..54bd745a 100644 --- a/qase-api-client/test/test_result_response.py +++ b/qase-api-client/test/test_result_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultResponse: """Test ResultResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_result_update.py b/qase-api-client/test/test_result_update.py index 5bf11c3e..848be964 100644 --- a/qase-api-client/test/test_result_update.py +++ b/qase-api-client/test/test_result_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultUpdate: """Test ResultUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_resultcreate_bulk.py b/qase-api-client/test/test_resultcreate_bulk.py deleted file mode 100644 index 9d08915b..00000000 --- a/qase-api-client/test/test_resultcreate_bulk.py +++ /dev/null @@ -1,133 +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 - - -import unittest - -from qase.api_client_v1.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 = [ - qase.api_client_v1.models.result_create.ResultCreate( - case_id = 56, - case = qase.api_client_v1.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' : '' - }, - param_groups = [ - [ - '' - ] - ], - steps = [ - qase.api_client_v1.models.test_step_result_create.TestStepResultCreate( - position = 56, - status = 'passed', - comment = '', - action = '', - expected_result = '', - data = '', ) - ], - author_id = 56, ) - ] - ) - else: - return ResultcreateBulk( - results = [ - qase.api_client_v1.models.result_create.ResultCreate( - case_id = 56, - case = qase.api_client_v1.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' : '' - }, - param_groups = [ - [ - '' - ] - ], - steps = [ - qase.api_client_v1.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/qase-api-client/test/test_run.py b/qase-api-client/test/test_run.py index cdbb69c6..c4d79473 100644 --- a/qase-api-client/test/test_run.py +++ b/qase-api-client/test/test_run.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Run: """Test Run - include_option is a boolean, when False only required + include_optional 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` @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> Run: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', @@ -80,7 +81,14 @@ def make_instance(self, include_optional) -> Run: cases = [ 56 ], - plan_id = 56 + plan_id = 56, + configurations = [ + 56 + ], + external_issue = qase.api_client_v1.models.run_external_issue.Run_external_issue( + id = '', + type = '', + link = '', ) ) else: return Run( diff --git a/qase-api-client/test/test_run_create.py b/qase-api-client/test/test_run_create.py index 7d7cdabc..179378de 100644 --- a/qase-api-client/test/test_run_create.py +++ b/qase-api-client/test/test_run_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunCreate: """Test RunCreate - include_option is a boolean, when False only required + include_optional 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` @@ -58,7 +58,10 @@ def make_instance(self, include_optional) -> RunCreate: 'key' : '' }, start_time = '', - end_time = '' + end_time = '', + is_cloud = True, + cloud_run_config = qase.api_client_v1.models.run_create_cloud_run_config.RunCreate_cloud_run_config( + browser = 'chromium', ) ) else: return RunCreate( diff --git a/qase-api-client/test/test_run_create_cloud_run_config.py b/qase-api-client/test/test_run_create_cloud_run_config.py new file mode 100644 index 00000000..cd5effe9 --- /dev/null +++ b/qase-api-client/test/test_run_create_cloud_run_config.py @@ -0,0 +1,52 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.run_create_cloud_run_config import RunCreateCloudRunConfig + +class TestRunCreateCloudRunConfig(unittest.TestCase): + """RunCreateCloudRunConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RunCreateCloudRunConfig: + """Test RunCreateCloudRunConfig + include_optional 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 `RunCreateCloudRunConfig` + """ + model = RunCreateCloudRunConfig() + if include_optional: + return RunCreateCloudRunConfig( + browser = 'chromium' + ) + else: + return RunCreateCloudRunConfig( + ) + """ + + def testRunCreateCloudRunConfig(self): + """Test RunCreateCloudRunConfig""" + # 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/qase-api-client/test/test_run_environment.py b/qase-api-client/test/test_run_environment.py index 6628e8ca..0c34f1ce 100644 --- a/qase-api-client/test/test_run_environment.py +++ b/qase-api-client/test/test_run_environment.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunEnvironment: """Test RunEnvironment - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_run_external_issue.py b/qase-api-client/test/test_run_external_issue.py new file mode 100644 index 00000000..4c3b637f --- /dev/null +++ b/qase-api-client/test/test_run_external_issue.py @@ -0,0 +1,54 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.run_external_issue import RunExternalIssue + +class TestRunExternalIssue(unittest.TestCase): + """RunExternalIssue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RunExternalIssue: + """Test RunExternalIssue + include_optional 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 `RunExternalIssue` + """ + model = RunExternalIssue() + if include_optional: + return RunExternalIssue( + id = '', + type = '', + link = '' + ) + else: + return RunExternalIssue( + ) + """ + + def testRunExternalIssue(self): + """Test RunExternalIssue""" + # 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/qase-api-client/test/test_run_external_issues.py b/qase-api-client/test/test_run_external_issues.py new file mode 100644 index 00000000..218bdbc6 --- /dev/null +++ b/qase-api-client/test/test_run_external_issues.py @@ -0,0 +1,63 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.run_external_issues import RunExternalIssues + +class TestRunExternalIssues(unittest.TestCase): + """RunExternalIssues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RunExternalIssues: + """Test RunExternalIssues + include_optional 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 `RunExternalIssues` + """ + model = RunExternalIssues() + if include_optional: + return RunExternalIssues( + type = 'jira-cloud', + links = [ + qase.api_client_v1.models.run_external_issues_links_inner.RunExternalIssues_links_inner( + run_id = 56, + external_issue = '0', ) + ] + ) + else: + return RunExternalIssues( + type = 'jira-cloud', + links = [ + qase.api_client_v1.models.run_external_issues_links_inner.RunExternalIssues_links_inner( + run_id = 56, + external_issue = '0', ) + ], + ) + """ + + def testRunExternalIssues(self): + """Test RunExternalIssues""" + # 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/qase-api-client/test/test_run_external_issues_links_inner.py b/qase-api-client/test/test_run_external_issues_links_inner.py new file mode 100644 index 00000000..abc1f2ba --- /dev/null +++ b/qase-api-client/test/test_run_external_issues_links_inner.py @@ -0,0 +1,54 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.run_external_issues_links_inner import RunExternalIssuesLinksInner + +class TestRunExternalIssuesLinksInner(unittest.TestCase): + """RunExternalIssuesLinksInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RunExternalIssuesLinksInner: + """Test RunExternalIssuesLinksInner + include_optional 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 `RunExternalIssuesLinksInner` + """ + model = RunExternalIssuesLinksInner() + if include_optional: + return RunExternalIssuesLinksInner( + run_id = 56, + external_issue = '0' + ) + else: + return RunExternalIssuesLinksInner( + run_id = 56, + ) + """ + + def testRunExternalIssuesLinksInner(self): + """Test RunExternalIssuesLinksInner""" + # 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/qase-api-client/test/test_run_list_response.py b/qase-api-client/test/test_run_list_response.py index 65e36b22..16ce5647 100644 --- a/qase-api-client/test/test_run_list_response.py +++ b/qase-api-client/test/test_run_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunListResponse: """Test RunListResponse - include_option is a boolean, when False only required + include_optional 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` @@ -66,6 +66,7 @@ def make_instance(self, include_optional) -> RunListResponse: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', @@ -87,7 +88,14 @@ def make_instance(self, include_optional) -> RunListResponse: cases = [ 56 ], - plan_id = 56, ) + plan_id = 56, + configurations = [ + 56 + ], + external_issue = qase.api_client_v1.models.run_external_issue.Run_external_issue( + id = '', + type = '', + link = '', ), ) ], ) ) else: diff --git a/qase-api-client/test/test_run_list_response_all_of_result.py b/qase-api-client/test/test_run_list_response_all_of_result.py index b2ce6284..36a4f5f9 100644 --- a/qase-api-client/test/test_run_list_response_all_of_result.py +++ b/qase-api-client/test/test_run_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunListResponseAllOfResult: """Test RunListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` @@ -64,6 +64,7 @@ def make_instance(self, include_optional) -> RunListResponseAllOfResult: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', @@ -85,7 +86,14 @@ def make_instance(self, include_optional) -> RunListResponseAllOfResult: cases = [ 56 ], - plan_id = 56, ) + plan_id = 56, + configurations = [ + 56 + ], + external_issue = qase.api_client_v1.models.run_external_issue.Run_external_issue( + id = '', + type = '', + link = '', ), ) ] ) else: diff --git a/qase-api-client/test/test_run_milestone.py b/qase-api-client/test/test_run_milestone.py index 0bae0b75..8ea1797d 100644 --- a/qase-api-client/test/test_run_milestone.py +++ b/qase-api-client/test/test_run_milestone.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunMilestone: """Test RunMilestone - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_run_public.py b/qase-api-client/test/test_run_public.py index 655b26ed..def1690d 100644 --- a/qase-api-client/test/test_run_public.py +++ b/qase-api-client/test/test_run_public.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunPublic: """Test RunPublic - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_run_public_response.py b/qase-api-client/test/test_run_public_response.py index 180243a4..ff8d67be 100644 --- a/qase-api-client/test/test_run_public_response.py +++ b/qase-api-client/test/test_run_public_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunPublicResponse: """Test RunPublicResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_run_public_response_all_of_result.py b/qase-api-client/test/test_run_public_response_all_of_result.py index 4ed5dc57..057fba4b 100644 --- a/qase-api-client/test/test_run_public_response_all_of_result.py +++ b/qase-api-client/test/test_run_public_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunPublicResponseAllOfResult: """Test RunPublicResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_run_query.py b/qase-api-client/test/test_run_query.py index adfc6ee2..2e62ebef 100644 --- a/qase-api-client/test/test_run_query.py +++ b/qase-api-client/test/test_run_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunQuery: """Test RunQuery - include_option is a boolean, when False only required + include_optional 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 `RunQuery` @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> RunQuery: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', diff --git a/qase-api-client/test/test_run_response.py b/qase-api-client/test/test_run_response.py index 1f1d2990..f4333cbf 100644 --- a/qase-api-client/test/test_run_response.py +++ b/qase-api-client/test/test_run_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunResponse: """Test RunResponse - include_option is a boolean, when False only required + include_optional 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` @@ -61,6 +61,7 @@ def make_instance(self, include_optional) -> RunResponse: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', @@ -82,7 +83,14 @@ def make_instance(self, include_optional) -> RunResponse: cases = [ 56 ], - plan_id = 56, ) + plan_id = 56, + configurations = [ + 56 + ], + external_issue = qase.api_client_v1.models.run_external_issue.Run_external_issue( + id = '', + type = '', + link = '', ), ) ) else: return RunResponse( diff --git a/qase-api-client/test/test_run_stats.py b/qase-api-client/test/test_run_stats.py index a61f5803..49b9999e 100644 --- a/qase-api-client/test/test_run_stats.py +++ b/qase-api-client/test/test_run_stats.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RunStats: """Test RunStats - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_runs_api.py b/qase-api-client/test/test_runs_api.py index a1255894..bd75a71e 100644 --- a/qase-api-client/test/test_runs_api.py +++ b/qase-api-client/test/test_runs_api.py @@ -62,6 +62,20 @@ def test_get_runs(self) -> None: """ pass + def test_run_update_external_issue(self) -> None: + """Test case for run_update_external_issue + + Update external issues for runs + """ + pass + + def test_update_run(self) -> None: + """Test case for update_run + + Update a specific run + """ + pass + def test_update_run_publicity(self) -> None: """Test case for update_run_publicity diff --git a/qase-api-client/test/test_runupdate.py b/qase-api-client/test/test_runupdate.py new file mode 100644 index 00000000..1a2d386f --- /dev/null +++ b/qase-api-client/test/test_runupdate.py @@ -0,0 +1,65 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.runupdate import Runupdate + +class TestRunupdate(unittest.TestCase): + """Runupdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Runupdate: + """Test Runupdate + include_optional 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 `Runupdate` + """ + model = Runupdate() + if include_optional: + return Runupdate( + title = '', + description = '', + environment_id = 1, + environment_slug = '', + milestone_id = 1, + tags = [ + '' + ], + configurations = [ + 56 + ], + custom_field = { + 'key' : '' + } + ) + else: + return Runupdate( + ) + """ + + def testRunupdate(self): + """Test Runupdate""" + # 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/qase-api-client/test/test_search_response.py b/qase-api-client/test/test_search_response.py index 3981b703..2ad1b2ca 100644 --- a/qase-api-client/test/test_search_response.py +++ b/qase-api-client/test/test_search_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SearchResponse: """Test SearchResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_search_response_all_of_result.py b/qase-api-client/test/test_search_response_all_of_result.py index 653bd35d..10c66b32 100644 --- a/qase-api-client/test/test_search_response_all_of_result.py +++ b/qase-api-client/test/test_search_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SearchResponseAllOfResult: """Test SearchResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_search_response_all_of_result_entities.py b/qase-api-client/test/test_search_response_all_of_result_entities.py index c9194d74..7e8368cb 100644 --- a/qase-api-client/test/test_search_response_all_of_result_entities.py +++ b/qase-api-client/test/test_search_response_all_of_result_entities.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SearchResponseAllOfResultEntities: """Test SearchResponseAllOfResultEntities - include_option is a boolean, when False only required + include_optional 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` @@ -59,6 +59,7 @@ def make_instance(self, include_optional) -> SearchResponseAllOfResultEntities: in_progress = 56, invalid = 56, ), time_spent = 56, + elapsed_time = 56, environment = qase.api_client_v1.models.run_environment.Run_environment( title = '', description = '', @@ -133,6 +134,7 @@ def make_instance(self, include_optional) -> SearchResponseAllOfResultEntities: steps_type = '', params = None, author_id = 56, + updated_by = 56, defect_id = 56, actual_result = '', resolved = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/qase-api-client/test/test_shared_parameter.py b/qase-api-client/test/test_shared_parameter.py new file mode 100644 index 00000000..60e55f76 --- /dev/null +++ b/qase-api-client/test/test_shared_parameter.py @@ -0,0 +1,67 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter import SharedParameter + +class TestSharedParameter(unittest.TestCase): + """SharedParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameter: + """Test SharedParameter + include_optional 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 `SharedParameter` + """ + model = SharedParameter() + if include_optional: + return SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = None + ) + else: + return SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = None, + ) + """ + + def testSharedParameter(self): + """Test SharedParameter""" + # 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/qase-api-client/test/test_shared_parameter_create.py b/qase-api-client/test/test_shared_parameter_create.py new file mode 100644 index 00000000..e53442c7 --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_create.py @@ -0,0 +1,62 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_create import SharedParameterCreate + +class TestSharedParameterCreate(unittest.TestCase): + """SharedParameterCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterCreate: + """Test SharedParameterCreate + include_optional 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 `SharedParameterCreate` + """ + model = SharedParameterCreate() + if include_optional: + return SharedParameterCreate( + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = None + ) + else: + return SharedParameterCreate( + title = '', + type = 'single', + is_enabled_for_all_projects = True, + parameters = None, + ) + """ + + def testSharedParameterCreate(self): + """Test SharedParameterCreate""" + # 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/qase-api-client/test/test_shared_parameter_list_response.py b/qase-api-client/test/test_shared_parameter_list_response.py new file mode 100644 index 00000000..68d41d2f --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_list_response.py @@ -0,0 +1,65 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_list_response import SharedParameterListResponse + +class TestSharedParameterListResponse(unittest.TestCase): + """SharedParameterListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterListResponse: + """Test SharedParameterListResponse + include_optional 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 `SharedParameterListResponse` + """ + model = SharedParameterListResponse() + if include_optional: + return SharedParameterListResponse( + status = True, + result = qase.api_client_v1.models.shared_parameter_list_response_all_of_result.SharedParameterListResponse_allOf_result( + total = 56, + entities = [ + qase.api_client_v1.models.shared_parameter.SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = null, ) + ], ) + ) + else: + return SharedParameterListResponse( + ) + """ + + def testSharedParameterListResponse(self): + """Test SharedParameterListResponse""" + # 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/qase-api-client/test/test_shared_parameter_list_response_all_of_result.py b/qase-api-client/test/test_shared_parameter_list_response_all_of_result.py new file mode 100644 index 00000000..ab19abd2 --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_list_response_all_of_result.py @@ -0,0 +1,75 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_list_response_all_of_result import SharedParameterListResponseAllOfResult + +class TestSharedParameterListResponseAllOfResult(unittest.TestCase): + """SharedParameterListResponseAllOfResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterListResponseAllOfResult: + """Test SharedParameterListResponseAllOfResult + include_optional 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 `SharedParameterListResponseAllOfResult` + """ + model = SharedParameterListResponseAllOfResult() + if include_optional: + return SharedParameterListResponseAllOfResult( + total = 56, + entities = [ + qase.api_client_v1.models.shared_parameter.SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = null, ) + ] + ) + else: + return SharedParameterListResponseAllOfResult( + total = 56, + entities = [ + qase.api_client_v1.models.shared_parameter.SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = null, ) + ], + ) + """ + + def testSharedParameterListResponseAllOfResult(self): + """Test SharedParameterListResponseAllOfResult""" + # 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/qase-api-client/test/test_shared_parameter_parameter.py b/qase-api-client/test/test_shared_parameter_parameter.py new file mode 100644 index 00000000..9888274b --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_parameter.py @@ -0,0 +1,51 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_parameter import SharedParameterParameter + +class TestSharedParameterParameter(unittest.TestCase): + """SharedParameterParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterParameter: + """Test SharedParameterParameter + include_optional 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 `SharedParameterParameter` + """ + model = SharedParameterParameter() + if include_optional: + return SharedParameterParameter( + ) + else: + return SharedParameterParameter( + ) + """ + + def testSharedParameterParameter(self): + """Test SharedParameterParameter""" + # 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/qase-api-client/test/test_shared_parameter_response.py b/qase-api-client/test/test_shared_parameter_response.py new file mode 100644 index 00000000..caea95ea --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_response.py @@ -0,0 +1,61 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_response import SharedParameterResponse + +class TestSharedParameterResponse(unittest.TestCase): + """SharedParameterResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterResponse: + """Test SharedParameterResponse + include_optional 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 `SharedParameterResponse` + """ + model = SharedParameterResponse() + if include_optional: + return SharedParameterResponse( + status = True, + result = qase.api_client_v1.models.shared_parameter.SharedParameter( + id = '', + title = '', + type = 'single', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = null, ) + ) + else: + return SharedParameterResponse( + ) + """ + + def testSharedParameterResponse(self): + """Test SharedParameterResponse""" + # 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/qase-api-client/test/test_shared_parameter_update.py b/qase-api-client/test/test_shared_parameter_update.py new file mode 100644 index 00000000..df7603f6 --- /dev/null +++ b/qase-api-client/test/test_shared_parameter_update.py @@ -0,0 +1,57 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.shared_parameter_update import SharedParameterUpdate + +class TestSharedParameterUpdate(unittest.TestCase): + """SharedParameterUpdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SharedParameterUpdate: + """Test SharedParameterUpdate + include_optional 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 `SharedParameterUpdate` + """ + model = SharedParameterUpdate() + if include_optional: + return SharedParameterUpdate( + title = '', + project_codes = [ + '' + ], + is_enabled_for_all_projects = True, + parameters = None + ) + else: + return SharedParameterUpdate( + ) + """ + + def testSharedParameterUpdate(self): + """Test SharedParameterUpdate""" + # 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/qase-api-client/test/test_shared_parameters_api.py b/qase-api-client/test/test_shared_parameters_api.py new file mode 100644 index 00000000..d3697445 --- /dev/null +++ b/qase-api-client/test/test_shared_parameters_api.py @@ -0,0 +1,67 @@ +# 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 + + +import unittest + +from qase.api_client_v1.api.shared_parameters_api import SharedParametersApi + + +class TestSharedParametersApi(unittest.TestCase): + """SharedParametersApi unit test stubs""" + + def setUp(self) -> None: + self.api = SharedParametersApi() + + def tearDown(self) -> None: + pass + + def test_create_shared_parameter(self) -> None: + """Test case for create_shared_parameter + + Create a new shared parameter + """ + pass + + def test_delete_shared_parameter(self) -> None: + """Test case for delete_shared_parameter + + Delete shared parameter + """ + pass + + def test_get_shared_parameter(self) -> None: + """Test case for get_shared_parameter + + Get a specific shared parameter + """ + pass + + def test_get_shared_parameters(self) -> None: + """Test case for get_shared_parameters + + Get all shared parameters + """ + pass + + def test_update_shared_parameter(self) -> None: + """Test case for update_shared_parameter + + Update shared parameter + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/qase-api-client/test/test_shared_step.py b/qase-api-client/test/test_shared_step.py index b217a46f..5d2e32c9 100644 --- a/qase-api-client/test/test_shared_step.py +++ b/qase-api-client/test/test_shared_step.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStep: """Test SharedStep - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_content.py b/qase-api-client/test/test_shared_step_content.py index abb9e230..8b6beefb 100644 --- a/qase-api-client/test/test_shared_step_content.py +++ b/qase-api-client/test/test_shared_step_content.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepContent: """Test SharedStepContent - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_content_create.py b/qase-api-client/test/test_shared_step_content_create.py index 90953ab4..6b4b178b 100644 --- a/qase-api-client/test/test_shared_step_content_create.py +++ b/qase-api-client/test/test_shared_step_content_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepContentCreate: """Test SharedStepContentCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_create.py b/qase-api-client/test/test_shared_step_create.py index e0d96e5f..b0456706 100644 --- a/qase-api-client/test/test_shared_step_create.py +++ b/qase-api-client/test/test_shared_step_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepCreate: """Test SharedStepCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_list_response.py b/qase-api-client/test/test_shared_step_list_response.py index 02670257..0f05db92 100644 --- a/qase-api-client/test/test_shared_step_list_response.py +++ b/qase-api-client/test/test_shared_step_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepListResponse: """Test SharedStepListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_list_response_all_of_result.py b/qase-api-client/test/test_shared_step_list_response_all_of_result.py index 0795715d..25fcf281 100644 --- a/qase-api-client/test/test_shared_step_list_response_all_of_result.py +++ b/qase-api-client/test/test_shared_step_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepListResponseAllOfResult: """Test SharedStepListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_response.py b/qase-api-client/test/test_shared_step_response.py index caeb0cb8..5d5f5d19 100644 --- a/qase-api-client/test/test_shared_step_response.py +++ b/qase-api-client/test/test_shared_step_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepResponse: """Test SharedStepResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_shared_step_update.py b/qase-api-client/test/test_shared_step_update.py index c1214a62..df377dd7 100644 --- a/qase-api-client/test/test_shared_step_update.py +++ b/qase-api-client/test/test_shared_step_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SharedStepUpdate: """Test SharedStepUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite.py b/qase-api-client/test/test_suite.py index 87b8de47..13bfb5e2 100644 --- a/qase-api-client/test/test_suite.py +++ b/qase-api-client/test/test_suite.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> Suite: """Test Suite - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_create.py b/qase-api-client/test/test_suite_create.py index 357f20bc..53258994 100644 --- a/qase-api-client/test/test_suite_create.py +++ b/qase-api-client/test/test_suite_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteCreate: """Test SuiteCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_delete.py b/qase-api-client/test/test_suite_delete.py index e005a632..96cd776a 100644 --- a/qase-api-client/test/test_suite_delete.py +++ b/qase-api-client/test/test_suite_delete.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteDelete: """Test SuiteDelete - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_list_response.py b/qase-api-client/test/test_suite_list_response.py index 4bbda7e5..95ed6d0d 100644 --- a/qase-api-client/test/test_suite_list_response.py +++ b/qase-api-client/test/test_suite_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteListResponse: """Test SuiteListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_list_response_all_of_result.py b/qase-api-client/test/test_suite_list_response_all_of_result.py index b1ca382c..446aad1f 100644 --- a/qase-api-client/test/test_suite_list_response_all_of_result.py +++ b/qase-api-client/test/test_suite_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteListResponseAllOfResult: """Test SuiteListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_response.py b/qase-api-client/test/test_suite_response.py index 5b0a797c..90b78f3e 100644 --- a/qase-api-client/test/test_suite_response.py +++ b/qase-api-client/test/test_suite_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteResponse: """Test SuiteResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_suite_update.py b/qase-api-client/test/test_suite_update.py index 9a1449b0..08ea3853 100644 --- a/qase-api-client/test/test_suite_update.py +++ b/qase-api-client/test/test_suite_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SuiteUpdate: """Test SuiteUpdate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_system_field.py b/qase-api-client/test/test_system_field.py index 54d02fdc..cfb3df70 100644 --- a/qase-api-client/test/test_system_field.py +++ b/qase-api-client/test/test_system_field.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SystemField: """Test SystemField - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_system_field_list_response.py b/qase-api-client/test/test_system_field_list_response.py index 8aa352fc..93932bec 100644 --- a/qase-api-client/test/test_system_field_list_response.py +++ b/qase-api-client/test/test_system_field_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SystemFieldListResponse: """Test SystemFieldListResponse - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_system_field_option.py b/qase-api-client/test/test_system_field_option.py index b69e46fc..87c17192 100644 --- a/qase-api-client/test/test_system_field_option.py +++ b/qase-api-client/test/test_system_field_option.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> SystemFieldOption: """Test SystemFieldOption - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_tag_value.py b/qase-api-client/test/test_tag_value.py index b2d5d86f..b536d282 100644 --- a/qase-api-client/test/test_tag_value.py +++ b/qase-api-client/test/test_tag_value.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TagValue: """Test TagValue - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_case.py b/qase-api-client/test/test_test_case.py index f19f037c..3bb6a7c1 100644 --- a/qase-api-client/test/test_test_case.py +++ b/qase-api-client/test/test_test_case.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCase: """Test TestCase - include_option is a boolean, when False only required + include_optional 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` @@ -86,6 +86,9 @@ def make_instance(self, include_optional) -> TestCase: ], ) ], params = None, + parameters = [ + null + ], tags = [ qase.api_client_v1.models.tag_value.TagValue( title = '', diff --git a/qase-api-client/test/test_test_case_create.py b/qase-api-client/test/test_test_case_create.py index 524ce586..1e7da98b 100644 --- a/qase-api-client/test/test_test_case_create.py +++ b/qase-api-client/test/test_test_case_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseCreate: """Test TestCaseCreate - include_option is a boolean, when False only required + include_optional 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` @@ -46,7 +46,6 @@ def make_instance(self, include_optional) -> TestCaseCreate: type = 56, layer = 56, is_flaky = 56, - author_id = 56, suite_id = 56, milestone_id = 56, automation = 56, @@ -75,6 +74,9 @@ def make_instance(self, include_optional) -> TestCaseCreate: '' ] }, + parameters = [ + null + ], custom_field = { 'key' : '' }, diff --git a/qase-api-client/test/test_test_case_external_issues.py b/qase-api-client/test/test_test_case_external_issues.py index a2ec7fdb..84305fb1 100644 --- a/qase-api-client/test/test_test_case_external_issues.py +++ b/qase-api-client/test/test_test_case_external_issues.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseExternalIssues: """Test TestCaseExternalIssues - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_case_external_issues_links_inner.py b/qase-api-client/test/test_test_case_external_issues_links_inner.py index 870ba7c3..6f8fdf38 100644 --- a/qase-api-client/test/test_test_case_external_issues_links_inner.py +++ b/qase-api-client/test/test_test_case_external_issues_links_inner.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseExternalIssuesLinksInner: """Test TestCaseExternalIssuesLinksInner - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_case_list_response.py b/qase-api-client/test/test_test_case_list_response.py index 0c5d5e28..98422d8c 100644 --- a/qase-api-client/test/test_test_case_list_response.py +++ b/qase-api-client/test/test_test_case_list_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseListResponse: """Test TestCaseListResponse - include_option is a boolean, when False only required + include_optional 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` @@ -83,6 +83,9 @@ def make_instance(self, include_optional) -> TestCaseListResponse: data = '', ) ], params = null, + parameters = [ + null + ], tags = [ qase.api_client_v1.models.tag_value.TagValue( title = '', diff --git a/qase-api-client/test/test_test_case_list_response_all_of_result.py b/qase-api-client/test/test_test_case_list_response_all_of_result.py index 3f913135..3ed8ef62 100644 --- a/qase-api-client/test/test_test_case_list_response_all_of_result.py +++ b/qase-api-client/test/test_test_case_list_response_all_of_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseListResponseAllOfResult: """Test TestCaseListResponseAllOfResult - include_option is a boolean, when False only required + include_optional 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` @@ -81,6 +81,9 @@ def make_instance(self, include_optional) -> TestCaseListResponseAllOfResult: data = '', ) ], params = null, + parameters = [ + null + ], tags = [ qase.api_client_v1.models.tag_value.TagValue( title = '', diff --git a/qase-api-client/test/test_test_case_parameter.py b/qase-api-client/test/test_test_case_parameter.py new file mode 100644 index 00000000..2d2124eb --- /dev/null +++ b/qase-api-client/test/test_test_case_parameter.py @@ -0,0 +1,78 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.test_case_parameter import TestCaseParameter + +class TestTestCaseParameter(unittest.TestCase): + """TestCaseParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TestCaseParameter: + """Test TestCaseParameter + include_optional 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 `TestCaseParameter` + """ + model = TestCaseParameter() + if include_optional: + return TestCaseParameter( + shared_id = '', + type = 'single', + item = qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ), + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ] + ) + else: + return TestCaseParameter( + type = 'single', + item = qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ), + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ], + ) + """ + + def testTestCaseParameter(self): + """Test TestCaseParameter""" + # 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/qase-api-client/test/test_test_case_parameter_base.py b/qase-api-client/test/test_test_case_parameter_base.py new file mode 100644 index 00000000..dc3fe4a2 --- /dev/null +++ b/qase-api-client/test/test_test_case_parameter_base.py @@ -0,0 +1,54 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.test_case_parameter_base import TestCaseParameterBase + +class TestTestCaseParameterBase(unittest.TestCase): + """TestCaseParameterBase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TestCaseParameterBase: + """Test TestCaseParameterBase + include_optional 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 `TestCaseParameterBase` + """ + model = TestCaseParameterBase() + if include_optional: + return TestCaseParameterBase( + shared_id = '', + type = '' + ) + else: + return TestCaseParameterBase( + type = '', + ) + """ + + def testTestCaseParameterBase(self): + """Test TestCaseParameterBase""" + # 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/qase-api-client/test/test_test_case_parameter_create.py b/qase-api-client/test/test_test_case_parameter_create.py new file mode 100644 index 00000000..f0ba433d --- /dev/null +++ b/qase-api-client/test/test_test_case_parameter_create.py @@ -0,0 +1,75 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate + +class TestTestCaseParameterCreate(unittest.TestCase): + """TestCaseParameterCreate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TestCaseParameterCreate: + """Test TestCaseParameterCreate + include_optional 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 `TestCaseParameterCreate` + """ + model = TestCaseParameterCreate() + if include_optional: + return TestCaseParameterCreate( + shared_id = '', + title = '', + values = [ + '' + ], + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ] + ) + else: + return TestCaseParameterCreate( + shared_id = '', + title = '', + values = [ + '' + ], + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ], + ) + """ + + def testTestCaseParameterCreate(self): + """Test TestCaseParameterCreate""" + # 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/qase-api-client/test/test_test_case_parameter_group.py b/qase-api-client/test/test_test_case_parameter_group.py new file mode 100644 index 00000000..72236fb8 --- /dev/null +++ b/qase-api-client/test/test_test_case_parameter_group.py @@ -0,0 +1,68 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.test_case_parameter_group import TestCaseParameterGroup + +class TestTestCaseParameterGroup(unittest.TestCase): + """TestCaseParameterGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TestCaseParameterGroup: + """Test TestCaseParameterGroup + include_optional 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 `TestCaseParameterGroup` + """ + model = TestCaseParameterGroup() + if include_optional: + return TestCaseParameterGroup( + shared_id = '', + type = 'group', + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ] + ) + else: + return TestCaseParameterGroup( + type = 'group', + items = [ + qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ], + ) + """ + + def testTestCaseParameterGroup(self): + """Test TestCaseParameterGroup""" + # 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/qase-api-client/test/test_test_case_parameter_single.py b/qase-api-client/test/test_test_case_parameter_single.py new file mode 100644 index 00000000..445eb331 --- /dev/null +++ b/qase-api-client/test/test_test_case_parameter_single.py @@ -0,0 +1,64 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.test_case_parameter_single import TestCaseParameterSingle + +class TestTestCaseParameterSingle(unittest.TestCase): + """TestCaseParameterSingle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TestCaseParameterSingle: + """Test TestCaseParameterSingle + include_optional 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 `TestCaseParameterSingle` + """ + model = TestCaseParameterSingle() + if include_optional: + return TestCaseParameterSingle( + shared_id = '', + type = 'single', + item = qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ) + ) + else: + return TestCaseParameterSingle( + type = 'single', + item = qase.api_client_v1.models.parameter_single.ParameterSingle( + title = '', + values = [ + '' + ], ), + ) + """ + + def testTestCaseParameterSingle(self): + """Test TestCaseParameterSingle""" + # 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/qase-api-client/test/test_test_case_params.py b/qase-api-client/test/test_test_case_params.py index 2100d972..afd8b8c4 100644 --- a/qase-api-client/test/test_test_case_params.py +++ b/qase-api-client/test/test_test_case_params.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseParams: """Test TestCaseParams - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_case_query.py b/qase-api-client/test/test_test_case_query.py index 34c00a87..d67fd26b 100644 --- a/qase-api-client/test/test_test_case_query.py +++ b/qase-api-client/test/test_test_case_query.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseQuery: """Test TestCaseQuery - include_option is a boolean, when False only required + include_optional 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` @@ -95,7 +95,8 @@ def make_instance(self, include_optional) -> TestCaseQuery: member_id = 56, author_id = 56, created_at = '2021-12-30T19:23:59Z', - updated_at = '2021-12-30T19:23:59Z' + updated_at = '2021-12-30T19:23:59Z', + updated_by = 56 ) else: return TestCaseQuery( diff --git a/qase-api-client/test/test_test_case_response.py b/qase-api-client/test/test_test_case_response.py index 110e089d..56aac565 100644 --- a/qase-api-client/test/test_test_case_response.py +++ b/qase-api-client/test/test_test_case_response.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseResponse: """Test TestCaseResponse - include_option is a boolean, when False only required + include_optional 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` @@ -78,6 +78,9 @@ def make_instance(self, include_optional) -> TestCaseResponse: data = '', ) ], params = null, + parameters = [ + null + ], tags = [ qase.api_client_v1.models.tag_value.TagValue( title = '', diff --git a/qase-api-client/test/test_test_case_update.py b/qase-api-client/test/test_test_case_update.py index 00dd0aab..31a351b7 100644 --- a/qase-api-client/test/test_test_case_update.py +++ b/qase-api-client/test/test_test_case_update.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCaseUpdate: """Test TestCaseUpdate - include_option is a boolean, when False only required + include_optional 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` @@ -74,6 +74,9 @@ def make_instance(self, include_optional) -> TestCaseUpdate: '' ] }, + parameters = [ + null + ], custom_field = { 'key' : '' } diff --git a/qase-api-client/test/test_test_casebulk.py b/qase-api-client/test/test_test_casebulk.py index bcf7e47c..f5d77d8c 100644 --- a/qase-api-client/test/test_test_casebulk.py +++ b/qase-api-client/test/test_test_casebulk.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCasebulk: """Test TestCasebulk - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_casebulk_cases_inner.py b/qase-api-client/test/test_test_casebulk_cases_inner.py index c8d86cc2..ac0890ee 100644 --- a/qase-api-client/test/test_test_casebulk_cases_inner.py +++ b/qase-api-client/test/test_test_casebulk_cases_inner.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestCasebulkCasesInner: """Test TestCasebulkCasesInner - include_option is a boolean, when False only required + include_optional 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` @@ -46,7 +46,6 @@ def make_instance(self, include_optional) -> TestCasebulkCasesInner: type = 56, layer = 56, is_flaky = 56, - author_id = 56, suite_id = 56, milestone_id = 56, automation = 56, @@ -72,6 +71,9 @@ def make_instance(self, include_optional) -> TestCasebulkCasesInner: '' ] }, + parameters = [ + null + ], custom_field = { 'key' : '' }, diff --git a/qase-api-client/test/test_test_caseexternal_issues.py b/qase-api-client/test/test_test_caseexternal_issues.py deleted file mode 100644 index 2395c85c..00000000 --- a/qase-api-client/test/test_test_caseexternal_issues.py +++ /dev/null @@ -1,67 +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 - - -import unittest - -from qase.api_client_v1.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 = [ - qase.api_client_v1.models.test_case_external_issues_links_inner.TestCaseExternalIssues_links_inner( - case_id = 56, - external_issues = [ - '' - ], ) - ] - ) - else: - return TestCaseexternalIssues( - type = 'jira-cloud', - links = [ - qase.api_client_v1.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/qase-api-client/test/test_test_step.py b/qase-api-client/test/test_test_step.py index 1fd3edce..925838a2 100644 --- a/qase-api-client/test/test_test_step.py +++ b/qase-api-client/test/test_test_step.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestStep: """Test TestStep - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_step_create.py b/qase-api-client/test/test_test_step_create.py index 6cfbc7ee..3ce2c7b0 100644 --- a/qase-api-client/test/test_test_step_create.py +++ b/qase-api-client/test/test_test_step_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestStepCreate: """Test TestStepCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_step_result.py b/qase-api-client/test/test_test_step_result.py index eb7e8883..2c43c208 100644 --- a/qase-api-client/test/test_test_step_result.py +++ b/qase-api-client/test/test_test_step_result.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestStepResult: """Test TestStepResult - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_test_step_result_create.py b/qase-api-client/test/test_test_step_result_create.py index 560f6b46..75d4c1da 100644 --- a/qase-api-client/test/test_test_step_result_create.py +++ b/qase-api-client/test/test_test_step_result_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> TestStepResultCreate: """Test TestStepResultCreate - include_option is a boolean, when False only required + include_optional 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` diff --git a/qase-api-client/test/test_user.py b/qase-api-client/test/test_user.py new file mode 100644 index 00000000..c819d07b --- /dev/null +++ b/qase-api-client/test/test_user.py @@ -0,0 +1,56 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.user import User + +class TestUser(unittest.TestCase): + """User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> User: + """Test User + include_optional 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 `User` + """ + model = User() + if include_optional: + return User( + id = 56, + name = '', + email = '', + title = '', + status = 56 + ) + else: + return User( + ) + """ + + def testUser(self): + """Test User""" + # 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/qase-api-client/test/test_user_list_response.py b/qase-api-client/test/test_user_list_response.py new file mode 100644 index 00000000..1154b2dd --- /dev/null +++ b/qase-api-client/test/test_user_list_response.py @@ -0,0 +1,64 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.user_list_response import UserListResponse + +class TestUserListResponse(unittest.TestCase): + """UserListResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserListResponse: + """Test UserListResponse + include_optional 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 `UserListResponse` + """ + model = UserListResponse() + if include_optional: + return UserListResponse( + status = True, + result = qase.api_client_v1.models.user_list_response_all_of_result.UserListResponse_allOf_result( + total = 56, + filtered = 56, + count = 56, + entities = [ + qase.api_client_v1.models.user.User( + id = 56, + name = '', + email = '', + title = '', + status = 56, ) + ], ) + ) + else: + return UserListResponse( + ) + """ + + def testUserListResponse(self): + """Test UserListResponse""" + # 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/qase-api-client/test/test_user_list_response_all_of_result.py b/qase-api-client/test/test_user_list_response_all_of_result.py new file mode 100644 index 00000000..843cb4fe --- /dev/null +++ b/qase-api-client/test/test_user_list_response_all_of_result.py @@ -0,0 +1,62 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.user_list_response_all_of_result import UserListResponseAllOfResult + +class TestUserListResponseAllOfResult(unittest.TestCase): + """UserListResponseAllOfResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserListResponseAllOfResult: + """Test UserListResponseAllOfResult + include_optional 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 `UserListResponseAllOfResult` + """ + model = UserListResponseAllOfResult() + if include_optional: + return UserListResponseAllOfResult( + total = 56, + filtered = 56, + count = 56, + entities = [ + qase.api_client_v1.models.user.User( + id = 56, + name = '', + email = '', + title = '', + status = 56, ) + ] + ) + else: + return UserListResponseAllOfResult( + ) + """ + + def testUserListResponseAllOfResult(self): + """Test UserListResponseAllOfResult""" + # 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/qase-api-client/test/test_user_response.py b/qase-api-client/test/test_user_response.py new file mode 100644 index 00000000..1cdc6390 --- /dev/null +++ b/qase-api-client/test/test_user_response.py @@ -0,0 +1,58 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.user_response import UserResponse + +class TestUserResponse(unittest.TestCase): + """UserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserResponse: + """Test UserResponse + include_optional 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 `UserResponse` + """ + model = UserResponse() + if include_optional: + return UserResponse( + status = True, + result = qase.api_client_v1.models.user.User( + id = 56, + name = '', + email = '', + title = '', + status = 56, ) + ) + else: + return UserResponse( + ) + """ + + def testUserResponse(self): + """Test UserResponse""" + # 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/qase-api-client/test/test_users_api.py b/qase-api-client/test/test_users_api.py new file mode 100644 index 00000000..a50fc86d --- /dev/null +++ b/qase-api-client/test/test_users_api.py @@ -0,0 +1,46 @@ +# 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 + + +import unittest + +from qase.api_client_v1.api.users_api import UsersApi + + +class TestUsersApi(unittest.TestCase): + """UsersApi unit test stubs""" + + def setUp(self) -> None: + self.api = UsersApi() + + def tearDown(self) -> None: + pass + + def test_get_user(self) -> None: + """Test case for get_user + + Get a specific user. + """ + pass + + def test_get_users(self) -> None: + """Test case for get_users + + Get all users. + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/qase-api-client/test/test_uuid_response.py b/qase-api-client/test/test_uuid_response.py new file mode 100644 index 00000000..c9f513aa --- /dev/null +++ b/qase-api-client/test/test_uuid_response.py @@ -0,0 +1,54 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.uuid_response import UuidResponse + +class TestUuidResponse(unittest.TestCase): + """UuidResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UuidResponse: + """Test UuidResponse + include_optional 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 `UuidResponse` + """ + model = UuidResponse() + if include_optional: + return UuidResponse( + status = True, + result = qase.api_client_v1.models.uuid_response_all_of_result.UuidResponse_allOf_result( + id = '', ) + ) + else: + return UuidResponse( + ) + """ + + def testUuidResponse(self): + """Test UuidResponse""" + # 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/qase-api-client/test/test_uuid_response1.py b/qase-api-client/test/test_uuid_response1.py new file mode 100644 index 00000000..b08a5deb --- /dev/null +++ b/qase-api-client/test/test_uuid_response1.py @@ -0,0 +1,54 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.uuid_response1 import UuidResponse1 + +class TestUuidResponse1(unittest.TestCase): + """UuidResponse1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UuidResponse1: + """Test UuidResponse1 + include_optional 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 `UuidResponse1` + """ + model = UuidResponse1() + if include_optional: + return UuidResponse1( + status = True, + result = qase.api_client_v1.models.uuid_response_all_of_result.UuidResponse_allOf_result( + id = '', ) + ) + else: + return UuidResponse1( + ) + """ + + def testUuidResponse1(self): + """Test UuidResponse1""" + # 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/qase-api-client/test/test_uuid_response_all_of_result.py b/qase-api-client/test/test_uuid_response_all_of_result.py new file mode 100644 index 00000000..a22bc2c6 --- /dev/null +++ b/qase-api-client/test/test_uuid_response_all_of_result.py @@ -0,0 +1,52 @@ +# 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 + + +import unittest + +from qase.api_client_v1.models.uuid_response_all_of_result import UuidResponseAllOfResult + +class TestUuidResponseAllOfResult(unittest.TestCase): + """UuidResponseAllOfResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UuidResponseAllOfResult: + """Test UuidResponseAllOfResult + include_optional 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 `UuidResponseAllOfResult` + """ + model = UuidResponseAllOfResult() + if include_optional: + return UuidResponseAllOfResult( + id = '' + ) + else: + return UuidResponseAllOfResult( + ) + """ + + def testUuidResponseAllOfResult(self): + """Test UuidResponseAllOfResult""" + # 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/qase-api-v2-client/docs/BaseResponse.md b/qase-api-v2-client/docs/BaseResponse.md new file mode 100644 index 00000000..410cab83 --- /dev/null +++ b/qase-api-v2-client/docs/BaseResponse.md @@ -0,0 +1,29 @@ +# BaseResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] + +## Example + +```python +from qase.api_client_v2.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_from_dict = BaseResponse.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/qase-api-v2-client/docs/CreateResultsRequestV2.md b/qase-api-v2-client/docs/CreateResultsRequestV2.md index eef68d7b..01f5a87a 100644 --- a/qase-api-v2-client/docs/CreateResultsRequestV2.md +++ b/qase-api-v2-client/docs/CreateResultsRequestV2.md @@ -22,7 +22,7 @@ print(CreateResultsRequestV2.to_json()) # convert the object into a dict create_results_request_v2_dict = create_results_request_v2_instance.to_dict() # create an instance of CreateResultsRequestV2 from a dict -create_results_request_v2_form_dict = create_results_request_v2.from_dict(create_results_request_v2_dict) +create_results_request_v2_from_dict = CreateResultsRequestV2.from_dict(create_results_request_v2_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/qase-api-v2-client/docs/RelationSuite.md b/qase-api-v2-client/docs/RelationSuite.md index 6a0b7c4d..ab8df8cd 100644 --- a/qase-api-v2-client/docs/RelationSuite.md +++ b/qase-api-v2-client/docs/RelationSuite.md @@ -22,7 +22,7 @@ print(RelationSuite.to_json()) # convert the object into a dict relation_suite_dict = relation_suite_instance.to_dict() # create an instance of RelationSuite from a dict -relation_suite_form_dict = relation_suite.from_dict(relation_suite_dict) +relation_suite_from_dict = RelationSuite.from_dict(relation_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/qase-api-v2-client/docs/RelationSuiteItem.md b/qase-api-v2-client/docs/RelationSuiteItem.md index 175e61ba..49b74564 100644 --- a/qase-api-v2-client/docs/RelationSuiteItem.md +++ b/qase-api-v2-client/docs/RelationSuiteItem.md @@ -23,7 +23,7 @@ print(RelationSuiteItem.to_json()) # convert the object into a dict relation_suite_item_dict = relation_suite_item_instance.to_dict() # create an instance of RelationSuiteItem from a dict -relation_suite_item_form_dict = relation_suite_item.from_dict(relation_suite_item_dict) +relation_suite_item_from_dict = RelationSuiteItem.from_dict(relation_suite_item_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/qase-api-v2-client/docs/ResultCreate.md b/qase-api-v2-client/docs/ResultCreate.md index b97c771b..b53149ab 100644 --- a/qase-api-v2-client/docs/ResultCreate.md +++ b/qase-api-v2-client/docs/ResultCreate.md @@ -36,7 +36,7 @@ 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) +result_create_from_dict = ResultCreate.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/qase-api-v2-client/docs/ResultCreateBulkResponse.md b/qase-api-v2-client/docs/ResultCreateBulkResponse.md new file mode 100644 index 00000000..f90d1ed5 --- /dev/null +++ b/qase-api-v2-client/docs/ResultCreateBulkResponse.md @@ -0,0 +1,29 @@ +# ResultCreateBulkResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] + +## Example + +```python +from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ResultCreateBulkResponse from a JSON string +result_create_bulk_response_instance = ResultCreateBulkResponse.from_json(json) +# print the JSON string representation of the object +print(ResultCreateBulkResponse.to_json()) + +# convert the object into a dict +result_create_bulk_response_dict = result_create_bulk_response_instance.to_dict() +# create an instance of ResultCreateBulkResponse from a dict +result_create_bulk_response_from_dict = ResultCreateBulkResponse.from_dict(result_create_bulk_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/qase-api-v2-client/docs/ResultCreateFields.md b/qase-api-v2-client/docs/ResultCreateFields.md index 0d1f003b..1c07e4e8 100644 --- a/qase-api-v2-client/docs/ResultCreateFields.md +++ b/qase-api-v2-client/docs/ResultCreateFields.md @@ -33,7 +33,7 @@ print(ResultCreateFields.to_json()) # convert the object into a dict result_create_fields_dict = result_create_fields_instance.to_dict() # create an instance of ResultCreateFields from a dict -result_create_fields_form_dict = result_create_fields.from_dict(result_create_fields_dict) +result_create_fields_from_dict = ResultCreateFields.from_dict(result_create_fields_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/qase-api-v2-client/docs/ResultCreateResponse.md b/qase-api-v2-client/docs/ResultCreateResponse.md new file mode 100644 index 00000000..d97e4cb4 --- /dev/null +++ b/qase-api-v2-client/docs/ResultCreateResponse.md @@ -0,0 +1,30 @@ +# ResultCreateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **bool** | | [optional] +**result** | [**ResultCreateResponseAllOfResult**](ResultCreateResponseAllOfResult.md) | | [optional] + +## Example + +```python +from qase.api_client_v2.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_from_dict = ResultCreateResponse.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/qase-api-v2-client/docs/ResultCreateResponseAllOfResult.md b/qase-api-v2-client/docs/ResultCreateResponseAllOfResult.md new file mode 100644 index 00000000..3098a61c --- /dev/null +++ b/qase-api-v2-client/docs/ResultCreateResponseAllOfResult.md @@ -0,0 +1,30 @@ +# ResultCreateResponseAllOfResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**case_id** | **int** | | [optional] +**hash** | **str** | | [optional] + +## Example + +```python +from qase.api_client_v2.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_from_dict = ResultCreateResponseAllOfResult.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/qase-api-v2-client/docs/ResultExecution.md b/qase-api-v2-client/docs/ResultExecution.md index c92aa093..d06dda70 100644 --- a/qase-api-v2-client/docs/ResultExecution.md +++ b/qase-api-v2-client/docs/ResultExecution.md @@ -27,7 +27,7 @@ print(ResultExecution.to_json()) # convert the object into a dict result_execution_dict = result_execution_instance.to_dict() # create an instance of ResultExecution from a dict -result_execution_form_dict = result_execution.from_dict(result_execution_dict) +result_execution_from_dict = ResultExecution.from_dict(result_execution_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/qase-api-v2-client/docs/ResultRelations.md b/qase-api-v2-client/docs/ResultRelations.md index ca9878ef..c9db0c5d 100644 --- a/qase-api-v2-client/docs/ResultRelations.md +++ b/qase-api-v2-client/docs/ResultRelations.md @@ -22,7 +22,7 @@ print(ResultRelations.to_json()) # convert the object into a dict result_relations_dict = result_relations_instance.to_dict() # create an instance of ResultRelations from a dict -result_relations_form_dict = result_relations.from_dict(result_relations_dict) +result_relations_from_dict = ResultRelations.from_dict(result_relations_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/qase-api-v2-client/docs/ResultStep.md b/qase-api-v2-client/docs/ResultStep.md index 7c26088b..c49adcda 100644 --- a/qase-api-v2-client/docs/ResultStep.md +++ b/qase-api-v2-client/docs/ResultStep.md @@ -24,7 +24,7 @@ print(ResultStep.to_json()) # convert the object into a dict result_step_dict = result_step_instance.to_dict() # create an instance of ResultStep from a dict -result_step_form_dict = result_step.from_dict(result_step_dict) +result_step_from_dict = ResultStep.from_dict(result_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/qase-api-v2-client/docs/ResultStepData.md b/qase-api-v2-client/docs/ResultStepData.md index 99230038..6db9543a 100644 --- a/qase-api-v2-client/docs/ResultStepData.md +++ b/qase-api-v2-client/docs/ResultStepData.md @@ -25,7 +25,7 @@ print(ResultStepData.to_json()) # convert the object into a dict result_step_data_dict = result_step_data_instance.to_dict() # create an instance of ResultStepData from a dict -result_step_data_form_dict = result_step_data.from_dict(result_step_data_dict) +result_step_data_from_dict = ResultStepData.from_dict(result_step_data_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/qase-api-v2-client/docs/ResultStepExecution.md b/qase-api-v2-client/docs/ResultStepExecution.md index 00855a63..e86c30f3 100644 --- a/qase-api-v2-client/docs/ResultStepExecution.md +++ b/qase-api-v2-client/docs/ResultStepExecution.md @@ -27,7 +27,7 @@ print(ResultStepExecution.to_json()) # convert the object into a dict result_step_execution_dict = result_step_execution_instance.to_dict() # create an instance of ResultStepExecution from a dict -result_step_execution_form_dict = result_step_execution.from_dict(result_step_execution_dict) +result_step_execution_from_dict = ResultStepExecution.from_dict(result_step_execution_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/qase-api-v2-client/docs/ResultStepStatus.md b/qase-api-v2-client/docs/ResultStepStatus.md index 51a0710f..c760a10e 100644 --- a/qase-api-v2-client/docs/ResultStepStatus.md +++ b/qase-api-v2-client/docs/ResultStepStatus.md @@ -1,10 +1,17 @@ # ResultStepStatus -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `PASSED` (value: `'passed'`) + +* `FAILED` (value: `'failed'`) + +* `BLOCKED` (value: `'blocked'`) + +* `SKIPPED` (value: `'skipped'`) + +* `IN_PROGRESS` (value: `'in_progress'`) [[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/qase-api-v2-client/docs/ResultStepsType.md b/qase-api-v2-client/docs/ResultStepsType.md index 13edc440..2e4f9647 100644 --- a/qase-api-v2-client/docs/ResultStepsType.md +++ b/qase-api-v2-client/docs/ResultStepsType.md @@ -1,10 +1,11 @@ # ResultStepsType -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `CLASSIC` (value: `'classic'`) + +* `GHERKIN` (value: `'gherkin'`) [[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/qase-api-v2-client/docs/ResultsApi.md b/qase-api-v2-client/docs/ResultsApi.md index fe621193..0bcc0902 100644 --- a/qase-api-v2-client/docs/ResultsApi.md +++ b/qase-api-v2-client/docs/ResultsApi.md @@ -9,11 +9,14 @@ Method | HTTP request | Description # **create_result_v2** -> create_result_v2(project_code, run_id, result_create) +> ResultCreateResponse create_result_v2(project_code, run_id, result_create) Create test run result -This method allows to create single test run result. 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. +This method allows to create single test run result. + +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 @@ -22,6 +25,7 @@ This method allows to create single test run result. If there is no free space ```python import qase.api_client_v2 from qase.api_client_v2.models.result_create import ResultCreate +from qase.api_client_v2.models.result_create_response import ResultCreateResponse from qase.api_client_v2.rest import ApiException from pprint import pprint @@ -52,7 +56,9 @@ with qase.api_client_v2.ApiClient(configuration) as api_client: try: # Create test run result - api_instance.create_result_v2(project_code, run_id, result_create) + api_response = api_instance.create_result_v2(project_code, run_id, result_create) + print("The response of ResultsApi->create_result_v2:\n") + pprint(api_response) except Exception as e: print("Exception when calling ResultsApi->create_result_v2: %s\n" % e) ``` @@ -70,7 +76,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**ResultCreateResponse**](ResultCreateResponse.md) ### Authorization @@ -79,7 +85,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -95,11 +101,14 @@ void (empty response body) [[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_results_v2** -> create_results_v2(project_code, run_id, create_results_request_v2) +> ResultCreateBulkResponse create_results_v2(project_code, run_id, create_results_request_v2) Bulk create test run result -This method allows to create several test run results at once. 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. +This method allows to create several test run results at once. + +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 @@ -108,6 +117,7 @@ This method allows to create several test run results at once. If there is no f ```python import qase.api_client_v2 from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 +from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse from qase.api_client_v2.rest import ApiException from pprint import pprint @@ -138,7 +148,9 @@ with qase.api_client_v2.ApiClient(configuration) as api_client: try: # Bulk create test run result - api_instance.create_results_v2(project_code, run_id, create_results_request_v2) + api_response = api_instance.create_results_v2(project_code, run_id, create_results_request_v2) + print("The response of ResultsApi->create_results_v2:\n") + pprint(api_response) except Exception as e: print("Exception when calling ResultsApi->create_results_v2: %s\n" % e) ``` @@ -156,7 +168,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**ResultCreateBulkResponse**](ResultCreateBulkResponse.md) ### Authorization @@ -165,7 +177,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details diff --git a/qase-api-v2-client/pyproject.toml b/qase-api-v2-client/pyproject.toml index 9269d0be..44394a3a 100644 --- a/qase-api-v2-client/pyproject.toml +++ b/qase-api-v2-client/pyproject.toml @@ -4,28 +4,29 @@ build-backend = "setuptools.build_meta" [project] name = "qase-api-v2-client" -version = "1.2.2" +version = "2.0.0" description = "Qase TestOps API V2 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", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Typing :: Typed", ] urls = {"Homepage" = "https://github.com/qase-tms/qase-python"} keywords = ["OpenAPI", "OpenAPI-Generator", "Qase.io TestOps API"] -requires-python = ">=3.7" +requires-python = ">=3.9" dependencies = [ "urllib3 >= 1.25.3, <= 2.5.0", "python-dateutil", "pydantic >= 2", "typing-extensions >= 4.7.1", + "lazy-imports >= 1, < 2", ] [project.optional-dependencies] @@ -34,8 +35,8 @@ dependencies = [ [tool.tox] legacy_tox_ini = """ [tox] -minversion = 3.7 -envlist = py{37,38,39,310,311} +minversion = 3.9 +envlist = py{39,310,311,312,313} [testenv] deps = diff --git a/qase-api-v2-client/src/qase/api_client_v2/__init__.py b/qase-api-v2-client/src/qase/api_client_v2/__init__.py index 984b5cd6..a45ab66f 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/__init__.py +++ b/qase-api-v2-client/src/qase/api_client_v2/__init__.py @@ -17,30 +17,111 @@ __version__ = "1.0.0" -# import apis into sdk package -from qase.api_client_v2.api.results_api import ResultsApi +# Define package exports +__all__ = [ + "ResultsApi", + "ApiResponse", + "ApiClient", + "Configuration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "BaseResponse", + "CreateResultsRequestV2", + "RelationSuite", + "RelationSuiteItem", + "ResultCreate", + "ResultCreateBulkResponse", + "ResultCreateFields", + "ResultCreateResponse", + "ResultCreateResponseAllOfResult", + "ResultExecution", + "ResultRelations", + "ResultStep", + "ResultStepData", + "ResultStepExecution", + "ResultStepStatus", + "ResultStepsType", +] + +if __import__("typing").TYPE_CHECKING: + # import apis into sdk package + from qase.api_client_v2.api.results_api import ResultsApi as ResultsApi + + # import ApiClient + from qase.api_client_v2.api_response import ApiResponse as ApiResponse + from qase.api_client_v2.api_client import ApiClient as ApiClient + from qase.api_client_v2.configuration import Configuration as Configuration + from qase.api_client_v2.exceptions import OpenApiException as OpenApiException + from qase.api_client_v2.exceptions import ApiTypeError as ApiTypeError + from qase.api_client_v2.exceptions import ApiValueError as ApiValueError + from qase.api_client_v2.exceptions import ApiKeyError as ApiKeyError + from qase.api_client_v2.exceptions import ApiAttributeError as ApiAttributeError + from qase.api_client_v2.exceptions import ApiException as ApiException + + # import models into sdk package + from qase.api_client_v2.models.base_response import BaseResponse as BaseResponse + from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 as CreateResultsRequestV2 + from qase.api_client_v2.models.relation_suite import RelationSuite as RelationSuite + from qase.api_client_v2.models.relation_suite_item import RelationSuiteItem as RelationSuiteItem + from qase.api_client_v2.models.result_create import ResultCreate as ResultCreate + from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse as ResultCreateBulkResponse + from qase.api_client_v2.models.result_create_fields import ResultCreateFields as ResultCreateFields + from qase.api_client_v2.models.result_create_response import ResultCreateResponse as ResultCreateResponse + from qase.api_client_v2.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult as ResultCreateResponseAllOfResult + from qase.api_client_v2.models.result_execution import ResultExecution as ResultExecution + from qase.api_client_v2.models.result_relations import ResultRelations as ResultRelations + from qase.api_client_v2.models.result_step import ResultStep as ResultStep + from qase.api_client_v2.models.result_step_data import ResultStepData as ResultStepData + from qase.api_client_v2.models.result_step_execution import ResultStepExecution as ResultStepExecution + from qase.api_client_v2.models.result_step_status import ResultStepStatus as ResultStepStatus + from qase.api_client_v2.models.result_steps_type import ResultStepsType as ResultStepsType + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + ("__version__", __version__), + ("__all__", __all__), + """# import apis into sdk package +from qase.api_client_v2.api.results_api import ResultsApi as ResultsApi # import ApiClient -from qase.api_client_v2.api_response import ApiResponse -from qase.api_client_v2.api_client import ApiClient -from qase.api_client_v2.configuration import Configuration -from qase.api_client_v2.exceptions import OpenApiException -from qase.api_client_v2.exceptions import ApiTypeError -from qase.api_client_v2.exceptions import ApiValueError -from qase.api_client_v2.exceptions import ApiKeyError -from qase.api_client_v2.exceptions import ApiAttributeError -from qase.api_client_v2.exceptions import ApiException +from qase.api_client_v2.api_response import ApiResponse as ApiResponse +from qase.api_client_v2.api_client import ApiClient as ApiClient +from qase.api_client_v2.configuration import Configuration as Configuration +from qase.api_client_v2.exceptions import OpenApiException as OpenApiException +from qase.api_client_v2.exceptions import ApiTypeError as ApiTypeError +from qase.api_client_v2.exceptions import ApiValueError as ApiValueError +from qase.api_client_v2.exceptions import ApiKeyError as ApiKeyError +from qase.api_client_v2.exceptions import ApiAttributeError as ApiAttributeError +from qase.api_client_v2.exceptions import ApiException as ApiException # import models into sdk package -from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 -from qase.api_client_v2.models.relation_suite import RelationSuite -from qase.api_client_v2.models.relation_suite_item import RelationSuiteItem -from qase.api_client_v2.models.result_create import ResultCreate -from qase.api_client_v2.models.result_create_fields import ResultCreateFields -from qase.api_client_v2.models.result_execution import ResultExecution -from qase.api_client_v2.models.result_relations import ResultRelations -from qase.api_client_v2.models.result_step import ResultStep -from qase.api_client_v2.models.result_step_data import ResultStepData -from qase.api_client_v2.models.result_step_execution import ResultStepExecution -from qase.api_client_v2.models.result_step_status import ResultStepStatus -from qase.api_client_v2.models.result_steps_type import ResultStepsType +from qase.api_client_v2.models.base_response import BaseResponse as BaseResponse +from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 as CreateResultsRequestV2 +from qase.api_client_v2.models.relation_suite import RelationSuite as RelationSuite +from qase.api_client_v2.models.relation_suite_item import RelationSuiteItem as RelationSuiteItem +from qase.api_client_v2.models.result_create import ResultCreate as ResultCreate +from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse as ResultCreateBulkResponse +from qase.api_client_v2.models.result_create_fields import ResultCreateFields as ResultCreateFields +from qase.api_client_v2.models.result_create_response import ResultCreateResponse as ResultCreateResponse +from qase.api_client_v2.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult as ResultCreateResponseAllOfResult +from qase.api_client_v2.models.result_execution import ResultExecution as ResultExecution +from qase.api_client_v2.models.result_relations import ResultRelations as ResultRelations +from qase.api_client_v2.models.result_step import ResultStep as ResultStep +from qase.api_client_v2.models.result_step_data import ResultStepData as ResultStepData +from qase.api_client_v2.models.result_step_execution import ResultStepExecution as ResultStepExecution +from qase.api_client_v2.models.result_step_status import ResultStepStatus as ResultStepStatus +from qase.api_client_v2.models.result_steps_type import ResultStepsType as ResultStepsType + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-v2-client/src/qase/api_client_v2/api/__init__.py b/qase-api-v2-client/src/qase/api_client_v2/api/__init__.py index 199bb104..1c4e5149 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/api/__init__.py +++ b/qase-api-v2-client/src/qase/api_client_v2/api/__init__.py @@ -1,5 +1,20 @@ # flake8: noqa -# import apis into api package +if __import__("typing").TYPE_CHECKING: + # import apis into api package + from qase.api_client_v2.api.results_api import ResultsApi + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import apis into api package from qase.api_client_v2.api.results_api import ResultsApi +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-v2-client/src/qase/api_client_v2/api/results_api.py b/qase-api-v2-client/src/qase/api_client_v2/api/results_api.py index b0402c41..ec5a3f29 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/api/results_api.py +++ b/qase-api-v2-client/src/qase/api_client_v2/api/results_api.py @@ -20,6 +20,8 @@ from pydantic import StrictInt, StrictStr from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 from qase.api_client_v2.models.result_create import ResultCreate +from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse +from qase.api_client_v2.models.result_create_response import ResultCreateResponse from qase.api_client_v2.api_client import ApiClient, RequestSerialized from qase.api_client_v2.api_response import ApiResponse @@ -57,7 +59,7 @@ def create_result_v2( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: + ) -> ResultCreateResponse: """Create test run result This method allows to create single test run result. 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. @@ -101,7 +103,7 @@ def create_result_v2( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateResponse", '400': None, '401': None, '403': None, @@ -137,7 +139,7 @@ def create_result_v2_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: + ) -> ApiResponse[ResultCreateResponse]: """Create test run result This method allows to create single test run result. 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. @@ -181,7 +183,7 @@ def create_result_v2_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateResponse", '400': None, '401': None, '403': None, @@ -261,7 +263,7 @@ def create_result_v2_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateResponse", '400': None, '401': None, '403': None, @@ -295,7 +297,9 @@ def _create_result_v2_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -311,6 +315,13 @@ def _create_result_v2_serialize( _body_params = result_create + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -367,7 +378,7 @@ def create_results_v2( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: + ) -> ResultCreateBulkResponse: """Bulk create test run result This method allows to create several test run results at once. 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. @@ -411,7 +422,7 @@ def create_results_v2( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateBulkResponse", '400': None, '401': None, '403': None, @@ -447,7 +458,7 @@ def create_results_v2_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: + ) -> ApiResponse[ResultCreateBulkResponse]: """Bulk create test run result This method allows to create several test run results at once. 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. @@ -491,7 +502,7 @@ def create_results_v2_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateBulkResponse", '400': None, '401': None, '403': None, @@ -571,7 +582,7 @@ def create_results_v2_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': None, + '202': "ResultCreateBulkResponse", '400': None, '401': None, '403': None, @@ -605,7 +616,9 @@ def _create_results_v2_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, str] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -621,6 +634,13 @@ def _create_results_v2_serialize( _body_params = create_results_request_v2 + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/qase-api-v2-client/src/qase/api_client_v2/api_client.py b/qase-api-v2-client/src/qase/api_client_v2/api_client.py index 6cf99e80..df9a2cab 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/api_client.py +++ b/qase-api-v2-client/src/qase/api_client_v2/api_client.py @@ -16,14 +16,17 @@ import datetime from dateutil.parser import parse from enum import Enum +import decimal import json import mimetypes import os import re import tempfile +import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict +from typing import Tuple, Optional, List, Dict, Union +from pydantic import SecretStr from qase.api_client_v2.configuration import Configuration from qase.api_client_v2.api_response import ApiResponse, T as ApiResponseT @@ -66,6 +69,7 @@ class ApiClient: 'bool': bool, 'date': datetime.date, 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, 'object': object, } _pool = None @@ -208,7 +212,8 @@ def param_serialize( post_params, collection_formats ) - post_params.extend(self.files_parameters(files)) + if files: + post_params.extend(self.files_parameters(files)) # auth setting self.update_params_for_auth( @@ -226,7 +231,7 @@ def param_serialize( body = self.sanitize_for_serialization(body) # request url - if _host is None: + if _host is None or self.configuration.ignore_operation_servers: url = self.configuration.host + resource_path else: # use server/host defined in path or operation instead @@ -313,7 +318,7 @@ def response_deserialize( 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) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -333,9 +338,11 @@ def sanitize_for_serialization(self, obj): """Builds a JSON POST object. If obj is None, return None. + If obj is SecretStr, return obj.get_secret_value() 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 decimal.Decimal return string representation. 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. @@ -345,8 +352,14 @@ def sanitize_for_serialization(self, obj): """ if obj is None: return None + elif isinstance(obj, Enum): + return obj.value + elif isinstance(obj, SecretStr): + return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [ self.sanitize_for_serialization(sub_obj) for sub_obj in obj @@ -357,6 +370,8 @@ def sanitize_for_serialization(self, obj): ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) elif isinstance(obj, dict): obj_dict = obj @@ -366,28 +381,49 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - obj_dict = obj.to_dict() + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() + else: + obj_dict = obj.__dict__ + + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize(self, response_text, response_type): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """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. + :param content_type: content type of response. :return: deserialized object. """ # fetch data from response object - try: - data = json.loads(response_text) - except ValueError: + if content_type is None: + try: + data = json.loads(response_text) + except ValueError: + data = response_text + elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + if response_text == "": + data = "" + else: + data = json.loads(response_text) + elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE): data = response_text + else: + raise ApiException( + status=0, + reason="Unsupported content type: {0}".format(content_type) + ) return self.__deserialize(data, response_type) @@ -431,6 +467,8 @@ def __deserialize(self, data, klass): return self.__deserialize_date(data) elif klass == datetime.datetime: return self.__deserialize_datetime(data) + elif klass == decimal.Decimal: + return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -487,7 +525,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == 'ssv': delimiter = ' ' @@ -505,31 +543,39 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files=None): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """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: - 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])]) - ) - + for k, v in files.items(): + if isinstance(v, str): + with open(v, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + elif isinstance(v, bytes): + filename = k + filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue + else: + raise ValueError("Unsupported file value") + 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]: diff --git a/qase-api-v2-client/src/qase/api_client_v2/configuration.py b/qase-api-v2-client/src/qase/api_client_v2/configuration.py index 07d0883a..d65a50f4 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/configuration.py +++ b/qase-api-v2-client/src/qase/api_client_v2/configuration.py @@ -14,14 +14,16 @@ import copy +import http.client as httplib import logging from logging import FileHandler import multiprocessing import sys -from typing import Optional +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union +from typing_extensions import NotRequired, Self + import urllib3 -import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', 'exclusiveMaximum', @@ -29,10 +31,114 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } +ServerVariablesT = Dict[str, str] + +GenericAuthSetting = TypedDict( + "GenericAuthSetting", + { + "type": str, + "in": str, + "key": str, + "value": str, + }, +) + + +OAuth2AuthSetting = TypedDict( + "OAuth2AuthSetting", + { + "type": Literal["oauth2"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +APIKeyAuthSetting = TypedDict( + "APIKeyAuthSetting", + { + "type": Literal["api_key"], + "in": str, + "key": str, + "value": Optional[str], + }, +) + + +BasicAuthSetting = TypedDict( + "BasicAuthSetting", + { + "type": Literal["basic"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": Optional[str], + }, +) + + +BearerFormatAuthSetting = TypedDict( + "BearerFormatAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "format": Literal["JWT"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +BearerAuthSetting = TypedDict( + "BearerAuthSetting", + { + "type": Literal["bearer"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": str, + }, +) + + +HTTPSignatureAuthSetting = TypedDict( + "HTTPSignatureAuthSetting", + { + "type": Literal["http-signature"], + "in": Literal["header"], + "key": Literal["Authorization"], + "value": None, + }, +) + + +AuthSettings = TypedDict( + "AuthSettings", + { + "TokenAuth": APIKeyAuthSetting, + }, + total=False, +) + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] + + class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :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. @@ -55,6 +161,9 @@ class Configuration: values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. + :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: @@ -78,16 +187,27 @@ class Configuration: 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: + _default: ClassVar[Optional[Self]] = None + + def __init__( + self, + host: Optional[str]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, + username: Optional[str]=None, + password: Optional[str]=None, + access_token: Optional[str]=None, + server_index: Optional[int]=None, + server_variables: Optional[ServerVariablesT]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + ignore_operation_servers: bool=False, + ssl_ca_cert: Optional[str]=None, + retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, + *, + debug: Optional[bool] = None, + ) -> None: """Constructor """ self._base_path = "https://api.qase.io/v2" if host is None else host @@ -101,6 +221,9 @@ def __init__(self, host=None, self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -144,7 +267,10 @@ def __init__(self, host=None, self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -156,6 +282,10 @@ def __init__(self, host=None, self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ @@ -187,7 +317,7 @@ def __init__(self, host=None, self.safe_chars_for_path_param = '' """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation @@ -205,7 +335,7 @@ def __init__(self, host=None, """date format """ - def __deepcopy__(self, memo): + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -219,11 +349,11 @@ def __deepcopy__(self, memo): result.debug = self.debug return result - def __setattr__(self, name, value): + def __setattr__(self, name: str, value: Any) -> None: object.__setattr__(self, name, value) @classmethod - def set_default(cls, default): + def set_default(cls, default: Optional[Self]) -> None: """Set default instance of configuration. It stores default configuration, which can be @@ -234,7 +364,7 @@ def set_default(cls, default): cls._default = default @classmethod - def get_default_copy(cls): + def get_default_copy(cls) -> Self: """Deprecated. Please use `get_default` instead. Deprecated. Please use `get_default` instead. @@ -244,7 +374,7 @@ def get_default_copy(cls): return cls.get_default() @classmethod - def get_default(cls): + def get_default(cls) -> Self: """Return the default configuration. This method returns newly created, based on default constructor, @@ -254,11 +384,11 @@ def get_default(cls): :return: The configuration object. """ if cls._default is None: - cls._default = Configuration() + cls._default = cls() return cls._default @property - def logger_file(self): + def logger_file(self) -> Optional[str]: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -270,7 +400,7 @@ def logger_file(self): return self.__logger_file @logger_file.setter - def logger_file(self, value): + def logger_file(self, value: Optional[str]) -> None: """The logger file. If the logger_file is None, then add stream handler and remove file @@ -289,7 +419,7 @@ def logger_file(self, value): logger.addHandler(self.logger_file_handler) @property - def debug(self): + def debug(self) -> bool: """Debug status :param value: The debug status, True or False. @@ -298,7 +428,7 @@ def debug(self): return self.__debug @debug.setter - def debug(self, value): + def debug(self, value: bool) -> None: """Debug status :param value: The debug status, True or False. @@ -320,7 +450,7 @@ def debug(self, value): httplib.HTTPConnection.debuglevel = 0 @property - def logger_format(self): + def logger_format(self) -> str: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -331,7 +461,7 @@ def logger_format(self): return self.__logger_format @logger_format.setter - def logger_format(self, value): + def logger_format(self, value: str) -> None: """The logger format. The logger_formatter will be updated when sets logger_format. @@ -342,7 +472,7 @@ def logger_format(self, value): self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier, alias=None): + def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -359,7 +489,9 @@ def get_api_key_with_prefix(self, identifier, alias=None): else: return key - def get_basic_auth_token(self): + return None + + def get_basic_auth_token(self) -> Optional[str]: """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. @@ -374,12 +506,12 @@ def get_basic_auth_token(self): basic_auth=username + ':' + password ).get('authorization') - def auth_settings(self): + def auth_settings(self)-> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ - auth = {} + auth: AuthSettings = {} if 'TokenAuth' in self.api_key: auth['TokenAuth'] = { 'type': 'api_key', @@ -391,7 +523,7 @@ def auth_settings(self): } return auth - def to_debug_report(self): + def to_debug_report(self) -> str: """Gets the essential information for debugging. :return: The report for debugging. @@ -403,7 +535,7 @@ def to_debug_report(self): "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -415,7 +547,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT]=None, + servers: Optional[List[HostSetting]]=None, + ) -> str: """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 @@ -455,12 +592,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/qase-api-v2-client/src/qase/api_client_v2/exceptions.py b/qase-api-v2-client/src/qase/api_client_v2/exceptions.py index cad1cd48..5d3c9b82 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/exceptions.py +++ b/qase-api-v2-client/src/qase/api_client_v2/exceptions.py @@ -151,6 +151,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(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) @@ -189,6 +196,16 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/__init__.py b/qase-api-v2-client/src/qase/api_client_v2/models/__init__.py index 3b5ffaa3..9e2213ed 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/models/__init__.py +++ b/qase-api-v2-client/src/qase/api_client_v2/models/__init__.py @@ -14,12 +14,41 @@ """ # noqa: E501 -# import models into model package +if __import__("typing").TYPE_CHECKING: + # import models into model package + from qase.api_client_v2.models.base_response import BaseResponse + from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 + from qase.api_client_v2.models.relation_suite import RelationSuite + from qase.api_client_v2.models.relation_suite_item import RelationSuiteItem + from qase.api_client_v2.models.result_create import ResultCreate + from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse + from qase.api_client_v2.models.result_create_fields import ResultCreateFields + from qase.api_client_v2.models.result_create_response import ResultCreateResponse + from qase.api_client_v2.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult + from qase.api_client_v2.models.result_execution import ResultExecution + from qase.api_client_v2.models.result_relations import ResultRelations + from qase.api_client_v2.models.result_step import ResultStep + from qase.api_client_v2.models.result_step_data import ResultStepData + from qase.api_client_v2.models.result_step_execution import ResultStepExecution + from qase.api_client_v2.models.result_step_status import ResultStepStatus + from qase.api_client_v2.models.result_steps_type import ResultStepsType + +else: + from lazy_imports import LazyModule, as_package, load + + load( + LazyModule( + *as_package(__file__), + """# import models into model package +from qase.api_client_v2.models.base_response import BaseResponse from qase.api_client_v2.models.create_results_request_v2 import CreateResultsRequestV2 from qase.api_client_v2.models.relation_suite import RelationSuite from qase.api_client_v2.models.relation_suite_item import RelationSuiteItem from qase.api_client_v2.models.result_create import ResultCreate +from qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse from qase.api_client_v2.models.result_create_fields import ResultCreateFields +from qase.api_client_v2.models.result_create_response import ResultCreateResponse +from qase.api_client_v2.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult from qase.api_client_v2.models.result_execution import ResultExecution from qase.api_client_v2.models.result_relations import ResultRelations from qase.api_client_v2.models.result_step import ResultStep @@ -27,3 +56,9 @@ from qase.api_client_v2.models.result_step_execution import ResultStepExecution from qase.api_client_v2.models.result_step_status import ResultStepStatus from qase.api_client_v2.models.result_steps_type import ResultStepsType + +""", + name=__name__, + doc=__doc__, + ) + ) diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/base_response.py b/qase-api-v2-client/src/qase/api_client_v2/models/base_response.py new file mode 100644 index 00000000..c00cbf4e --- /dev/null +++ b/qase-api-v2-client/src/qase/api_client_v2/models/base_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BaseResponse(BaseModel): + """ + BaseResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + 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) -> Optional[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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[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/qase-api-v2-client/src/qase/api_client_v2/models/create_results_request_v2.py b/qase-api-v2-client/src/qase/api_client_v2/models/create_results_request_v2.py index e51bdc7e..70ff03fc 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/models/create_results_request_v2.py +++ b/qase-api-v2-client/src/qase/api_client_v2/models/create_results_request_v2.py @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) _dict['results'] = _items return _dict diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/relation_suite.py b/qase-api-v2-client/src/qase/api_client_v2/models/relation_suite.py index 87086283..50268c51 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/models/relation_suite.py +++ b/qase-api-v2-client/src/qase/api_client_v2/models/relation_suite.py @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/result_create.py b/qase-api-v2-client/src/qase/api_client_v2/models/result_create.py index cb24dd67..a0920832 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/models/result_create.py +++ b/qase-api-v2-client/src/qase/api_client_v2/models/result_create.py @@ -97,9 +97,9 @@ def to_dict(self) -> Dict[str, Any]: # 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()) + for _item_steps in self.steps: + if _item_steps: + _items.append(_item_steps.to_dict()) _dict['steps'] = _items # override the default output from pydantic by calling `to_dict()` of relations if self.relations: diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/result_create_bulk_response.py b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_bulk_response.py new file mode 100644 index 00000000..bd93be54 --- /dev/null +++ b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_bulk_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ResultCreateBulkResponse(BaseModel): + """ + ResultCreateBulkResponse + """ # noqa: E501 + status: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + 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) -> Optional[Self]: + """Create an instance of ResultCreateBulkResponse 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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResultCreateBulkResponse 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/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response.py b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response.py new file mode 100644 index 00000000..c24f1af5 --- /dev/null +++ b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from qase.api_client_v2.models.result_create_response_all_of_result import ResultCreateResponseAllOfResult +from typing import Optional, Set +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 = ConfigDict( + 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) -> Optional[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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + 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: Optional[Dict[str, Any]]) -> Optional[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["result"]) if obj.get("result") is not None else None + }) + return _obj + + diff --git a/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response_all_of_result.py b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response_all_of_result.py new file mode 100644 index 00000000..44d4fcc6 --- /dev/null +++ b/qase-api-v2-client/src/qase/api_client_v2/models/result_create_response_all_of_result.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +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 = ConfigDict( + 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) -> Optional[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. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if case_id (nullable) is None + # and model_fields_set contains the field + if self.case_id is None and "case_id" in self.model_fields_set: + _dict['case_id'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[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/qase-api-v2-client/src/qase/api_client_v2/rest.py b/qase-api-v2-client/src/qase/api_client_v2/rest.py index ce418ad3..0e681d6c 100644 --- a/qase-api-v2-client/src/qase/api_client_v2/rest.py +++ b/qase-api-v2-client/src/qase/api_client_v2/rest.py @@ -77,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( @@ -203,6 +204,8 @@ def request( # Content-Type which generated by urllib3 will be # overwritten. del headers['Content-Type'] + # Ensures that dict objects are serialized + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, @@ -224,7 +227,7 @@ def request( headers=headers, preload_content=False ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, diff --git a/qase-api-v2-client/test/test_base_response.py b/qase-api-v2-client/test/test_base_response.py new file mode 100644 index 00000000..2566f5c7 --- /dev/null +++ b/qase-api-v2-client/test/test_base_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 qase.api_client_v2.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_optional 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/qase-api-v2-client/test/test_create_results_request_v2.py b/qase-api-v2-client/test/test_create_results_request_v2.py index f5b4ffde..3b13a56b 100644 --- a/qase-api-v2-client/test/test_create_results_request_v2.py +++ b/qase-api-v2-client/test/test_create_results_request_v2.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateResultsRequestV2: """Test CreateResultsRequestV2 - include_option is a boolean, when False only required + include_optional 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 `CreateResultsRequestV2` @@ -37,12 +37,15 @@ def make_instance(self, include_optional) -> CreateResultsRequestV2: if include_optional: return CreateResultsRequestV2( results = [ - qase.models.result_create.ResultCreate( + qase.api_client_v2.models.result_create.ResultCreate( id = '', title = '', signature = '', testops_id = 56, - execution = qase.models.result_execution.ResultExecution( + testops_ids = [ + 56 + ], + execution = qase.api_client_v2.models.result_execution.ResultExecution( start_time = 1.337, end_time = 1.337, status = '', @@ -56,8 +59,8 @@ def make_instance(self, include_optional) -> CreateResultsRequestV2: '' ], steps = [ - qase.models.result_step.ResultStep( - data = qase.models.result_step_data.ResultStepData( + qase.api_client_v2.models.result_step.ResultStep( + data = qase.api_client_v2.models.result_step_data.ResultStepData( action = '', expected_result = '', input_data = '', ), ) @@ -66,17 +69,20 @@ def make_instance(self, include_optional) -> CreateResultsRequestV2: params = { 'key' : '' }, - author = '', - relations = qase.models.relation.Relation( - suite = qase.models.relation_suite.RelationSuite( + param_groups = [ + [ + '' + ] + ], + relations = qase.api_client_v2.models.relation.Relation( + suite = qase.api_client_v2.models.relation_suite.RelationSuite( data = [ - qase.models.relation_suite_item.RelationSuiteItem( + qase.api_client_v2.models.relation_suite_item.RelationSuiteItem( title = '', public_id = 56, ) ], ), ), - muted = True, message = '', - created_at = 1.337, ) + defect = True, ) ] ) else: diff --git a/qase-api-v2-client/test/test_relation_suite.py b/qase-api-v2-client/test/test_relation_suite.py index b89b54cf..cd2deae0 100644 --- a/qase-api-v2-client/test/test_relation_suite.py +++ b/qase-api-v2-client/test/test_relation_suite.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RelationSuite: """Test RelationSuite - include_option is a boolean, when False only required + include_optional 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 `RelationSuite` @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> RelationSuite: if include_optional: return RelationSuite( data = [ - qase.models.relation_suite_item.RelationSuiteItem( + qase.api_client_v2.models.relation_suite_item.RelationSuiteItem( title = '', public_id = 56, ) ] @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> RelationSuite: else: return RelationSuite( data = [ - qase.models.relation_suite_item.RelationSuiteItem( + qase.api_client_v2.models.relation_suite_item.RelationSuiteItem( title = '', public_id = 56, ) ], diff --git a/qase-api-v2-client/test/test_relation_suite_item.py b/qase-api-v2-client/test/test_relation_suite_item.py index 37dc92db..3f200aa0 100644 --- a/qase-api-v2-client/test/test_relation_suite_item.py +++ b/qase-api-v2-client/test/test_relation_suite_item.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> RelationSuiteItem: """Test RelationSuiteItem - include_option is a boolean, when False only required + include_optional 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 `RelationSuiteItem` diff --git a/qase-api-v2-client/test/test_result_create.py b/qase-api-v2-client/test/test_result_create.py index 38948330..ac19bd41 100644 --- a/qase-api-v2-client/test/test_result_create.py +++ b/qase-api-v2-client/test/test_result_create.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultCreate: """Test ResultCreate - include_option is a boolean, when False only required + include_optional 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` @@ -40,7 +40,10 @@ def make_instance(self, include_optional) -> ResultCreate: title = '', signature = '', testops_id = 56, - execution = qase.models.result_execution.ResultExecution( + testops_ids = [ + 56 + ], + execution = qase.api_client_v2.models.result_execution.ResultExecution( start_time = 1.337, end_time = 1.337, status = '', @@ -54,15 +57,15 @@ def make_instance(self, include_optional) -> ResultCreate: '' ], steps = [ - qase.models.result_step.ResultStep( - data = qase.models.result_step_data.ResultStepData( + qase.api_client_v2.models.result_step.ResultStep( + data = qase.api_client_v2.models.result_step_data.ResultStepData( action = '', expected_result = '', input_data = '', attachments = [ '' ], ), - execution = qase.models.result_step_execution.ResultStepExecution( + execution = qase.api_client_v2.models.result_step_execution.ResultStepExecution( start_time = 1.337, end_time = 1.337, status = 'passed', @@ -76,22 +79,25 @@ def make_instance(self, include_optional) -> ResultCreate: params = { 'key' : '' }, - author = '', - relations = qase.models.relation.Relation( - suite = qase.models.relation_suite.RelationSuite( + param_groups = [ + [ + '' + ] + ], + relations = qase.api_client_v2.models.relation.Relation( + suite = qase.api_client_v2.models.relation_suite.RelationSuite( data = [ - qase.models.relation_suite_item.RelationSuiteItem( + qase.api_client_v2.models.relation_suite_item.RelationSuiteItem( title = '', public_id = 56, ) ], ), ), - muted = True, message = '', - created_at = 1.337 + defect = True ) else: return ResultCreate( title = '', - execution = qase.models.result_execution.ResultExecution( + execution = qase.api_client_v2.models.result_execution.ResultExecution( start_time = 1.337, end_time = 1.337, status = '', diff --git a/qase-api-v2-client/test/test_result_create_bulk_response.py b/qase-api-v2-client/test/test_result_create_bulk_response.py new file mode 100644 index 00000000..9f20091a --- /dev/null +++ b/qase-api-v2-client/test/test_result_create_bulk_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 qase.api_client_v2.models.result_create_bulk_response import ResultCreateBulkResponse + +class TestResultCreateBulkResponse(unittest.TestCase): + """ResultCreateBulkResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultCreateBulkResponse: + """Test ResultCreateBulkResponse + include_optional 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 `ResultCreateBulkResponse` + """ + model = ResultCreateBulkResponse() + if include_optional: + return ResultCreateBulkResponse( + status = True + ) + else: + return ResultCreateBulkResponse( + ) + """ + + def testResultCreateBulkResponse(self): + """Test ResultCreateBulkResponse""" + # 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/qase-api-v2-client/test/test_result_create_fields.py b/qase-api-v2-client/test/test_result_create_fields.py new file mode 100644 index 00000000..de166689 --- /dev/null +++ b/qase-api-v2-client/test/test_result_create_fields.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 qase.api_client_v2.models.result_create_fields import ResultCreateFields + +class TestResultCreateFields(unittest.TestCase): + """ResultCreateFields unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultCreateFields: + """Test ResultCreateFields + include_optional 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 `ResultCreateFields` + """ + model = ResultCreateFields() + if include_optional: + return ResultCreateFields( + author = '', + description = '', + preconditions = '', + postconditions = '', + layer = '', + severity = '', + priority = '', + behavior = '', + type = '', + muted = '', + is_flaky = '', + executed_by = '' + ) + else: + return ResultCreateFields( + ) + """ + + def testResultCreateFields(self): + """Test ResultCreateFields""" + # 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/qase-api-v2-client/test/test_result_create_response.py b/qase-api-v2-client/test/test_result_create_response.py new file mode 100644 index 00000000..674424a9 --- /dev/null +++ b/qase-api-v2-client/test/test_result_create_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 qase.api_client_v2.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_optional 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 = qase.api_client_v2.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/qase-api-v2-client/test/test_result_create_response_all_of_result.py b/qase-api-v2-client/test/test_result_create_response_all_of_result.py new file mode 100644 index 00000000..4f5930f7 --- /dev/null +++ b/qase-api-v2-client/test/test_result_create_response_all_of_result.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Qase.io TestOps API v2 + + Qase TestOps API v2 Specification. + + The version of the OpenAPI document: 2.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 qase.api_client_v2.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_optional 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/qase-api-v2-client/test/test_result_execution.py b/qase-api-v2-client/test/test_result_execution.py index 3da0b5f8..e38461e1 100644 --- a/qase-api-v2-client/test/test_result_execution.py +++ b/qase-api-v2-client/test/test_result_execution.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultExecution: """Test ResultExecution - include_option is a boolean, when False only required + include_optional 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 `ResultExecution` diff --git a/qase-api-v2-client/test/test_result_relations.py b/qase-api-v2-client/test/test_result_relations.py index d10ade1c..0f9d8b25 100644 --- a/qase-api-v2-client/test/test_result_relations.py +++ b/qase-api-v2-client/test/test_result_relations.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultRelations: """Test ResultRelations - include_option is a boolean, when False only required + include_optional 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 `ResultRelations` @@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> ResultRelations: model = ResultRelations() if include_optional: return ResultRelations( - suite = qase.models.relation_suite.RelationSuite( + suite = qase.api_client_v2.models.relation_suite.RelationSuite( data = [ - qase.models.relation_suite_item.RelationSuiteItem( + qase.api_client_v2.models.relation_suite_item.RelationSuiteItem( title = '', public_id = 56, ) ], ) diff --git a/qase-api-v2-client/test/test_result_step.py b/qase-api-v2-client/test/test_result_step.py index 4ca1bfcf..9133bba7 100644 --- a/qase-api-v2-client/test/test_result_step.py +++ b/qase-api-v2-client/test/test_result_step.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultStep: """Test ResultStep - include_option is a boolean, when False only required + include_optional 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 `ResultStep` @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> ResultStep: model = ResultStep() if include_optional: return ResultStep( - data = qase.models.result_step_data.ResultStepData( + data = qase.api_client_v2.models.result_step_data.ResultStepData( action = '', expected_result = '', input_data = '', attachments = [ '' ], ), - execution = qase.models.result_step_execution.ResultStepExecution( + execution = qase.api_client_v2.models.result_step_execution.ResultStepExecution( start_time = 1.337, end_time = 1.337, status = 'passed', diff --git a/qase-api-v2-client/test/test_result_step_data.py b/qase-api-v2-client/test/test_result_step_data.py index 6f6083a7..7ea85045 100644 --- a/qase-api-v2-client/test/test_result_step_data.py +++ b/qase-api-v2-client/test/test_result_step_data.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultStepData: """Test ResultStepData - include_option is a boolean, when False only required + include_optional 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 `ResultStepData` diff --git a/qase-api-v2-client/test/test_result_step_execution.py b/qase-api-v2-client/test/test_result_step_execution.py index fb7becf3..a7df98ae 100644 --- a/qase-api-v2-client/test/test_result_step_execution.py +++ b/qase-api-v2-client/test/test_result_step_execution.py @@ -28,7 +28,7 @@ def tearDown(self): def make_instance(self, include_optional) -> ResultStepExecution: """Test ResultStepExecution - include_option is a boolean, when False only required + include_optional 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 `ResultStepExecution` diff --git a/qase-api-v2-client/test/test_result_step_status.py b/qase-api-v2-client/test/test_result_step_status.py index 7797a166..c45c1780 100644 --- a/qase-api-v2-client/test/test_result_step_status.py +++ b/qase-api-v2-client/test/test_result_step_status.py @@ -15,6 +15,7 @@ import unittest +from qase.api_client_v2.models.result_step_status import ResultStepStatus class TestResultStepStatus(unittest.TestCase): """ResultStepStatus unit test stubs""" diff --git a/qase-api-v2-client/test/test_result_steps_type.py b/qase-api-v2-client/test/test_result_steps_type.py index 306379bf..6d775de8 100644 --- a/qase-api-v2-client/test/test_result_steps_type.py +++ b/qase-api-v2-client/test/test_result_steps_type.py @@ -15,6 +15,7 @@ import unittest +from qase.api_client_v2.models.result_steps_type import ResultStepsType class TestResultStepsType(unittest.TestCase): """ResultStepsType unit test stubs""" diff --git a/qase-api-v2-client/test/test_results_api.py b/qase-api-v2-client/test/test_results_api.py index 4666da5b..4df2d8d1 100644 --- a/qase-api-v2-client/test/test_results_api.py +++ b/qase-api-v2-client/test/test_results_api.py @@ -15,7 +15,7 @@ import unittest -from qase.api_client_v2.api import ResultsApi +from qase.api_client_v2.api.results_api import ResultsApi class TestResultsApi(unittest.TestCase): @@ -30,14 +30,14 @@ def tearDown(self) -> None: def test_create_result_v2(self) -> None: """Test case for create_result_v2 - (Beta) Create test run result + Create test run result """ pass def test_create_results_v2(self) -> None: """Test case for create_results_v2 - (Beta) Bulk create test run result + Bulk create test run result """ pass