From a01137696f7d652a4928af64972a7884561a8972 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Tue, 7 Jul 2026 10:40:54 +0300 Subject: [PATCH] chore: update API clients to latest specification --- qase-api-client/docs/TestCase.md | 4 ++-- qase-api-client/docs/TestCaseCreate.md | 4 ++-- qase-api-client/docs/TestCaseUpdate.md | 4 ++-- qase-api-client/docs/TestCasebulkCasesInner.md | 4 ++-- qase-api-client/pyproject.toml | 2 +- qase-api-client/src/qase/api_client_v1/models/test_case.py | 6 +++--- .../src/qase/api_client_v1/models/test_case_create.py | 6 +++--- .../src/qase/api_client_v1/models/test_case_update.py | 6 +++--- .../qase/api_client_v1/models/test_casebulk_cases_inner.py | 6 +++--- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/qase-api-client/docs/TestCase.md b/qase-api-client/docs/TestCase.md index 3456e22d..4fb1ef10 100644 --- a/qase-api-client/docs/TestCase.md +++ b/qase-api-client/docs/TestCase.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **is_flaky** | **int** | | [optional] **behavior** | **int** | | [optional] **automation** | **int** | Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. | [optional] -**is_manual** | **int** | `1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] -**is_to_be_automated** | **int** | `1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`. | [optional] +**is_manual** | **bool** | `true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] +**is_to_be_automated** | **bool** | `true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`. | [optional] **status** | **int** | | [optional] **milestone_id** | **int** | | [optional] **suite_id** | **int** | | [optional] diff --git a/qase-api-client/docs/TestCaseCreate.md b/qase-api-client/docs/TestCaseCreate.md index 51a027d6..afbb6842 100644 --- a/qase-api-client/docs/TestCaseCreate.md +++ b/qase-api-client/docs/TestCaseCreate.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **suite_id** | **int** | | [optional] **milestone_id** | **int** | | [optional] **automation** | **int** | Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence. | [optional] -**is_manual** | **int** | `1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] -**is_to_be_automated** | **int** | `1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`. | [optional] +**is_manual** | **bool** | `true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] +**is_to_be_automated** | **bool** | `true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`. | [optional] **status** | **int** | | [optional] **steps_type** | **str** | Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format. | [optional] [default to 'classic'] **attachments** | **List[str]** | A list of Attachment hashes. | [optional] diff --git a/qase-api-client/docs/TestCaseUpdate.md b/qase-api-client/docs/TestCaseUpdate.md index ff14f9bd..0547e537 100644 --- a/qase-api-client/docs/TestCaseUpdate.md +++ b/qase-api-client/docs/TestCaseUpdate.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **suite_id** | **int** | | [optional] **milestone_id** | **int** | | [optional] **automation** | **int** | Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence. | [optional] -**is_manual** | **int** | `1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] -**is_to_be_automated** | **int** | `1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`. | [optional] +**is_manual** | **bool** | `true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] +**is_to_be_automated** | **bool** | `true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`. | [optional] **status** | **int** | | [optional] **steps_type** | **str** | Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format. | [optional] [default to 'classic'] **attachments** | **List[str]** | A list of Attachment hashes. | [optional] diff --git a/qase-api-client/docs/TestCasebulkCasesInner.md b/qase-api-client/docs/TestCasebulkCasesInner.md index 7a7816ac..462956ba 100644 --- a/qase-api-client/docs/TestCasebulkCasesInner.md +++ b/qase-api-client/docs/TestCasebulkCasesInner.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **suite_id** | **int** | | [optional] **milestone_id** | **int** | | [optional] **automation** | **int** | Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence. | [optional] -**is_manual** | **int** | `1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] -**is_to_be_automated** | **int** | `1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`. | [optional] +**is_manual** | **bool** | `true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field. | [optional] +**is_to_be_automated** | **bool** | `true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`. | [optional] **status** | **int** | | [optional] **steps_type** | **str** | Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format. | [optional] [default to 'classic'] **attachments** | **List[str]** | A list of Attachment hashes. | [optional] diff --git a/qase-api-client/pyproject.toml b/qase-api-client/pyproject.toml index 7ba9a07e..53643b8e 100644 --- a/qase-api-client/pyproject.toml +++ b/qase-api-client/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qase-api-client" -version = "2.0.10" +version = "2.0.11" description = "Qase TestOps API V1 client for Python" readme = "README.md" authors = [{name = "Qase Team", email = "support@qase.io"}] 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 96ee1ed4..a76933c7 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 @@ -19,7 +19,7 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from qase.api_client_v1.models.attachment import Attachment from qase.api_client_v1.models.custom_field_value import CustomFieldValue @@ -48,8 +48,8 @@ class TestCase(BaseModel): is_flaky: Optional[StrictInt] = None behavior: Optional[StrictInt] = None automation: Optional[StrictInt] = Field(default=None, description="Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated.") - is_manual: Optional[StrictInt] = Field(default=None, description="`1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") - is_to_be_automated: Optional[StrictInt] = Field(default=None, description="`1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`.", alias="isToBeAutomated") + is_manual: Optional[StrictBool] = Field(default=None, description="`true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") + is_to_be_automated: Optional[StrictBool] = Field(default=None, description="`true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`.", alias="isToBeAutomated") status: Optional[StrictInt] = None milestone_id: Optional[StrictInt] = None suite_id: Optional[StrictInt] = None 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 d0f7cce8..8acb05b7 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 @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate @@ -43,8 +43,8 @@ class TestCaseCreate(BaseModel): suite_id: Optional[StrictInt] = None milestone_id: Optional[StrictInt] = None automation: Optional[StrictInt] = Field(default=None, description="Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence.") - is_manual: Optional[StrictInt] = Field(default=None, description="`1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") - is_to_be_automated: Optional[StrictInt] = Field(default=None, description="`1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`.", alias="isToBeAutomated") + is_manual: Optional[StrictBool] = Field(default=None, description="`true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") + is_to_be_automated: Optional[StrictBool] = Field(default=None, description="`true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`.", alias="isToBeAutomated") status: Optional[StrictInt] = None steps_type: Optional[StrictStr] = Field(default='classic', description="Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format.") attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") 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 95d429ee..9d48e3dd 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 @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate @@ -43,8 +43,8 @@ class TestCaseUpdate(BaseModel): suite_id: Optional[StrictInt] = None milestone_id: Optional[StrictInt] = None automation: Optional[StrictInt] = Field(default=None, description="Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence.") - is_manual: Optional[StrictInt] = Field(default=None, description="`1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") - is_to_be_automated: Optional[StrictInt] = Field(default=None, description="`1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`.", alias="isToBeAutomated") + is_manual: Optional[StrictBool] = Field(default=None, description="`true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") + is_to_be_automated: Optional[StrictBool] = Field(default=None, description="`true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`.", alias="isToBeAutomated") status: Optional[StrictInt] = None steps_type: Optional[StrictStr] = Field(default='classic', description="Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format.") attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.") 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 f0b3e70a..400d6d67 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 @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from qase.api_client_v1.models.test_case_parameter_create import TestCaseParameterCreate @@ -43,8 +43,8 @@ class TestCasebulkCasesInner(BaseModel): suite_id: Optional[StrictInt] = None milestone_id: Optional[StrictInt] = None automation: Optional[StrictInt] = Field(default=None, description="Deprecated, use `isManual` and `isToBeAutomated` instead. Encodes the test case automation state as a single integer: `0` = manual, `1` = manual planned to be automated, `2` = automated. If both `automation` and `isManual`/`isToBeAutomated` are provided, `isManual` and `isToBeAutomated` take precedence.") - is_manual: Optional[StrictInt] = Field(default=None, description="`1` if the case is manual, `0` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") - is_to_be_automated: Optional[StrictInt] = Field(default=None, description="`1` if a manual case is planned to be automated, `0` otherwise. Only meaningful when `isManual = 1`; ignored when `isManual = 0`.", alias="isToBeAutomated") + is_manual: Optional[StrictBool] = Field(default=None, description="`true` if the case is manual, `false` if it is automated. Combined with `isToBeAutomated`, replaces the deprecated `automation` field.", alias="isManual") + is_to_be_automated: Optional[StrictBool] = Field(default=None, description="`true` if a manual case is planned to be automated, `false` otherwise. Only meaningful when `isManual` is `true`; ignored when `isManual` is `false`.", alias="isToBeAutomated") status: Optional[StrictInt] = None steps_type: Optional[StrictStr] = Field(default='classic', description="Determines the format of the steps field. When \"classic\", steps use the standard action/expected_result/data format. When \"gherkin\", steps use the {value: \"Given...\\nWhen...\\nThen...\"} format.") attachments: Optional[List[StrictStr]] = Field(default=None, description="A list of Attachment hashes.")