From 91d2c340b67a4dac3dd391422a4bc4c3b5096b8b Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Fri, 27 Feb 2026 10:11:08 +0300 Subject: [PATCH] feat: cloud support --- .swagger/cloud-swagger.json | 267 +++++++++++++- README.md | 5 + ...PlanIdTestPointsAutotestsRunPostRequest.md | 1 + ...iV2TestPlansIdTestRunsSearchPostRequest.md | 2 + docs/ApiV2TestRunsSearchPostRequest.md | 2 + .../ApiV2TestRunsUpdateMultiplePostRequest.md | 1 + docs/CreateAndFillByAutoTestsRequest.md | 1 + docs/CreateAndFillByConfigurationsRequest.md | 1 + docs/CreateAndFillByWorkItemsRequest.md | 1 + docs/CreateEmptyRequest.md | 1 + docs/CreateEmptyTestRunApiModel.md | 1 + ...CreateTestRunAndFillByAutoTestsApiModel.md | 1 + ...eTestRunAndFillByConfigurationsApiModel.md | 1 + ...CreateTestRunAndFillByWorkItemsApiModel.md | 1 + docs/OpenIdConnectionClientShortModel.md | 14 + ...penIdConnectionSettingsShortClientModel.md | 12 + docs/OpenIdConnectionsApi.md | 88 +++++ docs/SearchTestRunsApiModel.md | 2 + docs/TagApiModel.md | 2 +- .../TestPlanTestPointsAutoTestsRunApiModel.md | 1 + docs/TestRunApiResult.md | 1 + docs/TestRunFilterApiModel.md | 2 + docs/TestRunShortApiResult.md | 1 + docs/TestRunV2ApiResult.md | 1 + docs/UpdateEmptyRequest.md | 1 + docs/UpdateEmptyTestRunApiModel.md | 1 + docs/UpdateMultipleTagsApiModel.md | 12 + docs/UpdateMultipleTestRunsApiModel.md | 1 + ...MultipleTestRunsApiModelTagUpdateScheme.md | 14 + genConfig.yml | 2 +- run.sh | 2 +- setup.py | 2 +- src/testit_api_client/__init__.py | 2 +- .../api/open_id_connections_api.py | 161 +++++++++ src/testit_api_client/api_client.py | 2 +- src/testit_api_client/apis/__init__.py | 1 + src/testit_api_client/configuration.py | 2 +- ..._test_points_autotests_run_post_request.py | 4 + ..._plans_id_test_runs_search_post_request.py | 12 + .../api_v2_test_runs_search_post_request.py | 8 + ..._test_runs_update_multiple_post_request.py | 6 + .../create_and_fill_by_auto_tests_request.py | 4 + ...eate_and_fill_by_configurations_request.py | 4 + .../create_and_fill_by_work_items_request.py | 4 + .../model/create_empty_request.py | 4 + .../model/create_empty_test_run_api_model.py | 4 + ...st_run_and_fill_by_auto_tests_api_model.py | 4 + ...un_and_fill_by_configurations_api_model.py | 4 + ...st_run_and_fill_by_work_items_api_model.py | 4 + .../open_id_connection_client_short_model.py | 282 +++++++++++++++ ..._connection_settings_short_client_model.py | 261 ++++++++++++++ .../model/search_test_runs_api_model.py | 12 + src/testit_api_client/model/tag_api_model.py | 4 +- ...an_test_points_auto_tests_run_api_model.py | 4 + .../model/test_run_api_result.py | 10 +- .../model/test_run_filter_api_model.py | 8 + .../model/test_run_short_api_result.py | 10 +- .../model/test_run_v2_api_result.py | 10 +- .../model/update_empty_request.py | 4 + .../model/update_empty_test_run_api_model.py | 4 + .../model/update_multiple_tags_api_model.py | 274 +++++++++++++++ .../update_multiple_test_runs_api_model.py | 6 + ...e_test_runs_api_model_tag_update_scheme.py | 327 ++++++++++++++++++ src/testit_api_client/models/__init__.py | 4 + 64 files changed, 1879 insertions(+), 16 deletions(-) create mode 100644 docs/OpenIdConnectionClientShortModel.md create mode 100644 docs/OpenIdConnectionSettingsShortClientModel.md create mode 100644 docs/OpenIdConnectionsApi.md create mode 100644 docs/UpdateMultipleTagsApiModel.md create mode 100644 docs/UpdateMultipleTestRunsApiModelTagUpdateScheme.md create mode 100644 src/testit_api_client/api/open_id_connections_api.py create mode 100644 src/testit_api_client/model/open_id_connection_client_short_model.py create mode 100644 src/testit_api_client/model/open_id_connection_settings_short_client_model.py create mode 100644 src/testit_api_client/model/update_multiple_tags_api_model.py create mode 100644 src/testit_api_client/model/update_multiple_test_runs_api_model_tag_update_scheme.py diff --git a/.swagger/cloud-swagger.json b/.swagger/cloud-swagger.json index 2fd3fbf..36c5aa9 100644 --- a/.swagger/cloud-swagger.json +++ b/.swagger/cloud-swagger.json @@ -6874,6 +6874,88 @@ } } }, + "/api/v2/openid-connections": { + "get": { + "tags": [ + "OpenIdConnections" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OpenIdConnectionClientShortModel" + } + } + } + } + }, + "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/parameters": { "get": { "tags": [ @@ -36252,6 +36334,14 @@ }, "description": "Collection of links to relate to the test run", "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags to assign to the test run", + "nullable": true } }, "additionalProperties": false @@ -36630,6 +36720,14 @@ }, "description": "Collection of links to relate to the test run", "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags to assign to the test run", + "nullable": true } }, "additionalProperties": false @@ -36683,6 +36781,14 @@ "description": "Collection of links to relate to the test run", "nullable": true }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags to assign to the test run", + "nullable": true + }, "testPointSelectors": { "type": "array", "items": { @@ -36743,6 +36849,14 @@ "description": "Collection of links to relate to the test run", "nullable": true }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags to assign to the test run", + "nullable": true + }, "configurationIds": { "minItems": 1, "type": "array", @@ -40087,6 +40201,49 @@ ], "type": "string" }, + "OpenIdConnectionClientShortModel": { + "required": [ + "id", + "isEnabled" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "nullable": true + }, + "isEnabled": { + "type": "boolean" + }, + "settings": { + "allOf": [ + { + "$ref": "#/components/schemas/OpenIdConnectionSettingsShortClientModel" + } + ], + "nullable": true + } + }, + "additionalProperties": false + }, + "OpenIdConnectionSettingsShortClientModel": { + "type": "object", + "properties": { + "authority": { + "type": "string", + "nullable": true + }, + "imageUrl": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, "Operation": { "type": "object", "properties": { @@ -41757,6 +41914,22 @@ "format": "uuid" }, "nullable": true + }, + "tags": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "excludeTags": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + }, + "nullable": true } }, "additionalProperties": false @@ -43003,7 +43176,7 @@ "maxLength": 255, "minLength": 0, "type": "string", - "description": "Tag name" + "description": "Name of the tag" } }, "additionalProperties": false @@ -44033,6 +44206,14 @@ "resetNotActualAutomatedTestPoints": { "type": "boolean", "description": "Reset test point status when actual work item does not automated." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags of the test run.", + "nullable": true } }, "additionalProperties": false @@ -48171,6 +48352,7 @@ "projectId", "stateName", "status", + "tags", "testResults", "testSuiteIds" ], @@ -48306,6 +48488,12 @@ "createdByUserName": { "type": "string", "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false @@ -48512,6 +48700,22 @@ }, "description": "Specifies a test result configuration IDs to search for", "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies a test run tags to search for", + "nullable": true + }, + "excludeTags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies a test run excluded tags to search for", + "nullable": true } }, "additionalProperties": false @@ -48623,6 +48827,7 @@ "state", "statistics", "status", + "tags", "testResultsConfigurations" ], "type": "object", @@ -48704,6 +48909,13 @@ "$ref": "#/components/schemas/ConfigurationShortApiResult" }, "description": "Test results configurations" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags associated with the test run" } }, "additionalProperties": false @@ -48856,6 +49068,7 @@ "runCount", "stateName", "status", + "tags", "webhooks" ], "type": "object", @@ -48987,6 +49200,13 @@ "type": "integer", "description": "Run count", "format": "int32" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags associated with the test run" } }, "additionalProperties": false @@ -49870,6 +50090,14 @@ }, "description": "Collection of links related to the test run", "nullable": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of tags to assign to the test run", + "nullable": true } }, "additionalProperties": false @@ -50068,6 +50296,31 @@ }, "additionalProperties": false }, + "UpdateMultipleTagsApiModel": { + "required": [ + "action" + ], + "type": "object", + "properties": { + "action": { + "allOf": [ + { + "$ref": "#/components/schemas/ActionUpdate" + } + ], + "description": "The action that specifies which operation should be performed on the supplied tags." + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagApiModel" + }, + "description": "The collection of tag names to be processed.", + "nullable": true + } + }, + "additionalProperties": false + }, "UpdateMultipleTestRunsApiModel": { "required": [ "selectModel" @@ -50104,6 +50357,15 @@ ], "description": "Set of links", "nullable": true + }, + "tagUpdateScheme": { + "allOf": [ + { + "$ref": "#/components/schemas/UpdateMultipleTagsApiModel" + } + ], + "description": "Set of tags", + "nullable": true } }, "additionalProperties": false @@ -54537,6 +54799,9 @@ { "name": "Notifications" }, + { + "name": "OpenIdConnections" + }, { "name": "Parameters" }, diff --git a/README.md b/README.md index 1c48199..81620c2 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Class | Method | HTTP request | Description *NotificationsApi* | [**api_v2_notifications_id_read_post**](docs/NotificationsApi.md#api_v2_notifications_id_read_post) | **POST** /api/v2/notifications/{id}/read | Set Notification as read *NotificationsApi* | [**api_v2_notifications_read_post**](docs/NotificationsApi.md#api_v2_notifications_read_post) | **POST** /api/v2/notifications/read | Set all Notifications as read *NotificationsApi* | [**api_v2_notifications_search_post**](docs/NotificationsApi.md#api_v2_notifications_search_post) | **POST** /api/v2/notifications/search | Search Notifications for current User +*OpenIdConnectionsApi* | [**api_v2_openid_connections_get**](docs/OpenIdConnectionsApi.md#api_v2_openid_connections_get) | **GET** /api/v2/openid-connections | *ParametersApi* | [**api_v2_parameters_bulk_post**](docs/ParametersApi.md#api_v2_parameters_bulk_post) | **POST** /api/v2/parameters/bulk | Create multiple parameters *ParametersApi* | [**api_v2_parameters_bulk_put**](docs/ParametersApi.md#api_v2_parameters_bulk_put) | **PUT** /api/v2/parameters/bulk | Update multiple parameters *ParametersApi* | [**api_v2_parameters_groups_get**](docs/ParametersApi.md#api_v2_parameters_groups_get) | **GET** /api/v2/parameters/groups | Get parameters as group @@ -716,6 +717,8 @@ Class | Method | HTTP request | Description - [NotificationModel](docs/NotificationModel.md) - [NotificationQueryFilterModel](docs/NotificationQueryFilterModel.md) - [NotificationTypeModel](docs/NotificationTypeModel.md) + - [OpenIdConnectionClientShortModel](docs/OpenIdConnectionClientShortModel.md) + - [OpenIdConnectionSettingsShortClientModel](docs/OpenIdConnectionSettingsShortClientModel.md) - [Operation](docs/Operation.md) - [Order](docs/Order.md) - [Page](docs/Page.md) @@ -989,10 +992,12 @@ Class | Method | HTTP request | Description - [UpdateLinkApiModel](docs/UpdateLinkApiModel.md) - [UpdateMultipleAttachmentsApiModel](docs/UpdateMultipleAttachmentsApiModel.md) - [UpdateMultipleLinksApiModel](docs/UpdateMultipleLinksApiModel.md) + - [UpdateMultipleTagsApiModel](docs/UpdateMultipleTagsApiModel.md) - [UpdateMultipleTestRunsApiModel](docs/UpdateMultipleTestRunsApiModel.md) - [UpdateMultipleTestRunsApiModelAttachmentUpdateScheme](docs/UpdateMultipleTestRunsApiModelAttachmentUpdateScheme.md) - [UpdateMultipleTestRunsApiModelLinkUpdateScheme](docs/UpdateMultipleTestRunsApiModelLinkUpdateScheme.md) - [UpdateMultipleTestRunsApiModelSelectModel](docs/UpdateMultipleTestRunsApiModelSelectModel.md) + - [UpdateMultipleTestRunsApiModelTagUpdateScheme](docs/UpdateMultipleTestRunsApiModelTagUpdateScheme.md) - [UpdateParameterApiModel](docs/UpdateParameterApiModel.md) - [UpdateParameterRequest](docs/UpdateParameterRequest.md) - [UpdateProjectApiModel](docs/UpdateProjectApiModel.md) diff --git a/docs/ApiV2ProjectsProjectIdTestPlansTestPlanIdTestPointsAutotestsRunPostRequest.md b/docs/ApiV2ProjectsProjectIdTestPlansTestPlanIdTestPointsAutotestsRunPostRequest.md index 82451d2..5c34294 100644 --- a/docs/ApiV2ProjectsProjectIdTestPlansTestPlanIdTestPointsAutotestsRunPostRequest.md +++ b/docs/ApiV2ProjectsProjectIdTestPlansTestPlanIdTestPointsAutotestsRunPostRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **filter** | [**TestPlanTestPointsAutoTestsRerunApiModelFilter**](TestPlanTestPointsAutoTestsRerunApiModelFilter.md) | | [optional] **extraction_model** | [**TestPlanTestPointsAutoTestsRerunApiModelExtractionModel**](TestPlanTestPointsAutoTestsRerunApiModelExtractionModel.md) | | [optional] **build** | **str, none_type** | Specifies the test run build. | [optional] +**tags** | **[str], none_type** | Tags of the test run. | [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/ApiV2TestPlansIdTestRunsSearchPostRequest.md b/docs/ApiV2TestPlansIdTestRunsSearchPostRequest.md index 99a532f..1b95b42 100644 --- a/docs/ApiV2TestPlansIdTestRunsSearchPostRequest.md +++ b/docs/ApiV2TestPlansIdTestRunsSearchPostRequest.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **completed_date** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] **created_by_ids** | **[str], none_type** | | [optional] **modified_by_ids** | **[str], none_type** | | [optional] +**tags** | **[str], none_type** | | [optional] +**exclude_tags** | **[str], 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/ApiV2TestRunsSearchPostRequest.md b/docs/ApiV2TestRunsSearchPostRequest.md index 12bdd74..8a570d5 100644 --- a/docs/ApiV2TestRunsSearchPostRequest.md +++ b/docs/ApiV2TestRunsSearchPostRequest.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **failure_category** | [**[FailureCategory], none_type**](FailureCategory.md) | Specifies failure categories | [optional] **completed_date** | [**TestRunFilterApiModelCompletedDate**](TestRunFilterApiModelCompletedDate.md) | | [optional] **test_results_configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] +**tags** | **[str], none_type** | Specifies a test run tags to search for | [optional] +**exclude_tags** | **[str], none_type** | Specifies a test run excluded tags to search for | [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/ApiV2TestRunsUpdateMultiplePostRequest.md b/docs/ApiV2TestRunsUpdateMultiplePostRequest.md index dd6ed3c..c1e7485 100644 --- a/docs/ApiV2TestRunsUpdateMultiplePostRequest.md +++ b/docs/ApiV2TestRunsUpdateMultiplePostRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **description** | **str, none_type** | Test run description | [optional] **attachment_update_scheme** | [**UpdateMultipleTestRunsApiModelAttachmentUpdateScheme**](UpdateMultipleTestRunsApiModelAttachmentUpdateScheme.md) | | [optional] **link_update_scheme** | [**UpdateMultipleTestRunsApiModelLinkUpdateScheme**](UpdateMultipleTestRunsApiModelLinkUpdateScheme.md) | | [optional] +**tag_update_scheme** | [**UpdateMultipleTestRunsApiModelTagUpdateScheme**](UpdateMultipleTestRunsApiModelTagUpdateScheme.md) | | [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/CreateAndFillByAutoTestsRequest.md b/docs/CreateAndFillByAutoTestsRequest.md index 79f0a3e..6132c92 100644 --- a/docs/CreateAndFillByAutoTestsRequest.md +++ b/docs/CreateAndFillByAutoTestsRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateAndFillByConfigurationsRequest.md b/docs/CreateAndFillByConfigurationsRequest.md index 669e5c7..7f7962c 100644 --- a/docs/CreateAndFillByConfigurationsRequest.md +++ b/docs/CreateAndFillByConfigurationsRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateAndFillByWorkItemsRequest.md b/docs/CreateAndFillByWorkItemsRequest.md index cf07905..2110678 100644 --- a/docs/CreateAndFillByWorkItemsRequest.md +++ b/docs/CreateAndFillByWorkItemsRequest.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateEmptyRequest.md b/docs/CreateEmptyRequest.md index 3078569..54bbb93 100644 --- a/docs/CreateEmptyRequest.md +++ b/docs/CreateEmptyRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Test run launch source | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachments to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateEmptyTestRunApiModel.md b/docs/CreateEmptyTestRunApiModel.md index 4a18a63..399eeb5 100644 --- a/docs/CreateEmptyTestRunApiModel.md +++ b/docs/CreateEmptyTestRunApiModel.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Test run launch source | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachments to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateTestRunAndFillByAutoTestsApiModel.md b/docs/CreateTestRunAndFillByAutoTestsApiModel.md index 5e838c8..0794f15 100644 --- a/docs/CreateTestRunAndFillByAutoTestsApiModel.md +++ b/docs/CreateTestRunAndFillByAutoTestsApiModel.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateTestRunAndFillByConfigurationsApiModel.md b/docs/CreateTestRunAndFillByConfigurationsApiModel.md index 944764d..394cb8e 100644 --- a/docs/CreateTestRunAndFillByConfigurationsApiModel.md +++ b/docs/CreateTestRunAndFillByConfigurationsApiModel.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/CreateTestRunAndFillByWorkItemsApiModel.md b/docs/CreateTestRunAndFillByWorkItemsApiModel.md index 322c0ee..f03ef89 100644 --- a/docs/CreateTestRunAndFillByWorkItemsApiModel.md +++ b/docs/CreateTestRunAndFillByWorkItemsApiModel.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Specifies the test run launch source. | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachment ids to relate to the test run | [optional] **links** | [**[CreateLinkApiModel], none_type**](CreateLinkApiModel.md) | Collection of links to relate to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/OpenIdConnectionClientShortModel.md b/docs/OpenIdConnectionClientShortModel.md new file mode 100644 index 0000000..3a78374 --- /dev/null +++ b/docs/OpenIdConnectionClientShortModel.md @@ -0,0 +1,14 @@ +# OpenIdConnectionClientShortModel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**is_enabled** | **bool** | | +**name** | **str, none_type** | | [optional] +**settings** | [**OpenIdConnectionSettingsShortClientModel**](OpenIdConnectionSettingsShortClientModel.md) | | [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/OpenIdConnectionSettingsShortClientModel.md b/docs/OpenIdConnectionSettingsShortClientModel.md new file mode 100644 index 0000000..6a87ab9 --- /dev/null +++ b/docs/OpenIdConnectionSettingsShortClientModel.md @@ -0,0 +1,12 @@ +# OpenIdConnectionSettingsShortClientModel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authority** | **str, none_type** | | [optional] +**image_url** | **str, none_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/OpenIdConnectionsApi.md b/docs/OpenIdConnectionsApi.md new file mode 100644 index 0000000..3b89cdb --- /dev/null +++ b/docs/OpenIdConnectionsApi.md @@ -0,0 +1,88 @@ +# testit_api_client.OpenIdConnectionsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**api_v2_openid_connections_get**](OpenIdConnectionsApi.md#api_v2_openid_connections_get) | **GET** /api/v2/openid-connections | + + +# **api_v2_openid_connections_get** +> [OpenIdConnectionClientShortModel] api_v2_openid_connections_get() + + + +### Example + +* Api Key Authentication (Bearer or PrivateToken): + +```python +import time +import testit_api_client +from testit_api_client.api import open_id_connections_api +from testit_api_client.model.open_id_connection_client_short_model import OpenIdConnectionClientShortModel +from testit_api_client.model.problem_details import ProblemDetails +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 = open_id_connections_api.OpenIdConnectionsApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + api_response = api_instance.api_v2_openid_connections_get() + pprint(api_response) + except testit_api_client.ApiException as e: + print("Exception when calling OpenIdConnectionsApi->api_v2_openid_connections_get: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**[OpenIdConnectionClientShortModel]**](OpenIdConnectionClientShortModel.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) + diff --git a/docs/SearchTestRunsApiModel.md b/docs/SearchTestRunsApiModel.md index 61140df..2784faa 100644 --- a/docs/SearchTestRunsApiModel.md +++ b/docs/SearchTestRunsApiModel.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **completed_date** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] **created_by_ids** | **[str], none_type** | | [optional] **modified_by_ids** | **[str], none_type** | | [optional] +**tags** | **[str], none_type** | | [optional] +**exclude_tags** | **[str], none_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/TagApiModel.md b/docs/TagApiModel.md index ef8aa6c..bbd9fd9 100644 --- a/docs/TagApiModel.md +++ b/docs/TagApiModel.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Tag name | +**name** | **str** | Name of the tag | [[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/TestPlanTestPointsAutoTestsRunApiModel.md b/docs/TestPlanTestPointsAutoTestsRunApiModel.md index 6b4e523..bebd1f2 100644 --- a/docs/TestPlanTestPointsAutoTestsRunApiModel.md +++ b/docs/TestPlanTestPointsAutoTestsRunApiModel.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **filter** | [**TestPlanTestPointsAutoTestsRerunApiModelFilter**](TestPlanTestPointsAutoTestsRerunApiModelFilter.md) | | [optional] **extraction_model** | [**TestPlanTestPointsAutoTestsRerunApiModelExtractionModel**](TestPlanTestPointsAutoTestsRerunApiModelExtractionModel.md) | | [optional] **build** | **str, none_type** | Specifies the test run build. | [optional] +**tags** | **[str], none_type** | Tags of the test run. | [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/TestRunApiResult.md b/docs/TestRunApiResult.md index 82cd917..51d5700 100644 --- a/docs/TestRunApiResult.md +++ b/docs/TestRunApiResult.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **test_results** | [**[TestResultApiResult]**](TestResultApiResult.md) | | **created_date** | **datetime** | | **created_by_id** | **str** | | +**tags** | **[str]** | | **started_date** | **datetime, none_type** | | [optional] **completed_date** | **datetime, none_type** | | [optional] **description** | **str, none_type** | | [optional] diff --git a/docs/TestRunFilterApiModel.md b/docs/TestRunFilterApiModel.md index e8f31a7..a3b8c75 100644 --- a/docs/TestRunFilterApiModel.md +++ b/docs/TestRunFilterApiModel.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **failure_category** | [**[FailureCategory], none_type**](FailureCategory.md) | Specifies failure categories | [optional] **completed_date** | [**TestRunFilterApiModelCompletedDate**](TestRunFilterApiModelCompletedDate.md) | | [optional] **test_results_configuration_ids** | **[str], none_type** | Specifies a test result configuration IDs to search for | [optional] +**tags** | **[str], none_type** | Specifies a test run tags to search for | [optional] +**exclude_tags** | **[str], none_type** | Specifies a test run excluded tags to search for | [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/TestRunShortApiResult.md b/docs/TestRunShortApiResult.md index 601bc7e..90973fb 100644 --- a/docs/TestRunShortApiResult.md +++ b/docs/TestRunShortApiResult.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **auto_tests_count** | **int** | Number of AutoTests run in the test run | **statistics** | [**TestRunShortApiResultStatistics**](TestRunShortApiResultStatistics.md) | | **test_results_configurations** | [**[ConfigurationShortApiResult]**](ConfigurationShortApiResult.md) | Test results configurations | +**tags** | **[str]** | Collection of tags associated with the test run | **started_date** | **datetime, none_type** | Date when the test run was started | [optional] **completed_date** | **datetime, none_type** | Completion date of the test run | [optional] **modified_by_id** | **str, none_type** | Unique ID of user who modified the test run last time | [optional] diff --git a/docs/TestRunV2ApiResult.md b/docs/TestRunV2ApiResult.md index 2a92bb3..ef372c2 100644 --- a/docs/TestRunV2ApiResult.md +++ b/docs/TestRunV2ApiResult.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **links** | [**[LinkApiResult]**](LinkApiResult.md) | Collection of links related to the test run | **webhooks** | [**[NamedEntityApiModel]**](NamedEntityApiModel.md) | Enabled webhooks | **run_count** | **int** | Run count | +**tags** | **[str]** | Collection of tags associated with the test run | **description** | **str, none_type** | Test run description | [optional] **launch_source** | **str, none_type** | Test run launch source Once launch source is specified it cannot be updated. | [optional] **started_on** | **datetime, none_type** | Date and time of test run start | [optional] diff --git a/docs/UpdateEmptyRequest.md b/docs/UpdateEmptyRequest.md index f0ee996..b0fa3c3 100644 --- a/docs/UpdateEmptyRequest.md +++ b/docs/UpdateEmptyRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Test run launch source Once launch source is specified it cannot be updated | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachments related to the test run | [optional] **links** | [**[UpdateLinkApiModel], none_type**](UpdateLinkApiModel.md) | Collection of links related to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/UpdateEmptyTestRunApiModel.md b/docs/UpdateEmptyTestRunApiModel.md index 2bca9ef..3c4dd93 100644 --- a/docs/UpdateEmptyTestRunApiModel.md +++ b/docs/UpdateEmptyTestRunApiModel.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **launch_source** | **str, none_type** | Test run launch source Once launch source is specified it cannot be updated | [optional] **attachments** | [**[AssignAttachmentApiModel], none_type**](AssignAttachmentApiModel.md) | Collection of attachments related to the test run | [optional] **links** | [**[UpdateLinkApiModel], none_type**](UpdateLinkApiModel.md) | Collection of links related to the test run | [optional] +**tags** | **[str], none_type** | Collection of tags to assign to the test run | [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/UpdateMultipleTagsApiModel.md b/docs/UpdateMultipleTagsApiModel.md new file mode 100644 index 0000000..a43ecca --- /dev/null +++ b/docs/UpdateMultipleTagsApiModel.md @@ -0,0 +1,12 @@ +# UpdateMultipleTagsApiModel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | [**ActionUpdate**](ActionUpdate.md) | | +**tags** | [**[TagApiModel], none_type**](TagApiModel.md) | The collection of tag names to be processed. | [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/UpdateMultipleTestRunsApiModel.md b/docs/UpdateMultipleTestRunsApiModel.md index e6797ab..27decb8 100644 --- a/docs/UpdateMultipleTestRunsApiModel.md +++ b/docs/UpdateMultipleTestRunsApiModel.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **description** | **str, none_type** | Test run description | [optional] **attachment_update_scheme** | [**UpdateMultipleTestRunsApiModelAttachmentUpdateScheme**](UpdateMultipleTestRunsApiModelAttachmentUpdateScheme.md) | | [optional] **link_update_scheme** | [**UpdateMultipleTestRunsApiModelLinkUpdateScheme**](UpdateMultipleTestRunsApiModelLinkUpdateScheme.md) | | [optional] +**tag_update_scheme** | [**UpdateMultipleTestRunsApiModelTagUpdateScheme**](UpdateMultipleTestRunsApiModelTagUpdateScheme.md) | | [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/UpdateMultipleTestRunsApiModelTagUpdateScheme.md b/docs/UpdateMultipleTestRunsApiModelTagUpdateScheme.md new file mode 100644 index 0000000..10481b4 --- /dev/null +++ b/docs/UpdateMultipleTestRunsApiModelTagUpdateScheme.md @@ -0,0 +1,14 @@ +# UpdateMultipleTestRunsApiModelTagUpdateScheme + +Set of tags + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | [**ActionUpdate**](ActionUpdate.md) | | +**tags** | [**[TagApiModel], none_type**](TagApiModel.md) | The collection of tag names to be processed. | [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/genConfig.yml b/genConfig.yml index 173a7a0..2342393 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.2 +packageVersion: 7.5.3 projectName: "testit-api-client" diff --git a/run.sh b/run.sh index 859adfd..ca99f2c 100644 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ # Настройка переменных FILE_NAME="cloud-swagger.json" -NEW_VERSION="7.5.2" +NEW_VERSION="7.5.3" GENERATOR="openapi-generator-cli-6.6.0.jar" if [ ! -f ".swagger/$FILE_NAME" ]; then diff --git a/setup.py b/setup.py index 111324a..dac9f77 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ NAME = "testit-api-client" -VERSION = "7.5.2" +VERSION = "7.5.3" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ diff --git a/src/testit_api_client/__init__.py b/src/testit_api_client/__init__.py index 541d300..22557ba 100644 --- a/src/testit_api_client/__init__.py +++ b/src/testit_api_client/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "7.5.2" +__version__ = "7.5.3" # import ApiClient from testit_api_client.api_client import ApiClient diff --git a/src/testit_api_client/api/open_id_connections_api.py b/src/testit_api_client/api/open_id_connections_api.py new file mode 100644 index 0000000..14ee1b7 --- /dev/null +++ b/src/testit_api_client/api/open_id_connections_api.py @@ -0,0 +1,161 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.api_client import ApiClient, Endpoint as _Endpoint +from testit_api_client.model_utils import ( # noqa: F401 + check_allowed_values, + check_validations, + date, + datetime, + file_type, + none_type, + validate_and_convert_types +) +from testit_api_client.model.open_id_connection_client_short_model import OpenIdConnectionClientShortModel +from testit_api_client.model.problem_details import ProblemDetails +from testit_api_client.model.validation_problem_details import ValidationProblemDetails + + +class OpenIdConnectionsApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + self.api_v2_openid_connections_get_endpoint = _Endpoint( + settings={ + 'response_type': ([OpenIdConnectionClientShortModel],), + 'auth': [ + 'Bearer or PrivateToken' + ], + 'endpoint_path': '/api/v2/openid-connections', + 'operation_id': 'api_v2_openid_connections_get', + 'http_method': 'GET', + '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 + ) + + def api_v2_openid_connections_get( + self, + **kwargs + ): + """api_v2_openid_connections_get # 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_openid_connections_get(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: + [OpenIdConnectionClientShortModel] + 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_openid_connections_get_endpoint.call_with_http_info(**kwargs) + diff --git a/src/testit_api_client/api_client.py b/src/testit_api_client/api_client.py index bee3a91..2446e13 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.2/python' + self.user_agent = 'OpenAPI-Generator/7.5.3/python' def __enter__(self): return self diff --git a/src/testit_api_client/apis/__init__.py b/src/testit_api_client/apis/__init__.py index 77f78f3..9e5186f 100644 --- a/src/testit_api_client/apis/__init__.py +++ b/src/testit_api_client/apis/__init__.py @@ -22,6 +22,7 @@ from testit_api_client.api.custom_attributes_api import CustomAttributesApi from testit_api_client.api.external_issues_api import ExternalIssuesApi from testit_api_client.api.notifications_api import NotificationsApi +from testit_api_client.api.open_id_connections_api import OpenIdConnectionsApi from testit_api_client.api.parameters_api import ParametersApi from testit_api_client.api.project_attribute_templates_api import ProjectAttributeTemplatesApi from testit_api_client.api.project_attributes_api import ProjectAttributesApi diff --git a/src/testit_api_client/configuration.py b/src/testit_api_client/configuration.py index 74c3988..fe9b70e 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.2".\ + "SDK Package Version: 7.5.3".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/testit_api_client/model/api_v2_projects_project_id_test_plans_test_plan_id_test_points_autotests_run_post_request.py b/src/testit_api_client/model/api_v2_projects_project_id_test_plans_test_plan_id_test_points_autotests_run_post_request.py index dfe437f..237f072 100644 --- a/src/testit_api_client/model/api_v2_projects_project_id_test_plans_test_plan_id_test_points_autotests_run_post_request.py +++ b/src/testit_api_client/model/api_v2_projects_project_id_test_plans_test_plan_id_test_points_autotests_run_post_request.py @@ -96,6 +96,7 @@ def openapi_types(): 'filter': (TestPlanTestPointsAutoTestsRerunApiModelFilter,), # noqa: E501 'extraction_model': (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel,), # noqa: E501 'build': (str, none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -109,6 +110,7 @@ def discriminator(): 'filter': 'filter', # noqa: E501 'extraction_model': 'extractionModel', # noqa: E501 'build': 'build', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -155,6 +157,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 filter (TestPlanTestPointsAutoTestsRerunApiModelFilter): [optional] # noqa: E501 extraction_model (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel): [optional] # noqa: E501 build (str, none_type): Specifies the test run build.. [optional] # noqa: E501 + tags ([str], none_type): Tags of the test run.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,6 +266,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 filter (TestPlanTestPointsAutoTestsRerunApiModelFilter): [optional] # noqa: E501 extraction_model (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel): [optional] # noqa: E501 build (str, none_type): Specifies the test run build.. [optional] # noqa: E501 + tags ([str], none_type): Tags of the test run.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/api_v2_test_plans_id_test_runs_search_post_request.py b/src/testit_api_client/model/api_v2_test_plans_id_test_runs_search_post_request.py index f7e893e..6c1ec66 100644 --- a/src/testit_api_client/model/api_v2_test_plans_id_test_runs_search_post_request.py +++ b/src/testit_api_client/model/api_v2_test_plans_id_test_runs_search_post_request.py @@ -78,6 +78,10 @@ class ApiV2TestPlansIdTestRunsSearchPostRequest(ModelComposed): }, ('modified_by_ids',): { }, + ('tags',): { + }, + ('exclude_tags',): { + }, } @cached_property @@ -110,6 +114,8 @@ def openapi_types(): 'completed_date': (DateTimeRangeSelectorModel,), # noqa: E501 'created_by_ids': ([str], none_type,), # noqa: E501 'modified_by_ids': ([str], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 + 'exclude_tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -125,6 +131,8 @@ def discriminator(): 'completed_date': 'completedDate', # noqa: E501 'created_by_ids': 'createdByIds', # noqa: E501 'modified_by_ids': 'modifiedByIds', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'exclude_tags': 'excludeTags', # noqa: E501 } read_only_vars = { @@ -173,6 +181,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 completed_date (DateTimeRangeSelectorModel): [optional] # noqa: E501 created_by_ids ([str], none_type): [optional] # noqa: E501 modified_by_ids ([str], none_type): [optional] # noqa: E501 + tags ([str], none_type): [optional] # noqa: E501 + exclude_tags ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -283,6 +293,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 completed_date (DateTimeRangeSelectorModel): [optional] # noqa: E501 created_by_ids ([str], none_type): [optional] # noqa: E501 modified_by_ids ([str], none_type): [optional] # noqa: E501 + tags ([str], none_type): [optional] # noqa: E501 + exclude_tags ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/api_v2_test_runs_search_post_request.py b/src/testit_api_client/model/api_v2_test_runs_search_post_request.py index e4042f1..801332e 100644 --- a/src/testit_api_client/model/api_v2_test_runs_search_post_request.py +++ b/src/testit_api_client/model/api_v2_test_runs_search_post_request.py @@ -116,6 +116,8 @@ def openapi_types(): 'failure_category': ([FailureCategory], none_type,), # noqa: E501 'completed_date': (TestRunFilterApiModelCompletedDate,), # noqa: E501 'test_results_configuration_ids': ([str], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 + 'exclude_tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -139,6 +141,8 @@ def discriminator(): 'failure_category': 'failureCategory', # noqa: E501 'completed_date': 'completedDate', # noqa: E501 'test_results_configuration_ids': 'testResultsConfigurationIds', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'exclude_tags': 'excludeTags', # noqa: E501 } read_only_vars = { @@ -195,6 +199,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 failure_category ([FailureCategory], none_type): Specifies failure categories. [optional] # noqa: E501 completed_date (TestRunFilterApiModelCompletedDate): [optional] # noqa: E501 test_results_configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 + tags ([str], none_type): Specifies a test run tags to search for. [optional] # noqa: E501 + exclude_tags ([str], none_type): Specifies a test run excluded tags to search for. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -313,6 +319,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 failure_category ([FailureCategory], none_type): Specifies failure categories. [optional] # noqa: E501 completed_date (TestRunFilterApiModelCompletedDate): [optional] # noqa: E501 test_results_configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 + tags ([str], none_type): Specifies a test run tags to search for. [optional] # noqa: E501 + exclude_tags ([str], none_type): Specifies a test run excluded tags to search for. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/api_v2_test_runs_update_multiple_post_request.py b/src/testit_api_client/model/api_v2_test_runs_update_multiple_post_request.py index 1d7f526..fef439f 100644 --- a/src/testit_api_client/model/api_v2_test_runs_update_multiple_post_request.py +++ b/src/testit_api_client/model/api_v2_test_runs_update_multiple_post_request.py @@ -34,10 +34,12 @@ def lazy_import(): from testit_api_client.model.update_multiple_test_runs_api_model_attachment_update_scheme import UpdateMultipleTestRunsApiModelAttachmentUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_link_update_scheme import UpdateMultipleTestRunsApiModelLinkUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_select_model import UpdateMultipleTestRunsApiModelSelectModel + from testit_api_client.model.update_multiple_test_runs_api_model_tag_update_scheme import UpdateMultipleTestRunsApiModelTagUpdateScheme globals()['UpdateMultipleTestRunsApiModel'] = UpdateMultipleTestRunsApiModel globals()['UpdateMultipleTestRunsApiModelAttachmentUpdateScheme'] = UpdateMultipleTestRunsApiModelAttachmentUpdateScheme globals()['UpdateMultipleTestRunsApiModelLinkUpdateScheme'] = UpdateMultipleTestRunsApiModelLinkUpdateScheme globals()['UpdateMultipleTestRunsApiModelSelectModel'] = UpdateMultipleTestRunsApiModelSelectModel + globals()['UpdateMultipleTestRunsApiModelTagUpdateScheme'] = UpdateMultipleTestRunsApiModelTagUpdateScheme class ApiV2TestRunsUpdateMultiplePostRequest(ModelComposed): @@ -97,6 +99,7 @@ def openapi_types(): 'description': (str, none_type,), # noqa: E501 'attachment_update_scheme': (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme,), # noqa: E501 'link_update_scheme': (UpdateMultipleTestRunsApiModelLinkUpdateScheme,), # noqa: E501 + 'tag_update_scheme': (UpdateMultipleTestRunsApiModelTagUpdateScheme,), # noqa: E501 } @cached_property @@ -109,6 +112,7 @@ def discriminator(): 'description': 'description', # noqa: E501 'attachment_update_scheme': 'attachmentUpdateScheme', # noqa: E501 'link_update_scheme': 'linkUpdateScheme', # noqa: E501 + 'tag_update_scheme': 'tagUpdateScheme', # noqa: E501 } read_only_vars = { @@ -154,6 +158,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 description (str, none_type): Test run description. [optional] # noqa: E501 attachment_update_scheme (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme): [optional] # noqa: E501 link_update_scheme (UpdateMultipleTestRunsApiModelLinkUpdateScheme): [optional] # noqa: E501 + tag_update_scheme (UpdateMultipleTestRunsApiModelTagUpdateScheme): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -261,6 +266,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 description (str, none_type): Test run description. [optional] # noqa: E501 attachment_update_scheme (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme): [optional] # noqa: E501 link_update_scheme (UpdateMultipleTestRunsApiModelLinkUpdateScheme): [optional] # noqa: E501 + tag_update_scheme (UpdateMultipleTestRunsApiModelTagUpdateScheme): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_and_fill_by_auto_tests_request.py b/src/testit_api_client/model/create_and_fill_by_auto_tests_request.py index 7131cf5..c5fb365 100644 --- a/src/testit_api_client/model/create_and_fill_by_auto_tests_request.py +++ b/src/testit_api_client/model/create_and_fill_by_auto_tests_request.py @@ -105,6 +105,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -121,6 +122,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -170,6 +172,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -281,6 +284,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_and_fill_by_configurations_request.py b/src/testit_api_client/model/create_and_fill_by_configurations_request.py index 3c5d23b..a480886 100644 --- a/src/testit_api_client/model/create_and_fill_by_configurations_request.py +++ b/src/testit_api_client/model/create_and_fill_by_configurations_request.py @@ -101,6 +101,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -117,6 +118,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -166,6 +168,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -277,6 +280,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_and_fill_by_work_items_request.py b/src/testit_api_client/model/create_and_fill_by_work_items_request.py index 4be89f0..a901a15 100644 --- a/src/testit_api_client/model/create_and_fill_by_work_items_request.py +++ b/src/testit_api_client/model/create_and_fill_by_work_items_request.py @@ -106,6 +106,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -123,6 +124,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -173,6 +175,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -285,6 +288,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_empty_request.py b/src/testit_api_client/model/create_empty_request.py index b6afb24..8dde2ec 100644 --- a/src/testit_api_client/model/create_empty_request.py +++ b/src/testit_api_client/model/create_empty_request.py @@ -97,6 +97,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -111,6 +112,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -158,6 +160,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -267,6 +270,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_empty_test_run_api_model.py b/src/testit_api_client/model/create_empty_test_run_api_model.py index b933ad0..cb6137f 100644 --- a/src/testit_api_client/model/create_empty_test_run_api_model.py +++ b/src/testit_api_client/model/create_empty_test_run_api_model.py @@ -88,6 +88,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -102,6 +103,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -153,6 +155,7 @@ def _from_openapi_data(cls, project_id, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -247,6 +250,7 @@ def __init__(self, project_id, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_test_run_and_fill_by_auto_tests_api_model.py b/src/testit_api_client/model/create_test_run_and_fill_by_auto_tests_api_model.py index 8e4d588..6c95933 100644 --- a/src/testit_api_client/model/create_test_run_and_fill_by_auto_tests_api_model.py +++ b/src/testit_api_client/model/create_test_run_and_fill_by_auto_tests_api_model.py @@ -96,6 +96,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -112,6 +113,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -165,6 +167,7 @@ def _from_openapi_data(cls, project_id, configuration_ids, auto_test_external_id launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,6 +266,7 @@ def __init__(self, project_id, configuration_ids, auto_test_external_ids, *args, launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_test_run_and_fill_by_configurations_api_model.py b/src/testit_api_client/model/create_test_run_and_fill_by_configurations_api_model.py index e55fbc6..a3855dd 100644 --- a/src/testit_api_client/model/create_test_run_and_fill_by_configurations_api_model.py +++ b/src/testit_api_client/model/create_test_run_and_fill_by_configurations_api_model.py @@ -92,6 +92,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -108,6 +109,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -161,6 +163,7 @@ def _from_openapi_data(cls, project_id, test_plan_id, test_point_selectors, *arg launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -259,6 +262,7 @@ def __init__(self, project_id, test_plan_id, test_point_selectors, *args, **kwar launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/create_test_run_and_fill_by_work_items_api_model.py b/src/testit_api_client/model/create_test_run_and_fill_by_work_items_api_model.py index 2624b63..52bb265 100644 --- a/src/testit_api_client/model/create_test_run_and_fill_by_work_items_api_model.py +++ b/src/testit_api_client/model/create_test_run_and_fill_by_work_items_api_model.py @@ -97,6 +97,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([CreateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -114,6 +115,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -168,6 +170,7 @@ def _from_openapi_data(cls, project_id, test_plan_id, configuration_ids, work_it launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -268,6 +271,7 @@ def __init__(self, project_id, test_plan_id, configuration_ids, work_item_ids, * launch_source (str, none_type): Specifies the test run launch source.. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachment ids to relate to the test run. [optional] # noqa: E501 links ([CreateLinkApiModel], none_type): Collection of links to relate to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/open_id_connection_client_short_model.py b/src/testit_api_client/model/open_id_connection_client_short_model.py new file mode 100644 index 0000000..b598d28 --- /dev/null +++ b/src/testit_api_client/model/open_id_connection_client_short_model.py @@ -0,0 +1,282 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from testit_api_client.model.open_id_connection_settings_short_client_model import OpenIdConnectionSettingsShortClientModel + globals()['OpenIdConnectionSettingsShortClientModel'] = OpenIdConnectionSettingsShortClientModel + + +class OpenIdConnectionClientShortModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'id': (str,), # noqa: E501 + 'is_enabled': (bool,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 + 'settings': (OpenIdConnectionSettingsShortClientModel,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'is_enabled': 'isEnabled', # noqa: E501 + 'name': 'name', # noqa: E501 + 'settings': 'settings', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, is_enabled, *args, **kwargs): # noqa: E501 + """OpenIdConnectionClientShortModel - a model defined in OpenAPI + + Args: + id (str): + is_enabled (bool): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): [optional] # noqa: E501 + settings (OpenIdConnectionSettingsShortClientModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.is_enabled = is_enabled + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, id, is_enabled, *args, **kwargs): # noqa: E501 + """OpenIdConnectionClientShortModel - a model defined in OpenAPI + + Args: + id (str): + is_enabled (bool): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str, none_type): [optional] # noqa: E501 + settings (OpenIdConnectionSettingsShortClientModel): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.id = id + self.is_enabled = is_enabled + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/model/open_id_connection_settings_short_client_model.py b/src/testit_api_client/model/open_id_connection_settings_short_client_model.py new file mode 100644 index 0000000..0cb465f --- /dev/null +++ b/src/testit_api_client/model/open_id_connection_settings_short_client_model.py @@ -0,0 +1,261 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + + +class OpenIdConnectionSettingsShortClientModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'authority': (str, none_type,), # noqa: E501 + 'image_url': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'authority': 'authority', # noqa: E501 + 'image_url': 'imageUrl', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OpenIdConnectionSettingsShortClientModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + authority (str, none_type): [optional] # noqa: E501 + image_url (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """OpenIdConnectionSettingsShortClientModel - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + authority (str, none_type): [optional] # noqa: E501 + image_url (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/model/search_test_runs_api_model.py b/src/testit_api_client/model/search_test_runs_api_model.py index 393a2b5..65749e0 100644 --- a/src/testit_api_client/model/search_test_runs_api_model.py +++ b/src/testit_api_client/model/search_test_runs_api_model.py @@ -76,6 +76,10 @@ class SearchTestRunsApiModel(ModelNormal): }, ('modified_by_ids',): { }, + ('tags',): { + }, + ('exclude_tags',): { + }, } additional_properties_type = None @@ -101,6 +105,8 @@ def openapi_types(): 'completed_date': (DateTimeRangeSelectorModel,), # noqa: E501 'created_by_ids': ([str], none_type,), # noqa: E501 'modified_by_ids': ([str], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 + 'exclude_tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -116,6 +122,8 @@ def discriminator(): 'completed_date': 'completedDate', # noqa: E501 'created_by_ids': 'createdByIds', # noqa: E501 'modified_by_ids': 'modifiedByIds', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'exclude_tags': 'excludeTags', # noqa: E501 } read_only_vars = { @@ -166,6 +174,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 completed_date (DateTimeRangeSelectorModel): [optional] # noqa: E501 created_by_ids ([str], none_type): [optional] # noqa: E501 modified_by_ids ([str], none_type): [optional] # noqa: E501 + tags ([str], none_type): [optional] # noqa: E501 + exclude_tags ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -258,6 +268,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 completed_date (DateTimeRangeSelectorModel): [optional] # noqa: E501 created_by_ids ([str], none_type): [optional] # noqa: E501 modified_by_ids ([str], none_type): [optional] # noqa: E501 + tags ([str], none_type): [optional] # noqa: E501 + exclude_tags ([str], none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/tag_api_model.py b/src/testit_api_client/model/tag_api_model.py index 0bbf721..d5ac354 100644 --- a/src/testit_api_client/model/tag_api_model.py +++ b/src/testit_api_client/model/tag_api_model.py @@ -102,7 +102,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 """TagApiModel - a model defined in OpenAPI Args: - name (str): Tag name + name (str): Name of the tag Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 """TagApiModel - a model defined in OpenAPI Args: - name (str): Tag name + name (str): Name of the tag Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/src/testit_api_client/model/test_plan_test_points_auto_tests_run_api_model.py b/src/testit_api_client/model/test_plan_test_points_auto_tests_run_api_model.py index 171ab66..039f18f 100644 --- a/src/testit_api_client/model/test_plan_test_points_auto_tests_run_api_model.py +++ b/src/testit_api_client/model/test_plan_test_points_auto_tests_run_api_model.py @@ -87,6 +87,7 @@ def openapi_types(): 'filter': (TestPlanTestPointsAutoTestsRerunApiModelFilter,), # noqa: E501 'extraction_model': (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel,), # noqa: E501 'build': (str, none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -100,6 +101,7 @@ def discriminator(): 'filter': 'filter', # noqa: E501 'extraction_model': 'extractionModel', # noqa: E501 'build': 'build', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -150,6 +152,7 @@ def _from_openapi_data(cls, webhook_ids, reset_not_actual_automated_test_points, filter (TestPlanTestPointsAutoTestsRerunApiModelFilter): [optional] # noqa: E501 extraction_model (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel): [optional] # noqa: E501 build (str, none_type): Specifies the test run build.. [optional] # noqa: E501 + tags ([str], none_type): Tags of the test run.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,6 +247,7 @@ def __init__(self, webhook_ids, reset_not_actual_automated_test_points, *args, * filter (TestPlanTestPointsAutoTestsRerunApiModelFilter): [optional] # noqa: E501 extraction_model (TestPlanTestPointsAutoTestsRerunApiModelExtractionModel): [optional] # noqa: E501 build (str, none_type): Specifies the test run build.. [optional] # noqa: E501 + tags ([str], none_type): Tags of the test run.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/test_run_api_result.py b/src/testit_api_client/model/test_run_api_result.py index 9762e5a..e649faf 100644 --- a/src/testit_api_client/model/test_run_api_result.py +++ b/src/testit_api_client/model/test_run_api_result.py @@ -104,6 +104,7 @@ def openapi_types(): 'test_results': ([TestResultApiResult],), # noqa: E501 'created_date': (datetime,), # noqa: E501 'created_by_id': (str,), # noqa: E501 + 'tags': ([str],), # noqa: E501 'started_date': (datetime, none_type,), # noqa: E501 'completed_date': (datetime, none_type,), # noqa: E501 'description': (str, none_type,), # noqa: E501 @@ -138,6 +139,7 @@ def discriminator(): 'test_results': 'testResults', # noqa: E501 'created_date': 'createdDate', # noqa: E501 'created_by_id': 'createdById', # noqa: E501 + 'tags': 'tags', # noqa: E501 'started_date': 'startedDate', # noqa: E501 'completed_date': 'completedDate', # noqa: E501 'description': 'description', # noqa: E501 @@ -159,7 +161,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, is_deleted, build, state_name, status, project_id, auto_tests, auto_tests_count, test_suite_ids, is_automated, analytic, test_results, created_date, created_by_id, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, is_deleted, build, state_name, status, project_id, auto_tests, auto_tests_count, test_suite_ids, is_automated, analytic, test_results, created_date, created_by_id, tags, *args, **kwargs): # noqa: E501 """TestRunApiResult - a model defined in OpenAPI Args: @@ -177,6 +179,7 @@ def _from_openapi_data(cls, id, is_deleted, build, state_name, status, project_i test_results ([TestResultApiResult]): created_date (datetime): created_by_id (str): + tags ([str]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -266,6 +269,7 @@ def _from_openapi_data(cls, id, is_deleted, build, state_name, status, project_i self.test_results = test_results self.created_date = created_date self.created_by_id = created_by_id + self.tags = tags for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -286,7 +290,7 @@ def _from_openapi_data(cls, id, is_deleted, build, state_name, status, project_i ]) @convert_js_args_to_python_args - def __init__(self, id, is_deleted, build, state_name, status, project_id, auto_tests, auto_tests_count, test_suite_ids, is_automated, analytic, test_results, created_date, created_by_id, *args, **kwargs): # noqa: E501 + def __init__(self, id, is_deleted, build, state_name, status, project_id, auto_tests, auto_tests_count, test_suite_ids, is_automated, analytic, test_results, created_date, created_by_id, tags, *args, **kwargs): # noqa: E501 """TestRunApiResult - a model defined in OpenAPI Args: @@ -304,6 +308,7 @@ def __init__(self, id, is_deleted, build, state_name, status, project_id, auto_t test_results ([TestResultApiResult]): created_date (datetime): created_by_id (str): + tags ([str]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -391,6 +396,7 @@ def __init__(self, id, is_deleted, build, state_name, status, project_id, auto_t self.test_results = test_results self.created_date = created_date self.created_by_id = created_by_id + self.tags = tags 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_run_filter_api_model.py b/src/testit_api_client/model/test_run_filter_api_model.py index 2fb90b9..5d60ded 100644 --- a/src/testit_api_client/model/test_run_filter_api_model.py +++ b/src/testit_api_client/model/test_run_filter_api_model.py @@ -107,6 +107,8 @@ def openapi_types(): 'failure_category': ([FailureCategory], none_type,), # noqa: E501 'completed_date': (TestRunFilterApiModelCompletedDate,), # noqa: E501 'test_results_configuration_ids': ([str], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 + 'exclude_tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -130,6 +132,8 @@ def discriminator(): 'failure_category': 'failureCategory', # noqa: E501 'completed_date': 'completedDate', # noqa: E501 'test_results_configuration_ids': 'testResultsConfigurationIds', # noqa: E501 + 'tags': 'tags', # noqa: E501 + 'exclude_tags': 'excludeTags', # noqa: E501 } read_only_vars = { @@ -188,6 +192,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 failure_category ([FailureCategory], none_type): Specifies failure categories. [optional] # noqa: E501 completed_date (TestRunFilterApiModelCompletedDate): [optional] # noqa: E501 test_results_configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 + tags ([str], none_type): Specifies a test run tags to search for. [optional] # noqa: E501 + exclude_tags ([str], none_type): Specifies a test run excluded tags to search for. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -288,6 +294,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 failure_category ([FailureCategory], none_type): Specifies failure categories. [optional] # noqa: E501 completed_date (TestRunFilterApiModelCompletedDate): [optional] # noqa: E501 test_results_configuration_ids ([str], none_type): Specifies a test result configuration IDs to search for. [optional] # noqa: E501 + tags ([str], none_type): Specifies a test run tags to search for. [optional] # noqa: E501 + exclude_tags ([str], none_type): Specifies a test run excluded tags to search for. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/test_run_short_api_result.py b/src/testit_api_client/model/test_run_short_api_result.py index 9972b4c..cbc9c87 100644 --- a/src/testit_api_client/model/test_run_short_api_result.py +++ b/src/testit_api_client/model/test_run_short_api_result.py @@ -96,6 +96,7 @@ def openapi_types(): 'auto_tests_count': (int,), # noqa: E501 'statistics': (TestRunShortApiResultStatistics,), # noqa: E501 'test_results_configurations': ([ConfigurationShortApiResult],), # noqa: E501 + 'tags': ([str],), # noqa: E501 'started_date': (datetime, none_type,), # noqa: E501 'completed_date': (datetime, none_type,), # noqa: E501 'modified_by_id': (str, none_type,), # noqa: E501 @@ -117,6 +118,7 @@ def discriminator(): 'auto_tests_count': 'autoTestsCount', # noqa: E501 'statistics': 'statistics', # noqa: E501 'test_results_configurations': 'testResultsConfigurations', # noqa: E501 + 'tags': 'tags', # noqa: E501 'started_date': 'startedDate', # noqa: E501 'completed_date': 'completedDate', # noqa: E501 'modified_by_id': 'modifiedById', # noqa: E501 @@ -129,7 +131,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, name, state, status, created_date, created_by_id, is_deleted, auto_tests_count, statistics, test_results_configurations, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, name, state, status, created_date, created_by_id, is_deleted, auto_tests_count, statistics, test_results_configurations, tags, *args, **kwargs): # noqa: E501 """TestRunShortApiResult - a model defined in OpenAPI Args: @@ -143,6 +145,7 @@ def _from_openapi_data(cls, id, name, state, status, created_date, created_by_id auto_tests_count (int): Number of AutoTests run in the test run statistics (TestRunShortApiResultStatistics): test_results_configurations ([ConfigurationShortApiResult]): Test results configurations + tags ([str]): Collection of tags associated with the test run Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -219,6 +222,7 @@ def _from_openapi_data(cls, id, name, state, status, created_date, created_by_id self.auto_tests_count = auto_tests_count self.statistics = statistics self.test_results_configurations = test_results_configurations + self.tags = tags for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -239,7 +243,7 @@ def _from_openapi_data(cls, id, name, state, status, created_date, created_by_id ]) @convert_js_args_to_python_args - def __init__(self, id, name, state, status, created_date, created_by_id, is_deleted, auto_tests_count, statistics, test_results_configurations, *args, **kwargs): # noqa: E501 + def __init__(self, id, name, state, status, created_date, created_by_id, is_deleted, auto_tests_count, statistics, test_results_configurations, tags, *args, **kwargs): # noqa: E501 """TestRunShortApiResult - a model defined in OpenAPI Args: @@ -253,6 +257,7 @@ def __init__(self, id, name, state, status, created_date, created_by_id, is_dele auto_tests_count (int): Number of AutoTests run in the test run statistics (TestRunShortApiResultStatistics): test_results_configurations ([ConfigurationShortApiResult]): Test results configurations + tags ([str]): Collection of tags associated with the test run Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -327,6 +332,7 @@ def __init__(self, id, name, state, status, created_date, created_by_id, is_dele self.auto_tests_count = auto_tests_count self.statistics = statistics self.test_results_configurations = test_results_configurations + self.tags = tags 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_run_v2_api_result.py b/src/testit_api_client/model/test_run_v2_api_result.py index ef313ad..ab779f4 100644 --- a/src/testit_api_client/model/test_run_v2_api_result.py +++ b/src/testit_api_client/model/test_run_v2_api_result.py @@ -101,6 +101,7 @@ def openapi_types(): 'links': ([LinkApiResult],), # noqa: E501 'webhooks': ([NamedEntityApiModel],), # noqa: E501 'run_count': (int,), # noqa: E501 + 'tags': ([str],), # noqa: E501 'description': (str, none_type,), # noqa: E501 'launch_source': (str, none_type,), # noqa: E501 'started_on': (datetime, none_type,), # noqa: E501 @@ -130,6 +131,7 @@ def discriminator(): 'links': 'links', # noqa: E501 'webhooks': 'webhooks', # noqa: E501 'run_count': 'runCount', # noqa: E501 + 'tags': 'tags', # noqa: E501 'description': 'description', # noqa: E501 'launch_source': 'launchSource', # noqa: E501 'started_on': 'startedOn', # noqa: E501 @@ -149,7 +151,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, name, state_name, status, project_id, created_date, created_by_id, attachments, links, webhooks, run_count, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, name, state_name, status, project_id, created_date, created_by_id, attachments, links, webhooks, run_count, tags, *args, **kwargs): # noqa: E501 """TestRunV2ApiResult - a model defined in OpenAPI Args: @@ -164,6 +166,7 @@ def _from_openapi_data(cls, id, name, state_name, status, project_id, created_da links ([LinkApiResult]): Collection of links related to the test run webhooks ([NamedEntityApiModel]): Enabled webhooks run_count (int): Run count + tags ([str]): Collection of tags associated with the test run Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -248,6 +251,7 @@ def _from_openapi_data(cls, id, name, state_name, status, project_id, created_da self.links = links self.webhooks = webhooks self.run_count = run_count + self.tags = tags for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -268,7 +272,7 @@ def _from_openapi_data(cls, id, name, state_name, status, project_id, created_da ]) @convert_js_args_to_python_args - def __init__(self, id, name, state_name, status, project_id, created_date, created_by_id, attachments, links, webhooks, run_count, *args, **kwargs): # noqa: E501 + def __init__(self, id, name, state_name, status, project_id, created_date, created_by_id, attachments, links, webhooks, run_count, tags, *args, **kwargs): # noqa: E501 """TestRunV2ApiResult - a model defined in OpenAPI Args: @@ -283,6 +287,7 @@ def __init__(self, id, name, state_name, status, project_id, created_date, creat links ([LinkApiResult]): Collection of links related to the test run webhooks ([NamedEntityApiModel]): Enabled webhooks run_count (int): Run count + tags ([str]): Collection of tags associated with the test run Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -365,6 +370,7 @@ def __init__(self, id, name, state_name, status, project_id, created_date, creat self.links = links self.webhooks = webhooks self.run_count = run_count + self.tags = tags 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/update_empty_request.py b/src/testit_api_client/model/update_empty_request.py index e8a8630..3f5f95a 100644 --- a/src/testit_api_client/model/update_empty_request.py +++ b/src/testit_api_client/model/update_empty_request.py @@ -100,6 +100,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([UpdateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -114,6 +115,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -161,6 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source Once launch source is specified it cannot be updated. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments related to the test run. [optional] # noqa: E501 links ([UpdateLinkApiModel], none_type): Collection of links related to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -270,6 +273,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source Once launch source is specified it cannot be updated. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments related to the test run. [optional] # noqa: E501 links ([UpdateLinkApiModel], none_type): Collection of links related to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/update_empty_test_run_api_model.py b/src/testit_api_client/model/update_empty_test_run_api_model.py index daf5038..6ee6472 100644 --- a/src/testit_api_client/model/update_empty_test_run_api_model.py +++ b/src/testit_api_client/model/update_empty_test_run_api_model.py @@ -91,6 +91,7 @@ def openapi_types(): 'launch_source': (str, none_type,), # noqa: E501 'attachments': ([AssignAttachmentApiModel], none_type,), # noqa: E501 'links': ([UpdateLinkApiModel], none_type,), # noqa: E501 + 'tags': ([str], none_type,), # noqa: E501 } @cached_property @@ -105,6 +106,7 @@ def discriminator(): 'launch_source': 'launchSource', # noqa: E501 'attachments': 'attachments', # noqa: E501 'links': 'links', # noqa: E501 + 'tags': 'tags', # noqa: E501 } read_only_vars = { @@ -156,6 +158,7 @@ def _from_openapi_data(cls, id, name, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source Once launch source is specified it cannot be updated. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments related to the test run. [optional] # noqa: E501 links ([UpdateLinkApiModel], none_type): Collection of links related to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -251,6 +254,7 @@ def __init__(self, id, name, *args, **kwargs): # noqa: E501 launch_source (str, none_type): Test run launch source Once launch source is specified it cannot be updated. [optional] # noqa: E501 attachments ([AssignAttachmentApiModel], none_type): Collection of attachments related to the test run. [optional] # noqa: E501 links ([UpdateLinkApiModel], none_type): Collection of links related to the test run. [optional] # noqa: E501 + tags ([str], none_type): Collection of tags to assign to the test run. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/update_multiple_tags_api_model.py b/src/testit_api_client/model/update_multiple_tags_api_model.py new file mode 100644 index 0000000..60c09e5 --- /dev/null +++ b/src/testit_api_client/model/update_multiple_tags_api_model.py @@ -0,0 +1,274 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from testit_api_client.model.action_update import ActionUpdate + from testit_api_client.model.tag_api_model import TagApiModel + globals()['ActionUpdate'] = ActionUpdate + globals()['TagApiModel'] = TagApiModel + + +class UpdateMultipleTagsApiModel(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'action': (ActionUpdate,), # noqa: E501 + 'tags': ([TagApiModel], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'action': 'action', # noqa: E501 + 'tags': 'tags', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, action, *args, **kwargs): # noqa: E501 + """UpdateMultipleTagsApiModel - a model defined in OpenAPI + + Args: + action (ActionUpdate): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([TagApiModel], none_type): The collection of tag names to be processed.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.action = action + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, action, *args, **kwargs): # noqa: E501 + """UpdateMultipleTagsApiModel - a model defined in OpenAPI + + Args: + action (ActionUpdate): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([TagApiModel], none_type): The collection of tag names to be processed.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.action = action + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/testit_api_client/model/update_multiple_test_runs_api_model.py b/src/testit_api_client/model/update_multiple_test_runs_api_model.py index 4b52e63..b817910 100644 --- a/src/testit_api_client/model/update_multiple_test_runs_api_model.py +++ b/src/testit_api_client/model/update_multiple_test_runs_api_model.py @@ -33,9 +33,11 @@ def lazy_import(): from testit_api_client.model.update_multiple_test_runs_api_model_attachment_update_scheme import UpdateMultipleTestRunsApiModelAttachmentUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_link_update_scheme import UpdateMultipleTestRunsApiModelLinkUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_select_model import UpdateMultipleTestRunsApiModelSelectModel + from testit_api_client.model.update_multiple_test_runs_api_model_tag_update_scheme import UpdateMultipleTestRunsApiModelTagUpdateScheme globals()['UpdateMultipleTestRunsApiModelAttachmentUpdateScheme'] = UpdateMultipleTestRunsApiModelAttachmentUpdateScheme globals()['UpdateMultipleTestRunsApiModelLinkUpdateScheme'] = UpdateMultipleTestRunsApiModelLinkUpdateScheme globals()['UpdateMultipleTestRunsApiModelSelectModel'] = UpdateMultipleTestRunsApiModelSelectModel + globals()['UpdateMultipleTestRunsApiModelTagUpdateScheme'] = UpdateMultipleTestRunsApiModelTagUpdateScheme class UpdateMultipleTestRunsApiModel(ModelNormal): @@ -88,6 +90,7 @@ def openapi_types(): 'description': (str, none_type,), # noqa: E501 'attachment_update_scheme': (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme,), # noqa: E501 'link_update_scheme': (UpdateMultipleTestRunsApiModelLinkUpdateScheme,), # noqa: E501 + 'tag_update_scheme': (UpdateMultipleTestRunsApiModelTagUpdateScheme,), # noqa: E501 } @cached_property @@ -100,6 +103,7 @@ def discriminator(): 'description': 'description', # noqa: E501 'attachment_update_scheme': 'attachmentUpdateScheme', # noqa: E501 'link_update_scheme': 'linkUpdateScheme', # noqa: E501 + 'tag_update_scheme': 'tagUpdateScheme', # noqa: E501 } read_only_vars = { @@ -149,6 +153,7 @@ def _from_openapi_data(cls, select_model, *args, **kwargs): # noqa: E501 description (str, none_type): Test run description. [optional] # noqa: E501 attachment_update_scheme (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme): [optional] # noqa: E501 link_update_scheme (UpdateMultipleTestRunsApiModelLinkUpdateScheme): [optional] # noqa: E501 + tag_update_scheme (UpdateMultipleTestRunsApiModelTagUpdateScheme): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -241,6 +246,7 @@ def __init__(self, select_model, *args, **kwargs): # noqa: E501 description (str, none_type): Test run description. [optional] # noqa: E501 attachment_update_scheme (UpdateMultipleTestRunsApiModelAttachmentUpdateScheme): [optional] # noqa: E501 link_update_scheme (UpdateMultipleTestRunsApiModelLinkUpdateScheme): [optional] # noqa: E501 + tag_update_scheme (UpdateMultipleTestRunsApiModelTagUpdateScheme): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/testit_api_client/model/update_multiple_test_runs_api_model_tag_update_scheme.py b/src/testit_api_client/model/update_multiple_test_runs_api_model_tag_update_scheme.py new file mode 100644 index 0000000..f9e439d --- /dev/null +++ b/src/testit_api_client/model/update_multiple_test_runs_api_model_tag_update_scheme.py @@ -0,0 +1,327 @@ +""" + API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v2.0 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from testit_api_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from testit_api_client.exceptions import ApiAttributeError + + +def lazy_import(): + from testit_api_client.model.action_update import ActionUpdate + from testit_api_client.model.tag_api_model import TagApiModel + from testit_api_client.model.update_multiple_tags_api_model import UpdateMultipleTagsApiModel + globals()['ActionUpdate'] = ActionUpdate + globals()['TagApiModel'] = TagApiModel + globals()['UpdateMultipleTagsApiModel'] = UpdateMultipleTagsApiModel + + +class UpdateMultipleTestRunsApiModelTagUpdateScheme(ModelComposed): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @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 = True + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'action': (ActionUpdate,), # noqa: E501 + 'tags': ([TagApiModel], none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'action': 'action', # noqa: E501 + 'tags': 'tags', # noqa: E501 + } + + read_only_vars = { + } + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """UpdateMultipleTestRunsApiModelTagUpdateScheme - a model defined in OpenAPI + + Keyword Args: + action (ActionUpdate): + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([TagApiModel], none_type): The collection of tag names to be processed.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + 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 in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self._additional_properties_model_instances: + # discard variable. + continue + setattr(self, var_name, var_value) + + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + '_composed_instances', + '_var_name_to_model_instances', + '_additional_properties_model_instances', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """UpdateMultipleTestRunsApiModelTagUpdateScheme - a model defined in OpenAPI + + Keyword Args: + action (ActionUpdate): + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + tags ([TagApiModel], none_type): The collection of tag names to be processed.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + 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 in discarded_args and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + 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': [ + UpdateMultipleTagsApiModel, + ], + 'oneOf': [ + ], + } diff --git a/src/testit_api_client/models/__init__.py b/src/testit_api_client/models/__init__.py index 4795d90..14d60fd 100644 --- a/src/testit_api_client/models/__init__.py +++ b/src/testit_api_client/models/__init__.py @@ -341,6 +341,8 @@ from testit_api_client.model.notification_model import NotificationModel from testit_api_client.model.notification_query_filter_model import NotificationQueryFilterModel from testit_api_client.model.notification_type_model import NotificationTypeModel +from testit_api_client.model.open_id_connection_client_short_model import OpenIdConnectionClientShortModel +from testit_api_client.model.open_id_connection_settings_short_client_model import OpenIdConnectionSettingsShortClientModel from testit_api_client.model.operation import Operation from testit_api_client.model.order import Order from testit_api_client.model.page import Page @@ -614,10 +616,12 @@ from testit_api_client.model.update_link_api_model import UpdateLinkApiModel from testit_api_client.model.update_multiple_attachments_api_model import UpdateMultipleAttachmentsApiModel from testit_api_client.model.update_multiple_links_api_model import UpdateMultipleLinksApiModel +from testit_api_client.model.update_multiple_tags_api_model import UpdateMultipleTagsApiModel from testit_api_client.model.update_multiple_test_runs_api_model import UpdateMultipleTestRunsApiModel from testit_api_client.model.update_multiple_test_runs_api_model_attachment_update_scheme import UpdateMultipleTestRunsApiModelAttachmentUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_link_update_scheme import UpdateMultipleTestRunsApiModelLinkUpdateScheme from testit_api_client.model.update_multiple_test_runs_api_model_select_model import UpdateMultipleTestRunsApiModelSelectModel +from testit_api_client.model.update_multiple_test_runs_api_model_tag_update_scheme import UpdateMultipleTestRunsApiModelTagUpdateScheme from testit_api_client.model.update_parameter_api_model import UpdateParameterApiModel from testit_api_client.model.update_parameter_request import UpdateParameterRequest from testit_api_client.model.update_project_api_model import UpdateProjectApiModel