diff --git a/.swagger/cloud-swagger.json b/.swagger/cloud-swagger.json index 36c5aa90..b7ed1e43 100644 --- a/.swagger/cloud-swagger.json +++ b/.swagger/cloud-swagger.json @@ -34681,42 +34681,6 @@ }, "additionalProperties": false }, - "AutoTestResultReasonsCountItemModel": { - "required": [ - "count", - "failureCategory" - ], - "type": "object", - "properties": { - "failureCategory": { - "allOf": [ - { - "$ref": "#/components/schemas/AvailableFailureCategory" - } - ] - }, - "count": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false - }, - "AutoTestResultReasonsCountModel": { - "required": [ - "data" - ], - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AutoTestResultReasonsCountItemModel" - } - } - }, - "additionalProperties": false - }, "AutoTestResultsForTestRunModel": { "required": [ "autoTestExternalId", @@ -34762,7 +34726,16 @@ }, "statusCode": { "type": "string", - "description": "Specifies the result of the autotest execution.", + "description": "Specifies code of result status of the autotest execution.", + "nullable": true + }, + "statusType": { + "allOf": [ + { + "$ref": "#/components/schemas/TestStatusType" + } + ], + "description": "Specifies type of result status of the autotest execution.", "nullable": true }, "message": { @@ -36240,10 +36213,12 @@ "properties": { "id": { "type": "string", + "description": "Identifier of the configuration.", "format": "uuid" }, "name": { - "type": "string" + "type": "string", + "description": "Name of the configuration." } }, "additionalProperties": false @@ -38868,34 +38843,49 @@ "required": [ "externalServiceId", "previewLimit", - "sectionId", - "taskKey", "temperature" ], "type": "object", "properties": { "externalServiceId": { "type": "string", + "description": "The ID of the external AI service to be used for generation.", "format": "uuid" }, "taskKey": { - "minLength": 1, - "type": "string" + "maxLength": 255, + "minLength": 0, + "type": "string", + "description": "The key of the issue in an issue tracker (e.g., JIRA-123).", + "nullable": true, + "deprecated": true }, - "sectionId": { + "issueKey": { + "maxLength": 255, + "minLength": 0, "type": "string", - "format": "uuid" + "description": "The key of the issue in an issue tracker (e.g., JIRA-123).", + "nullable": true + }, + "userContext": { + "maxLength": 30000, + "minLength": 0, + "type": "string", + "description": "Additional user context or description of the issue if no issue key is provided.", + "nullable": true }, "temperature": { "maximum": 1, "minimum": 0, "type": "number", + "description": "Controls randomness of the AI model output.", "format": "float" }, "previewLimit": { "maximum": 30, "minimum": 1, "type": "integer", + "description": "Number of work item previews to generate.", "format": "int32" } }, @@ -39875,22 +39865,6 @@ }, "additionalProperties": false }, - "LinkShort": { - "required": [ - "name", - "url" - ], - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string" - } - }, - "additionalProperties": false - }, "LinkShortApiResult": { "required": [ "id", @@ -41767,20 +41741,24 @@ "properties": { "id": { "type": "string", + "description": "Identifier of the rerun result.", "format": "uuid" }, "outcome": { - "type": "string" + "type": "string", + "description": "Status of the autotest run." }, "status": { "allOf": [ { - "$ref": "#/components/schemas/TestStatusApiResult" + "$ref": "#/components/schemas/TestStatusShortApiResult" } - ] + ], + "description": "Status of the autotest run." }, "runNumber": { "type": "integer", + "description": "Number of the run (e.g., 1 for the first attempt).", "format": "int32" } }, @@ -44926,7 +44904,7 @@ }, "duration": { "type": "integer", - "format": "int32" + "format": "int64" }, "state": { "allOf": [ @@ -47100,6 +47078,56 @@ }, "additionalProperties": false }, + "TestResultLinkApiResult": { + "required": [ + "hasInfo", + "url" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Link unique identifier", + "format": "uuid", + "nullable": true + }, + "title": { + "type": "string", + "description": "Link name.", + "nullable": true + }, + "url": { + "type": "string", + "description": "Address can be specified without protocol, but necessarily with the domain." + }, + "description": { + "type": "string", + "description": "Link description.", + "nullable": true + }, + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/LinkType" + } + ], + "description": "Specifies the type of the link.", + "nullable": true + }, + "hasInfo": { + "type": "boolean", + "description": "Flag defines if link relates to integrated jira service" + }, + "name": { + "type": "string", + "description": "Link name. Backward compatibility.", + "nullable": true, + "readOnly": true, + "deprecated": true + } + }, + "additionalProperties": false + }, "TestResultOutcome": { "enum": [ "InProgress", @@ -47505,7 +47533,7 @@ "links": { "type": "array", "items": { - "$ref": "#/components/schemas/LinkShort" + "$ref": "#/components/schemas/TestResultLinkApiResult" }, "description": "Collection of links attached to the test result" }, @@ -47583,6 +47611,14 @@ "type": "string", "nullable": true }, + "statusType": { + "allOf": [ + { + "$ref": "#/components/schemas/TestStatusType" + } + ], + "nullable": true + }, "comment": { "type": "string", "nullable": true @@ -49328,13 +49364,16 @@ "properties": { "id": { "type": "string", + "description": "Identifier of the test status.", "format": "uuid" }, - "name": { - "type": "string" - }, "code": { - "type": "string" + "type": "string", + "description": "Code representing the test status." + }, + "name": { + "type": "string", + "description": "Name of the test status." }, "type": { "allOf": [ @@ -49342,7 +49381,7 @@ "$ref": "#/components/schemas/TestStatusApiType" } ], - "description": "Collection of possible status types" + "description": "Type of the test status (e.g., Passed, Failed)." } }, "additionalProperties": false @@ -49970,7 +50009,7 @@ "duration": { "allOf": [ { - "$ref": "#/components/schemas/Int32RangeSelectorModel" + "$ref": "#/components/schemas/Int64RangeSelectorModel" } ], "description": "Specifies a work item duration range to search for", @@ -52643,7 +52682,7 @@ "duration": { "allOf": [ { - "$ref": "#/components/schemas/Int32RangeSelectorModel" + "$ref": "#/components/schemas/Int64RangeSelectorModel" } ], "description": "Specifies a work item duration range to search for", @@ -53195,7 +53234,7 @@ "duration": { "allOf": [ { - "$ref": "#/components/schemas/Int32RangeSelectorModel" + "$ref": "#/components/schemas/Int64RangeSelectorModel" } ], "description": "Specifies a work item duration range to search for", @@ -53796,7 +53835,7 @@ "duration": { "allOf": [ { - "$ref": "#/components/schemas/Int32RangeSelectorModel" + "$ref": "#/components/schemas/Int64RangeSelectorModel" } ], "description": "Specifies a work item duration range to search for", @@ -54000,7 +54039,7 @@ "duration": { "type": "integer", "description": "Work Item duration", - "format": "int32" + "format": "int64" }, "medianDuration": { "type": "integer", diff --git a/README.md b/README.md index 81620c28..b76ae2d0 100644 --- a/README.md +++ b/README.md @@ -508,8 +508,6 @@ Class | Method | HTTP request | Description - [AutoTestResultHistoryApiResultStatus](docs/AutoTestResultHistoryApiResultStatus.md) - [AutoTestResultHistorySelectApiModel](docs/AutoTestResultHistorySelectApiModel.md) - [AutoTestResultReasonShort](docs/AutoTestResultReasonShort.md) - - [AutoTestResultReasonsCountItemModel](docs/AutoTestResultReasonsCountItemModel.md) - - [AutoTestResultReasonsCountModel](docs/AutoTestResultReasonsCountModel.md) - [AutoTestResultsForTestRunModel](docs/AutoTestResultsForTestRunModel.md) - [AutoTestSearchApiModel](docs/AutoTestSearchApiModel.md) - [AutoTestSearchApiModelFilter](docs/AutoTestSearchApiModelFilter.md) @@ -699,7 +697,6 @@ Class | Method | HTTP request | Description - [LinkModel](docs/LinkModel.md) - [LinkPostModel](docs/LinkPostModel.md) - [LinkPutModel](docs/LinkPutModel.md) - - [LinkShort](docs/LinkShort.md) - [LinkShortApiResult](docs/LinkShortApiResult.md) - [LinkShortModel](docs/LinkShortModel.md) - [LinkType](docs/LinkType.md) @@ -769,6 +766,7 @@ Class | Method | HTTP request | Description - [RequestTypeApiModel](docs/RequestTypeApiModel.md) - [RequestTypeModel](docs/RequestTypeModel.md) - [RerunTestResultApiResult](docs/RerunTestResultApiResult.md) + - [RerunTestResultApiResultStatus](docs/RerunTestResultApiResultStatus.md) - [RerunsApiResult](docs/RerunsApiResult.md) - [SearchAttributesInProjectRequest](docs/SearchAttributesInProjectRequest.md) - [SearchCustomAttributeTemplateGetModel](docs/SearchCustomAttributeTemplateGetModel.md) @@ -907,6 +905,7 @@ Class | Method | HTTP request | Description - [TestResultFailureClassApiResult](docs/TestResultFailureClassApiResult.md) - [TestResultHistoryReportApiResult](docs/TestResultHistoryReportApiResult.md) - [TestResultHistoryReportApiResultStatus](docs/TestResultHistoryReportApiResultStatus.md) + - [TestResultLinkApiResult](docs/TestResultLinkApiResult.md) - [TestResultOutcome](docs/TestResultOutcome.md) - [TestResultResponse](docs/TestResultResponse.md) - [TestResultShortApiResult](docs/TestResultShortApiResult.md) @@ -1063,6 +1062,7 @@ Class | Method | HTTP request | Description - [WorkItemExtractionApiModelSectionIds](docs/WorkItemExtractionApiModelSectionIds.md) - [WorkItemExtractionModel](docs/WorkItemExtractionModel.md) - [WorkItemFilterApiModel](docs/WorkItemFilterApiModel.md) + - [WorkItemFilterApiModelDuration](docs/WorkItemFilterApiModelDuration.md) - [WorkItemFilterApiModelExternalMetadata](docs/WorkItemFilterApiModelExternalMetadata.md) - [WorkItemFilterApiModelLinks](docs/WorkItemFilterApiModelLinks.md) - [WorkItemFilterModel](docs/WorkItemFilterModel.md) diff --git a/docs/ApiV2TestResultsIdPutRequest.md b/docs/ApiV2TestResultsIdPutRequest.md index 1984fff4..680d4189 100644 --- a/docs/ApiV2TestResultsIdPutRequest.md +++ b/docs/ApiV2TestResultsIdPutRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **failure_class_ids** | **[str], none_type** | | [optional] **outcome** | [**TestResultOutcome**](TestResultOutcome.md) | | [optional] **status_code** | **str, none_type** | | [optional] +**status_type** | [**TestStatusType**](TestStatusType.md) | | [optional] **comment** | **str, none_type** | | [optional] **links** | [**[Link], none_type**](Link.md) | | [optional] **step_results** | [**[StepResultApiModel], none_type**](StepResultApiModel.md) | | [optional] diff --git a/docs/AutoTestResultReasonsCountItemModel.md b/docs/AutoTestResultReasonsCountItemModel.md deleted file mode 100644 index 28b79268..00000000 --- a/docs/AutoTestResultReasonsCountItemModel.md +++ /dev/null @@ -1,12 +0,0 @@ -# AutoTestResultReasonsCountItemModel - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**failure_category** | [**AvailableFailureCategory**](AvailableFailureCategory.md) | | -**count** | **int** | | - -[[Back to Model 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/AutoTestResultReasonsCountModel.md b/docs/AutoTestResultReasonsCountModel.md deleted file mode 100644 index b2c8901a..00000000 --- a/docs/AutoTestResultReasonsCountModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# AutoTestResultReasonsCountModel - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[AutoTestResultReasonsCountItemModel]**](AutoTestResultReasonsCountItemModel.md) | | - -[[Back to Model 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/AutoTestResultsForTestRunModel.md b/docs/AutoTestResultsForTestRunModel.md index 287d9ad0..caa950fb 100644 --- a/docs/AutoTestResultsForTestRunModel.md +++ b/docs/AutoTestResultsForTestRunModel.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **links** | [**[LinkPostModel], none_type**](LinkPostModel.md) | Specifies the links in the autotest. | [optional] **failure_reason_names** | [**[FailureCategoryModel], none_type**](FailureCategoryModel.md) | Specifies the cause of autotest failure. | [optional] **outcome** | [**AvailableTestResultOutcome**](AvailableTestResultOutcome.md) | | [optional] -**status_code** | **str, none_type** | Specifies the result of the autotest execution. | [optional] +**status_code** | **str, none_type** | Specifies code of result status of the autotest execution. | [optional] +**status_type** | [**TestStatusType**](TestStatusType.md) | | [optional] **message** | **str, none_type** | A comment for the result. | [optional] **traces** | **str, none_type** | An extended comment or a stack trace. | [optional] **started_on** | **datetime, none_type** | Test run start date. | [optional] diff --git a/docs/ConfigurationShortApiResult.md b/docs/ConfigurationShortApiResult.md index 1f61c682..195bd04b 100644 --- a/docs/ConfigurationShortApiResult.md +++ b/docs/ConfigurationShortApiResult.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | -**name** | **str** | | +**id** | **str** | Identifier of the configuration. | +**name** | **str** | Name of the configuration. | [[Back to Model 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/GenerateWorkItemPreviewsApiModel.md b/docs/GenerateWorkItemPreviewsApiModel.md index c1a3095e..2496e06e 100644 --- a/docs/GenerateWorkItemPreviewsApiModel.md +++ b/docs/GenerateWorkItemPreviewsApiModel.md @@ -4,11 +4,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external_service_id** | **str** | | -**task_key** | **str** | | -**section_id** | **str** | | -**temperature** | **float** | | -**preview_limit** | **int** | | +**external_service_id** | **str** | The ID of the external AI service to be used for generation. | +**temperature** | **float** | Controls randomness of the AI model output. | +**preview_limit** | **int** | Number of work item previews to generate. | +**task_key** | **str, none_type** | The key of the issue in an issue tracker (e.g., JIRA-123). | [optional] +**issue_key** | **str, none_type** | The key of the issue in an issue tracker (e.g., JIRA-123). | [optional] +**user_context** | **str, none_type** | Additional user context or description of the issue if no issue key is provided. | [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/LinkShort.md b/docs/LinkShort.md deleted file mode 100644 index 7572ba25..00000000 --- a/docs/LinkShort.md +++ /dev/null @@ -1,12 +0,0 @@ -# LinkShort - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**url** | **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/RerunTestResultApiResult.md b/docs/RerunTestResultApiResult.md index e2896bda..ae0e1a33 100644 --- a/docs/RerunTestResultApiResult.md +++ b/docs/RerunTestResultApiResult.md @@ -4,10 +4,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | -**outcome** | **str** | | -**status** | [**AutoTestResultHistoryApiResultStatus**](AutoTestResultHistoryApiResultStatus.md) | | -**run_number** | **int** | | +**id** | **str** | Identifier of the rerun result. | +**outcome** | **str** | Status of the autotest run. | +**status** | [**RerunTestResultApiResultStatus**](RerunTestResultApiResultStatus.md) | | +**run_number** | **int** | Number of the run (e.g., 1 for the first attempt). | [[Back to Model 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/RerunTestResultApiResultStatus.md b/docs/RerunTestResultApiResultStatus.md new file mode 100644 index 00000000..5b8dfd30 --- /dev/null +++ b/docs/RerunTestResultApiResultStatus.md @@ -0,0 +1,16 @@ +# RerunTestResultApiResultStatus + +Status of the autotest run. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Identifier of the test status. | +**code** | **str** | Code representing the test status. | +**name** | **str** | Name of the test status. | +**type** | [**TestStatusApiType**](TestStatusApiType.md) | | +**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/TestPlanTestPointsSearchApiResultConfiguration.md b/docs/TestPlanTestPointsSearchApiResultConfiguration.md index e3f84983..0b963981 100644 --- a/docs/TestPlanTestPointsSearchApiResultConfiguration.md +++ b/docs/TestPlanTestPointsSearchApiResultConfiguration.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | -**name** | **str** | | +**id** | **str** | Identifier of the configuration. | +**name** | **str** | Name of the configuration. | **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/TestPlanTestPointsSearchApiResultStatusModel.md b/docs/TestPlanTestPointsSearchApiResultStatusModel.md index ec34fda3..c6eda740 100644 --- a/docs/TestPlanTestPointsSearchApiResultStatusModel.md +++ b/docs/TestPlanTestPointsSearchApiResultStatusModel.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | -**name** | **str** | | -**code** | **str** | | +**id** | **str** | Identifier of the test status. | +**code** | **str** | Code representing the test status. | +**name** | **str** | Name of the test status. | **type** | [**TestStatusApiType**](TestStatusApiType.md) | | **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] diff --git a/docs/TestResultLinkApiResult.md b/docs/TestResultLinkApiResult.md new file mode 100644 index 00000000..1bfd3bf5 --- /dev/null +++ b/docs/TestResultLinkApiResult.md @@ -0,0 +1,17 @@ +# TestResultLinkApiResult + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | Address can be specified without protocol, but necessarily with the domain. | +**has_info** | **bool** | Flag defines if link relates to integrated jira service | +**id** | **str, none_type** | Link unique identifier | [optional] +**title** | **str, none_type** | Link name. | [optional] +**description** | **str, none_type** | Link description. | [optional] +**type** | [**LinkType**](LinkType.md) | | [optional] +**name** | **str, none_type** | Link name. Backward compatibility. | [optional] [readonly] + +[[Back to Model 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/TestResultShortResponse.md b/docs/TestResultShortResponse.md index df7c1e68..b885084f 100644 --- a/docs/TestResultShortResponse.md +++ b/docs/TestResultShortResponse.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **result_reasons** | [**[AutoTestResultReasonShort]**](AutoTestResultReasonShort.md) | Collection of result reasons which the test result have | **date** | **datetime** | Date when the test result was completed or started or created | **created_date** | **datetime** | Date when the test result has been created | -**links** | [**[LinkShort]**](LinkShort.md) | Collection of links attached to the test result | +**links** | [**[TestResultLinkApiResult]**](TestResultLinkApiResult.md) | Collection of links attached to the test result | **attachments** | [**[AttachmentApiResult]**](AttachmentApiResult.md) | Collection of files attached to the test result | **rerun_completed_count** | **int** | Run count | **autotest_external_id** | **str, none_type** | External ID of autotest represented by the test result | [optional] diff --git a/docs/TestResultUpdateV2Request.md b/docs/TestResultUpdateV2Request.md index fd9b712a..85233c93 100644 --- a/docs/TestResultUpdateV2Request.md +++ b/docs/TestResultUpdateV2Request.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **failure_class_ids** | **[str], none_type** | | [optional] **outcome** | [**TestResultOutcome**](TestResultOutcome.md) | | [optional] **status_code** | **str, none_type** | | [optional] +**status_type** | [**TestStatusType**](TestStatusType.md) | | [optional] **comment** | **str, none_type** | | [optional] **links** | [**[Link], none_type**](Link.md) | | [optional] **step_results** | [**[StepResultApiModel], none_type**](StepResultApiModel.md) | | [optional] diff --git a/docs/TestRunsApi.md b/docs/TestRunsApi.md index 019fd2a1..7947559c 100644 --- a/docs/TestRunsApi.md +++ b/docs/TestRunsApi.md @@ -1840,6 +1840,7 @@ with testit_api_client.ApiClient(configuration) as api_client: auto_test_external_id="auto_test_external_id_example", outcome=None, status_code="status_code_example", + status_type=None, message="message_example", traces="traces_example", started_on=dateutil_parser('1970-01-01T00:00:00.00Z'), diff --git a/docs/TestStatusShortApiResult.md b/docs/TestStatusShortApiResult.md index f2e30495..de25c7f2 100644 --- a/docs/TestStatusShortApiResult.md +++ b/docs/TestStatusShortApiResult.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | -**name** | **str** | | -**code** | **str** | | +**id** | **str** | Identifier of the test status. | +**code** | **str** | Code representing the test status. | +**name** | **str** | Name of the test status. | **type** | [**TestStatusApiType**](TestStatusApiType.md) | | [[Back to Model 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/WorkItemFilterApiModel.md b/docs/WorkItemFilterApiModel.md index f6fb3ba8..0a8001e3 100644 --- a/docs/WorkItemFilterApiModel.md +++ b/docs/WorkItemFilterApiModel.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **types** | [**[WorkItemEntityTypes], none_type**](WorkItemEntityTypes.md) | Collection of types of work item | [optional] **created_date** | [**TestPlanTestPointsSearchApiModelWorkItemCreatedDate**](TestPlanTestPointsSearchApiModelWorkItemCreatedDate.md) | | [optional] **modified_date** | [**TestPlanTestPointsSearchApiModelWorkItemModifiedDate**](TestPlanTestPointsSearchApiModelWorkItemModifiedDate.md) | | [optional] -**duration** | [**TestSuiteWorkItemsSearchModelDuration**](TestSuiteWorkItemsSearchModelDuration.md) | | [optional] +**duration** | [**WorkItemFilterApiModelDuration**](WorkItemFilterApiModelDuration.md) | | [optional] **median_duration** | [**TestSuiteWorkItemsSearchModelMedianDuration**](TestSuiteWorkItemsSearchModelMedianDuration.md) | | [optional] **is_automated** | **bool, none_type** | Is result must consist of only manual/automated work items | [optional] **tags** | **[str], none_type** | Collection of tags | [optional] diff --git a/docs/WorkItemFilterApiModelDuration.md b/docs/WorkItemFilterApiModelDuration.md new file mode 100644 index 00000000..e70bc327 --- /dev/null +++ b/docs/WorkItemFilterApiModelDuration.md @@ -0,0 +1,14 @@ +# WorkItemFilterApiModelDuration + +Specifies a work item duration range to search for + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_from** | **int, none_type** | | [optional] +**to** | **int, none_type** | | [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/WorkItemSelectApiModelFilter.md b/docs/WorkItemSelectApiModelFilter.md index 7159c808..a97a102c 100644 --- a/docs/WorkItemSelectApiModelFilter.md +++ b/docs/WorkItemSelectApiModelFilter.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **types** | [**[WorkItemEntityTypes], none_type**](WorkItemEntityTypes.md) | Collection of types of work item | [optional] **created_date** | [**TestPlanTestPointsSearchApiModelWorkItemCreatedDate**](TestPlanTestPointsSearchApiModelWorkItemCreatedDate.md) | | [optional] **modified_date** | [**TestPlanTestPointsSearchApiModelWorkItemModifiedDate**](TestPlanTestPointsSearchApiModelWorkItemModifiedDate.md) | | [optional] -**duration** | [**TestSuiteWorkItemsSearchModelDuration**](TestSuiteWorkItemsSearchModelDuration.md) | | [optional] +**duration** | [**WorkItemFilterApiModelDuration**](WorkItemFilterApiModelDuration.md) | | [optional] **median_duration** | [**TestSuiteWorkItemsSearchModelMedianDuration**](TestSuiteWorkItemsSearchModelMedianDuration.md) | | [optional] **is_automated** | **bool, none_type** | Is result must consist of only manual/automated work items | [optional] **tags** | **[str], none_type** | Collection of tags | [optional] diff --git a/genConfig.yml b/genConfig.yml index 23423935..2bec22d9 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.3 +packageVersion: 7.5.4 projectName: "testit-api-client" diff --git a/run.sh b/run.sh index ca99f2c7..7549c978 100644 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ # Настройка переменных FILE_NAME="cloud-swagger.json" -NEW_VERSION="7.5.3" +NEW_VERSION="7.5.4" GENERATOR="openapi-generator-cli-6.6.0.jar" if [ ! -f ".swagger/$FILE_NAME" ]; then diff --git a/setup.py b/setup.py index dac9f77b..0c93d482 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ NAME = "testit-api-client" -VERSION = "7.5.3" +VERSION = "7.5.4" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ diff --git a/src/testit_api_client/__init__.py b/src/testit_api_client/__init__.py index 22557ba9..f81b7537 100644 --- a/src/testit_api_client/__init__.py +++ b/src/testit_api_client/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "7.5.3" +__version__ = "7.5.4" # import ApiClient from testit_api_client.api_client import ApiClient diff --git a/src/testit_api_client/api_client.py b/src/testit_api_client/api_client.py index 2446e131..1fea157d 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.3/python' + self.user_agent = 'OpenAPI-Generator/7.5.4/python' def __enter__(self): return self diff --git a/src/testit_api_client/configuration.py b/src/testit_api_client/configuration.py index fe9b70ea..b93c1fc6 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.3".\ + "SDK Package Version: 7.5.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/testit_api_client/model/api_v2_test_results_id_put_request.py b/src/testit_api_client/model/api_v2_test_results_id_put_request.py index 0625a019..df8e5a1c 100644 --- a/src/testit_api_client/model/api_v2_test_results_id_put_request.py +++ b/src/testit_api_client/model/api_v2_test_results_id_put_request.py @@ -37,6 +37,7 @@ def lazy_import(): from testit_api_client.model.test_result_outcome import TestResultOutcome from testit_api_client.model.test_result_step_comment_update_request import TestResultStepCommentUpdateRequest from testit_api_client.model.test_result_update_v2_request import TestResultUpdateV2Request + from testit_api_client.model.test_status_type import TestStatusType globals()['AttachmentUpdateRequest'] = AttachmentUpdateRequest globals()['AutoTestStepResultUpdateRequest'] = AutoTestStepResultUpdateRequest globals()['Link'] = Link @@ -44,6 +45,7 @@ def lazy_import(): globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultStepCommentUpdateRequest'] = TestResultStepCommentUpdateRequest globals()['TestResultUpdateV2Request'] = TestResultUpdateV2Request + globals()['TestStatusType'] = TestStatusType class ApiV2TestResultsIdPutRequest(ModelComposed): @@ -110,6 +112,7 @@ def openapi_types(): 'failure_class_ids': ([str], none_type,), # noqa: E501 'outcome': (TestResultOutcome,), # noqa: E501 'status_code': (str, none_type,), # noqa: E501 + 'status_type': (TestStatusType,), # noqa: E501 'comment': (str, none_type,), # noqa: E501 'links': ([Link], none_type,), # noqa: E501 'step_results': ([StepResultApiModel], none_type,), # noqa: E501 @@ -132,6 +135,7 @@ def discriminator(): 'failure_class_ids': 'failureClassIds', # noqa: E501 'outcome': 'outcome', # noqa: E501 'status_code': 'statusCode', # noqa: E501 + 'status_type': 'statusType', # noqa: E501 'comment': 'comment', # noqa: E501 'links': 'links', # noqa: E501 'step_results': 'stepResults', # noqa: E501 @@ -187,6 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 failure_class_ids ([str], none_type): [optional] # noqa: E501 outcome (TestResultOutcome): [optional] # noqa: E501 status_code (str, none_type): [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 comment (str, none_type): [optional] # noqa: E501 links ([Link], none_type): [optional] # noqa: E501 step_results ([StepResultApiModel], none_type): [optional] # noqa: E501 @@ -304,6 +309,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 failure_class_ids ([str], none_type): [optional] # noqa: E501 outcome (TestResultOutcome): [optional] # noqa: E501 status_code (str, none_type): [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 comment (str, none_type): [optional] # noqa: E501 links ([Link], none_type): [optional] # noqa: E501 step_results ([StepResultApiModel], none_type): [optional] # noqa: E501 diff --git a/src/testit_api_client/model/auto_test_results_for_test_run_model.py b/src/testit_api_client/model/auto_test_results_for_test_run_model.py index dd30abda..27fe03d4 100644 --- a/src/testit_api_client/model/auto_test_results_for_test_run_model.py +++ b/src/testit_api_client/model/auto_test_results_for_test_run_model.py @@ -35,11 +35,13 @@ def lazy_import(): from testit_api_client.model.available_test_result_outcome import AvailableTestResultOutcome from testit_api_client.model.failure_category_model import FailureCategoryModel from testit_api_client.model.link_post_model import LinkPostModel + from testit_api_client.model.test_status_type import TestStatusType globals()['AttachmentPutModel'] = AttachmentPutModel globals()['AttachmentPutModelAutoTestStepResultsModel'] = AttachmentPutModelAutoTestStepResultsModel globals()['AvailableTestResultOutcome'] = AvailableTestResultOutcome globals()['FailureCategoryModel'] = FailureCategoryModel globals()['LinkPostModel'] = LinkPostModel + globals()['TestStatusType'] = TestStatusType class AutoTestResultsForTestRunModel(ModelNormal): @@ -101,6 +103,7 @@ def openapi_types(): 'failure_reason_names': ([FailureCategoryModel], none_type,), # noqa: E501 'outcome': (AvailableTestResultOutcome,), # noqa: E501 'status_code': (str, none_type,), # noqa: E501 + 'status_type': (TestStatusType,), # noqa: E501 'message': (str, none_type,), # noqa: E501 'traces': (str, none_type,), # noqa: E501 'started_on': (datetime, none_type,), # noqa: E501 @@ -126,6 +129,7 @@ def discriminator(): 'failure_reason_names': 'failureReasonNames', # noqa: E501 'outcome': 'outcome', # noqa: E501 'status_code': 'statusCode', # noqa: E501 + 'status_type': 'statusType', # noqa: E501 'message': 'message', # noqa: E501 'traces': 'traces', # noqa: E501 'started_on': 'startedOn', # noqa: E501 @@ -187,7 +191,8 @@ def _from_openapi_data(cls, configuration_id, auto_test_external_id, *args, **kw links ([LinkPostModel], none_type): Specifies the links in the autotest.. [optional] # noqa: E501 failure_reason_names ([FailureCategoryModel], none_type): Specifies the cause of autotest failure.. [optional] # noqa: E501 outcome (AvailableTestResultOutcome): [optional] # noqa: E501 - status_code (str, none_type): Specifies the result of the autotest execution.. [optional] # noqa: E501 + status_code (str, none_type): Specifies code of result status of the autotest execution.. [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 message (str, none_type): A comment for the result.. [optional] # noqa: E501 traces (str, none_type): An extended comment or a stack trace.. [optional] # noqa: E501 started_on (datetime, none_type): Test run start date.. [optional] # noqa: E501 @@ -293,7 +298,8 @@ def __init__(self, configuration_id, auto_test_external_id, *args, **kwargs): # links ([LinkPostModel], none_type): Specifies the links in the autotest.. [optional] # noqa: E501 failure_reason_names ([FailureCategoryModel], none_type): Specifies the cause of autotest failure.. [optional] # noqa: E501 outcome (AvailableTestResultOutcome): [optional] # noqa: E501 - status_code (str, none_type): Specifies the result of the autotest execution.. [optional] # noqa: E501 + status_code (str, none_type): Specifies code of result status of the autotest execution.. [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 message (str, none_type): A comment for the result.. [optional] # noqa: E501 traces (str, none_type): An extended comment or a stack trace.. [optional] # noqa: E501 started_on (datetime, none_type): Test run start date.. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/configuration_short_api_result.py b/src/testit_api_client/model/configuration_short_api_result.py index b3882c49..d987edca 100644 --- a/src/testit_api_client/model/configuration_short_api_result.py +++ b/src/testit_api_client/model/configuration_short_api_result.py @@ -100,8 +100,8 @@ def _from_openapi_data(cls, id, name, *args, **kwargs): # noqa: E501 """ConfigurationShortApiResult - a model defined in OpenAPI Args: - id (str): - name (str): + id (str): Identifier of the configuration. + name (str): Name of the configuration. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,8 +191,8 @@ def __init__(self, id, name, *args, **kwargs): # noqa: E501 """ConfigurationShortApiResult - a model defined in OpenAPI Args: - id (str): - name (str): + id (str): Identifier of the configuration. + name (str): Name of the configuration. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/src/testit_api_client/model/generate_work_item_previews_api_model.py b/src/testit_api_client/model/generate_work_item_previews_api_model.py index 25ba16b5..ea31b8ef 100644 --- a/src/testit_api_client/model/generate_work_item_previews_api_model.py +++ b/src/testit_api_client/model/generate_work_item_previews_api_model.py @@ -58,9 +58,6 @@ class GenerateWorkItemPreviewsApiModel(ModelNormal): } validations = { - ('task_key',): { - 'min_length': 1, - }, ('temperature',): { 'inclusive_maximum': 1, 'inclusive_minimum': 0, @@ -69,6 +66,18 @@ class GenerateWorkItemPreviewsApiModel(ModelNormal): 'inclusive_maximum': 30, 'inclusive_minimum': 1, }, + ('task_key',): { + 'max_length': 255, + 'min_length': 0, + }, + ('issue_key',): { + 'max_length': 255, + 'min_length': 0, + }, + ('user_context',): { + 'max_length': 30000, + 'min_length': 0, + }, } additional_properties_type = None @@ -87,10 +96,11 @@ def openapi_types(): """ return { 'external_service_id': (str,), # noqa: E501 - 'task_key': (str,), # noqa: E501 - 'section_id': (str,), # noqa: E501 'temperature': (float,), # noqa: E501 'preview_limit': (int,), # noqa: E501 + 'task_key': (str, none_type,), # noqa: E501 + 'issue_key': (str, none_type,), # noqa: E501 + 'user_context': (str, none_type,), # noqa: E501 } @cached_property @@ -100,10 +110,11 @@ def discriminator(): attribute_map = { 'external_service_id': 'externalServiceId', # noqa: E501 - 'task_key': 'taskKey', # noqa: E501 - 'section_id': 'sectionId', # noqa: E501 'temperature': 'temperature', # noqa: E501 'preview_limit': 'previewLimit', # noqa: E501 + 'task_key': 'taskKey', # noqa: E501 + 'issue_key': 'issueKey', # noqa: E501 + 'user_context': 'userContext', # noqa: E501 } read_only_vars = { @@ -113,15 +124,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, external_service_id, task_key, section_id, temperature, preview_limit, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, external_service_id, temperature, preview_limit, *args, **kwargs): # noqa: E501 """GenerateWorkItemPreviewsApiModel - a model defined in OpenAPI Args: - external_service_id (str): - task_key (str): - section_id (str): - temperature (float): - preview_limit (int): + external_service_id (str): The ID of the external AI service to be used for generation. + temperature (float): Controls randomness of the AI model output. + preview_limit (int): Number of work item previews to generate. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -154,6 +163,9 @@ def _from_openapi_data(cls, external_service_id, task_key, section_id, temperatu Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + task_key (str, none_type): The key of the issue in an issue tracker (e.g., JIRA-123).. [optional] # noqa: E501 + issue_key (str, none_type): The key of the issue in an issue tracker (e.g., JIRA-123).. [optional] # noqa: E501 + user_context (str, none_type): Additional user context or description of the issue if no issue key is provided.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,8 +198,6 @@ def _from_openapi_data(cls, external_service_id, task_key, section_id, temperatu self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.external_service_id = external_service_id - self.task_key = task_key - self.section_id = section_id self.temperature = temperature self.preview_limit = preview_limit for var_name, var_value in kwargs.items(): @@ -210,15 +220,13 @@ def _from_openapi_data(cls, external_service_id, task_key, section_id, temperatu ]) @convert_js_args_to_python_args - def __init__(self, external_service_id, task_key, section_id, temperature, preview_limit, *args, **kwargs): # noqa: E501 + def __init__(self, external_service_id, temperature, preview_limit, *args, **kwargs): # noqa: E501 """GenerateWorkItemPreviewsApiModel - a model defined in OpenAPI Args: - external_service_id (str): - task_key (str): - section_id (str): - temperature (float): - preview_limit (int): + external_service_id (str): The ID of the external AI service to be used for generation. + temperature (float): Controls randomness of the AI model output. + preview_limit (int): Number of work item previews to generate. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -251,6 +259,9 @@ def __init__(self, external_service_id, task_key, section_id, temperature, previ Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + task_key (str, none_type): The key of the issue in an issue tracker (e.g., JIRA-123).. [optional] # noqa: E501 + issue_key (str, none_type): The key of the issue in an issue tracker (e.g., JIRA-123).. [optional] # noqa: E501 + user_context (str, none_type): Additional user context or description of the issue if no issue key is provided.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -281,8 +292,6 @@ def __init__(self, external_service_id, task_key, section_id, temperature, previ self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.external_service_id = external_service_id - self.task_key = task_key - self.section_id = section_id self.temperature = temperature self.preview_limit = preview_limit for var_name, var_value in kwargs.items(): diff --git a/src/testit_api_client/model/rerun_test_result_api_result.py b/src/testit_api_client/model/rerun_test_result_api_result.py index 5fdf8f40..032173c6 100644 --- a/src/testit_api_client/model/rerun_test_result_api_result.py +++ b/src/testit_api_client/model/rerun_test_result_api_result.py @@ -30,8 +30,8 @@ def lazy_import(): - from testit_api_client.model.auto_test_result_history_api_result_status import AutoTestResultHistoryApiResultStatus - globals()['AutoTestResultHistoryApiResultStatus'] = AutoTestResultHistoryApiResultStatus + from testit_api_client.model.rerun_test_result_api_result_status import RerunTestResultApiResultStatus + globals()['RerunTestResultApiResultStatus'] = RerunTestResultApiResultStatus class RerunTestResultApiResult(ModelNormal): @@ -82,7 +82,7 @@ def openapi_types(): return { 'id': (str,), # noqa: E501 'outcome': (str,), # noqa: E501 - 'status': (AutoTestResultHistoryApiResultStatus,), # noqa: E501 + 'status': (RerunTestResultApiResultStatus,), # noqa: E501 'run_number': (int,), # noqa: E501 } @@ -109,10 +109,10 @@ def _from_openapi_data(cls, id, outcome, status, run_number, *args, **kwargs): """RerunTestResultApiResult - a model defined in OpenAPI Args: - id (str): - outcome (str): - status (AutoTestResultHistoryApiResultStatus): - run_number (int): + id (str): Identifier of the rerun result. + outcome (str): Status of the autotest run. + status (RerunTestResultApiResultStatus): + run_number (int): Number of the run (e.g., 1 for the first attempt). Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -204,10 +204,10 @@ def __init__(self, id, outcome, status, run_number, *args, **kwargs): # noqa: E """RerunTestResultApiResult - a model defined in OpenAPI Args: - id (str): - outcome (str): - status (AutoTestResultHistoryApiResultStatus): - run_number (int): + id (str): Identifier of the rerun result. + outcome (str): Status of the autotest run. + status (RerunTestResultApiResultStatus): + run_number (int): Number of the run (e.g., 1 for the first attempt). Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/src/testit_api_client/model/auto_test_result_reasons_count_item_model.py b/src/testit_api_client/model/rerun_test_result_api_result_status.py similarity index 72% rename from src/testit_api_client/model/auto_test_result_reasons_count_item_model.py rename to src/testit_api_client/model/rerun_test_result_api_result_status.py index cdd64244..ca91762a 100644 --- a/src/testit_api_client/model/auto_test_result_reasons_count_item_model.py +++ b/src/testit_api_client/model/rerun_test_result_api_result_status.py @@ -30,11 +30,13 @@ def lazy_import(): - from testit_api_client.model.available_failure_category import AvailableFailureCategory - globals()['AvailableFailureCategory'] = AvailableFailureCategory + from testit_api_client.model.test_status_api_type import TestStatusApiType + from testit_api_client.model.test_status_short_api_result import TestStatusShortApiResult + globals()['TestStatusApiType'] = TestStatusApiType + globals()['TestStatusShortApiResult'] = TestStatusShortApiResult -class AutoTestResultReasonsCountItemModel(ModelNormal): +class RerunTestResultApiResultStatus(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,7 +66,14 @@ class AutoTestResultReasonsCountItemModel(ModelNormal): validations = { } - additional_properties_type = None + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,8 +89,10 @@ def openapi_types(): """ lazy_import() return { - 'failure_category': (AvailableFailureCategory,), # noqa: E501 - 'count': (int,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'code': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'type': (TestStatusApiType,), # noqa: E501 } @cached_property @@ -90,25 +101,25 @@ def discriminator(): attribute_map = { - 'failure_category': 'failureCategory', # noqa: E501 - 'count': 'count', # noqa: E501 + 'id': 'id', # noqa: E501 + 'code': 'code', # noqa: E501 + 'name': 'name', # noqa: E501 + 'type': 'type', # noqa: E501 } read_only_vars = { } - _composed_schemas = {} - @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, failure_category, count, *args, **kwargs): # noqa: E501 - """AutoTestResultReasonsCountItemModel - a model defined in OpenAPI - - Args: - failure_category (AvailableFailureCategory): - count (int): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RerunTestResultApiResultStatus - a model defined in OpenAPI Keyword Args: + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. + type (TestStatusApiType): _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. @@ -142,7 +153,7 @@ def _from_openapi_data(cls, failure_category, count, *args, **kwargs): # noqa: """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', 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', ()) @@ -170,16 +181,29 @@ def _from_openapi_data(cls, failure_category, count, *args, **kwargs): # noqa: self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.failure_category = failure_category - self.count = count + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ + if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: + self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) + return self required_properties = set([ @@ -189,17 +213,20 @@ def _from_openapi_data(cls, failure_category, count, *args, **kwargs): # noqa: '_path_to_item', '_configuration', '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', ]) @convert_js_args_to_python_args - def __init__(self, failure_category, count, *args, **kwargs): # noqa: E501 - """AutoTestResultReasonsCountItemModel - a model defined in OpenAPI - - Args: - failure_category (AvailableFailureCategory): - count (int): + def __init__(self, *args, **kwargs): # noqa: E501 + """RerunTestResultApiResultStatus - a model defined in OpenAPI Keyword Args: + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. + type (TestStatusApiType): _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. @@ -259,16 +286,48 @@ def __init__(self, failure_category, count, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.failure_category = failure_category - self.count = count + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ + if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: + self._additional_properties_model_instances: # 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.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + TestStatusShortApiResult, + ], + 'oneOf': [ + ], + } diff --git a/src/testit_api_client/model/test_plan_test_points_search_api_result_configuration.py b/src/testit_api_client/model/test_plan_test_points_search_api_result_configuration.py index 12171a2e..f0f83fb6 100644 --- a/src/testit_api_client/model/test_plan_test_points_search_api_result_configuration.py +++ b/src/testit_api_client/model/test_plan_test_points_search_api_result_configuration.py @@ -110,8 +110,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """TestPlanTestPointsSearchApiResultConfiguration - a model defined in OpenAPI Keyword Args: - id (str): - name (str): + id (str): Identifier of the configuration. + name (str): Name of the configuration. _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. @@ -215,8 +215,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 """TestPlanTestPointsSearchApiResultConfiguration - a model defined in OpenAPI Keyword Args: - id (str): - name (str): + id (str): Identifier of the configuration. + name (str): Name of the configuration. _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. diff --git a/src/testit_api_client/model/test_plan_test_points_search_api_result_status_model.py b/src/testit_api_client/model/test_plan_test_points_search_api_result_status_model.py index df7fa77a..5328a3af 100644 --- a/src/testit_api_client/model/test_plan_test_points_search_api_result_status_model.py +++ b/src/testit_api_client/model/test_plan_test_points_search_api_result_status_model.py @@ -90,8 +90,8 @@ def openapi_types(): lazy_import() return { 'id': (str,), # noqa: E501 - 'name': (str,), # noqa: E501 'code': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 'type': (TestStatusApiType,), # noqa: E501 } @@ -102,8 +102,8 @@ def discriminator(): attribute_map = { 'id': 'id', # noqa: E501 - 'name': 'name', # noqa: E501 'code': 'code', # noqa: E501 + 'name': 'name', # noqa: E501 'type': 'type', # noqa: E501 } @@ -116,9 +116,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """TestPlanTestPointsSearchApiResultStatusModel - a model defined in OpenAPI Keyword Args: - id (str): - name (str): - code (str): + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. type (TestStatusApiType): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -223,9 +223,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 """TestPlanTestPointsSearchApiResultStatusModel - a model defined in OpenAPI Keyword Args: - id (str): - name (str): - code (str): + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. type (TestStatusApiType): _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be diff --git a/src/testit_api_client/model/link_short.py b/src/testit_api_client/model/test_result_link_api_result.py similarity index 83% rename from src/testit_api_client/model/link_short.py rename to src/testit_api_client/model/test_result_link_api_result.py index 9527daf9..e79df7cc 100644 --- a/src/testit_api_client/model/link_short.py +++ b/src/testit_api_client/model/test_result_link_api_result.py @@ -29,8 +29,12 @@ from testit_api_client.exceptions import ApiAttributeError +def lazy_import(): + from testit_api_client.model.link_type import LinkType + globals()['LinkType'] = LinkType -class LinkShort(ModelNormal): + +class TestResultLinkApiResult(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -74,9 +78,15 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'name': (str,), # noqa: E501 'url': (str,), # noqa: E501 + 'has_info': (bool,), # noqa: E501 + 'id': (str, none_type,), # noqa: E501 + 'title': (str, none_type,), # noqa: E501 + 'description': (str, none_type,), # noqa: E501 + 'type': (LinkType,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 } @cached_property @@ -85,23 +95,29 @@ def discriminator(): attribute_map = { - 'name': 'name', # noqa: E501 'url': 'url', # noqa: E501 + 'has_info': 'hasInfo', # noqa: E501 + 'id': 'id', # noqa: E501 + 'title': 'title', # noqa: E501 + 'description': 'description', # noqa: E501 + 'type': 'type', # noqa: E501 + 'name': 'name', # noqa: E501 } read_only_vars = { + 'name', # noqa: E501 } _composed_schemas = {} @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, url, *args, **kwargs): # noqa: E501 - """LinkShort - a model defined in OpenAPI + def _from_openapi_data(cls, url, has_info, *args, **kwargs): # noqa: E501 + """TestResultLinkApiResult - a model defined in OpenAPI Args: - name (str): - url (str): + url (str): Address can be specified without protocol, but necessarily with the domain. + has_info (bool): Flag defines if link relates to integrated jira service Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -134,6 +150,11 @@ def _from_openapi_data(cls, name, url, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + id (str, none_type): Link unique identifier. [optional] # noqa: E501 + title (str, none_type): Link name.. [optional] # noqa: E501 + description (str, none_type): Link description.. [optional] # noqa: E501 + type (LinkType): [optional] # noqa: E501 + name (str, none_type): Link name. Backward compatibility.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -165,8 +186,8 @@ def _from_openapi_data(cls, name, url, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.name = name self.url = url + self.has_info = has_info for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -187,12 +208,12 @@ def _from_openapi_data(cls, name, url, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, url, *args, **kwargs): # noqa: E501 - """LinkShort - a model defined in OpenAPI + def __init__(self, url, has_info, *args, **kwargs): # noqa: E501 + """TestResultLinkApiResult - a model defined in OpenAPI Args: - name (str): - url (str): + url (str): Address can be specified without protocol, but necessarily with the domain. + has_info (bool): Flag defines if link relates to integrated jira service Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -225,6 +246,11 @@ def __init__(self, name, url, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + id (str, none_type): Link unique identifier. [optional] # noqa: E501 + title (str, none_type): Link name.. [optional] # noqa: E501 + description (str, none_type): Link description.. [optional] # noqa: E501 + type (LinkType): [optional] # noqa: E501 + name (str, none_type): Link name. Backward compatibility.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -254,8 +280,8 @@ def __init__(self, name, url, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.name = name self.url = url + self.has_info = has_info for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/src/testit_api_client/model/test_result_short_response.py b/src/testit_api_client/model/test_result_short_response.py index 3cf9c83e..7b74036f 100644 --- a/src/testit_api_client/model/test_result_short_response.py +++ b/src/testit_api_client/model/test_result_short_response.py @@ -33,11 +33,11 @@ def lazy_import(): from testit_api_client.model.attachment_api_result import AttachmentApiResult from testit_api_client.model.auto_test_result_history_api_result_status import AutoTestResultHistoryApiResultStatus from testit_api_client.model.auto_test_result_reason_short import AutoTestResultReasonShort - from testit_api_client.model.link_short import LinkShort + from testit_api_client.model.test_result_link_api_result import TestResultLinkApiResult globals()['AttachmentApiResult'] = AttachmentApiResult globals()['AutoTestResultHistoryApiResultStatus'] = AutoTestResultHistoryApiResultStatus globals()['AutoTestResultReasonShort'] = AutoTestResultReasonShort - globals()['LinkShort'] = LinkShort + globals()['TestResultLinkApiResult'] = TestResultLinkApiResult class TestResultShortResponse(ModelNormal): @@ -97,7 +97,7 @@ def openapi_types(): 'result_reasons': ([AutoTestResultReasonShort],), # noqa: E501 'date': (datetime,), # noqa: E501 'created_date': (datetime,), # noqa: E501 - 'links': ([LinkShort],), # noqa: E501 + 'links': ([TestResultLinkApiResult],), # noqa: E501 'attachments': ([AttachmentApiResult],), # noqa: E501 'rerun_completed_count': (int,), # noqa: E501 'autotest_external_id': (str, none_type,), # noqa: E501 @@ -160,7 +160,7 @@ def _from_openapi_data(cls, id, name, autotest_global_id, auto_test_tags, test_r result_reasons ([AutoTestResultReasonShort]): Collection of result reasons which the test result have date (datetime): Date when the test result was completed or started or created created_date (datetime): Date when the test result has been created - links ([LinkShort]): Collection of links attached to the test result + links ([TestResultLinkApiResult]): Collection of links attached to the test result attachments ([AttachmentApiResult]): Collection of files attached to the test result rerun_completed_count (int): Run count @@ -282,7 +282,7 @@ def __init__(self, id, name, autotest_global_id, auto_test_tags, test_run_id, co result_reasons ([AutoTestResultReasonShort]): Collection of result reasons which the test result have date (datetime): Date when the test result was completed or started or created created_date (datetime): Date when the test result has been created - links ([LinkShort]): Collection of links attached to the test result + links ([TestResultLinkApiResult]): Collection of links attached to the test result attachments ([AttachmentApiResult]): Collection of files attached to the test result rerun_completed_count (int): Run count diff --git a/src/testit_api_client/model/test_result_update_v2_request.py b/src/testit_api_client/model/test_result_update_v2_request.py index 1d0987da..7fdccef0 100644 --- a/src/testit_api_client/model/test_result_update_v2_request.py +++ b/src/testit_api_client/model/test_result_update_v2_request.py @@ -36,12 +36,14 @@ def lazy_import(): from testit_api_client.model.step_result_api_model import StepResultApiModel from testit_api_client.model.test_result_outcome import TestResultOutcome from testit_api_client.model.test_result_step_comment_update_request import TestResultStepCommentUpdateRequest + from testit_api_client.model.test_status_type import TestStatusType globals()['AttachmentUpdateRequest'] = AttachmentUpdateRequest globals()['AutoTestStepResultUpdateRequest'] = AutoTestStepResultUpdateRequest globals()['Link'] = Link globals()['StepResultApiModel'] = StepResultApiModel globals()['TestResultOutcome'] = TestResultOutcome globals()['TestResultStepCommentUpdateRequest'] = TestResultStepCommentUpdateRequest + globals()['TestStatusType'] = TestStatusType class TestResultUpdateV2Request(ModelNormal): @@ -101,6 +103,7 @@ def openapi_types(): 'failure_class_ids': ([str], none_type,), # noqa: E501 'outcome': (TestResultOutcome,), # noqa: E501 'status_code': (str, none_type,), # noqa: E501 + 'status_type': (TestStatusType,), # noqa: E501 'comment': (str, none_type,), # noqa: E501 'links': ([Link], none_type,), # noqa: E501 'step_results': ([StepResultApiModel], none_type,), # noqa: E501 @@ -123,6 +126,7 @@ def discriminator(): 'failure_class_ids': 'failureClassIds', # noqa: E501 'outcome': 'outcome', # noqa: E501 'status_code': 'statusCode', # noqa: E501 + 'status_type': 'statusType', # noqa: E501 'comment': 'comment', # noqa: E501 'links': 'links', # noqa: E501 'step_results': 'stepResults', # noqa: E501 @@ -180,6 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 failure_class_ids ([str], none_type): [optional] # noqa: E501 outcome (TestResultOutcome): [optional] # noqa: E501 status_code (str, none_type): [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 comment (str, none_type): [optional] # noqa: E501 links ([Link], none_type): [optional] # noqa: E501 step_results ([StepResultApiModel], none_type): [optional] # noqa: E501 @@ -279,6 +284,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 failure_class_ids ([str], none_type): [optional] # noqa: E501 outcome (TestResultOutcome): [optional] # noqa: E501 status_code (str, none_type): [optional] # noqa: E501 + status_type (TestStatusType): [optional] # noqa: E501 comment (str, none_type): [optional] # noqa: E501 links ([Link], none_type): [optional] # noqa: E501 step_results ([StepResultApiModel], none_type): [optional] # noqa: E501 diff --git a/src/testit_api_client/model/test_status_short_api_result.py b/src/testit_api_client/model/test_status_short_api_result.py index 55778c55..95fc1763 100644 --- a/src/testit_api_client/model/test_status_short_api_result.py +++ b/src/testit_api_client/model/test_status_short_api_result.py @@ -81,8 +81,8 @@ def openapi_types(): lazy_import() return { 'id': (str,), # noqa: E501 - 'name': (str,), # noqa: E501 'code': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 'type': (TestStatusApiType,), # noqa: E501 } @@ -93,8 +93,8 @@ def discriminator(): attribute_map = { 'id': 'id', # noqa: E501 - 'name': 'name', # noqa: E501 'code': 'code', # noqa: E501 + 'name': 'name', # noqa: E501 'type': 'type', # noqa: E501 } @@ -105,13 +105,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, name, code, type, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, code, name, type, *args, **kwargs): # noqa: E501 """TestStatusShortApiResult - a model defined in OpenAPI Args: - id (str): - name (str): - code (str): + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. type (TestStatusApiType): Keyword Args: @@ -177,8 +177,8 @@ def _from_openapi_data(cls, id, name, code, type, *args, **kwargs): # noqa: E50 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.name = name self.code = code + self.name = name self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -200,13 +200,13 @@ def _from_openapi_data(cls, id, name, code, type, *args, **kwargs): # noqa: E50 ]) @convert_js_args_to_python_args - def __init__(self, id, name, code, type, *args, **kwargs): # noqa: E501 + def __init__(self, id, code, name, type, *args, **kwargs): # noqa: E501 """TestStatusShortApiResult - a model defined in OpenAPI Args: - id (str): - name (str): - code (str): + id (str): Identifier of the test status. + code (str): Code representing the test status. + name (str): Name of the test status. type (TestStatusApiType): Keyword Args: @@ -270,8 +270,8 @@ def __init__(self, id, name, code, type, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.id = id - self.name = name self.code = code + self.name = name self.type = type for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/src/testit_api_client/model/test_suite_work_items_search_model_duration.py b/src/testit_api_client/model/test_suite_work_items_search_model_duration.py index 02e5c50f..bed4831b 100644 --- a/src/testit_api_client/model/test_suite_work_items_search_model_duration.py +++ b/src/testit_api_client/model/test_suite_work_items_search_model_duration.py @@ -30,8 +30,8 @@ def lazy_import(): - from testit_api_client.model.int32_range_selector_model import Int32RangeSelectorModel - globals()['Int32RangeSelectorModel'] = Int32RangeSelectorModel + from testit_api_client.model.int64_range_selector_model import Int64RangeSelectorModel + globals()['Int64RangeSelectorModel'] = Int64RangeSelectorModel class TestSuiteWorkItemsSearchModelDuration(ModelComposed): @@ -316,7 +316,7 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - Int32RangeSelectorModel, + Int64RangeSelectorModel, ], 'oneOf': [ ], diff --git a/src/testit_api_client/model/work_item_filter_api_model.py b/src/testit_api_client/model/work_item_filter_api_model.py index 8c993f42..baa62843 100644 --- a/src/testit_api_client/model/work_item_filter_api_model.py +++ b/src/testit_api_client/model/work_item_filter_api_model.py @@ -32,9 +32,9 @@ def lazy_import(): from testit_api_client.model.test_plan_test_points_search_api_model_work_item_created_date import TestPlanTestPointsSearchApiModelWorkItemCreatedDate from testit_api_client.model.test_plan_test_points_search_api_model_work_item_modified_date import TestPlanTestPointsSearchApiModelWorkItemModifiedDate - from testit_api_client.model.test_suite_work_items_search_model_duration import TestSuiteWorkItemsSearchModelDuration from testit_api_client.model.test_suite_work_items_search_model_median_duration import TestSuiteWorkItemsSearchModelMedianDuration from testit_api_client.model.work_item_entity_types import WorkItemEntityTypes + from testit_api_client.model.work_item_filter_api_model_duration import WorkItemFilterApiModelDuration from testit_api_client.model.work_item_filter_api_model_external_metadata import WorkItemFilterApiModelExternalMetadata from testit_api_client.model.work_item_filter_api_model_links import WorkItemFilterApiModelLinks from testit_api_client.model.work_item_priority_model import WorkItemPriorityModel @@ -42,9 +42,9 @@ def lazy_import(): from testit_api_client.model.work_item_states import WorkItemStates globals()['TestPlanTestPointsSearchApiModelWorkItemCreatedDate'] = TestPlanTestPointsSearchApiModelWorkItemCreatedDate globals()['TestPlanTestPointsSearchApiModelWorkItemModifiedDate'] = TestPlanTestPointsSearchApiModelWorkItemModifiedDate - globals()['TestSuiteWorkItemsSearchModelDuration'] = TestSuiteWorkItemsSearchModelDuration globals()['TestSuiteWorkItemsSearchModelMedianDuration'] = TestSuiteWorkItemsSearchModelMedianDuration globals()['WorkItemEntityTypes'] = WorkItemEntityTypes + globals()['WorkItemFilterApiModelDuration'] = WorkItemFilterApiModelDuration globals()['WorkItemFilterApiModelExternalMetadata'] = WorkItemFilterApiModelExternalMetadata globals()['WorkItemFilterApiModelLinks'] = WorkItemFilterApiModelLinks globals()['WorkItemPriorityModel'] = WorkItemPriorityModel @@ -150,7 +150,7 @@ def openapi_types(): 'types': ([WorkItemEntityTypes], none_type,), # noqa: E501 'created_date': (TestPlanTestPointsSearchApiModelWorkItemCreatedDate,), # noqa: E501 'modified_date': (TestPlanTestPointsSearchApiModelWorkItemModifiedDate,), # noqa: E501 - 'duration': (TestSuiteWorkItemsSearchModelDuration,), # noqa: E501 + 'duration': (WorkItemFilterApiModelDuration,), # noqa: E501 'median_duration': (TestSuiteWorkItemsSearchModelMedianDuration,), # noqa: E501 'is_automated': (bool, none_type,), # noqa: E501 'tags': ([str], none_type,), # noqa: E501 @@ -255,7 +255,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 types ([WorkItemEntityTypes], none_type): Collection of types of work item. [optional] # noqa: E501 created_date (TestPlanTestPointsSearchApiModelWorkItemCreatedDate): [optional] # noqa: E501 modified_date (TestPlanTestPointsSearchApiModelWorkItemModifiedDate): [optional] # noqa: E501 - duration (TestSuiteWorkItemsSearchModelDuration): [optional] # noqa: E501 + duration (WorkItemFilterApiModelDuration): [optional] # noqa: E501 median_duration (TestSuiteWorkItemsSearchModelMedianDuration): [optional] # noqa: E501 is_automated (bool, none_type): Is result must consist of only manual/automated work items. [optional] # noqa: E501 tags ([str], none_type): Collection of tags. [optional] # noqa: E501 @@ -367,7 +367,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 types ([WorkItemEntityTypes], none_type): Collection of types of work item. [optional] # noqa: E501 created_date (TestPlanTestPointsSearchApiModelWorkItemCreatedDate): [optional] # noqa: E501 modified_date (TestPlanTestPointsSearchApiModelWorkItemModifiedDate): [optional] # noqa: E501 - duration (TestSuiteWorkItemsSearchModelDuration): [optional] # noqa: E501 + duration (WorkItemFilterApiModelDuration): [optional] # noqa: E501 median_duration (TestSuiteWorkItemsSearchModelMedianDuration): [optional] # noqa: E501 is_automated (bool, none_type): Is result must consist of only manual/automated work items. [optional] # noqa: E501 tags ([str], none_type): Collection of tags. [optional] # noqa: E501 diff --git a/src/testit_api_client/model/auto_test_result_reasons_count_model.py b/src/testit_api_client/model/work_item_filter_api_model_duration.py similarity index 74% rename from src/testit_api_client/model/auto_test_result_reasons_count_model.py rename to src/testit_api_client/model/work_item_filter_api_model_duration.py index 815a8b99..a7aec65a 100644 --- a/src/testit_api_client/model/auto_test_result_reasons_count_model.py +++ b/src/testit_api_client/model/work_item_filter_api_model_duration.py @@ -30,11 +30,11 @@ def lazy_import(): - from testit_api_client.model.auto_test_result_reasons_count_item_model import AutoTestResultReasonsCountItemModel - globals()['AutoTestResultReasonsCountItemModel'] = AutoTestResultReasonsCountItemModel + from testit_api_client.model.int32_range_selector_model import Int32RangeSelectorModel + globals()['Int32RangeSelectorModel'] = Int32RangeSelectorModel -class AutoTestResultReasonsCountModel(ModelNormal): +class WorkItemFilterApiModelDuration(ModelComposed): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -64,9 +64,16 @@ class AutoTestResultReasonsCountModel(ModelNormal): validations = { } - additional_properties_type = None + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - _nullable = False + _nullable = True @cached_property def openapi_types(): @@ -80,7 +87,8 @@ def openapi_types(): """ lazy_import() return { - 'data': ([AutoTestResultReasonsCountItemModel],), # noqa: E501 + '_from': (int, none_type,), # noqa: E501 + 'to': (int, none_type,), # noqa: E501 } @cached_property @@ -89,21 +97,17 @@ def discriminator(): attribute_map = { - 'data': 'data', # noqa: E501 + '_from': 'from', # noqa: E501 + 'to': 'to', # noqa: E501 } read_only_vars = { } - _composed_schemas = {} - @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 - """AutoTestResultReasonsCountModel - a model defined in OpenAPI - - Args: - data ([AutoTestResultReasonsCountItemModel]): + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """WorkItemFilterApiModelDuration - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -136,10 +140,12 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + _from (int, none_type): [optional] # noqa: E501 + to (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', 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', ()) @@ -167,15 +173,29 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ + if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: + self._additional_properties_model_instances: # discard variable. continue setattr(self, var_name, var_value) + return self required_properties = set([ @@ -185,14 +205,14 @@ def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501 '_path_to_item', '_configuration', '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', ]) @convert_js_args_to_python_args - def __init__(self, data, *args, **kwargs): # noqa: E501 - """AutoTestResultReasonsCountModel - a model defined in OpenAPI - - Args: - data ([AutoTestResultReasonsCountItemModel]): + def __init__(self, *args, **kwargs): # noqa: E501 + """WorkItemFilterApiModelDuration - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -225,6 +245,8 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + _from (int, none_type): [optional] # noqa: E501 + to (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -254,15 +276,48 @@ def __init__(self, data, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.data = data + constant_args = { + '_check_type': _check_type, + '_path_to_item': _path_to_item, + '_spec_property_naming': _spec_property_naming, + '_configuration': _configuration, + '_visited_composed_classes': self._visited_composed_classes, + } + composed_info = validate_get_composed_info( + constant_args, kwargs, self) + self._composed_instances = composed_info[0] + self._var_name_to_model_instances = composed_info[1] + self._additional_properties_model_instances = composed_info[2] + discarded_args = composed_info[3] + for var_name, var_value in kwargs.items(): - if var_name not in self.attribute_map and \ + if var_name in discarded_args and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self.additional_properties_type is None: + self._additional_properties_model_instances: # 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.") + + @cached_property + def _composed_schemas(): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + lazy_import() + return { + 'anyOf': [ + ], + 'allOf': [ + Int32RangeSelectorModel, + ], + 'oneOf': [ + ], + } diff --git a/src/testit_api_client/model/work_item_select_api_model_filter.py b/src/testit_api_client/model/work_item_select_api_model_filter.py index 40c88466..21e8b45f 100644 --- a/src/testit_api_client/model/work_item_select_api_model_filter.py +++ b/src/testit_api_client/model/work_item_select_api_model_filter.py @@ -32,10 +32,10 @@ def lazy_import(): from testit_api_client.model.test_plan_test_points_search_api_model_work_item_created_date import TestPlanTestPointsSearchApiModelWorkItemCreatedDate from testit_api_client.model.test_plan_test_points_search_api_model_work_item_modified_date import TestPlanTestPointsSearchApiModelWorkItemModifiedDate - from testit_api_client.model.test_suite_work_items_search_model_duration import TestSuiteWorkItemsSearchModelDuration from testit_api_client.model.test_suite_work_items_search_model_median_duration import TestSuiteWorkItemsSearchModelMedianDuration from testit_api_client.model.work_item_entity_types import WorkItemEntityTypes from testit_api_client.model.work_item_filter_api_model import WorkItemFilterApiModel + from testit_api_client.model.work_item_filter_api_model_duration import WorkItemFilterApiModelDuration from testit_api_client.model.work_item_filter_api_model_external_metadata import WorkItemFilterApiModelExternalMetadata from testit_api_client.model.work_item_filter_api_model_links import WorkItemFilterApiModelLinks from testit_api_client.model.work_item_priority_model import WorkItemPriorityModel @@ -43,10 +43,10 @@ def lazy_import(): from testit_api_client.model.work_item_states import WorkItemStates globals()['TestPlanTestPointsSearchApiModelWorkItemCreatedDate'] = TestPlanTestPointsSearchApiModelWorkItemCreatedDate globals()['TestPlanTestPointsSearchApiModelWorkItemModifiedDate'] = TestPlanTestPointsSearchApiModelWorkItemModifiedDate - globals()['TestSuiteWorkItemsSearchModelDuration'] = TestSuiteWorkItemsSearchModelDuration globals()['TestSuiteWorkItemsSearchModelMedianDuration'] = TestSuiteWorkItemsSearchModelMedianDuration globals()['WorkItemEntityTypes'] = WorkItemEntityTypes globals()['WorkItemFilterApiModel'] = WorkItemFilterApiModel + globals()['WorkItemFilterApiModelDuration'] = WorkItemFilterApiModelDuration globals()['WorkItemFilterApiModelExternalMetadata'] = WorkItemFilterApiModelExternalMetadata globals()['WorkItemFilterApiModelLinks'] = WorkItemFilterApiModelLinks globals()['WorkItemPriorityModel'] = WorkItemPriorityModel @@ -159,7 +159,7 @@ def openapi_types(): 'types': ([WorkItemEntityTypes], none_type,), # noqa: E501 'created_date': (TestPlanTestPointsSearchApiModelWorkItemCreatedDate,), # noqa: E501 'modified_date': (TestPlanTestPointsSearchApiModelWorkItemModifiedDate,), # noqa: E501 - 'duration': (TestSuiteWorkItemsSearchModelDuration,), # noqa: E501 + 'duration': (WorkItemFilterApiModelDuration,), # noqa: E501 'median_duration': (TestSuiteWorkItemsSearchModelMedianDuration,), # noqa: E501 'is_automated': (bool, none_type,), # noqa: E501 'tags': ([str], none_type,), # noqa: E501 @@ -262,7 +262,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 types ([WorkItemEntityTypes], none_type): Collection of types of work item. [optional] # noqa: E501 created_date (TestPlanTestPointsSearchApiModelWorkItemCreatedDate): [optional] # noqa: E501 modified_date (TestPlanTestPointsSearchApiModelWorkItemModifiedDate): [optional] # noqa: E501 - duration (TestSuiteWorkItemsSearchModelDuration): [optional] # noqa: E501 + duration (WorkItemFilterApiModelDuration): [optional] # noqa: E501 median_duration (TestSuiteWorkItemsSearchModelMedianDuration): [optional] # noqa: E501 is_automated (bool, none_type): Is result must consist of only manual/automated work items. [optional] # noqa: E501 tags ([str], none_type): Collection of tags. [optional] # noqa: E501 @@ -392,7 +392,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 types ([WorkItemEntityTypes], none_type): Collection of types of work item. [optional] # noqa: E501 created_date (TestPlanTestPointsSearchApiModelWorkItemCreatedDate): [optional] # noqa: E501 modified_date (TestPlanTestPointsSearchApiModelWorkItemModifiedDate): [optional] # noqa: E501 - duration (TestSuiteWorkItemsSearchModelDuration): [optional] # noqa: E501 + duration (WorkItemFilterApiModelDuration): [optional] # noqa: E501 median_duration (TestSuiteWorkItemsSearchModelMedianDuration): [optional] # noqa: E501 is_automated (bool, none_type): Is result must consist of only manual/automated work items. [optional] # noqa: E501 tags ([str], none_type): Collection of tags. [optional] # noqa: E501 diff --git a/src/testit_api_client/models/__init__.py b/src/testit_api_client/models/__init__.py index 14d60fd3..d3b97ec7 100644 --- a/src/testit_api_client/models/__init__.py +++ b/src/testit_api_client/models/__init__.py @@ -132,8 +132,6 @@ from testit_api_client.model.auto_test_result_history_api_result_status import AutoTestResultHistoryApiResultStatus from testit_api_client.model.auto_test_result_history_select_api_model import AutoTestResultHistorySelectApiModel from testit_api_client.model.auto_test_result_reason_short import AutoTestResultReasonShort -from testit_api_client.model.auto_test_result_reasons_count_item_model import AutoTestResultReasonsCountItemModel -from testit_api_client.model.auto_test_result_reasons_count_model import AutoTestResultReasonsCountModel from testit_api_client.model.auto_test_results_for_test_run_model import AutoTestResultsForTestRunModel from testit_api_client.model.auto_test_search_api_model import AutoTestSearchApiModel from testit_api_client.model.auto_test_search_api_model_filter import AutoTestSearchApiModelFilter @@ -323,7 +321,6 @@ from testit_api_client.model.link_model import LinkModel from testit_api_client.model.link_post_model import LinkPostModel from testit_api_client.model.link_put_model import LinkPutModel -from testit_api_client.model.link_short import LinkShort from testit_api_client.model.link_short_api_result import LinkShortApiResult from testit_api_client.model.link_short_model import LinkShortModel from testit_api_client.model.link_type import LinkType @@ -393,6 +390,7 @@ from testit_api_client.model.request_type_api_model import RequestTypeApiModel from testit_api_client.model.request_type_model import RequestTypeModel from testit_api_client.model.rerun_test_result_api_result import RerunTestResultApiResult +from testit_api_client.model.rerun_test_result_api_result_status import RerunTestResultApiResultStatus from testit_api_client.model.reruns_api_result import RerunsApiResult from testit_api_client.model.search_attributes_in_project_request import SearchAttributesInProjectRequest from testit_api_client.model.search_custom_attribute_template_get_model import SearchCustomAttributeTemplateGetModel @@ -531,6 +529,7 @@ from testit_api_client.model.test_result_failure_class_api_result import TestResultFailureClassApiResult from testit_api_client.model.test_result_history_report_api_result import TestResultHistoryReportApiResult from testit_api_client.model.test_result_history_report_api_result_status import TestResultHistoryReportApiResultStatus +from testit_api_client.model.test_result_link_api_result import TestResultLinkApiResult from testit_api_client.model.test_result_outcome import TestResultOutcome from testit_api_client.model.test_result_response import TestResultResponse from testit_api_client.model.test_result_short_api_result import TestResultShortApiResult @@ -687,6 +686,7 @@ from testit_api_client.model.work_item_extraction_api_model_section_ids import WorkItemExtractionApiModelSectionIds from testit_api_client.model.work_item_extraction_model import WorkItemExtractionModel from testit_api_client.model.work_item_filter_api_model import WorkItemFilterApiModel +from testit_api_client.model.work_item_filter_api_model_duration import WorkItemFilterApiModelDuration from testit_api_client.model.work_item_filter_api_model_external_metadata import WorkItemFilterApiModelExternalMetadata from testit_api_client.model.work_item_filter_api_model_links import WorkItemFilterApiModelLinks from testit_api_client.model.work_item_filter_model import WorkItemFilterModel