diff --git a/README.md b/README.md index a4fd8da..cfb180d 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ | Test IT | API Client | |---------|------------| | 5.0 | 0.1.0 | +| 5.2 | 0.2.0 | ### Installation @@ -77,6 +78,7 @@ All URIs are relative to *http://localhost* | ------------ | ------------- | ------------- | ------------- | | *AttachmentsApi* | [**apiV2AttachmentsIdDelete**](docs/AttachmentsApi.md#apiv2attachmentsiddelete) | **DELETE** /api/v2/attachments/{id} | Delete attachment file | | *AttachmentsApi* | [**apiV2AttachmentsIdGet**](docs/AttachmentsApi.md#apiv2attachmentsidget) | **GET** /api/v2/attachments/{id} | Download attachment file | +| *AttachmentsApi* | [**apiV2AttachmentsIdMetadataGet**](docs/AttachmentsApi.md#apiv2attachmentsidmetadataget) | **GET** /api/v2/attachments/{id}/metadata | Get attachment metadata | | *AttachmentsApi* | [**apiV2AttachmentsOccupiedFileStorageSizeGet**](docs/AttachmentsApi.md#apiv2attachmentsoccupiedfilestoragesizeget) | **GET** /api/v2/attachments/occupiedFileStorageSize | Get size of attachments storage in bytes | | *AttachmentsApi* | [**apiV2AttachmentsPost**](docs/AttachmentsApi.md#apiv2attachmentspost) | **POST** /api/v2/attachments | Upload new attachment file | | *AutoTestsApi* | [**apiV2AutoTestsFlakyBulkPost**](docs/AutoTestsApi.md#apiv2autotestsflakybulkpost) | **POST** /api/v2/autoTests/flaky/bulk | Set \"Flaky\" status for multiple autotests | @@ -94,7 +96,6 @@ All URIs are relative to *http://localhost* | *AutoTestsApi* | [**getAutoTestById**](docs/AutoTestsApi.md#getautotestbyid) | **GET** /api/v2/autoTests/{id} | Get autotest by internal or global ID | | *AutoTestsApi* | [**getAutoTestChronology**](docs/AutoTestsApi.md#getautotestchronology) | **GET** /api/v2/autoTests/{id}/chronology | Get autotest chronology | | *AutoTestsApi* | [**getTestRuns**](docs/AutoTestsApi.md#gettestruns) | **GET** /api/v2/autoTests/{id}/testRuns | Get completed tests runs for autotests | -| *AutoTestsApi* | [**getWorkItemResults**](docs/AutoTestsApi.md#getworkitemresults) | **GET** /api/v2/autoTests/{id}/testResultHistory | | | *AutoTestsApi* | [**getWorkItemsLinkedToAutoTest**](docs/AutoTestsApi.md#getworkitemslinkedtoautotest) | **GET** /api/v2/autoTests/{id}/workItems | Get work items linked to autotest | | *AutoTestsApi* | [**linkAutoTestToWorkItem**](docs/AutoTestsApi.md#linkautotesttoworkitem) | **POST** /api/v2/autoTests/{id}/workItems | Link autotest with work items | | *AutoTestsApi* | [**updateAutoTest**](docs/AutoTestsApi.md#updateautotest) | **PUT** /api/v2/autoTests | Update autotest | @@ -117,6 +118,7 @@ All URIs are relative to *http://localhost* | *ConfigurationsApi* | [**apiV2ConfigurationsSearchPost**](docs/ConfigurationsApi.md#apiv2configurationssearchpost) | **POST** /api/v2/configurations/search | Search for configurations | | *ConfigurationsApi* | [**createConfiguration**](docs/ConfigurationsApi.md#createconfiguration) | **POST** /api/v2/configurations | Create Configuration | | *ConfigurationsApi* | [**getConfigurationById**](docs/ConfigurationsApi.md#getconfigurationbyid) | **GET** /api/v2/configurations/{id} | Get configuration by internal or global ID | +| *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesExistsGet**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatesexistsget) | **GET** /api/v2/customAttributes/templates/exists | | | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatesidcustomattributesexcludepost) | **POST** /api/v2/customAttributes/templates/{id}/customAttributes/exclude | Exclude CustomAttributes from CustomAttributeTemplate | | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatesidcustomattributesincludepost) | **POST** /api/v2/customAttributes/templates/{id}/customAttributes/include | Include CustomAttributes to CustomAttributeTemplate | | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesIdDelete**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatesiddelete) | **DELETE** /api/v2/customAttributes/templates/{id} | Delete CustomAttributeTemplate | @@ -125,6 +127,7 @@ All URIs are relative to *http://localhost* | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesPost**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatespost) | **POST** /api/v2/customAttributes/templates | Create CustomAttributeTemplate | | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesPut**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatesput) | **PUT** /api/v2/customAttributes/templates | Update custom attributes template | | *CustomAttributeTemplatesApi* | [**apiV2CustomAttributesTemplatesSearchPost**](docs/CustomAttributeTemplatesApi.md#apiv2customattributestemplatessearchpost) | **POST** /api/v2/customAttributes/templates/search | Search CustomAttributeTemplates | +| *CustomAttributesApi* | [**apiV2CustomAttributesExistsGet**](docs/CustomAttributesApi.md#apiv2customattributesexistsget) | **GET** /api/v2/customAttributes/exists | | | *CustomAttributesApi* | [**apiV2CustomAttributesGlobalIdDelete**](docs/CustomAttributesApi.md#apiv2customattributesglobaliddelete) | **DELETE** /api/v2/customAttributes/global/{id} | Delete global attribute | | *CustomAttributesApi* | [**apiV2CustomAttributesGlobalIdPut**](docs/CustomAttributesApi.md#apiv2customattributesglobalidput) | **PUT** /api/v2/customAttributes/global/{id} | Edit global attribute | | *CustomAttributesApi* | [**apiV2CustomAttributesGlobalPost**](docs/CustomAttributesApi.md#apiv2customattributesglobalpost) | **POST** /api/v2/customAttributes/global | Create global attribute | @@ -160,10 +163,9 @@ All URIs are relative to *http://localhost* | *ProjectAttributesApi* | [**searchAttributesInProject**](docs/ProjectAttributesApi.md#searchattributesinproject) | **POST** /api/v2/projects/{projectId}/attributes/search | Search for attributes used in the project | | *ProjectAttributesApi* | [**updateProjectsAttribute**](docs/ProjectAttributesApi.md#updateprojectsattribute) | **PUT** /api/v2/projects/{projectId}/attributes | Edit attribute of the project | | *ProjectConfigurationsApi* | [**getConfigurationsByProjectId**](docs/ProjectConfigurationsApi.md#getconfigurationsbyprojectid) | **GET** /api/v2/projects/{projectId}/configurations | Get project configurations | -| *ProjectImportApi* | [**backgroundImportToExistingProject**](docs/ProjectImportApi.md#backgroundimporttoexistingproject) | **POST** /api/v2/projects/{projectId}/import/json | Import project from JSON file into existing project in background job | -| *ProjectImportApi* | [**backgroundImportZipToExistingProject**](docs/ProjectImportApi.md#backgroundimportziptoexistingproject) | **POST** /api/v2/projects/{projectId}/import/zip | Import project from Zip file into existing project in background job | -| *ProjectImportApi* | [**importToExistingProject**](docs/ProjectImportApi.md#importtoexistingproject) | **POST** /api/v2/projects/{projectId}/import | Import project from JSON file into existing project | | *ProjectSectionsApi* | [**getSectionsByProjectId**](docs/ProjectSectionsApi.md#getsectionsbyprojectid) | **GET** /api/v2/projects/{projectId}/sections | Get project sections | +| *ProjectSettingsApi* | [**apiV2ProjectsProjectIdSettingsAutotestsPost**](docs/ProjectSettingsApi.md#apiv2projectsprojectidsettingsautotestspost) | **POST** /api/v2/projects/{projectId}/settings/autotests | Set autotest project settings. | +| *ProjectSettingsApi* | [**getAutotestProjectSettings**](docs/ProjectSettingsApi.md#getautotestprojectsettings) | **GET** /api/v2/projects/{projectId}/settings/autotests | Get autotest project settings. | | *ProjectTestPlanAttributesApi* | [**createCustomAttributeTestPlanProjectRelations**](docs/ProjectTestPlanAttributesApi.md#createcustomattributetestplanprojectrelations) | **POST** /api/v2/projects/{projectId}/testPlans/attributes | Add attributes to project's test plans | | *ProjectTestPlanAttributesApi* | [**deleteCustomAttributeTestPlanProjectRelations**](docs/ProjectTestPlanAttributesApi.md#deletecustomattributetestplanprojectrelations) | **DELETE** /api/v2/projects/{projectId}/testPlans/attributes/{attributeId} | Delete attribute from project's test plans | | *ProjectTestPlanAttributesApi* | [**getCustomAttributeTestPlanProjectRelations**](docs/ProjectTestPlanAttributesApi.md#getcustomattributetestplanprojectrelations) | **GET** /api/v2/projects/{projectId}/testPlans/attributes | Get project's test plan attributes | @@ -197,9 +199,6 @@ All URIs are relative to *http://localhost* | *ProjectsApi* | [**apiV2ProjectsPurgeBulkPost**](docs/ProjectsApi.md#apiv2projectspurgebulkpost) | **POST** /api/v2/projects/purge/bulk | Purge multiple projects | | *ProjectsApi* | [**apiV2ProjectsRestoreBulkPost**](docs/ProjectsApi.md#apiv2projectsrestorebulkpost) | **POST** /api/v2/projects/restore/bulk | Restore multiple projects | | *ProjectsApi* | [**apiV2ProjectsSearchPost**](docs/ProjectsApi.md#apiv2projectssearchpost) | **POST** /api/v2/projects/search | Search for projects | -| *ProjectsApi* | [**backgroundImportProject**](docs/ProjectsApi.md#backgroundimportproject) | **POST** /api/v2/projects/import/json | Import project from JSON file in background job | -| *ProjectsApi* | [**backgroundImportZipProject**](docs/ProjectsApi.md#backgroundimportzipproject) | **POST** /api/v2/projects/import/zip | Import project from Zip file in background job | -| *ProjectsApi* | [**callImport**](docs/ProjectsApi.md#callimport) | **POST** /api/v2/projects/import | Import project from JSON file | | *ProjectsApi* | [**createProject**](docs/ProjectsApi.md#createproject) | **POST** /api/v2/projects | Create project | | *ProjectsApi* | [**deleteProjectAutoTests**](docs/ProjectsApi.md#deleteprojectautotests) | **DELETE** /api/v2/projects/{id}/autoTests | Delete all autotests from project | | *ProjectsApi* | [**getAllProjects**](docs/ProjectsApi.md#getallprojects) | **GET** /api/v2/projects | Get all projects | @@ -234,6 +233,7 @@ All URIs are relative to *http://localhost* | *TestPlansApi* | [**apiV2TestPlansIdHistoryGet**](docs/TestPlansApi.md#apiv2testplansidhistoryget) | **GET** /api/v2/testPlans/{id}/history | Get TestPlan history | | *TestPlansApi* | [**apiV2TestPlansIdLinksGet**](docs/TestPlansApi.md#apiv2testplansidlinksget) | **GET** /api/v2/testPlans/{id}/links | Get Links of TestPlan | | *TestPlansApi* | [**apiV2TestPlansIdPatch**](docs/TestPlansApi.md#apiv2testplansidpatch) | **PATCH** /api/v2/testPlans/{id} | Patch test plan | +| *TestPlansApi* | [**apiV2TestPlansIdSummariesGet**](docs/TestPlansApi.md#apiv2testplansidsummariesget) | **GET** /api/v2/testPlans/{id}/summaries | Get summary by TestPlan | | *TestPlansApi* | [**apiV2TestPlansIdTestPointsLastResultsGet**](docs/TestPlansApi.md#apiv2testplansidtestpointslastresultsget) | **GET** /api/v2/testPlans/{id}/testPoints/lastResults | Get TestPoints with last result from TestPlan | | *TestPlansApi* | [**apiV2TestPlansIdTestPointsResetPost**](docs/TestPlansApi.md#apiv2testplansidtestpointsresetpost) | **POST** /api/v2/testPlans/{id}/testPoints/reset | Reset TestPoints status of TestPlan | | *TestPlansApi* | [**apiV2TestPlansIdTestPointsTesterDelete**](docs/TestPlansApi.md#apiv2testplansidtestpointstesterdelete) | **DELETE** /api/v2/testPlans/{id}/testPoints/tester | Unassign users from multiple test points | @@ -258,11 +258,14 @@ All URIs are relative to *http://localhost* | *TestPointsApi* | [**apiV2TestPointsIdWorkItemGet**](docs/TestPointsApi.md#apiv2testpointsidworkitemget) | **GET** /api/v2/testPoints/{id}/workItem | Get work item represented by test point | | *TestPointsApi* | [**apiV2TestPointsSearchIdPost**](docs/TestPointsApi.md#apiv2testpointssearchidpost) | **POST** /api/v2/testPoints/search/id | Search for test points and extract IDs only | | *TestPointsApi* | [**apiV2TestPointsSearchPost**](docs/TestPointsApi.md#apiv2testpointssearchpost) | **POST** /api/v2/testPoints/search | Search for test points | +| *TestResultsApi* | [**apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost**](docs/TestResultsApi.md#apiv2testresultsexternalprojectsexternalprojectiddefectsexternalformspost) | **POST** /api/v2/testResults/external-projects/{externalProjectId}/defects/external-forms | | +| *TestResultsApi* | [**apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost**](docs/TestResultsApi.md#apiv2testresultsexternalprojectsexternalprojectiddefectspost) | **POST** /api/v2/testResults/external-projects/{externalProjectId}/defects | | | *TestResultsApi* | [**apiV2TestResultsIdAggregatedGet**](docs/TestResultsApi.md#apiv2testresultsidaggregatedget) | **GET** /api/v2/testResults/{id}/aggregated | Get test result by ID aggregated with previous results | | *TestResultsApi* | [**apiV2TestResultsIdAttachmentsAttachmentIdPut**](docs/TestResultsApi.md#apiv2testresultsidattachmentsattachmentidput) | **PUT** /api/v2/testResults/{id}/attachments/{attachmentId} | Attach file to the test result | | *TestResultsApi* | [**apiV2TestResultsIdAttachmentsInfoGet**](docs/TestResultsApi.md#apiv2testresultsidattachmentsinfoget) | **GET** /api/v2/testResults/{id}/attachments/info | Get test result attachments meta-information | | *TestResultsApi* | [**apiV2TestResultsIdGet**](docs/TestResultsApi.md#apiv2testresultsidget) | **GET** /api/v2/testResults/{id} | Get test result by ID | | *TestResultsApi* | [**apiV2TestResultsIdPut**](docs/TestResultsApi.md#apiv2testresultsidput) | **PUT** /api/v2/testResults/{id} | Edit test result by ID | +| *TestResultsApi* | [**apiV2TestResultsIdRerunsGet**](docs/TestResultsApi.md#apiv2testresultsidrerunsget) | **GET** /api/v2/testResults/{id}/reruns | Get reruns | | *TestResultsApi* | [**apiV2TestResultsSearchPost**](docs/TestResultsApi.md#apiv2testresultssearchpost) | **POST** /api/v2/testResults/search | Search for test results | | *TestResultsApi* | [**apiV2TestResultsStatisticsFilterPost**](docs/TestResultsApi.md#apiv2testresultsstatisticsfilterpost) | **POST** /api/v2/testResults/statistics/filter | Search for test results and extract statistics | | *TestResultsApi* | [**createAttachment**](docs/TestResultsApi.md#createattachment) | **POST** /api/v2/testResults/{id}/attachments | Upload and link attachment to TestResult | @@ -271,8 +274,10 @@ All URIs are relative to *http://localhost* | *TestResultsApi* | [**getAttachment**](docs/TestResultsApi.md#getattachment) | **GET** /api/v2/testResults/{id}/attachments/{attachmentId}/info | Get Metadata of TestResult's attachment | | *TestResultsApi* | [**getAttachments**](docs/TestResultsApi.md#getattachments) | **GET** /api/v2/testResults/{id}/attachments | Get all attachments of TestResult | | *TestRunsApi* | [**apiV2TestRunsDelete**](docs/TestRunsApi.md#apiv2testrunsdelete) | **DELETE** /api/v2/testRuns | Delete multiple test runs | +| *TestRunsApi* | [**apiV2TestRunsIdAutoTestsNamespacesGet**](docs/TestRunsApi.md#apiv2testrunsidautotestsnamespacesget) | **GET** /api/v2/testRuns/{id}/autoTestsNamespaces | Get autotest classes and namespaces in test run | | *TestRunsApi* | [**apiV2TestRunsIdDelete**](docs/TestRunsApi.md#apiv2testrunsiddelete) | **DELETE** /api/v2/testRuns/{id} | Delete test run | | *TestRunsApi* | [**apiV2TestRunsIdPurgePost**](docs/TestRunsApi.md#apiv2testrunsidpurgepost) | **POST** /api/v2/testRuns/{id}/purge | Permanently delete test run from archive | +| *TestRunsApi* | [**apiV2TestRunsIdRerunsPost**](docs/TestRunsApi.md#apiv2testrunsidrerunspost) | **POST** /api/v2/testRuns/{id}/reruns | Manual autotests rerun in test run | | *TestRunsApi* | [**apiV2TestRunsIdRestorePost**](docs/TestRunsApi.md#apiv2testrunsidrestorepost) | **POST** /api/v2/testRuns/{id}/restore | Restore test run from the archive | | *TestRunsApi* | [**apiV2TestRunsIdStatisticsFilterPost**](docs/TestRunsApi.md#apiv2testrunsidstatisticsfilterpost) | **POST** /api/v2/testRuns/{id}/statistics/filter | Search for the test run test results and build statistics | | *TestRunsApi* | [**apiV2TestRunsIdTestPointsResultsGet**](docs/TestRunsApi.md#apiv2testrunsidtestpointsresultsget) | **GET** /api/v2/testRuns/{id}/testPoints/results | Get test results from the test run grouped by test points | @@ -305,11 +310,14 @@ All URIs are relative to *http://localhost* | *TestSuitesApi* | [**getTestSuiteById**](docs/TestSuitesApi.md#gettestsuitebyid) | **GET** /api/v2/testSuites/{id} | Get TestSuite by Id | | *TestSuitesApi* | [**searchWorkItems**](docs/TestSuitesApi.md#searchworkitems) | **POST** /api/v2/testSuites/{id}/workItems/search | Search WorkItems | | *TestSuitesApi* | [**setConfigurationsByTestSuiteId**](docs/TestSuitesApi.md#setconfigurationsbytestsuiteid) | **POST** /api/v2/testSuites/{id}/configurations | Set Configurations By TestSuite Id | +| *UsersApi* | [**apiV2UsersExistsGet**](docs/UsersApi.md#apiv2usersexistsget) | **GET** /api/v2/users/exists | | +| *WebhooksApi* | [**apiV2WebhooksDelete**](docs/WebhooksApi.md#apiv2webhooksdelete) | **DELETE** /api/v2/webhooks | | | *WebhooksApi* | [**apiV2WebhooksGet**](docs/WebhooksApi.md#apiv2webhooksget) | **GET** /api/v2/webhooks | Get all webhooks | | *WebhooksApi* | [**apiV2WebhooksIdDelete**](docs/WebhooksApi.md#apiv2webhooksiddelete) | **DELETE** /api/v2/webhooks/{id} | Delete webhook by ID | | *WebhooksApi* | [**apiV2WebhooksIdGet**](docs/WebhooksApi.md#apiv2webhooksidget) | **GET** /api/v2/webhooks/{id} | Get webhook by ID | | *WebhooksApi* | [**apiV2WebhooksIdPut**](docs/WebhooksApi.md#apiv2webhooksidput) | **PUT** /api/v2/webhooks/{id} | Edit webhook by ID | | *WebhooksApi* | [**apiV2WebhooksPost**](docs/WebhooksApi.md#apiv2webhookspost) | **POST** /api/v2/webhooks | Create webhook | +| *WebhooksApi* | [**apiV2WebhooksPut**](docs/WebhooksApi.md#apiv2webhooksput) | **PUT** /api/v2/webhooks | | | *WebhooksApi* | [**apiV2WebhooksSearchPost**](docs/WebhooksApi.md#apiv2webhookssearchpost) | **POST** /api/v2/webhooks/search | Search for webhooks | | *WebhooksApi* | [**apiV2WebhooksSpecialVariablesGet**](docs/WebhooksApi.md#apiv2webhooksspecialvariablesget) | **GET** /api/v2/webhooks/specialVariables | Get special variables for webhook event type | | *WebhooksApi* | [**apiV2WebhooksTestPost**](docs/WebhooksApi.md#apiv2webhookstestpost) | **POST** /api/v2/webhooks/test | Test webhook's url | @@ -344,284 +352,342 @@ All URIs are relative to *http://localhost* | *WorkItemsCommentsApi* | [**apiV2WorkItemsCommentsCommentIdDelete**](docs/WorkItemsCommentsApi.md#apiv2workitemscommentscommentiddelete) | **DELETE** /api/v2/workItems/comments/{commentId} | Delete WorkItem comment | | *WorkItemsCommentsApi* | [**apiV2WorkItemsCommentsPost**](docs/WorkItemsCommentsApi.md#apiv2workitemscommentspost) | **POST** /api/v2/workItems/comments | Create WorkItem comment | | *WorkItemsCommentsApi* | [**apiV2WorkItemsCommentsPut**](docs/WorkItemsCommentsApi.md#apiv2workitemscommentsput) | **PUT** /api/v2/workItems/comments | Update work item comment | +| *WorkItemsCommentsApi* | [**apiV2WorkItemsIdCommentsCountGet**](docs/WorkItemsCommentsApi.md#apiv2workitemsidcommentscountget) | **GET** /api/v2/workItems/{id}/comments/count | Get work item comments count | | *WorkItemsCommentsApi* | [**apiV2WorkItemsIdCommentsGet**](docs/WorkItemsCommentsApi.md#apiv2workitemsidcommentsget) | **GET** /api/v2/workItems/{id}/comments | Get work item comments | ## Documentation for Models - - [ru.testit.kotlin.client.models.ActionUpdate](docs/ActionUpdate.md) - - [ru.testit.kotlin.client.models.ApiV2AttachmentsPostRequest](docs/ApiV2AttachmentsPostRequest.md) - - [ru.testit.kotlin.client.models.AttachmentChangeViewModel](docs/AttachmentChangeViewModel.md) - - [ru.testit.kotlin.client.models.AttachmentChangeViewModelArrayChangedFieldViewModel](docs/AttachmentChangeViewModelArrayChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.AttachmentModel](docs/AttachmentModel.md) - - [ru.testit.kotlin.client.models.AttachmentModelAutoTestStepResultsModel](docs/AttachmentModelAutoTestStepResultsModel.md) - - [ru.testit.kotlin.client.models.AttachmentPutModel](docs/AttachmentPutModel.md) - - [ru.testit.kotlin.client.models.AttachmentPutModelAutoTestStepResultsModel](docs/AttachmentPutModelAutoTestStepResultsModel.md) - - [ru.testit.kotlin.client.models.AutoTestAverageDurationModel](docs/AutoTestAverageDurationModel.md) - - [ru.testit.kotlin.client.models.AutoTestChangeViewModel](docs/AutoTestChangeViewModel.md) - - [ru.testit.kotlin.client.models.AutoTestChangeViewModelArrayChangedFieldViewModel](docs/AutoTestChangeViewModelArrayChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.AutoTestIdModel](docs/AutoTestIdModel.md) - - [ru.testit.kotlin.client.models.AutoTestModel](docs/AutoTestModel.md) - - [ru.testit.kotlin.client.models.AutoTestModelV2GetModel](docs/AutoTestModelV2GetModel.md) - - [ru.testit.kotlin.client.models.AutoTestNamespaceModel](docs/AutoTestNamespaceModel.md) - - [ru.testit.kotlin.client.models.AutoTestPostModel](docs/AutoTestPostModel.md) - - [ru.testit.kotlin.client.models.AutoTestPutModel](docs/AutoTestPutModel.md) - - [ru.testit.kotlin.client.models.AutoTestResultsForTestRunModel](docs/AutoTestResultsForTestRunModel.md) - - [ru.testit.kotlin.client.models.AutoTestShortModel](docs/AutoTestShortModel.md) - - [ru.testit.kotlin.client.models.AutoTestStepModel](docs/AutoTestStepModel.md) - - [ru.testit.kotlin.client.models.AutotestFilterModel](docs/AutotestFilterModel.md) - - [ru.testit.kotlin.client.models.AutotestHistoricalResultSelectModel](docs/AutotestHistoricalResultSelectModel.md) - - [ru.testit.kotlin.client.models.AutotestResultHistoricalGetModel](docs/AutotestResultHistoricalGetModel.md) - - [ru.testit.kotlin.client.models.AutotestResultOutcome](docs/AutotestResultOutcome.md) - - [ru.testit.kotlin.client.models.AutotestResultReasonSubGetModel](docs/AutotestResultReasonSubGetModel.md) - - [ru.testit.kotlin.client.models.AutotestSelectModel](docs/AutotestSelectModel.md) - - [ru.testit.kotlin.client.models.AutotestsExtractionModel](docs/AutotestsExtractionModel.md) - - [ru.testit.kotlin.client.models.AutotestsSelectModel](docs/AutotestsSelectModel.md) - - [ru.testit.kotlin.client.models.AvailableTestResultOutcome](docs/AvailableTestResultOutcome.md) - - [ru.testit.kotlin.client.models.BackgroundJobAttachmentModel](docs/BackgroundJobAttachmentModel.md) - - [ru.testit.kotlin.client.models.BackgroundJobFilterModel](docs/BackgroundJobFilterModel.md) - - [ru.testit.kotlin.client.models.BackgroundJobGetModel](docs/BackgroundJobGetModel.md) - - [ru.testit.kotlin.client.models.BackgroundJobState](docs/BackgroundJobState.md) - - [ru.testit.kotlin.client.models.BackgroundJobType](docs/BackgroundJobType.md) - - [ru.testit.kotlin.client.models.BooleanChangedFieldViewModel](docs/BooleanChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.BooleanNullableChangedFieldViewModel](docs/BooleanNullableChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.ConfigurationByParametersModel](docs/ConfigurationByParametersModel.md) - - [ru.testit.kotlin.client.models.ConfigurationExtractionModel](docs/ConfigurationExtractionModel.md) - - [ru.testit.kotlin.client.models.ConfigurationFilterModel](docs/ConfigurationFilterModel.md) - - [ru.testit.kotlin.client.models.ConfigurationModel](docs/ConfigurationModel.md) - - [ru.testit.kotlin.client.models.ConfigurationPostModel](docs/ConfigurationPostModel.md) - - [ru.testit.kotlin.client.models.ConfigurationPutModel](docs/ConfigurationPutModel.md) - - [ru.testit.kotlin.client.models.ConfigurationSelectModel](docs/ConfigurationSelectModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeChangeModel](docs/CustomAttributeChangeModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeGetModel](docs/CustomAttributeGetModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeModel](docs/CustomAttributeModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeOptionModel](docs/CustomAttributeOptionModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeOptionPostModel](docs/CustomAttributeOptionPostModel.md) - - [ru.testit.kotlin.client.models.CustomAttributePostModel](docs/CustomAttributePostModel.md) - - [ru.testit.kotlin.client.models.CustomAttributePutModel](docs/CustomAttributePutModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeSearchQueryModel](docs/CustomAttributeSearchQueryModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTemplateModel](docs/CustomAttributeTemplateModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTemplatePostModel](docs/CustomAttributeTemplatePostModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTemplatePutModel](docs/CustomAttributeTemplatePutModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTemplateSearchQueryModel](docs/CustomAttributeTemplateSearchQueryModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTestPlanProjectRelationPutModel](docs/CustomAttributeTestPlanProjectRelationPutModel.md) - - [ru.testit.kotlin.client.models.CustomAttributeTypesEnum](docs/CustomAttributeTypesEnum.md) - - [ru.testit.kotlin.client.models.DateTimeRangeSelectorModel](docs/DateTimeRangeSelectorModel.md) - - [ru.testit.kotlin.client.models.DeletionState](docs/DeletionState.md) - - [ru.testit.kotlin.client.models.ExternalLinkModel](docs/ExternalLinkModel.md) - - [ru.testit.kotlin.client.models.FailureCategoryModel](docs/FailureCategoryModel.md) - - [ru.testit.kotlin.client.models.FailureClassModel](docs/FailureClassModel.md) - - [ru.testit.kotlin.client.models.FailureClassRegexModel](docs/FailureClassRegexModel.md) - - [ru.testit.kotlin.client.models.FilterModel](docs/FilterModel.md) - - [ru.testit.kotlin.client.models.FlakyBulkModel](docs/FlakyBulkModel.md) - - [ru.testit.kotlin.client.models.GetXlsxTestPointsByTestPlanModel](docs/GetXlsxTestPointsByTestPlanModel.md) - - [ru.testit.kotlin.client.models.GlobalCustomAttributePostModel](docs/GlobalCustomAttributePostModel.md) - - [ru.testit.kotlin.client.models.GlobalCustomAttributeUpdateModel](docs/GlobalCustomAttributeUpdateModel.md) - - [ru.testit.kotlin.client.models.GlobalSearchItemResult](docs/GlobalSearchItemResult.md) - - [ru.testit.kotlin.client.models.GlobalSearchRequest](docs/GlobalSearchRequest.md) - - [ru.testit.kotlin.client.models.GlobalSearchResponse](docs/GlobalSearchResponse.md) - - [ru.testit.kotlin.client.models.GuidChangedFieldViewModel](docs/GuidChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.GuidExtractionModel](docs/GuidExtractionModel.md) - - [ru.testit.kotlin.client.models.ImageResizeType](docs/ImageResizeType.md) - - [ru.testit.kotlin.client.models.Int32ChangedFieldViewModel](docs/Int32ChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.Int32RangeSelectorModel](docs/Int32RangeSelectorModel.md) - - [ru.testit.kotlin.client.models.Int64ChangedFieldViewModel](docs/Int64ChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.Int64RangeSelectorModel](docs/Int64RangeSelectorModel.md) - - [ru.testit.kotlin.client.models.IterationModel](docs/IterationModel.md) - - [ru.testit.kotlin.client.models.IterationPutModel](docs/IterationPutModel.md) - - [ru.testit.kotlin.client.models.LabelPostModel](docs/LabelPostModel.md) - - [ru.testit.kotlin.client.models.LabelShortModel](docs/LabelShortModel.md) - - [ru.testit.kotlin.client.models.LastTestResultModel](docs/LastTestResultModel.md) - - [ru.testit.kotlin.client.models.LinkModel](docs/LinkModel.md) - - [ru.testit.kotlin.client.models.LinkPostModel](docs/LinkPostModel.md) - - [ru.testit.kotlin.client.models.LinkPutModel](docs/LinkPutModel.md) - - [ru.testit.kotlin.client.models.LinkShortModel](docs/LinkShortModel.md) - - [ru.testit.kotlin.client.models.LinkSubGetModel](docs/LinkSubGetModel.md) - - [ru.testit.kotlin.client.models.LinkType](docs/LinkType.md) - - [ru.testit.kotlin.client.models.NamedEntityModel](docs/NamedEntityModel.md) - - [ru.testit.kotlin.client.models.NotificationModel](docs/NotificationModel.md) - - [ru.testit.kotlin.client.models.NotificationQueryFilterModel](docs/NotificationQueryFilterModel.md) - - [ru.testit.kotlin.client.models.NotificationTypeModel](docs/NotificationTypeModel.md) - - [ru.testit.kotlin.client.models.Operation](docs/Operation.md) - - [ru.testit.kotlin.client.models.ParameterFilterModel](docs/ParameterFilterModel.md) - - [ru.testit.kotlin.client.models.ParameterGroupModel](docs/ParameterGroupModel.md) - - [ru.testit.kotlin.client.models.ParameterIterationModel](docs/ParameterIterationModel.md) - - [ru.testit.kotlin.client.models.ParameterModel](docs/ParameterModel.md) - - [ru.testit.kotlin.client.models.ParameterPostModel](docs/ParameterPostModel.md) - - [ru.testit.kotlin.client.models.ParameterPutModel](docs/ParameterPutModel.md) - - [ru.testit.kotlin.client.models.ParameterShortModel](docs/ParameterShortModel.md) - - [ru.testit.kotlin.client.models.PeriodViewModel](docs/PeriodViewModel.md) - - [ru.testit.kotlin.client.models.PeriodViewModelChangedFieldViewModel](docs/PeriodViewModelChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.ProblemDetails](docs/ProblemDetails.md) - - [ru.testit.kotlin.client.models.ProjectAttributesFilterModel](docs/ProjectAttributesFilterModel.md) - - [ru.testit.kotlin.client.models.ProjectCustomAttributeTemplateGetModel](docs/ProjectCustomAttributeTemplateGetModel.md) - - [ru.testit.kotlin.client.models.ProjectCustomAttributesTemplatesFilterModel](docs/ProjectCustomAttributesTemplatesFilterModel.md) - - [ru.testit.kotlin.client.models.ProjectExtractionModel](docs/ProjectExtractionModel.md) - - [ru.testit.kotlin.client.models.ProjectModel](docs/ProjectModel.md) - - [ru.testit.kotlin.client.models.ProjectPostModel](docs/ProjectPostModel.md) - - [ru.testit.kotlin.client.models.ProjectPutModel](docs/ProjectPutModel.md) - - [ru.testit.kotlin.client.models.ProjectSelectModel](docs/ProjectSelectModel.md) - - [ru.testit.kotlin.client.models.ProjectShortestModel](docs/ProjectShortestModel.md) - - [ru.testit.kotlin.client.models.ProjectTestPlansFilterModel](docs/ProjectTestPlansFilterModel.md) - - [ru.testit.kotlin.client.models.ProjectTypeModel](docs/ProjectTypeModel.md) - - [ru.testit.kotlin.client.models.ProjectsFilterModel](docs/ProjectsFilterModel.md) - - [ru.testit.kotlin.client.models.PublicTestPointModel](docs/PublicTestPointModel.md) - - [ru.testit.kotlin.client.models.PublicTestRunModel](docs/PublicTestRunModel.md) - - [ru.testit.kotlin.client.models.RequestTypeModel](docs/RequestTypeModel.md) - - [ru.testit.kotlin.client.models.SearchAutoTestsQueryIncludesModel](docs/SearchAutoTestsQueryIncludesModel.md) - - [ru.testit.kotlin.client.models.SearchCustomAttributeTemplateGetModel](docs/SearchCustomAttributeTemplateGetModel.md) - - [ru.testit.kotlin.client.models.SearchWebhooksQueryModel](docs/SearchWebhooksQueryModel.md) - - [ru.testit.kotlin.client.models.SectionModel](docs/SectionModel.md) - - [ru.testit.kotlin.client.models.SectionMoveModel](docs/SectionMoveModel.md) - - [ru.testit.kotlin.client.models.SectionPostModel](docs/SectionPostModel.md) - - [ru.testit.kotlin.client.models.SectionPutModel](docs/SectionPutModel.md) - - [ru.testit.kotlin.client.models.SectionRenameModel](docs/SectionRenameModel.md) - - [ru.testit.kotlin.client.models.SectionWithStepsModel](docs/SectionWithStepsModel.md) - - [ru.testit.kotlin.client.models.SharedStepChangeViewModel](docs/SharedStepChangeViewModel.md) - - [ru.testit.kotlin.client.models.SharedStepModel](docs/SharedStepModel.md) - - [ru.testit.kotlin.client.models.SharedStepReferenceModel](docs/SharedStepReferenceModel.md) - - [ru.testit.kotlin.client.models.SharedStepReferenceSectionModel](docs/SharedStepReferenceSectionModel.md) - - [ru.testit.kotlin.client.models.SharedStepReferenceSectionsQueryFilterModel](docs/SharedStepReferenceSectionsQueryFilterModel.md) - - [ru.testit.kotlin.client.models.SharedStepReferencesQueryFilterModel](docs/SharedStepReferencesQueryFilterModel.md) - - [ru.testit.kotlin.client.models.SharedStepResultModel](docs/SharedStepResultModel.md) - - [ru.testit.kotlin.client.models.ShortConfiguration](docs/ShortConfiguration.md) - - [ru.testit.kotlin.client.models.StepCommentModel](docs/StepCommentModel.md) - - [ru.testit.kotlin.client.models.StepModel](docs/StepModel.md) - - [ru.testit.kotlin.client.models.StepPostModel](docs/StepPostModel.md) - - [ru.testit.kotlin.client.models.StepPutModel](docs/StepPutModel.md) - - [ru.testit.kotlin.client.models.StepResultModel](docs/StepResultModel.md) - - [ru.testit.kotlin.client.models.StringArrayChangedFieldViewModel](docs/StringArrayChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.StringChangedFieldViewModel](docs/StringChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.StringChangedFieldWithDiffsViewModel](docs/StringChangedFieldWithDiffsViewModel.md) - - [ru.testit.kotlin.client.models.TagExtractionModel](docs/TagExtractionModel.md) - - [ru.testit.kotlin.client.models.TagModel](docs/TagModel.md) - - [ru.testit.kotlin.client.models.TagPostModel](docs/TagPostModel.md) - - [ru.testit.kotlin.client.models.TagPutModel](docs/TagPutModel.md) - - [ru.testit.kotlin.client.models.TagSelectModel](docs/TagSelectModel.md) - - [ru.testit.kotlin.client.models.TagShortModel](docs/TagShortModel.md) - - [ru.testit.kotlin.client.models.TagsFilterModel](docs/TagsFilterModel.md) - - [ru.testit.kotlin.client.models.TestPlanChangeModel](docs/TestPlanChangeModel.md) - - [ru.testit.kotlin.client.models.TestPlanChangedFieldsViewModel](docs/TestPlanChangedFieldsViewModel.md) - - [ru.testit.kotlin.client.models.TestPlanExtractionModel](docs/TestPlanExtractionModel.md) - - [ru.testit.kotlin.client.models.TestPlanGroupByStatus](docs/TestPlanGroupByStatus.md) - - [ru.testit.kotlin.client.models.TestPlanGroupByTestSuite](docs/TestPlanGroupByTestSuite.md) - - [ru.testit.kotlin.client.models.TestPlanGroupByTester](docs/TestPlanGroupByTester.md) - - [ru.testit.kotlin.client.models.TestPlanGroupByTesterAndStatus](docs/TestPlanGroupByTesterAndStatus.md) - - [ru.testit.kotlin.client.models.TestPlanLink](docs/TestPlanLink.md) - - [ru.testit.kotlin.client.models.TestPlanModel](docs/TestPlanModel.md) - - [ru.testit.kotlin.client.models.TestPlanPostModel](docs/TestPlanPostModel.md) - - [ru.testit.kotlin.client.models.TestPlanPutModel](docs/TestPlanPutModel.md) - - [ru.testit.kotlin.client.models.TestPlanSelectModel](docs/TestPlanSelectModel.md) - - [ru.testit.kotlin.client.models.TestPlanShortModel](docs/TestPlanShortModel.md) - - [ru.testit.kotlin.client.models.TestPlanStatusModel](docs/TestPlanStatusModel.md) - - [ru.testit.kotlin.client.models.TestPlanWithAnalyticModel](docs/TestPlanWithAnalyticModel.md) - - [ru.testit.kotlin.client.models.TestPlanWithTestSuiteTreeModel](docs/TestPlanWithTestSuiteTreeModel.md) - - [ru.testit.kotlin.client.models.TestPointAnalyticResult](docs/TestPointAnalyticResult.md) - - [ru.testit.kotlin.client.models.TestPointByTestSuiteModel](docs/TestPointByTestSuiteModel.md) - - [ru.testit.kotlin.client.models.TestPointChangeViewModel](docs/TestPointChangeViewModel.md) - - [ru.testit.kotlin.client.models.TestPointChangeViewModelChangedFieldViewModel](docs/TestPointChangeViewModelChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.TestPointFilterModel](docs/TestPointFilterModel.md) - - [ru.testit.kotlin.client.models.TestPointPutModel](docs/TestPointPutModel.md) - - [ru.testit.kotlin.client.models.TestPointResultModel](docs/TestPointResultModel.md) - - [ru.testit.kotlin.client.models.TestPointSelectModel](docs/TestPointSelectModel.md) - - [ru.testit.kotlin.client.models.TestPointSelector](docs/TestPointSelector.md) - - [ru.testit.kotlin.client.models.TestPointShortGetModel](docs/TestPointShortGetModel.md) - - [ru.testit.kotlin.client.models.TestPointShortModel](docs/TestPointShortModel.md) - - [ru.testit.kotlin.client.models.TestPointStatus](docs/TestPointStatus.md) - - [ru.testit.kotlin.client.models.TestPointWithLastResultModel](docs/TestPointWithLastResultModel.md) - - [ru.testit.kotlin.client.models.TestPointsExtractionModel](docs/TestPointsExtractionModel.md) - - [ru.testit.kotlin.client.models.TestResultChangeViewModel](docs/TestResultChangeViewModel.md) - - [ru.testit.kotlin.client.models.TestResultChangeViewModelChangedFieldViewModel](docs/TestResultChangeViewModelChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.TestResultChronologyModel](docs/TestResultChronologyModel.md) - - [ru.testit.kotlin.client.models.TestResultHistoryReportModel](docs/TestResultHistoryReportModel.md) - - [ru.testit.kotlin.client.models.TestResultModel](docs/TestResultModel.md) - - [ru.testit.kotlin.client.models.TestResultOutcome](docs/TestResultOutcome.md) - - [ru.testit.kotlin.client.models.TestResultShortGetModel](docs/TestResultShortGetModel.md) - - [ru.testit.kotlin.client.models.TestResultShortModel](docs/TestResultShortModel.md) - - [ru.testit.kotlin.client.models.TestResultStepCommentPutModel](docs/TestResultStepCommentPutModel.md) - - [ru.testit.kotlin.client.models.TestResultUpdateModel](docs/TestResultUpdateModel.md) - - [ru.testit.kotlin.client.models.TestResultV2GetModel](docs/TestResultV2GetModel.md) - - [ru.testit.kotlin.client.models.TestResultV2ShortModel](docs/TestResultV2ShortModel.md) - - [ru.testit.kotlin.client.models.TestResultsFilterModel](docs/TestResultsFilterModel.md) - - [ru.testit.kotlin.client.models.TestResultsLocalFilterModel](docs/TestResultsLocalFilterModel.md) - - [ru.testit.kotlin.client.models.TestResultsStatisticsGetModel](docs/TestResultsStatisticsGetModel.md) - - [ru.testit.kotlin.client.models.TestRunAnalyticResultModel](docs/TestRunAnalyticResultModel.md) - - [ru.testit.kotlin.client.models.TestRunExtractionModel](docs/TestRunExtractionModel.md) - - [ru.testit.kotlin.client.models.TestRunFillByAutoTestsPostModel](docs/TestRunFillByAutoTestsPostModel.md) - - [ru.testit.kotlin.client.models.TestRunFillByConfigurationsPostModel](docs/TestRunFillByConfigurationsPostModel.md) - - [ru.testit.kotlin.client.models.TestRunFillByWorkItemsPostModel](docs/TestRunFillByWorkItemsPostModel.md) - - [ru.testit.kotlin.client.models.TestRunFilterModel](docs/TestRunFilterModel.md) - - [ru.testit.kotlin.client.models.TestRunGroupByFailureClassModel](docs/TestRunGroupByFailureClassModel.md) - - [ru.testit.kotlin.client.models.TestRunGroupByStatusModel](docs/TestRunGroupByStatusModel.md) - - [ru.testit.kotlin.client.models.TestRunModel](docs/TestRunModel.md) - - [ru.testit.kotlin.client.models.TestRunSearchQueryModel](docs/TestRunSearchQueryModel.md) - - [ru.testit.kotlin.client.models.TestRunSelectModel](docs/TestRunSelectModel.md) - - [ru.testit.kotlin.client.models.TestRunShortGetModel](docs/TestRunShortGetModel.md) - - [ru.testit.kotlin.client.models.TestRunShortModel](docs/TestRunShortModel.md) - - [ru.testit.kotlin.client.models.TestRunState](docs/TestRunState.md) - - [ru.testit.kotlin.client.models.TestRunStatisticsErrorCategoriesGetModel](docs/TestRunStatisticsErrorCategoriesGetModel.md) - - [ru.testit.kotlin.client.models.TestRunStatisticsStatusesGetModel](docs/TestRunStatisticsStatusesGetModel.md) - - [ru.testit.kotlin.client.models.TestRunTestResultsPartialBulkSetModel](docs/TestRunTestResultsPartialBulkSetModel.md) - - [ru.testit.kotlin.client.models.TestRunTestResultsSelectModel](docs/TestRunTestResultsSelectModel.md) - - [ru.testit.kotlin.client.models.TestRunUpdateMultipleModel](docs/TestRunUpdateMultipleModel.md) - - [ru.testit.kotlin.client.models.TestRunV2GetModel](docs/TestRunV2GetModel.md) - - [ru.testit.kotlin.client.models.TestRunV2PostShortModel](docs/TestRunV2PostShortModel.md) - - [ru.testit.kotlin.client.models.TestRunV2PutModel](docs/TestRunV2PutModel.md) - - [ru.testit.kotlin.client.models.TestSuiteChangeViewModel](docs/TestSuiteChangeViewModel.md) - - [ru.testit.kotlin.client.models.TestSuiteChangeViewModelChangedFieldViewModel](docs/TestSuiteChangeViewModelChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.TestSuiteType](docs/TestSuiteType.md) - - [ru.testit.kotlin.client.models.TestSuiteV2GetModel](docs/TestSuiteV2GetModel.md) - - [ru.testit.kotlin.client.models.TestSuiteV2PostModel](docs/TestSuiteV2PostModel.md) - - [ru.testit.kotlin.client.models.TestSuiteV2PutModel](docs/TestSuiteV2PutModel.md) - - [ru.testit.kotlin.client.models.TestSuiteV2TreeModel](docs/TestSuiteV2TreeModel.md) - - [ru.testit.kotlin.client.models.TestSuiteWithChildrenModel](docs/TestSuiteWithChildrenModel.md) - - [ru.testit.kotlin.client.models.TestSuiteWorkItemsSearchModel](docs/TestSuiteWorkItemsSearchModel.md) - - [ru.testit.kotlin.client.models.UpdateAttachmentShortModel](docs/UpdateAttachmentShortModel.md) - - [ru.testit.kotlin.client.models.UpdateLinkShortModel](docs/UpdateLinkShortModel.md) - - [ru.testit.kotlin.client.models.UserRankModel](docs/UserRankModel.md) - - [ru.testit.kotlin.client.models.UserWithRankModel](docs/UserWithRankModel.md) - - [ru.testit.kotlin.client.models.ValidationProblemDetails](docs/ValidationProblemDetails.md) - - [ru.testit.kotlin.client.models.WebHookEventType](docs/WebHookEventType.md) - - [ru.testit.kotlin.client.models.WebHookEventTypeModel](docs/WebHookEventTypeModel.md) - - [ru.testit.kotlin.client.models.WebHookLogModel](docs/WebHookLogModel.md) - - [ru.testit.kotlin.client.models.WebHookModel](docs/WebHookModel.md) - - [ru.testit.kotlin.client.models.WebHookPostModel](docs/WebHookPostModel.md) - - [ru.testit.kotlin.client.models.WebHookTestModel](docs/WebHookTestModel.md) - - [ru.testit.kotlin.client.models.WebhookResponse](docs/WebhookResponse.md) - - [ru.testit.kotlin.client.models.WebhookVariablesType](docs/WebhookVariablesType.md) - - [ru.testit.kotlin.client.models.WorkItemChangeModel](docs/WorkItemChangeModel.md) - - [ru.testit.kotlin.client.models.WorkItemChangedAttributeViewModel](docs/WorkItemChangedAttributeViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemChangedFieldsViewModel](docs/WorkItemChangedFieldsViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemCommentModel](docs/WorkItemCommentModel.md) - - [ru.testit.kotlin.client.models.WorkItemCommentPostModel](docs/WorkItemCommentPostModel.md) - - [ru.testit.kotlin.client.models.WorkItemCommentPutModel](docs/WorkItemCommentPutModel.md) - - [ru.testit.kotlin.client.models.WorkItemEntityTypes](docs/WorkItemEntityTypes.md) - - [ru.testit.kotlin.client.models.WorkItemExtractionModel](docs/WorkItemExtractionModel.md) - - [ru.testit.kotlin.client.models.WorkItemFilterModel](docs/WorkItemFilterModel.md) - - [ru.testit.kotlin.client.models.WorkItemGroupGetModel](docs/WorkItemGroupGetModel.md) - - [ru.testit.kotlin.client.models.WorkItemGroupModel](docs/WorkItemGroupModel.md) - - [ru.testit.kotlin.client.models.WorkItemGroupType](docs/WorkItemGroupType.md) - - [ru.testit.kotlin.client.models.WorkItemIdModel](docs/WorkItemIdModel.md) - - [ru.testit.kotlin.client.models.WorkItemIdentifierModel](docs/WorkItemIdentifierModel.md) - - [ru.testit.kotlin.client.models.WorkItemLikeModel](docs/WorkItemLikeModel.md) - - [ru.testit.kotlin.client.models.WorkItemLinkChangeViewModel](docs/WorkItemLinkChangeViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemLinkChangeViewModelArrayChangedFieldViewModel](docs/WorkItemLinkChangeViewModelArrayChangedFieldViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemLocalFilterModel](docs/WorkItemLocalFilterModel.md) - - [ru.testit.kotlin.client.models.WorkItemLocalSelectModel](docs/WorkItemLocalSelectModel.md) - - [ru.testit.kotlin.client.models.WorkItemModel](docs/WorkItemModel.md) - - [ru.testit.kotlin.client.models.WorkItemMovePostModel](docs/WorkItemMovePostModel.md) - - [ru.testit.kotlin.client.models.WorkItemPostModel](docs/WorkItemPostModel.md) - - [ru.testit.kotlin.client.models.WorkItemPriorityModel](docs/WorkItemPriorityModel.md) - - [ru.testit.kotlin.client.models.WorkItemPutModel](docs/WorkItemPutModel.md) - - [ru.testit.kotlin.client.models.WorkItemSearchQueryModel](docs/WorkItemSearchQueryModel.md) - - [ru.testit.kotlin.client.models.WorkItemSelectModel](docs/WorkItemSelectModel.md) - - [ru.testit.kotlin.client.models.WorkItemShortModel](docs/WorkItemShortModel.md) - - [ru.testit.kotlin.client.models.WorkItemState](docs/WorkItemState.md) - - [ru.testit.kotlin.client.models.WorkItemStates](docs/WorkItemStates.md) - - [ru.testit.kotlin.client.models.WorkItemStepChangeViewModel](docs/WorkItemStepChangeViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemStepChangeViewModelArrayChangedFieldWithDiffsViewModel](docs/WorkItemStepChangeViewModelArrayChangedFieldWithDiffsViewModel.md) - - [ru.testit.kotlin.client.models.WorkItemVersionModel](docs/WorkItemVersionModel.md) +- [ru.testit.kotlin.client.models.ActionUpdate](docs/ActionUpdate.md) +- [ru.testit.kotlin.client.models.Attachment](docs/Attachment.md) +- [ru.testit.kotlin.client.models.AttachmentChangeViewModel](docs/AttachmentChangeViewModel.md) +- [ru.testit.kotlin.client.models.AttachmentChangeViewModelArrayChangedFieldViewModel](docs/AttachmentChangeViewModelArrayChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.AttachmentModel](docs/AttachmentModel.md) +- [ru.testit.kotlin.client.models.AttachmentModelAutoTestStepResultsModel](docs/AttachmentModelAutoTestStepResultsModel.md) +- [ru.testit.kotlin.client.models.AttachmentPutModel](docs/AttachmentPutModel.md) +- [ru.testit.kotlin.client.models.AttachmentPutModelAutoTestStepResultsModel](docs/AttachmentPutModelAutoTestStepResultsModel.md) +- [ru.testit.kotlin.client.models.AttachmentUpdateRequest](docs/AttachmentUpdateRequest.md) +- [ru.testit.kotlin.client.models.AutoTest](docs/AutoTest.md) +- [ru.testit.kotlin.client.models.AutoTestAverageDurationModel](docs/AutoTestAverageDurationModel.md) +- [ru.testit.kotlin.client.models.AutoTestChangeViewModel](docs/AutoTestChangeViewModel.md) +- [ru.testit.kotlin.client.models.AutoTestChangeViewModelArrayChangedFieldViewModel](docs/AutoTestChangeViewModelArrayChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.AutoTestClassCountApiModel](docs/AutoTestClassCountApiModel.md) +- [ru.testit.kotlin.client.models.AutoTestIdModel](docs/AutoTestIdModel.md) +- [ru.testit.kotlin.client.models.AutoTestModel](docs/AutoTestModel.md) +- [ru.testit.kotlin.client.models.AutoTestModelV2GetModel](docs/AutoTestModelV2GetModel.md) +- [ru.testit.kotlin.client.models.AutoTestNamespaceCountApiModel](docs/AutoTestNamespaceCountApiModel.md) +- [ru.testit.kotlin.client.models.AutoTestNamespaceModel](docs/AutoTestNamespaceModel.md) +- [ru.testit.kotlin.client.models.AutoTestNamespacesCountResponse](docs/AutoTestNamespacesCountResponse.md) +- [ru.testit.kotlin.client.models.AutoTestPostModel](docs/AutoTestPostModel.md) +- [ru.testit.kotlin.client.models.AutoTestProjectSettingsGetModel](docs/AutoTestProjectSettingsGetModel.md) +- [ru.testit.kotlin.client.models.AutoTestProjectSettingsPostModel](docs/AutoTestProjectSettingsPostModel.md) +- [ru.testit.kotlin.client.models.AutoTestPutModel](docs/AutoTestPutModel.md) +- [ru.testit.kotlin.client.models.AutoTestResultReasonShort](docs/AutoTestResultReasonShort.md) +- [ru.testit.kotlin.client.models.AutoTestResultsForTestRunModel](docs/AutoTestResultsForTestRunModel.md) +- [ru.testit.kotlin.client.models.AutoTestShortModel](docs/AutoTestShortModel.md) +- [ru.testit.kotlin.client.models.AutoTestStep](docs/AutoTestStep.md) +- [ru.testit.kotlin.client.models.AutoTestStepModel](docs/AutoTestStepModel.md) +- [ru.testit.kotlin.client.models.AutoTestStepResult](docs/AutoTestStepResult.md) +- [ru.testit.kotlin.client.models.AutoTestStepResultUpdateRequest](docs/AutoTestStepResultUpdateRequest.md) +- [ru.testit.kotlin.client.models.AutotestFilterModel](docs/AutotestFilterModel.md) +- [ru.testit.kotlin.client.models.AutotestHistoricalResultSelectModel](docs/AutotestHistoricalResultSelectModel.md) +- [ru.testit.kotlin.client.models.AutotestResultHistoricalGetModel](docs/AutotestResultHistoricalGetModel.md) +- [ru.testit.kotlin.client.models.AutotestResultOutcome](docs/AutotestResultOutcome.md) +- [ru.testit.kotlin.client.models.AutotestSelectModel](docs/AutotestSelectModel.md) +- [ru.testit.kotlin.client.models.AutotestsExtractionModel](docs/AutotestsExtractionModel.md) +- [ru.testit.kotlin.client.models.AutotestsSelectModel](docs/AutotestsSelectModel.md) +- [ru.testit.kotlin.client.models.AvailableTestResultOutcome](docs/AvailableTestResultOutcome.md) +- [ru.testit.kotlin.client.models.BackgroundJobAttachmentModel](docs/BackgroundJobAttachmentModel.md) +- [ru.testit.kotlin.client.models.BackgroundJobFilterModel](docs/BackgroundJobFilterModel.md) +- [ru.testit.kotlin.client.models.BackgroundJobGetModel](docs/BackgroundJobGetModel.md) +- [ru.testit.kotlin.client.models.BackgroundJobState](docs/BackgroundJobState.md) +- [ru.testit.kotlin.client.models.BackgroundJobType](docs/BackgroundJobType.md) +- [ru.testit.kotlin.client.models.BooleanChangedFieldViewModel](docs/BooleanChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.BooleanNullableChangedFieldViewModel](docs/BooleanNullableChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.ConfigurationByParametersModel](docs/ConfigurationByParametersModel.md) +- [ru.testit.kotlin.client.models.ConfigurationExtractionModel](docs/ConfigurationExtractionModel.md) +- [ru.testit.kotlin.client.models.ConfigurationFilterModel](docs/ConfigurationFilterModel.md) +- [ru.testit.kotlin.client.models.ConfigurationModel](docs/ConfigurationModel.md) +- [ru.testit.kotlin.client.models.ConfigurationPostModel](docs/ConfigurationPostModel.md) +- [ru.testit.kotlin.client.models.ConfigurationPutModel](docs/ConfigurationPutModel.md) +- [ru.testit.kotlin.client.models.ConfigurationSelectModel](docs/ConfigurationSelectModel.md) +- [ru.testit.kotlin.client.models.ConfigurationShort](docs/ConfigurationShort.md) +- [ru.testit.kotlin.client.models.ConfigurationShortModel](docs/ConfigurationShortModel.md) +- [ru.testit.kotlin.client.models.CreateDefectApiModel](docs/CreateDefectApiModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeChangeModel](docs/CustomAttributeChangeModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeGetModel](docs/CustomAttributeGetModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeModel](docs/CustomAttributeModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeOptionModel](docs/CustomAttributeOptionModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeOptionPostModel](docs/CustomAttributeOptionPostModel.md) +- [ru.testit.kotlin.client.models.CustomAttributePostModel](docs/CustomAttributePostModel.md) +- [ru.testit.kotlin.client.models.CustomAttributePutModel](docs/CustomAttributePutModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeSearchQueryModel](docs/CustomAttributeSearchQueryModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTemplateModel](docs/CustomAttributeTemplateModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTemplatePostModel](docs/CustomAttributeTemplatePostModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTemplatePutModel](docs/CustomAttributeTemplatePutModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTemplateSearchQueryModel](docs/CustomAttributeTemplateSearchQueryModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTemplateValidationResult](docs/CustomAttributeTemplateValidationResult.md) +- [ru.testit.kotlin.client.models.CustomAttributeTestPlanProjectRelationPutModel](docs/CustomAttributeTestPlanProjectRelationPutModel.md) +- [ru.testit.kotlin.client.models.CustomAttributeTypesEnum](docs/CustomAttributeTypesEnum.md) +- [ru.testit.kotlin.client.models.CustomAttributeValidationResult](docs/CustomAttributeValidationResult.md) +- [ru.testit.kotlin.client.models.DateTimeRangeSelectorModel](docs/DateTimeRangeSelectorModel.md) +- [ru.testit.kotlin.client.models.DefectApiModel](docs/DefectApiModel.md) +- [ru.testit.kotlin.client.models.DeletionState](docs/DeletionState.md) +- [ru.testit.kotlin.client.models.ExternalFormAllowedValueModel](docs/ExternalFormAllowedValueModel.md) +- [ru.testit.kotlin.client.models.ExternalFormCreateModel](docs/ExternalFormCreateModel.md) +- [ru.testit.kotlin.client.models.ExternalFormFieldModel](docs/ExternalFormFieldModel.md) +- [ru.testit.kotlin.client.models.ExternalFormLinkModel](docs/ExternalFormLinkModel.md) +- [ru.testit.kotlin.client.models.ExternalFormModel](docs/ExternalFormModel.md) +- [ru.testit.kotlin.client.models.ExternalLinkModel](docs/ExternalLinkModel.md) +- [ru.testit.kotlin.client.models.FailureCategoryModel](docs/FailureCategoryModel.md) +- [ru.testit.kotlin.client.models.FailureClassModel](docs/FailureClassModel.md) +- [ru.testit.kotlin.client.models.FailureClassRegexModel](docs/FailureClassRegexModel.md) +- [ru.testit.kotlin.client.models.FilterModel](docs/FilterModel.md) +- [ru.testit.kotlin.client.models.FlakyBulkModel](docs/FlakyBulkModel.md) +- [ru.testit.kotlin.client.models.GetExternalFormApiResult](docs/GetExternalFormApiResult.md) +- [ru.testit.kotlin.client.models.GetXlsxTestPointsByTestPlanModel](docs/GetXlsxTestPointsByTestPlanModel.md) +- [ru.testit.kotlin.client.models.GlobalCustomAttributePostModel](docs/GlobalCustomAttributePostModel.md) +- [ru.testit.kotlin.client.models.GlobalCustomAttributeUpdateModel](docs/GlobalCustomAttributeUpdateModel.md) +- [ru.testit.kotlin.client.models.GlobalSearchItemResult](docs/GlobalSearchItemResult.md) +- [ru.testit.kotlin.client.models.GlobalSearchRequest](docs/GlobalSearchRequest.md) +- [ru.testit.kotlin.client.models.GlobalSearchResponse](docs/GlobalSearchResponse.md) +- [ru.testit.kotlin.client.models.GuidChangedFieldViewModel](docs/GuidChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.GuidExtractionModel](docs/GuidExtractionModel.md) +- [ru.testit.kotlin.client.models.ImageResizeType](docs/ImageResizeType.md) +- [ru.testit.kotlin.client.models.Int32ChangedFieldViewModel](docs/Int32ChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.Int32RangeSelectorModel](docs/Int32RangeSelectorModel.md) +- [ru.testit.kotlin.client.models.Int64ChangedFieldViewModel](docs/Int64ChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.Int64RangeSelectorModel](docs/Int64RangeSelectorModel.md) +- [ru.testit.kotlin.client.models.IterationModel](docs/IterationModel.md) +- [ru.testit.kotlin.client.models.IterationPutModel](docs/IterationPutModel.md) +- [ru.testit.kotlin.client.models.Label](docs/Label.md) +- [ru.testit.kotlin.client.models.LabelPostModel](docs/LabelPostModel.md) +- [ru.testit.kotlin.client.models.LabelShortModel](docs/LabelShortModel.md) +- [ru.testit.kotlin.client.models.LastTestResultModel](docs/LastTestResultModel.md) +- [ru.testit.kotlin.client.models.Link](docs/Link.md) +- [ru.testit.kotlin.client.models.LinkModel](docs/LinkModel.md) +- [ru.testit.kotlin.client.models.LinkPostModel](docs/LinkPostModel.md) +- [ru.testit.kotlin.client.models.LinkPutModel](docs/LinkPutModel.md) +- [ru.testit.kotlin.client.models.LinkShort](docs/LinkShort.md) +- [ru.testit.kotlin.client.models.LinkShortModel](docs/LinkShortModel.md) +- [ru.testit.kotlin.client.models.LinkType](docs/LinkType.md) +- [ru.testit.kotlin.client.models.ManualRerunResultModel](docs/ManualRerunResultModel.md) +- [ru.testit.kotlin.client.models.ManualRerunSelectModel](docs/ManualRerunSelectModel.md) +- [ru.testit.kotlin.client.models.NamedEntityModel](docs/NamedEntityModel.md) +- [ru.testit.kotlin.client.models.NotificationModel](docs/NotificationModel.md) +- [ru.testit.kotlin.client.models.NotificationQueryFilterModel](docs/NotificationQueryFilterModel.md) +- [ru.testit.kotlin.client.models.NotificationTypeModel](docs/NotificationTypeModel.md) +- [ru.testit.kotlin.client.models.Operation](docs/Operation.md) +- [ru.testit.kotlin.client.models.ParameterFilterModel](docs/ParameterFilterModel.md) +- [ru.testit.kotlin.client.models.ParameterGroupModel](docs/ParameterGroupModel.md) +- [ru.testit.kotlin.client.models.ParameterIterationModel](docs/ParameterIterationModel.md) +- [ru.testit.kotlin.client.models.ParameterModel](docs/ParameterModel.md) +- [ru.testit.kotlin.client.models.ParameterPostModel](docs/ParameterPostModel.md) +- [ru.testit.kotlin.client.models.ParameterPutModel](docs/ParameterPutModel.md) +- [ru.testit.kotlin.client.models.ParameterShortModel](docs/ParameterShortModel.md) +- [ru.testit.kotlin.client.models.PeriodViewModel](docs/PeriodViewModel.md) +- [ru.testit.kotlin.client.models.PeriodViewModelChangedFieldViewModel](docs/PeriodViewModelChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.ProblemDetails](docs/ProblemDetails.md) +- [ru.testit.kotlin.client.models.ProjectAttributesFilterModel](docs/ProjectAttributesFilterModel.md) +- [ru.testit.kotlin.client.models.ProjectCustomAttributeTemplateGetModel](docs/ProjectCustomAttributeTemplateGetModel.md) +- [ru.testit.kotlin.client.models.ProjectCustomAttributesTemplatesFilterModel](docs/ProjectCustomAttributesTemplatesFilterModel.md) +- [ru.testit.kotlin.client.models.ProjectExtractionModel](docs/ProjectExtractionModel.md) +- [ru.testit.kotlin.client.models.ProjectModel](docs/ProjectModel.md) +- [ru.testit.kotlin.client.models.ProjectPostModel](docs/ProjectPostModel.md) +- [ru.testit.kotlin.client.models.ProjectPutModel](docs/ProjectPutModel.md) +- [ru.testit.kotlin.client.models.ProjectSelectModel](docs/ProjectSelectModel.md) +- [ru.testit.kotlin.client.models.ProjectShortModel](docs/ProjectShortModel.md) +- [ru.testit.kotlin.client.models.ProjectShortestModel](docs/ProjectShortestModel.md) +- [ru.testit.kotlin.client.models.ProjectTestPlansFilterModel](docs/ProjectTestPlansFilterModel.md) +- [ru.testit.kotlin.client.models.ProjectTypeModel](docs/ProjectTypeModel.md) +- [ru.testit.kotlin.client.models.ProjectsFilterModel](docs/ProjectsFilterModel.md) +- [ru.testit.kotlin.client.models.PublicTestPointModel](docs/PublicTestPointModel.md) +- [ru.testit.kotlin.client.models.PublicTestRunModel](docs/PublicTestRunModel.md) +- [ru.testit.kotlin.client.models.RequestTypeModel](docs/RequestTypeModel.md) +- [ru.testit.kotlin.client.models.RequestTypeRequest](docs/RequestTypeRequest.md) +- [ru.testit.kotlin.client.models.RerunTestResultModel](docs/RerunTestResultModel.md) +- [ru.testit.kotlin.client.models.RerunsModel](docs/RerunsModel.md) +- [ru.testit.kotlin.client.models.SearchAutoTestsQueryIncludesModel](docs/SearchAutoTestsQueryIncludesModel.md) +- [ru.testit.kotlin.client.models.SearchCustomAttributeTemplateGetModel](docs/SearchCustomAttributeTemplateGetModel.md) +- [ru.testit.kotlin.client.models.SearchWebhooksQueryModel](docs/SearchWebhooksQueryModel.md) +- [ru.testit.kotlin.client.models.SectionModel](docs/SectionModel.md) +- [ru.testit.kotlin.client.models.SectionMoveModel](docs/SectionMoveModel.md) +- [ru.testit.kotlin.client.models.SectionPostModel](docs/SectionPostModel.md) +- [ru.testit.kotlin.client.models.SectionPutModel](docs/SectionPutModel.md) +- [ru.testit.kotlin.client.models.SectionRenameModel](docs/SectionRenameModel.md) +- [ru.testit.kotlin.client.models.SectionWithStepsModel](docs/SectionWithStepsModel.md) +- [ru.testit.kotlin.client.models.SharedStepChangeViewModel](docs/SharedStepChangeViewModel.md) +- [ru.testit.kotlin.client.models.SharedStepModel](docs/SharedStepModel.md) +- [ru.testit.kotlin.client.models.SharedStepReferenceModel](docs/SharedStepReferenceModel.md) +- [ru.testit.kotlin.client.models.SharedStepReferenceSectionModel](docs/SharedStepReferenceSectionModel.md) +- [ru.testit.kotlin.client.models.SharedStepReferenceSectionsQueryFilterModel](docs/SharedStepReferenceSectionsQueryFilterModel.md) +- [ru.testit.kotlin.client.models.SharedStepReferencesQueryFilterModel](docs/SharedStepReferencesQueryFilterModel.md) +- [ru.testit.kotlin.client.models.SharedStepResult](docs/SharedStepResult.md) +- [ru.testit.kotlin.client.models.SharedStepResultModel](docs/SharedStepResultModel.md) +- [ru.testit.kotlin.client.models.ShortConfiguration](docs/ShortConfiguration.md) +- [ru.testit.kotlin.client.models.StepComment](docs/StepComment.md) +- [ru.testit.kotlin.client.models.StepCommentModel](docs/StepCommentModel.md) +- [ru.testit.kotlin.client.models.StepModel](docs/StepModel.md) +- [ru.testit.kotlin.client.models.StepPostModel](docs/StepPostModel.md) +- [ru.testit.kotlin.client.models.StepPutModel](docs/StepPutModel.md) +- [ru.testit.kotlin.client.models.StepResult](docs/StepResult.md) +- [ru.testit.kotlin.client.models.StepResultModel](docs/StepResultModel.md) +- [ru.testit.kotlin.client.models.StringArrayChangedFieldViewModel](docs/StringArrayChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.StringChangedFieldViewModel](docs/StringChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.StringChangedFieldWithDiffsViewModel](docs/StringChangedFieldWithDiffsViewModel.md) +- [ru.testit.kotlin.client.models.TagExtractionModel](docs/TagExtractionModel.md) +- [ru.testit.kotlin.client.models.TagModel](docs/TagModel.md) +- [ru.testit.kotlin.client.models.TagPostModel](docs/TagPostModel.md) +- [ru.testit.kotlin.client.models.TagPutModel](docs/TagPutModel.md) +- [ru.testit.kotlin.client.models.TagSelectModel](docs/TagSelectModel.md) +- [ru.testit.kotlin.client.models.TagShortModel](docs/TagShortModel.md) +- [ru.testit.kotlin.client.models.TagsFilterModel](docs/TagsFilterModel.md) +- [ru.testit.kotlin.client.models.TestPlanChangeModel](docs/TestPlanChangeModel.md) +- [ru.testit.kotlin.client.models.TestPlanChangedFieldsViewModel](docs/TestPlanChangedFieldsViewModel.md) +- [ru.testit.kotlin.client.models.TestPlanExtractionModel](docs/TestPlanExtractionModel.md) +- [ru.testit.kotlin.client.models.TestPlanGroupByStatus](docs/TestPlanGroupByStatus.md) +- [ru.testit.kotlin.client.models.TestPlanGroupByTestSuite](docs/TestPlanGroupByTestSuite.md) +- [ru.testit.kotlin.client.models.TestPlanGroupByTester](docs/TestPlanGroupByTester.md) +- [ru.testit.kotlin.client.models.TestPlanGroupByTesterAndStatus](docs/TestPlanGroupByTesterAndStatus.md) +- [ru.testit.kotlin.client.models.TestPlanLink](docs/TestPlanLink.md) +- [ru.testit.kotlin.client.models.TestPlanModel](docs/TestPlanModel.md) +- [ru.testit.kotlin.client.models.TestPlanPostModel](docs/TestPlanPostModel.md) +- [ru.testit.kotlin.client.models.TestPlanPutModel](docs/TestPlanPutModel.md) +- [ru.testit.kotlin.client.models.TestPlanSelectModel](docs/TestPlanSelectModel.md) +- [ru.testit.kotlin.client.models.TestPlanShortModel](docs/TestPlanShortModel.md) +- [ru.testit.kotlin.client.models.TestPlanStatusModel](docs/TestPlanStatusModel.md) +- [ru.testit.kotlin.client.models.TestPlanSummaryModel](docs/TestPlanSummaryModel.md) +- [ru.testit.kotlin.client.models.TestPlanWithAnalyticModel](docs/TestPlanWithAnalyticModel.md) +- [ru.testit.kotlin.client.models.TestPlanWithTestSuiteTreeModel](docs/TestPlanWithTestSuiteTreeModel.md) +- [ru.testit.kotlin.client.models.TestPoint](docs/TestPoint.md) +- [ru.testit.kotlin.client.models.TestPointAnalyticResult](docs/TestPointAnalyticResult.md) +- [ru.testit.kotlin.client.models.TestPointByTestSuiteModel](docs/TestPointByTestSuiteModel.md) +- [ru.testit.kotlin.client.models.TestPointChangeViewModel](docs/TestPointChangeViewModel.md) +- [ru.testit.kotlin.client.models.TestPointChangeViewModelChangedFieldViewModel](docs/TestPointChangeViewModelChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.TestPointFilterModel](docs/TestPointFilterModel.md) +- [ru.testit.kotlin.client.models.TestPointPutModel](docs/TestPointPutModel.md) +- [ru.testit.kotlin.client.models.TestPointResultModel](docs/TestPointResultModel.md) +- [ru.testit.kotlin.client.models.TestPointSelectModel](docs/TestPointSelectModel.md) +- [ru.testit.kotlin.client.models.TestPointSelector](docs/TestPointSelector.md) +- [ru.testit.kotlin.client.models.TestPointShortGetModel](docs/TestPointShortGetModel.md) +- [ru.testit.kotlin.client.models.TestPointShortModel](docs/TestPointShortModel.md) +- [ru.testit.kotlin.client.models.TestPointStatus](docs/TestPointStatus.md) +- [ru.testit.kotlin.client.models.TestPointWithLastResultModel](docs/TestPointWithLastResultModel.md) +- [ru.testit.kotlin.client.models.TestPointsExtractionModel](docs/TestPointsExtractionModel.md) +- [ru.testit.kotlin.client.models.TestResultChangeViewModel](docs/TestResultChangeViewModel.md) +- [ru.testit.kotlin.client.models.TestResultChangeViewModelChangedFieldViewModel](docs/TestResultChangeViewModelChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.TestResultChronologyModel](docs/TestResultChronologyModel.md) +- [ru.testit.kotlin.client.models.TestResultExtractionModel](docs/TestResultExtractionModel.md) +- [ru.testit.kotlin.client.models.TestResultHistoryResponse](docs/TestResultHistoryResponse.md) +- [ru.testit.kotlin.client.models.TestResultModel](docs/TestResultModel.md) +- [ru.testit.kotlin.client.models.TestResultOutcome](docs/TestResultOutcome.md) +- [ru.testit.kotlin.client.models.TestResultResponse](docs/TestResultResponse.md) +- [ru.testit.kotlin.client.models.TestResultShortModel](docs/TestResultShortModel.md) +- [ru.testit.kotlin.client.models.TestResultShortResponse](docs/TestResultShortResponse.md) +- [ru.testit.kotlin.client.models.TestResultStepCommentUpdateRequest](docs/TestResultStepCommentUpdateRequest.md) +- [ru.testit.kotlin.client.models.TestResultUpdateV2Request](docs/TestResultUpdateV2Request.md) +- [ru.testit.kotlin.client.models.TestResultV2GetModel](docs/TestResultV2GetModel.md) +- [ru.testit.kotlin.client.models.TestResultV2ShortModel](docs/TestResultV2ShortModel.md) +- [ru.testit.kotlin.client.models.TestResultsExtractionApiModel](docs/TestResultsExtractionApiModel.md) +- [ru.testit.kotlin.client.models.TestResultsFilterModel](docs/TestResultsFilterModel.md) +- [ru.testit.kotlin.client.models.TestResultsFilterRequest](docs/TestResultsFilterRequest.md) +- [ru.testit.kotlin.client.models.TestResultsLocalFilterModel](docs/TestResultsLocalFilterModel.md) +- [ru.testit.kotlin.client.models.TestResultsSelectApiModel](docs/TestResultsSelectApiModel.md) +- [ru.testit.kotlin.client.models.TestResultsStatisticsFailureCategories](docs/TestResultsStatisticsFailureCategories.md) +- [ru.testit.kotlin.client.models.TestResultsStatisticsGetModel](docs/TestResultsStatisticsGetModel.md) +- [ru.testit.kotlin.client.models.TestResultsStatisticsResponse](docs/TestResultsStatisticsResponse.md) +- [ru.testit.kotlin.client.models.TestResultsStatisticsStatuses](docs/TestResultsStatisticsStatuses.md) +- [ru.testit.kotlin.client.models.TestRunAnalyticResultModel](docs/TestRunAnalyticResultModel.md) +- [ru.testit.kotlin.client.models.TestRunExtractionModel](docs/TestRunExtractionModel.md) +- [ru.testit.kotlin.client.models.TestRunFillByAutoTestsPostModel](docs/TestRunFillByAutoTestsPostModel.md) +- [ru.testit.kotlin.client.models.TestRunFillByConfigurationsPostModel](docs/TestRunFillByConfigurationsPostModel.md) +- [ru.testit.kotlin.client.models.TestRunFillByWorkItemsPostModel](docs/TestRunFillByWorkItemsPostModel.md) +- [ru.testit.kotlin.client.models.TestRunFilterModel](docs/TestRunFilterModel.md) +- [ru.testit.kotlin.client.models.TestRunGroupByFailureClassModel](docs/TestRunGroupByFailureClassModel.md) +- [ru.testit.kotlin.client.models.TestRunGroupByStatusModel](docs/TestRunGroupByStatusModel.md) +- [ru.testit.kotlin.client.models.TestRunModel](docs/TestRunModel.md) +- [ru.testit.kotlin.client.models.TestRunSearchQueryModel](docs/TestRunSearchQueryModel.md) +- [ru.testit.kotlin.client.models.TestRunSelectModel](docs/TestRunSelectModel.md) +- [ru.testit.kotlin.client.models.TestRunShortGetModel](docs/TestRunShortGetModel.md) +- [ru.testit.kotlin.client.models.TestRunShortModel](docs/TestRunShortModel.md) +- [ru.testit.kotlin.client.models.TestRunState](docs/TestRunState.md) +- [ru.testit.kotlin.client.models.TestRunStatisticsErrorCategoriesGetModel](docs/TestRunStatisticsErrorCategoriesGetModel.md) +- [ru.testit.kotlin.client.models.TestRunStatisticsStatusesGetModel](docs/TestRunStatisticsStatusesGetModel.md) +- [ru.testit.kotlin.client.models.TestRunTestResultsPartialBulkSetModel](docs/TestRunTestResultsPartialBulkSetModel.md) +- [ru.testit.kotlin.client.models.TestRunTestResultsSelectModel](docs/TestRunTestResultsSelectModel.md) +- [ru.testit.kotlin.client.models.TestRunUpdateMultipleModel](docs/TestRunUpdateMultipleModel.md) +- [ru.testit.kotlin.client.models.TestRunV2GetModel](docs/TestRunV2GetModel.md) +- [ru.testit.kotlin.client.models.TestRunV2PostShortModel](docs/TestRunV2PostShortModel.md) +- [ru.testit.kotlin.client.models.TestRunV2PutModel](docs/TestRunV2PutModel.md) +- [ru.testit.kotlin.client.models.TestStatus](docs/TestStatus.md) +- [ru.testit.kotlin.client.models.TestStatusCreateModel](docs/TestStatusCreateModel.md) +- [ru.testit.kotlin.client.models.TestStatusModel](docs/TestStatusModel.md) +- [ru.testit.kotlin.client.models.TestStatusType](docs/TestStatusType.md) +- [ru.testit.kotlin.client.models.TestStatusUpdateModel](docs/TestStatusUpdateModel.md) +- [ru.testit.kotlin.client.models.TestSuiteChangeViewModel](docs/TestSuiteChangeViewModel.md) +- [ru.testit.kotlin.client.models.TestSuiteChangeViewModelChangedFieldViewModel](docs/TestSuiteChangeViewModelChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.TestSuiteType](docs/TestSuiteType.md) +- [ru.testit.kotlin.client.models.TestSuiteV2GetModel](docs/TestSuiteV2GetModel.md) +- [ru.testit.kotlin.client.models.TestSuiteV2PostModel](docs/TestSuiteV2PostModel.md) +- [ru.testit.kotlin.client.models.TestSuiteV2PutModel](docs/TestSuiteV2PutModel.md) +- [ru.testit.kotlin.client.models.TestSuiteV2TreeModel](docs/TestSuiteV2TreeModel.md) +- [ru.testit.kotlin.client.models.TestSuiteWithChildrenModel](docs/TestSuiteWithChildrenModel.md) +- [ru.testit.kotlin.client.models.TestSuiteWorkItemsSearchModel](docs/TestSuiteWorkItemsSearchModel.md) +- [ru.testit.kotlin.client.models.UpdateAttachmentShortModel](docs/UpdateAttachmentShortModel.md) +- [ru.testit.kotlin.client.models.UpdateLinkShortModel](docs/UpdateLinkShortModel.md) +- [ru.testit.kotlin.client.models.UserCustomNameValidationResponse](docs/UserCustomNameValidationResponse.md) +- [ru.testit.kotlin.client.models.UserRankModel](docs/UserRankModel.md) +- [ru.testit.kotlin.client.models.UserWithRankModel](docs/UserWithRankModel.md) +- [ru.testit.kotlin.client.models.ValidationProblemDetails](docs/ValidationProblemDetails.md) +- [ru.testit.kotlin.client.models.WebHookEventType](docs/WebHookEventType.md) +- [ru.testit.kotlin.client.models.WebHookEventTypeModel](docs/WebHookEventTypeModel.md) +- [ru.testit.kotlin.client.models.WebHookEventTypeRequest](docs/WebHookEventTypeRequest.md) +- [ru.testit.kotlin.client.models.WebHookLogModel](docs/WebHookLogModel.md) +- [ru.testit.kotlin.client.models.WebHookModel](docs/WebHookModel.md) +- [ru.testit.kotlin.client.models.WebHookPostModel](docs/WebHookPostModel.md) +- [ru.testit.kotlin.client.models.WebHookTestModel](docs/WebHookTestModel.md) +- [ru.testit.kotlin.client.models.WebhookBulkUpdateApiModel](docs/WebhookBulkUpdateApiModel.md) +- [ru.testit.kotlin.client.models.WebhookResponse](docs/WebhookResponse.md) +- [ru.testit.kotlin.client.models.WebhookVariablesType](docs/WebhookVariablesType.md) +- [ru.testit.kotlin.client.models.WebhooksDeleteFilterRequest](docs/WebhooksDeleteFilterRequest.md) +- [ru.testit.kotlin.client.models.WebhooksDeleteRequest](docs/WebhooksDeleteRequest.md) +- [ru.testit.kotlin.client.models.WebhooksExtractionRequest](docs/WebhooksExtractionRequest.md) +- [ru.testit.kotlin.client.models.WebhooksFilterRequest](docs/WebhooksFilterRequest.md) +- [ru.testit.kotlin.client.models.WebhooksUpdateRequest](docs/WebhooksUpdateRequest.md) +- [ru.testit.kotlin.client.models.WebhooksUpdateResponse](docs/WebhooksUpdateResponse.md) +- [ru.testit.kotlin.client.models.WorkItemChangeModel](docs/WorkItemChangeModel.md) +- [ru.testit.kotlin.client.models.WorkItemChangedAttributeViewModel](docs/WorkItemChangedAttributeViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemChangedFieldsViewModel](docs/WorkItemChangedFieldsViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemCommentModel](docs/WorkItemCommentModel.md) +- [ru.testit.kotlin.client.models.WorkItemCommentPostModel](docs/WorkItemCommentPostModel.md) +- [ru.testit.kotlin.client.models.WorkItemCommentPutModel](docs/WorkItemCommentPutModel.md) +- [ru.testit.kotlin.client.models.WorkItemEntityTypes](docs/WorkItemEntityTypes.md) +- [ru.testit.kotlin.client.models.WorkItemExtractionModel](docs/WorkItemExtractionModel.md) +- [ru.testit.kotlin.client.models.WorkItemFilterModel](docs/WorkItemFilterModel.md) +- [ru.testit.kotlin.client.models.WorkItemGroupGetModel](docs/WorkItemGroupGetModel.md) +- [ru.testit.kotlin.client.models.WorkItemGroupModel](docs/WorkItemGroupModel.md) +- [ru.testit.kotlin.client.models.WorkItemGroupType](docs/WorkItemGroupType.md) +- [ru.testit.kotlin.client.models.WorkItemIdModel](docs/WorkItemIdModel.md) +- [ru.testit.kotlin.client.models.WorkItemIdentifierModel](docs/WorkItemIdentifierModel.md) +- [ru.testit.kotlin.client.models.WorkItemLikeModel](docs/WorkItemLikeModel.md) +- [ru.testit.kotlin.client.models.WorkItemLinkChangeViewModel](docs/WorkItemLinkChangeViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemLinkChangeViewModelArrayChangedFieldViewModel](docs/WorkItemLinkChangeViewModelArrayChangedFieldViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemLocalFilterModel](docs/WorkItemLocalFilterModel.md) +- [ru.testit.kotlin.client.models.WorkItemLocalSelectModel](docs/WorkItemLocalSelectModel.md) +- [ru.testit.kotlin.client.models.WorkItemModel](docs/WorkItemModel.md) +- [ru.testit.kotlin.client.models.WorkItemMovePostModel](docs/WorkItemMovePostModel.md) +- [ru.testit.kotlin.client.models.WorkItemPostModel](docs/WorkItemPostModel.md) +- [ru.testit.kotlin.client.models.WorkItemPriorityModel](docs/WorkItemPriorityModel.md) +- [ru.testit.kotlin.client.models.WorkItemPutModel](docs/WorkItemPutModel.md) +- [ru.testit.kotlin.client.models.WorkItemSearchQueryModel](docs/WorkItemSearchQueryModel.md) +- [ru.testit.kotlin.client.models.WorkItemSelectModel](docs/WorkItemSelectModel.md) +- [ru.testit.kotlin.client.models.WorkItemShortModel](docs/WorkItemShortModel.md) +- [ru.testit.kotlin.client.models.WorkItemState](docs/WorkItemState.md) +- [ru.testit.kotlin.client.models.WorkItemStates](docs/WorkItemStates.md) +- [ru.testit.kotlin.client.models.WorkItemStepChangeViewModel](docs/WorkItemStepChangeViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemStepChangeViewModelArrayChangedFieldWithDiffsViewModel](docs/WorkItemStepChangeViewModelArrayChangedFieldWithDiffsViewModel.md) +- [ru.testit.kotlin.client.models.WorkItemVersionModel](docs/WorkItemVersionModel.md) diff --git a/docs/Attachment.md b/docs/Attachment.md new file mode 100644 index 0000000..974bd38 --- /dev/null +++ b/docs/Attachment.md @@ -0,0 +1,18 @@ + +# Attachment + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the attachment | | +| **fileId** | **kotlin.String** | Unique ID of the attachment file | | +| **type** | **kotlin.String** | MIME type of the attachment | | +| **propertySize** | **kotlin.Float** | Size in bytes of the attachment file | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Creation date of the attachment | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the attachment creator | | +| **name** | **kotlin.String** | Name of the attachment file | | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Last modification date of the attachment | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the attachment last editor | [optional] | + + + diff --git a/docs/AttachmentUpdateRequest.md b/docs/AttachmentUpdateRequest.md new file mode 100644 index 0000000..5a6d9e1 --- /dev/null +++ b/docs/AttachmentUpdateRequest.md @@ -0,0 +1,10 @@ + +# AttachmentUpdateRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the attachment | | + + + diff --git a/docs/AttachmentsApi.md b/docs/AttachmentsApi.md index 64382cc..f370cf1 100644 --- a/docs/AttachmentsApi.md +++ b/docs/AttachmentsApi.md @@ -6,6 +6,7 @@ All URIs are relative to *http://localhost* | ------------- | ------------- | ------------- | | [**apiV2AttachmentsIdDelete**](AttachmentsApi.md#apiV2AttachmentsIdDelete) | **DELETE** /api/v2/attachments/{id} | Delete attachment file | | [**apiV2AttachmentsIdGet**](AttachmentsApi.md#apiV2AttachmentsIdGet) | **GET** /api/v2/attachments/{id} | Download attachment file | +| [**apiV2AttachmentsIdMetadataGet**](AttachmentsApi.md#apiV2AttachmentsIdMetadataGet) | **GET** /api/v2/attachments/{id}/metadata | Get attachment metadata | | [**apiV2AttachmentsOccupiedFileStorageSizeGet**](AttachmentsApi.md#apiV2AttachmentsOccupiedFileStorageSizeGet) | **GET** /api/v2/attachments/occupiedFileStorageSize | Get size of attachments storage in bytes | | [**apiV2AttachmentsPost**](AttachmentsApi.md#apiV2AttachmentsPost) | **POST** /api/v2/attachments | Upload new attachment file | @@ -103,6 +104,53 @@ null (empty response body) ### Authorization +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +# **apiV2AttachmentsIdMetadataGet** +> AttachmentModel apiV2AttachmentsIdMetadataGet(id) + +Get attachment metadata + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = AttachmentsApi() +val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | +try { + val result : AttachmentModel = apiInstance.apiV2AttachmentsIdMetadataGet(id) + println(result) +} catch (e: ClientException) { + println("4xx response calling AttachmentsApi#apiV2AttachmentsIdMetadataGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling AttachmentsApi#apiV2AttachmentsIdMetadataGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **id** | **java.util.UUID**| | | + +### Return type + +[**AttachmentModel**](AttachmentModel.md) + +### Authorization + + Configure Bearer or PrivateToken: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = "" diff --git a/docs/AutoTest.md b/docs/AutoTest.md new file mode 100644 index 0000000..6993728 --- /dev/null +++ b/docs/AutoTest.md @@ -0,0 +1,37 @@ + +# AutoTest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **externalId** | **kotlin.String** | External ID of the autotest | | +| **projectId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest project | | +| **name** | **kotlin.String** | Name of the autotest | | +| **globalId** | **kotlin.Long** | Global ID of the autotest | | +| **isDeleted** | **kotlin.Boolean** | Indicates if the autotest is deleted | | +| **mustBeApproved** | **kotlin.Boolean** | Indicates if the autotest has unapproved changes from linked work items | | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Creation date of the autotest | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project creator | | +| **links** | [**kotlin.collections.List<Link>**](Link.md) | Collection of the autotest links | [optional] | +| **namespace** | **kotlin.String** | Name of the autotest namespace | [optional] | +| **classname** | **kotlin.String** | Name of the autotest class | [optional] | +| **steps** | [**kotlin.collections.List<AutoTestStep>**](AutoTestStep.md) | Collection of the autotest steps | [optional] | +| **setup** | [**kotlin.collections.List<AutoTestStep>**](AutoTestStep.md) | Collection of the autotest setup steps | [optional] | +| **teardown** | [**kotlin.collections.List<AutoTestStep>**](AutoTestStep.md) | Collection of the autotest teardown steps | [optional] | +| **title** | **kotlin.String** | Name of the autotest in autotest's card | [optional] | +| **description** | **kotlin.String** | Description of the autotest in autotest's card | [optional] | +| **labels** | [**kotlin.collections.List<Label>**](Label.md) | Collection of the autotest labels | [optional] | +| **isFlaky** | **kotlin.Boolean** | Indicates if the autotest is marked as flaky | [optional] | +| **externalKey** | **kotlin.String** | External key of the autotest | [optional] | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Last modification date of the project | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project last editor | [optional] | +| **lastTestRunId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest last test run | [optional] | +| **lastTestRunName** | **kotlin.String** | Name of the autotest last test run | [optional] | +| **lastTestResultId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest last test result | [optional] | +| **lastTestResultConfiguration** | [**ConfigurationShort**](ConfigurationShort.md) | Configuration of the autotest last test result | [optional] | +| **lastTestResultOutcome** | **kotlin.String** | Outcome of the autotest last test result | [optional] | +| **stabilityPercentage** | **kotlin.Int** | Stability percentage of the autotest | [optional] | + + + diff --git a/docs/AutoTestClassCountApiModel.md b/docs/AutoTestClassCountApiModel.md new file mode 100644 index 0000000..0297ccc --- /dev/null +++ b/docs/AutoTestClassCountApiModel.md @@ -0,0 +1,11 @@ + +# AutoTestClassCountApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **count** | **kotlin.Long** | | | +| **name** | **kotlin.String** | | [optional] | + + + diff --git a/docs/AutoTestModel.md b/docs/AutoTestModel.md index 5f021b6..dcffcb0 100644 --- a/docs/AutoTestModel.md +++ b/docs/AutoTestModel.md @@ -18,6 +18,7 @@ | **lastTestRunId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest last test run | [optional] | | **lastTestRunName** | **kotlin.String** | Name of the autotest last test run | [optional] | | **lastTestResultId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the autotest last test result | [optional] | +| **lastTestResultConfiguration** | [**ConfigurationShortModel**](ConfigurationShortModel.md) | Configuration of the autotest last test result | [optional] | | **lastTestResultOutcome** | **kotlin.String** | Outcome of the autotest last test result | [optional] | | **stabilityPercentage** | **kotlin.Int** | Stability percentage of the autotest | [optional] | | **links** | [**kotlin.collections.List<LinkPutModel>**](LinkPutModel.md) | Collection of the autotest links | [optional] | diff --git a/docs/AutoTestNamespaceCountApiModel.md b/docs/AutoTestNamespaceCountApiModel.md new file mode 100644 index 0000000..224a86f --- /dev/null +++ b/docs/AutoTestNamespaceCountApiModel.md @@ -0,0 +1,12 @@ + +# AutoTestNamespaceCountApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **count** | **kotlin.Long** | | | +| **classes** | [**kotlin.collections.List<AutoTestClassCountApiModel>**](AutoTestClassCountApiModel.md) | | | +| **name** | **kotlin.String** | | [optional] | + + + diff --git a/docs/AutoTestNamespacesCountResponse.md b/docs/AutoTestNamespacesCountResponse.md new file mode 100644 index 0000000..df30e1b --- /dev/null +++ b/docs/AutoTestNamespacesCountResponse.md @@ -0,0 +1,10 @@ + +# AutoTestNamespacesCountResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **namespaces** | [**kotlin.collections.List<AutoTestNamespaceCountApiModel>**](AutoTestNamespaceCountApiModel.md) | | | + + + diff --git a/docs/AutoTestProjectSettingsGetModel.md b/docs/AutoTestProjectSettingsGetModel.md new file mode 100644 index 0000000..db2ea20 --- /dev/null +++ b/docs/AutoTestProjectSettingsGetModel.md @@ -0,0 +1,15 @@ + +# AutoTestProjectSettingsGetModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **projectId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project. | | +| **rerunEnabled** | **kotlin.Boolean** | Auto rerun enabled | | +| **rerunAttemptsCount** | **kotlin.Int** | Auto rerun attempt count | | +| **isFlakyAuto** | **kotlin.Boolean** | Indicates if the status \"Flaky/Stable\" sets automatically | [optional] | +| **flakyStabilityPercentage** | **kotlin.Int** | Stability percentage for autotest flaky computing | [optional] | +| **flakyTestRunCount** | **kotlin.Int** | Last test run count for autotest flaky computing | [optional] | + + + diff --git a/docs/AutoTestProjectSettingsPostModel.md b/docs/AutoTestProjectSettingsPostModel.md new file mode 100644 index 0000000..d80dcf2 --- /dev/null +++ b/docs/AutoTestProjectSettingsPostModel.md @@ -0,0 +1,14 @@ + +# AutoTestProjectSettingsPostModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **rerunEnabled** | **kotlin.Boolean** | Auto rerun enabled | | +| **rerunAttemptsCount** | **kotlin.Int** | Auto rerun attempt count | | +| **isFlakyAuto** | **kotlin.Boolean** | Indicates if the status \"Flaky/Stable\" sets automatically | [optional] | +| **flakyStabilityPercentage** | **kotlin.Int** | Stability percentage for autotest flaky computing | [optional] | +| **flakyTestRunCount** | **kotlin.Int** | Last test run count for autotest flaky computing | [optional] | + + + diff --git a/docs/AutotestResultReasonSubGetModel.md b/docs/AutoTestResultReasonShort.md similarity index 87% rename from docs/AutotestResultReasonSubGetModel.md rename to docs/AutoTestResultReasonShort.md index 00a0710..73043dd 100644 --- a/docs/AutotestResultReasonSubGetModel.md +++ b/docs/AutoTestResultReasonShort.md @@ -1,5 +1,5 @@ -# AutotestResultReasonSubGetModel +# AutoTestResultReasonShort ## Properties | Name | Type | Description | Notes | diff --git a/docs/AutoTestStep.md b/docs/AutoTestStep.md new file mode 100644 index 0000000..5964aa9 --- /dev/null +++ b/docs/AutoTestStep.md @@ -0,0 +1,12 @@ + +# AutoTestStep + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **title** | **kotlin.String** | Step name. | | +| **description** | **kotlin.String** | Detailed step description. It appears when the step is unfolded. | [optional] | +| **steps** | [**kotlin.collections.List<AutoTestStep>**](AutoTestStep.md) | Includes a nested step inside another step. The maximum nesting level is 15. | [optional] | + + + diff --git a/docs/AutoTestStepResult.md b/docs/AutoTestStepResult.md new file mode 100644 index 0000000..c5d6150 --- /dev/null +++ b/docs/AutoTestStepResult.md @@ -0,0 +1,19 @@ + +# AutoTestStepResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **title** | **kotlin.String** | The name of the step. | [optional] | +| **description** | **kotlin.String** | Description of the step result. | [optional] | +| **info** | **kotlin.String** | Extended description of the step result. | [optional] | +| **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Step start date. | [optional] | +| **completedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Step end date. | [optional] | +| **duration** | **kotlin.Long** | Expected or actual duration of the test run execution in milliseconds. | [optional] | +| **outcome** | [**AvailableTestResultOutcome**](AvailableTestResultOutcome.md) | Specifies the result of the autotest execution. | [optional] | +| **stepResults** | [**kotlin.collections.List<AutoTestStepResult>**](AutoTestStepResult.md) | Nested step results. The maximum nesting level is 15. | [optional] | +| **attachments** | [**kotlin.collections.List<Attachment>**](Attachment.md) | /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary> | [optional] | +| **parameters** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | \"<b>parameter</b>\": \"<b>value</b>\" pair with arbitrary custom parameters. Multiple parameters can be sent. | [optional] | + + + diff --git a/docs/AutoTestStepResultUpdateRequest.md b/docs/AutoTestStepResultUpdateRequest.md new file mode 100644 index 0000000..8829694 --- /dev/null +++ b/docs/AutoTestStepResultUpdateRequest.md @@ -0,0 +1,19 @@ + +# AutoTestStepResultUpdateRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **title** | **kotlin.String** | The name of the step. | [optional] | +| **description** | **kotlin.String** | Description of the step result. | [optional] | +| **info** | **kotlin.String** | Extended description of the step result. | [optional] | +| **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Step start date. | [optional] | +| **completedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Step end date. | [optional] | +| **duration** | **kotlin.Long** | Expected or actual duration of the test run execution in milliseconds. | [optional] | +| **outcome** | [**AvailableTestResultOutcome**](AvailableTestResultOutcome.md) | Specifies the result of the autotest execution. | [optional] | +| **stepResults** | [**kotlin.collections.List<AttachmentPutModelAutoTestStepResultsModel>**](AttachmentPutModelAutoTestStepResultsModel.md) | Nested step results. The maximum nesting level is 15. | [optional] | +| **attachments** | [**kotlin.collections.List<AttachmentUpdateRequest>**](AttachmentUpdateRequest.md) | /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary> | [optional] | +| **parameters** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | \"<b>parameter</b>\": \"<b>value</b>\" pair with arbitrary custom parameters. Multiple parameters can be sent. | [optional] | + + + diff --git a/docs/AutoTestsApi.md b/docs/AutoTestsApi.md index 6ff2d44..0fc27c4 100644 --- a/docs/AutoTestsApi.md +++ b/docs/AutoTestsApi.md @@ -19,7 +19,6 @@ All URIs are relative to *http://localhost* | [**getAutoTestById**](AutoTestsApi.md#getAutoTestById) | **GET** /api/v2/autoTests/{id} | Get autotest by internal or global ID | | [**getAutoTestChronology**](AutoTestsApi.md#getAutoTestChronology) | **GET** /api/v2/autoTests/{id}/chronology | Get autotest chronology | | [**getTestRuns**](AutoTestsApi.md#getTestRuns) | **GET** /api/v2/autoTests/{id}/testRuns | Get completed tests runs for autotests | -| [**getWorkItemResults**](AutoTestsApi.md#getWorkItemResults) | **GET** /api/v2/autoTests/{id}/testResultHistory | | | [**getWorkItemsLinkedToAutoTest**](AutoTestsApi.md#getWorkItemsLinkedToAutoTest) | **GET** /api/v2/autoTests/{id}/workItems | Get work items linked to autotest | | [**linkAutoTestToWorkItem**](AutoTestsApi.md#linkAutoTestToWorkItem) | **POST** /api/v2/autoTests/{id}/workItems | Link autotest with work items | | [**updateAutoTest**](AutoTestsApi.md#updateAutoTest) | **PUT** /api/v2/autoTests | Update autotest | @@ -831,81 +830,6 @@ try { ### Authorization -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -# **getWorkItemResults** -> kotlin.collections.List<TestResultHistoryReportModel> getWorkItemResults(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) - - - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = AutoTestsApi() -val id : kotlin.String = id_example // kotlin.String | -val from : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | Take results from this date -val to : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | Take results until this date -val configurationIds : kotlin.collections.List = // kotlin.collections.List | Identifiers of test result configurations -val testPlanIds : kotlin.collections.List = // kotlin.collections.List | Identifiers of test plans which contain test results -val userIds : kotlin.collections.List = // kotlin.collections.List | Identifiers of users who set test results -val outcomes : kotlin.collections.List = // kotlin.collections.List | List of outcomes of test results -val isAutomated : kotlin.Boolean = true // kotlin.Boolean | OBSOLETE: Use `Automated` instead -val automated : kotlin.Boolean = true // kotlin.Boolean | If result must consist of only manual/automated test results -val testRunIds : kotlin.collections.List = // kotlin.collections.List | Identifiers of test runs which contain test results -val skip : kotlin.Int = 56 // kotlin.Int | Amount of items to be skipped (offset) -val take : kotlin.Int = 56 // kotlin.Int | Amount of items to be taken (limit) -val orderBy : kotlin.String = orderBy_example // kotlin.String | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) -val searchField : kotlin.String = searchField_example // kotlin.String | Property name for searching -val searchValue : kotlin.String = searchValue_example // kotlin.String | Value for searching -try { - val result : kotlin.collections.List = apiInstance.getWorkItemResults(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) - println(result) -} catch (e: ClientException) { - println("4xx response calling AutoTestsApi#getWorkItemResults") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling AutoTestsApi#getWorkItemResults") - e.printStackTrace() -} -``` - -### Parameters -| **id** | **kotlin.String**| | | -| **from** | **java.time.OffsetDateTime**| Take results from this date | [optional] | -| **to** | **java.time.OffsetDateTime**| Take results until this date | [optional] | -| **configurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md)| Identifiers of test result configurations | [optional] | -| **testPlanIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md)| Identifiers of test plans which contain test results | [optional] | -| **userIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md)| Identifiers of users who set test results | [optional] | -| **outcomes** | [**kotlin.collections.List<kotlin.String>**](kotlin.String.md)| List of outcomes of test results | [optional] | -| **isAutomated** | **kotlin.Boolean**| OBSOLETE: Use `Automated` instead | [optional] | -| **automated** | **kotlin.Boolean**| If result must consist of only manual/automated test results | [optional] | -| **testRunIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md)| Identifiers of test runs which contain test results | [optional] | -| **skip** | **kotlin.Int**| Amount of items to be skipped (offset) | [optional] | -| **take** | **kotlin.Int**| Amount of items to be taken (limit) | [optional] | -| **orderBy** | **kotlin.String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **kotlin.String**| Property name for searching | [optional] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **searchValue** | **kotlin.String**| Value for searching | [optional] | - -### Return type - -[**kotlin.collections.List<TestResultHistoryReportModel>**](TestResultHistoryReportModel.md) - -### Authorization - - Configure Bearer or PrivateToken: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = "" diff --git a/docs/AutotestFilterModel.md b/docs/AutotestFilterModel.md index 61dbc07..fe26916 100644 --- a/docs/AutotestFilterModel.md +++ b/docs/AutotestFilterModel.md @@ -22,6 +22,7 @@ | **isEmptyClassName** | **kotlin.Boolean** | Specifies an autotest class name presence status to search for | [optional] | | **lastTestResultOutcome** | [**AutotestResultOutcome**](AutotestResultOutcome.md) | Specifies an autotest outcome of the last test result to search for | [optional] | | **externalKey** | **kotlin.String** | Specifies an autotest external key to search for | [optional] | +| **lastTestResultConfigurationIds** | [**kotlin.collections.Set<java.util.UUID>**](java.util.UUID.md) | Specifies an autotest configuration IDs of the last test result to search for | [optional] | diff --git a/docs/AutotestResultHistoricalGetModel.md b/docs/AutotestResultHistoricalGetModel.md index d559870..335ac36 100644 --- a/docs/AutotestResultHistoricalGetModel.md +++ b/docs/AutotestResultHistoricalGetModel.md @@ -12,14 +12,16 @@ | **configurationId** | [**java.util.UUID**](java.util.UUID.md) | | | | **configurationName** | **kotlin.String** | | | | **outcome** | [**AutotestResultOutcome**](AutotestResultOutcome.md) | | | -| **testRunName** | **kotlin.String** | | [optional] | -| **launchSource** | **kotlin.String** | | [optional] | +| **rerunCount** | **kotlin.Int** | | | +| **rerunTestResults** | [**kotlin.collections.List<RerunTestResultModel>**](RerunTestResultModel.md) | | | | **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | | **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | | **testPlanId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | | **testPlanGlobalId** | **kotlin.Long** | | [optional] | | **testPlanName** | **kotlin.String** | | [optional] | | **duration** | **kotlin.Long** | | [optional] | +| **testRunName** | **kotlin.String** | | [optional] | +| **launchSource** | **kotlin.String** | | [optional] | diff --git a/docs/ConfigurationShort.md b/docs/ConfigurationShort.md new file mode 100644 index 0000000..00c0998 --- /dev/null +++ b/docs/ConfigurationShort.md @@ -0,0 +1,11 @@ + +# ConfigurationShort + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **name** | **kotlin.String** | | | + + + diff --git a/docs/ConfigurationShortModel.md b/docs/ConfigurationShortModel.md new file mode 100644 index 0000000..174b096 --- /dev/null +++ b/docs/ConfigurationShortModel.md @@ -0,0 +1,11 @@ + +# ConfigurationShortModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **name** | **kotlin.String** | | | + + + diff --git a/docs/CreateDefectApiModel.md b/docs/CreateDefectApiModel.md new file mode 100644 index 0000000..22793bf --- /dev/null +++ b/docs/CreateDefectApiModel.md @@ -0,0 +1,11 @@ + +# CreateDefectApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **testResultIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Linked test result IDs | | +| **form** | [**ExternalFormCreateModel**](ExternalFormCreateModel.md) | External form definition | | + + + diff --git a/docs/ApiV2AttachmentsPostRequest.md b/docs/CustomAttributeTemplateValidationResult.md similarity index 55% rename from docs/ApiV2AttachmentsPostRequest.md rename to docs/CustomAttributeTemplateValidationResult.md index dc1033d..fe6762c 100644 --- a/docs/ApiV2AttachmentsPostRequest.md +++ b/docs/CustomAttributeTemplateValidationResult.md @@ -1,10 +1,10 @@ -# ApiV2AttachmentsPostRequest +# CustomAttributeTemplateValidationResult ## Properties | Name | Type | Description | Notes | | ------------ | ------------- | ------------- | ------------- | -| **file** | [**java.io.File**](java.io.File.md) | | [optional] | +| **exists** | **kotlin.Boolean** | | | diff --git a/docs/CustomAttributeTemplatesApi.md b/docs/CustomAttributeTemplatesApi.md index b795b63..0849b45 100644 --- a/docs/CustomAttributeTemplatesApi.md +++ b/docs/CustomAttributeTemplatesApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**apiV2CustomAttributesTemplatesExistsGet**](CustomAttributeTemplatesApi.md#apiV2CustomAttributesTemplatesExistsGet) | **GET** /api/v2/customAttributes/templates/exists | | | [**apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost**](CustomAttributeTemplatesApi.md#apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost) | **POST** /api/v2/customAttributes/templates/{id}/customAttributes/exclude | Exclude CustomAttributes from CustomAttributeTemplate | | [**apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost**](CustomAttributeTemplatesApi.md#apiV2CustomAttributesTemplatesIdCustomAttributesIncludePost) | **POST** /api/v2/customAttributes/templates/{id}/customAttributes/include | Include CustomAttributes to CustomAttributeTemplate | | [**apiV2CustomAttributesTemplatesIdDelete**](CustomAttributeTemplatesApi.md#apiV2CustomAttributesTemplatesIdDelete) | **DELETE** /api/v2/customAttributes/templates/{id} | Delete CustomAttributeTemplate | @@ -14,6 +15,53 @@ All URIs are relative to *http://localhost* | [**apiV2CustomAttributesTemplatesSearchPost**](CustomAttributeTemplatesApi.md#apiV2CustomAttributesTemplatesSearchPost) | **POST** /api/v2/customAttributes/templates/search | Search CustomAttributeTemplates | + +# **apiV2CustomAttributesTemplatesExistsGet** +> CustomAttributeTemplateValidationResult apiV2CustomAttributesTemplatesExistsGet(name) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = CustomAttributeTemplatesApi() +val name : kotlin.String = name_example // kotlin.String | +try { + val result : CustomAttributeTemplateValidationResult = apiInstance.apiV2CustomAttributesTemplatesExistsGet(name) + println(result) +} catch (e: ClientException) { + println("4xx response calling CustomAttributeTemplatesApi#apiV2CustomAttributesTemplatesExistsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling CustomAttributeTemplatesApi#apiV2CustomAttributesTemplatesExistsGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **name** | **kotlin.String**| | [optional] | + +### Return type + +[**CustomAttributeTemplateValidationResult**](CustomAttributeTemplateValidationResult.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost** > apiV2CustomAttributesTemplatesIdCustomAttributesExcludePost(id, javaUtilUUID) diff --git a/docs/CustomAttributeValidationResult.md b/docs/CustomAttributeValidationResult.md new file mode 100644 index 0000000..97baaaf --- /dev/null +++ b/docs/CustomAttributeValidationResult.md @@ -0,0 +1,10 @@ + +# CustomAttributeValidationResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **exists** | **kotlin.Boolean** | | | + + + diff --git a/docs/CustomAttributesApi.md b/docs/CustomAttributesApi.md index 0d84ef7..c99cd31 100644 --- a/docs/CustomAttributesApi.md +++ b/docs/CustomAttributesApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**apiV2CustomAttributesExistsGet**](CustomAttributesApi.md#apiV2CustomAttributesExistsGet) | **GET** /api/v2/customAttributes/exists | | | [**apiV2CustomAttributesGlobalIdDelete**](CustomAttributesApi.md#apiV2CustomAttributesGlobalIdDelete) | **DELETE** /api/v2/customAttributes/global/{id} | Delete global attribute | | [**apiV2CustomAttributesGlobalIdPut**](CustomAttributesApi.md#apiV2CustomAttributesGlobalIdPut) | **PUT** /api/v2/customAttributes/global/{id} | Edit global attribute | | [**apiV2CustomAttributesGlobalPost**](CustomAttributesApi.md#apiV2CustomAttributesGlobalPost) | **POST** /api/v2/customAttributes/global | Create global attribute | @@ -11,6 +12,55 @@ All URIs are relative to *http://localhost* | [**apiV2CustomAttributesSearchPost**](CustomAttributesApi.md#apiV2CustomAttributesSearchPost) | **POST** /api/v2/customAttributes/search | Search for attributes | + +# **apiV2CustomAttributesExistsGet** +> CustomAttributeValidationResult apiV2CustomAttributesExistsGet(name, isGlobal) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = CustomAttributesApi() +val name : kotlin.String = name_example // kotlin.String | +val isGlobal : kotlin.Boolean = true // kotlin.Boolean | +try { + val result : CustomAttributeValidationResult = apiInstance.apiV2CustomAttributesExistsGet(name, isGlobal) + println(result) +} catch (e: ClientException) { + println("4xx response calling CustomAttributesApi#apiV2CustomAttributesExistsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling CustomAttributesApi#apiV2CustomAttributesExistsGet") + e.printStackTrace() +} +``` + +### Parameters +| **name** | **kotlin.String**| | [optional] | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **isGlobal** | **kotlin.Boolean**| | [optional] | + +### Return type + +[**CustomAttributeValidationResult**](CustomAttributeValidationResult.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2CustomAttributesGlobalIdDelete** > apiV2CustomAttributesGlobalIdDelete(id) diff --git a/docs/DefectApiModel.md b/docs/DefectApiModel.md new file mode 100644 index 0000000..a0f87bf --- /dev/null +++ b/docs/DefectApiModel.md @@ -0,0 +1,10 @@ + +# DefectApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **externalUrl** | **kotlin.String** | Link to created issue | | + + + diff --git a/docs/ExternalFormAllowedValueModel.md b/docs/ExternalFormAllowedValueModel.md new file mode 100644 index 0000000..d239583 --- /dev/null +++ b/docs/ExternalFormAllowedValueModel.md @@ -0,0 +1,13 @@ + +# ExternalFormAllowedValueModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **hasChildren** | **kotlin.Boolean** | | | +| **id** | **kotlin.String** | | [optional] | +| **name** | **kotlin.String** | | [optional] | +| **parentId** | **kotlin.String** | | [optional] | + + + diff --git a/docs/ExternalFormCreateModel.md b/docs/ExternalFormCreateModel.md new file mode 100644 index 0000000..22ef849 --- /dev/null +++ b/docs/ExternalFormCreateModel.md @@ -0,0 +1,13 @@ + +# ExternalFormCreateModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **possibleValues** | **kotlin.collections.Map<kotlin.String, kotlin.collections.List<ExternalFormAllowedValueModel>>** | | | +| **fields** | [**kotlin.collections.List<ExternalFormFieldModel>**](ExternalFormFieldModel.md) | | | +| **links** | [**kotlin.collections.List<ExternalFormLinkModel>**](ExternalFormLinkModel.md) | | | +| **propertyValues** | [**kotlin.collections.Map<kotlin.String, kotlin.Any>**](kotlin.Any.md) | | | + + + diff --git a/docs/ExternalFormFieldModel.md b/docs/ExternalFormFieldModel.md new file mode 100644 index 0000000..6f94976 --- /dev/null +++ b/docs/ExternalFormFieldModel.md @@ -0,0 +1,23 @@ + +# ExternalFormFieldModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **isCustomValueAllowed** | **kotlin.Boolean** | | | +| **fieldId** | **kotlin.String** | | [optional] | +| **fieldName** | **kotlin.String** | | [optional] | +| **helpText** | **kotlin.String** | | [optional] | +| **type** | **kotlin.String** | | [optional] | +| **arrayValuesType** | **kotlin.String** | | [optional] | +| **defaultValue** | [**kotlin.Any**](.md) | | [optional] | +| **autoCompleteUrl** | **kotlin.String** | | [optional] | +| **controlType** | **kotlin.String** | | [optional] | +| **minLength** | **kotlin.Int** | | [optional] | +| **maxLength** | **kotlin.Int** | | [optional] | +| **isRequired** | **kotlin.Boolean** | | [optional] | +| **min** | [**kotlin.Any**](.md) | | [optional] | +| **max** | [**kotlin.Any**](.md) | | [optional] | + + + diff --git a/docs/ExternalFormLinkModel.md b/docs/ExternalFormLinkModel.md new file mode 100644 index 0000000..5662e33 --- /dev/null +++ b/docs/ExternalFormLinkModel.md @@ -0,0 +1,11 @@ + +# ExternalFormLinkModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | | | +| **url** | **kotlin.String** | | | + + + diff --git a/docs/ExternalFormModel.md b/docs/ExternalFormModel.md new file mode 100644 index 0000000..7bf989f --- /dev/null +++ b/docs/ExternalFormModel.md @@ -0,0 +1,12 @@ + +# ExternalFormModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **fields** | [**kotlin.collections.List<ExternalFormFieldModel>**](ExternalFormFieldModel.md) | | | +| **possibleValues** | **kotlin.collections.Map<kotlin.String, kotlin.collections.List<ExternalFormAllowedValueModel>>** | | | +| **links** | [**kotlin.collections.List<ExternalFormLinkModel>**](ExternalFormLinkModel.md) | | | + + + diff --git a/docs/GetExternalFormApiResult.md b/docs/GetExternalFormApiResult.md new file mode 100644 index 0000000..5d7ab76 --- /dev/null +++ b/docs/GetExternalFormApiResult.md @@ -0,0 +1,11 @@ + +# GetExternalFormApiResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **testResultIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Linked test result IDs | | +| **form** | [**ExternalFormModel**](ExternalFormModel.md) | External form definition | | + + + diff --git a/docs/Label.md b/docs/Label.md new file mode 100644 index 0000000..0958f9e --- /dev/null +++ b/docs/Label.md @@ -0,0 +1,11 @@ + +# Label + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | Name of the label | | +| **globalId** | **kotlin.Long** | Global ID of the label | | + + + diff --git a/docs/Link.md b/docs/Link.md new file mode 100644 index 0000000..cdd6122 --- /dev/null +++ b/docs/Link.md @@ -0,0 +1,15 @@ + +# Link + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **url** | **kotlin.String** | Address can be specified without protocol, but necessarily with the domain. | | +| **hasInfo** | **kotlin.Boolean** | Flag defines if link relates to integrated jira service | | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Link unique identifier | [optional] | +| **title** | **kotlin.String** | Link name. | [optional] | +| **description** | **kotlin.String** | Link description. | [optional] | +| **type** | [**LinkType**](LinkType.md) | Specifies the type of the link. | [optional] | + + + diff --git a/docs/LinkSubGetModel.md b/docs/LinkShort.md similarity index 91% rename from docs/LinkSubGetModel.md rename to docs/LinkShort.md index 361a1d3..a4b3d5e 100644 --- a/docs/LinkSubGetModel.md +++ b/docs/LinkShort.md @@ -1,5 +1,5 @@ -# LinkSubGetModel +# LinkShort ## Properties | Name | Type | Description | Notes | diff --git a/docs/ManualRerunResultModel.md b/docs/ManualRerunResultModel.md new file mode 100644 index 0000000..db6cb39 --- /dev/null +++ b/docs/ManualRerunResultModel.md @@ -0,0 +1,10 @@ + +# ManualRerunResultModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **testResultsCount** | **kotlin.Int** | | | + + + diff --git a/docs/ManualRerunSelectModel.md b/docs/ManualRerunSelectModel.md new file mode 100644 index 0000000..0d90802 --- /dev/null +++ b/docs/ManualRerunSelectModel.md @@ -0,0 +1,11 @@ + +# ManualRerunSelectModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **extractionModel** | [**TestResultExtractionModel**](TestResultExtractionModel.md) | | [optional] | +| **filter** | [**TestResultsFilterModel**](TestResultsFilterModel.md) | | [optional] | + + + diff --git a/docs/ProjectImportApi.md b/docs/ProjectImportApi.md deleted file mode 100644 index 3aaf37c..0000000 --- a/docs/ProjectImportApi.md +++ /dev/null @@ -1,161 +0,0 @@ -# ProjectImportApi - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -| ------------- | ------------- | ------------- | -| [**backgroundImportToExistingProject**](ProjectImportApi.md#backgroundImportToExistingProject) | **POST** /api/v2/projects/{projectId}/import/json | Import project from JSON file into existing project in background job | -| [**backgroundImportZipToExistingProject**](ProjectImportApi.md#backgroundImportZipToExistingProject) | **POST** /api/v2/projects/{projectId}/import/zip | Import project from Zip file into existing project in background job | -| [**importToExistingProject**](ProjectImportApi.md#importToExistingProject) | **POST** /api/v2/projects/{projectId}/import | Import project from JSON file into existing project | - - - -# **backgroundImportToExistingProject** -> java.util.UUID backgroundImportToExistingProject(projectId, file) - -Import project from JSON file into existing project in background job - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectImportApi() -val projectId : kotlin.String = projectId_example // kotlin.String | Project internal (UUID) or global (integer) identifier -val file : java.io.File = BINARY_DATA_HERE // java.io.File | Select file -try { - val result : java.util.UUID = apiInstance.backgroundImportToExistingProject(projectId, file) - println(result) -} catch (e: ClientException) { - println("4xx response calling ProjectImportApi#backgroundImportToExistingProject") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectImportApi#backgroundImportToExistingProject") - e.printStackTrace() -} -``` - -### Parameters -| **projectId** | **kotlin.String**| Project internal (UUID) or global (integer) identifier | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| Select file | [optional] | - -### Return type - -[**java.util.UUID**](java.util.UUID.md) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -# **backgroundImportZipToExistingProject** -> java.util.UUID backgroundImportZipToExistingProject(projectId, file) - -Import project from Zip file into existing project in background job - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectImportApi() -val projectId : kotlin.String = projectId_example // kotlin.String | Project internal (UUID) or global (integer) identifier -val file : java.io.File = BINARY_DATA_HERE // java.io.File | Select file -try { - val result : java.util.UUID = apiInstance.backgroundImportZipToExistingProject(projectId, file) - println(result) -} catch (e: ClientException) { - println("4xx response calling ProjectImportApi#backgroundImportZipToExistingProject") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectImportApi#backgroundImportZipToExistingProject") - e.printStackTrace() -} -``` - -### Parameters -| **projectId** | **kotlin.String**| Project internal (UUID) or global (integer) identifier | | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| Select file | [optional] | - -### Return type - -[**java.util.UUID**](java.util.UUID.md) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -# **importToExistingProject** -> importToExistingProject(projectId, includeAttachments, file) - -Import project from JSON file into existing project - - Use case User attaches project as json file taken from export or export-by-testPlans method User runs method execution System updates project System returns no content response - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectImportApi() -val projectId : kotlin.String = projectId_example // kotlin.String | Project internal (UUID) or global (integer) identifier -val includeAttachments : kotlin.Boolean = true // kotlin.Boolean | -val file : java.io.File = BINARY_DATA_HERE // java.io.File | Select file -try { - apiInstance.importToExistingProject(projectId, includeAttachments, file) -} catch (e: ClientException) { - println("4xx response calling ProjectImportApi#importToExistingProject") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectImportApi#importToExistingProject") - e.printStackTrace() -} -``` - -### Parameters -| **projectId** | **kotlin.String**| Project internal (UUID) or global (integer) identifier | | -| **includeAttachments** | **kotlin.Boolean**| | [optional] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| Select file | [optional] | - -### Return type - -null (empty response body) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - diff --git a/docs/ProjectSettingsApi.md b/docs/ProjectSettingsApi.md new file mode 100644 index 0000000..2854776 --- /dev/null +++ b/docs/ProjectSettingsApi.md @@ -0,0 +1,105 @@ +# ProjectSettingsApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**apiV2ProjectsProjectIdSettingsAutotestsPost**](ProjectSettingsApi.md#apiV2ProjectsProjectIdSettingsAutotestsPost) | **POST** /api/v2/projects/{projectId}/settings/autotests | Set autotest project settings. | +| [**getAutotestProjectSettings**](ProjectSettingsApi.md#getAutotestProjectSettings) | **GET** /api/v2/projects/{projectId}/settings/autotests | Get autotest project settings. | + + + +# **apiV2ProjectsProjectIdSettingsAutotestsPost** +> apiV2ProjectsProjectIdSettingsAutotestsPost(projectId, autoTestProjectSettingsPostModel) + +Set autotest project settings. + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = ProjectSettingsApi() +val projectId : kotlin.String = projectId_example // kotlin.String | +val autoTestProjectSettingsPostModel : AutoTestProjectSettingsPostModel = // AutoTestProjectSettingsPostModel | +try { + apiInstance.apiV2ProjectsProjectIdSettingsAutotestsPost(projectId, autoTestProjectSettingsPostModel) +} catch (e: ClientException) { + println("4xx response calling ProjectSettingsApi#apiV2ProjectsProjectIdSettingsAutotestsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ProjectSettingsApi#apiV2ProjectsProjectIdSettingsAutotestsPost") + e.printStackTrace() +} +``` + +### Parameters +| **projectId** | **kotlin.String**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **autoTestProjectSettingsPostModel** | [**AutoTestProjectSettingsPostModel**](AutoTestProjectSettingsPostModel.md)| | [optional] | + +### Return type + +null (empty response body) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **getAutotestProjectSettings** +> AutoTestProjectSettingsGetModel getAutotestProjectSettings(projectId) + +Get autotest project settings. + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = ProjectSettingsApi() +val projectId : kotlin.String = projectId_example // kotlin.String | +try { + val result : AutoTestProjectSettingsGetModel = apiInstance.getAutotestProjectSettings(projectId) + println(result) +} catch (e: ClientException) { + println("4xx response calling ProjectSettingsApi#getAutotestProjectSettings") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling ProjectSettingsApi#getAutotestProjectSettings") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **projectId** | **kotlin.String**| | | + +### Return type + +[**AutoTestProjectSettingsGetModel**](AutoTestProjectSettingsGetModel.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/docs/ProjectShortModel.md b/docs/ProjectShortModel.md new file mode 100644 index 0000000..78a24ee --- /dev/null +++ b/docs/ProjectShortModel.md @@ -0,0 +1,25 @@ + +# ProjectShortModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project | | +| **name** | **kotlin.String** | Name of the project | | +| **isFavorite** | **kotlin.Boolean** | Indicates if the project is marked as favorite | | +| **isDeleted** | **kotlin.Boolean** | Indicates if the project is deleted | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Creation date of the project | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project creator | | +| **globalId** | **kotlin.Long** | Global ID of the project | | +| **type** | [**ProjectTypeModel**](ProjectTypeModel.md) | Type of the project | | +| **isFlakyAuto** | **kotlin.Boolean** | Indicates if the status \"Flaky/Stable\" sets automatically | | +| **description** | **kotlin.String** | Description of the project | [optional] | +| **testCasesCount** | **kotlin.Int** | Number of test cases in the project | [optional] | +| **sharedStepsCount** | **kotlin.Int** | Number of shared steps in the project | [optional] | +| **checkListsCount** | **kotlin.Int** | Number of checklists in the project | [optional] | +| **autoTestsCount** | **kotlin.Int** | Number of autotests in the project | [optional] | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Last modification date of the project | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the project last editor | [optional] | + + + diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 60e3234..98e8f78 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -21,9 +21,6 @@ All URIs are relative to *http://localhost* | [**apiV2ProjectsPurgeBulkPost**](ProjectsApi.md#apiV2ProjectsPurgeBulkPost) | **POST** /api/v2/projects/purge/bulk | Purge multiple projects | | [**apiV2ProjectsRestoreBulkPost**](ProjectsApi.md#apiV2ProjectsRestoreBulkPost) | **POST** /api/v2/projects/restore/bulk | Restore multiple projects | | [**apiV2ProjectsSearchPost**](ProjectsApi.md#apiV2ProjectsSearchPost) | **POST** /api/v2/projects/search | Search for projects | -| [**backgroundImportProject**](ProjectsApi.md#backgroundImportProject) | **POST** /api/v2/projects/import/json | Import project from JSON file in background job | -| [**backgroundImportZipProject**](ProjectsApi.md#backgroundImportZipProject) | **POST** /api/v2/projects/import/zip | Import project from Zip file in background job | -| [**callImport**](ProjectsApi.md#callImport) | **POST** /api/v2/projects/import | Import project from JSON file | | [**createProject**](ProjectsApi.md#createProject) | **POST** /api/v2/projects | Create project | | [**deleteProjectAutoTests**](ProjectsApi.md#deleteProjectAutoTests) | **DELETE** /api/v2/projects/{id}/autoTests | Delete all autotests from project | | [**getAllProjects**](ProjectsApi.md#getAllProjects) | **GET** /api/v2/projects | Get all projects | @@ -832,7 +829,7 @@ Configure Bearer or PrivateToken: # **apiV2ProjectsSearchPost** -> kotlin.collections.List<ProjectModel> apiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel) +> kotlin.collections.List<ProjectShortModel> apiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel) Search for projects @@ -850,7 +847,7 @@ val searchField : kotlin.String = searchField_example // kotlin.String | Propert val searchValue : kotlin.String = searchValue_example // kotlin.String | Value for searching val projectsFilterModel : ProjectsFilterModel = // ProjectsFilterModel | try { - val result : kotlin.collections.List = apiInstance.apiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel) + val result : kotlin.collections.List = apiInstance.apiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel) println(result) } catch (e: ClientException) { println("4xx response calling ProjectsApi#apiV2ProjectsSearchPost") @@ -873,7 +870,7 @@ try { ### Return type -[**kotlin.collections.List<ProjectModel>**](ProjectModel.md) +[**kotlin.collections.List<ProjectShortModel>**](ProjectShortModel.md) ### Authorization @@ -887,150 +884,6 @@ Configure Bearer or PrivateToken: - **Content-Type**: application/json - **Accept**: application/json - -# **backgroundImportProject** -> java.util.UUID backgroundImportProject(file) - -Import project from JSON file in background job - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectsApi() -val file : java.io.File = BINARY_DATA_HERE // java.io.File | -try { - val result : java.util.UUID = apiInstance.backgroundImportProject(file) - println(result) -} catch (e: ClientException) { - println("4xx response calling ProjectsApi#backgroundImportProject") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectsApi#backgroundImportProject") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| | [optional] | - -### Return type - -[**java.util.UUID**](java.util.UUID.md) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -# **backgroundImportZipProject** -> java.util.UUID backgroundImportZipProject(file) - -Import project from Zip file in background job - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectsApi() -val file : java.io.File = BINARY_DATA_HERE // java.io.File | -try { - val result : java.util.UUID = apiInstance.backgroundImportZipProject(file) - println(result) -} catch (e: ClientException) { - println("4xx response calling ProjectsApi#backgroundImportZipProject") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectsApi#backgroundImportZipProject") - e.printStackTrace() -} -``` - -### Parameters -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| | [optional] | - -### Return type - -[**java.util.UUID**](java.util.UUID.md) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - - -# **callImport** -> callImport(includeAttachments, file) - -Import project from JSON file - - <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> This method imports a `.json` file with a project to the test management system. In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: ``` curl -X POST \"http://{domain.com}/api/v2/projects/import\" \\ -H \"accept: /\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: multipart/form-data\" \\ -F \"file=@import.txt;type=text/plain\" ``` In the second instance, a project with the name of the imported one is created. User attributes and the test library (along with content and structure) are imported. Test plan execution history from the first instance of TMS cannot be transferred. - -### Example -```kotlin -// Import classes: -//import ru.testit.kotlin.client.infrastructure.* -//import ru.testit.kotlin.client.models.* - -val apiInstance = ProjectsApi() -val includeAttachments : kotlin.Boolean = true // kotlin.Boolean | Enables attachment import. -val file : java.io.File = BINARY_DATA_HERE // java.io.File | Select file -try { - apiInstance.callImport(includeAttachments, file) -} catch (e: ClientException) { - println("4xx response calling ProjectsApi#callImport") - e.printStackTrace() -} catch (e: ServerException) { - println("5xx response calling ProjectsApi#callImport") - e.printStackTrace() -} -``` - -### Parameters -| **includeAttachments** | **kotlin.Boolean**| Enables attachment import. | [optional] [default to false] | -| Name | Type | Description | Notes | -| ------------- | ------------- | ------------- | ------------- | -| **file** | **java.io.File**| Select file | [optional] | - -### Return type - -null (empty response body) - -### Authorization - - -Configure Bearer or PrivateToken: - ApiClient.apiKey["Authorization"] = "" - ApiClient.apiKeyPrefix["Authorization"] = "" - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - # **createProject** > ProjectModel createProject(projectPostModel) @@ -1128,7 +981,7 @@ Configure Bearer or PrivateToken: # **getAllProjects** -> kotlin.collections.List<ProjectModel> getAllProjects(isDeleted, projectName, skip, take, orderBy, searchField, searchValue) +> kotlin.collections.List<ProjectShortModel> getAllProjects(isDeleted, projectName, skip, take, orderBy, searchField, searchValue) Get all projects @@ -1149,7 +1002,7 @@ val orderBy : kotlin.String = orderBy_example // kotlin.String | SQL-like ORDER val searchField : kotlin.String = searchField_example // kotlin.String | Property name for searching val searchValue : kotlin.String = searchValue_example // kotlin.String | Value for searching try { - val result : kotlin.collections.List = apiInstance.getAllProjects(isDeleted, projectName, skip, take, orderBy, searchField, searchValue) + val result : kotlin.collections.List = apiInstance.getAllProjects(isDeleted, projectName, skip, take, orderBy, searchField, searchValue) println(result) } catch (e: ClientException) { println("4xx response calling ProjectsApi#getAllProjects") @@ -1173,7 +1026,7 @@ try { ### Return type -[**kotlin.collections.List<ProjectModel>**](ProjectModel.md) +[**kotlin.collections.List<ProjectShortModel>**](ProjectShortModel.md) ### Authorization diff --git a/docs/RequestTypeRequest.md b/docs/RequestTypeRequest.md new file mode 100644 index 0000000..7e51854 --- /dev/null +++ b/docs/RequestTypeRequest.md @@ -0,0 +1,14 @@ + +# RequestTypeRequest + +## Enum + + + * `Post` (value: `"Post"`) + + * `Put` (value: `"Put"`) + + * `Delete` (value: `"Delete"`) + + + diff --git a/docs/RerunTestResultModel.md b/docs/RerunTestResultModel.md new file mode 100644 index 0000000..972ad93 --- /dev/null +++ b/docs/RerunTestResultModel.md @@ -0,0 +1,12 @@ + +# RerunTestResultModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **runNumber** | **kotlin.Int** | | | +| **outcome** | **kotlin.String** | | [optional] | + + + diff --git a/docs/RerunsModel.md b/docs/RerunsModel.md new file mode 100644 index 0000000..b5ae862 --- /dev/null +++ b/docs/RerunsModel.md @@ -0,0 +1,11 @@ + +# RerunsModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **rerunCount** | **kotlin.Int** | | | +| **rerunTestResults** | [**kotlin.collections.List<RerunTestResultModel>**](RerunTestResultModel.md) | | | + + + diff --git a/docs/SharedStepResult.md b/docs/SharedStepResult.md new file mode 100644 index 0000000..567964b --- /dev/null +++ b/docs/SharedStepResult.md @@ -0,0 +1,11 @@ + +# SharedStepResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **stepId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **outcome** | **kotlin.String** | | | + + + diff --git a/docs/StepComment.md b/docs/StepComment.md new file mode 100644 index 0000000..1bdd86d --- /dev/null +++ b/docs/StepComment.md @@ -0,0 +1,19 @@ + +# StepComment + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Entity unique identifier | | +| **stepId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **testResultId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | | +| **text** | **kotlin.String** | | [optional] | +| **parentStepId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **attachments** | [**kotlin.collections.List<Attachment>**](Attachment.md) | | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | + + + diff --git a/docs/StepResult.md b/docs/StepResult.md new file mode 100644 index 0000000..2ea2c9e --- /dev/null +++ b/docs/StepResult.md @@ -0,0 +1,14 @@ + +# StepResult + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **stepId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **outcome** | **kotlin.String** | | | +| **sharedStepVersionId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **sharedStepResults** | [**kotlin.collections.List<SharedStepResult>**](SharedStepResult.md) | | [optional] | +| **comment** | [**StepComment**](StepComment.md) | | [optional] | + + + diff --git a/docs/TestPlanChangedFieldsViewModel.md b/docs/TestPlanChangedFieldsViewModel.md index 17cc89f..7c50c61 100644 --- a/docs/TestPlanChangedFieldsViewModel.md +++ b/docs/TestPlanChangedFieldsViewModel.md @@ -6,10 +6,10 @@ | ------------ | ------------- | ------------- | ------------- | | **name** | [**StringChangedFieldWithDiffsViewModel**](StringChangedFieldWithDiffsViewModel.md) | | [optional] | | **description** | [**StringChangedFieldWithDiffsViewModel**](StringChangedFieldWithDiffsViewModel.md) | | [optional] | -| **productName** | [**StringChangedFieldViewModel**](StringChangedFieldViewModel.md) | | [optional] | -| **build** | [**StringChangedFieldViewModel**](StringChangedFieldViewModel.md) | | [optional] | +| **productName** | [**StringChangedFieldWithDiffsViewModel**](StringChangedFieldWithDiffsViewModel.md) | | [optional] | +| **build** | [**StringChangedFieldWithDiffsViewModel**](StringChangedFieldWithDiffsViewModel.md) | | [optional] | | **period** | [**PeriodViewModelChangedFieldViewModel**](PeriodViewModelChangedFieldViewModel.md) | | [optional] | -| **status** | [**StringChangedFieldViewModel**](StringChangedFieldViewModel.md) | | [optional] | +| **status** | [**StringChangedFieldWithDiffsViewModel**](StringChangedFieldWithDiffsViewModel.md) | | [optional] | | **tags** | [**StringArrayChangedFieldViewModel**](StringArrayChangedFieldViewModel.md) | | [optional] | | **testSuite** | [**TestSuiteChangeViewModelChangedFieldViewModel**](TestSuiteChangeViewModelChangedFieldViewModel.md) | | [optional] | | **testPoints** | [**TestPointChangeViewModelChangedFieldViewModel**](TestPointChangeViewModelChangedFieldViewModel.md) | | [optional] | diff --git a/docs/TestPlanSummaryModel.md b/docs/TestPlanSummaryModel.md new file mode 100644 index 0000000..995af34 --- /dev/null +++ b/docs/TestPlanSummaryModel.md @@ -0,0 +1,16 @@ + +# TestPlanSummaryModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **totalTestPointsCount** | **kotlin.Int** | | | +| **manualTestPointsCount** | **kotlin.Int** | | | +| **automatedTestPointsCount** | **kotlin.Int** | | | +| **completedTestPointsCount** | **kotlin.Int** | | | +| **defectsCount** | **kotlin.Int** | | | +| **plannedTestPointsDuration** | **kotlin.Long** | | | +| **spentTestPointsDuration** | **kotlin.Long** | | [optional] | + + + diff --git a/docs/TestPlansApi.md b/docs/TestPlansApi.md index 0213dc8..818433b 100644 --- a/docs/TestPlansApi.md +++ b/docs/TestPlansApi.md @@ -14,6 +14,7 @@ All URIs are relative to *http://localhost* | [**apiV2TestPlansIdHistoryGet**](TestPlansApi.md#apiV2TestPlansIdHistoryGet) | **GET** /api/v2/testPlans/{id}/history | Get TestPlan history | | [**apiV2TestPlansIdLinksGet**](TestPlansApi.md#apiV2TestPlansIdLinksGet) | **GET** /api/v2/testPlans/{id}/links | Get Links of TestPlan | | [**apiV2TestPlansIdPatch**](TestPlansApi.md#apiV2TestPlansIdPatch) | **PATCH** /api/v2/testPlans/{id} | Patch test plan | +| [**apiV2TestPlansIdSummariesGet**](TestPlansApi.md#apiV2TestPlansIdSummariesGet) | **GET** /api/v2/testPlans/{id}/summaries | Get summary by TestPlan | | [**apiV2TestPlansIdTestPointsLastResultsGet**](TestPlansApi.md#apiV2TestPlansIdTestPointsLastResultsGet) | **GET** /api/v2/testPlans/{id}/testPoints/lastResults | Get TestPoints with last result from TestPlan | | [**apiV2TestPlansIdTestPointsResetPost**](TestPlansApi.md#apiV2TestPlansIdTestPointsResetPost) | **POST** /api/v2/testPlans/{id}/testPoints/reset | Reset TestPoints status of TestPlan | | [**apiV2TestPlansIdTestPointsTesterDelete**](TestPlansApi.md#apiV2TestPlansIdTestPointsTesterDelete) | **DELETE** /api/v2/testPlans/{id}/testPoints/tester | Unassign users from multiple test points | @@ -553,6 +554,55 @@ Configure Bearer or PrivateToken: - **Content-Type**: application/json - **Accept**: application/json + +# **apiV2TestPlansIdSummariesGet** +> TestPlanSummaryModel apiV2TestPlansIdSummariesGet(id) + +Get summary by TestPlan + + Use case User sets test plan identifier User runs method execution System returns summary by test plan + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestPlansApi() +val id : kotlin.String = 3fa85f64-5717-4562-b3fc-2c963f66afa6 // kotlin.String | Test plan internal (guid format) or global (int format) identifier +try { + val result : TestPlanSummaryModel = apiInstance.apiV2TestPlansIdSummariesGet(id) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestPlansApi#apiV2TestPlansIdSummariesGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestPlansApi#apiV2TestPlansIdSummariesGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **id** | **kotlin.String**| Test plan internal (guid format) or global (int format) identifier | | + +### Return type + +[**TestPlanSummaryModel**](TestPlanSummaryModel.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2TestPlansIdTestPointsLastResultsGet** > kotlin.collections.List<TestPointWithLastResultModel> apiV2TestPlansIdTestPointsLastResultsGet(id, testerId, skip, take, orderBy, searchField, searchValue) diff --git a/docs/TestPoint.md b/docs/TestPoint.md new file mode 100644 index 0000000..91402dc --- /dev/null +++ b/docs/TestPoint.md @@ -0,0 +1,19 @@ + +# TestPoint + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the entity | | +| **isDeleted** | **kotlin.Boolean** | Indicates if the entity is deleted | | +| **iterationId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **testSuiteId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **testerId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **workItemId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **configurationId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **status** | **kotlin.String** | | [optional] | +| **statusModel** | [**TestStatus**](TestStatus.md) | | [optional] | +| **lastTestResultId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | + + + diff --git a/docs/TestPointPutModel.md b/docs/TestPointPutModel.md index 30203be..a025804 100644 --- a/docs/TestPointPutModel.md +++ b/docs/TestPointPutModel.md @@ -6,6 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **iterationId** | [**java.util.UUID**](java.util.UUID.md) | | | | **testSuiteId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **statusModel** | [**TestStatusModel**](TestStatusModel.md) | | | | **id** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the entity | | | **isDeleted** | **kotlin.Boolean** | Indicates if the entity is deleted | | | **testerId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | diff --git a/docs/TestPointShortGetModel.md b/docs/TestPointShortGetModel.md index 68414db..4a44ac4 100644 --- a/docs/TestPointShortGetModel.md +++ b/docs/TestPointShortGetModel.md @@ -24,7 +24,7 @@ | **duration** | **kotlin.Int** | Duration of the test point | | | **sectionId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of section where work item the test point represents is located | | | **projectId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the test point project | | -| **lastTestResult** | [**LastTestResultModel**](LastTestResultModel.md) | Model of the test point last test result | | +| **lastTestResult** | [**LastTestResultModel**](LastTestResultModel.md) | | | | **iterationId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of work item iteration the test point represents | | | **workItemState** | [**WorkItemState**](WorkItemState.md) | Work item state | | | **workItemCreatedById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of the work item creator | | diff --git a/docs/TestResultExtractionModel.md b/docs/TestResultExtractionModel.md new file mode 100644 index 0000000..e155a0e --- /dev/null +++ b/docs/TestResultExtractionModel.md @@ -0,0 +1,10 @@ + +# TestResultExtractionModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **testResultIds** | [**GuidExtractionModel**](GuidExtractionModel.md) | | [optional] | + + + diff --git a/docs/TestResultHistoryReportModel.md b/docs/TestResultHistoryReportModel.md deleted file mode 100644 index a41c5fa..0000000 --- a/docs/TestResultHistoryReportModel.md +++ /dev/null @@ -1,35 +0,0 @@ - -# TestResultHistoryReportModel - -## Properties -| Name | Type | Description | Notes | -| ------------ | ------------- | ------------- | ------------- | -| **id** | [**java.util.UUID**](java.util.UUID.md) | | | -| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | | -| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | | -| **userId** | [**java.util.UUID**](java.util.UUID.md) | If test run was stopped, this property equals identifier of user who stopped it.Otherwise, the property equals identifier of user who created the test result | | -| **isAutomated** | **kotlin.Boolean** | | | -| **createdById** | [**java.util.UUID**](java.util.UUID.md) | | | -| **failureClassIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | | | -| **testRunId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | -| **testRunName** | **kotlin.String** | | [optional] | -| **createdByUserName** | **kotlin.String** | | [optional] | -| **testPlanId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | -| **testPlanGlobalId** | **kotlin.Long** | | [optional] | -| **testPlanName** | **kotlin.String** | | [optional] | -| **configurationName** | **kotlin.String** | If test point related to the test result has configuration, this property will be equal to the test point configuration name. Otherwise, this property will be equal to the test result configuration name | [optional] | -| **outcome** | **kotlin.String** | If any test result related to the test run is linked with autotest and the run has an outcome, the outcome value equalsto the worst outcome of the last modified test result.Otherwise, the outcome equals to the outcome of first created test result in the test run | [optional] | -| **comment** | **kotlin.String** | If any test result related to the test run is linked with autotest, comment will have default valueOtherwise, the comment equals to the comment of first created test result in the test run | [optional] | -| **links** | [**kotlin.collections.List<LinkModel>**](LinkModel.md) | If any test result related to the test run is linked with autotest, link will be equal to the links of last modified test result.Otherwise, the links equals to the links of first created test result in the test run | [optional] | -| **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | -| **completedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | -| **duration** | **kotlin.Long** | | [optional] | -| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | -| **attachments** | [**kotlin.collections.List<AttachmentModel>**](AttachmentModel.md) | If any test result related to the test run is linked with autotest, attachments will be equal to the attachments of last modified test result.Otherwise, the attachments equals to the attachments of first created test result in the test run | [optional] | -| **workItemVersionId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | -| **workItemVersionNumber** | **kotlin.Int** | | [optional] | -| **launchSource** | **kotlin.String** | | [optional] | -| **parameters** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] | - - - diff --git a/docs/TestResultHistoryResponse.md b/docs/TestResultHistoryResponse.md new file mode 100644 index 0000000..c984e49 --- /dev/null +++ b/docs/TestResultHistoryResponse.md @@ -0,0 +1,35 @@ + +# TestResultHistoryResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Internal test result identifier | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Test result creation date | | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Test result last modification date | | +| **userId** | [**java.util.UUID**](java.util.UUID.md) | Internal identifier of user who stopped test run related to the test result or user who created the test result If test run was stopped, this property equals identifier of user who stopped it. Otherwise, the property equals identifier of user who created the test result | | +| **isAutomated** | **kotlin.Boolean** | Boolean flag defines if test point related to the test result is automated or not | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | Unique identifier of user who created first test result in the test run | | +| **failureClassIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Unique identifier of failure classes related to the first test result in the test run | | +| **testRunId** | [**java.util.UUID**](java.util.UUID.md) | Identifier of test run related to the test result | [optional] | +| **testRunName** | **kotlin.String** | Name of test run related to the test result | [optional] | +| **createdByUserName** | **kotlin.String** | Username of user who created test run | [optional] | +| **testPlanId** | [**java.util.UUID**](java.util.UUID.md) | Internal identifier of test plan related to the test result's test run | [optional] | +| **testPlanGlobalId** | **kotlin.Long** | Global identifier of test plan related to the test result's test run | [optional] | +| **testPlanName** | **kotlin.String** | Name of test plan related to the test result's test run | [optional] | +| **configurationName** | **kotlin.String** | Configuration name of test point related to the test result or from test result itself If test point related to the test result has configuration, this property will be equal to the test point configuration name. Otherwise, this property will be equal to the test result configuration name | [optional] | +| **outcome** | **kotlin.String** | Outcome from test result with max modified date or from first created test result Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped. If any test result related to the test run is linked with autotest and the run has an outcome, the outcome value equals to the worst outcome of the last modified test result. Otherwise, the outcome equals to the outcome of first created test result in the test run. | [optional] | +| **comment** | **kotlin.String** | Test result comment If any test result related to the test run is linked with autotest, comment will have default value. Otherwise, the comment equals to the comment of first created test result in the test run | [optional] | +| **links** | [**kotlin.collections.List<LinkModel>**](LinkModel.md) | Test result links If any test result related to the test run is linked with autotest, link will be equal to the links of last modified test result. Otherwise, the links equals to the links of first created test result in the test run. | [optional] | +| **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Start date time from test result or from test run (if test run new state is Running or Completed state) | [optional] | +| **completedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | End date time from test result or from test run (if test run new state is In progress, Stopped or Completed) | [optional] | +| **duration** | **kotlin.Long** | Duration of first created test result in the test run | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | Unique identifier of user who applied last modification of first test result in the test run | [optional] | +| **attachments** | [**kotlin.collections.List<AttachmentModel>**](AttachmentModel.md) | Attachments related to the test result If any test result related to the test run is linked with autotest, attachments will be equal to the attachments of last modified test result. Otherwise, the attachments equals to the attachments of first created test result in the test run. | [optional] | +| **workItemVersionId** | [**java.util.UUID**](java.util.UUID.md) | Unique identifier of workitem version related to the first test result in the test run | [optional] | +| **workItemVersionNumber** | **kotlin.Int** | Number of workitem version related to the first test result in the test run | [optional] | +| **launchSource** | **kotlin.String** | | [optional] | +| **parameters** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | Parameters of test result | [optional] | + + + diff --git a/docs/TestResultModel.md b/docs/TestResultModel.md index aa522f8..9dd3dfd 100644 --- a/docs/TestResultModel.md +++ b/docs/TestResultModel.md @@ -33,6 +33,7 @@ | **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | | **stepComments** | [**kotlin.collections.List<StepCommentModel>**](StepCommentModel.md) | | [optional] | | **outcome** | [**TestResultOutcome**](TestResultOutcome.md) | | [optional] | +| **status** | [**TestStatusModel**](TestStatusModel.md) | | [optional] | | **comment** | **kotlin.String** | | [optional] | | **links** | [**kotlin.collections.List<LinkModel>**](LinkModel.md) | | [optional] | | **stepResults** | [**kotlin.collections.List<StepResultModel>**](StepResultModel.md) | | [optional] | diff --git a/docs/TestResultResponse.md b/docs/TestResultResponse.md new file mode 100644 index 0000000..1a11571 --- /dev/null +++ b/docs/TestResultResponse.md @@ -0,0 +1,43 @@ + +# TestResultResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | | +| **createdById** | [**java.util.UUID**](java.util.UUID.md) | | | +| **failureClassIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | | | +| **configurationId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **testPointId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **testRunId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **workItemVersionId** | [**java.util.UUID**](java.util.UUID.md) | | | +| **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | +| **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **stepComments** | [**kotlin.collections.List<StepComment>**](StepComment.md) | | [optional] | +| **outcome** | [**TestResultOutcome**](TestResultOutcome.md) | | [optional] | +| **status** | [**TestStatus**](TestStatus.md) | | [optional] | +| **comment** | **kotlin.String** | | [optional] | +| **links** | [**kotlin.collections.List<Link>**](Link.md) | | [optional] | +| **stepResults** | [**kotlin.collections.List<StepResult>**](StepResult.md) | | [optional] | +| **attachments** | [**kotlin.collections.List<Attachment>**](Attachment.md) | | [optional] | +| **autoTestId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | +| **completedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | +| **durationInMs** | **kotlin.Long** | | [optional] | +| **traces** | **kotlin.String** | | [optional] | +| **failureType** | **kotlin.String** | | [optional] | +| **message** | **kotlin.String** | | [optional] | +| **runByUserId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **stoppedByUserId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | +| **testPoint** | [**TestPoint**](TestPoint.md) | | [optional] | +| **autoTest** | [**AutoTest**](AutoTest.md) | | [optional] | +| **autoTestStepResults** | [**kotlin.collections.List<AutoTestStepResult>**](AutoTestStepResult.md) | | [optional] | +| **setupResults** | [**kotlin.collections.List<AutoTestStepResult>**](AutoTestStepResult.md) | | [optional] | +| **teardownResults** | [**kotlin.collections.List<AutoTestStepResult>**](AutoTestStepResult.md) | | [optional] | +| **workItemVersionNumber** | **kotlin.Int** | | [optional] | +| **parameters** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] | +| **properties** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | | [optional] | + + + diff --git a/docs/TestResultShortGetModel.md b/docs/TestResultShortResponse.md similarity index 73% rename from docs/TestResultShortGetModel.md rename to docs/TestResultShortResponse.md index 660973c..6c70f2a 100644 --- a/docs/TestResultShortGetModel.md +++ b/docs/TestResultShortResponse.md @@ -1,5 +1,5 @@ -# TestResultShortGetModel +# TestResultShortResponse ## Properties | Name | Type | Description | Notes | @@ -10,12 +10,14 @@ | **testRunId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of test run where the test result is located | | | **configurationId** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of configuration which the test result uses | | | **configurationName** | **kotlin.String** | Name of configuration which the test result uses | | -| **outcome** | **kotlin.String** | Outcome of the test result | | -| **resultReasons** | [**kotlin.collections.List<AutotestResultReasonSubGetModel>**](AutotestResultReasonSubGetModel.md) | Collection of result reasons which the test result have | | +| **resultReasons** | [**kotlin.collections.List<AutoTestResultReasonShort>**](AutoTestResultReasonShort.md) | Collection of result reasons which the test result have | | | **date** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the test result was completed or started or created | | | **createdDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the test result has been created | | -| **links** | [**kotlin.collections.List<LinkSubGetModel>**](LinkSubGetModel.md) | Collection of links attached to the test result | | -| **attachments** | [**kotlin.collections.List<AttachmentModel>**](AttachmentModel.md) | Collection of files attached to the test result | | +| **links** | [**kotlin.collections.List<LinkShort>**](LinkShort.md) | Collection of links attached to the test result | | +| **attachments** | [**kotlin.collections.List<Attachment>**](Attachment.md) | Collection of files attached to the test result | | +| **rerunCompletedCount** | **kotlin.Int** | Run count | | +| **outcome** | **kotlin.String** | Outcome of the test result | [optional] | +| **status** | [**TestStatus**](TestStatus.md) | | [optional] | | **comment** | **kotlin.String** | Comment to the test result | [optional] | | **modifiedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the test result has been modified | [optional] | | **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the test result has been started | [optional] | diff --git a/docs/TestResultStepCommentPutModel.md b/docs/TestResultStepCommentUpdateRequest.md similarity index 56% rename from docs/TestResultStepCommentPutModel.md rename to docs/TestResultStepCommentUpdateRequest.md index 7c19360..3b296b7 100644 --- a/docs/TestResultStepCommentPutModel.md +++ b/docs/TestResultStepCommentUpdateRequest.md @@ -1,13 +1,13 @@ -# TestResultStepCommentPutModel +# TestResultStepCommentUpdateRequest ## Properties | Name | Type | Description | Notes | | ------------ | ------------- | ------------- | ------------- | -| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **id** | [**java.util.UUID**](java.util.UUID.md) | Entity unique identifier | | | **text** | **kotlin.String** | | | | **stepId** | [**java.util.UUID**](java.util.UUID.md) | | | -| **attachments** | [**kotlin.collections.List<AttachmentPutModel>**](AttachmentPutModel.md) | | | +| **attachments** | [**kotlin.collections.List<AttachmentUpdateRequest>**](AttachmentUpdateRequest.md) | | | | **parentStepId** | [**java.util.UUID**](java.util.UUID.md) | | [optional] | diff --git a/docs/TestResultUpdateModel.md b/docs/TestResultUpdateV2Request.md similarity index 66% rename from docs/TestResultUpdateModel.md rename to docs/TestResultUpdateV2Request.md index 3291f04..1b738ab 100644 --- a/docs/TestResultUpdateModel.md +++ b/docs/TestResultUpdateV2Request.md @@ -1,18 +1,19 @@ -# TestResultUpdateModel +# TestResultUpdateV2Request ## Properties | Name | Type | Description | Notes | | ------------ | ------------- | ------------- | ------------- | | **failureClassIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | | [optional] | | **outcome** | [**TestResultOutcome**](TestResultOutcome.md) | | [optional] | +| **statusCode** | **kotlin.String** | | [optional] | | **comment** | **kotlin.String** | | [optional] | -| **links** | [**kotlin.collections.List<LinkModel>**](LinkModel.md) | | [optional] | -| **stepResults** | [**kotlin.collections.List<StepResultModel>**](StepResultModel.md) | | [optional] | -| **attachments** | [**kotlin.collections.List<AttachmentPutModel>**](AttachmentPutModel.md) | | [optional] | +| **links** | [**kotlin.collections.List<Link>**](Link.md) | | [optional] | +| **stepResults** | [**kotlin.collections.List<StepResult>**](StepResult.md) | | [optional] | +| **attachments** | [**kotlin.collections.List<AttachmentUpdateRequest>**](AttachmentUpdateRequest.md) | | [optional] | | **durationInMs** | **kotlin.Long** | | [optional] | | **duration** | **kotlin.Long** | | [optional] | -| **stepComments** | [**kotlin.collections.List<TestResultStepCommentPutModel>**](TestResultStepCommentPutModel.md) | | [optional] | +| **stepComments** | [**kotlin.collections.List<TestResultStepCommentUpdateRequest>**](TestResultStepCommentUpdateRequest.md) | | [optional] | | **setupResults** | [**kotlin.collections.List<AttachmentPutModelAutoTestStepResultsModel>**](AttachmentPutModelAutoTestStepResultsModel.md) | | [optional] | | **teardownResults** | [**kotlin.collections.List<AttachmentPutModelAutoTestStepResultsModel>**](AttachmentPutModelAutoTestStepResultsModel.md) | | [optional] | | **message** | **kotlin.String** | | [optional] | diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 506692c..5a178af 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -4,11 +4,14 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost**](TestResultsApi.md#apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost) | **POST** /api/v2/testResults/external-projects/{externalProjectId}/defects/external-forms | | +| [**apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost**](TestResultsApi.md#apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost) | **POST** /api/v2/testResults/external-projects/{externalProjectId}/defects | | | [**apiV2TestResultsIdAggregatedGet**](TestResultsApi.md#apiV2TestResultsIdAggregatedGet) | **GET** /api/v2/testResults/{id}/aggregated | Get test result by ID aggregated with previous results | | [**apiV2TestResultsIdAttachmentsAttachmentIdPut**](TestResultsApi.md#apiV2TestResultsIdAttachmentsAttachmentIdPut) | **PUT** /api/v2/testResults/{id}/attachments/{attachmentId} | Attach file to the test result | | [**apiV2TestResultsIdAttachmentsInfoGet**](TestResultsApi.md#apiV2TestResultsIdAttachmentsInfoGet) | **GET** /api/v2/testResults/{id}/attachments/info | Get test result attachments meta-information | | [**apiV2TestResultsIdGet**](TestResultsApi.md#apiV2TestResultsIdGet) | **GET** /api/v2/testResults/{id} | Get test result by ID | | [**apiV2TestResultsIdPut**](TestResultsApi.md#apiV2TestResultsIdPut) | **PUT** /api/v2/testResults/{id} | Edit test result by ID | +| [**apiV2TestResultsIdRerunsGet**](TestResultsApi.md#apiV2TestResultsIdRerunsGet) | **GET** /api/v2/testResults/{id}/reruns | Get reruns | | [**apiV2TestResultsSearchPost**](TestResultsApi.md#apiV2TestResultsSearchPost) | **POST** /api/v2/testResults/search | Search for test results | | [**apiV2TestResultsStatisticsFilterPost**](TestResultsApi.md#apiV2TestResultsStatisticsFilterPost) | **POST** /api/v2/testResults/statistics/filter | Search for test results and extract statistics | | [**createAttachment**](TestResultsApi.md#createAttachment) | **POST** /api/v2/testResults/{id}/attachments | Upload and link attachment to TestResult | @@ -18,9 +21,107 @@ All URIs are relative to *http://localhost* | [**getAttachments**](TestResultsApi.md#getAttachments) | **GET** /api/v2/testResults/{id}/attachments | Get all attachments of TestResult | + +# **apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost** +> GetExternalFormApiResult apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost(externalProjectId, testResultsSelectApiModel) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestResultsApi() +val externalProjectId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | +val testResultsSelectApiModel : TestResultsSelectApiModel = // TestResultsSelectApiModel | +try { + val result : GetExternalFormApiResult = apiInstance.apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost(externalProjectId, testResultsSelectApiModel) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestResultsApi#apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestResultsApi#apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost") + e.printStackTrace() +} +``` + +### Parameters +| **externalProjectId** | **java.util.UUID**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **testResultsSelectApiModel** | [**TestResultsSelectApiModel**](TestResultsSelectApiModel.md)| | [optional] | + +### Return type + +[**GetExternalFormApiResult**](GetExternalFormApiResult.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost** +> DefectApiModel apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost(externalProjectId, createDefectApiModel) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestResultsApi() +val externalProjectId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | +val createDefectApiModel : CreateDefectApiModel = // CreateDefectApiModel | +try { + val result : DefectApiModel = apiInstance.apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost(externalProjectId, createDefectApiModel) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestResultsApi#apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestResultsApi#apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost") + e.printStackTrace() +} +``` + +### Parameters +| **externalProjectId** | **java.util.UUID**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **createDefectApiModel** | [**CreateDefectApiModel**](CreateDefectApiModel.md)| | [optional] | + +### Return type + +[**DefectApiModel**](DefectApiModel.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **apiV2TestResultsIdAggregatedGet** -> TestResultModel apiV2TestResultsIdAggregatedGet(id) +> TestResultResponse apiV2TestResultsIdAggregatedGet(id) Get test result by ID aggregated with previous results @@ -33,7 +134,7 @@ Get test result by ID aggregated with previous results val apiInstance = TestResultsApi() val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Test result unique ID try { - val result : TestResultModel = apiInstance.apiV2TestResultsIdAggregatedGet(id) + val result : TestResultResponse = apiInstance.apiV2TestResultsIdAggregatedGet(id) println(result) } catch (e: ClientException) { println("4xx response calling TestResultsApi#apiV2TestResultsIdAggregatedGet") @@ -51,7 +152,7 @@ try { ### Return type -[**TestResultModel**](TestResultModel.md) +[**TestResultResponse**](TestResultResponse.md) ### Authorization @@ -162,7 +263,7 @@ Configure Bearer or PrivateToken: # **apiV2TestResultsIdGet** -> TestResultModel apiV2TestResultsIdGet(id) +> TestResultResponse apiV2TestResultsIdGet(id) Get test result by ID @@ -175,7 +276,7 @@ Get test result by ID val apiInstance = TestResultsApi() val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Test result unique ID try { - val result : TestResultModel = apiInstance.apiV2TestResultsIdGet(id) + val result : TestResultResponse = apiInstance.apiV2TestResultsIdGet(id) println(result) } catch (e: ClientException) { println("4xx response calling TestResultsApi#apiV2TestResultsIdGet") @@ -193,7 +294,7 @@ try { ### Return type -[**TestResultModel**](TestResultModel.md) +[**TestResultResponse**](TestResultResponse.md) ### Authorization @@ -209,7 +310,7 @@ Configure Bearer or PrivateToken: # **apiV2TestResultsIdPut** -> apiV2TestResultsIdPut(id, testResultUpdateModel) +> apiV2TestResultsIdPut(id, testResultUpdateV2Request) Edit test result by ID @@ -221,9 +322,9 @@ Edit test result by ID val apiInstance = TestResultsApi() val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Test result unique ID -val testResultUpdateModel : TestResultUpdateModel = // TestResultUpdateModel | +val testResultUpdateV2Request : TestResultUpdateV2Request = // TestResultUpdateV2Request | try { - apiInstance.apiV2TestResultsIdPut(id, testResultUpdateModel) + apiInstance.apiV2TestResultsIdPut(id, testResultUpdateV2Request) } catch (e: ClientException) { println("4xx response calling TestResultsApi#apiV2TestResultsIdPut") e.printStackTrace() @@ -237,7 +338,7 @@ try { | **id** | **java.util.UUID**| Test result unique ID | | | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **testResultUpdateModel** | [**TestResultUpdateModel**](TestResultUpdateModel.md)| | [optional] | +| **testResultUpdateV2Request** | [**TestResultUpdateV2Request**](TestResultUpdateV2Request.md)| | [optional] | ### Return type @@ -255,9 +356,56 @@ Configure Bearer or PrivateToken: - **Content-Type**: application/json - **Accept**: application/json + +# **apiV2TestResultsIdRerunsGet** +> RerunsModel apiV2TestResultsIdRerunsGet(id) + +Get reruns + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestResultsApi() +val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | Test result unique ID +try { + val result : RerunsModel = apiInstance.apiV2TestResultsIdRerunsGet(id) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestResultsApi#apiV2TestResultsIdRerunsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestResultsApi#apiV2TestResultsIdRerunsGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **id** | **java.util.UUID**| Test result unique ID | | + +### Return type + +[**RerunsModel**](RerunsModel.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2TestResultsSearchPost** -> kotlin.collections.List<TestResultShortGetModel> apiV2TestResultsSearchPost(skip, take, orderBy, searchField, searchValue, testResultsFilterModel) +> kotlin.collections.List<TestResultShortResponse> apiV2TestResultsSearchPost(skip, take, orderBy, searchField, searchValue, testResultsFilterRequest) Search for test results @@ -273,9 +421,9 @@ val take : kotlin.Int = 56 // kotlin.Int | Amount of items to be taken (limit) val orderBy : kotlin.String = orderBy_example // kotlin.String | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) val searchField : kotlin.String = searchField_example // kotlin.String | Property name for searching val searchValue : kotlin.String = searchValue_example // kotlin.String | Value for searching -val testResultsFilterModel : TestResultsFilterModel = // TestResultsFilterModel | +val testResultsFilterRequest : TestResultsFilterRequest = // TestResultsFilterRequest | try { - val result : kotlin.collections.List = apiInstance.apiV2TestResultsSearchPost(skip, take, orderBy, searchField, searchValue, testResultsFilterModel) + val result : kotlin.collections.List = apiInstance.apiV2TestResultsSearchPost(skip, take, orderBy, searchField, searchValue, testResultsFilterRequest) println(result) } catch (e: ClientException) { println("4xx response calling TestResultsApi#apiV2TestResultsSearchPost") @@ -294,11 +442,11 @@ try { | **searchValue** | **kotlin.String**| Value for searching | [optional] | | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **testResultsFilterModel** | [**TestResultsFilterModel**](TestResultsFilterModel.md)| | [optional] | +| **testResultsFilterRequest** | [**TestResultsFilterRequest**](TestResultsFilterRequest.md)| | [optional] | ### Return type -[**kotlin.collections.List<TestResultShortGetModel>**](TestResultShortGetModel.md) +[**kotlin.collections.List<TestResultShortResponse>**](TestResultShortResponse.md) ### Authorization @@ -314,7 +462,7 @@ Configure Bearer or PrivateToken: # **apiV2TestResultsStatisticsFilterPost** -> TestResultsStatisticsGetModel apiV2TestResultsStatisticsFilterPost(testResultsFilterModel) +> TestResultsStatisticsResponse apiV2TestResultsStatisticsFilterPost(testResultsFilterRequest) Search for test results and extract statistics @@ -325,9 +473,9 @@ Search for test results and extract statistics //import ru.testit.kotlin.client.models.* val apiInstance = TestResultsApi() -val testResultsFilterModel : TestResultsFilterModel = // TestResultsFilterModel | +val testResultsFilterRequest : TestResultsFilterRequest = // TestResultsFilterRequest | try { - val result : TestResultsStatisticsGetModel = apiInstance.apiV2TestResultsStatisticsFilterPost(testResultsFilterModel) + val result : TestResultsStatisticsResponse = apiInstance.apiV2TestResultsStatisticsFilterPost(testResultsFilterRequest) println(result) } catch (e: ClientException) { println("4xx response calling TestResultsApi#apiV2TestResultsStatisticsFilterPost") @@ -341,11 +489,11 @@ try { ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **testResultsFilterModel** | [**TestResultsFilterModel**](TestResultsFilterModel.md)| | [optional] | +| **testResultsFilterRequest** | [**TestResultsFilterRequest**](TestResultsFilterRequest.md)| | [optional] | ### Return type -[**TestResultsStatisticsGetModel**](TestResultsStatisticsGetModel.md) +[**TestResultsStatisticsResponse**](TestResultsStatisticsResponse.md) ### Authorization diff --git a/docs/TestResultsExtractionApiModel.md b/docs/TestResultsExtractionApiModel.md new file mode 100644 index 0000000..09814d2 --- /dev/null +++ b/docs/TestResultsExtractionApiModel.md @@ -0,0 +1,10 @@ + +# TestResultsExtractionApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **ids** | [**GuidExtractionModel**](GuidExtractionModel.md) | Set of extracted test result IDs | [optional] | + + + diff --git a/docs/TestResultsFilterModel.md b/docs/TestResultsFilterModel.md index a45e600..8bc015c 100644 --- a/docs/TestResultsFilterModel.md +++ b/docs/TestResultsFilterModel.md @@ -4,20 +4,21 @@ ## Properties | Name | Type | Description | Notes | | ------------ | ------------- | ------------- | ------------- | -| **testRunIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result test run IDs to search for | [optional] | -| **autoTestGlobalIds** | **kotlin.collections.List<kotlin.Long>** | Specifies an autotest global IDs to search results for | [optional] | -| **name** | **kotlin.String** | Specifies an autotest name to search results for | [optional] | -| **createdDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result creation date and time range to search for | [optional] | -| **modifiedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result modified date and time range to search for | [optional] | -| **startedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result started on date and time range to search for | [optional] | -| **completedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result completed on date and time range to search for | [optional] | -| **duration** | [**Int64RangeSelectorModel**](Int64RangeSelectorModel.md) | Specifies a test result duration range to search for | [optional] | -| **resultReasons** | **kotlin.collections.List<kotlin.String>** | Specifies result reasons for searching test results | [optional] | -| **configurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result configuration IDs to search for | [optional] | -| **outcomes** | [**kotlin.collections.List<TestResultOutcome>**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] | -| **failureCategories** | [**kotlin.collections.List<FailureCategoryModel>**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] | -| **namespace** | **kotlin.String** | Specifies a test result namespace to search for | [optional] | -| **className** | **kotlin.String** | Specifies a test result class name to search for | [optional] | +| **configurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | | [optional] | +| **outcomes** | [**kotlin.collections.List<TestResultOutcome>**](TestResultOutcome.md) | | [optional] | +| **statusCodes** | **kotlin.collections.List<kotlin.String>** | | [optional] | +| **failureCategories** | [**kotlin.collections.List<FailureCategoryModel>**](FailureCategoryModel.md) | | [optional] | +| **namespace** | **kotlin.String** | | [optional] | +| **className** | **kotlin.String** | | [optional] | +| **autoTestGlobalIds** | **kotlin.collections.List<kotlin.Long>** | | [optional] | +| **name** | **kotlin.String** | | [optional] | +| **createdDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] | +| **modifiedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] | +| **startedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] | +| **completedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] | +| **duration** | [**Int64RangeSelectorModel**](Int64RangeSelectorModel.md) | | [optional] | +| **resultReasons** | **kotlin.collections.List<kotlin.String>** | | [optional] | +| **testRunIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | | [optional] | diff --git a/docs/TestResultsFilterRequest.md b/docs/TestResultsFilterRequest.md new file mode 100644 index 0000000..e76b8ec --- /dev/null +++ b/docs/TestResultsFilterRequest.md @@ -0,0 +1,24 @@ + +# TestResultsFilterRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **configurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result configuration IDs to search for | [optional] | +| **outcomes** | [**kotlin.collections.List<TestResultOutcome>**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] | +| **statusCodes** | **kotlin.collections.List<kotlin.String>** | Specifies a test result status codes to search for | [optional] | +| **failureCategories** | [**kotlin.collections.List<FailureCategoryModel>**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] | +| **namespace** | **kotlin.String** | Specifies a test result namespace to search for | [optional] | +| **className** | **kotlin.String** | Specifies a test result class name to search for | [optional] | +| **autoTestGlobalIds** | **kotlin.collections.List<kotlin.Long>** | Specifies an autotest global IDs to search results for | [optional] | +| **name** | **kotlin.String** | Specifies an autotest name to search results for | [optional] | +| **createdDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result creation date and time range to search for | [optional] | +| **modifiedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result modified date and time range to search for | [optional] | +| **startedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result started on date and time range to search for | [optional] | +| **completedOn** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test result completed on date and time range to search for | [optional] | +| **duration** | [**Int64RangeSelectorModel**](Int64RangeSelectorModel.md) | Specifies a test result duration range to search for | [optional] | +| **resultReasons** | **kotlin.collections.List<kotlin.String>** | Specifies result reasons for searching test results | [optional] | +| **testRunIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result test run IDs to search for | [optional] | + + + diff --git a/docs/TestResultsLocalFilterModel.md b/docs/TestResultsLocalFilterModel.md index 5d29225..76590cf 100644 --- a/docs/TestResultsLocalFilterModel.md +++ b/docs/TestResultsLocalFilterModel.md @@ -6,6 +6,7 @@ | ------------ | ------------- | ------------- | ------------- | | **configurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result configuration IDs to search for | [optional] | | **outcomes** | [**kotlin.collections.List<TestResultOutcome>**](TestResultOutcome.md) | Specifies a test result outcomes to search for | [optional] | +| **statusCodes** | **kotlin.collections.List<kotlin.String>** | Specifies a test result status codes to search for | [optional] | | **failureCategories** | [**kotlin.collections.List<FailureCategoryModel>**](FailureCategoryModel.md) | Specifies a test result failure categories to search for | [optional] | | **namespace** | **kotlin.String** | Specifies a test result namespace to search for | [optional] | | **className** | **kotlin.String** | Specifies a test result class name to search for | [optional] | diff --git a/docs/TestResultsSelectApiModel.md b/docs/TestResultsSelectApiModel.md new file mode 100644 index 0000000..1e12ba9 --- /dev/null +++ b/docs/TestResultsSelectApiModel.md @@ -0,0 +1,11 @@ + +# TestResultsSelectApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **filter** | [**TestResultsFilterRequest**](TestResultsFilterRequest.md) | Test result filters | | +| **extractionModel** | [**TestResultsExtractionApiModel**](TestResultsExtractionApiModel.md) | Test results extraction model | | + + + diff --git a/docs/TestResultsStatisticsFailureCategories.md b/docs/TestResultsStatisticsFailureCategories.md new file mode 100644 index 0000000..f9abce9 --- /dev/null +++ b/docs/TestResultsStatisticsFailureCategories.md @@ -0,0 +1,12 @@ + +# TestResultsStatisticsFailureCategories + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **infrastructureDefect** | **kotlin.Int** | Number of test results which outcomes were caused by some infrastructure defect | | +| **productDefect** | **kotlin.Int** | Number of test results which outcomes were caused by some tested product defect | | +| **testDefect** | **kotlin.Int** | Number of test results which outcomes were caused by test itself | | + + + diff --git a/docs/TestResultsStatisticsResponse.md b/docs/TestResultsStatisticsResponse.md new file mode 100644 index 0000000..a163cf0 --- /dev/null +++ b/docs/TestResultsStatisticsResponse.md @@ -0,0 +1,11 @@ + +# TestResultsStatisticsResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **statuses** | [**TestResultsStatisticsStatuses**](TestResultsStatisticsStatuses.md) | Test results counts aggregated by outcome | [readonly] | +| **failureCategories** | [**TestResultsStatisticsFailureCategories**](TestResultsStatisticsFailureCategories.md) | Test results counts aggregated by result failure categories | [readonly] | + + + diff --git a/docs/TestResultsStatisticsStatuses.md b/docs/TestResultsStatisticsStatuses.md new file mode 100644 index 0000000..a0e1f6f --- /dev/null +++ b/docs/TestResultsStatisticsStatuses.md @@ -0,0 +1,14 @@ + +# TestResultsStatisticsStatuses + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **inProgress** | **kotlin.Int** | Number of test results which is running currently | | +| **passed** | **kotlin.Int** | Number of test results which successfully passed | | +| **failed** | **kotlin.Int** | Number of test results which failed with an error | | +| **skipped** | **kotlin.Int** | Number of test results which did not run and were skipped | | +| **blocked** | **kotlin.Int** | Number of test results which cannot be launched | | + + + diff --git a/docs/TestRunFilterModel.md b/docs/TestRunFilterModel.md index 6e5ed33..d6870c1 100644 --- a/docs/TestRunFilterModel.md +++ b/docs/TestRunFilterModel.md @@ -16,6 +16,7 @@ | **testResultsOutcome** | [**kotlin.collections.List<TestResultOutcome>**](TestResultOutcome.md) | Specifies test results outcomes | [optional] | | **failureCategory** | [**kotlin.collections.List<FailureCategoryModel>**](FailureCategoryModel.md) | Specifies failure categories | [optional] | | **completedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | Specifies a test run range of completed date to search for | [optional] | +| **testResultsConfigurationIds** | [**kotlin.collections.List<java.util.UUID>**](java.util.UUID.md) | Specifies a test result configuration IDs to search for | [optional] | diff --git a/docs/TestRunShortGetModel.md b/docs/TestRunShortGetModel.md index e4146e0..c87b41d 100644 --- a/docs/TestRunShortGetModel.md +++ b/docs/TestRunShortGetModel.md @@ -12,6 +12,7 @@ | **isDeleted** | **kotlin.Boolean** | Is the test run is deleted | | | **autoTestsCount** | **kotlin.Int** | Number of AutoTests run in the test run | | | **statistics** | [**TestResultsStatisticsGetModel**](TestResultsStatisticsGetModel.md) | Statistics of the test run | | +| **testResultsConfigurations** | [**kotlin.collections.List<ConfigurationShortModel>**](ConfigurationShortModel.md) | Test results configurations | | | **startedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the test run was started | [optional] | | **completedDate** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Completion date of the test run | [optional] | | **modifiedById** | [**java.util.UUID**](java.util.UUID.md) | Unique ID of user who modified the test run last time | [optional] | diff --git a/docs/TestRunStatisticsErrorCategoriesGetModel.md b/docs/TestRunStatisticsErrorCategoriesGetModel.md index a5dac15..3be52b3 100644 --- a/docs/TestRunStatisticsErrorCategoriesGetModel.md +++ b/docs/TestRunStatisticsErrorCategoriesGetModel.md @@ -4,8 +4,6 @@ ## Properties | Name | Type | Description | Notes | | ------------ | ------------- | ------------- | ------------- | -| **noAnalytics** | **kotlin.Int** | Number of test results which outcomes were not analyzed | | -| **noDefect** | **kotlin.Int** | Number of test results which outcomes were not caused by any defect | | | **infrastructureDefect** | **kotlin.Int** | Number of test results which outcomes were caused by some infrastructure defect | | | **productDefect** | **kotlin.Int** | Number of test results which outcomes were caused by some tested product defect | | | **testDefect** | **kotlin.Int** | Number of test results which outcomes were caused by test itself | | diff --git a/docs/TestRunV2GetModel.md b/docs/TestRunV2GetModel.md index 9eec604..ab2abda 100644 --- a/docs/TestRunV2GetModel.md +++ b/docs/TestRunV2GetModel.md @@ -11,6 +11,7 @@ | **attachments** | [**kotlin.collections.List<AttachmentModel>**](AttachmentModel.md) | | | | **links** | [**kotlin.collections.List<LinkModel>**](LinkModel.md) | | | | **webhooks** | [**kotlin.collections.List<NamedEntityModel>**](NamedEntityModel.md) | | | +| **runCount** | **kotlin.Int** | | | | **id** | [**java.util.UUID**](java.util.UUID.md) | | | | **name** | **kotlin.String** | | | | **startedOn** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | | [optional] | diff --git a/docs/TestRunsApi.md b/docs/TestRunsApi.md index e0eb997..d56944f 100644 --- a/docs/TestRunsApi.md +++ b/docs/TestRunsApi.md @@ -5,8 +5,10 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | | ------------- | ------------- | ------------- | | [**apiV2TestRunsDelete**](TestRunsApi.md#apiV2TestRunsDelete) | **DELETE** /api/v2/testRuns | Delete multiple test runs | +| [**apiV2TestRunsIdAutoTestsNamespacesGet**](TestRunsApi.md#apiV2TestRunsIdAutoTestsNamespacesGet) | **GET** /api/v2/testRuns/{id}/autoTestsNamespaces | Get autotest classes and namespaces in test run | | [**apiV2TestRunsIdDelete**](TestRunsApi.md#apiV2TestRunsIdDelete) | **DELETE** /api/v2/testRuns/{id} | Delete test run | | [**apiV2TestRunsIdPurgePost**](TestRunsApi.md#apiV2TestRunsIdPurgePost) | **POST** /api/v2/testRuns/{id}/purge | Permanently delete test run from archive | +| [**apiV2TestRunsIdRerunsPost**](TestRunsApi.md#apiV2TestRunsIdRerunsPost) | **POST** /api/v2/testRuns/{id}/reruns | Manual autotests rerun in test run | | [**apiV2TestRunsIdRestorePost**](TestRunsApi.md#apiV2TestRunsIdRestorePost) | **POST** /api/v2/testRuns/{id}/restore | Restore test run from the archive | | [**apiV2TestRunsIdStatisticsFilterPost**](TestRunsApi.md#apiV2TestRunsIdStatisticsFilterPost) | **POST** /api/v2/testRuns/{id}/statistics/filter | Search for the test run test results and build statistics | | [**apiV2TestRunsIdTestPointsResultsGet**](TestRunsApi.md#apiV2TestRunsIdTestPointsResultsGet) | **GET** /api/v2/testRuns/{id}/testPoints/results | Get test results from the test run grouped by test points | @@ -77,6 +79,53 @@ Configure Bearer or PrivateToken: - **Content-Type**: application/json - **Accept**: application/json + +# **apiV2TestRunsIdAutoTestsNamespacesGet** +> AutoTestNamespacesCountResponse apiV2TestRunsIdAutoTestsNamespacesGet(id) + +Get autotest classes and namespaces in test run + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestRunsApi() +val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | +try { + val result : AutoTestNamespacesCountResponse = apiInstance.apiV2TestRunsIdAutoTestsNamespacesGet(id) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestRunsApi#apiV2TestRunsIdAutoTestsNamespacesGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestRunsApi#apiV2TestRunsIdAutoTestsNamespacesGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **id** | **java.util.UUID**| | | + +### Return type + +[**AutoTestNamespacesCountResponse**](AutoTestNamespacesCountResponse.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2TestRunsIdDelete** > apiV2TestRunsIdDelete(id) @@ -173,6 +222,55 @@ Configure Bearer or PrivateToken: - **Content-Type**: Not defined - **Accept**: application/json + +# **apiV2TestRunsIdRerunsPost** +> ManualRerunResultModel apiV2TestRunsIdRerunsPost(id, manualRerunSelectModel) + +Manual autotests rerun in test run + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = TestRunsApi() +val id : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | +val manualRerunSelectModel : ManualRerunSelectModel = // ManualRerunSelectModel | +try { + val result : ManualRerunResultModel = apiInstance.apiV2TestRunsIdRerunsPost(id, manualRerunSelectModel) + println(result) +} catch (e: ClientException) { + println("4xx response calling TestRunsApi#apiV2TestRunsIdRerunsPost") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling TestRunsApi#apiV2TestRunsIdRerunsPost") + e.printStackTrace() +} +``` + +### Parameters +| **id** | **java.util.UUID**| | | +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **manualRerunSelectModel** | [**ManualRerunSelectModel**](ManualRerunSelectModel.md)| | [optional] | + +### Return type + +[**ManualRerunResultModel**](ManualRerunResultModel.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **apiV2TestRunsIdRestorePost** > apiV2TestRunsIdRestorePost(id) diff --git a/docs/TestStatus.md b/docs/TestStatus.md new file mode 100644 index 0000000..b59f19a --- /dev/null +++ b/docs/TestStatus.md @@ -0,0 +1,16 @@ + +# TestStatus + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **name** | **kotlin.String** | | | +| **type** | [**TestStatusType**](TestStatusType.md) | | | +| **isBased** | **kotlin.Boolean** | | | +| **isDefault** | **kotlin.Boolean** | | | +| **code** | **kotlin.String** | | | +| **description** | **kotlin.String** | | [optional] | + + + diff --git a/docs/TestStatusCreateModel.md b/docs/TestStatusCreateModel.md new file mode 100644 index 0000000..0412930 --- /dev/null +++ b/docs/TestStatusCreateModel.md @@ -0,0 +1,13 @@ + +# TestStatusCreateModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | | | +| **type** | [**TestStatusType**](TestStatusType.md) | | | +| **code** | **kotlin.String** | | | +| **description** | **kotlin.String** | | [optional] | + + + diff --git a/docs/TestStatusModel.md b/docs/TestStatusModel.md new file mode 100644 index 0000000..55dce6a --- /dev/null +++ b/docs/TestStatusModel.md @@ -0,0 +1,12 @@ + +# TestStatusModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **name** | **kotlin.String** | | | +| **code** | **kotlin.String** | | | + + + diff --git a/docs/TestStatusType.md b/docs/TestStatusType.md new file mode 100644 index 0000000..bddd03d --- /dev/null +++ b/docs/TestStatusType.md @@ -0,0 +1,18 @@ + +# TestStatusType + +## Enum + + + * `Failed` (value: `"Failed"`) + + * `InProgress` (value: `"InProgress"`) + + * `Incomplete` (value: `"Incomplete"`) + + * `Succeeded` (value: `"Succeeded"`) + + * `Pending` (value: `"Pending"`) + + + diff --git a/docs/TestStatusUpdateModel.md b/docs/TestStatusUpdateModel.md new file mode 100644 index 0000000..05bbebc --- /dev/null +++ b/docs/TestStatusUpdateModel.md @@ -0,0 +1,12 @@ + +# TestStatusUpdateModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **id** | [**java.util.UUID**](java.util.UUID.md) | | | +| **name** | **kotlin.String** | | | +| **description** | **kotlin.String** | | [optional] | + + + diff --git a/docs/UserCustomNameValidationResponse.md b/docs/UserCustomNameValidationResponse.md new file mode 100644 index 0000000..4cad1f8 --- /dev/null +++ b/docs/UserCustomNameValidationResponse.md @@ -0,0 +1,10 @@ + +# UserCustomNameValidationResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **exists** | **kotlin.Boolean** | | | + + + diff --git a/docs/UsersApi.md b/docs/UsersApi.md new file mode 100644 index 0000000..40c6c6c --- /dev/null +++ b/docs/UsersApi.md @@ -0,0 +1,56 @@ +# UsersApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**apiV2UsersExistsGet**](UsersApi.md#apiV2UsersExistsGet) | **GET** /api/v2/users/exists | | + + + +# **apiV2UsersExistsGet** +> UserCustomNameValidationResponse apiV2UsersExistsGet(userName) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = UsersApi() +val userName : kotlin.String = userName_example // kotlin.String | +try { + val result : UserCustomNameValidationResponse = apiInstance.apiV2UsersExistsGet(userName) + println(result) +} catch (e: ClientException) { + println("4xx response calling UsersApi#apiV2UsersExistsGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling UsersApi#apiV2UsersExistsGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **userName** | **kotlin.String**| | [optional] | + +### Return type + +[**UserCustomNameValidationResponse**](UserCustomNameValidationResponse.md) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + diff --git a/docs/WebHookEventTypeRequest.md b/docs/WebHookEventTypeRequest.md new file mode 100644 index 0000000..3a9fdb6 --- /dev/null +++ b/docs/WebHookEventTypeRequest.md @@ -0,0 +1,42 @@ + +# WebHookEventTypeRequest + +## Enum + + + * `AutomatedTestRunCreated` (value: `"AutomatedTestRunCreated"`) + + * `TestPlansStatusChanged` (value: `"TestPlansStatusChanged"`) + + * `TestRunStopped` (value: `"TestRunStopped"`) + + * `TestPointAssigned` (value: `"TestPointAssigned"`) + + * `TestResultJiraIssueCreated` (value: `"TestResultJiraIssueCreated"`) + + * `AutoTestFinished` (value: `"AutoTestFinished"`) + + * `UserMentionedInComment` (value: `"UserMentionedInComment"`) + + * `UserSelectedInWorkItemAttribute` (value: `"UserSelectedInWorkItemAttribute"`) + + * `AllTestPointsFinished` (value: `"AllTestPointsFinished"`) + + * `AllAutoTestsFinished` (value: `"AllAutoTestsFinished"`) + + * `AutoTestChanged` (value: `"AutoTestChanged"`) + + * `WorkItemAutoTestRelationChanged` (value: `"WorkItemAutoTestRelationChanged"`) + + * `WorkItemAttributeChanged` (value: `"WorkItemAttributeChanged"`) + + * `WorkItemChanged` (value: `"WorkItemChanged"`) + + * `ConfigurationChanged` (value: `"ConfigurationChanged"`) + + * `ProjectChanged` (value: `"ProjectChanged"`) + + * `TestPlanChanged` (value: `"TestPlanChanged"`) + + + diff --git a/docs/WebhookBulkUpdateApiModel.md b/docs/WebhookBulkUpdateApiModel.md new file mode 100644 index 0000000..236f127 --- /dev/null +++ b/docs/WebhookBulkUpdateApiModel.md @@ -0,0 +1,10 @@ + +# WebhookBulkUpdateApiModel + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **isEnabled** | **kotlin.Boolean** | | | + + + diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index dba2bf5..2d9846c 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -4,16 +4,64 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**apiV2WebhooksDelete**](WebhooksApi.md#apiV2WebhooksDelete) | **DELETE** /api/v2/webhooks | | | [**apiV2WebhooksGet**](WebhooksApi.md#apiV2WebhooksGet) | **GET** /api/v2/webhooks | Get all webhooks | | [**apiV2WebhooksIdDelete**](WebhooksApi.md#apiV2WebhooksIdDelete) | **DELETE** /api/v2/webhooks/{id} | Delete webhook by ID | | [**apiV2WebhooksIdGet**](WebhooksApi.md#apiV2WebhooksIdGet) | **GET** /api/v2/webhooks/{id} | Get webhook by ID | | [**apiV2WebhooksIdPut**](WebhooksApi.md#apiV2WebhooksIdPut) | **PUT** /api/v2/webhooks/{id} | Edit webhook by ID | | [**apiV2WebhooksPost**](WebhooksApi.md#apiV2WebhooksPost) | **POST** /api/v2/webhooks | Create webhook | +| [**apiV2WebhooksPut**](WebhooksApi.md#apiV2WebhooksPut) | **PUT** /api/v2/webhooks | | | [**apiV2WebhooksSearchPost**](WebhooksApi.md#apiV2WebhooksSearchPost) | **POST** /api/v2/webhooks/search | Search for webhooks | | [**apiV2WebhooksSpecialVariablesGet**](WebhooksApi.md#apiV2WebhooksSpecialVariablesGet) | **GET** /api/v2/webhooks/specialVariables | Get special variables for webhook event type | | [**apiV2WebhooksTestPost**](WebhooksApi.md#apiV2WebhooksTestPost) | **POST** /api/v2/webhooks/test | Test webhook's url | + +# **apiV2WebhooksDelete** +> apiV2WebhooksDelete(webhooksDeleteRequest) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = WebhooksApi() +val webhooksDeleteRequest : WebhooksDeleteRequest = // WebhooksDeleteRequest | +try { + apiInstance.apiV2WebhooksDelete(webhooksDeleteRequest) +} catch (e: ClientException) { + println("4xx response calling WebhooksApi#apiV2WebhooksDelete") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling WebhooksApi#apiV2WebhooksDelete") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **webhooksDeleteRequest** | [**WebhooksDeleteRequest**](WebhooksDeleteRequest.md)| | [optional] | + +### Return type + +null (empty response body) + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + # **apiV2WebhooksGet** > kotlin.collections.List<WebHookModel> apiV2WebhooksGet(projectId) @@ -241,6 +289,53 @@ try { ### Authorization +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **apiV2WebhooksPut** +> WebhooksUpdateResponse apiV2WebhooksPut(webhooksUpdateRequest) + + + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = WebhooksApi() +val webhooksUpdateRequest : WebhooksUpdateRequest = // WebhooksUpdateRequest | +try { + val result : WebhooksUpdateResponse = apiInstance.apiV2WebhooksPut(webhooksUpdateRequest) + println(result) +} catch (e: ClientException) { + println("4xx response calling WebhooksApi#apiV2WebhooksPut") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling WebhooksApi#apiV2WebhooksPut") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **webhooksUpdateRequest** | [**WebhooksUpdateRequest**](WebhooksUpdateRequest.md)| | [optional] | + +### Return type + +[**WebhooksUpdateResponse**](WebhooksUpdateResponse.md) + +### Authorization + + Configure Bearer or PrivateToken: ApiClient.apiKey["Authorization"] = "" ApiClient.apiKeyPrefix["Authorization"] = "" diff --git a/docs/WebhooksDeleteFilterRequest.md b/docs/WebhooksDeleteFilterRequest.md new file mode 100644 index 0000000..17d7922 --- /dev/null +++ b/docs/WebhooksDeleteFilterRequest.md @@ -0,0 +1,14 @@ + +# WebhooksDeleteFilterRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | Specifies a webhook name to search for | [optional] | +| **eventTypes** | [**kotlin.collections.Set<WebHookEventTypeRequest>**](WebHookEventTypeRequest.md) | Specifies a webhook event types to search for | [optional] | +| **methods** | [**kotlin.collections.Set<RequestTypeRequest>**](RequestTypeRequest.md) | Specifies a webhook methods to search for | [optional] | +| **projectIds** | [**kotlin.collections.Set<java.util.UUID>**](java.util.UUID.md) | Specifies a webhook project IDs to search for | [optional] | +| **isEnabled** | **kotlin.Boolean** | Specifies a webhook deleted status to search for | [optional] | + + + diff --git a/docs/WebhooksDeleteRequest.md b/docs/WebhooksDeleteRequest.md new file mode 100644 index 0000000..961ad54 --- /dev/null +++ b/docs/WebhooksDeleteRequest.md @@ -0,0 +1,11 @@ + +# WebhooksDeleteRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **filter** | [**WebhooksDeleteFilterRequest**](WebhooksDeleteFilterRequest.md) | | | +| **extractor** | [**WebhooksExtractionRequest**](WebhooksExtractionRequest.md) | | | + + + diff --git a/docs/WebhooksExtractionRequest.md b/docs/WebhooksExtractionRequest.md new file mode 100644 index 0000000..3271b87 --- /dev/null +++ b/docs/WebhooksExtractionRequest.md @@ -0,0 +1,10 @@ + +# WebhooksExtractionRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **ids** | [**GuidExtractionModel**](GuidExtractionModel.md) | | [optional] | + + + diff --git a/docs/WebhooksFilterRequest.md b/docs/WebhooksFilterRequest.md new file mode 100644 index 0000000..14d5b57 --- /dev/null +++ b/docs/WebhooksFilterRequest.md @@ -0,0 +1,13 @@ + +# WebhooksFilterRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **name** | **kotlin.String** | Specifies a webhook name to search for | [optional] | +| **eventTypes** | [**kotlin.collections.Set<WebHookEventTypeRequest>**](WebHookEventTypeRequest.md) | Specifies a webhook event types to search for | [optional] | +| **methods** | [**kotlin.collections.Set<RequestTypeRequest>**](RequestTypeRequest.md) | Specifies a webhook methods to search for | [optional] | +| **projectIds** | [**kotlin.collections.Set<java.util.UUID>**](java.util.UUID.md) | Specifies a webhook project IDs to search for | [optional] | + + + diff --git a/docs/WebhooksUpdateRequest.md b/docs/WebhooksUpdateRequest.md new file mode 100644 index 0000000..6e69024 --- /dev/null +++ b/docs/WebhooksUpdateRequest.md @@ -0,0 +1,12 @@ + +# WebhooksUpdateRequest + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **filter** | [**WebhooksFilterRequest**](WebhooksFilterRequest.md) | | | +| **model** | [**WebhookBulkUpdateApiModel**](WebhookBulkUpdateApiModel.md) | | | +| **extractor** | [**WebhooksExtractionRequest**](WebhooksExtractionRequest.md) | | | + + + diff --git a/docs/WebhooksUpdateResponse.md b/docs/WebhooksUpdateResponse.md new file mode 100644 index 0000000..1f9e8cf --- /dev/null +++ b/docs/WebhooksUpdateResponse.md @@ -0,0 +1,10 @@ + +# WebhooksUpdateResponse + +## Properties +| Name | Type | Description | Notes | +| ------------ | ------------- | ------------- | ------------- | +| **updatedCount** | **kotlin.Int** | | | + + + diff --git a/docs/WorkItemsApi.md b/docs/WorkItemsApi.md index 40e0542..ea61cfe 100644 --- a/docs/WorkItemsApi.md +++ b/docs/WorkItemsApi.md @@ -385,7 +385,7 @@ Configure Bearer or PrivateToken: # **apiV2WorkItemsIdTestResultsHistoryGet** -> kotlin.collections.List<TestResultHistoryReportModel> apiV2WorkItemsIdTestResultsHistoryGet(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) +> kotlin.collections.List<TestResultHistoryResponse> apiV2WorkItemsIdTestResultsHistoryGet(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) Get test results history of WorkItem @@ -414,7 +414,7 @@ val orderBy : kotlin.String = orderBy_example // kotlin.String | SQL-like ORDER val searchField : kotlin.String = searchField_example // kotlin.String | Property name for searching val searchValue : kotlin.String = searchValue_example // kotlin.String | Value for searching try { - val result : kotlin.collections.List = apiInstance.apiV2WorkItemsIdTestResultsHistoryGet(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) + val result : kotlin.collections.List = apiInstance.apiV2WorkItemsIdTestResultsHistoryGet(id, from, to, configurationIds, testPlanIds, userIds, outcomes, isAutomated, automated, testRunIds, skip, take, orderBy, searchField, searchValue) println(result) } catch (e: ClientException) { println("4xx response calling WorkItemsApi#apiV2WorkItemsIdTestResultsHistoryGet") @@ -446,7 +446,7 @@ try { ### Return type -[**kotlin.collections.List<TestResultHistoryReportModel>**](TestResultHistoryReportModel.md) +[**kotlin.collections.List<TestResultHistoryResponse>**](TestResultHistoryResponse.md) ### Authorization diff --git a/docs/WorkItemsCommentsApi.md b/docs/WorkItemsCommentsApi.md index 57c2f5a..1208302 100644 --- a/docs/WorkItemsCommentsApi.md +++ b/docs/WorkItemsCommentsApi.md @@ -7,6 +7,7 @@ All URIs are relative to *http://localhost* | [**apiV2WorkItemsCommentsCommentIdDelete**](WorkItemsCommentsApi.md#apiV2WorkItemsCommentsCommentIdDelete) | **DELETE** /api/v2/workItems/comments/{commentId} | Delete WorkItem comment | | [**apiV2WorkItemsCommentsPost**](WorkItemsCommentsApi.md#apiV2WorkItemsCommentsPost) | **POST** /api/v2/workItems/comments | Create WorkItem comment | | [**apiV2WorkItemsCommentsPut**](WorkItemsCommentsApi.md#apiV2WorkItemsCommentsPut) | **PUT** /api/v2/workItems/comments | Update work item comment | +| [**apiV2WorkItemsIdCommentsCountGet**](WorkItemsCommentsApi.md#apiV2WorkItemsIdCommentsCountGet) | **GET** /api/v2/workItems/{id}/comments/count | Get work item comments count | | [**apiV2WorkItemsIdCommentsGet**](WorkItemsCommentsApi.md#apiV2WorkItemsIdCommentsGet) | **GET** /api/v2/workItems/{id}/comments | Get work item comments | @@ -153,6 +154,53 @@ Configure Bearer or PrivateToken: - **Content-Type**: application/json - **Accept**: application/json + +# **apiV2WorkItemsIdCommentsCountGet** +> kotlin.Int apiV2WorkItemsIdCommentsCountGet(id) + +Get work item comments count + +### Example +```kotlin +// Import classes: +//import ru.testit.kotlin.client.infrastructure.* +//import ru.testit.kotlin.client.models.* + +val apiInstance = WorkItemsCommentsApi() +val id : kotlin.String = id_example // kotlin.String | Unique or global ID of the work item +try { + val result : kotlin.Int = apiInstance.apiV2WorkItemsIdCommentsCountGet(id) + println(result) +} catch (e: ClientException) { + println("4xx response calling WorkItemsCommentsApi#apiV2WorkItemsIdCommentsCountGet") + e.printStackTrace() +} catch (e: ServerException) { + println("5xx response calling WorkItemsCommentsApi#apiV2WorkItemsIdCommentsCountGet") + e.printStackTrace() +} +``` + +### Parameters +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **id** | **kotlin.String**| Unique or global ID of the work item | | + +### Return type + +**kotlin.Int** + +### Authorization + + +Configure Bearer or PrivateToken: + ApiClient.apiKey["Authorization"] = "" + ApiClient.apiKeyPrefix["Authorization"] = "" + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + # **apiV2WorkItemsIdCommentsGet** > kotlin.collections.List<WorkItemCommentModel> apiV2WorkItemsIdCommentsGet(id) diff --git a/gradle.properties b/gradle.properties index b43111a..f692721 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=0.1.0 +version=0.2.0 org.gradle.daemon=true org.gradle.parallel=true diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/AttachmentsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/AttachmentsApi.kt index 3351668..5b41510 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/AttachmentsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/AttachmentsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.AttachmentModel @@ -40,7 +40,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class AttachmentsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class AttachmentsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -218,6 +218,77 @@ class AttachmentsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl ) } + /** + * Get attachment metadata + * + * @param id + * @return AttachmentModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2AttachmentsIdMetadataGet(id: java.util.UUID) : AttachmentModel { + val localVarResponse = apiV2AttachmentsIdMetadataGetWithHttpInfo(id = id) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as AttachmentModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get attachment metadata + * + * @param id + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2AttachmentsIdMetadataGetWithHttpInfo(id: java.util.UUID) : ApiResponse { + val localVariableConfig = apiV2AttachmentsIdMetadataGetRequestConfig(id = id) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2AttachmentsIdMetadataGet + * + * @param id + * @return RequestConfig + */ + fun apiV2AttachmentsIdMetadataGetRequestConfig(id: java.util.UUID) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/attachments/{id}/metadata".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Get size of attachments storage in bytes * diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/AutoTestsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/AutoTestsApi.kt index 266e2d0..732a814 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/AutoTestsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/AutoTestsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.AutoTestAverageDurationModel @@ -30,7 +30,6 @@ import ru.testit.kotlin.client.models.FlakyBulkModel import ru.testit.kotlin.client.models.Operation import ru.testit.kotlin.client.models.ProblemDetails import ru.testit.kotlin.client.models.TestResultChronologyModel -import ru.testit.kotlin.client.models.TestResultHistoryReportModel import ru.testit.kotlin.client.models.TestRunShortModel import ru.testit.kotlin.client.models.ValidationProblemDetails import ru.testit.kotlin.client.models.WorkItemIdModel @@ -52,7 +51,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class AutoTestsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class AutoTestsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -1394,168 +1393,6 @@ class AutoTestsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClie ) } - /** - * - * - * @param id - * @param from Take results from this date (optional) - * @param to Take results until this date (optional) - * @param configurationIds Identifiers of test result configurations (optional) - * @param testPlanIds Identifiers of test plans which contain test results (optional) - * @param userIds Identifiers of users who set test results (optional) - * @param outcomes List of outcomes of test results (optional) - * @param isAutomated OBSOLETE: Use `Automated` instead (optional) - * @param automated If result must consist of only manual/automated test results (optional) - * @param testRunIds Identifiers of test runs which contain test results (optional) - * @param skip Amount of items to be skipped (offset) (optional) - * @param take Amount of items to be taken (limit) (optional) - * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - * @param searchField Property name for searching (optional) - * @param searchValue Value for searching (optional) - * @return kotlin.collections.List - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - @Deprecated(message = "This operation is deprecated.") - fun getWorkItemResults(id: kotlin.String, from: java.time.OffsetDateTime? = null, to: java.time.OffsetDateTime? = null, configurationIds: kotlin.collections.List? = null, testPlanIds: kotlin.collections.List? = null, userIds: kotlin.collections.List? = null, outcomes: kotlin.collections.List? = null, isAutomated: kotlin.Boolean? = null, automated: kotlin.Boolean? = null, testRunIds: kotlin.collections.List? = null, skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null) : kotlin.collections.List { - @Suppress("DEPRECATION") - val localVarResponse = getWorkItemResultsWithHttpInfo(id = id, from = from, to = to, configurationIds = configurationIds, testPlanIds = testPlanIds, userIds = userIds, outcomes = outcomes, isAutomated = isAutomated, automated = automated, testRunIds = testRunIds, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) - - return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * - * - * @param id - * @param from Take results from this date (optional) - * @param to Take results until this date (optional) - * @param configurationIds Identifiers of test result configurations (optional) - * @param testPlanIds Identifiers of test plans which contain test results (optional) - * @param userIds Identifiers of users who set test results (optional) - * @param outcomes List of outcomes of test results (optional) - * @param isAutomated OBSOLETE: Use `Automated` instead (optional) - * @param automated If result must consist of only manual/automated test results (optional) - * @param testRunIds Identifiers of test runs which contain test results (optional) - * @param skip Amount of items to be skipped (offset) (optional) - * @param take Amount of items to be taken (limit) (optional) - * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - * @param searchField Property name for searching (optional) - * @param searchValue Value for searching (optional) - * @return ApiResponse?> - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class) - @Deprecated(message = "This operation is deprecated.") - fun getWorkItemResultsWithHttpInfo(id: kotlin.String, from: java.time.OffsetDateTime?, to: java.time.OffsetDateTime?, configurationIds: kotlin.collections.List?, testPlanIds: kotlin.collections.List?, userIds: kotlin.collections.List?, outcomes: kotlin.collections.List?, isAutomated: kotlin.Boolean?, automated: kotlin.Boolean?, testRunIds: kotlin.collections.List?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : ApiResponse?> { - @Suppress("DEPRECATION") - val localVariableConfig = getWorkItemResultsRequestConfig(id = id, from = from, to = to, configurationIds = configurationIds, testPlanIds = testPlanIds, userIds = userIds, outcomes = outcomes, isAutomated = isAutomated, automated = automated, testRunIds = testRunIds, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) - - return request>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation getWorkItemResults - * - * @param id - * @param from Take results from this date (optional) - * @param to Take results until this date (optional) - * @param configurationIds Identifiers of test result configurations (optional) - * @param testPlanIds Identifiers of test plans which contain test results (optional) - * @param userIds Identifiers of users who set test results (optional) - * @param outcomes List of outcomes of test results (optional) - * @param isAutomated OBSOLETE: Use `Automated` instead (optional) - * @param automated If result must consist of only manual/automated test results (optional) - * @param testRunIds Identifiers of test runs which contain test results (optional) - * @param skip Amount of items to be skipped (offset) (optional) - * @param take Amount of items to be taken (limit) (optional) - * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - * @param searchField Property name for searching (optional) - * @param searchValue Value for searching (optional) - * @return RequestConfig - */ - @Deprecated(message = "This operation is deprecated.") - fun getWorkItemResultsRequestConfig(id: kotlin.String, from: java.time.OffsetDateTime?, to: java.time.OffsetDateTime?, configurationIds: kotlin.collections.List?, testPlanIds: kotlin.collections.List?, userIds: kotlin.collections.List?, outcomes: kotlin.collections.List?, isAutomated: kotlin.Boolean?, automated: kotlin.Boolean?, testRunIds: kotlin.collections.List?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : RequestConfig { - val localVariableBody = null - val localVariableQuery: MultiValueMap = mutableMapOf>() - .apply { - if (from != null) { - put("from", listOf(parseDateToQueryString(from))) - } - if (to != null) { - put("to", listOf(parseDateToQueryString(to))) - } - if (configurationIds != null) { - put("configurationIds", toMultiValue(configurationIds.toList(), "multi")) - } - if (testPlanIds != null) { - put("testPlanIds", toMultiValue(testPlanIds.toList(), "multi")) - } - if (userIds != null) { - put("userIds", toMultiValue(userIds.toList(), "multi")) - } - if (outcomes != null) { - put("outcomes", toMultiValue(outcomes.toList(), "multi")) - } - if (isAutomated != null) { - put("isAutomated", listOf(isAutomated.toString())) - } - if (automated != null) { - put("automated", listOf(automated.toString())) - } - if (testRunIds != null) { - put("testRunIds", toMultiValue(testRunIds.toList(), "multi")) - } - if (skip != null) { - put("Skip", listOf(skip.toString())) - } - if (take != null) { - put("Take", listOf(take.toString())) - } - if (orderBy != null) { - put("OrderBy", listOf(orderBy.toString())) - } - if (searchField != null) { - put("SearchField", listOf(searchField.toString())) - } - if (searchValue != null) { - put("SearchValue", listOf(searchValue.toString())) - } - } - val localVariableHeaders: MutableMap = mutableMapOf() - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.GET, - path = "/api/v2/autoTests/{id}/testResultHistory".replace("{"+"id"+"}", encodeURIComponent(id.toString())), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - /** * Get work items linked to autotest * This method links an autotest to a test case or a checklist. A manual test case with a linked automated work item is marked in the test management system as an autotest. You can run it from graphical user interface (GUI). To do that: 1. Open the project in GUI. 2. Go to <b>Test plans</b> section and switch to the <b>Execution</b> tab. 3. Select the autotest(s) you want to run using checkboxes. 4. In the toolbar above the test list, click <b>Run autotests</b>. diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/BackgroundJobsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/BackgroundJobsApi.kt index 85e213e..ec67c1b 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/BackgroundJobsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/BackgroundJobsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.BackgroundJobFilterModel @@ -41,7 +41,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class BackgroundJobsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class BackgroundJobsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ConfigurationsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ConfigurationsApi.kt index b24578c..c69fa38 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ConfigurationsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ConfigurationsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ConfigurationByParametersModel @@ -45,7 +45,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ConfigurationsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ConfigurationsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributeTemplatesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributeTemplatesApi.kt index 85a5e26..598bb50 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributeTemplatesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributeTemplatesApi.kt @@ -16,13 +16,14 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.CustomAttributeTemplateModel import ru.testit.kotlin.client.models.CustomAttributeTemplatePostModel import ru.testit.kotlin.client.models.CustomAttributeTemplatePutModel import ru.testit.kotlin.client.models.CustomAttributeTemplateSearchQueryModel +import ru.testit.kotlin.client.models.CustomAttributeTemplateValidationResult import ru.testit.kotlin.client.models.ProblemDetails import ru.testit.kotlin.client.models.SearchCustomAttributeTemplateGetModel import ru.testit.kotlin.client.models.ValidationProblemDetails @@ -43,7 +44,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class CustomAttributeTemplatesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class CustomAttributeTemplatesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -51,6 +52,82 @@ class CustomAttributeTemplatesApi(basePath: kotlin.String = defaultBasePath, cli } } + /** + * + * + * @param name (optional) + * @return CustomAttributeTemplateValidationResult + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2CustomAttributesTemplatesExistsGet(name: kotlin.String? = null) : CustomAttributeTemplateValidationResult { + val localVarResponse = apiV2CustomAttributesTemplatesExistsGetWithHttpInfo(name = name) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as CustomAttributeTemplateValidationResult + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param name (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2CustomAttributesTemplatesExistsGetWithHttpInfo(name: kotlin.String?) : ApiResponse { + val localVariableConfig = apiV2CustomAttributesTemplatesExistsGetRequestConfig(name = name) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2CustomAttributesTemplatesExistsGet + * + * @param name (optional) + * @return RequestConfig + */ + fun apiV2CustomAttributesTemplatesExistsGetRequestConfig(name: kotlin.String?) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf>() + .apply { + if (name != null) { + put("name", listOf(name.toString())) + } + } + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/customAttributes/templates/exists", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Exclude CustomAttributes from CustomAttributeTemplate * Use case User sets attribute template internal identifier User sets attribute internal identifiers User runs method execution System delete attributes from attributes tempalte diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributesApi.kt index 7f0fbc4..1c2c6de 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/CustomAttributesApi.kt @@ -16,11 +16,12 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.CustomAttributeModel import ru.testit.kotlin.client.models.CustomAttributeSearchQueryModel +import ru.testit.kotlin.client.models.CustomAttributeValidationResult import ru.testit.kotlin.client.models.GlobalCustomAttributePostModel import ru.testit.kotlin.client.models.GlobalCustomAttributeUpdateModel import ru.testit.kotlin.client.models.ProblemDetails @@ -42,7 +43,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class CustomAttributesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class CustomAttributesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -50,6 +51,88 @@ class CustomAttributesApi(basePath: kotlin.String = defaultBasePath, client: OkH } } + /** + * + * + * @param name (optional) + * @param isGlobal (optional) + * @return CustomAttributeValidationResult + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2CustomAttributesExistsGet(name: kotlin.String? = null, isGlobal: kotlin.Boolean? = null) : CustomAttributeValidationResult { + val localVarResponse = apiV2CustomAttributesExistsGetWithHttpInfo(name = name, isGlobal = isGlobal) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as CustomAttributeValidationResult + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param name (optional) + * @param isGlobal (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2CustomAttributesExistsGetWithHttpInfo(name: kotlin.String?, isGlobal: kotlin.Boolean?) : ApiResponse { + val localVariableConfig = apiV2CustomAttributesExistsGetRequestConfig(name = name, isGlobal = isGlobal) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2CustomAttributesExistsGet + * + * @param name (optional) + * @param isGlobal (optional) + * @return RequestConfig + */ + fun apiV2CustomAttributesExistsGetRequestConfig(name: kotlin.String?, isGlobal: kotlin.Boolean?) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf>() + .apply { + if (name != null) { + put("name", listOf(name.toString())) + } + if (isGlobal != null) { + put("isGlobal", listOf(isGlobal.toString())) + } + } + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/customAttributes/exists", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Delete global attribute * diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/NotificationsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/NotificationsApi.kt index 80218de..b4232d6 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/NotificationsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/NotificationsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.NotificationModel @@ -41,7 +41,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class NotificationsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class NotificationsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ParametersApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ParametersApi.kt index 1fbba26..58eb50b 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ParametersApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ParametersApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ParameterFilterModel @@ -43,7 +43,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ParametersApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ParametersApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributeTemplatesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributeTemplatesApi.kt index a8cf3eb..2d78a0a 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributeTemplatesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributeTemplatesApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -40,7 +40,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectAttributeTemplatesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectAttributeTemplatesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributesApi.kt index c0c2fac..6c02017 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectAttributesApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.CustomAttributeGetModel @@ -44,7 +44,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectAttributesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectAttributesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectConfigurationsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectConfigurationsApi.kt index c46107c..15b23b6 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectConfigurationsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectConfigurationsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ConfigurationModel @@ -39,7 +39,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectConfigurationsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectConfigurationsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectImportApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectImportApi.kt deleted file mode 100644 index 2ddfb5d..0000000 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectImportApi.kt +++ /dev/null @@ -1,298 +0,0 @@ -/** - * - * Please note: - * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * Do not edit this file manually. - * - */ - -@file:Suppress( - "ArrayInDataClass", - "EnumEntryName", - "RemoveRedundantQualifierName", - "UnusedImport" -) - -package ru.testit.kotlin.client.apis - -import java.io.IOException -import okhttp3.OkHttpClient -import okhttp3.HttpUrl - -import ru.testit.kotlin.client.models.ProblemDetails -import ru.testit.kotlin.client.models.ValidationProblemDetails - -import com.squareup.moshi.Json - -import ru.testit.kotlin.client.infrastructure.ApiClient -import ru.testit.kotlin.client.infrastructure.ApiResponse -import ru.testit.kotlin.client.infrastructure.ClientException -import ru.testit.kotlin.client.infrastructure.ClientError -import ru.testit.kotlin.client.infrastructure.ServerException -import ru.testit.kotlin.client.infrastructure.ServerError -import ru.testit.kotlin.client.infrastructure.MultiValueMap -import ru.testit.kotlin.client.infrastructure.PartConfig -import ru.testit.kotlin.client.infrastructure.RequestConfig -import ru.testit.kotlin.client.infrastructure.RequestMethod -import ru.testit.kotlin.client.infrastructure.ResponseType -import ru.testit.kotlin.client.infrastructure.Success -import ru.testit.kotlin.client.infrastructure.toMultiValue - -class ProjectImportApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { - companion object { - @JvmStatic - val defaultBasePath: String by lazy { - System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost") - } - } - - /** - * Import project from JSON file into existing project in background job - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return java.util.UUID - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportToExistingProject(projectId: kotlin.String, file: java.io.File? = null) : java.util.UUID { - @Suppress("DEPRECATION") - val localVarResponse = backgroundImportToExistingProjectWithHttpInfo(projectId = projectId, file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as java.util.UUID - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from JSON file into existing project in background job - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class) - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportToExistingProjectWithHttpInfo(projectId: kotlin.String, file: java.io.File?) : ApiResponse { - @Suppress("DEPRECATION") - val localVariableConfig = backgroundImportToExistingProjectRequestConfig(projectId = projectId, file = file) - - return request>, java.util.UUID>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation backgroundImportToExistingProject - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return RequestConfig - */ - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportToExistingProjectRequestConfig(projectId: kotlin.String, file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf() - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/{projectId}/import/json".replace("{"+"projectId"+"}", encodeURIComponent(projectId.toString())), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - - /** - * Import project from Zip file into existing project in background job - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return java.util.UUID - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportZipToExistingProject(projectId: kotlin.String, file: java.io.File? = null) : java.util.UUID { - @Suppress("DEPRECATION") - val localVarResponse = backgroundImportZipToExistingProjectWithHttpInfo(projectId = projectId, file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as java.util.UUID - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from Zip file into existing project in background job - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class) - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportZipToExistingProjectWithHttpInfo(projectId: kotlin.String, file: java.io.File?) : ApiResponse { - @Suppress("DEPRECATION") - val localVariableConfig = backgroundImportZipToExistingProjectRequestConfig(projectId = projectId, file = file) - - return request>, java.util.UUID>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation backgroundImportZipToExistingProject - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param file Select file (optional) - * @return RequestConfig - */ - @Deprecated(message = "This operation is deprecated.") - fun backgroundImportZipToExistingProjectRequestConfig(projectId: kotlin.String, file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf() - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/{projectId}/import/zip".replace("{"+"projectId"+"}", encodeURIComponent(projectId.toString())), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - - /** - * Import project from JSON file into existing project - * Use case User attaches project as json file taken from export or export-by-testPlans method User runs method execution System updates project System returns no content response - * @param projectId Project internal (UUID) or global (integer) identifier - * @param includeAttachments (optional) - * @param file Select file (optional) - * @return void - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - @Deprecated(message = "This operation is deprecated.") - fun importToExistingProject(projectId: kotlin.String, includeAttachments: kotlin.Boolean? = null, file: java.io.File? = null) : Unit { - @Suppress("DEPRECATION") - val localVarResponse = importToExistingProjectWithHttpInfo(projectId = projectId, includeAttachments = includeAttachments, file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> Unit - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from JSON file into existing project - * Use case User attaches project as json file taken from export or export-by-testPlans method User runs method execution System updates project System returns no content response - * @param projectId Project internal (UUID) or global (integer) identifier - * @param includeAttachments (optional) - * @param file Select file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Throws(IllegalStateException::class, IOException::class) - @Deprecated(message = "This operation is deprecated.") - fun importToExistingProjectWithHttpInfo(projectId: kotlin.String, includeAttachments: kotlin.Boolean?, file: java.io.File?) : ApiResponse { - @Suppress("DEPRECATION") - val localVariableConfig = importToExistingProjectRequestConfig(projectId = projectId, includeAttachments = includeAttachments, file = file) - - return request>, Unit>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation importToExistingProject - * - * @param projectId Project internal (UUID) or global (integer) identifier - * @param includeAttachments (optional) - * @param file Select file (optional) - * @return RequestConfig - */ - @Deprecated(message = "This operation is deprecated.") - fun importToExistingProjectRequestConfig(projectId: kotlin.String, includeAttachments: kotlin.Boolean?, file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf>() - .apply { - if (includeAttachments != null) { - put("includeAttachments", listOf(includeAttachments.toString())) - } - } - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/{projectId}/import".replace("{"+"projectId"+"}", encodeURIComponent(projectId.toString())), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - - - private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String = - HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0] -} diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSectionsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSectionsApi.kt index d6fa6a1..72db93d 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSectionsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSectionsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -39,7 +39,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectSectionsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectSectionsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSettingsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSettingsApi.kt new file mode 100644 index 0000000..4ca7a37 --- /dev/null +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectSettingsApi.kt @@ -0,0 +1,198 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package ru.testit.kotlin.client.apis + +import java.io.IOException +import okhttp3.Call +import okhttp3.HttpUrl + +import ru.testit.kotlin.client.models.AutoTestProjectSettingsGetModel +import ru.testit.kotlin.client.models.AutoTestProjectSettingsPostModel +import ru.testit.kotlin.client.models.ProblemDetails +import ru.testit.kotlin.client.models.ValidationProblemDetails + +import com.squareup.moshi.Json + +import ru.testit.kotlin.client.infrastructure.ApiClient +import ru.testit.kotlin.client.infrastructure.ApiResponse +import ru.testit.kotlin.client.infrastructure.ClientException +import ru.testit.kotlin.client.infrastructure.ClientError +import ru.testit.kotlin.client.infrastructure.ServerException +import ru.testit.kotlin.client.infrastructure.ServerError +import ru.testit.kotlin.client.infrastructure.MultiValueMap +import ru.testit.kotlin.client.infrastructure.PartConfig +import ru.testit.kotlin.client.infrastructure.RequestConfig +import ru.testit.kotlin.client.infrastructure.RequestMethod +import ru.testit.kotlin.client.infrastructure.ResponseType +import ru.testit.kotlin.client.infrastructure.Success +import ru.testit.kotlin.client.infrastructure.toMultiValue + +class ProjectSettingsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { + companion object { + @JvmStatic + val defaultBasePath: String by lazy { + System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost") + } + } + + /** + * Set autotest project settings. + * + * @param projectId + * @param autoTestProjectSettingsPostModel (optional) + * @return void + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2ProjectsProjectIdSettingsAutotestsPost(projectId: kotlin.String, autoTestProjectSettingsPostModel: AutoTestProjectSettingsPostModel? = null) : Unit { + val localVarResponse = apiV2ProjectsProjectIdSettingsAutotestsPostWithHttpInfo(projectId = projectId, autoTestProjectSettingsPostModel = autoTestProjectSettingsPostModel) + + return when (localVarResponse.responseType) { + ResponseType.Success -> Unit + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Set autotest project settings. + * + * @param projectId + * @param autoTestProjectSettingsPostModel (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Throws(IllegalStateException::class, IOException::class) + fun apiV2ProjectsProjectIdSettingsAutotestsPostWithHttpInfo(projectId: kotlin.String, autoTestProjectSettingsPostModel: AutoTestProjectSettingsPostModel?) : ApiResponse { + val localVariableConfig = apiV2ProjectsProjectIdSettingsAutotestsPostRequestConfig(projectId = projectId, autoTestProjectSettingsPostModel = autoTestProjectSettingsPostModel) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2ProjectsProjectIdSettingsAutotestsPost + * + * @param projectId + * @param autoTestProjectSettingsPostModel (optional) + * @return RequestConfig + */ + fun apiV2ProjectsProjectIdSettingsAutotestsPostRequestConfig(projectId: kotlin.String, autoTestProjectSettingsPostModel: AutoTestProjectSettingsPostModel?) : RequestConfig { + val localVariableBody = autoTestProjectSettingsPostModel + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v2/projects/{projectId}/settings/autotests".replace("{"+"projectId"+"}", encodeURIComponent(projectId.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + + /** + * Get autotest project settings. + * + * @param projectId + * @return AutoTestProjectSettingsGetModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun getAutotestProjectSettings(projectId: kotlin.String) : AutoTestProjectSettingsGetModel { + val localVarResponse = getAutotestProjectSettingsWithHttpInfo(projectId = projectId) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as AutoTestProjectSettingsGetModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get autotest project settings. + * + * @param projectId + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun getAutotestProjectSettingsWithHttpInfo(projectId: kotlin.String) : ApiResponse { + val localVariableConfig = getAutotestProjectSettingsRequestConfig(projectId = projectId) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation getAutotestProjectSettings + * + * @param projectId + * @return RequestConfig + */ + fun getAutotestProjectSettingsRequestConfig(projectId: kotlin.String) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/projects/{projectId}/settings/autotests".replace("{"+"projectId"+"}", encodeURIComponent(projectId.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + + + private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String = + HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0] +} diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlanAttributesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlanAttributesApi.kt index db055f5..05d9ba4 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlanAttributesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlanAttributesApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.CustomAttributeGetModel @@ -42,7 +42,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectTestPlanAttributesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectTestPlanAttributesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlansApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlansApi.kt index caf7bef..aae1ea6 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlansApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectTestPlansApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -41,7 +41,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectTestPlansApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectTestPlansApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectWorkItemsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectWorkItemsApi.kt index ee2de80..6ee1b74 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectWorkItemsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectWorkItemsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -43,7 +43,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectWorkItemsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectWorkItemsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectsApi.kt index e8c2db1..4dca169 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/ProjectsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.AutoTestNamespaceModel @@ -29,6 +29,7 @@ import ru.testit.kotlin.client.models.ProjectModel import ru.testit.kotlin.client.models.ProjectPostModel import ru.testit.kotlin.client.models.ProjectPutModel import ru.testit.kotlin.client.models.ProjectSelectModel +import ru.testit.kotlin.client.models.ProjectShortModel import ru.testit.kotlin.client.models.ProjectsFilterModel import ru.testit.kotlin.client.models.PublicTestRunModel import ru.testit.kotlin.client.models.TestPlanModel @@ -52,7 +53,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -1311,7 +1312,7 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) * @param projectsFilterModel (optional) - * @return kotlin.collections.List + * @return kotlin.collections.List * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -1320,11 +1321,11 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2ProjectsSearchPost(skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null, projectsFilterModel: ProjectsFilterModel? = null) : kotlin.collections.List { + fun apiV2ProjectsSearchPost(skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null, projectsFilterModel: ProjectsFilterModel? = null) : kotlin.collections.List { val localVarResponse = apiV2ProjectsSearchPostWithHttpInfo(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, projectsFilterModel = projectsFilterModel) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -1347,16 +1348,16 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) * @param projectsFilterModel (optional) - * @return ApiResponse?> + * @return ApiResponse?> * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2ProjectsSearchPostWithHttpInfo(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, projectsFilterModel: ProjectsFilterModel?) : ApiResponse?> { + fun apiV2ProjectsSearchPostWithHttpInfo(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, projectsFilterModel: ProjectsFilterModel?) : ApiResponse?> { val localVariableConfig = apiV2ProjectsSearchPostRequestConfig(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, projectsFilterModel = projectsFilterModel) - return request>( + return request>( localVariableConfig ) } @@ -1406,233 +1407,6 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien ) } - /** - * Import project from JSON file in background job - * - * @param file (optional) - * @return java.util.UUID - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun backgroundImportProject(file: java.io.File? = null) : java.util.UUID { - val localVarResponse = backgroundImportProjectWithHttpInfo(file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as java.util.UUID - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from JSON file in background job - * - * @param file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class) - fun backgroundImportProjectWithHttpInfo(file: java.io.File?) : ApiResponse { - val localVariableConfig = backgroundImportProjectRequestConfig(file = file) - - return request>, java.util.UUID>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation backgroundImportProject - * - * @param file (optional) - * @return RequestConfig - */ - fun backgroundImportProjectRequestConfig(file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf() - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/import/json", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - - /** - * Import project from Zip file in background job - * - * @param file (optional) - * @return java.util.UUID - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun backgroundImportZipProject(file: java.io.File? = null) : java.util.UUID { - val localVarResponse = backgroundImportZipProjectWithHttpInfo(file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as java.util.UUID - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from Zip file in background job - * - * @param file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Suppress("UNCHECKED_CAST") - @Throws(IllegalStateException::class, IOException::class) - fun backgroundImportZipProjectWithHttpInfo(file: java.io.File?) : ApiResponse { - val localVariableConfig = backgroundImportZipProjectRequestConfig(file = file) - - return request>, java.util.UUID>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation backgroundImportZipProject - * - * @param file (optional) - * @return RequestConfig - */ - fun backgroundImportZipProjectRequestConfig(file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf() - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/import/zip", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - - /** - * Import project from JSON file - * <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> This method imports a `.json` file with a project to the test management system. In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: ``` curl -X POST \"http://{domain.com}/api/v2/projects/import\" \\ -H \"accept: /\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: multipart/form-data\" \\ -F \"file=@import.txt;type=text/plain\" ``` In the second instance, a project with the name of the imported one is created. User attributes and the test library (along with content and structure) are imported. Test plan execution history from the first instance of TMS cannot be transferred. - * @param includeAttachments Enables attachment import. (optional, default to false) - * @param file Select file (optional) - * @return void - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - * @throws UnsupportedOperationException If the API returns an informational or redirection response - * @throws ClientException If the API returns a client error response - * @throws ServerException If the API returns a server error response - */ - @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - @Deprecated(message = "This operation is deprecated.") - fun callImport(includeAttachments: kotlin.Boolean? = false, file: java.io.File? = null) : Unit { - @Suppress("DEPRECATION") - val localVarResponse = callImportWithHttpInfo(includeAttachments = includeAttachments, file = file) - - return when (localVarResponse.responseType) { - ResponseType.Success -> Unit - ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") - ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") - ResponseType.ClientError -> { - val localVarError = localVarResponse as ClientError<*> - throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) - } - ResponseType.ServerError -> { - val localVarError = localVarResponse as ServerError<*> - throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) - } - } - } - - /** - * Import project from JSON file - * <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> This method imports a `.json` file with a project to the test management system. In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: ``` curl -X POST \"http://{domain.com}/api/v2/projects/import\" \\ -H \"accept: /\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: multipart/form-data\" \\ -F \"file=@import.txt;type=text/plain\" ``` In the second instance, a project with the name of the imported one is created. User attributes and the test library (along with content and structure) are imported. Test plan execution history from the first instance of TMS cannot be transferred. - * @param includeAttachments Enables attachment import. (optional, default to false) - * @param file Select file (optional) - * @return ApiResponse - * @throws IllegalStateException If the request is not correctly configured - * @throws IOException Rethrows the OkHttp execute method exception - */ - @Throws(IllegalStateException::class, IOException::class) - @Deprecated(message = "This operation is deprecated.") - fun callImportWithHttpInfo(includeAttachments: kotlin.Boolean?, file: java.io.File?) : ApiResponse { - @Suppress("DEPRECATION") - val localVariableConfig = callImportRequestConfig(includeAttachments = includeAttachments, file = file) - - return request>, Unit>( - localVariableConfig - ) - } - - /** - * To obtain the request config of the operation callImport - * - * @param includeAttachments Enables attachment import. (optional, default to false) - * @param file Select file (optional) - * @return RequestConfig - */ - @Deprecated(message = "This operation is deprecated.") - fun callImportRequestConfig(includeAttachments: kotlin.Boolean?, file: java.io.File?) : RequestConfig>> { - val localVariableBody = mapOf( - "file" to PartConfig(body = file, headers = mutableMapOf()),) - val localVariableQuery: MultiValueMap = mutableMapOf>() - .apply { - if (includeAttachments != null) { - put("includeAttachments", listOf(includeAttachments.toString())) - } - } - val localVariableHeaders: MutableMap = mutableMapOf("Content-Type" to "multipart/form-data") - localVariableHeaders["Accept"] = "application/json" - - return RequestConfig( - method = RequestMethod.POST, - path = "/api/v2/projects/import", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - body = localVariableBody - ) - } - /** * Create project * Use case User sets project parameters (listed in request example) and runs method execution System creates project System returns project model (example listed in response parameters) @@ -1784,7 +1558,7 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @return kotlin.collections.List + * @return kotlin.collections.List * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -1794,12 +1568,12 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) @Deprecated(message = "This operation is deprecated.") - fun getAllProjects(isDeleted: kotlin.Boolean? = null, projectName: kotlin.String? = null, skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null) : kotlin.collections.List { + fun getAllProjects(isDeleted: kotlin.Boolean? = null, projectName: kotlin.String? = null, skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null) : kotlin.collections.List { @Suppress("DEPRECATION") val localVarResponse = getAllProjectsWithHttpInfo(isDeleted = isDeleted, projectName = projectName, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -1823,18 +1597,18 @@ class ProjectsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @return ApiResponse?> + * @return ApiResponse?> * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) @Deprecated(message = "This operation is deprecated.") - fun getAllProjectsWithHttpInfo(isDeleted: kotlin.Boolean?, projectName: kotlin.String?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : ApiResponse?> { + fun getAllProjectsWithHttpInfo(isDeleted: kotlin.Boolean?, projectName: kotlin.String?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : ApiResponse?> { @Suppress("DEPRECATION") val localVariableConfig = getAllProjectsRequestConfig(isDeleted = isDeleted, projectName = projectName, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) - return request>( + return request>( localVariableConfig ) } diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/SearchApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/SearchApi.kt index 2720827..bf3fc1f 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/SearchApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/SearchApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.GlobalSearchRequest @@ -40,7 +40,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class SearchApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class SearchApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/SectionsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/SectionsApi.kt index c897a9e..b297240 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/SectionsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/SectionsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.DeletionState @@ -46,7 +46,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class SectionsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class SectionsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TagsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TagsApi.kt index 54bc752..a9eba00 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TagsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TagsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -42,7 +42,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TagsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TagsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TestPlansApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TestPlansApi.kt index 09a007e..365dd67 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TestPlansApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TestPlansApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ConfigurationModel @@ -29,6 +29,7 @@ import ru.testit.kotlin.client.models.TestPlanModel import ru.testit.kotlin.client.models.TestPlanPostModel import ru.testit.kotlin.client.models.TestPlanPutModel import ru.testit.kotlin.client.models.TestPlanShortModel +import ru.testit.kotlin.client.models.TestPlanSummaryModel import ru.testit.kotlin.client.models.TestPlanWithTestSuiteTreeModel import ru.testit.kotlin.client.models.TestPointAnalyticResult import ru.testit.kotlin.client.models.TestPointSelectModel @@ -55,7 +56,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TestPlansApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TestPlansApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -867,6 +868,77 @@ class TestPlansApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClie ) } + /** + * Get summary by TestPlan + * Use case User sets test plan identifier User runs method execution System returns summary by test plan + * @param id Test plan internal (guid format) or global (int format) identifier + * @return TestPlanSummaryModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestPlansIdSummariesGet(id: kotlin.String) : TestPlanSummaryModel { + val localVarResponse = apiV2TestPlansIdSummariesGetWithHttpInfo(id = id) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as TestPlanSummaryModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get summary by TestPlan + * Use case User sets test plan identifier User runs method execution System returns summary by test plan + * @param id Test plan internal (guid format) or global (int format) identifier + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestPlansIdSummariesGetWithHttpInfo(id: kotlin.String) : ApiResponse { + val localVariableConfig = apiV2TestPlansIdSummariesGetRequestConfig(id = id) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestPlansIdSummariesGet + * + * @param id Test plan internal (guid format) or global (int format) identifier + * @return RequestConfig + */ + fun apiV2TestPlansIdSummariesGetRequestConfig(id: kotlin.String) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/testPlans/{id}/summaries".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Get TestPoints with last result from TestPlan * Use case User sets test plan identifier User sets filter (listed in request example) User runs method execution System return test points with last result from test plan diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TestPointsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TestPointsApi.kt index 0172fdd..6b6dda6 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TestPointsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TestPointsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -42,7 +42,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TestPointsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TestPointsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TestResultsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TestResultsApi.kt index f0943ed..782cf1e 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TestResultsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TestResultsApi.kt @@ -16,17 +16,22 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.AttachmentModel +import ru.testit.kotlin.client.models.CreateDefectApiModel +import ru.testit.kotlin.client.models.DefectApiModel +import ru.testit.kotlin.client.models.GetExternalFormApiResult import ru.testit.kotlin.client.models.ImageResizeType import ru.testit.kotlin.client.models.ProblemDetails -import ru.testit.kotlin.client.models.TestResultModel -import ru.testit.kotlin.client.models.TestResultShortGetModel -import ru.testit.kotlin.client.models.TestResultUpdateModel -import ru.testit.kotlin.client.models.TestResultsFilterModel -import ru.testit.kotlin.client.models.TestResultsStatisticsGetModel +import ru.testit.kotlin.client.models.RerunsModel +import ru.testit.kotlin.client.models.TestResultResponse +import ru.testit.kotlin.client.models.TestResultShortResponse +import ru.testit.kotlin.client.models.TestResultUpdateV2Request +import ru.testit.kotlin.client.models.TestResultsFilterRequest +import ru.testit.kotlin.client.models.TestResultsSelectApiModel +import ru.testit.kotlin.client.models.TestResultsStatisticsResponse import ru.testit.kotlin.client.models.ValidationProblemDetails import com.squareup.moshi.Json @@ -45,7 +50,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -53,11 +58,161 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl } } + /** + * + * + * @param externalProjectId + * @param testResultsSelectApiModel (optional) + * @return GetExternalFormApiResult + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost(externalProjectId: java.util.UUID, testResultsSelectApiModel: TestResultsSelectApiModel? = null) : GetExternalFormApiResult { + val localVarResponse = apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostWithHttpInfo(externalProjectId = externalProjectId, testResultsSelectApiModel = testResultsSelectApiModel) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as GetExternalFormApiResult + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param externalProjectId + * @param testResultsSelectApiModel (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostWithHttpInfo(externalProjectId: java.util.UUID, testResultsSelectApiModel: TestResultsSelectApiModel?) : ApiResponse { + val localVariableConfig = apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostRequestConfig(externalProjectId = externalProjectId, testResultsSelectApiModel = testResultsSelectApiModel) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPost + * + * @param externalProjectId + * @param testResultsSelectApiModel (optional) + * @return RequestConfig + */ + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsExternalFormsPostRequestConfig(externalProjectId: java.util.UUID, testResultsSelectApiModel: TestResultsSelectApiModel?) : RequestConfig { + val localVariableBody = testResultsSelectApiModel + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v2/testResults/external-projects/{externalProjectId}/defects/external-forms".replace("{"+"externalProjectId"+"}", encodeURIComponent(externalProjectId.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + + /** + * + * + * @param externalProjectId + * @param createDefectApiModel (optional) + * @return DefectApiModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost(externalProjectId: java.util.UUID, createDefectApiModel: CreateDefectApiModel? = null) : DefectApiModel { + val localVarResponse = apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostWithHttpInfo(externalProjectId = externalProjectId, createDefectApiModel = createDefectApiModel) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as DefectApiModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param externalProjectId + * @param createDefectApiModel (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostWithHttpInfo(externalProjectId: java.util.UUID, createDefectApiModel: CreateDefectApiModel?) : ApiResponse { + val localVariableConfig = apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostRequestConfig(externalProjectId = externalProjectId, createDefectApiModel = createDefectApiModel) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestResultsExternalProjectsExternalProjectIdDefectsPost + * + * @param externalProjectId + * @param createDefectApiModel (optional) + * @return RequestConfig + */ + fun apiV2TestResultsExternalProjectsExternalProjectIdDefectsPostRequestConfig(externalProjectId: java.util.UUID, createDefectApiModel: CreateDefectApiModel?) : RequestConfig { + val localVariableBody = createDefectApiModel + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v2/testResults/external-projects/{externalProjectId}/defects".replace("{"+"externalProjectId"+"}", encodeURIComponent(externalProjectId.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Get test result by ID aggregated with previous results * * @param id Test result unique ID - * @return TestResultModel + * @return TestResultResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -66,11 +221,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2TestResultsIdAggregatedGet(id: java.util.UUID) : TestResultModel { + fun apiV2TestResultsIdAggregatedGet(id: java.util.UUID) : TestResultResponse { val localVarResponse = apiV2TestResultsIdAggregatedGetWithHttpInfo(id = id) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultModel + ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultResponse ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -88,16 +243,16 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * Get test result by ID aggregated with previous results * * @param id Test result unique ID - * @return ApiResponse + * @return ApiResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2TestResultsIdAggregatedGetWithHttpInfo(id: java.util.UUID) : ApiResponse { + fun apiV2TestResultsIdAggregatedGetWithHttpInfo(id: java.util.UUID) : ApiResponse { val localVariableConfig = apiV2TestResultsIdAggregatedGetRequestConfig(id = id) - return request( + return request( localVariableConfig ) } @@ -271,7 +426,7 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * Get test result by ID * * @param id Test result unique ID - * @return TestResultModel + * @return TestResultResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -280,11 +435,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2TestResultsIdGet(id: java.util.UUID) : TestResultModel { + fun apiV2TestResultsIdGet(id: java.util.UUID) : TestResultResponse { val localVarResponse = apiV2TestResultsIdGetWithHttpInfo(id = id) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultModel + ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultResponse ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -302,16 +457,16 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * Get test result by ID * * @param id Test result unique ID - * @return ApiResponse + * @return ApiResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2TestResultsIdGetWithHttpInfo(id: java.util.UUID) : ApiResponse { + fun apiV2TestResultsIdGetWithHttpInfo(id: java.util.UUID) : ApiResponse { val localVariableConfig = apiV2TestResultsIdGetRequestConfig(id = id) - return request( + return request( localVariableConfig ) } @@ -342,7 +497,7 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * Edit test result by ID * * @param id Test result unique ID - * @param testResultUpdateModel (optional) + * @param testResultUpdateV2Request (optional) * @return void * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception @@ -351,8 +506,8 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * @throws ServerException If the API returns a server error response */ @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2TestResultsIdPut(id: java.util.UUID, testResultUpdateModel: TestResultUpdateModel? = null) : Unit { - val localVarResponse = apiV2TestResultsIdPutWithHttpInfo(id = id, testResultUpdateModel = testResultUpdateModel) + fun apiV2TestResultsIdPut(id: java.util.UUID, testResultUpdateV2Request: TestResultUpdateV2Request? = null) : Unit { + val localVarResponse = apiV2TestResultsIdPutWithHttpInfo(id = id, testResultUpdateV2Request = testResultUpdateV2Request) return when (localVarResponse.responseType) { ResponseType.Success -> Unit @@ -373,16 +528,16 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * Edit test result by ID * * @param id Test result unique ID - * @param testResultUpdateModel (optional) + * @param testResultUpdateV2Request (optional) * @return ApiResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Throws(IllegalStateException::class, IOException::class) - fun apiV2TestResultsIdPutWithHttpInfo(id: java.util.UUID, testResultUpdateModel: TestResultUpdateModel?) : ApiResponse { - val localVariableConfig = apiV2TestResultsIdPutRequestConfig(id = id, testResultUpdateModel = testResultUpdateModel) + fun apiV2TestResultsIdPutWithHttpInfo(id: java.util.UUID, testResultUpdateV2Request: TestResultUpdateV2Request?) : ApiResponse { + val localVariableConfig = apiV2TestResultsIdPutRequestConfig(id = id, testResultUpdateV2Request = testResultUpdateV2Request) - return request( + return request( localVariableConfig ) } @@ -391,11 +546,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * To obtain the request config of the operation apiV2TestResultsIdPut * * @param id Test result unique ID - * @param testResultUpdateModel (optional) + * @param testResultUpdateV2Request (optional) * @return RequestConfig */ - fun apiV2TestResultsIdPutRequestConfig(id: java.util.UUID, testResultUpdateModel: TestResultUpdateModel?) : RequestConfig { - val localVariableBody = testResultUpdateModel + fun apiV2TestResultsIdPutRequestConfig(id: java.util.UUID, testResultUpdateV2Request: TestResultUpdateV2Request?) : RequestConfig { + val localVariableBody = testResultUpdateV2Request val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" @@ -411,6 +566,77 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl ) } + /** + * Get reruns + * + * @param id Test result unique ID + * @return RerunsModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestResultsIdRerunsGet(id: java.util.UUID) : RerunsModel { + val localVarResponse = apiV2TestResultsIdRerunsGetWithHttpInfo(id = id) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as RerunsModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get reruns + * + * @param id Test result unique ID + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestResultsIdRerunsGetWithHttpInfo(id: java.util.UUID) : ApiResponse { + val localVariableConfig = apiV2TestResultsIdRerunsGetRequestConfig(id = id) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestResultsIdRerunsGet + * + * @param id Test result unique ID + * @return RequestConfig + */ + fun apiV2TestResultsIdRerunsGetRequestConfig(id: java.util.UUID) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/testResults/{id}/reruns".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Search for test results * @@ -419,8 +645,8 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @param testResultsFilterModel (optional) - * @return kotlin.collections.List + * @param testResultsFilterRequest (optional) + * @return kotlin.collections.List * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -429,11 +655,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2TestResultsSearchPost(skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null, testResultsFilterModel: TestResultsFilterModel? = null) : kotlin.collections.List { - val localVarResponse = apiV2TestResultsSearchPostWithHttpInfo(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, testResultsFilterModel = testResultsFilterModel) + fun apiV2TestResultsSearchPost(skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null, testResultsFilterRequest: TestResultsFilterRequest? = null) : kotlin.collections.List { + val localVarResponse = apiV2TestResultsSearchPostWithHttpInfo(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, testResultsFilterRequest = testResultsFilterRequest) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -455,17 +681,17 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @param testResultsFilterModel (optional) - * @return ApiResponse?> + * @param testResultsFilterRequest (optional) + * @return ApiResponse?> * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2TestResultsSearchPostWithHttpInfo(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, testResultsFilterModel: TestResultsFilterModel?) : ApiResponse?> { - val localVariableConfig = apiV2TestResultsSearchPostRequestConfig(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, testResultsFilterModel = testResultsFilterModel) + fun apiV2TestResultsSearchPostWithHttpInfo(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, testResultsFilterRequest: TestResultsFilterRequest?) : ApiResponse?> { + val localVariableConfig = apiV2TestResultsSearchPostRequestConfig(skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue, testResultsFilterRequest = testResultsFilterRequest) - return request>( + return request>( localVariableConfig ) } @@ -478,11 +704,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @param testResultsFilterModel (optional) + * @param testResultsFilterRequest (optional) * @return RequestConfig */ - fun apiV2TestResultsSearchPostRequestConfig(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, testResultsFilterModel: TestResultsFilterModel?) : RequestConfig { - val localVariableBody = testResultsFilterModel + fun apiV2TestResultsSearchPostRequestConfig(skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?, testResultsFilterRequest: TestResultsFilterRequest?) : RequestConfig { + val localVariableBody = testResultsFilterRequest val localVariableQuery: MultiValueMap = mutableMapOf>() .apply { if (skip != null) { @@ -518,8 +744,8 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl /** * Search for test results and extract statistics * - * @param testResultsFilterModel (optional) - * @return TestResultsStatisticsGetModel + * @param testResultsFilterRequest (optional) + * @return TestResultsStatisticsResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -528,11 +754,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2TestResultsStatisticsFilterPost(testResultsFilterModel: TestResultsFilterModel? = null) : TestResultsStatisticsGetModel { - val localVarResponse = apiV2TestResultsStatisticsFilterPostWithHttpInfo(testResultsFilterModel = testResultsFilterModel) + fun apiV2TestResultsStatisticsFilterPost(testResultsFilterRequest: TestResultsFilterRequest? = null) : TestResultsStatisticsResponse { + val localVarResponse = apiV2TestResultsStatisticsFilterPostWithHttpInfo(testResultsFilterRequest = testResultsFilterRequest) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultsStatisticsGetModel + ResponseType.Success -> (localVarResponse as Success<*>).data as TestResultsStatisticsResponse ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -549,17 +775,17 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl /** * Search for test results and extract statistics * - * @param testResultsFilterModel (optional) - * @return ApiResponse + * @param testResultsFilterRequest (optional) + * @return ApiResponse * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2TestResultsStatisticsFilterPostWithHttpInfo(testResultsFilterModel: TestResultsFilterModel?) : ApiResponse { - val localVariableConfig = apiV2TestResultsStatisticsFilterPostRequestConfig(testResultsFilterModel = testResultsFilterModel) + fun apiV2TestResultsStatisticsFilterPostWithHttpInfo(testResultsFilterRequest: TestResultsFilterRequest?) : ApiResponse { + val localVariableConfig = apiV2TestResultsStatisticsFilterPostRequestConfig(testResultsFilterRequest = testResultsFilterRequest) - return request( + return request( localVariableConfig ) } @@ -567,11 +793,11 @@ class TestResultsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpCl /** * To obtain the request config of the operation apiV2TestResultsStatisticsFilterPost * - * @param testResultsFilterModel (optional) + * @param testResultsFilterRequest (optional) * @return RequestConfig */ - fun apiV2TestResultsStatisticsFilterPostRequestConfig(testResultsFilterModel: TestResultsFilterModel?) : RequestConfig { - val localVariableBody = testResultsFilterModel + fun apiV2TestResultsStatisticsFilterPostRequestConfig(testResultsFilterRequest: TestResultsFilterRequest?) : RequestConfig { + val localVariableBody = testResultsFilterRequest val localVariableQuery: MultiValueMap = mutableMapOf() val localVariableHeaders: MutableMap = mutableMapOf() localVariableHeaders["Content-Type"] = "application/json" diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TestRunsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TestRunsApi.kt index 7566ede..c0a0f4c 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TestRunsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TestRunsApi.kt @@ -16,10 +16,13 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl +import ru.testit.kotlin.client.models.AutoTestNamespacesCountResponse import ru.testit.kotlin.client.models.AutoTestResultsForTestRunModel +import ru.testit.kotlin.client.models.ManualRerunResultModel +import ru.testit.kotlin.client.models.ManualRerunSelectModel import ru.testit.kotlin.client.models.ProblemDetails import ru.testit.kotlin.client.models.TestPointResultModel import ru.testit.kotlin.client.models.TestResultsLocalFilterModel @@ -53,7 +56,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TestRunsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TestRunsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -133,6 +136,77 @@ class TestRunsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien ) } + /** + * Get autotest classes and namespaces in test run + * + * @param id + * @return AutoTestNamespacesCountResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestRunsIdAutoTestsNamespacesGet(id: java.util.UUID) : AutoTestNamespacesCountResponse { + val localVarResponse = apiV2TestRunsIdAutoTestsNamespacesGetWithHttpInfo(id = id) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as AutoTestNamespacesCountResponse + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get autotest classes and namespaces in test run + * + * @param id + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestRunsIdAutoTestsNamespacesGetWithHttpInfo(id: java.util.UUID) : ApiResponse { + val localVariableConfig = apiV2TestRunsIdAutoTestsNamespacesGetRequestConfig(id = id) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestRunsIdAutoTestsNamespacesGet + * + * @param id + * @return RequestConfig + */ + fun apiV2TestRunsIdAutoTestsNamespacesGetRequestConfig(id: java.util.UUID) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/testRuns/{id}/autoTestsNamespaces".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Delete test run * Use case User sets test run internal (guid format) identifier System search and delete test run @@ -271,6 +345,81 @@ class TestRunsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien ) } + /** + * Manual autotests rerun in test run + * + * @param id + * @param manualRerunSelectModel (optional) + * @return ManualRerunResultModel + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2TestRunsIdRerunsPost(id: java.util.UUID, manualRerunSelectModel: ManualRerunSelectModel? = null) : ManualRerunResultModel { + val localVarResponse = apiV2TestRunsIdRerunsPostWithHttpInfo(id = id, manualRerunSelectModel = manualRerunSelectModel) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as ManualRerunResultModel + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Manual autotests rerun in test run + * + * @param id + * @param manualRerunSelectModel (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2TestRunsIdRerunsPostWithHttpInfo(id: java.util.UUID, manualRerunSelectModel: ManualRerunSelectModel?) : ApiResponse { + val localVariableConfig = apiV2TestRunsIdRerunsPostRequestConfig(id = id, manualRerunSelectModel = manualRerunSelectModel) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2TestRunsIdRerunsPost + * + * @param id + * @param manualRerunSelectModel (optional) + * @return RequestConfig + */ + fun apiV2TestRunsIdRerunsPostRequestConfig(id: java.util.UUID, manualRerunSelectModel: ManualRerunSelectModel?) : RequestConfig { + val localVariableBody = manualRerunSelectModel + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.POST, + path = "/api/v2/testRuns/{id}/reruns".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Restore test run from the archive * Use case User sets archived test run internal (guid format) identifier System search and restore test run diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/TestSuitesApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/TestSuitesApi.kt index 455cbbb..14a5b2c 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/TestSuitesApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/TestSuitesApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ConfigurationModel @@ -48,7 +48,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class TestSuitesApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class TestSuitesApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/UsersApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/UsersApi.kt new file mode 100644 index 0000000..eb0b6d3 --- /dev/null +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/UsersApi.kt @@ -0,0 +1,129 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package ru.testit.kotlin.client.apis + +import java.io.IOException +import okhttp3.Call +import okhttp3.HttpUrl + +import ru.testit.kotlin.client.models.ProblemDetails +import ru.testit.kotlin.client.models.UserCustomNameValidationResponse +import ru.testit.kotlin.client.models.ValidationProblemDetails + +import com.squareup.moshi.Json + +import ru.testit.kotlin.client.infrastructure.ApiClient +import ru.testit.kotlin.client.infrastructure.ApiResponse +import ru.testit.kotlin.client.infrastructure.ClientException +import ru.testit.kotlin.client.infrastructure.ClientError +import ru.testit.kotlin.client.infrastructure.ServerException +import ru.testit.kotlin.client.infrastructure.ServerError +import ru.testit.kotlin.client.infrastructure.MultiValueMap +import ru.testit.kotlin.client.infrastructure.PartConfig +import ru.testit.kotlin.client.infrastructure.RequestConfig +import ru.testit.kotlin.client.infrastructure.RequestMethod +import ru.testit.kotlin.client.infrastructure.ResponseType +import ru.testit.kotlin.client.infrastructure.Success +import ru.testit.kotlin.client.infrastructure.toMultiValue + +class UsersApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { + companion object { + @JvmStatic + val defaultBasePath: String by lazy { + System.getProperties().getProperty(ApiClient.baseUrlKey, "http://localhost") + } + } + + /** + * + * + * @param userName (optional) + * @return UserCustomNameValidationResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2UsersExistsGet(userName: kotlin.String? = null) : UserCustomNameValidationResponse { + val localVarResponse = apiV2UsersExistsGetWithHttpInfo(userName = userName) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as UserCustomNameValidationResponse + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param userName (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2UsersExistsGetWithHttpInfo(userName: kotlin.String?) : ApiResponse { + val localVariableConfig = apiV2UsersExistsGetRequestConfig(userName = userName) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2UsersExistsGet + * + * @param userName (optional) + * @return RequestConfig + */ + fun apiV2UsersExistsGetRequestConfig(userName: kotlin.String?) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf>() + .apply { + if (userName != null) { + put("userName", listOf(userName.toString())) + } + } + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/users/exists", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + + + private fun encodeURIComponent(uriComponent: kotlin.String): kotlin.String = + HttpUrl.Builder().scheme("http").host("localhost").addPathSegment(uriComponent).build().encodedPathSegments[0] +} diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksApi.kt index 5dafad9..5a6c27c 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -28,6 +28,9 @@ import ru.testit.kotlin.client.models.WebHookPostModel import ru.testit.kotlin.client.models.WebHookTestModel import ru.testit.kotlin.client.models.WebhookResponse import ru.testit.kotlin.client.models.WebhookVariablesType +import ru.testit.kotlin.client.models.WebhooksDeleteRequest +import ru.testit.kotlin.client.models.WebhooksUpdateRequest +import ru.testit.kotlin.client.models.WebhooksUpdateResponse import com.squareup.moshi.Json @@ -45,7 +48,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class WebhooksApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class WebhooksApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -53,6 +56,76 @@ class WebhooksApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien } } + /** + * + * + * @param webhooksDeleteRequest (optional) + * @return void + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2WebhooksDelete(webhooksDeleteRequest: WebhooksDeleteRequest? = null) : Unit { + val localVarResponse = apiV2WebhooksDeleteWithHttpInfo(webhooksDeleteRequest = webhooksDeleteRequest) + + return when (localVarResponse.responseType) { + ResponseType.Success -> Unit + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param webhooksDeleteRequest (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Throws(IllegalStateException::class, IOException::class) + fun apiV2WebhooksDeleteWithHttpInfo(webhooksDeleteRequest: WebhooksDeleteRequest?) : ApiResponse { + val localVariableConfig = apiV2WebhooksDeleteRequestConfig(webhooksDeleteRequest = webhooksDeleteRequest) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2WebhooksDelete + * + * @param webhooksDeleteRequest (optional) + * @return RequestConfig + */ + fun apiV2WebhooksDeleteRequestConfig(webhooksDeleteRequest: WebhooksDeleteRequest?) : RequestConfig { + val localVariableBody = webhooksDeleteRequest + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.DELETE, + path = "/api/v2/webhooks", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Get all webhooks * @@ -416,6 +489,78 @@ class WebhooksApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClien ) } + /** + * + * + * @param webhooksUpdateRequest (optional) + * @return WebhooksUpdateResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2WebhooksPut(webhooksUpdateRequest: WebhooksUpdateRequest? = null) : WebhooksUpdateResponse { + val localVarResponse = apiV2WebhooksPutWithHttpInfo(webhooksUpdateRequest = webhooksUpdateRequest) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as WebhooksUpdateResponse + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * + * + * @param webhooksUpdateRequest (optional) + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2WebhooksPutWithHttpInfo(webhooksUpdateRequest: WebhooksUpdateRequest?) : ApiResponse { + val localVariableConfig = apiV2WebhooksPutRequestConfig(webhooksUpdateRequest = webhooksUpdateRequest) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2WebhooksPut + * + * @param webhooksUpdateRequest (optional) + * @return RequestConfig + */ + fun apiV2WebhooksPutRequestConfig(webhooksUpdateRequest: WebhooksUpdateRequest?) : RequestConfig { + val localVariableBody = webhooksUpdateRequest + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Content-Type"] = "application/json" + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.PUT, + path = "/api/v2/webhooks", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Search for webhooks * diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksLogsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksLogsApi.kt index 36d4d9d..1fbf9d2 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksLogsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/WebhooksLogsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -39,7 +39,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class WebhooksLogsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class WebhooksLogsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsApi.kt index ef6ad22..d93413e 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.AutoTestModel @@ -27,7 +27,7 @@ import ru.testit.kotlin.client.models.SharedStepReferenceSectionModel import ru.testit.kotlin.client.models.SharedStepReferenceSectionsQueryFilterModel import ru.testit.kotlin.client.models.SharedStepReferencesQueryFilterModel import ru.testit.kotlin.client.models.TestResultChronologyModel -import ru.testit.kotlin.client.models.TestResultHistoryReportModel +import ru.testit.kotlin.client.models.TestResultHistoryResponse import ru.testit.kotlin.client.models.ValidationProblemDetails import ru.testit.kotlin.client.models.WorkItemChangeModel import ru.testit.kotlin.client.models.WorkItemLikeModel @@ -55,7 +55,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class WorkItemsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class WorkItemsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -608,7 +608,7 @@ class WorkItemsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClie * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @return kotlin.collections.List + * @return kotlin.collections.List * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception * @throws UnsupportedOperationException If the API returns an informational or redirection response @@ -617,11 +617,11 @@ class WorkItemsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClie */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) - fun apiV2WorkItemsIdTestResultsHistoryGet(id: java.util.UUID, from: java.time.OffsetDateTime? = null, to: java.time.OffsetDateTime? = null, configurationIds: kotlin.collections.List? = null, testPlanIds: kotlin.collections.List? = null, userIds: kotlin.collections.List? = null, outcomes: kotlin.collections.List? = null, isAutomated: kotlin.Boolean? = null, automated: kotlin.Boolean? = null, testRunIds: kotlin.collections.List? = null, skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null) : kotlin.collections.List { + fun apiV2WorkItemsIdTestResultsHistoryGet(id: java.util.UUID, from: java.time.OffsetDateTime? = null, to: java.time.OffsetDateTime? = null, configurationIds: kotlin.collections.List? = null, testPlanIds: kotlin.collections.List? = null, userIds: kotlin.collections.List? = null, outcomes: kotlin.collections.List? = null, isAutomated: kotlin.Boolean? = null, automated: kotlin.Boolean? = null, testRunIds: kotlin.collections.List? = null, skip: kotlin.Int? = null, take: kotlin.Int? = null, orderBy: kotlin.String? = null, searchField: kotlin.String? = null, searchValue: kotlin.String? = null) : kotlin.collections.List { val localVarResponse = apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo(id = id, from = from, to = to, configurationIds = configurationIds, testPlanIds = testPlanIds, userIds = userIds, outcomes = outcomes, isAutomated = isAutomated, automated = automated, testRunIds = testRunIds, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) return when (localVarResponse.responseType) { - ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.collections.List ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") ResponseType.ClientError -> { @@ -653,16 +653,16 @@ class WorkItemsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClie * @param orderBy SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) * @param searchField Property name for searching (optional) * @param searchValue Value for searching (optional) - * @return ApiResponse?> + * @return ApiResponse?> * @throws IllegalStateException If the request is not correctly configured * @throws IOException Rethrows the OkHttp execute method exception */ @Suppress("UNCHECKED_CAST") @Throws(IllegalStateException::class, IOException::class) - fun apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo(id: java.util.UUID, from: java.time.OffsetDateTime?, to: java.time.OffsetDateTime?, configurationIds: kotlin.collections.List?, testPlanIds: kotlin.collections.List?, userIds: kotlin.collections.List?, outcomes: kotlin.collections.List?, isAutomated: kotlin.Boolean?, automated: kotlin.Boolean?, testRunIds: kotlin.collections.List?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : ApiResponse?> { + fun apiV2WorkItemsIdTestResultsHistoryGetWithHttpInfo(id: java.util.UUID, from: java.time.OffsetDateTime?, to: java.time.OffsetDateTime?, configurationIds: kotlin.collections.List?, testPlanIds: kotlin.collections.List?, userIds: kotlin.collections.List?, outcomes: kotlin.collections.List?, isAutomated: kotlin.Boolean?, automated: kotlin.Boolean?, testRunIds: kotlin.collections.List?, skip: kotlin.Int?, take: kotlin.Int?, orderBy: kotlin.String?, searchField: kotlin.String?, searchValue: kotlin.String?) : ApiResponse?> { val localVariableConfig = apiV2WorkItemsIdTestResultsHistoryGetRequestConfig(id = id, from = from, to = to, configurationIds = configurationIds, testPlanIds = testPlanIds, userIds = userIds, outcomes = outcomes, isAutomated = isAutomated, automated = automated, testRunIds = testRunIds, skip = skip, take = take, orderBy = orderBy, searchField = searchField, searchValue = searchValue) - return request>( + return request>( localVariableConfig ) } diff --git a/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsCommentsApi.kt b/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsCommentsApi.kt index ba3d387..f2afe57 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsCommentsApi.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/apis/WorkItemsCommentsApi.kt @@ -16,7 +16,7 @@ package ru.testit.kotlin.client.apis import java.io.IOException -import okhttp3.OkHttpClient +import okhttp3.Call import okhttp3.HttpUrl import ru.testit.kotlin.client.models.ProblemDetails @@ -41,7 +41,7 @@ import ru.testit.kotlin.client.infrastructure.ResponseType import ru.testit.kotlin.client.infrastructure.Success import ru.testit.kotlin.client.infrastructure.toMultiValue -class WorkItemsCommentsApi(basePath: kotlin.String = defaultBasePath, client: OkHttpClient = ApiClient.defaultClient) : ApiClient(basePath, client) { +class WorkItemsCommentsApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory = ApiClient.defaultClient) : ApiClient(basePath, client) { companion object { @JvmStatic val defaultBasePath: String by lazy { @@ -260,6 +260,77 @@ class WorkItemsCommentsApi(basePath: kotlin.String = defaultBasePath, client: Ok ) } + /** + * Get work item comments count + * + * @param id Unique or global ID of the work item + * @return kotlin.Int + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + * @throws UnsupportedOperationException If the API returns an informational or redirection response + * @throws ClientException If the API returns a client error response + * @throws ServerException If the API returns a server error response + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class, UnsupportedOperationException::class, ClientException::class, ServerException::class) + fun apiV2WorkItemsIdCommentsCountGet(id: kotlin.String) : kotlin.Int { + val localVarResponse = apiV2WorkItemsIdCommentsCountGetWithHttpInfo(id = id) + + return when (localVarResponse.responseType) { + ResponseType.Success -> (localVarResponse as Success<*>).data as kotlin.Int + ResponseType.Informational -> throw UnsupportedOperationException("Client does not support Informational responses.") + ResponseType.Redirection -> throw UnsupportedOperationException("Client does not support Redirection responses.") + ResponseType.ClientError -> { + val localVarError = localVarResponse as ClientError<*> + throw ClientException("Client error : ${localVarError.statusCode} ${localVarError.message.orEmpty()}", localVarError.statusCode, localVarResponse) + } + ResponseType.ServerError -> { + val localVarError = localVarResponse as ServerError<*> + throw ServerException("Server error : ${localVarError.statusCode} ${localVarError.message.orEmpty()} ${localVarError.body}", localVarError.statusCode, localVarResponse) + } + } + } + + /** + * Get work item comments count + * + * @param id Unique or global ID of the work item + * @return ApiResponse + * @throws IllegalStateException If the request is not correctly configured + * @throws IOException Rethrows the OkHttp execute method exception + */ + @Suppress("UNCHECKED_CAST") + @Throws(IllegalStateException::class, IOException::class) + fun apiV2WorkItemsIdCommentsCountGetWithHttpInfo(id: kotlin.String) : ApiResponse { + val localVariableConfig = apiV2WorkItemsIdCommentsCountGetRequestConfig(id = id) + + return request( + localVariableConfig + ) + } + + /** + * To obtain the request config of the operation apiV2WorkItemsIdCommentsCountGet + * + * @param id Unique or global ID of the work item + * @return RequestConfig + */ + fun apiV2WorkItemsIdCommentsCountGetRequestConfig(id: kotlin.String) : RequestConfig { + val localVariableBody = null + val localVariableQuery: MultiValueMap = mutableMapOf() + val localVariableHeaders: MutableMap = mutableMapOf() + localVariableHeaders["Accept"] = "application/json" + + return RequestConfig( + method = RequestMethod.GET, + path = "/api/v2/workItems/{id}/comments/count".replace("{"+"id"+"}", encodeURIComponent(id.toString())), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + body = localVariableBody + ) + } + /** * Get work item comments * diff --git a/src/main/kotlin/ru/testit/kotlin/client/infrastructure/ApiClient.kt b/src/main/kotlin/ru/testit/kotlin/client/infrastructure/ApiClient.kt index ba8c478..e22bc70 100644 --- a/src/main/kotlin/ru/testit/kotlin/client/infrastructure/ApiClient.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/infrastructure/ApiClient.kt @@ -31,7 +31,7 @@ import com.squareup.moshi.adapter val EMPTY_REQUEST: RequestBody = ByteArray(0).toRequestBody() -open class ApiClient(val baseUrl: String, val client: OkHttpClient = defaultClient) { +open class ApiClient(val baseUrl: String, val client: Call.Factory = defaultClient) { var apiKey: MutableMap = mutableMapOf() var apiKeyPrefix: MutableMap = mutableMapOf() var username: String? = null @@ -126,8 +126,11 @@ open class ApiClient(val baseUrl: String, val client: OkHttpClient = defaultClie val body = response.body if(body == null) { return null - } - if (T::class.java == File::class.java) { + } else if (T::class.java == Unit::class.java) { + // No need to parse the body when we're not interested in the body + // Useful when API is returning other Content-Type + return null + } else if (T::class.java == File::class.java) { // return tempFile val contentDisposition = response.header("Content-Disposition") diff --git a/src/main/kotlin/ru/testit/kotlin/client/models/Attachment.kt b/src/main/kotlin/ru/testit/kotlin/client/models/Attachment.kt new file mode 100644 index 0000000..ad3752c --- /dev/null +++ b/src/main/kotlin/ru/testit/kotlin/client/models/Attachment.kt @@ -0,0 +1,79 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package ru.testit.kotlin.client.models + + +import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass + +/** + * + * + * @param id Unique ID of the attachment + * @param fileId Unique ID of the attachment file + * @param type MIME type of the attachment + * @param propertySize Size in bytes of the attachment file + * @param createdDate Creation date of the attachment + * @param createdById Unique ID of the attachment creator + * @param name Name of the attachment file + * @param modifiedDate Last modification date of the attachment + * @param modifiedById Unique ID of the attachment last editor + */ + + +data class Attachment ( + + /* Unique ID of the attachment */ + @Json(name = "id") + val id: java.util.UUID, + + /* Unique ID of the attachment file */ + @Json(name = "fileId") + val fileId: kotlin.String, + + /* MIME type of the attachment */ + @Json(name = "type") + val type: kotlin.String, + + /* Size in bytes of the attachment file */ + @Json(name = "size") + val propertySize: kotlin.Float, + + /* Creation date of the attachment */ + @Json(name = "createdDate") + val createdDate: java.time.OffsetDateTime, + + /* Unique ID of the attachment creator */ + @Json(name = "createdById") + val createdById: java.util.UUID, + + /* Name of the attachment file */ + @Json(name = "name") + val name: kotlin.String, + + /* Last modification date of the attachment */ + @Json(name = "modifiedDate") + val modifiedDate: java.time.OffsetDateTime? = null, + + /* Unique ID of the attachment last editor */ + @Json(name = "modifiedById") + val modifiedById: java.util.UUID? = null + +) { + + +} + diff --git a/src/test/kotlin/ru/testit/kotlin/client/models/LinkTypeTest.kt b/src/main/kotlin/ru/testit/kotlin/client/models/AttachmentUpdateRequest.kt similarity index 54% rename from src/test/kotlin/ru/testit/kotlin/client/models/LinkTypeTest.kt rename to src/main/kotlin/ru/testit/kotlin/client/models/AttachmentUpdateRequest.kt index aadfb53..d8a82a3 100644 --- a/src/test/kotlin/ru/testit/kotlin/client/models/LinkTypeTest.kt +++ b/src/main/kotlin/ru/testit/kotlin/client/models/AttachmentUpdateRequest.kt @@ -15,15 +15,25 @@ package ru.testit.kotlin.client.models -import io.kotlintest.shouldBe -import io.kotlintest.specs.ShouldSpec -import ru.testit.kotlin.client.models.LinkType +import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass + +/** + * + * + * @param id Unique ID of the attachment + */ + + +data class AttachmentUpdateRequest ( + + /* Unique ID of the attachment */ + @Json(name = "id") + val id: java.util.UUID + +) { -class LinkTypeTest : ShouldSpec() { - init { - // uncomment below to create an instance of LinkType - //val modelInstance = LinkType() - } } + diff --git a/src/main/kotlin/ru/testit/kotlin/client/models/AutoTest.kt b/src/main/kotlin/ru/testit/kotlin/client/models/AutoTest.kt new file mode 100644 index 0000000..f6adfeb --- /dev/null +++ b/src/main/kotlin/ru/testit/kotlin/client/models/AutoTest.kt @@ -0,0 +1,178 @@ +/** + * + * Please note: + * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * Do not edit this file manually. + * + */ + +@file:Suppress( + "ArrayInDataClass", + "EnumEntryName", + "RemoveRedundantQualifierName", + "UnusedImport" +) + +package ru.testit.kotlin.client.models + +import ru.testit.kotlin.client.models.AutoTestStep +import ru.testit.kotlin.client.models.ConfigurationShort +import ru.testit.kotlin.client.models.Label +import ru.testit.kotlin.client.models.Link + +import com.squareup.moshi.Json +import com.squareup.moshi.JsonClass + +/** + * + * + * @param externalId External ID of the autotest + * @param projectId Unique ID of the autotest project + * @param name Name of the autotest + * @param globalId Global ID of the autotest + * @param isDeleted Indicates if the autotest is deleted + * @param mustBeApproved Indicates if the autotest has unapproved changes from linked work items + * @param id Unique ID of the autotest + * @param createdDate Creation date of the autotest + * @param createdById Unique ID of the project creator + * @param links Collection of the autotest links + * @param namespace Name of the autotest namespace + * @param classname Name of the autotest class + * @param steps Collection of the autotest steps + * @param setup Collection of the autotest setup steps + * @param teardown Collection of the autotest teardown steps + * @param title Name of the autotest in autotest's card + * @param description Description of the autotest in autotest's card + * @param labels Collection of the autotest labels + * @param isFlaky Indicates if the autotest is marked as flaky + * @param externalKey External key of the autotest + * @param modifiedDate Last modification date of the project + * @param modifiedById Unique ID of the project last editor + * @param lastTestRunId Unique ID of the autotest last test run + * @param lastTestRunName Name of the autotest last test run + * @param lastTestResultId Unique ID of the autotest last test result + * @param lastTestResultConfiguration Configuration of the autotest last test result + * @param lastTestResultOutcome Outcome of the autotest last test result + * @param stabilityPercentage Stability percentage of the autotest + */ + + +data class AutoTest ( + + /* External ID of the autotest */ + @Json(name = "externalId") + val externalId: kotlin.String, + + /* Unique ID of the autotest project */ + @Json(name = "projectId") + val projectId: java.util.UUID, + + /* Name of the autotest */ + @Json(name = "name") + val name: kotlin.String, + + /* Global ID of the autotest */ + @Json(name = "globalId") + val globalId: kotlin.Long, + + /* Indicates if the autotest is deleted */ + @Json(name = "isDeleted") + val isDeleted: kotlin.Boolean, + + /* Indicates if the autotest has unapproved changes from linked work items */ + @Json(name = "mustBeApproved") + val mustBeApproved: kotlin.Boolean, + + /* Unique ID of the autotest */ + @Json(name = "id") + val id: java.util.UUID, + + /* Creation date of the autotest */ + @Json(name = "createdDate") + val createdDate: java.time.OffsetDateTime, + + /* Unique ID of the project creator */ + @Json(name = "createdById") + val createdById: java.util.UUID, + + /* Collection of the autotest links */ + @Json(name = "links") + val links: kotlin.collections.List? = null, + + /* Name of the autotest namespace */ + @Json(name = "namespace") + val namespace: kotlin.String? = null, + + /* Name of the autotest class */ + @Json(name = "classname") + val classname: kotlin.String? = null, + + /* Collection of the autotest steps */ + @Json(name = "steps") + val steps: kotlin.collections.List? = null, + + /* Collection of the autotest setup steps */ + @Json(name = "setup") + val setup: kotlin.collections.List? = null, + + /* Collection of the autotest teardown steps */ + @Json(name = "teardown") + val teardown: kotlin.collections.List? = null, + + /* Name of the autotest in autotest's card */ + @Json(name = "title") + val title: kotlin.String? = null, + + /* Description of the autotest in autotest's card */ + @Json(name = "description") + val description: kotlin.String? = null, + + /* Collection of the autotest labels */ + @Json(name = "labels") + val labels: kotlin.collections.List