From 42bbbb8cf033d1b41f87b82de2810ac2bc43007c Mon Sep 17 00:00:00 2001 From: "pavel.butuzov" Date: Thu, 26 Mar 2026 09:35:45 +0300 Subject: [PATCH] feat: last cloud support, 24_03 --- .swagger/cloud-swagger.json | 82 +++++- README.md | 5 +- docs/ApiV2TestResultsSearchPostRequest.md | 1 + docs/ApiV2WorkItemsPostRequest.md | 1 + docs/CreateWorkItemApiModel.md | 1 + ...ualRerunSelectTestResultsApiModelFilter.md | 1 + docs/ProjectModel.md | 2 +- docs/TestResultsFilterApiModel.md | 1 + docs/TestResultsSelectApiModelFilter.md | 1 + docs/UpdateWorkItemApiModel.md | 1 + docs/UpdateWorkItemRequest.md | 1 + docs/WorkItemApiResult.md | 1 + docs/WorkItemModel.md | 1 + docs/WorkItemParameterKeyApiModel.md | 11 + docs/WorkItemParameterKeyApiResult.md | 11 + docs/WorkItemParameterKeyModel.md | 11 + docs/WorkItemsApi.md | 6 +- genConfig.yml | 2 +- run.sh | 2 +- setup.py | 2 +- src/testit_api_client/__init__.py | 2 +- src/testit_api_client/api/work_items_api.py | 4 +- src/testit_api_client/api_client.py | 2 +- src/testit_api_client/configuration.py | 2 +- ...api_v2_test_results_search_post_request.py | 6 + .../model/api_v2_work_items_post_request.py | 6 + .../model/create_work_item_api_model.py | 6 + ...un_select_test_results_api_model_filter.py | 6 + src/testit_api_client/model/project_model.py | 4 +- .../model/test_results_filter_api_model.py | 6 + .../test_results_select_api_model_filter.py | 6 + .../model/update_work_item_api_model.py | 6 + .../model/update_work_item_request.py | 6 + .../model/work_item_api_result.py | 12 +- .../model/work_item_model.py | 12 +- .../work_item_parameter_key_api_model.py | 263 ++++++++++++++++++ .../work_item_parameter_key_api_result.py | 263 ++++++++++++++++++ .../model/work_item_parameter_key_model.py | 263 ++++++++++++++++++ src/testit_api_client/models/__init__.py | 3 + 39 files changed, 1002 insertions(+), 20 deletions(-) create mode 100644 docs/WorkItemParameterKeyApiModel.md create mode 100644 docs/WorkItemParameterKeyApiResult.md create mode 100644 docs/WorkItemParameterKeyModel.md create mode 100644 src/testit_api_client/model/work_item_parameter_key_api_model.py create mode 100644 src/testit_api_client/model/work_item_parameter_key_api_result.py create mode 100644 src/testit_api_client/model/work_item_parameter_key_model.py diff --git a/.swagger/cloud-swagger.json b/.swagger/cloud-swagger.json index b7ed1e4..875774c 100644 --- a/.swagger/cloud-swagger.json +++ b/.swagger/cloud-swagger.json @@ -29209,7 +29209,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WorkItemModel" + "$ref": "#/components/schemas/WorkItemApiResult" } } } @@ -37024,6 +37024,14 @@ "$ref": "#/components/schemas/CreateLinkApiModel" }, "description": "Set of links related to the work item" + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkItemParameterKeyApiModel" + }, + "description": "Set of parameter keys related to the work item", + "nullable": true } }, "additionalProperties": false @@ -41195,6 +41203,7 @@ }, "workflowId": { "type": "string", + "description": "Identifier of current workflow", "format": "uuid" } }, @@ -48041,6 +48050,14 @@ "description": "Specifies a test result status codes to search for", "nullable": true }, + "statusTypes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TestStatusApiType" + }, + "description": "Specifies a test result status types to search for", + "nullable": true + }, "failureCategories": { "type": "array", "items": { @@ -50774,6 +50791,14 @@ }, "description": "Collection of autotest internal ids", "nullable": true + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkItemParameterKeyApiModel" + }, + "description": "Set of parameter keys related to the work item", + "nullable": true } }, "additionalProperties": false @@ -51550,6 +51575,7 @@ "links", "medianDuration", "name", + "parameters", "postconditionSteps", "preconditionSteps", "priority", @@ -51732,6 +51758,13 @@ }, "description": "Set of external issues related to the work item" }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkItemParameterKeyApiResult" + }, + "description": "Set of parameters related to the work item" + }, "createdDate": { "type": "string", "description": "Creation date of the work item", @@ -53353,6 +53386,7 @@ "links", "medianDuration", "name", + "parameters", "postconditionSteps", "preconditionSteps", "priority", @@ -53488,6 +53522,12 @@ "$ref": "#/components/schemas/ExternalIssueModel" } }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkItemParameterKeyModel" + } + }, "id": { "title": "Workitem internal identifier", "type": "string", @@ -53612,6 +53652,46 @@ }, "additionalProperties": false }, + "WorkItemParameterKeyApiModel": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "ID of the parameter key to assign", + "format": "uuid" + } + }, + "additionalProperties": false + }, + "WorkItemParameterKeyApiResult": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, + "WorkItemParameterKeyModel": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, "WorkItemPreviewApiModel": { "required": [ "description", diff --git a/README.md b/README.md index b76ae2d..8697f77 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ | 5.4.1 | 7.0.3.post541 | | 5.5.0 | 7.2.0.post550 | | 5.6.0 | 7.4.0.post560 | -| Cloud | 7.5.0 + | +| Cloud | 7.5.5 + | 1. For current versions, see the releases tab. 2. Starting with 5.2, we have added a TMS postscript, which means that the utility is compatible with a specific enterprise version. @@ -1089,6 +1089,9 @@ Class | Method | HTTP request | Description - [WorkItemLocalSelectModelFilter](docs/WorkItemLocalSelectModelFilter.md) - [WorkItemModel](docs/WorkItemModel.md) - [WorkItemMovePostModel](docs/WorkItemMovePostModel.md) + - [WorkItemParameterKeyApiModel](docs/WorkItemParameterKeyApiModel.md) + - [WorkItemParameterKeyApiResult](docs/WorkItemParameterKeyApiResult.md) + - [WorkItemParameterKeyModel](docs/WorkItemParameterKeyModel.md) - [WorkItemPreviewApiModel](docs/WorkItemPreviewApiModel.md) - [WorkItemPreviewStepApiModel](docs/WorkItemPreviewStepApiModel.md) - [WorkItemPriority](docs/WorkItemPriority.md) diff --git a/docs/ApiV2TestResultsSearchPostRequest.md b/docs/ApiV2TestResultsSearchPostRequest.md index 892b6dd..082192d 100644 --- a/docs/ApiV2TestResultsSearchPostRequest.md +++ b/docs/ApiV2TestResultsSearchPostRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] **outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] **status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional] +**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional] **failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] **namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional] **class_name** | **str, none_type** | Specifies a test result class name to search for | [optional] diff --git a/docs/ApiV2WorkItemsPostRequest.md b/docs/ApiV2WorkItemsPostRequest.md index 1a6347f..3f69709 100644 --- a/docs/ApiV2WorkItemsPostRequest.md +++ b/docs/ApiV2WorkItemsPostRequest.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Associated iterations linked to the work item | [optional] **auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Automated tests associated with the work item | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Files attached to the work item | [optional] +**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateWorkItemApiModel.md b/docs/CreateWorkItemApiModel.md index 120b8c2..fa37d23 100644 --- a/docs/CreateWorkItemApiModel.md +++ b/docs/CreateWorkItemApiModel.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Associated iterations linked to the work item | [optional] **auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Automated tests associated with the work item | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Files attached to the work item | [optional] +**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ManualRerunSelectTestResultsApiModelFilter.md b/docs/ManualRerunSelectTestResultsApiModelFilter.md index b8d6e73..77ae0af 100644 --- a/docs/ManualRerunSelectTestResultsApiModelFilter.md +++ b/docs/ManualRerunSelectTestResultsApiModelFilter.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] **outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] **status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional] +**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional] **failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] **namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional] **class_name** | **str, none_type** | Specifies a test result class name to search for | [optional] diff --git a/docs/ProjectModel.md b/docs/ProjectModel.md index 74e13c3..99e7f4a 100644 --- a/docs/ProjectModel.md +++ b/docs/ProjectModel.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **created_by_id** | **str** | Unique ID of the project creator | **global_id** | **int** | Global ID of the project | **type** | [**ProjectTypeModel**](ProjectTypeModel.md) | | -**workflow_id** | **str** | | +**workflow_id** | **str** | Identifier of current workflow | **description** | **str, none_type** | Description of the project | [optional] **attributes_scheme** | [**[CustomAttributeModel], none_type**](CustomAttributeModel.md) | Collection of the project attributes | [optional] **test_plans_attributes_scheme** | [**[CustomAttributeModel], none_type**](CustomAttributeModel.md) | Collection of the project test plans attributes | [optional] diff --git a/docs/TestResultsFilterApiModel.md b/docs/TestResultsFilterApiModel.md index 88590c5..4693a29 100644 --- a/docs/TestResultsFilterApiModel.md +++ b/docs/TestResultsFilterApiModel.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] **outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] **status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional] +**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional] **failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] **namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional] **class_name** | **str, none_type** | Specifies a test result class name to search for | [optional] diff --git a/docs/TestResultsSelectApiModelFilter.md b/docs/TestResultsSelectApiModelFilter.md index 7cf250b..6d72e5a 100644 --- a/docs/TestResultsSelectApiModelFilter.md +++ b/docs/TestResultsSelectApiModelFilter.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] **outcomes** | [**[TestResultOutcome], none_type**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] **status_codes** | **[str], none_type** | Specifies a test result status codes to search for | [optional] +**status_types** | [**[TestStatusApiType], none_type**](TestStatusApiType.md) | Specifies a test result status types to search for | [optional] **failure_categories** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] **namespace** | **str, none_type** | Specifies a test result namespace to search for | [optional] **class_name** | **str, none_type** | Specifies a test result class name to search for | [optional] diff --git a/docs/UpdateWorkItemApiModel.md b/docs/UpdateWorkItemApiModel.md index 7451c83..5f7d14c 100644 --- a/docs/UpdateWorkItemApiModel.md +++ b/docs/UpdateWorkItemApiModel.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **source_type** | [**WorkItemSourceTypeModel**](WorkItemSourceTypeModel.md) | | [optional] **iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Collection of parameter id sets | [optional] **auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Collection of autotest internal ids | [optional] +**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateWorkItemRequest.md b/docs/UpdateWorkItemRequest.md index c5ae778..bfe3835 100644 --- a/docs/UpdateWorkItemRequest.md +++ b/docs/UpdateWorkItemRequest.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **source_type** | [**WorkItemSourceTypeModel**](WorkItemSourceTypeModel.md) | | [optional] **iterations** | [**[AssignIterationApiModel], none_type**](AssignIterationApiModel.md) | Collection of parameter id sets | [optional] **auto_tests** | [**[AutoTestIdModel], none_type**](AutoTestIdModel.md) | Collection of autotest internal ids | [optional] +**parameters** | [**[WorkItemParameterKeyApiModel], none_type**](WorkItemParameterKeyApiModel.md) | Set of parameter keys related to the work item | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WorkItemApiResult.md b/docs/WorkItemApiResult.md index 83cfaac..8617306 100644 --- a/docs/WorkItemApiResult.md +++ b/docs/WorkItemApiResult.md @@ -30,6 +30,7 @@ Name | Type | Description | Notes **attachments** | [**[AttachmentModel]**](AttachmentModel.md) | Files attached to the work item | **links** | [**[LinkModel]**](LinkModel.md) | Set of links related to the work item | **external_issues** | [**[ExternalIssueApiResult]**](ExternalIssueApiResult.md) | Set of external issues related to the work item | +**parameters** | [**[WorkItemParameterKeyApiResult]**](WorkItemParameterKeyApiResult.md) | Set of parameters related to the work item | **created_date** | **datetime** | Creation date of the work item | **created_by_id** | **str** | Unique identifier of the work item creator | **is_deleted** | **bool** | Indicates whether the work item is marked as deleted | diff --git a/docs/WorkItemModel.md b/docs/WorkItemModel.md index 0ec6ce3..086bd1e 100644 --- a/docs/WorkItemModel.md +++ b/docs/WorkItemModel.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **created_by_id** | **str** | | **global_id** | **int** | | **external_issues** | [**[ExternalIssueModel]**](ExternalIssueModel.md) | | +**parameters** | [**[WorkItemParameterKeyModel]**](WorkItemParameterKeyModel.md) | | **id** | **str** | | **section_id** | **str** | | **state** | [**WorkItemStates**](WorkItemStates.md) | | diff --git a/docs/WorkItemParameterKeyApiModel.md b/docs/WorkItemParameterKeyApiModel.md new file mode 100644 index 0000000..f6727ec --- /dev/null +++ b/docs/WorkItemParameterKeyApiModel.md @@ -0,0 +1,11 @@ +# WorkItemParameterKeyApiModel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the parameter key to assign | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WorkItemParameterKeyApiResult.md b/docs/WorkItemParameterKeyApiResult.md new file mode 100644 index 0000000..e4939e5 --- /dev/null +++ b/docs/WorkItemParameterKeyApiResult.md @@ -0,0 +1,11 @@ +# WorkItemParameterKeyApiResult + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WorkItemParameterKeyModel.md b/docs/WorkItemParameterKeyModel.md new file mode 100644 index 0000000..1fbb98a --- /dev/null +++ b/docs/WorkItemParameterKeyModel.md @@ -0,0 +1,11 @@ +# WorkItemParameterKeyModel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WorkItemsApi.md b/docs/WorkItemsApi.md index 56a187b..424a09f 100644 --- a/docs/WorkItemsApi.md +++ b/docs/WorkItemsApi.md @@ -1902,7 +1902,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) # **get_work_item_by_id** -> WorkItemModel get_work_item_by_id(id) +> WorkItemApiResult get_work_item_by_id(id) Get Test Case, Checklist or Shared Step by Id or GlobalId @@ -1917,7 +1917,7 @@ import time import testit_api_client from testit_api_client.api import work_items_api from testit_api_client.model.problem_details import ProblemDetails -from testit_api_client.model.work_item_model import WorkItemModel +from testit_api_client.model.work_item_api_result import WorkItemApiResult from testit_api_client.model.validation_problem_details import ValidationProblemDetails from pprint import pprint # Defining the host is optional and defaults to http://localhost @@ -1974,7 +1974,7 @@ Name | Type | Description | Notes ### Return type -[**WorkItemModel**](WorkItemModel.md) +[**WorkItemApiResult**](WorkItemApiResult.md) ### Authorization diff --git a/genConfig.yml b/genConfig.yml index 2bec22d..f0c2ff3 100644 --- a/genConfig.yml +++ b/genConfig.yml @@ -1,4 +1,4 @@ packageName: "testit_api_client" packageUrl: "https://pypi.org/project/testit-api-client/" -packageVersion: 7.5.4 +packageVersion: 7.5.5 projectName: "testit-api-client" diff --git a/run.sh b/run.sh index 7549c97..10b0ed0 100644 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ # Настройка переменных FILE_NAME="cloud-swagger.json" -NEW_VERSION="7.5.4" +NEW_VERSION="7.5.5" GENERATOR="openapi-generator-cli-6.6.0.jar" if [ ! -f ".swagger/$FILE_NAME" ]; then diff --git a/setup.py b/setup.py index 0c93d48..21992cb 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ NAME = "testit-api-client" -VERSION = "7.5.4" +VERSION = "7.5.5" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ diff --git a/src/testit_api_client/__init__.py b/src/testit_api_client/__init__.py index f81b753..dca0b0c 100644 --- a/src/testit_api_client/__init__.py +++ b/src/testit_api_client/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "7.5.4" +__version__ = "7.5.5" # import ApiClient from testit_api_client.api_client import ApiClient diff --git a/src/testit_api_client/api/work_items_api.py b/src/testit_api_client/api/work_items_api.py index 6d3d8e1..8cba06d 100644 --- a/src/testit_api_client/api/work_items_api.py +++ b/src/testit_api_client/api/work_items_api.py @@ -1316,7 +1316,7 @@ def __init__(self, api_client=None): ) self.get_work_item_by_id_endpoint = _Endpoint( settings={ - 'response_type': (WorkItemModel,), + 'response_type': (WorkItemApiResult,), 'auth': [ 'Bearer or PrivateToken' ], @@ -3381,7 +3381,7 @@ def get_work_item_by_id( async_req (bool): execute request asynchronously Returns: - WorkItemModel + WorkItemApiResult If the method is called asynchronously, returns the request thread. """ diff --git a/src/testit_api_client/api_client.py b/src/testit_api_client/api_client.py index 1fea157..bb35f68 100644 --- a/src/testit_api_client/api_client.py +++ b/src/testit_api_client/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/7.5.4/python' + self.user_agent = 'OpenAPI-Generator/7.5.5/python' def __enter__(self): return self diff --git a/src/testit_api_client/configuration.py b/src/testit_api_client/configuration.py index b93c1fc..22616e4 100644 --- a/src/testit_api_client/configuration.py +++ b/src/testit_api_client/configuration.py @@ -413,7 +413,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v2.0\n"\ - "SDK Package Version: 7.5.4".\ + "SDK Package Version: 7.5.5".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/testit_api_client/model/api_v2_test_results_search_post_request.py b/src/testit_api_client/model/api_v2_test_results_search_post_request.py index ada7e7c..856e7f6 100644 --- a/src/testit_api_client/model/api_v2_test_results_search_post_request.py +++ b/src/testit_api_client/model/api_v2_test_results_search_post_request.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.test_results_filter_api_model_duration import TestResultsFilterApiModelDuration from testit_api_client.model.test_results_filter_api_model_modified_date import TestResultsFilterApiModelModifiedDate from testit_api_client.model.test_results_filter_api_model_started_on import TestResultsFilterApiModelStartedOn + from testit_api_client.model.test_status_api_type import TestStatusApiType globals()['FailureCategoryModel'] = FailureCategoryModel globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultsFilterApiModel'] = TestResultsFilterApiModel @@ -46,6 +47,7 @@ def lazy_import(): globals()['TestResultsFilterApiModelDuration'] = TestResultsFilterApiModelDuration globals()['TestResultsFilterApiModelModifiedDate'] = TestResultsFilterApiModelModifiedDate globals()['TestResultsFilterApiModelStartedOn'] = TestResultsFilterApiModelStartedOn + globals()['TestStatusApiType'] = TestStatusApiType class ApiV2TestResultsSearchPostRequest(ModelComposed): @@ -112,6 +114,7 @@ def openapi_types(): 'configuration_ids': ([str], none_type,), # noqa: E501 'outcomes': ([TestResultOutcome], none_type,), # noqa: E501 'status_codes': ([str], none_type,), # noqa: E501 + 'status_types': ([TestStatusApiType], none_type,), # noqa: E501 'failure_categories': ([FailureCategoryModel], none_type,), # noqa: E501 'namespace': (str, none_type,), # noqa: E501 'class_name': (str, none_type,), # noqa: E501 @@ -137,6 +140,7 @@ def discriminator(): 'configuration_ids': 'configurationIds', # noqa: E501 'outcomes': 'outcomes', # noqa: E501 'status_codes': 'statusCodes', # noqa: E501 + 'status_types': 'statusTypes', # noqa: E501 'failure_categories': 'failureCategories', # noqa: E501 'namespace': 'namespace', # noqa: E501 'class_name': 'className', # noqa: E501 @@ -195,6 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 @@ -315,6 +320,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/api_v2_work_items_post_request.py b/src/testit_api_client/model/api_v2_work_items_post_request.py index 5913781..a52d235 100644 --- a/src/testit_api_client/model/api_v2_work_items_post_request.py +++ b/src/testit_api_client/model/api_v2_work_items_post_request.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.create_work_item_api_model import CreateWorkItemApiModel from testit_api_client.model.tag_model import TagModel from testit_api_client.model.work_item_entity_type_api_model import WorkItemEntityTypeApiModel + from testit_api_client.model.work_item_parameter_key_api_model import WorkItemParameterKeyApiModel from testit_api_client.model.work_item_priority_api_model import WorkItemPriorityApiModel from testit_api_client.model.work_item_state_api_model import WorkItemStateApiModel globals()['AssignAttachmentApiModel'] = AssignAttachmentApiModel @@ -48,6 +49,7 @@ def lazy_import(): globals()['CreateWorkItemApiModel'] = CreateWorkItemApiModel globals()['TagModel'] = TagModel globals()['WorkItemEntityTypeApiModel'] = WorkItemEntityTypeApiModel + globals()['WorkItemParameterKeyApiModel'] = WorkItemParameterKeyApiModel globals()['WorkItemPriorityApiModel'] = WorkItemPriorityApiModel globals()['WorkItemStateApiModel'] = WorkItemStateApiModel @@ -130,6 +132,7 @@ def openapi_types(): 'iterations': ([AssignIterationApiModel], none_type,), # noqa: E501 'auto_tests': ([AutoTestIdModel], none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 + 'parameters': ([WorkItemParameterKeyApiModel], none_type,), # noqa: E501 } @cached_property @@ -155,6 +158,7 @@ def discriminator(): 'iterations': 'iterations', # noqa: E501 'auto_tests': 'autoTests', # noqa: E501 'attachments': 'attachments', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 } read_only_vars = { @@ -213,6 +217,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 iterations ([AssignIterationApiModel], none_type): Associated iterations linked to the work item. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Automated tests associated with the work item. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Files attached to the work item. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -333,6 +338,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 iterations ([AssignIterationApiModel], none_type): Associated iterations linked to the work item. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Automated tests associated with the work item. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Files attached to the work item. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_work_item_api_model.py b/src/testit_api_client/model/create_work_item_api_model.py index 0641aea..9033ea7 100644 --- a/src/testit_api_client/model/create_work_item_api_model.py +++ b/src/testit_api_client/model/create_work_item_api_model.py @@ -37,6 +37,7 @@ def lazy_import(): from testit_api_client.model.create_step_api_model import CreateStepApiModel from testit_api_client.model.tag_model import TagModel from testit_api_client.model.work_item_entity_type_api_model import WorkItemEntityTypeApiModel + from testit_api_client.model.work_item_parameter_key_api_model import WorkItemParameterKeyApiModel from testit_api_client.model.work_item_priority_api_model import WorkItemPriorityApiModel from testit_api_client.model.work_item_state_api_model import WorkItemStateApiModel globals()['AssignAttachmentApiModel'] = AssignAttachmentApiModel @@ -46,6 +47,7 @@ def lazy_import(): globals()['CreateStepApiModel'] = CreateStepApiModel globals()['TagModel'] = TagModel globals()['WorkItemEntityTypeApiModel'] = WorkItemEntityTypeApiModel + globals()['WorkItemParameterKeyApiModel'] = WorkItemParameterKeyApiModel globals()['WorkItemPriorityApiModel'] = WorkItemPriorityApiModel globals()['WorkItemStateApiModel'] = WorkItemStateApiModel @@ -121,6 +123,7 @@ def openapi_types(): 'iterations': ([AssignIterationApiModel], none_type,), # noqa: E501 'auto_tests': ([AutoTestIdModel], none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 + 'parameters': ([WorkItemParameterKeyApiModel], none_type,), # noqa: E501 } @cached_property @@ -146,6 +149,7 @@ def discriminator(): 'iterations': 'iterations', # noqa: E501 'auto_tests': 'autoTests', # noqa: E501 'attachments': 'attachments', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 } read_only_vars = { @@ -208,6 +212,7 @@ def _from_openapi_data(cls, project_id, name, entity_type_name, duration, state, iterations ([AssignIterationApiModel], none_type): Associated iterations linked to the work item. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Automated tests associated with the work item. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Files attached to the work item. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -324,6 +329,7 @@ def __init__(self, project_id, name, entity_type_name, duration, state, priority iterations ([AssignIterationApiModel], none_type): Associated iterations linked to the work item. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Automated tests associated with the work item. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Files attached to the work item. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/manual_rerun_select_test_results_api_model_filter.py b/src/testit_api_client/model/manual_rerun_select_test_results_api_model_filter.py index 75cbffe..fea5898 100644 --- a/src/testit_api_client/model/manual_rerun_select_test_results_api_model_filter.py +++ b/src/testit_api_client/model/manual_rerun_select_test_results_api_model_filter.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.test_results_filter_api_model_duration import TestResultsFilterApiModelDuration from testit_api_client.model.test_results_filter_api_model_modified_date import TestResultsFilterApiModelModifiedDate from testit_api_client.model.test_results_filter_api_model_started_on import TestResultsFilterApiModelStartedOn + from testit_api_client.model.test_status_api_type import TestStatusApiType globals()['FailureCategoryModel'] = FailureCategoryModel globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultsFilterApiModel'] = TestResultsFilterApiModel @@ -46,6 +47,7 @@ def lazy_import(): globals()['TestResultsFilterApiModelDuration'] = TestResultsFilterApiModelDuration globals()['TestResultsFilterApiModelModifiedDate'] = TestResultsFilterApiModelModifiedDate globals()['TestResultsFilterApiModelStartedOn'] = TestResultsFilterApiModelStartedOn + globals()['TestStatusApiType'] = TestStatusApiType class ManualRerunSelectTestResultsApiModelFilter(ModelComposed): @@ -112,6 +114,7 @@ def openapi_types(): 'configuration_ids': ([str], none_type,), # noqa: E501 'outcomes': ([TestResultOutcome], none_type,), # noqa: E501 'status_codes': ([str], none_type,), # noqa: E501 + 'status_types': ([TestStatusApiType], none_type,), # noqa: E501 'failure_categories': ([FailureCategoryModel], none_type,), # noqa: E501 'namespace': (str, none_type,), # noqa: E501 'class_name': (str, none_type,), # noqa: E501 @@ -137,6 +140,7 @@ def discriminator(): 'configuration_ids': 'configurationIds', # noqa: E501 'outcomes': 'outcomes', # noqa: E501 'status_codes': 'statusCodes', # noqa: E501 + 'status_types': 'statusTypes', # noqa: E501 'failure_categories': 'failureCategories', # noqa: E501 'namespace': 'namespace', # noqa: E501 'class_name': 'className', # noqa: E501 @@ -195,6 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 @@ -315,6 +320,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/project_model.py b/src/testit_api_client/model/project_model.py index fedf874..bb42963 100644 --- a/src/testit_api_client/model/project_model.py +++ b/src/testit_api_client/model/project_model.py @@ -147,7 +147,7 @@ def _from_openapi_data(cls, id, name, is_favorite, is_deleted, created_date, cre created_by_id (str): Unique ID of the project creator global_id (int): Global ID of the project type (ProjectTypeModel): - workflow_id (str): + workflow_id (str): Identifier of current workflow Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -261,7 +261,7 @@ def __init__(self, id, name, is_favorite, is_deleted, created_date, created_by_i created_by_id (str): Unique ID of the project creator global_id (int): Global ID of the project type (ProjectTypeModel): - workflow_id (str): + workflow_id (str): Identifier of current workflow Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/src/testit_api_client/model/test_results_filter_api_model.py b/src/testit_api_client/model/test_results_filter_api_model.py index 3f65cfd..e222f19 100644 --- a/src/testit_api_client/model/test_results_filter_api_model.py +++ b/src/testit_api_client/model/test_results_filter_api_model.py @@ -37,6 +37,7 @@ def lazy_import(): from testit_api_client.model.test_results_filter_api_model_duration import TestResultsFilterApiModelDuration from testit_api_client.model.test_results_filter_api_model_modified_date import TestResultsFilterApiModelModifiedDate from testit_api_client.model.test_results_filter_api_model_started_on import TestResultsFilterApiModelStartedOn + from testit_api_client.model.test_status_api_type import TestStatusApiType globals()['FailureCategoryModel'] = FailureCategoryModel globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultsFilterApiModelCompletedOn'] = TestResultsFilterApiModelCompletedOn @@ -44,6 +45,7 @@ def lazy_import(): globals()['TestResultsFilterApiModelDuration'] = TestResultsFilterApiModelDuration globals()['TestResultsFilterApiModelModifiedDate'] = TestResultsFilterApiModelModifiedDate globals()['TestResultsFilterApiModelStartedOn'] = TestResultsFilterApiModelStartedOn + globals()['TestStatusApiType'] = TestStatusApiType class TestResultsFilterApiModel(ModelNormal): @@ -103,6 +105,7 @@ def openapi_types(): 'configuration_ids': ([str], none_type,), # noqa: E501 'outcomes': ([TestResultOutcome], none_type,), # noqa: E501 'status_codes': ([str], none_type,), # noqa: E501 + 'status_types': ([TestStatusApiType], none_type,), # noqa: E501 'failure_categories': ([FailureCategoryModel], none_type,), # noqa: E501 'namespace': (str, none_type,), # noqa: E501 'class_name': (str, none_type,), # noqa: E501 @@ -128,6 +131,7 @@ def discriminator(): 'configuration_ids': 'configurationIds', # noqa: E501 'outcomes': 'outcomes', # noqa: E501 'status_codes': 'statusCodes', # noqa: E501 + 'status_types': 'statusTypes', # noqa: E501 'failure_categories': 'failureCategories', # noqa: E501 'namespace': 'namespace', # noqa: E501 'class_name': 'className', # noqa: E501 @@ -188,6 +192,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 @@ -290,6 +295,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/test_results_select_api_model_filter.py b/src/testit_api_client/model/test_results_select_api_model_filter.py index 764b943..7143a32 100644 --- a/src/testit_api_client/model/test_results_select_api_model_filter.py +++ b/src/testit_api_client/model/test_results_select_api_model_filter.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.test_results_filter_api_model_duration import TestResultsFilterApiModelDuration from testit_api_client.model.test_results_filter_api_model_modified_date import TestResultsFilterApiModelModifiedDate from testit_api_client.model.test_results_filter_api_model_started_on import TestResultsFilterApiModelStartedOn + from testit_api_client.model.test_status_api_type import TestStatusApiType globals()['FailureCategoryModel'] = FailureCategoryModel globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultsFilterApiModel'] = TestResultsFilterApiModel @@ -46,6 +47,7 @@ def lazy_import(): globals()['TestResultsFilterApiModelDuration'] = TestResultsFilterApiModelDuration globals()['TestResultsFilterApiModelModifiedDate'] = TestResultsFilterApiModelModifiedDate globals()['TestResultsFilterApiModelStartedOn'] = TestResultsFilterApiModelStartedOn + globals()['TestStatusApiType'] = TestStatusApiType class TestResultsSelectApiModelFilter(ModelComposed): @@ -112,6 +114,7 @@ def openapi_types(): 'configuration_ids': ([str], none_type,), # noqa: E501 'outcomes': ([TestResultOutcome], none_type,), # noqa: E501 'status_codes': ([str], none_type,), # noqa: E501 + 'status_types': ([TestStatusApiType], none_type,), # noqa: E501 'failure_categories': ([FailureCategoryModel], none_type,), # noqa: E501 'namespace': (str, none_type,), # noqa: E501 'class_name': (str, none_type,), # noqa: E501 @@ -137,6 +140,7 @@ def discriminator(): 'configuration_ids': 'configurationIds', # noqa: E501 'outcomes': 'outcomes', # noqa: E501 'status_codes': 'statusCodes', # noqa: E501 + 'status_types': 'statusTypes', # noqa: E501 'failure_categories': 'failureCategories', # noqa: E501 'namespace': 'namespace', # noqa: E501 'class_name': 'className', # noqa: E501 @@ -195,6 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 @@ -315,6 +320,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 outcomes ([TestResultOutcome], none_type): Specifies a test result outcomes to search for. [optional] # noqa: E501 status_codes ([str], none_type): Specifies a test result status codes to search for. [optional] # noqa: E501 + status_types ([TestStatusApiType], none_type): Specifies a test result status types to search for. [optional] # noqa: E501 failure_categories ([FailureCategoryModel], none_type): Specifies a test result failure categories to search for. [optional] # noqa: E501 namespace (str, none_type): Specifies a test result namespace to search for. [optional] # noqa: E501 class_name (str, none_type): Specifies a test result class name to search for. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/update_work_item_api_model.py b/src/testit_api_client/model/update_work_item_api_model.py index 6dbd479..d31c19b 100644 --- a/src/testit_api_client/model/update_work_item_api_model.py +++ b/src/testit_api_client/model/update_work_item_api_model.py @@ -36,6 +36,7 @@ def lazy_import(): from testit_api_client.model.tag_model import TagModel from testit_api_client.model.update_link_api_model import UpdateLinkApiModel from testit_api_client.model.update_step_api_model import UpdateStepApiModel + from testit_api_client.model.work_item_parameter_key_api_model import WorkItemParameterKeyApiModel from testit_api_client.model.work_item_priority_model import WorkItemPriorityModel from testit_api_client.model.work_item_source_type_model import WorkItemSourceTypeModel from testit_api_client.model.work_item_states import WorkItemStates @@ -45,6 +46,7 @@ def lazy_import(): globals()['TagModel'] = TagModel globals()['UpdateLinkApiModel'] = UpdateLinkApiModel globals()['UpdateStepApiModel'] = UpdateStepApiModel + globals()['WorkItemParameterKeyApiModel'] = WorkItemParameterKeyApiModel globals()['WorkItemPriorityModel'] = WorkItemPriorityModel globals()['WorkItemSourceTypeModel'] = WorkItemSourceTypeModel globals()['WorkItemStates'] = WorkItemStates @@ -120,6 +122,7 @@ def openapi_types(): 'source_type': (WorkItemSourceTypeModel,), # noqa: E501 'iterations': ([AssignIterationApiModel], none_type,), # noqa: E501 'auto_tests': ([AutoTestIdModel], none_type,), # noqa: E501 + 'parameters': ([WorkItemParameterKeyApiModel], none_type,), # noqa: E501 } @cached_property @@ -145,6 +148,7 @@ def discriminator(): 'source_type': 'sourceType', # noqa: E501 'iterations': 'iterations', # noqa: E501 'auto_tests': 'autoTests', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 } read_only_vars = { @@ -207,6 +211,7 @@ def _from_openapi_data(cls, id, section_id, state, priority, steps, precondition source_type (WorkItemSourceTypeModel): [optional] # noqa: E501 iterations ([AssignIterationApiModel], none_type): Collection of parameter id sets. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Collection of autotest internal ids. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -324,6 +329,7 @@ def __init__(self, id, section_id, state, priority, steps, precondition_steps, p source_type (WorkItemSourceTypeModel): [optional] # noqa: E501 iterations ([AssignIterationApiModel], none_type): Collection of parameter id sets. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Collection of autotest internal ids. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/update_work_item_request.py b/src/testit_api_client/model/update_work_item_request.py index 8324fde..212db59 100644 --- a/src/testit_api_client/model/update_work_item_request.py +++ b/src/testit_api_client/model/update_work_item_request.py @@ -37,6 +37,7 @@ def lazy_import(): from testit_api_client.model.update_link_api_model import UpdateLinkApiModel from testit_api_client.model.update_step_api_model import UpdateStepApiModel from testit_api_client.model.update_work_item_api_model import UpdateWorkItemApiModel + from testit_api_client.model.work_item_parameter_key_api_model import WorkItemParameterKeyApiModel from testit_api_client.model.work_item_priority_model import WorkItemPriorityModel from testit_api_client.model.work_item_source_type_model import WorkItemSourceTypeModel from testit_api_client.model.work_item_states import WorkItemStates @@ -47,6 +48,7 @@ def lazy_import(): globals()['UpdateLinkApiModel'] = UpdateLinkApiModel globals()['UpdateStepApiModel'] = UpdateStepApiModel globals()['UpdateWorkItemApiModel'] = UpdateWorkItemApiModel + globals()['WorkItemParameterKeyApiModel'] = WorkItemParameterKeyApiModel globals()['WorkItemPriorityModel'] = WorkItemPriorityModel globals()['WorkItemSourceTypeModel'] = WorkItemSourceTypeModel globals()['WorkItemStates'] = WorkItemStates @@ -129,6 +131,7 @@ def openapi_types(): 'source_type': (WorkItemSourceTypeModel,), # noqa: E501 'iterations': ([AssignIterationApiModel], none_type,), # noqa: E501 'auto_tests': ([AutoTestIdModel], none_type,), # noqa: E501 + 'parameters': ([WorkItemParameterKeyApiModel], none_type,), # noqa: E501 } @cached_property @@ -154,6 +157,7 @@ def discriminator(): 'source_type': 'sourceType', # noqa: E501 'iterations': 'iterations', # noqa: E501 'auto_tests': 'autoTests', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 } read_only_vars = { @@ -212,6 +216,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 source_type (WorkItemSourceTypeModel): [optional] # noqa: E501 iterations ([AssignIterationApiModel], none_type): Collection of parameter id sets. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Collection of autotest internal ids. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -332,6 +337,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 source_type (WorkItemSourceTypeModel): [optional] # noqa: E501 iterations ([AssignIterationApiModel], none_type): Collection of parameter id sets. [optional] # noqa: E501 auto_tests ([AutoTestIdModel], none_type): Collection of autotest internal ids. [optional] # noqa: E501 + parameters ([WorkItemParameterKeyApiModel], none_type): Set of parameter keys related to the work item. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/work_item_api_result.py b/src/testit_api_client/model/work_item_api_result.py index 4de6a62..ac824ff 100644 --- a/src/testit_api_client/model/work_item_api_result.py +++ b/src/testit_api_client/model/work_item_api_result.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.step_model import StepModel from testit_api_client.model.tag_model import TagModel from testit_api_client.model.work_item_entity_type_api_model import WorkItemEntityTypeApiModel + from testit_api_client.model.work_item_parameter_key_api_result import WorkItemParameterKeyApiResult from testit_api_client.model.work_item_priority_api_model import WorkItemPriorityApiModel from testit_api_client.model.work_item_source_type_api_model import WorkItemSourceTypeApiModel from testit_api_client.model.work_item_state_api_model import WorkItemStateApiModel @@ -49,6 +50,7 @@ def lazy_import(): globals()['StepModel'] = StepModel globals()['TagModel'] = TagModel globals()['WorkItemEntityTypeApiModel'] = WorkItemEntityTypeApiModel + globals()['WorkItemParameterKeyApiResult'] = WorkItemParameterKeyApiResult globals()['WorkItemPriorityApiModel'] = WorkItemPriorityApiModel globals()['WorkItemSourceTypeApiModel'] = WorkItemSourceTypeApiModel globals()['WorkItemStateApiModel'] = WorkItemStateApiModel @@ -126,6 +128,7 @@ def openapi_types(): 'attachments': ([AttachmentModel],), # noqa: E501 'links': ([LinkModel],), # noqa: E501 'external_issues': ([ExternalIssueApiResult],), # noqa: E501 + 'parameters': ([WorkItemParameterKeyApiResult],), # noqa: E501 'created_date': (datetime,), # noqa: E501 'created_by_id': (str,), # noqa: E501 'is_deleted': (bool,), # noqa: E501 @@ -166,6 +169,7 @@ def discriminator(): 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 'external_issues': 'externalIssues', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 'created_date': 'createdDate', # noqa: E501 'created_by_id': 'createdById', # noqa: E501 'is_deleted': 'isDeleted', # noqa: E501 @@ -181,7 +185,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, global_id, version_id, version_number, project_id, section_id, name, source_type, entity_type_name, duration, median_duration, state, priority, is_automated, attributes, tags, section_precondition_steps, section_postcondition_steps, precondition_steps, steps, postcondition_steps, iterations, auto_tests, attachments, links, external_issues, created_date, created_by_id, is_deleted, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, global_id, version_id, version_number, project_id, section_id, name, source_type, entity_type_name, duration, median_duration, state, priority, is_automated, attributes, tags, section_precondition_steps, section_postcondition_steps, precondition_steps, steps, postcondition_steps, iterations, auto_tests, attachments, links, external_issues, parameters, created_date, created_by_id, is_deleted, *args, **kwargs): # noqa: E501 """WorkItemApiResult - a model defined in OpenAPI Args: @@ -211,6 +215,7 @@ def _from_openapi_data(cls, id, global_id, version_id, version_number, project_i attachments ([AttachmentModel]): Files attached to the work item links ([LinkModel]): Set of links related to the work item external_issues ([ExternalIssueApiResult]): Set of external issues related to the work item + parameters ([WorkItemParameterKeyApiResult]): Set of parameters related to the work item created_date (datetime): Creation date of the work item created_by_id (str): Unique identifier of the work item creator is_deleted (bool): Indicates whether the work item is marked as deleted @@ -306,6 +311,7 @@ def _from_openapi_data(cls, id, global_id, version_id, version_number, project_i self.attachments = attachments self.links = links self.external_issues = external_issues + self.parameters = parameters self.created_date = created_date self.created_by_id = created_by_id self.is_deleted = is_deleted @@ -329,7 +335,7 @@ def _from_openapi_data(cls, id, global_id, version_id, version_number, project_i ]) @convert_js_args_to_python_args - def __init__(self, id, global_id, version_id, version_number, project_id, section_id, name, source_type, entity_type_name, duration, median_duration, state, priority, is_automated, attributes, tags, section_precondition_steps, section_postcondition_steps, precondition_steps, steps, postcondition_steps, iterations, auto_tests, attachments, links, external_issues, created_date, created_by_id, is_deleted, *args, **kwargs): # noqa: E501 + def __init__(self, id, global_id, version_id, version_number, project_id, section_id, name, source_type, entity_type_name, duration, median_duration, state, priority, is_automated, attributes, tags, section_precondition_steps, section_postcondition_steps, precondition_steps, steps, postcondition_steps, iterations, auto_tests, attachments, links, external_issues, parameters, created_date, created_by_id, is_deleted, *args, **kwargs): # noqa: E501 """WorkItemApiResult - a model defined in OpenAPI Args: @@ -359,6 +365,7 @@ def __init__(self, id, global_id, version_id, version_number, project_id, sectio attachments ([AttachmentModel]): Files attached to the work item links ([LinkModel]): Set of links related to the work item external_issues ([ExternalIssueApiResult]): Set of external issues related to the work item + parameters ([WorkItemParameterKeyApiResult]): Set of parameters related to the work item created_date (datetime): Creation date of the work item created_by_id (str): Unique identifier of the work item creator is_deleted (bool): Indicates whether the work item is marked as deleted @@ -452,6 +459,7 @@ def __init__(self, id, global_id, version_id, version_number, project_id, sectio self.attachments = attachments self.links = links self.external_issues = external_issues + self.parameters = parameters self.created_date = created_date self.created_by_id = created_by_id self.is_deleted = is_deleted diff --git a/src/testit_api_client/model/work_item_model.py b/src/testit_api_client/model/work_item_model.py index 4503419..ab80dd8 100644 --- a/src/testit_api_client/model/work_item_model.py +++ b/src/testit_api_client/model/work_item_model.py @@ -38,6 +38,7 @@ def lazy_import(): from testit_api_client.model.step_model import StepModel from testit_api_client.model.tag_model import TagModel from testit_api_client.model.work_item_entity_types import WorkItemEntityTypes + from testit_api_client.model.work_item_parameter_key_model import WorkItemParameterKeyModel from testit_api_client.model.work_item_priority_model import WorkItemPriorityModel from testit_api_client.model.work_item_source_type_model import WorkItemSourceTypeModel from testit_api_client.model.work_item_states import WorkItemStates @@ -49,6 +50,7 @@ def lazy_import(): globals()['StepModel'] = StepModel globals()['TagModel'] = TagModel globals()['WorkItemEntityTypes'] = WorkItemEntityTypes + globals()['WorkItemParameterKeyModel'] = WorkItemParameterKeyModel globals()['WorkItemPriorityModel'] = WorkItemPriorityModel globals()['WorkItemSourceTypeModel'] = WorkItemSourceTypeModel globals()['WorkItemStates'] = WorkItemStates @@ -118,6 +120,7 @@ def openapi_types(): 'created_by_id': (str,), # noqa: E501 'global_id': (int,), # noqa: E501 'external_issues': ([ExternalIssueModel],), # noqa: E501 + 'parameters': ([WorkItemParameterKeyModel],), # noqa: E501 'id': (str,), # noqa: E501 'section_id': (str,), # noqa: E501 'state': (WorkItemStates,), # noqa: E501 @@ -158,6 +161,7 @@ def discriminator(): 'created_by_id': 'createdById', # noqa: E501 'global_id': 'globalId', # noqa: E501 'external_issues': 'externalIssues', # noqa: E501 + 'parameters': 'parameters', # noqa: E501 'id': 'id', # noqa: E501 'section_id': 'sectionId', # noqa: E501 'state': 'state', # noqa: E501 @@ -188,7 +192,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, version_id, median_duration, is_deleted, project_id, entity_type_name, is_automated, version_number, created_date, created_by_id, global_id, external_issues, id, section_id, state, priority, source_type, steps, precondition_steps, postcondition_steps, duration, attributes, tags, links, name, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, version_id, median_duration, is_deleted, project_id, entity_type_name, is_automated, version_number, created_date, created_by_id, global_id, external_issues, parameters, id, section_id, state, priority, source_type, steps, precondition_steps, postcondition_steps, duration, attributes, tags, links, name, *args, **kwargs): # noqa: E501 """WorkItemModel - a model defined in OpenAPI Args: @@ -203,6 +207,7 @@ def _from_openapi_data(cls, version_id, median_duration, is_deleted, project_id, created_by_id (str): global_id (int): external_issues ([ExternalIssueModel]): + parameters ([WorkItemParameterKeyModel]): id (str): section_id (str): state (WorkItemStates): @@ -298,6 +303,7 @@ def _from_openapi_data(cls, version_id, median_duration, is_deleted, project_id, self.created_by_id = created_by_id self.global_id = global_id self.external_issues = external_issues + self.parameters = parameters self.id = id self.section_id = section_id self.state = state @@ -331,7 +337,7 @@ def _from_openapi_data(cls, version_id, median_duration, is_deleted, project_id, ]) @convert_js_args_to_python_args - def __init__(self, version_id, median_duration, is_deleted, project_id, entity_type_name, is_automated, version_number, created_date, created_by_id, global_id, external_issues, id, section_id, state, priority, source_type, steps, precondition_steps, postcondition_steps, duration, attributes, tags, links, name, *args, **kwargs): # noqa: E501 + def __init__(self, version_id, median_duration, is_deleted, project_id, entity_type_name, is_automated, version_number, created_date, created_by_id, global_id, external_issues, parameters, id, section_id, state, priority, source_type, steps, precondition_steps, postcondition_steps, duration, attributes, tags, links, name, *args, **kwargs): # noqa: E501 """WorkItemModel - a model defined in OpenAPI Args: @@ -346,6 +352,7 @@ def __init__(self, version_id, median_duration, is_deleted, project_id, entity_t created_by_id (str): global_id (int): external_issues ([ExternalIssueModel]): + parameters ([WorkItemParameterKeyModel]): id (str): section_id (str): state (WorkItemStates): @@ -439,6 +446,7 @@ def __init__(self, version_id, median_duration, is_deleted, project_id, entity_t self.created_by_id = created_by_id self.global_id = global_id self.external_issues = external_issues + self.parameters = parameters self.id = id self.section_id = section_id self.state = state diff --git a/src/testit_api_client/model/work_item_parameter_key_api_model.py b/src/testit_api_client/model/work_item_parameter_key_api_model.py new file mode 100644 index 0000000..a500e0a --- /dev/null +++ b/src/testit_api_client/model/work_item_parameter_key_api_model.py @@ -0,0 +1,263 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + + +class WorkItemParameterKeyApiModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyApiModel - a model defined in OpenAPI + + Args: + id (str): ID of the parameter key to assign + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyApiModel - a model defined in OpenAPI + + Args: + id (str): ID of the parameter key to assign + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/model/work_item_parameter_key_api_result.py b/src/testit_api_client/model/work_item_parameter_key_api_result.py new file mode 100644 index 0000000..dc88c00 --- /dev/null +++ b/src/testit_api_client/model/work_item_parameter_key_api_result.py @@ -0,0 +1,263 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + + +class WorkItemParameterKeyApiResult(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyApiResult - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyApiResult - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/model/work_item_parameter_key_model.py b/src/testit_api_client/model/work_item_parameter_key_model.py new file mode 100644 index 0000000..4728f83 --- /dev/null +++ b/src/testit_api_client/model/work_item_parameter_key_model.py @@ -0,0 +1,263 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + + +class WorkItemParameterKeyModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyModel - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, *args, **kwargs): # noqa: E501 + """WorkItemParameterKeyModel - a model defined in OpenAPI + + Args: + id (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/models/__init__.py b/src/testit_api_client/models/__init__.py index d3b97ec..cd4aa78 100644 --- a/src/testit_api_client/models/__init__.py +++ b/src/testit_api_client/models/__init__.py @@ -713,6 +713,9 @@ from testit_api_client.model.work_item_local_select_model_filter import WorkItemLocalSelectModelFilter from testit_api_client.model.work_item_model import WorkItemModel from testit_api_client.model.work_item_move_post_model import WorkItemMovePostModel +from testit_api_client.model.work_item_parameter_key_api_model import WorkItemParameterKeyApiModel +from testit_api_client.model.work_item_parameter_key_api_result import WorkItemParameterKeyApiResult +from testit_api_client.model.work_item_parameter_key_model import WorkItemParameterKeyModel from testit_api_client.model.work_item_preview_api_model import WorkItemPreviewApiModel from testit_api_client.model.work_item_preview_step_api_model import WorkItemPreviewStepApiModel from testit_api_client.model.work_item_priority import WorkItemPriority