From a954d1d1f5d624cbe9eb9772e4eb643557b8af92 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Fri, 30 Jan 2026 18:21:02 +0300 Subject: [PATCH] feature: last cloud support --- .gitignore | 3 +- .../{swagger5.6.json => cloud-swagger.json} | 325 +++++++++++------- README.md | 1 + docs/AttachmentsApi.md | 2 +- docs/ProjectsApi.md | 80 +++++ genConfig.yml | 2 +- run.sh | 11 +- setup.py | 2 +- src/testit_api_client/__init__.py | 2 +- src/testit_api_client/api/attachments_api.py | 2 +- src/testit_api_client/api/projects_api.py | 122 +++++++ src/testit_api_client/api_client.py | 2 +- src/testit_api_client/configuration.py | 2 +- .../api_v2_test_results_id_put_request.py | 4 +- .../model/test_result_update_v2_request.py | 4 +- 15 files changed, 427 insertions(+), 137 deletions(-) rename .swagger/{swagger5.6.json => cloud-swagger.json} (99%) diff --git a/.gitignore b/.gitignore index c0124f9a..3e6c8a96 100644 --- a/.gitignore +++ b/.gitignore @@ -67,4 +67,5 @@ target/ .ipynb_checkpoints README-NEW.md *.bak -new/ \ No newline at end of file +new/ +.swagger_ \ No newline at end of file diff --git a/.swagger/swagger5.6.json b/.swagger/cloud-swagger.json similarity index 99% rename from .swagger/swagger5.6.json rename to .swagger/cloud-swagger.json index 2f60acdc..d750bbdb 100644 --- a/.swagger/swagger5.6.json +++ b/.swagger/cloud-swagger.json @@ -230,7 +230,7 @@ "Attachments" ], "summary": "Upload new attachment file", - "description": "File size is restricted to 1 GB (1 073 741 824 bytes)", + "description": "File size is restricted to 50 MB (52 428 800 bytes)", "requestBody": { "content": { "multipart/form-data": { @@ -13567,6 +13567,85 @@ } } }, + "/api/v2/projects/demo": { + "post": { + "tags": [ + "Projects" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DemoProjectApiResult" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ValidationProblemDetails" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "409": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + }, + "422": { + "description": "Unprocessable Entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } + } + } + } + } + }, "/api/v2/projects/{id}/restore": { "post": { "tags": [ @@ -32499,7 +32578,7 @@ "type": "string", "description": "This property is used to link autotest with project", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "name": { "title": "Autotest name", @@ -32553,27 +32632,27 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last autotest modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created autotest", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last autotest modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "labels": { "title": "Label of autotest", @@ -34109,7 +34188,7 @@ "type": "string", "description": "This property is used to link configuration with project", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "parameterIds": { "title": "Parameters unique identifiers", @@ -34276,7 +34355,7 @@ "type": "string", "description": "This property is used to link configuration with project", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "isDefault": { "title": "Boolean flag defines if the configuration must be used as default", @@ -34293,27 +34372,27 @@ "title": "Date and time of configuration creation", "type": "string", "format": "date-time", - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last configuration modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created configuration", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last configuration modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Configuration Global unique identifier", @@ -34389,7 +34468,7 @@ "title": "Configuration internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "description": { "title": "Configuration description", @@ -35859,7 +35938,7 @@ "title": "Custom attribute template internal unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "isDeleted": { "title": "Flag that defines if custom attribute template is deleted", @@ -37964,7 +38043,7 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "title": { "type": "string", @@ -38047,7 +38126,7 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "title": { "type": "string", @@ -38601,7 +38680,7 @@ "title": "Parameter internal unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" } }, "additionalProperties": false @@ -40220,14 +40299,14 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "parentId": { "title": "Parent section identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "isDeleted": { "title": "Flag that defines if section is deleted", @@ -40238,33 +40317,33 @@ "title": "Section unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "createdDate": { "title": "Date and time of section creation", "type": "string", "format": "date-time", - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last section modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created section", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last section modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "name": { "title": "Section name", @@ -40320,20 +40399,20 @@ "maxLength": 255, "minLength": 0, "type": "string", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "projectId": { "title": "Project unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "parentId": { "title": "Parent section identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "preconditionSteps": { "title": "Section precondition steps collection", @@ -40379,20 +40458,20 @@ "maxLength": 255, "minLength": 0, "type": "string", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "projectId": { "title": "Project unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "parentId": { "title": "Parent section identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "preconditionSteps": { "title": "Section precondition steps collection", @@ -40431,7 +40510,7 @@ "title": "Section unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "name": { "title": "Section name", @@ -40479,14 +40558,14 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "parentId": { "title": "Parent section identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "isDeleted": { "title": "Flag that defines if section is deleted", @@ -40497,33 +40576,33 @@ "title": "Section unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "createdDate": { "title": "Date and time of section creation", "type": "string", "format": "date-time", - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last section modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created section", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last section modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "name": { "title": "Section name", @@ -40601,7 +40680,7 @@ "title": "Shared step version identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Shared step global identifier", @@ -40654,7 +40733,7 @@ "title": "Workitem internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Workitem global identifier", @@ -40691,28 +40770,28 @@ "title": "Unique identifier of user who created workitem", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last workitem modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "createdDate": { "title": "Date and time of workitem creation", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last workitem modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "state": { "title": "WorkItem state", @@ -40743,7 +40822,7 @@ "type": "string", "description": "used for versioning changes in workitem", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "isAutomated": { "title": "Flag that workitem is automated", @@ -40754,7 +40833,7 @@ "title": "Workitems section identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "tags": { "title": "Collection of workitem tags", @@ -40782,7 +40861,7 @@ "title": "Section internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "name": { "title": "Workitem name", @@ -40803,28 +40882,28 @@ "title": "Unique identifier of user who created section", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last section modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "createdDate": { "title": "Date and time of section creation", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last section modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "isDeleted": { "title": "Flag that defines if section is archived", @@ -41106,7 +41185,7 @@ "title": "Step unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "action": { "title": "Action applied by user", @@ -41137,7 +41216,7 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" } }, "additionalProperties": false @@ -41174,7 +41253,7 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" } }, "additionalProperties": false @@ -41189,7 +41268,7 @@ "title": "Step unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "action": { "title": "Action applied by user", @@ -41220,7 +41299,7 @@ "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" } }, "additionalProperties": false @@ -41954,7 +42033,7 @@ "description": "Set when test plan is starter (status changed to: In Progress)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "completedOn": { "title": "Date and time of test plan end", @@ -41962,34 +42041,34 @@ "description": "set when test plan status is completed (status changed to: Completed)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdDate": { "title": "Date and time of test plan creation", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last test plan modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created test plan ", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last test plan modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Test plan unique global identifier", @@ -42008,13 +42087,13 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "id": { "title": "Test plan unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "lockedById": { "title": "User who locked test plan modification internal identifier", @@ -42043,7 +42122,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "endDate": { "title": "Date and time of test plan end", @@ -42051,7 +42130,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "description": { "title": "Test plan description", @@ -42073,7 +42152,7 @@ "title": "Project unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "productName": { "title": "Name of the testing product", @@ -43204,7 +43283,7 @@ "description": "Set when test plan is starter (status changed to: In Progress)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "completedOn": { "title": "Date and time of test plan end", @@ -43212,34 +43291,34 @@ "description": "set when test plan status is completed (status changed to: Completed)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdDate": { "title": "Date and time of test plan creation", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last test plan modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created test plan ", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last test plan modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Test plan unique global identifier", @@ -43258,13 +43337,13 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "id": { "title": "Test plan unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "lockedById": { "title": "User who locked test plan modification internal identifier", @@ -43293,7 +43372,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "endDate": { "title": "Date and time of test plan end", @@ -43301,7 +43380,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "description": { "title": "Test plan description", @@ -43323,7 +43402,7 @@ "title": "Project unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "productName": { "title": "Name of the testing product", @@ -43383,7 +43462,7 @@ "description": "Set when test plan is starter (status changed to: In Progress)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "completedOn": { "title": "Date and time of test plan end", @@ -43391,34 +43470,34 @@ "description": "set when test plan status is completed (status changed to: Completed)", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdDate": { "title": "Date and time of test plan creation", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last test plan modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created test plan ", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last test plan modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Test plan unique global identifier", @@ -43437,13 +43516,13 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "id": { "title": "Test plan unique internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "lockedById": { "title": "User who locked test plan modification internal identifier", @@ -43472,7 +43551,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "endDate": { "title": "Date and time of test plan end", @@ -43480,7 +43559,7 @@ "description": "Used for analytics", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "description": { "title": "Test plan description", @@ -43502,7 +43581,7 @@ "title": "Project unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "productName": { "title": "Name of the testing product", @@ -44380,7 +44459,7 @@ "title": "Test suite to which test point relates unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "id": { "type": "string", @@ -45868,32 +45947,32 @@ "title": "Test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "configurationId": { "title": "Configuration related to test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "workItemVersionId": { "title": "Workitem version related to test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "autoTestId": { "title": "Auto test related to test result unique identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "message": { "title": "Auto test message", "type": "string", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "traces": { "title": "Test result trace", @@ -45906,35 +45985,35 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "completedOn": { "title": "End date time from test result or from test run (if test run new state is In progress, Stopped or Completed)", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "runByUserId": { "title": "Unique identifier of user which run test result", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "stoppedByUserId": { "title": "Unique identifier of user which stopped test result", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "testPointId": { "title": "Test point related to test result unique identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "testPoint": { "title": "Test point related to test result", @@ -45949,7 +46028,7 @@ "title": "Test run to which test result relates unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "outcome": { "title": "Test result outcome", @@ -46012,32 +46091,32 @@ "title": "Test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "configurationId": { "title": "Configuration related to test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "workItemVersionId": { "title": "Workitem version related to test result unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "autoTestId": { "title": "Auto test related to test result unique identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "message": { "title": "Auto test message", "type": "string", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "traces": { "title": "Test result trace", @@ -46050,35 +46129,35 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "completedOn": { "title": "End date time from test result or from test run (if test run new state is In progress, Stopped or Completed)", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "runByUserId": { "title": "Unique identifier of user which run test result", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "stoppedByUserId": { "title": "Unique identifier of user which stopped test result", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "testPointId": { "title": "Test point related to test result unique identifier", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "testPoint": { "title": "Test point related to test result", @@ -46093,7 +46172,7 @@ "title": "Test run to which test result relates unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "outcome": { "title": "Test result outcome", @@ -51535,7 +51614,7 @@ "type": "string", "description": "used for versioning changes in workitem", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "medianDuration": { "title": "Workitem median duration", @@ -51553,7 +51632,7 @@ "title": "Project where workitem is located unique identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "entityTypeName": { "allOf": [ @@ -51617,27 +51696,27 @@ "title": "Date and time of workitem creation", "type": "string", "format": "date-time", - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedDate": { "title": "Date and time of last workitem modification", "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "createdById": { "title": "Unique identifier of user who created workitem", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "modifiedById": { "title": "Unique identifier of user who applied last workitem modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "globalId": { "title": "Shared step global identifier", @@ -51655,13 +51734,13 @@ "title": "Workitem internal identifier", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "sectionId": { "title": "Internal identifier of section where workitem is located ", "type": "string", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "description": { "title": "Workitem description", @@ -52572,7 +52651,7 @@ "type": "string", "description": "used for versioning changes in workitem", "format": "uuid", - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" }, "versionNumber": { "title": "Workitem version number", @@ -52586,14 +52665,14 @@ "type": "string", "format": "date-time", "nullable": true, - "example": "2026-01-27T08:59:39.9230001+00:00" + "example": "2026-01-22T16:33:32.7807577+00:00" }, "modifiedById": { "title": "Unique identifier of user who applied workitem version modification", "type": "string", "format": "uuid", "nullable": true, - "example": "6c5d69d1-862a-4f6f-bfb8-76a45e79983d" + "example": "51d87d34-eec7-4d9a-b282-8f81c9981613" } }, "additionalProperties": false diff --git a/README.md b/README.md index dd3a928c..76595631 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,7 @@ Class | Method | HTTP request | Description *ProjectWorkItemsApi* | [**api_v2_projects_project_id_work_items_tags_get**](docs/ProjectWorkItemsApi.md#api_v2_projects_project_id_work_items_tags_get) | **GET** /api/v2/projects/{projectId}/workItems/tags | Get WorkItems Tags *ProjectWorkItemsApi* | [**get_work_items_by_project_id**](docs/ProjectWorkItemsApi.md#get_work_items_by_project_id) | **GET** /api/v2/projects/{projectId}/workItems | Get project work items *ProjectsApi* | [**add_global_attributes_to_project**](docs/ProjectsApi.md#add_global_attributes_to_project) | **POST** /api/v2/projects/{id}/globalAttributes | Add global attributes to project +*ProjectsApi* | [**api_v2_projects_demo_post**](docs/ProjectsApi.md#api_v2_projects_demo_post) | **POST** /api/v2/projects/demo | *ProjectsApi* | [**api_v2_projects_id_delete**](docs/ProjectsApi.md#api_v2_projects_id_delete) | **DELETE** /api/v2/projects/{id} | Archive project *ProjectsApi* | [**api_v2_projects_id_failure_classes_get**](docs/ProjectsApi.md#api_v2_projects_id_failure_classes_get) | **GET** /api/v2/projects/{id}/failureClasses | Get failure classes *ProjectsApi* | [**api_v2_projects_id_favorite_put**](docs/ProjectsApi.md#api_v2_projects_id_favorite_put) | **PUT** /api/v2/projects/{id}/favorite | Mark Project as favorite diff --git a/docs/AttachmentsApi.md b/docs/AttachmentsApi.md index f48ca454..dd628c16 100644 --- a/docs/AttachmentsApi.md +++ b/docs/AttachmentsApi.md @@ -362,7 +362,7 @@ This endpoint does not need any parameter. Upload new attachment file -File size is restricted to 1 GB (1 073 741 824 bytes) +File size is restricted to 50 MB (52 428 800 bytes) ### Example diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 9f936bec..bee4ff33 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_global_attributes_to_project**](ProjectsApi.md#add_global_attributes_to_project) | **POST** /api/v2/projects/{id}/globalAttributes | Add global attributes to project +[**api_v2_projects_demo_post**](ProjectsApi.md#api_v2_projects_demo_post) | **POST** /api/v2/projects/demo | [**api_v2_projects_id_delete**](ProjectsApi.md#api_v2_projects_id_delete) | **DELETE** /api/v2/projects/{id} | Archive project [**api_v2_projects_id_failure_classes_get**](ProjectsApi.md#api_v2_projects_id_failure_classes_get) | **GET** /api/v2/projects/{id}/failureClasses | Get failure classes [**api_v2_projects_id_favorite_put**](ProjectsApi.md#api_v2_projects_id_favorite_put) | **PUT** /api/v2/projects/{id}/favorite | Mark Project as favorite @@ -126,6 +127,85 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **api_v2_projects_demo_post** +> DemoProjectApiResult api_v2_projects_demo_post() + + + +### Example + +* Api Key Authentication (Bearer or PrivateToken): + +```python +import time +import testit_api_client +from testit_api_client.api import projects_api +from testit_api_client.model.problem_details import ProblemDetails +from testit_api_client.model.demo_project_api_result import DemoProjectApiResult +from testit_api_client.model.validation_problem_details import ValidationProblemDetails +from pprint import pprint +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = testit_api_client.Configuration( + host = "http://localhost" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: Bearer or PrivateToken +configuration.api_key['Bearer or PrivateToken'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['Bearer or PrivateToken'] = 'Bearer' + +# Enter a context with an instance of the API client +with testit_api_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = projects_api.ProjectsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.api_v2_projects_demo_post() + pprint(api_response) + except testit_api_client.ApiException as e: + print("Exception when calling ProjectsApi->api_v2_projects_demo_post: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DemoProjectApiResult**](DemoProjectApiResult.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**403** | Forbidden | - | +**404** | Not Found | - | +**409** | Conflict | - | +**422** | Unprocessable Entity | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **api_v2_projects_id_delete** > api_v2_projects_id_delete(id) diff --git a/genConfig.yml b/genConfig.yml index ed757940..5ac78f53 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.4.0.post560 +packageVersion: 7.4.0 projectName: "testit-api-client" diff --git a/run.sh b/run.sh index c0eaafe9..42fc3f3e 100644 --- a/run.sh +++ b/run.sh @@ -1,8 +1,8 @@ #!/bin/bash # Настройка переменных -FILE_NAME="swagger5.6.json" -NEW_VERSION="7.4.0.post560" +FILE_NAME="cloud-swagger.json" +NEW_VERSION="7.4.0" GENERATOR="openapi-generator-cli-6.6.0.jar" if [ ! -f ".swagger/$FILE_NAME" ]; then @@ -100,6 +100,13 @@ if [ -f "src/testit_api_client/model/link_put_model.py" ]; then sed -i 's/'\''type'\'': (LinkType,), # noqa: E501/'\''type'\'': (LinkType, none_type,), # noqa: E501 run.sh autofix/' src/testit_api_client/model/link_put_model.py fi +# Замена некорректного максимального значения long на правильное значение MaxValue для Int64 +# Это необходимо, потому что OpenAPI генератор иногда использует -9223372036854775616 либо 9223372036854776000 вместо правильного 9223372036854775807 +echo "Замена -9223372036854775616 на 9223372036854775807 в сгенерированных моделях..." +find src/testit_api_client/model -name "*.py" -exec sed -i 's/-9223372036854775616/9223372036854775807/g' {} + + + + # Частичное обновление README.md echo "Частичное обновление README.md..." if [ -f "new/README.md" ]; then diff --git a/setup.py b/setup.py index 5a4de3c9..da9862bb 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ NAME = "testit-api-client" -VERSION = "7.4.0.post560" +VERSION = "7.4.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ diff --git a/src/testit_api_client/__init__.py b/src/testit_api_client/__init__.py index 8bc7430d..9c892fe7 100644 --- a/src/testit_api_client/__init__.py +++ b/src/testit_api_client/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "7.4.0.post560" +__version__ = "7.4.0" # import ApiClient from testit_api_client.api_client import ApiClient diff --git a/src/testit_api_client/api/attachments_api.py b/src/testit_api_client/api/attachments_api.py index d9fb06d9..ca93ed34 100644 --- a/src/testit_api_client/api/attachments_api.py +++ b/src/testit_api_client/api/attachments_api.py @@ -666,7 +666,7 @@ def api_v2_attachments_post( ): """Upload new attachment file # noqa: E501 - File size is restricted to 1 GB (1 073 741 824 bytes) # noqa: E501 + File size is restricted to 50 MB (52 428 800 bytes) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/src/testit_api_client/api/projects_api.py b/src/testit_api_client/api/projects_api.py index 5ef0edc0..7d8253ae 100644 --- a/src/testit_api_client/api/projects_api.py +++ b/src/testit_api_client/api/projects_api.py @@ -26,6 +26,7 @@ from testit_api_client.model.api_v2_projects_shorts_post_request import ApiV2ProjectsShortsPostRequest from testit_api_client.model.auto_test_namespace_api_result import AutoTestNamespaceApiResult from testit_api_client.model.create_project_request import CreateProjectRequest +from testit_api_client.model.demo_project_api_result import DemoProjectApiResult from testit_api_client.model.failure_category_api_result import FailureCategoryApiResult from testit_api_client.model.filter_model import FilterModel from testit_api_client.model.operation import Operation @@ -114,6 +115,50 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.api_v2_projects_demo_post_endpoint = _Endpoint( + settings={ + 'response_type': (DemoProjectApiResult,), + 'auth': [ + 'Bearer or PrivateToken' + ], + 'endpoint_path': '/api/v2/projects/demo', + 'operation_id': 'api_v2_projects_demo_post', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + }, + 'attribute_map': { + }, + 'location_map': { + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.api_v2_projects_id_delete_endpoint = _Endpoint( settings={ 'response_type': None, @@ -1581,6 +1626,83 @@ def add_global_attributes_to_project( id return self.add_global_attributes_to_project_endpoint.call_with_http_info(**kwargs) + def api_v2_projects_demo_post( + self, + **kwargs + ): + """api_v2_projects_demo_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.api_v2_projects_demo_post(async_req=True) + >>> result = thread.get() + + + Keyword Args: + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + DemoProjectApiResult + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['_request_auths'] = kwargs.get('_request_auths', None) + return self.api_v2_projects_demo_post_endpoint.call_with_http_info(**kwargs) + def api_v2_projects_id_delete( self, id, diff --git a/src/testit_api_client/api_client.py b/src/testit_api_client/api_client.py index 1a73376e..2b546f5e 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.4.0.post560/python' + self.user_agent = 'OpenAPI-Generator/7.4.0/python' def __enter__(self): return self diff --git a/src/testit_api_client/configuration.py b/src/testit_api_client/configuration.py index 65f2a7cc..8288ccd7 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.4.0.post560".\ + "SDK Package Version: 7.4.0".\ 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 dd220ba9..671f5b8d 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 @@ -75,11 +75,11 @@ class ApiV2TestResultsIdPutRequest(ModelComposed): validations = { ('duration_in_ms',): { - 'inclusive_maximum': 9223372036854775616, + 'inclusive_maximum': 9223372036854775807, 'inclusive_minimum': 0, }, ('duration',): { - 'inclusive_maximum': 9223372036854775616, + 'inclusive_maximum': 9223372036854775807, 'inclusive_minimum': 0, }, } 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 23e99a3e..ec8a7eef 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 @@ -73,11 +73,11 @@ class TestResultUpdateV2Request(ModelNormal): validations = { ('duration_in_ms',): { - 'inclusive_maximum': 9223372036854775616, + 'inclusive_maximum': 9223372036854775807, 'inclusive_minimum': 0, }, ('duration',): { - 'inclusive_maximum': 9223372036854775616, + 'inclusive_maximum': 9223372036854775807, 'inclusive_minimum': 0, }, }